From 6bbb04dd90dc5a571daa87fc545c15dda0a096f5 Mon Sep 17 00:00:00 2001 From: xoviat Date: Fri, 4 Aug 2023 19:00:04 -0500 Subject: [PATCH 01/54] spi: fix stm32f479 --- stm32-data-gen/src/chips.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 9d810a5..99a5582 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -145,6 +145,7 @@ impl PeriMatcher { (".*:SPI:spi2_v1_4", ("spi", "f1", "SPI")), (".*:SPI:spi2s1_v2_1", ("spi", "v1", "SPI")), (".*:SPI:spi2s1_v2_2", ("spi", "v1", "SPI")), + (".*:SPI:spi2s1_v2_3", ("spi", "v1", "SPI")), (".*:SPI:spi2s1_v2_4", ("spi", "v1", "SPI")), (".*:SPI:spi2s1_v3_0", ("spi", "v2", "SPI")), (".*:SPI:spi2s1_v3_2", ("spi", "v2", "SPI")), From 39d4db37fedbcf163d4def10c2a50d81931ca61a Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Sat, 5 Aug 2023 18:27:00 -0500 Subject: [PATCH 02/54] get common registers for adc12(34) --- data/extra/chip_name/STM32F303CB.yaml | 8 + data/extra/chip_name/STM32F303CC.yaml | 8 + data/extra/chip_name/STM32F303VC.yaml | 8 + data/registers/adccommon_f3.yaml | 375 ++++++++++++++++++++++++++ stm32-data-gen/src/chips.rs | 14 +- 5 files changed, 412 insertions(+), 1 deletion(-) create mode 100644 data/extra/chip_name/STM32F303CB.yaml create mode 100644 data/extra/chip_name/STM32F303CC.yaml create mode 100644 data/extra/chip_name/STM32F303VC.yaml create mode 100644 data/registers/adccommon_f3.yaml diff --git a/data/extra/chip_name/STM32F303CB.yaml b/data/extra/chip_name/STM32F303CB.yaml new file mode 100644 index 0000000..981a349 --- /dev/null +++ b/data/extra/chip_name/STM32F303CB.yaml @@ -0,0 +1,8 @@ +--- +peripherals: + - name: ADC3_COMMON + address: 0x50000700 + registers: + kind: adccommon + version: f3 + block: ADCCOMMON diff --git a/data/extra/chip_name/STM32F303CC.yaml b/data/extra/chip_name/STM32F303CC.yaml new file mode 100644 index 0000000..981a349 --- /dev/null +++ b/data/extra/chip_name/STM32F303CC.yaml @@ -0,0 +1,8 @@ +--- +peripherals: + - name: ADC3_COMMON + address: 0x50000700 + registers: + kind: adccommon + version: f3 + block: ADCCOMMON diff --git a/data/extra/chip_name/STM32F303VC.yaml b/data/extra/chip_name/STM32F303VC.yaml new file mode 100644 index 0000000..981a349 --- /dev/null +++ b/data/extra/chip_name/STM32F303VC.yaml @@ -0,0 +1,8 @@ +--- +peripherals: + - name: ADC3_COMMON + address: 0x50000700 + registers: + kind: adccommon + version: f3 + block: ADCCOMMON diff --git a/data/registers/adccommon_f3.yaml b/data/registers/adccommon_f3.yaml new file mode 100644 index 0000000..6dded6d --- /dev/null +++ b/data/registers/adccommon_f3.yaml @@ -0,0 +1,375 @@ +--- +block/ADC_COMMON: + description: ADC common registers + items: + - name: CSR + description: ADC Common status register + byte_offset: 0 + access: Read + fieldset: CSR + - name: CCR + description: ADC common control register + byte_offset: 8 + fieldset: CCR + - name: CDR + description: ADC common regular data register for dual and triple modes + byte_offset: 12 + access: Read + fieldset: CDR +fieldset/CSR: + decsription: ADC common status register + fields: + - name: ADRDY_MST + description: Master ADC ready + bit_offset: 0 + bit_size: 1 + enum: ADRDY + - name: EOSMP_MST + description: End of sampling phase flag of the master ADC + bit_offset: 1 + bit_size: 1 + enum: EOSMP + - name: EOC_MST + description: End of regular conversion of the master ADC + bit_offset: 2 + bit_size: 1 + enum: EOC + - name: EOS_MST + description: End of regular sequence flag of the master ADC + bit_offset: 3 + bit_size: 1 + enum: EOS + - name: OVR_MST + description: Overrun flag of the master ADC + bit_offset: 4 + bit_size: 1 + enum: OVR + - name: JEOC_MST + description: End of injected conversion of the master ADC + bit_offset: 5 + bit_size: 1 + enum: JEOC + - name: JEOS + description: End of injected sequence flag of the master ADC + bit_offset: 6 + bit_size: 1 + enum: JEOS + - name: AWD1_MST + description: Analog watchdog 1 flag of the master ADC + bit_offset: 7 + bit_size: 1 + enum: AWD + - name: AWD2_MST + description: Analog watchdog 2 flag of the master ADC + bit_offset: 8 + bit_size: 1 + enum: AWD + - name: AWD3_MST + description: Analog watchdog 3 flag of the master ADC + bit_offset: 9 + bit_size: 1 + enum: AWD + - name: JQOVF_MST + description: Injected context queue overflow flag of the master ADC + bit_offset: 10 + bit_size: 1 + enum: JQOVF + - name: ADRDY_SLV + description: Slave ADC ready + bit_offset: 16 + bit_size: 1 + enum: ADRDY + - name: EOSMP_SLV + description: End of sampling phase flag of the slave ADC + bit_offset: 17 + bit_size: 1 + enum: EOSMP + - name: EOC_SLV + description: End of regular conversion of the slave ADC + bit_offset: 18 + bit_size: 1 + enum: EOC + - name: EOS_SLV + description: End of regular sequence flag of the slave ADC + bit_offset: 19 + bit_size: 1 + enum: EOS + - name: OVR_SLV + description: Overrun flag of the slave ADC + bit_offset: 20 + bit_size: 1 + enum: OVR + - name: JEOC_SLV + description: End of injected conversion of the slave ADC + bit_offset: 21 + bit_size: 1 + enum: JEOC + - name: JEOS_SLV + description: End of injected sequence flag of the slave ADC + bit_offset: 22 + bit_size: 1 + enum: JEOS + - name: AWD1_SLV + description: Analog watchdog 1 flag of the slave ADC + bit_offset: 23 + bit_size: 1 + enum: AWD + - name: AWD2_SLV + description: Analog watchdog 2 flag of the slave ADC + bit_offset: 24 + bit_size: 1 + enum: AWD + - name: AWD3_SLV + description: Analog watchdog 3 flag of the slave ADC + bit_offset: 25 + bit_size: 1 + enum: AWD + - name: JQOVF_SLV + description: Injected context queue overflow flag of the slave ADC + bit_offset: 26 + bit_size: 1 + enum: JQOVF +fieldset/CCR: + description: ADC common control register + fields: + - name: DUAL + description: Dual ADC mode selection + bit_offset: 0 + bit_size: 5 + enum: DUAL + - name: DELAY + description: Delay between 2 sampling phases + bit_offset: 8 + bit_size: 4 + - name: DMACFG + description: DMA configuration (for multi-ADC mode) + bit_offset: 13 + bit_size: 1 + enum: DMACFG + - name: MDMA + description: Direct memory access mode for multi ADC mode + bit_offset: 14 + bit_size: 2 + enum: MDMA + - name: CKMODE + description: ADC clock mode + bit_offset: 16 + bit_size: 2 + enum: CKMODE + - name: VREFEN + description: VREFINT enable + bit_offset: 22 + bit_size: 1 + enum: VREFEN + - name: TSEN + description: Temperature sensor enable + bit_offset: 23 + bit_size: 1 + enum: TSEN + - name: VBATEN + description: VBAT enable + bit_offset: 24 + bit_size: 1 + enum: VBATEN +fieldset/CDR: + description: ADC common regular data register for dual and triple modes + fields: + - name: RDATA_MST + description: Regular data of the master ADC + bit_offset: 0 + bit_size: 16 + - name: RDATA_SLV + description: Regular data of the master ADC + bit_offset: 16 + bit_size: 16 +enum/ADRDY: + description: ADC ready + bit_size: 1 + variants: + - name: NotReady + value: 0 + description: ADC is not ready to start conversion + - name: Ready + value: 1 + description: ADC is ready to start conversion +enum/EOSMP: + description: End of sampling flag + bit_size: 1 + variants: + - name: NotEnded + value: 0 + description: Conversion is not ended + - name: Ended + value: 1 + description: Conversion is ended +enum/EOC: + description: End of regular conversion + bit_size: 1 + variants: + - name: NotEnded + value: 0 + description: Regular conversion is not complete + - name: Ended + value: 1 + description: Regular conversion complete +enum/EOS: + description: End of regular sequence flag + bit_size: 1 + variants: + - name: NotEnded + value: 0 + description: Regular sequence is not complete + - name: Ended + value: 1 + description: Regular sequence complete +enum/OVR: + description: Overrun flag + bit_size: 1 + variants: + - name: NoOverrun + value: 0 + description: No overrun occurred + - name: Overrun + value: 1 + description: Overrun occurred +enum/JEOC: + description: End of injected conversion flag + bit_size: 1 + variants: + - name: NotEnded + value: 0 + description: Injected conversion is not complete + - name: Ended + value: 1 + description: Injected conversion complete +enum/JEOS: + description: End of injected sequence flag + bit_size: 1 + variants: + - name: NotEnded + value: 0 + description: Injected sequence is not complete + - name: Ended + value: 1 + description: Injected sequence complete +enum/AWD: + description: Analog watchdog flag + bit_size: 1 + variants: + - name: NoEvent + value: 0 + description: No analog watchdog event occurred + - name: Event + value: 1 + description: Analog watchdog event occurred +enum/JQOVF: + description: Injected context queue overflow flag + bit_size: 1 + variants: + - name: NoOverflow + value: 0 + description: No injected context queue overflow + - name: Overflow + value: 1 + description: Injected context queue overflow +enum/DUAL: + description: Dual ADC mode selection + bit_size: 5 + variants: + - name: Independent + value: 0 + description: Independent mode + - name: DualRJ + value: 1 + description: Dual, combined regular simultaneous + injected simultaneous mode + - name: DualRA + value: 2 + description: Dual, combined regular simultaneous + alternate trigger mode + - name: DualIJ + value: 3 + description: Dual, combined injected simultaneous + fast interleaved mode + - name: DualJ + value: 5 + description: Dual, injected simultaneous mode only + - name: DualR + value: 6 + description: Dual, regular simultaneous mode only + - name: DualI + value: 7 + description: dual, interleaved mode only + - name: DualA + value: 9 + description: Dual, alternate trigger mode only +enum/DMACFG: + description: DMA configuration (for multi-ADC mode) + bit_size: 1 + variants: + - name: OneShot + value: 0 + description: DMA one shot mode selected + - name: Circulator + value: 1 + description: DMA circular mode selected +enum/MDMA: + description: Direct memory access mode for multi ADC mode + bit_size: 2 + variants: + - name: Disabled + value: 0 + description: MDMA mode disabled + - name: Bits12_10 + value: 2 + description: MDMA mode enabled for 12 and 10-bit resolution + - name: Bit8_6 + value: 3 + description: MDMA mode enabled for 8 and 6-bit resolution +enum/CKMODE: + description: ADC clock mode + bit_size: 2 + variants: + - name: Asynchronous + value: 0 + description: Use Kernel Clock adc_ker_ck_input divided by PRESC. Asynchronous mode + - name: SyncDiv1 + value: 1 + description: Use AHB clock rcc_hclk3. In this case rcc_hclk must equal sys_d1cpre_ck. + - name: SyncDiv2 + value: 2 + description: Use AHB clock rcc_hclk3 divided by 2. + - name: SyncDiv4 + value: 3 + description: Use AHB clock rcc_hclk3 divided by 4. +enum/VREFEN: + description: VREFINT enable + bit_size: 1 + variants: + - name: Disabled + value: 0 + description: VREFINT channel disabled + - name: Enabled + value: 1 + description: VREFINT channel enabled +enum/TSEN: + description: Temperature sensor enable + bit_size: 1 + variants: + - name: Disabled + value: 0 + description: Temperature sensor channel disabled + - name: Enabled + value: 1 + description: Temperature sensor channel enabled +enum/VBATEN: + description: VBAT enable + bit_size: 1 + variants: + - name: Disabled + value: 0 + description: VBAT channel disabled + - name: Enabled + value: 1 + description: VBAT channel enabled + + + + \ No newline at end of file diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 99a5582..c005481 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -183,6 +183,7 @@ impl PeriMatcher { (".*:ADC_COMMON:aditf5_v2_0", ("adccommon", "v3", "ADC_COMMON")), (".*:ADC_COMMON:aditf5_v2_2", ("adccommon", "v3", "ADC_COMMON")), (".*:ADC_COMMON:aditf4_v3_0_WL", ("adccommon", "v3", "ADC_COMMON")), + (".*:ADC_COMMON:aditf5_v1_1", ("adccommon", "f3", "ADC_COMMON")), ("STM32H7.*:ADC_COMMON:.*", ("adccommon", "v4", "ADC_COMMON")), ("STM32H7.*:ADC3_COMMON:.*", ("adccommon", "v4", "ADC_COMMON")), (".*:DCMI:.*", ("dcmi", "v1", "DCMI")), @@ -823,7 +824,7 @@ fn process_core( entry.insert(format!("ADC_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } } - if pname.starts_with("ADC3") && chip_name.starts_with("STM32H7") { + if pname.starts_with("ADC3") && (chip_name.starts_with("STM32H7")) { if let Entry::Vacant(entry) = peri_kinds.entry("ADC3_COMMON".to_string()) { entry.insert(format!("ADC3_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } @@ -1007,6 +1008,17 @@ fn process_core( peripherals.push(p); } } + if let Ok(extra_f) = std::fs::read(format!("data/extra/chip_name/{}.yaml", chip_name)) { + #[derive(serde::Deserialize)] + struct Extra { + peripherals: Vec, + } + + let extra: Extra = serde_yaml::from_slice(&extra_f).unwrap(); + for p in extra.peripherals { + peripherals.push(p); + } + } peripherals.sort_by_key(|x| x.name.clone()); let have_peris: HashSet<_> = peripherals.iter_mut().map(|p| p.name.clone()).collect(); // Collect DMA versions in the chip From 0a3e4c2052ce87799fa070beebb662e2d70ca4fe Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Sat, 5 Aug 2023 18:31:18 -0500 Subject: [PATCH 03/54] remove unneccessary paranthesis --- stm32-data-gen/src/chips.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index c005481..c46d123 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -824,7 +824,7 @@ fn process_core( entry.insert(format!("ADC_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } } - if pname.starts_with("ADC3") && (chip_name.starts_with("STM32H7")) { + if pname.starts_with("ADC3") && chip_name.starts_with("STM32H7") { if let Entry::Vacant(entry) = peri_kinds.entry("ADC3_COMMON".to_string()) { entry.insert(format!("ADC3_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } From 59531949350123024061ad72e92c0ab66eb1f144 Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Sat, 5 Aug 2023 22:14:32 -0500 Subject: [PATCH 04/54] cleaning up mess after fixing headers.rs --- data/extra/chip_name/STM32F303CB.yaml | 8 -------- data/extra/chip_name/STM32F303CC.yaml | 8 -------- data/extra/chip_name/STM32F303VC.yaml | 8 -------- stm32-data-gen/src/chips.rs | 14 ++------------ stm32-data-gen/src/header.rs | 1 + 5 files changed, 3 insertions(+), 36 deletions(-) delete mode 100644 data/extra/chip_name/STM32F303CB.yaml delete mode 100644 data/extra/chip_name/STM32F303CC.yaml delete mode 100644 data/extra/chip_name/STM32F303VC.yaml diff --git a/data/extra/chip_name/STM32F303CB.yaml b/data/extra/chip_name/STM32F303CB.yaml deleted file mode 100644 index 981a349..0000000 --- a/data/extra/chip_name/STM32F303CB.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -peripherals: - - name: ADC3_COMMON - address: 0x50000700 - registers: - kind: adccommon - version: f3 - block: ADCCOMMON diff --git a/data/extra/chip_name/STM32F303CC.yaml b/data/extra/chip_name/STM32F303CC.yaml deleted file mode 100644 index 981a349..0000000 --- a/data/extra/chip_name/STM32F303CC.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -peripherals: - - name: ADC3_COMMON - address: 0x50000700 - registers: - kind: adccommon - version: f3 - block: ADCCOMMON diff --git a/data/extra/chip_name/STM32F303VC.yaml b/data/extra/chip_name/STM32F303VC.yaml deleted file mode 100644 index 981a349..0000000 --- a/data/extra/chip_name/STM32F303VC.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -peripherals: - - name: ADC3_COMMON - address: 0x50000700 - registers: - kind: adccommon - version: f3 - block: ADCCOMMON diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index c46d123..4d154ac 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -184,6 +184,7 @@ impl PeriMatcher { (".*:ADC_COMMON:aditf5_v2_2", ("adccommon", "v3", "ADC_COMMON")), (".*:ADC_COMMON:aditf4_v3_0_WL", ("adccommon", "v3", "ADC_COMMON")), (".*:ADC_COMMON:aditf5_v1_1", ("adccommon", "f3", "ADC_COMMON")), + (".*:ADC3_COMMON:aditf5_v1_1", ("adccommon", "f3", "ADC_COMMON")), ("STM32H7.*:ADC_COMMON:.*", ("adccommon", "v4", "ADC_COMMON")), ("STM32H7.*:ADC3_COMMON:.*", ("adccommon", "v4", "ADC_COMMON")), (".*:DCMI:.*", ("dcmi", "v1", "DCMI")), @@ -824,7 +825,7 @@ fn process_core( entry.insert(format!("ADC_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } } - if pname.starts_with("ADC3") && chip_name.starts_with("STM32H7") { + if pname.starts_with("ADC3") && (chip_name.starts_with("STM32H7") || chip_name.starts_with("STM32F3")) { if let Entry::Vacant(entry) = peri_kinds.entry("ADC3_COMMON".to_string()) { entry.insert(format!("ADC3_COMMON:{}", ip.version.strip_suffix("_Cube").unwrap())); } @@ -1008,17 +1009,6 @@ fn process_core( peripherals.push(p); } } - if let Ok(extra_f) = std::fs::read(format!("data/extra/chip_name/{}.yaml", chip_name)) { - #[derive(serde::Deserialize)] - struct Extra { - peripherals: Vec, - } - - let extra: Extra = serde_yaml::from_slice(&extra_f).unwrap(); - for p in extra.peripherals { - peripherals.push(p); - } - } peripherals.sort_by_key(|x| x.name.clone()); let have_peris: HashSet<_> = peripherals.iter_mut().map(|p| p.name.clone()).collect(); // Collect DMA versions in the chip diff --git a/stm32-data-gen/src/header.rs b/stm32-data-gen/src/header.rs index 1427d72..158be9a 100644 --- a/stm32-data-gen/src/header.rs +++ b/stm32-data-gen/src/header.rs @@ -165,6 +165,7 @@ impl Defines { "ADC_COMMON", &["ADC_COMMON", "ADC1_COMMON", "ADC12_COMMON", "ADC123_COMMON"], ), + ("ADC3_COMMON", &["ADC3_COMMON", "ADC4_COMMON", "ADC34_COMMON"]), ("CAN", &["CAN_BASE", "CAN1_BASE"]), ("FMC", &["FMC_BASE", "FMC_R_BASE"]), ("FSMC", &["FSMC_R_BASE"]), From 51371cb83580dd8501c6ad973898c825506d1625 Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Sat, 5 Aug 2023 22:23:05 -0500 Subject: [PATCH 05/54] add vrefintcal for f3 --- data/extra/family/STM32F3.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/extra/family/STM32F3.yaml diff --git a/data/extra/family/STM32F3.yaml b/data/extra/family/STM32F3.yaml new file mode 100644 index 0000000..84da393 --- /dev/null +++ b/data/extra/family/STM32F3.yaml @@ -0,0 +1,8 @@ +--- +peripherals: + - name: VREFINTCAL + address: 0x1FFFF7BA + registers: + kind: vrefintcal + version: v1 + block: VREFINTCAL From f427d4956683317383c5fa2b471098c752da989b Mon Sep 17 00:00:00 2001 From: xoviat Date: Sun, 6 Aug 2023 15:28:34 -0500 Subject: [PATCH 06/54] adc/f3: cleanup enums --- data/registers/adccommon_f3.yaml | 119 ++++--------------------------- 1 file changed, 15 insertions(+), 104 deletions(-) diff --git a/data/registers/adccommon_f3.yaml b/data/registers/adccommon_f3.yaml index 6dded6d..61dad4d 100644 --- a/data/registers/adccommon_f3.yaml +++ b/data/registers/adccommon_f3.yaml @@ -23,22 +23,21 @@ fieldset/CSR: description: Master ADC ready bit_offset: 0 bit_size: 1 - enum: ADRDY - name: EOSMP_MST description: End of sampling phase flag of the master ADC bit_offset: 1 bit_size: 1 - enum: EOSMP + enum: ENDED - name: EOC_MST description: End of regular conversion of the master ADC bit_offset: 2 bit_size: 1 - enum: EOC + enum: ENDED - name: EOS_MST description: End of regular sequence flag of the master ADC bit_offset: 3 bit_size: 1 - enum: EOS + enum: ENDED - name: OVR_MST description: Overrun flag of the master ADC bit_offset: 4 @@ -48,12 +47,12 @@ fieldset/CSR: description: End of injected conversion of the master ADC bit_offset: 5 bit_size: 1 - enum: JEOC + enum: ENDED - name: JEOS description: End of injected sequence flag of the master ADC bit_offset: 6 bit_size: 1 - enum: JEOS + enum: ENDED - name: AWD1_MST description: Analog watchdog 1 flag of the master ADC bit_offset: 7 @@ -78,22 +77,21 @@ fieldset/CSR: description: Slave ADC ready bit_offset: 16 bit_size: 1 - enum: ADRDY - name: EOSMP_SLV description: End of sampling phase flag of the slave ADC bit_offset: 17 bit_size: 1 - enum: EOSMP + enum: ENDED - name: EOC_SLV description: End of regular conversion of the slave ADC bit_offset: 18 bit_size: 1 - enum: EOC + enum: ENDED - name: EOS_SLV description: End of regular sequence flag of the slave ADC bit_offset: 19 bit_size: 1 - enum: EOS + enum: ENDED - name: OVR_SLV description: Overrun flag of the slave ADC bit_offset: 20 @@ -103,12 +101,12 @@ fieldset/CSR: description: End of injected conversion of the slave ADC bit_offset: 21 bit_size: 1 - enum: JEOC + enum: ENDED - name: JEOS_SLV description: End of injected sequence flag of the slave ADC bit_offset: 22 bit_size: 1 - enum: JEOS + enum: ENDED - name: AWD1_SLV description: Analog watchdog 1 flag of the slave ADC bit_offset: 23 @@ -160,17 +158,14 @@ fieldset/CCR: description: VREFINT enable bit_offset: 22 bit_size: 1 - enum: VREFEN - name: TSEN description: Temperature sensor enable bit_offset: 23 bit_size: 1 - enum: TSEN - name: VBATEN description: VBAT enable bit_offset: 24 bit_size: 1 - enum: VBATEN fieldset/CDR: description: ADC common regular data register for dual and triple modes fields: @@ -182,46 +177,16 @@ fieldset/CDR: description: Regular data of the master ADC bit_offset: 16 bit_size: 16 -enum/ADRDY: - description: ADC ready - bit_size: 1 - variants: - - name: NotReady - value: 0 - description: ADC is not ready to start conversion - - name: Ready - value: 1 - description: ADC is ready to start conversion -enum/EOSMP: - description: End of sampling flag +enum/ENDED: + description: End of operation bit_size: 1 variants: - name: NotEnded value: 0 - description: Conversion is not ended + description: Operation is not ended - name: Ended value: 1 - description: Conversion is ended -enum/EOC: - description: End of regular conversion - bit_size: 1 - variants: - - name: NotEnded - value: 0 - description: Regular conversion is not complete - - name: Ended - value: 1 - description: Regular conversion complete -enum/EOS: - description: End of regular sequence flag - bit_size: 1 - variants: - - name: NotEnded - value: 0 - description: Regular sequence is not complete - - name: Ended - value: 1 - description: Regular sequence complete + description: Operation is ended enum/OVR: description: Overrun flag bit_size: 1 @@ -232,26 +197,6 @@ enum/OVR: - name: Overrun value: 1 description: Overrun occurred -enum/JEOC: - description: End of injected conversion flag - bit_size: 1 - variants: - - name: NotEnded - value: 0 - description: Injected conversion is not complete - - name: Ended - value: 1 - description: Injected conversion complete -enum/JEOS: - description: End of injected sequence flag - bit_size: 1 - variants: - - name: NotEnded - value: 0 - description: Injected sequence is not complete - - name: Ended - value: 1 - description: Injected sequence complete enum/AWD: description: Analog watchdog flag bit_size: 1 @@ -338,38 +283,4 @@ enum/CKMODE: description: Use AHB clock rcc_hclk3 divided by 2. - name: SyncDiv4 value: 3 - description: Use AHB clock rcc_hclk3 divided by 4. -enum/VREFEN: - description: VREFINT enable - bit_size: 1 - variants: - - name: Disabled - value: 0 - description: VREFINT channel disabled - - name: Enabled - value: 1 - description: VREFINT channel enabled -enum/TSEN: - description: Temperature sensor enable - bit_size: 1 - variants: - - name: Disabled - value: 0 - description: Temperature sensor channel disabled - - name: Enabled - value: 1 - description: Temperature sensor channel enabled -enum/VBATEN: - description: VBAT enable - bit_size: 1 - variants: - - name: Disabled - value: 0 - description: VBAT channel disabled - - name: Enabled - value: 1 - description: VBAT channel enabled - - - - \ No newline at end of file + description: Use AHB clock rcc_hclk3 divided by 4. \ No newline at end of file From 42273a7f020344db7496e2b7406609e7e7ffb259 Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Mon, 7 Aug 2023 14:38:22 -0500 Subject: [PATCH 07/54] rework f3 series rcc take 2 --- data/registers/adc_f3_v2.yaml | 613 ++++++++++++++++ data/registers/rcc_f3.yaml | 92 --- data/registers/rcc_f3_v2.yaml | 1267 +++++++++++++++++++++++++++++++++ stm32-data-gen/src/chips.rs | 2 + 4 files changed, 1882 insertions(+), 92 deletions(-) create mode 100644 data/registers/adc_f3_v2.yaml create mode 100644 data/registers/rcc_f3_v2.yaml diff --git a/data/registers/adc_f3_v2.yaml b/data/registers/adc_f3_v2.yaml new file mode 100644 index 0000000..627072e --- /dev/null +++ b/data/registers/adc_f3_v2.yaml @@ -0,0 +1,613 @@ +--- +block/ADC: + description: Analog-to-Digital Converter + items: + - name: SR + description: status register + byte_offset: 0 + fieldset: SR + - name: CR1 + description: control register 1 + byte_offset: 4 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 8 + fieldset: CR2 + - name: SMPR1 + description: sample time register 1 + byte_offset: 12 + fieldset: SMPR1 + - name: SMPR2 + description: sample time register 2 + byte_offset: 16 + fieldset: SMPR2 + - name: JOFR1 + description: injected channel data offset register 1 + byte_offset: 20 + fieldset: JOFR1 + - name: JOFR2 + description: injected channel data offset register 2 + byte_offset: 24 + fieldset: JOFR2 + - name: JOFR3 + description: injected channel data offset register 3 + byte_offset: 28 + fieldset: JOFR3 + - name: JOFR4 + description: injected channel data offset register 4 + byte_offset: 32 + fieldset: JOFR4 + - name: HTR + description: watchdog higher threshold register + byte_offset: 36 + fieldset: HTR + - name: LTR + description: watchdog lower threshold register + byte_offset: 40 + fieldset: LTR + - name: SQR1 + description: regular sequence register 1 + byte_offset: 44 + fieldset: SQR1 + - name: SQR2 + description: regular sequence register 2 + byte_offset: 48 + fieldset: SQR2 + - name: SQR3 + description: regular sequence register 3 + byte_offset: 52 + fieldset: SQR3 + - name: JSQR + description: injected sequence register + byte_offset: 56 + fieldset: JSQR + - name: JDR1 + description: injected data register 1 + byte_offset: 60 + fieldset: JDR1 + access: Read + - name: JDR2 + description: injected data register 2 + byte_offset: 64 + fieldset: JDR2 + access: Read + - name: JDR3 + description: injected data register 3 + byte_offset: 68 + fieldset: JDR3 + access: Read + - name: JDR4 + description: injected data register 4 + byte_offset: 72 + fieldset: JDR4 + access: Read + - name: DR + description: regular data register + byte_offset: 76 + fieldset: DR + access: Read +fieldset/SR: + description: status register + fields: + - name: AWD + description: analog watchdog flag + bit_offset: 0 + bit_size: 1 + - name: EOC + description: end of conversion + bit_offset: 1 + bit_size: 1 + - name: JEOC + description: injected channel end of conversion + bit_offset: 2 + bit_size: 1 + - name: JSTRT + description: injected channel start flag + bit_offset: 3 + bit_size: 1 + - name: STRT + description: regular channel start flag + bit_offset: 4 + bit_size: 1 + - name: OVR + description: overrun + bit_offset: 5 + bit_size: 1 +fieldset/CR1: + description: control register 1 + fields: + - name: AWDCH + description: analog watchdog channel select bits + bit_offset: 0 + bit_size: 5 + - name: EOCIE + description: interrupt enable for EOC + bit_offset: 5 + bit_size: 1 + - name: AWDIE + description: analog watchdog interrupt enable + bit_offset: 6 + bit_size: 1 + - name: JEOCIE + description: interrupt enable for injected channels + bit_offset: 7 + bit_size: 1 + - name: SCAN + description: scan mode + bit_offset: 8 + bit_size: 1 + - name: AWDSGL + description: enable the watchdog on a single channel in scan mode + bit_offset: 9 + bit_size: 1 + - name: JAUTO + description: automatic injected group conversion + bit_offset: 10 + bit_size: 1 + - name: DISCEN + description: discontinuous mode on regular channels + bit_offset: 11 + bit_size: 1 + - name: JDISCEN + description: discontinuous mode on injected channels + bit_offset: 12 + bit_size: 1 + - name: DISCNUM + description: discontinuous mode channel count + bit_offset: 13 + bit_size: 3 + enum: DISCNUM + - name: JAWDEN + description: analog watchdog enable on injected channels + bit_offset: 22 + bit_size: 1 + - name: AWDEN + description: analog watchdog enable on regular channels + bit_offset: 23 + bit_size: 1 +fieldset/CR2: + description: control register 2 + fields: + - name: ADON + description: A/D converter ON / OFF + bit_offset: 0 + bit_size: 1 + - name: CONT + description: continuous conversion + bit_offset: 1 + bit_size: 1 + - name: CAL + description: A/D calibration + bit_offset: 2 + bit_size: 1 + - name: RSTCAL + description: reset calibration + bit_offset: 3 + bit_size: 1 + - name: DMA + description: DMA disable selection (for single ADC mode) + bit_offset: 8 + bit_size: 1 + - name: ALIGN + description: data alignment + bit_offset: 11 + bit_size: 1 + - name: JEXTSEL + description: external event select for injected group + bit_offset: 12 + bit_size: 3 + enum: JEXTSEL + - name: JEXTTRIG + description: external trigger conversion mode for injected channels + bit_offset: 15 + bit_size: 1 + - name: EXTSEL + description: external event select for regular group + bit_offset: 17 + bit_size: 3 + enum: EXTSEL + - name: EXTTRIG + description: external trigger conversion mode for regular channels + bit_offset: 20 + bit_size: 1 + - name: JSWSTART + description: start conversion of injected channels + bit_offset: 21 + bit_size: 1 + - name: SWSTART + description: start conversion of regular channels + bit_offset: 22 + bit_size: 1 + - name: TSVREFE + description: temperature sensor and VREFINT enable + bit_offset: 23 + bit_size: 1 +fieldset/SMPR1: + description: sample time register 1 + fields: + - name: SMP10 + description: channel 10 sampling time selection + bit_offset: 0 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP11 + description: channel 11 sampling time selection + bit_offset: 3 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP12 + description: channel 12 sampling time selection + bit_offset: 6 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP13 + description: channel 13 sampling time selection + bit_offset: 9 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP14 + description: channel 14 sampling time selection + bit_offset: 12 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP15 + description: channel 15 sampling time selection + bit_offset: 15 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP16 + description: channel 16 sampling time selection + bit_offset: 18 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP17 + description: channel 17 sampling time selection + bit_offset: 21 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP18 + description: channel 18 sampling time selection + bit_offset: 24 + bit_size: 3 + enum: SAMPLE_TIME +fieldset/SMPR2: + description: sample time register 2 + fields: + - name: SMP0 + description: channel 0 sampling time selection + bit_offset: 0 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP1 + description: channel 1 sampling time selection + bit_offset: 3 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP2 + description: channel 2 sampling time selection + bit_offset: 6 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP3 + description: channel 3 sampling time selection + bit_offset: 9 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP4 + description: channel 4 sampling time selection + bit_offset: 12 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP5 + description: channel 5 sampling time selection + bit_offset: 15 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP6 + description: channel 6 sampling time selection + bit_offset: 18 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP7 + description: channel 7 sampling time selection + bit_offset: 21 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP8 + description: channel 8 sampling time selection + bit_offset: 24 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP9 + description: channel 9 sampling time selection + bit_offset: 27 + bit_size: 3 + enum: SAMPLE_TIME +fieldset/JOFR1: + description: injected channel data offset register 1 + fields: + - name: JOFFSET1 + description: data offset for injected channel 1 + bit_offset: 0 + bit_size: 12 +fieldset/JOFR2: + description: injected channel data offset register 2 + fields: + - name: JOFFSET2 + description: data offset for injected channel 2 + bit_offset: 0 + bit_size: 12 +fieldset/JOFR3: + description: injected channel data offset register 3 + fields: + - name: JOFFSET3 + description: data offset for injected channel 3 + bit_offset: 0 + bit_size: 12 +fieldset/JOFR4: + description: injected channel data offset register 4 + fields: + - name: JOFFSET4 + description: data offset for injected channel 4 + bit_offset: 0 + bit_size: 12 +fieldset/HTR: + description: watchdog higher threshold register + fields: + - name: HT + description: Analog watchdog high threshold + bit_offset: 0 + bit_size: 12 +fieldset/LTR: + description: watchdog lower threshold register + fields: + - name: LT + description: Analog watchdog low threshold + bit_offset: 0 + bit_size: 12 +fieldset/SQR1: + description: regular sequence register 1 + fields: + - name: SQ13 + description: 13th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + - name: SQ14 + description: 14th conversion in regular sequence + bit_offset: 5 + bit_size: 5 + - name: SQ15 + description: 15th conversion in regular sequence + bit_offset: 10 + bit_size: 5 + - name: SQ16 + description: 16th conversion in regular sequence + bit_offset: 15 + bit_size: 5 + - name: L + description: regular channel sequence length + bit_offset: 20 + bit_size: 4 +fieldset/SQR2: + description: regular sequence register 2 + fields: + - name: SQ7 + description: 7th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + - name: SQ8 + description: 8th conversion in regular sequence + bit_offset: 5 + bit_size: 5 + - name: SQ9 + description: 9th conversion in regular sequence + bit_offset: 10 + bit_size: 5 + - name: SQ10 + description: 10th conversion in regular sequence + bit_offset: 15 + bit_size: 5 + - name: SQ11 + description: 11th conversion in regular sequence + bit_offset: 20 + bit_size: 5 + - name: SQ12 + description: 12th conversion in regular sequence + bit_offset: 25 + bit_size: 5 +fieldset/SQR3: + description: regular sequence register 3 + fields: + - name: SQ1 + description: 1st conversion in regular sequence + bit_offset: 0 + bit_size: 5 + - name: SQ2 + description: 2nd conversion in regular sequence + bit_offset: 5 + bit_size: 5 + - name: SQ3 + description: 3rd conversion in regular sequence + bit_offset: 10 + bit_size: 5 + - name: SQ4 + description: 4th conversion in regular sequence + bit_offset: 15 + bit_size: 5 + - name: SQ5 + description: 5th conversion in regular sequence + bit_offset: 20 + bit_size: 5 + - name: SQ6 + description: 6th conversion in regular sequence + bit_offset: 25 + bit_size: 5 +fieldset/JSQR: + description: injected sequence register + fields: + - name: JSQ1 + description: 1st conversion in injected sequence + bit_offset: 0 + bit_size: 5 + - name: JSQ2 + description: 2nd conversion in injected sequence + bit_offset: 5 + bit_size: 5 + - name: JSQ3 + description: 3rd conversion in injected sequence + bit_offset: 10 + bit_size: 5 + - name: JSQ4 + description: 4th conversion in injected sequence + bit_offset: 15 + bit_size: 5 + - name: JL + description: injected sequence length + bit_offset: 20 + bit_size: 2 +fieldset/JDR1: + description: injected data register 1 + fields: + - name: JDATA1 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JDR2: + description: injected data register 2 + fields: + - name: JDATA2 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JDR3: + description: injected data register 3 + fields: + - name: JDATA3 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JDR4: + description: injected data register 4 + fields: + - name: JDATA4 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/DR: + description: regular data register + fields: + - name: DATA + description: Regular data + bit_offset: 0 + bit_size: 16 +enum/DISCNUM: + bit_size: 3 + variants: + - name: DISCNUM_1 + description: 1 conversions are discontinued and the conversion is carried out on one channel + value: 0 + - name: DISCNUM_2 + description: 2 conversion is discontinued and the conversions are carried out on 2 channels + value: 1 + - name: DISCNUM_3 + description: 3 conversions are discontinued and the conversions are carried out on 3 channels + value: 2 + - name: DISCNUM_4 + description: 4 conversions are discontinued and the conversions are carried out on 4 channels + value: 3 + - name: DISCNUM_5 + description: 5 conversions are discontinued and the conversions are carried out on 5 channels + value: 4 + - name: DISCNUM_6 + description: 6 conversions are discontinued and the conversions are carried out on 6 channels + value: 5 + - name: DISCNUM_7 + description: 7 conversions are discontinued and the conversions are carried out on 7 channels + value: 6 + - name: DISCNUM_8 + description: 8 conversions are discontinued and the conversions are carried out on 8 channels + value: 7 +enum/JEXTSEL: + bit_size: 3 + variants: + - name: TIM19_CC1 + description: Timer 19 CC1 event + value: 0 + - name: TIM19_CC2 + description: Timer 19 CC2 event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM2_CC1 + description: Timer 2 CC1 event + value: 3 + - name: TIM3_CC4 + description: Timer 3 CC4 event + value: 4 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 5 + - name: EXTI_LINE15 + description: External interrupt line 15 + value: 6 + - name: JSWSTART + description: JSWSTART bit + value: 7 +enum/EXTSEL: + bit_size: 3 + variants: + - name: TIM19_TRGO + description: Timer 19 TRGO event + value: 0 + - name: TIM19_CC3 + description: Timer 19 CC3 event + value: 1 + - name: TIM19_CC4 + description: Timer 19 CC4 event + value: 2 + - name: TIM2_CC2 + description: Timer 2 CC2 event + value: 3 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 4 + - name: TIM4_CC4 + description: Timer 4 CC4 event + value: 5 + - name: EXTI_LINE11 + description: External interrupt line 11 + value: 6 + - name: SWSTART + description: SWSTART bit + value: 7 +enum/SAMPLE_TIME: + bit_size: 3 + variants: + - name: Cycles1_5 + description: 1.5 ADC clock cycles + value: 0 + - name: Cycles7_5 + description: 7.5 ADC clock cycles + value: 1 + - name: Cycles13_5 + description: 13.5 ADC clock cycles + value: 2 + - name: Cycles28_5 + description: 28.5 ADC clock cycles + value: 3 + - name: Cycles41_5 + description: 41.5 ADC clock cycles + value: 4 + - name: Cycles55_5 + description: 55.5 ADC clock cycles + value: 5 + - name: Cycles71_5 + description: 71.5 ADC clock cycles + value: 6 + - name: Cycles239_5 + description: 239.5 ADC clock cycles + value: 7 + + diff --git a/data/registers/rcc_f3.yaml b/data/registers/rcc_f3.yaml index abeff29..583f36b 100644 --- a/data/registers/rcc_f3.yaml +++ b/data/registers/rcc_f3.yaml @@ -121,10 +121,6 @@ fieldset/AHBENR: description: ADC1 and ADC2 clock enable bit_offset: 28 bit_size: 1 - - name: ADC1EN - description: ADC 1 - bit_offset: 28 - bit_size: 1 - name: ADC34EN description: ADC3 and ADC4 clock enable bit_offset: 29 @@ -176,10 +172,6 @@ fieldset/AHBRSTR: description: ADC1 and ADC2 reset bit_offset: 28 bit_size: 1 - - name: ADC1RST - description: ADC1 reset - bit_offset: 28 - bit_size: 1 - name: ADC34RST description: ADC3 and ADC4 reset bit_offset: 29 @@ -199,10 +191,6 @@ fieldset/APB1ENR: description: Timer 4 clock enable bit_offset: 2 bit_size: 1 - - name: TIM5EN - description: Timer 5 clock enable - bit_offset: 3 - bit_size: 1 - name: TIM6EN description: Timer 6 clock enable bit_offset: 4 @@ -211,22 +199,6 @@ fieldset/APB1ENR: description: Timer 7 clock enable bit_offset: 5 bit_size: 1 - - name: TIM12EN - description: Timer 12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: Timer 13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: Timer 14 clock enable - bit_offset: 8 - bit_size: 1 - - name: TIM18EN - description: Timer 18 clock enable - bit_offset: 9 - bit_size: 1 - name: WWDGEN description: Window watchdog clock enable bit_offset: 11 @@ -283,10 +255,6 @@ fieldset/APB1ENR: description: DAC interface clock enable bit_offset: 29 bit_size: 1 - - name: CECEN - description: HDMI CEC interface clock enable - bit_offset: 30 - bit_size: 1 - name: I2C3EN description: I2C3 clock enable bit_offset: 30 @@ -306,10 +274,6 @@ fieldset/APB1RSTR: description: Timer 14 reset bit_offset: 2 bit_size: 1 - - name: TIM5RST - description: Timer 5 reset - bit_offset: 3 - bit_size: 1 - name: TIM6RST description: Timer 6 reset bit_offset: 4 @@ -318,22 +282,6 @@ fieldset/APB1RSTR: description: Timer 7 reset bit_offset: 5 bit_size: 1 - - name: TIM12RST - description: Timer 12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: Timer 13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: Timer 14 reset - bit_offset: 8 - bit_size: 1 - - name: TIM18RST - description: Timer 18 reset - bit_offset: 9 - bit_size: 1 - name: WWDGRST description: Window watchdog reset bit_offset: 11 @@ -390,10 +338,6 @@ fieldset/APB1RSTR: description: DAC interface reset bit_offset: 29 bit_size: 1 - - name: CECRST - description: HDMI CEC reset - bit_offset: 30 - bit_size: 1 - name: I2C3RST description: I2C3 reset bit_offset: 30 @@ -405,10 +349,6 @@ fieldset/APB2ENR: description: SYSCFG clock enable bit_offset: 0 bit_size: 1 - - name: ADCEN - description: ADC 1 interface clock enable - bit_offset: 9 - bit_size: 1 - name: TIM1EN description: TIM1 Timer clock enable bit_offset: 11 @@ -449,22 +389,6 @@ fieldset/APB2ENR: description: TIM20 timer clock enable bit_offset: 20 bit_size: 1 - - name: DBGMCUEN - description: MCU debug module clock enable - bit_offset: 22 - bit_size: 1 - - name: SDADC1EN - description: SDADC1 (Sigma Delta ADC 1) clock enable - bit_offset: 24 - bit_size: 1 - - name: SDADC2EN - description: SDADC2 (Sigma Delta ADC 2) clock enable - bit_offset: 25 - bit_size: 1 - - name: SDADC3EN - description: SDADC3 (Sigma Delta ADC 3) clock enable - bit_offset: 26 - bit_size: 1 - name: HRTIM1EN description: High Resolution Timer 1 clock enable bit_offset: 29 @@ -476,10 +400,6 @@ fieldset/APB2RSTR: description: SYSCFG and COMP reset bit_offset: 0 bit_size: 1 - - name: ADCRST - description: ADC interface reset - bit_offset: 9 - bit_size: 1 - name: TIM1RST description: TIM1 timer reset bit_offset: 11 @@ -520,18 +440,6 @@ fieldset/APB2RSTR: description: TIM20 timer reset bit_offset: 20 bit_size: 1 - - name: SDADC1RST - description: SDADC1 (Sigma delta ADC 1) reset - bit_offset: 24 - bit_size: 1 - - name: SDADC2RST - description: SDADC2 (Sigma delta ADC 2) reset - bit_offset: 25 - bit_size: 1 - - name: SDADC3RST - description: SDADC3 (Sigma delta ADC 3) reset - bit_offset: 26 - bit_size: 1 - name: HRTIM1RST description: High Resolution Timer1 reset bit_offset: 29 diff --git a/data/registers/rcc_f3_v2.yaml b/data/registers/rcc_f3_v2.yaml new file mode 100644 index 0000000..87926df --- /dev/null +++ b/data/registers/rcc_f3_v2.yaml @@ -0,0 +1,1267 @@ +--- +block/RCC: + description: Reset and clock control + items: + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 40 + fieldset: AHBRSTR + - name: CFGR2 + description: Clock configuration register 2 + byte_offset: 44 + fieldset: CFGR2 + - name: CFGR3 + description: Clock configuration register 3 + byte_offset: 48 + fieldset: CFGR3 +fieldset/AHBENR: + description: AHB Peripheral Clock enable register (RCC_AHBENR) + fields: + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 17 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 18 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 19 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 20 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 21 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 22 + bit_size: 1 + - name: TSCEN + description: Touch sensing controller clock enable + bit_offset: 24 + bit_size: 1 +fieldset/AHBRSTR: + description: AHB peripheral reset register + fields: + - name: GPIOARST + description: I/O port A reset + bit_offset: 17 + bit_size: 1 + - name: GPIOBRST + description: I/O port B reset + bit_offset: 18 + bit_size: 1 + - name: GPIOCRST + description: I/O port C reset + bit_offset: 19 + bit_size: 1 + - name: GPIODRST + description: I/O port D reset + bit_offset: 20 + bit_size: 1 + - name: GPIOERST + description: I/O port E reset + bit_offset: 21 + bit_size: 1 + - name: GPIOFRST + description: I/O port F reset + bit_offset: 22 + bit_size: 1 + - name: TSCRST + description: Touch sensing controller reset + bit_offset: 24 + bit_size: 1 +fieldset/APB1ENR: + description: APB1 peripheral clock enable register (RCC_APB1ENR) + fields: + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: Timer 5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: Timer 12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: Timer 13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: Timer 14 clock enable + bit_offset: 8 + bit_size: 1 + - name: TIM18EN + description: Timer 18 clock enable + bit_offset: 9 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB clock enable + bit_offset: 23 + bit_size: 1 + - name: CANEN + description: CAN clock enable + bit_offset: 25 + bit_size: 1 + - name: DAC2EN + description: DAC2 interface clock enable + bit_offset: 26 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: CECEN + description: HDMI CEC interface clock enable + bit_offset: 30 + bit_size: 1 +fieldset/APB1RSTR: + description: APB1 peripheral reset register (RCC_APB1RSTR) + fields: + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 14 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: Timer 5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: Timer 12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: Timer 13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: Timer 14 reset + bit_offset: 8 + bit_size: 1 + - name: TIM18RST + description: Timer 18 reset + bit_offset: 9 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 23 + bit_size: 1 + - name: CANRST + description: CAN reset + bit_offset: 25 + bit_size: 1 + - name: DAC2RST + description: DAC2 interface reset + bit_offset: 26 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: CECRST + description: HDMI CEC reset + bit_offset: 30 + bit_size: 1 +fieldset/APB2ENR: + description: APB2 peripheral clock enable register (RCC_APB2ENR) + fields: + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: ADCEN + description: ADC 1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: TIM19EN + description: TIM19 timer clock enable + bit_offset: 19 + bit_size: 1 + - name: DBGMCUEN + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 + - name: SDADC1EN + description: SDADC1 (Sigma Delta ADC 1) clock enable + bit_offset: 24 + bit_size: 1 + - name: SDADC2EN + description: SDADC2 (Sigma Delta ADC 2) clock enable + bit_offset: 25 + bit_size: 1 + - name: SDADC3EN + description: SDADC3 (Sigma Delta ADC 3) clock enable + bit_offset: 26 + bit_size: 1 +fieldset/APB2RSTR: + description: APB2 peripheral reset register (RCC_APB2RSTR) + fields: + - name: SYSCFGRST + description: SYSCFG and COMP reset + bit_offset: 0 + bit_size: 1 + - name: ADCRST + description: ADC interface reset + bit_offset: 9 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: TIM19RST + description: TIM19 timer reset + bit_offset: 19 + bit_size: 1 + - name: SDADC1RST + description: SDADC1 (Sigma delta ADC 1) reset + bit_offset: 24 + bit_size: 1 + - name: SDADC2RST + description: SDADC2 (Sigma delta ADC 2) reset + bit_offset: 25 + bit_size: 1 + - name: SDADC3RST + description: SDADC3 (Sigma delta ADC 3) reset + bit_offset: 26 + bit_size: 1 +fieldset/BDCR: + description: Backup domain control register (RCC_BDCR) + fields: + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 +fieldset/CFGR: + description: Clock configuration register (RCC_CFGR) + fields: + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: ADCPRE + description: ADC prescaler + bit_offset: 14 + bit_size: 2 + enum: ADCPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 15 + bit_size: 2 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: USBPRE + description: USB prescaler + bit_offset: 22 + bit_size: 1 + enum: USBPRE + - name: I2SSRC + description: I2S external clock source selection + bit_offset: 23 + bit_size: 1 + enum: ISSRC + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCO + - name: SDPRE + description: SDADC prescaler + bit_offset: 27 + bit_size: 5 + enum: SDPRE + - name: MCOPRE + description: Microcontroller Clock Output Prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE + - name: PLLNODIV + description: Do not divide PLL to MCO + bit_offset: 31 + bit_size: 1 + enum: PLLNODIV +fieldset/CFGR2: + description: Clock configuration register 2 + fields: + - name: PREDIV + description: PREDIV division factor + bit_offset: 0 + bit_size: 4 + enum: PREDIV + - name: ADC12PRES + description: ADC1 and ADC2 prescaler + bit_offset: 4 + bit_size: 5 + enum: ADCPRES + - name: ADC1PRES + description: ADC1 prescaler + bit_offset: 4 + bit_size: 5 + enum: ADCPRES + - name: ADC34PRES + description: ADC3 and ADC4 prescaler + bit_offset: 9 + bit_size: 5 + enum: ADCPRES +fieldset/CFGR3: + description: Clock configuration register 3 + fields: + - name: USART1SW + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: USARTSW + - name: I2C1SW + description: I2C1 clock source selection + bit_offset: 4 + bit_size: 1 + enum: ICSW + - name: I2C2SW + description: I2C2 clock source selection + bit_offset: 5 + bit_size: 1 + enum: ICSW + - name: CECSW + description: HDMI CEC clock source selection + bit_offset: 6 + bit_size: 1 + enum: CECSW + - name: I2C3SW + description: I2C3 clock source selection + bit_offset: 6 + bit_size: 1 + enum: ICSW + - name: TIM1SW + description: Timer1 clock source selection + bit_offset: 8 + bit_size: 1 + enum: TIMSW + - name: TIM8SW + description: Timer8 clock source selection + bit_offset: 9 + bit_size: 1 + enum: TIMSW + - name: TIM15SW + description: Timer15 clock source selection + bit_offset: 10 + bit_size: 1 + enum: TIMSW + - name: TIM16SW + description: Timer16 clock source selection + bit_offset: 11 + bit_size: 1 + enum: TIMSW + - name: HRTIM1SW + description: Hrtim1 clock source selection + bit_offset: 12 + bit_size: 1 + enum: TIMSW + - name: TIM17SW + description: Timer17 clock source selection + bit_offset: 13 + bit_size: 1 + enum: TIMSW + - name: TIM20SW + description: Timer20 clock source selection + bit_offset: 15 + bit_size: 1 + enum: TIMSW + - name: USART2SW + description: USART2 clock source selection + bit_offset: 16 + bit_size: 2 + enum: USARTSW + - name: USART3SW + description: USART3 clock source selection + bit_offset: 18 + bit_size: 2 + enum: USARTSW + - name: UART4SW + description: UART4 clock source selection + bit_offset: 20 + bit_size: 2 + enum: USARTSW + - name: UART5SW + description: UART5 clock source selection + bit_offset: 22 + bit_size: 2 + enum: USARTSW + - name: TIM2SW + description: Timer2 clock source selection + bit_offset: 24 + bit_size: 1 + enum: TIMSW + - name: TIM34SW + description: Timer34 clock source selection + bit_offset: 25 + bit_size: 1 + enum: TIMSW +fieldset/CIR: + description: Clock interrupt register (RCC_CIR) + fields: + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 +fieldset/CR: + description: Clock control register + fields: + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 +fieldset/CSR: + description: Control/status register (RCC_CSR) + fields: + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: V18PWRRSTF + description: Reset flag of the 1.8 V domain + bit_offset: 23 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 +enum/ADCPRE: + bit_size: 2 + variants: + - name: Div2 + description: PCLK divided by 2 + value: 0 + - name: Div4 + description: PCLK divided by 4 + value: 1 + - name: Div6 + description: PCLK divided by 6 + value: 2 + - name: Div8 + description: PCLK divided by 8 + value: 3 +enum/ADCPRES: + bit_size: 5 + variants: + - name: NoClock + description: No clock + value: 0 + - name: Div1 + description: PLL clock not divided + value: 16 + - name: Div2 + description: PLL clock divided by 2 + value: 17 + - name: Div4 + description: PLL clock divided by 4 + value: 18 + - name: Div6 + description: PLL clock divided by 6 + value: 19 + - name: Div8 + description: PLL clock divided by 8 + value: 20 + - name: Div10 + description: PLL clock divided by 10 + value: 21 + - name: Div12 + description: PLL clock divided by 12 + value: 22 + - name: Div16 + description: PLL clock divided by 16 + value: 23 + - name: Div32 + description: PLL clock divided by 32 + value: 24 + - name: Div64 + description: PLL clock divided by 64 + value: 25 + - name: Div128 + description: PLL clock divided by 128 + value: 26 + - name: Div256 + description: PLL clock divided by 256 + value: 27 +enum/CECSW: + bit_size: 1 + variants: + - name: HSI_Div244 + description: HSI clock divided by 244 selected as CEC clock source + value: 0 + - name: LSE + description: LSE clock selected as CEC clock source + value: 1 +enum/HPRE: + bit_size: 4 + variants: + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 +enum/ICSW: + bit_size: 1 + variants: + - name: HSI + description: HSI clock selected as I2C clock source + value: 0 + - name: SYSCLK + description: SYSCLK clock selected as I2C clock source + value: 1 +enum/ISSRC: + bit_size: 1 + variants: + - name: SYSCLK + description: System clock used as I2S clock source + value: 0 + - name: CKIN + description: External clock mapped on the I2S_CKIN pin used as I2S clock source + value: 1 +enum/LSEDRV: + bit_size: 2 + variants: + - name: Low + description: Low drive capacity + value: 0 + - name: MediumHigh + description: Medium-high drive capacity + value: 1 + - name: MediumLow + description: Medium-low drive capacity + value: 2 + - name: High + description: High drive capacity + value: 3 +enum/MCO: + bit_size: 3 + variants: + - name: NoMCO + description: "MCO output disabled, no clock on MCO" + value: 0 + - name: LSI + description: Internal low speed (LSI) oscillator clock selected + value: 2 + - name: LSE + description: External low speed (LSE) oscillator clock selected + value: 3 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: Internal RC 8 MHz (HSI) oscillator clock selected + value: 5 + - name: HSE + description: External 4-32 MHz (HSE) oscillator clock selected + value: 6 + - name: PLL + description: "PLL clock selected (divided by 1 or 2, depending en PLLNODIV)" + value: 7 +enum/MCOPRE: + bit_size: 3 + variants: + - name: Div1 + description: MCO is divided by 1 + value: 0 + - name: Div2 + description: MCO is divided by 2 + value: 1 + - name: Div4 + description: MCO is divided by 4 + value: 2 + - name: Div8 + description: MCO is divided by 8 + value: 3 + - name: Div16 + description: MCO is divided by 16 + value: 4 + - name: Div32 + description: MCO is divided by 32 + value: 5 + - name: Div64 + description: MCO is divided by 64 + value: 6 + - name: Div128 + description: MCO is divided by 128 + value: 7 +enum/PLLMUL: + bit_size: 4 + variants: + - name: Mul2 + description: PLL input clock x2 + value: 0 + - name: Mul3 + description: PLL input clock x3 + value: 1 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul10 + description: PLL input clock x10 + value: 8 + - name: Mul11 + description: PLL input clock x11 + value: 9 + - name: Mul12 + description: PLL input clock x12 + value: 10 + - name: Mul13 + description: PLL input clock x13 + value: 11 + - name: Mul14 + description: PLL input clock x14 + value: 12 + - name: Mul15 + description: PLL input clock x15 + value: 13 + - name: Mul16 + description: PLL input clock x16 + value: 14 + - name: Mul16x + description: PLL input clock x16 + value: 15 +enum/PLLNODIV: + bit_size: 1 + variants: + - name: Div2 + description: PLL is divided by 2 for MCO + value: 0 + - name: Div1 + description: PLL is not divided for MCO + value: 1 +enum/PLLSRC: + bit_size: 2 + variants: + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSI_Div_PREDIV + description: HSI divided by PREDIV selected as PLL input clock + value: 1 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 2 +enum/PLLXTPRE: + bit_size: 1 + variants: + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 +enum/PREDIV: + bit_size: 4 + variants: + - name: Div1 + description: PREDIV input clock not divided + value: 0 + - name: Div2 + description: PREDIV input clock divided by 2 + value: 1 + - name: Div3 + description: PREDIV input clock divided by 3 + value: 2 + - name: Div4 + description: PREDIV input clock divided by 4 + value: 3 + - name: Div5 + description: PREDIV input clock divided by 5 + value: 4 + - name: Div6 + description: PREDIV input clock divided by 6 + value: 5 + - name: Div7 + description: PREDIV input clock divided by 7 + value: 6 + - name: Div8 + description: PREDIV input clock divided by 8 + value: 7 + - name: Div9 + description: PREDIV input clock divided by 9 + value: 8 + - name: Div10 + description: PREDIV input clock divided by 10 + value: 9 + - name: Div11 + description: PREDIV input clock divided by 11 + value: 10 + - name: Div12 + description: PREDIV input clock divided by 12 + value: 11 + - name: Div13 + description: PREDIV input clock divided by 13 + value: 12 + - name: Div14 + description: PREDIV input clock divided by 14 + value: 13 + - name: Div15 + description: PREDIV input clock divided by 15 + value: 14 + - name: Div16 + description: PREDIV input clock divided by 16 + value: 15 +enum/RTCSEL: + bit_size: 2 + variants: + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 +enum/SDPRE: + bit_size: 5 + variants: + - name: Div2 + description: SYSCLK divided by 2 + value: 0 + - name: Div4 + description: SYSCLK divided by 4 + value: 17 + - name: Div6 + description: SYSCLK divided by 6 + value: 18 + - name: Div8 + description: SYSCLK divided by 8 + value: 19 + - name: Div10 + description: SYSCLK divided by 10 + value: 20 + - name: Div12 + description: SYSCLK divided by 12 + value: 21 + - name: Div14 + description: SYSCLK divided by 14 + value: 22 + - name: Div16 + description: SYSCLK divided by 16 + value: 23 + - name: Div20 + description: SYSCLK divided by 20 + value: 24 + - name: Div24 + description: SYSCLK divided by 24 + value: 25 + - name: Div28 + description: SYSCLK divided by 28 + value: 26 + - name: Div32 + description: SYSCLK divided by 32 + value: 27 + - name: Div36 + description: SYSCLK divided by 36 + value: 28 + - name: Div40 + description: SYSCLK divided by 40 + value: 29 + - name: Div44 + description: SYSCLK divided by 44 + value: 30 + - name: Div48 + description: SYSCLK divided by 48 + value: 31 +enum/SW: + bit_size: 2 + variants: + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 +enum/SWS: + bit_size: 2 + variants: + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 +enum/TIMSW: + bit_size: 1 + variants: + - name: PCLK2 + description: PCLK2 clock (doubled frequency when prescaled) + value: 0 + - name: PLL + description: PLL vco output (running up to 144 MHz) + value: 1 +enum/USARTSW: + bit_size: 2 + variants: + - name: PCLK + description: PCLK selected as USART clock source + value: 0 + - name: SYSCLK + description: SYSCLK selected as USART clock source + value: 1 + - name: LSE + description: LSE selected as USART clock source + value: 2 + - name: HSI + description: HSI selected as USART clock source + value: 3 +enum/USBPRE: + bit_size: 1 + variants: + - name: DIV1_5 + description: PLL clock is divided by 1.5 + value: 0 + - name: DIV1 + description: PLL clock is not divided + value: 1 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 4d154ac..1edcc1c 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -171,6 +171,7 @@ impl PeriMatcher { (".*:DAC:F3_dacif_v1_1", ("dac", "v1", "DAC")), (".*:ADC:aditf_v2_5F1", ("adc", "f1", "ADC")), (".*:ADC:aditf5_v1_1", ("adc", "f3", "ADC")), + (".*:ADC:aditf_v2_5", ("adc", "f3_v2", "ADC")), (".*:ADC:aditf4_v1_1", ("adc", "v1", "ADC")), (".*:ADC:aditf2_v1_1", ("adc", "v2", "ADC")), (".*:ADC:aditf5_v2_0", ("adc", "v3", "ADC")), @@ -265,6 +266,7 @@ impl PeriMatcher { ("STM32F10[123].*:RCC:.*", ("rcc", "f1", "RCC")), ("STM32F10[57].*:RCC:.*", ("rcc", "f1cl", "RCC")), ("STM32F2.*:RCC:.*", ("rcc", "f2", "RCC")), + ("STM32F37.*:RCC:.*", ("rcc", "f3_v2", "RCC")), ("STM32F3.*:RCC:.*", ("rcc", "f3", "RCC")), ("STM32F410.*:RCC:.*", ("rcc", "f410", "RCC")), ("STM32F4.*:RCC:.*", ("rcc", "f4", "RCC")), From dff9c321f38b80504cfefdc17165794e8d802982 Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Mon, 7 Aug 2023 15:04:18 -0500 Subject: [PATCH 08/54] readd DBGMCU back into F3 and F3v2 --- data/registers/rcc_f3.yaml | 8 ++++++++ data/registers/rcc_f3_v2.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/data/registers/rcc_f3.yaml b/data/registers/rcc_f3.yaml index 583f36b..3516fef 100644 --- a/data/registers/rcc_f3.yaml +++ b/data/registers/rcc_f3.yaml @@ -389,6 +389,10 @@ fieldset/APB2ENR: description: TIM20 timer clock enable bit_offset: 20 bit_size: 1 + - name: DBGMCUEN + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 - name: HRTIM1EN description: High Resolution Timer 1 clock enable bit_offset: 29 @@ -440,6 +444,10 @@ fieldset/APB2RSTR: description: TIM20 timer reset bit_offset: 20 bit_size: 1 + - name: DBGMCURST + description: Debug MCU reset + bit_offset: 22 + bit_size: 1 - name: HRTIM1RST description: High Resolution Timer1 reset bit_offset: 29 diff --git a/data/registers/rcc_f3_v2.yaml b/data/registers/rcc_f3_v2.yaml index 87926df..7e4dfab 100644 --- a/data/registers/rcc_f3_v2.yaml +++ b/data/registers/rcc_f3_v2.yaml @@ -412,6 +412,10 @@ fieldset/APB2RSTR: description: TIM19 timer reset bit_offset: 19 bit_size: 1 + - name: DBGMCURST + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 - name: SDADC1RST description: SDADC1 (Sigma delta ADC 1) reset bit_offset: 24 From f4e0487ae54d03572f58a3b4cf3d79cab695c7f5 Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Tue, 8 Aug 2023 15:15:36 -0500 Subject: [PATCH 09/54] map all (most?) edge cases of ADC --- stm32-data-gen/src/rcc.rs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/stm32-data-gen/src/rcc.rs b/stm32-data-gen/src/rcc.rs index d4e17c6..a6052f9 100644 --- a/stm32-data-gen/src/rcc.rs +++ b/stm32-data-gen/src/rcc.rs @@ -79,6 +79,9 @@ impl PeripheralToClock { const PERI_OVERRIDE: &[(&str, &[&str])] = &[("DCMI", &["DCMI_PSSI"]), ("PSSI", &["DCMI_PSSI"])]; let clocks = self.0.get(rcc_block)?; + if peri_name.starts_with("ADC") { + return self.match_adc_peri_clock(clocks, peri_name); + } if let Some(res) = clocks.get(peri_name) { Some(res) } else if let Some(peri_name) = peri_name.strip_suffix('1') { @@ -94,4 +97,32 @@ impl PeripheralToClock { None } } + + fn match_adc_peri_clock<'a>( + &'a self, + clocks: &'a HashMap, + peri_name: &str, + ) -> Option<&stm32_data_serde::chip::core::peripheral::Rcc> { + // Direct match + if clocks.contains_key(peri_name) { + return clocks.get(peri_name); + } + + // Paired match based on odd/even + if let Some(digit_char) = peri_name.chars().last() { + if let Some(digit) = digit_char.to_digit(10) { + let paired = if digit % 2 == 1 { + format!("ADC{}{}", digit, digit + 1) + } else { + format!("ADC{}{}", digit - 1, digit) + }; + + if clocks.contains_key(paired.as_str()) { + return clocks.get(paired.as_str()); + } + } + } + + None + } } From 7b0a28e9893615d6a310db5b4d01adc0447fa615 Mon Sep 17 00:00:00 2001 From: Don Reilly Date: Wed, 9 Aug 2023 10:34:10 -0500 Subject: [PATCH 10/54] fixed missing edge case --- stm32-data-gen/src/rcc.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stm32-data-gen/src/rcc.rs b/stm32-data-gen/src/rcc.rs index a6052f9..34da8c0 100644 --- a/stm32-data-gen/src/rcc.rs +++ b/stm32-data-gen/src/rcc.rs @@ -79,7 +79,7 @@ impl PeripheralToClock { const PERI_OVERRIDE: &[(&str, &[&str])] = &[("DCMI", &["DCMI_PSSI"]), ("PSSI", &["DCMI_PSSI"])]; let clocks = self.0.get(rcc_block)?; - if peri_name.starts_with("ADC") { + if peri_name.starts_with("ADC") && !peri_name.contains("COMMON") { return self.match_adc_peri_clock(clocks, peri_name); } if let Some(res) = clocks.get(peri_name) { @@ -123,6 +123,11 @@ impl PeripheralToClock { } } + // Look for bare ADC clock register + if clocks.contains_key("ADC") { + return clocks.get("ADC"); + } + None } } From 6b2f2c3ac38936fe292ccd849aeea1d0c861d68a Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Fri, 18 Aug 2023 16:04:38 +0200 Subject: [PATCH 11/54] split H7 flash for stm32h7a3/b3/b0 chips --- data/registers/flash_h7ab.yaml | 637 +++++++++++++++++++++++++++++++++ stm32-data-gen/src/chips.rs | 1 + 2 files changed, 638 insertions(+) create mode 100644 data/registers/flash_h7ab.yaml diff --git a/data/registers/flash_h7ab.yaml b/data/registers/flash_h7ab.yaml new file mode 100644 index 0000000..d672f88 --- /dev/null +++ b/data/registers/flash_h7ab.yaml @@ -0,0 +1,637 @@ +--- +block/BANK: + description: "Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R" + items: + - name: KEYR + description: FLASH key register for bank 1 + byte_offset: 0 + access: Write + fieldset: KEYR + - name: CR + description: FLASH control register for bank 1 + byte_offset: 8 + fieldset: CR + - name: SR + description: FLASH status register for bank 1 + byte_offset: 12 + fieldset: SR + - name: CCR + description: FLASH clear control register for bank 1 + byte_offset: 16 + fieldset: CCR + - name: PRAR_CUR + description: FLASH protection address for bank 1 + byte_offset: 36 + access: Read + fieldset: PRAR_CUR + - name: PRAR_PRG + description: FLASH protection address for bank 1 + byte_offset: 40 + fieldset: PRAR_PRG + - name: SCAR_CUR + description: FLASH secure address for bank 1 + byte_offset: 44 + fieldset: SCAR_CUR + - name: SCAR_PRG + description: FLASH secure address for bank 1 + byte_offset: 48 + fieldset: SCAR_PRG + - name: WPSN_CURR + description: FLASH write sector protection for bank 1 + byte_offset: 52 + access: Read + fieldset: WPSN_CURR + - name: WPSN_PRGR + description: FLASH write sector protection for bank 1 + byte_offset: 56 + fieldset: WPSN_PRGR + - name: CRCCR + description: FLASH CRC control register for bank 1 + byte_offset: 76 + fieldset: CRCCR + - name: CRCSADDR + description: FLASH CRC start address register for bank 1 + byte_offset: 80 + fieldset: CRCSADDR + - name: CRCEADDR + description: FLASH CRC end address register for bank 1 + byte_offset: 84 + fieldset: CRCEADDR + - name: FAR + description: FLASH ECC fail address for bank 1 + byte_offset: 92 + access: Read + fieldset: FAR +block/FLASH: + description: Flash + items: + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: BANK + description: "Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R" + array: + len: 2 + stride: 256 + byte_offset: 4 + block: BANK + - name: OPTKEYR + description: FLASH option key register + byte_offset: 8 + fieldset: OPTKEYR + - name: OPTCR + description: FLASH option control register + byte_offset: 24 + fieldset: OPTCR + - name: OPTSR_CUR + description: FLASH option status register + byte_offset: 28 + fieldset: OPTSR_CUR + - name: OPTSR_PRG + description: FLASH option status register + byte_offset: 32 + fieldset: OPTSR_PRG + - name: OPTCCR + description: FLASH option clear control register + byte_offset: 36 + access: Write + fieldset: OPTCCR + - name: BOOT_CURR + description: FLASH register with boot address + byte_offset: 64 + access: Read + fieldset: BOOT_CURR + - name: BOOT_PRGR + description: FLASH register with boot address + byte_offset: 68 + fieldset: BOOT_PRGR + - name: CRCDATAR + description: FLASH CRC data register + byte_offset: 92 + fieldset: CRCDATAR +fieldset/ACR: + description: Access control register + fields: + - name: LATENCY + description: Read latency + bit_offset: 0 + bit_size: 3 + - name: WRHIGHFREQ + description: Flash signal delay + bit_offset: 4 + bit_size: 2 +fieldset/BOOT_CURR: + description: FLASH register with boot address + fields: + - name: BOOT_ADD0 + description: Boot address 0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot address 1 + bit_offset: 16 + bit_size: 16 +fieldset/BOOT_PRGR: + description: FLASH register with boot address + fields: + - name: BOOT_ADD0 + description: Boot address 0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot address 1 + bit_offset: 16 + bit_size: 16 +fieldset/CCR: + description: FLASH clear control register for bank 1 + fields: + - name: CLR_EOP + description: Bank 1 EOP1 flag clear bit + bit_offset: 16 + bit_size: 1 + - name: CLR_WRPERR + description: Bank 1 WRPERR1 flag clear bit + bit_offset: 17 + bit_size: 1 + - name: CLR_PGSERR + description: Bank 1 PGSERR1 flag clear bi + bit_offset: 18 + bit_size: 1 + - name: CLR_STRBERR + description: Bank 1 STRBERR1 flag clear bit + bit_offset: 19 + bit_size: 1 + - name: CLR_INCERR + description: Bank 1 INCERR1 flag clear bit + bit_offset: 21 + bit_size: 1 + - name: CLR_OPERR + description: Bank 1 OPERR1 flag clear bit + bit_offset: 22 + bit_size: 1 + - name: CLR_RDPERR + description: Bank 1 RDPERR1 flag clear bit + bit_offset: 23 + bit_size: 1 + - name: CLR_RDSERR + description: Bank 1 RDSERR1 flag clear bit + bit_offset: 24 + bit_size: 1 + - name: CLR_SNECCERR + description: Bank 1 SNECCERR1 flag clear bit + bit_offset: 25 + bit_size: 1 + - name: CLR_DBECCERR + description: Bank 1 DBECCERR1 flag clear bit + bit_offset: 26 + bit_size: 1 + - name: CLR_CRCEND + description: Bank 1 CRCEND1 flag clear bit + bit_offset: 27 + bit_size: 1 +fieldset/CR: + description: FLASH control register for bank 1 + fields: + - name: LOCK + description: Bank 1 configuration lock bit + bit_offset: 0 + bit_size: 1 + - name: PG + description: Bank 1 program enable bit + bit_offset: 1 + bit_size: 1 + - name: SER + description: Bank 1 sector erase request + bit_offset: 2 + bit_size: 1 + - name: BER + description: Bank 1 erase request + bit_offset: 3 + bit_size: 1 + - name: FW + description: Bank 1 write forcing control bit + bit_offset: 4 + bit_size: 1 + - name: START + description: Bank 1 bank or sector erase start control bit + bit_offset: 5 + bit_size: 1 + - name: SSN + description: Bank 1 sector erase selection number + bit_offset: 6 + bit_size: 7 + - name: CRC_EN + description: Bank 1 CRC control bit + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: Bank 1 end-of-program interrupt control bit + bit_offset: 16 + bit_size: 1 + - name: WRPERRIE + description: Bank 1 write protection error interrupt enable bit + bit_offset: 17 + bit_size: 1 + - name: PGSERRIE + description: Bank 1 programming sequence error interrupt enable bit + bit_offset: 18 + bit_size: 1 + - name: STRBERRIE + description: Bank 1 strobe error interrupt enable bit + bit_offset: 19 + bit_size: 1 + - name: INCERRIE + description: Bank 1 inconsistency error interrupt enable bit + bit_offset: 21 + bit_size: 1 + - name: OPERRIE + description: Bank 1 write/erase error interrupt enable bit + bit_offset: 22 + bit_size: 1 + - name: RDPERRIE + description: Bank 1 read protection error interrupt enable bit + bit_offset: 23 + bit_size: 1 + - name: RDSERRIE + description: Bank 1 secure error interrupt enable bit + bit_offset: 24 + bit_size: 1 + - name: SNECCERRIE + description: Bank 1 ECC single correction error interrupt enable bit + bit_offset: 25 + bit_size: 1 + - name: DBECCERRIE + description: Bank 1 ECC double detection error interrupt enable bit + bit_offset: 26 + bit_size: 1 + - name: CRCENDIE + description: Bank 1 end of CRC calculation interrupt enable bit + bit_offset: 27 + bit_size: 1 + - name: CRCRDERRIE + description: Bank 1 CRC read error interrupt enable bit + bit_offset: 28 + bit_size: 1 +fieldset/CRCCR: + description: FLASH CRC control register for bank 1 + fields: + - name: CRC_SECT + description: Bank 1 CRC sector number + bit_offset: 0 + bit_size: 3 + - name: ALL_BANK + description: Bank 1 CRC select bit + bit_offset: 7 + bit_size: 1 + - name: CRC_BY_SECT + description: Bank 1 CRC sector mode select bit + bit_offset: 8 + bit_size: 1 + - name: ADD_SECT + description: Bank 1 CRC sector select bit + bit_offset: 9 + bit_size: 1 + - name: CLEAN_SECT + description: Bank 1 CRC sector list clear bit + bit_offset: 10 + bit_size: 1 + - name: START_CRC + description: Bank 1 CRC start bit + bit_offset: 16 + bit_size: 1 + - name: CLEAN_CRC + description: Bank 1 CRC clear bit + bit_offset: 17 + bit_size: 1 + - name: CRC_BURST + description: Bank 1 CRC burst size + bit_offset: 20 + bit_size: 2 +fieldset/CRCDATAR: + description: FLASH CRC data register + fields: + - name: CRC_DATA + description: CRC result + bit_offset: 0 + bit_size: 32 +fieldset/CRCEADDR: + description: FLASH CRC end address register for bank 1 + fields: + - name: CRC_END_ADDR + description: CRC end address on bank 1 + bit_offset: 0 + bit_size: 32 +fieldset/CRCSADDR: + description: FLASH CRC start address register for bank 1 + fields: + - name: CRC_START_ADDR + description: CRC start address on bank 1 + bit_offset: 0 + bit_size: 32 +fieldset/FAR: + description: FLASH ECC fail address for bank 1 + fields: + - name: FAIL_ECC_ADDR + description: Bank 1 ECC error address + bit_offset: 0 + bit_size: 15 +fieldset/KEYR: + description: FLASH key register for bank 1 + fields: + - name: KEYR + description: Bank 1 access configuration unlock key + bit_offset: 0 + bit_size: 32 +fieldset/OPTCCR: + description: FLASH option clear control register + fields: + - name: CLR_OPTCHANGEERR + description: OPTCHANGEERR reset bit + bit_offset: 30 + bit_size: 1 +fieldset/OPTCR: + description: FLASH option control register + fields: + - name: OPTLOCK + description: FLASH_OPTCR lock option configuration bit + bit_offset: 0 + bit_size: 1 + - name: OPTSTART + description: Option byte start change option configuration bit + bit_offset: 1 + bit_size: 1 + - name: MER + description: Flash mass erase enable bit + bit_offset: 4 + bit_size: 1 + - name: OPTCHANGEERRIE + description: Option byte change error interrupt enable bit + bit_offset: 30 + bit_size: 1 + - name: SWAP_BANK + description: Bank swapping configuration bit + bit_offset: 31 + bit_size: 1 +fieldset/OPTKEYR: + description: FLASH option key register + fields: + - name: OPTKEYR + description: Unlock key option bytes + bit_offset: 0 + bit_size: 32 +fieldset/OPTSR_CUR: + description: FLASH option status register + fields: + - name: OPT_BUSY + description: Option byte change ongoing flag + bit_offset: 0 + bit_size: 1 + - name: BOR_LEV + description: Brownout level option status bit + bit_offset: 2 + bit_size: 2 + - name: IWDG1_HW + description: IWDG1 control option status bit + bit_offset: 4 + bit_size: 1 + - name: nRST_STOP_D1 + description: D1 DStop entry reset option status bit + bit_offset: 6 + bit_size: 1 + - name: nRST_STBY_D1 + description: D1 DStandby entry reset option status bit + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Readout protection level option status byte + bit_offset: 8 + bit_size: 8 + - name: FZ_IWDG_STOP + description: IWDG Stop mode freeze option status bit + bit_offset: 17 + bit_size: 1 + - name: FZ_IWDG_SDBY + description: IWDG Standby mode freeze option status bit + bit_offset: 18 + bit_size: 1 + - name: ST_RAM_SIZE + description: DTCM RAM size option status + bit_offset: 19 + bit_size: 2 + - name: SECURITY + description: Security enable option status bit + bit_offset: 21 + bit_size: 1 + - name: RSS1 + description: User option bit 1 + bit_offset: 26 + bit_size: 1 + - name: PERSO_OK + description: Device personalization status bit + bit_offset: 28 + bit_size: 1 + - name: IO_HSLV + description: I/O high-speed at low-voltage status bit (PRODUCT_BELOW_25V) + bit_offset: 29 + bit_size: 1 + - name: OPTCHANGEERR + description: Option byte change error flag + bit_offset: 30 + bit_size: 1 + - name: SWAP_BANK_OPT + description: Bank swapping option status bit + bit_offset: 31 + bit_size: 1 +fieldset/OPTSR_PRG: + description: FLASH option status register + fields: + - name: BOR_LEV + description: BOR reset level option configuration bits + bit_offset: 2 + bit_size: 2 + - name: IWDG1_HW + description: IWDG1 option configuration bit + bit_offset: 4 + bit_size: 1 + - name: nRST_STOP_D1 + description: Option byte erase after D1 DStop option configuration bit + bit_offset: 6 + bit_size: 1 + - name: nRST_STBY_D1 + description: Option byte erase after D1 DStandby option configuration bit + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Readout protection level option configuration byte + bit_offset: 8 + bit_size: 8 + - name: FZ_IWDG_STOP + description: IWDG Stop mode freeze option configuration bit + bit_offset: 17 + bit_size: 1 + - name: FZ_IWDG_SDBY + description: IWDG Standby mode freeze option configuration bit + bit_offset: 18 + bit_size: 1 + - name: ST_RAM_SIZE + description: DTCM size select option configuration bits + bit_offset: 19 + bit_size: 2 + - name: SECURITY + description: Security option configuration bit + bit_offset: 21 + bit_size: 1 + - name: RSS1 + description: User option configuration bit 1 + bit_offset: 26 + bit_size: 1 + - name: RSS2 + description: User option configuration bit 2 + bit_offset: 27 + bit_size: 1 + - name: IO_HSLV + description: I/O high-speed at low-voltage (PRODUCT_BELOW_25V) + bit_offset: 29 + bit_size: 1 + - name: SWAP_BANK_OPT + description: Bank swapping option configuration bit + bit_offset: 31 + bit_size: 1 +fieldset/PRAR_CUR: + description: FLASH protection address for bank 1 + fields: + - name: PROT_AREA_START + description: Bank 1 lowest PCROP protected address + bit_offset: 0 + bit_size: 12 + - name: PROT_AREA_END + description: Bank 1 highest PCROP protected address + bit_offset: 16 + bit_size: 12 + - name: DMEP + description: Bank 1 PCROP protected erase enable option status bit + bit_offset: 31 + bit_size: 1 +fieldset/PRAR_PRG: + description: FLASH protection address for bank 1 + fields: + - name: PROT_AREA_START + description: Bank 1 lowest PCROP protected address configuration + bit_offset: 0 + bit_size: 12 + - name: PROT_AREA_END + description: Bank 1 highest PCROP protected address configuration + bit_offset: 16 + bit_size: 12 + - name: DMEP + description: Bank 1 PCROP protected erase enable option configuration bit + bit_offset: 31 + bit_size: 1 +fieldset/SCAR_CUR: + description: FLASH secure address for bank 1 + fields: + - name: SEC_AREA_START + description: Bank 1 lowest secure protected address + bit_offset: 0 + bit_size: 12 + - name: SEC_AREA_END + description: Bank 1 highest secure protected address + bit_offset: 16 + bit_size: 12 + - name: DMES + description: Bank 1 secure protected erase enable option status bit + bit_offset: 31 + bit_size: 1 +fieldset/SCAR_PRG: + description: FLASH secure address for bank 1 + fields: + - name: SEC_AREA_START + description: Bank 1 lowest secure protected address configuration + bit_offset: 0 + bit_size: 12 + - name: SEC_AREA_END + description: Bank 1 highest secure protected address configuration + bit_offset: 16 + bit_size: 12 + - name: DMES + description: Bank 1 secure protected erase enable option configuration bit + bit_offset: 31 + bit_size: 1 +fieldset/SR: + description: FLASH status register for bank 1 + fields: + - name: BSY + description: Bank 1 ongoing program flag + bit_offset: 0 + bit_size: 1 + - name: WBNE + description: Bank 1 write buffer not empty flag + bit_offset: 1 + bit_size: 1 + - name: QW + description: Bank 1 wait queue flag + bit_offset: 2 + bit_size: 1 + - name: CRC_BUSY + description: Bank 1 CRC busy flag + bit_offset: 3 + bit_size: 1 + - name: EOP + description: Bank 1 end-of-program flag + bit_offset: 16 + bit_size: 1 + - name: WRPERR + description: Bank 1 write protection error flag + bit_offset: 17 + bit_size: 1 + - name: PGSERR + description: Bank 1 programming sequence error flag + bit_offset: 18 + bit_size: 1 + - name: STRBERR + description: Bank 1 strobe error flag + bit_offset: 19 + bit_size: 1 + - name: INCERR + description: Bank 1 inconsistency error flag + bit_offset: 21 + bit_size: 1 + - name: OPERR + description: Bank 1 write/erase error flag + bit_offset: 22 + bit_size: 1 + - name: RDPERR + description: Bank 1 read protection error flag + bit_offset: 23 + bit_size: 1 + - name: RDSERR + description: Bank 1 secure error flag + bit_offset: 24 + bit_size: 1 + - name: SNECCERR1 + description: Bank 1 single correction error flag + bit_offset: 25 + bit_size: 1 + - name: DBECCERR + description: Bank 1 ECC double detection error flag + bit_offset: 26 + bit_size: 1 + - name: CRCEND + description: Bank 1 CRC-complete flag + bit_offset: 27 + bit_size: 1 +fieldset/WPSN_CURR: + description: FLASH write sector protection for bank 1 + fields: + - name: WRPSn + description: Bank 1 sector write protection option status byte + bit_offset: 0 + bit_size: 8 +fieldset/WPSN_PRGR: + description: FLASH write sector protection for bank 1 + fields: + - name: WRPSn + description: Bank 1 sector write protection configuration byte + bit_offset: 0 + bit_size: 8 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 1edcc1c..9c8795c 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -322,6 +322,7 @@ impl PeriMatcher { ("STM32WB.*:PWR:.*", ("pwr", "wb55", "PWR")), ("STM32H50.*:PWR:.*", ("pwr", "h50", "PWR")), ("STM32H5.*:PWR:.*", ("pwr", "h5", "PWR")), + ("STM32H7(A3|B3|B0).*:FLASH:.*", ("flash", "h7ab", "FLASH")), ("STM32H7.*:FLASH:.*", ("flash", "h7", "FLASH")), ("STM32F0.*:FLASH:.*", ("flash", "f0", "FLASH")), ("STM32F1.*:FLASH:.*", ("flash", "f1", "FLASH")), From 114bd7fb46dd2ba539d63281dd75c1796ceeebf4 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 18 Aug 2023 22:43:11 +0200 Subject: [PATCH 12/54] h7/flash: add missing CRCRDERR --- data/registers/flash_h7.yaml | 12 ++++++++++++ data/registers/flash_h7ab.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/data/registers/flash_h7.yaml b/data/registers/flash_h7.yaml index 28363b1..c5cdd3b 100644 --- a/data/registers/flash_h7.yaml +++ b/data/registers/flash_h7.yaml @@ -190,6 +190,10 @@ fieldset/CCR: description: Bank 1 CRCEND1 flag clear bit bit_offset: 27 bit_size: 1 + - name: CLR_CRCRDERR + description: Bank 1 CRC read error clear bit + bit_offset: 28 + bit_size: 1 fieldset/CR: description: FLASH control register for bank 1 fields: @@ -273,6 +277,10 @@ fieldset/CR: description: Bank 1 end of CRC calculation interrupt enable bit bit_offset: 27 bit_size: 1 + - name: CRCRDERRIE + description: Bank 1 CRC read error interrupt enable bit + bit_offset: 28 + bit_size: 1 fieldset/CRCCR: description: FLASH CRC control register for bank 1 fields: @@ -621,6 +629,10 @@ fieldset/SR: description: Bank 1 CRC-complete flag bit_offset: 27 bit_size: 1 + - name: CRCRDERR + description: Bank 1 CRC read error flag + bit_offset: 28 + bit_size: 1 fieldset/WPSN_CURR: description: FLASH write sector protection for bank 1 fields: diff --git a/data/registers/flash_h7ab.yaml b/data/registers/flash_h7ab.yaml index d672f88..fe6e55a 100644 --- a/data/registers/flash_h7ab.yaml +++ b/data/registers/flash_h7ab.yaml @@ -190,6 +190,10 @@ fieldset/CCR: description: Bank 1 CRCEND1 flag clear bit bit_offset: 27 bit_size: 1 + - name: CLR_CRCRDERR + description: Bank 1 CRC read error clear bit + bit_offset: 28 + bit_size: 1 fieldset/CR: description: FLASH control register for bank 1 fields: @@ -365,6 +369,10 @@ fieldset/OPTCR: description: Flash mass erase enable bit bit_offset: 4 bit_size: 1 + - name: PG_OTP + description: OTP program control bit + bit_offset: 5 + bit_size: 1 - name: OPTCHANGEERRIE description: Option byte change error interrupt enable bit bit_offset: 30 @@ -621,6 +629,10 @@ fieldset/SR: description: Bank 1 CRC-complete flag bit_offset: 27 bit_size: 1 + - name: CRCRDERR + description: Bank 1 CRC read error flag + bit_offset: 28 + bit_size: 1 fieldset/WPSN_CURR: description: FLASH write sector protection for bank 1 fields: From 3685c36e0a57f29de97bcaaaab951cfc60289123 Mon Sep 17 00:00:00 2001 From: Daehyeok Mun Date: Sat, 19 Aug 2023 18:44:22 -0700 Subject: [PATCH 13/54] Fix wrong perimap link on README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a5dec42..09b715b 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ are only interested in one. It's easier than it looks, and doing all families at - Cleanup the register yamls (see below). - Minimize the diff between each pair of versions. For example between `lpuart_v1.yaml` and `lpuart_v2.yaml`. If one is missing enums or descriptions, copy it from another. - Make sure the block -- Add entries to [`perimap`](https://github.com/embassy-rs/stm32-data/blob/main/stm32data/__main__.py#L84), see below. +- Add entries to [`perimap`](https://github.com/embassy-rs/stm32-data/blob/main/stm32-data-gen/src/chips.rs#L109), see below. - Regen, check `data/chips/*.yaml` has the right `block: lpuart_vX/LPUART` fields Please separate manual changes and changes resulting from regen in separate commits. It helps tremendously with review and rebasing/merging. From 6146d254333a1feaff62f57c79b6cba68a1bf650 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sun, 27 Aug 2023 10:06:24 -0500 Subject: [PATCH 14/54] pwr/wl5: remove some enums --- data/registers/pwr_wl5.yaml | 70 ------------------------------------- 1 file changed, 70 deletions(-) diff --git a/data/registers/pwr_wl5.yaml b/data/registers/pwr_wl5.yaml index 858653a..c9a0e77 100644 --- a/data/registers/pwr_wl5.yaml +++ b/data/registers/pwr_wl5.yaml @@ -147,7 +147,6 @@ fieldset/CR1: description: Disable backup domain write protection bit_offset: 8 bit_size: 1 - enum: DBP - name: VOS description: Voltage scaling range selection bit_offset: 9 @@ -175,7 +174,6 @@ fieldset/CR2: description: "Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V" bit_offset: 6 bit_size: 1 - enum: PVME fieldset/CR3: description: Power control register 3 fields: @@ -186,17 +184,14 @@ fieldset/CR3: array: len: 3 stride: 1 - enum: EWUP - name: EULPEN description: Ultra-low-power enable bit_offset: 7 bit_size: 1 - enum: EULPEN - name: EWPVD description: Enable wakeup PVD for CPU1 bit_offset: 8 bit_size: 1 - enum: EWPVD - name: RRS description: SRAM2 retention in Standby mode bit_offset: 9 @@ -206,7 +201,6 @@ fieldset/CR3: description: Apply pull-up and pull-down configuration from CPU1 bit_offset: 10 bit_size: 1 - enum: APC - name: EWRFBUSY description: Enable Radio BUSY Wakeup from Standby for CPU1 bit_offset: 11 @@ -225,7 +219,6 @@ fieldset/CR3: description: Enable internal wakeup line for CPU1 bit_offset: 15 bit_size: 1 - enum: EIWUL fieldset/CR4: description: Power control register 4 fields: @@ -467,15 +460,6 @@ fieldset/SUBGHZSPICR: bit_offset: 15 bit_size: 1 enum: NSS -enum/APC: - bit_size: 1 - variants: - - name: Disabled - description: I/O pull-up and pull-down configurations defined in the PWR_PUCRx and PWR_PDCRx registers are applied - value: 0 - - name: Enabled - description: PWR_PUCRx and PWR_PDCRx registers are NOT applied to the I/Os - value: 1 enum/CDS: bit_size: 1 variants: @@ -503,42 +487,6 @@ enum/CSTOPF: - name: Stop description: System has been in Stop 2 mode value: 1 -enum/DBP: - bit_size: 1 - variants: - - name: Disabled - description: Access to RTC and backup registers disabled - value: 0 - - name: Enabled - description: Access to RTC and backup registers enabled - value: 1 -enum/EIWUL: - bit_size: 1 - variants: - - name: Disabled - description: Internal wakeup line interrupt to CPU disabled - value: 0 - - name: Enabled - description: Internal wakeup line interrupt to CPU enabled - value: 1 -enum/EULPEN: - bit_size: 1 - variants: - - name: Disabled - description: Disable (the supply voltage is monitored continuously) - value: 0 - - name: Enabled - description: "Enable, when set, the supply voltage is sampled for PDR/BOR reset condition only periodically" - value: 1 -enum/EWPVD: - bit_size: 1 - variants: - - name: Disabled - description: PVD not enabled by the sub-GHz radio active state - value: 0 - - name: Enabled - description: PVD enabled while the sub-GHz radio is active - value: 1 enum/EWRFBUSY: bit_size: 1 variants: @@ -557,15 +505,6 @@ enum/EWRFIRQ: - name: Enabled description: "Radio IRQ[2:0] is enabled and triggers a wakeup from Standby event to CPU." value: 1 -enum/EWUP: - bit_size: 1 - variants: - - name: Disabled - description: WKUP pin 3 is used for general purpose I/Os. An event on the WKUP pin 3 does not wakeup the device from Standby mode - value: 0 - - name: Enabled - description: WKUP pin 3 is used for wakeup from Standby mode and forced in input pull down configuration (rising edge on WKUP pin 3wakes-up the system from Standby mode) - value: 1 enum/FLASHRDY: bit_size: 1 variants: @@ -683,15 +622,6 @@ enum/PVDO: - name: Below description: VDD or voltage level on PVD_IN below the selected PVD threshold value: 1 -enum/PVME: - bit_size: 1 - variants: - - name: Disabled - description: PVM3 (VDDA monitoring versus 1.62 V threshold) disable - value: 0 - - name: Enabled - description: PVM3 (VDDA monitoring versus 1.62 V threshold) enable - value: 1 enum/PVMO: bit_size: 1 variants: From 82f8d72be77b4098278966f54c865e9fd8d8e555 Mon Sep 17 00:00:00 2001 From: ExplodingWaffle Date: Fri, 1 Sep 2023 15:59:29 +0100 Subject: [PATCH 15/54] add ucpd --- data/registers/ucpd_v1.yaml | 1140 +++++++++++++++++++++++++++++++++++ stm32-data-gen/src/chips.rs | 1 + 2 files changed, 1141 insertions(+) create mode 100644 data/registers/ucpd_v1.yaml diff --git a/data/registers/ucpd_v1.yaml b/data/registers/ucpd_v1.yaml new file mode 100644 index 0000000..4d1908d --- /dev/null +++ b/data/registers/ucpd_v1.yaml @@ -0,0 +1,1140 @@ +--- +block/UCPD: + description: USB Power Delivery interface + items: + - name: UCPD_CFGR1 + description: "UCPD configuration register 1 " + byte_offset: 0 + fieldset: UCPD_CFGR1 + - name: UCPD_CFGR2 + description: "UCPD configuration register 2 " + byte_offset: 4 + fieldset: UCPD_CFGR2 + - name: UCPD_CFGR3 + description: "UCPD configuration register 3 " + byte_offset: 8 + fieldset: UCPD_CFGR3 + - name: UCPD_CR + description: "UCPD control register " + byte_offset: 12 + fieldset: UCPD_CR + - name: UCPD_IMR + description: "UCPD interrupt mask register " + byte_offset: 16 + fieldset: UCPD_IMR + - name: UCPD_SR + description: "UCPD status register " + byte_offset: 20 + fieldset: UCPD_SR + - name: UCPD_ICR + description: "UCPD interrupt clear register " + byte_offset: 24 + fieldset: UCPD_ICR + - name: UCPD_TX_ORDSETR + description: "UCPD Tx ordered set type register " + byte_offset: 28 + fieldset: UCPD_TX_ORDSETR + - name: UCPD_TX_PAYSZR + description: "UCPD Tx payload size register " + byte_offset: 32 + fieldset: UCPD_TX_PAYSZR + - name: UCPD_TXDR + description: "UCPD Tx data register " + byte_offset: 36 + fieldset: UCPD_TXDR + - name: UCPD_RX_ORDSETR + byte_offset: 40 + fieldset: UCPD_RX_ORDSETR + - name: UCPD_RX_PAYSZR + byte_offset: 44 + fieldset: UCPD_RX_PAYSZR + - name: UCPD_RXDR + byte_offset: 48 + fieldset: UCPD_RXDR + - name: UCPD_RX_ORDEXTR1 + description: "UCPD Rx ordered set extension register 1 \t" + byte_offset: 52 + fieldset: UCPD_RX_ORDEXTR1 + - name: UCPD_RX_ORDEXTR2 + description: "UCPD Rx ordered set extension register 2 \t" + byte_offset: 56 + fieldset: UCPD_RX_ORDEXTR2 +fieldset/UCPD_CFGR1: + description: "UCPD configuration register 1 " + fields: + - name: HBITCLKDIV + description: "Division ratio for producing half-bit clock\r The bitfield determines the division ratio (the bitfield value plus one) of a ucpd_clk divider producing half-bit clock (hbit_clk)." + bit_offset: 0 + bit_size: 6 + enum: HBITCLKDIV + - name: IFRGAP + description: "Division ratio for producing inter-frame gap timer clock\r The bitfield determines the division ratio (the bitfield value minus one) of a ucpd_clk divider producing inter-frame gap timer clock (tInterFrameGap).\r The division ratio 15 is to apply for Tx clock at the USB PD 2.0 specification nominal value. The division ratios below 15 are to apply for Tx clock below nominal, and the division ratios above 15 for Tx clock above nominal." + bit_offset: 6 + bit_size: 5 + enum: IFRGAP + - name: TRANSWIN + description: "Transition window duration\r The bitfield determines the division ratio (the bitfield value minus one) of a hbit_clk divider producing tTransitionWindow interval.\r Set a value that produces an interval of 12 to 20 us, taking into account the ucpd_clk frequency and the HBITCLKDIV[5:0] bitfield setting." + bit_offset: 11 + bit_size: 5 + enum: TRANSWIN + - name: PSC_USBPDCLK + description: "Pre-scaler division ratio for generating ucpd_clk\r The bitfield determines the division ratio of a kernel clock pre-scaler producing UCPD peripheral clock (ucpd_clk).\r It is recommended to use the pre-scaler so as to set the ucpd_clk frequency in the range from 6 to 9 MHz." + bit_offset: 17 + bit_size: 3 + enum: PSC_USBPDCLK + - name: RXORDSETEN + description: "Receiver ordered set enable\r The bitfield determines the types of ordered sets that the receiver must detect. When set/cleared, each bit enables/disables a specific function:\r 0bxxxxxxxx1: SOP detect enabled\r 0bxxxxxxx1x: SOP' detect enabled\r 0bxxxxxx1xx: SOP'' detect enabled\r 0bxxxxx1xxx: Hard Reset detect enabled\r 0bxxxx1xxxx: Cable Detect reset enabled\r 0bxxx1xxxxx: SOP'_Debug enabled\r 0bxx1xxxxxx: SOP''_Debug enabled\r 0bx1xxxxxxx: SOP extension#1 enabled\r 0b1xxxxxxxx: SOP extension#2 enabled" + bit_offset: 20 + bit_size: 9 + - name: TXDMAEN + description: "Transmission DMA mode enable\r When set, the bit enables DMA mode for transmission." + bit_offset: 29 + bit_size: 1 + enum: TXDMAEN + - name: RXDMAEN + description: "Reception DMA mode enable\r When set, the bit enables DMA mode for reception." + bit_offset: 30 + bit_size: 1 + enum: RXDMAEN + - name: UCPDEN + description: "UCPD peripheral enable\r General enable of the UCPD peripheral.\r Upon disabling, the peripheral instantly quits any ongoing activity and all control bits and bitfields default to their reset values. They must be set to their desired values each time the peripheral transits from disabled to enabled state." + bit_offset: 31 + bit_size: 1 + enum: UCPDEN +fieldset/UCPD_CFGR2: + description: "UCPD configuration register 2 " + fields: + - name: RXFILTDIS + description: "BMC decoder Rx pre-filter enable\r The sampling clock is that of the receiver (that is, after pre-scaler)." + bit_offset: 0 + bit_size: 1 + enum: RXFILTDIS + - name: RXFILT2N3 + description: "BMC decoder Rx pre-filter sampling method\r Number of consistent consecutive samples before confirming a new value." + bit_offset: 1 + bit_size: 1 + enum: RXFILT2N3 + - name: FORCECLK + description: Force ClkReq clock request + bit_offset: 2 + bit_size: 1 + enum: FORCECLK + - name: WUPEN + description: "Wakeup from Stop mode enable\r Setting the bit enables the UCPD_ASYNC_INT signal." + bit_offset: 3 + bit_size: 1 + enum: WUPEN +fieldset/UCPD_CFGR3: + description: "UCPD configuration register 3 " + fields: + - name: TRIM1_NG_CCRPD + description: SW trim value for RPD resistors on the CC1 line + bit_offset: 0 + bit_size: 4 + - name: TRIM1_NG_CC3A0 + description: SW trim value for Iref on the CC1 line + bit_offset: 9 + bit_size: 4 + - name: TRIM2_NG_CCRPD + description: SW trim value for RPD resistors on the CC2 line + bit_offset: 16 + bit_size: 4 + - name: TRIM2_NG_CC3A0 + description: SW trim value for Iref on the CC2 line + bit_offset: 25 + bit_size: 4 +fieldset/UCPD_CR: + description: "UCPD control register " + fields: + - name: TXMODE + description: "Type of Tx packet\r Writing the bitfield triggers the action as follows, depending on the value:\r Others: invalid\r From V1.1 of the USB PD specification, there is a counter defined for the duration of the BIST Carrier Mode 2. To quit this mode correctly (after the \"tBISTContMode\" delay), disable the peripheral (UCPDEN = 0)." + bit_offset: 0 + bit_size: 2 + enum: TXMODE + - name: TXSEND + description: "Command to send a Tx packet\r The bit is cleared by hardware as soon as the packet transmission begins or is discarded." + bit_offset: 2 + bit_size: 1 + enum: TXSEND + - name: TXHRST + description: "Command to send a Tx Hard Reset\r The bit is cleared by hardware as soon as the message transmission begins or is discarded." + bit_offset: 3 + bit_size: 1 + enum: TXHRST + - name: RXMODE + description: "Receiver mode\r Determines the mode of the receiver.\r When the bit is set, RXORDSET behaves normally, RXDR no longer receives bytes yet the CRC checking still proceeds as for a normal message." + bit_offset: 4 + bit_size: 1 + enum: RXMODE + - name: PHYRXEN + description: "USB Power Delivery receiver enable\r Both CC1 and CC2 receivers are disabled when the bit is cleared. Only the CC receiver selected via the PHYCCSEL bit is enabled when the bit is set." + bit_offset: 5 + bit_size: 1 + enum: PHYRXEN + - name: PHYCCSEL + description: "CC1/CC2 line selector for USB Power Delivery signaling\r The selection depends on the cable orientation as discovered at attach." + bit_offset: 6 + bit_size: 1 + enum: PHYCCSEL + - name: ANASUBMODE + description: "Analog PHY sub-mode\r Refer to TYPEC_VSTATE_CCx for the effect of this bitfield." + bit_offset: 7 + bit_size: 2 + - name: ANAMODE + description: "Analog PHY operating mode\r The use of CC1 and CC2 depends on CCENABLE. Refer to ANAMODE, ANASUBMODE and link with TYPEC_VSTATE_CCx for the effect of this bitfield in conjunction with ANASUBMODE[1:0]." + bit_offset: 9 + bit_size: 1 + enum: ANAMODE + - name: CCENABLE + description: "CC line enable\r This bitfield enables CC1 and CC2 line analog PHYs (pull-ups and pull-downs) according to ANAMODE and ANASUBMODE[1:0] setting.\r A single line PHY can be enabled when, for example, the other line is driven by VCONN via an external VCONN switch. Enabling both PHYs is the normal usage for sink/source." + bit_offset: 10 + bit_size: 2 + enum: CCENABLE + - name: CC1VCONNEN + description: VCONN switch enable for CC1 + bit_offset: 13 + bit_size: 1 + enum: CC1VCONNEN + - name: CC2VCONNEN + description: VCONN switch enable for CC2 + bit_offset: 14 + bit_size: 1 + enum: CC2VCONNEN + - name: FRSRXEN + description: "FRS event detection enable\r Setting the bit enables FRS Rx event (FRSEVT) detection on the CC line selected through the PHYCCSEL bit. 0: Disable\r Clear the bit when the device is attached to an FRS-incapable source/sink." + bit_offset: 16 + bit_size: 1 + enum: FRSRXEN + - name: FRSTX + description: "FRS Tx signaling enable.\r Setting the bit enables FRS Tx signaling.\r The bit is cleared by hardware after a delay respecting the USB Power Delivery specification Revision 3.0." + bit_offset: 17 + bit_size: 1 + enum: FRSTX + - name: RDCH + description: "Rdch condition drive\r The bit drives Rdch condition on the CC line selected through the PHYCCSEL bit (thus associated with VCONN), by remaining set during the source-only UnattachedWait.SRC state, to respect the Type-C state. Refer to \"USB Type-C ECN for Source VCONN Discharge\". The CCENABLE[1:0] bitfield must be set accordingly, too." + bit_offset: 18 + bit_size: 1 + enum: RDCH + - name: CC1TCDIS + description: "CC1 Type-C detector disable\r The bit disables the Type-C detector on the CC1 line.\r When enabled, the Type-C detector for CC1 is configured through ANAMODE and ANASUBMODE[1:0]." + bit_offset: 20 + bit_size: 1 + enum: CC1TCDIS + - name: CC2TCDIS + description: "CC2 Type-C detector disable\r The bit disables the Type-C detector on the CC2 line.\r When enabled, the Type-C detector for CC2 is configured through ANAMODE and ANASUBMODE[1:0]." + bit_offset: 21 + bit_size: 1 + enum: CC2TCDIS +fieldset/UCPD_ICR: + description: "UCPD interrupt clear register " + fields: + - name: TXMSGDISCCF + description: "Tx message discard flag (TXMSGDISC) clear\r Setting the bit clears the TXMSGDISC flag in the UCPD_SR register." + bit_offset: 1 + bit_size: 1 + - name: TXMSGSENTCF + description: "Tx message send flag (TXMSGSENT) clear\r Setting the bit clears the TXMSGSENT flag in the UCPD_SR register." + bit_offset: 2 + bit_size: 1 + - name: TXMSGABTCF + description: "Tx message abort flag (TXMSGABT) clear\r Setting the bit clears the TXMSGABT flag in the UCPD_SR register." + bit_offset: 3 + bit_size: 1 + - name: HRSTDISCCF + description: "Hard reset discard flag (HRSTDISC) clear\r Setting the bit clears the HRSTDISC flag in the UCPD_SR register." + bit_offset: 4 + bit_size: 1 + - name: HRSTSENTCF + description: "Hard reset send flag (HRSTSENT) clear\r Setting the bit clears the HRSTSENT flag in the UCPD_SR register." + bit_offset: 5 + bit_size: 1 + - name: TXUNDCF + description: "Tx underflow flag (TXUND) clear\r Setting the bit clears the TXUND flag in the UCPD_SR register." + bit_offset: 6 + bit_size: 1 + - name: RXORDDETCF + description: "Rx ordered set detect flag (RXORDDET) clear\r Setting the bit clears the RXORDDET flag in the UCPD_SR register." + bit_offset: 9 + bit_size: 1 + - name: RXHRSTDETCF + description: "Rx Hard Reset detect flag (RXHRSTDET) clear\r Setting the bit clears the RXHRSTDET flag in the UCPD_SR register." + bit_offset: 10 + bit_size: 1 + - name: RXOVRCF + description: "Rx overflow flag (RXOVR) clear\r Setting the bit clears the RXOVR flag in the UCPD_SR register." + bit_offset: 11 + bit_size: 1 + - name: RXMSGENDCF + description: "Rx message received flag (RXMSGEND) clear\r Setting the bit clears the RXMSGEND flag in the UCPD_SR register." + bit_offset: 12 + bit_size: 1 + - name: TYPECEVT1CF + description: "Type-C CC1 event flag (TYPECEVT1) clear\r Setting the bit clears the TYPECEVT1 flag in the UCPD_SR register" + bit_offset: 14 + bit_size: 1 + - name: TYPECEVT2CF + description: "Type-C CC2 line event flag (TYPECEVT2) clear\r Setting the bit clears the TYPECEVT2 flag in the UCPD_SR register" + bit_offset: 15 + bit_size: 1 + - name: FRSEVTCF + description: "FRS event flag (FRSEVT) clear\r Setting the bit clears the FRSEVT flag in the UCPD_SR register." + bit_offset: 20 + bit_size: 1 +fieldset/UCPD_IMR: + description: "UCPD interrupt mask register " + fields: + - name: TXISIE + description: TXIS interrupt enable + bit_offset: 0 + bit_size: 1 + enum: TXISIE + - name: TXMSGDISCIE + description: TXMSGDISC interrupt enable + bit_offset: 1 + bit_size: 1 + enum: TXMSGDISCIE + - name: TXMSGSENTIE + description: TXMSGSENT interrupt enable + bit_offset: 2 + bit_size: 1 + enum: TXMSGSENTIE + - name: TXMSGABTIE + description: TXMSGABT interrupt enable + bit_offset: 3 + bit_size: 1 + enum: TXMSGABTIE + - name: HRSTDISCIE + description: HRSTDISC interrupt enable + bit_offset: 4 + bit_size: 1 + enum: HRSTDISCIE + - name: HRSTSENTIE + description: HRSTSENT interrupt enable + bit_offset: 5 + bit_size: 1 + enum: HRSTSENTIE + - name: TXUNDIE + description: TXUND interrupt enable + bit_offset: 6 + bit_size: 1 + enum: TXUNDIE + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 8 + bit_size: 1 + enum: RXNEIE + - name: RXORDDETIE + description: RXORDDET interrupt enable + bit_offset: 9 + bit_size: 1 + enum: RXORDDETIE + - name: RXHRSTDETIE + description: RXHRSTDET interrupt enable + bit_offset: 10 + bit_size: 1 + enum: RXHRSTDETIE + - name: RXOVRIE + description: RXOVR interrupt enable + bit_offset: 11 + bit_size: 1 + enum: RXOVRIE + - name: RXMSGENDIE + description: RXMSGEND interrupt enable + bit_offset: 12 + bit_size: 1 + enum: RXMSGENDIE + - name: TYPECEVT1IE + description: TYPECEVT1 interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TYPECEVT2IE + description: TYPECEVT2 interrupt enable + bit_offset: 15 + bit_size: 1 + enum: TYPECEVT2IE + - name: FRSEVTIE + description: FRSEVT interrupt enable + bit_offset: 20 + bit_size: 1 + enum: FRSEVTIE +fieldset/UCPD_RXDR: + fields: + - name: RXDATA + description: Data byte received + bit_offset: 0 + bit_size: 8 +fieldset/UCPD_RX_ORDEXTR1: + description: "UCPD Rx ordered set extension register 1 \t" + fields: + - name: RXSOPX1 + description: "Ordered set 1 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." + bit_offset: 0 + bit_size: 20 +fieldset/UCPD_RX_ORDEXTR2: + description: "UCPD Rx ordered set extension register 2 \t" + fields: + - name: RXSOPX2 + description: "Ordered set 2 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." + bit_offset: 0 + bit_size: 20 +fieldset/UCPD_RX_ORDSETR: + fields: + - name: RXORDSET + description: Rx ordered set code detected + bit_offset: 0 + bit_size: 3 + enum: RXORDSET + - name: RXSOP3OF4 + description: The bit indicates the number of correct K‑codes. For debug purposes only. + bit_offset: 3 + bit_size: 1 + enum: RXSOP3OF4 + - name: RXSOPKINVALID + description: "The bitfield is for debug purposes only.\r Others: Invalid" + bit_offset: 4 + bit_size: 3 + enum: RXSOPKINVALID +fieldset/UCPD_RX_PAYSZR: + fields: + - name: RXPAYSZ + description: "Rx payload size received\r This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the UCPD_RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled).\r The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low)." + bit_offset: 0 + bit_size: 10 +fieldset/UCPD_SR: + description: "UCPD status register " + fields: + - name: TXIS + description: "Transmit interrupt status\r The flag indicates that the UCPD_TXDR register is empty and new data write is required (as the amount of data sent has not reached the payload size defined in the TXPAYSZ bitfield). The flag is cleared with the data write into the UCPD_TXDR register." + bit_offset: 0 + bit_size: 1 + enum: TXIS + - name: TXMSGDISC + description: "Message transmission discarded\r The flag indicates that a message transmission was dropped. The flag is cleared by setting the TXMSGDISCCF bit.\r Transmission of a message can be dropped if there is a concurrent receive in progress or at excessive noise on the line. After a Tx message is discarded, the flag is only raised when the CC line becomes idle." + bit_offset: 1 + bit_size: 1 + enum: TXMSGDISC + - name: TXMSGSENT + description: "Message transmission completed\r The flag indicates the completion of packet transmission. It is cleared by setting the TXMSGSENTCF bit.\r In the event of a message transmission interrupted by a Hard Reset, the flag is not raised." + bit_offset: 2 + bit_size: 1 + enum: TXMSGSENT + - name: TXMSGABT + description: "Transmit message abort\r The flag indicates that a Tx message is aborted due to a subsequent Hard Reset message send request taking priority during transmit. It is cleared by setting the TXMSGABTCF bit." + bit_offset: 3 + bit_size: 1 + enum: TXMSGABT + - name: HRSTDISC + description: "Hard Reset discarded\r The flag indicates that the Hard Reset message is discarded. The flag is cleared by setting the HRSTDISCCF bit." + bit_offset: 4 + bit_size: 1 + enum: HRSTDISC + - name: HRSTSENT + description: "Hard Reset message sent\r The flag indicates that the Hard Reset message is sent. The flag is cleared by setting the HRSTSENTCF bit." + bit_offset: 5 + bit_size: 1 + enum: HRSTSENT + - name: TXUND + description: "Tx data underrun detection\r The flag indicates that the Tx data register (UCPD_TXDR) was not written in time for a transmit message to execute normally. It is cleared by setting the TXUNDCF bit." + bit_offset: 6 + bit_size: 1 + enum: TXUND + - name: RXNE + description: "Receive data register not empty detection\r The flag indicates that the UCPD_RXDR register is not empty. It is automatically cleared upon reading UCPD_RXDR." + bit_offset: 8 + bit_size: 1 + enum: RXNE + - name: RXORDDET + description: "Rx ordered set (4 K-codes) detection\r The flag indicates the detection of an ordered set. The relevant information is stored in the RXORDSET[2:0] bitfield of the UCPD_RX_ORDSET register. It is cleared by setting the RXORDDETCF bit." + bit_offset: 9 + bit_size: 1 + enum: RXORDDET + - name: RXHRSTDET + description: "Rx Hard Reset receipt detection\r The flag indicates the receipt of valid Hard Reset message. It is cleared by setting the RXHRSTDETCF bit." + bit_offset: 10 + bit_size: 1 + enum: RXHRSTDET + - name: RXOVR + description: "Rx data overflow detection\r The flag indicates Rx data buffer overflow. It is cleared by setting the RXOVRCF bit.\r The buffer overflow can occur if the received data are not read fast enough." + bit_offset: 11 + bit_size: 1 + enum: RXOVR + - name: RXMSGEND + description: "Rx message received\r The flag indicates whether a message (except Hard Reset message) has been received, regardless the CRC value. The flag is cleared by setting the RXMSGENDCF bit.\r The RXERR flag set when the RXMSGEND flag goes high indicates errors in the last-received message." + bit_offset: 12 + bit_size: 1 + enum: RXMSGEND + - name: RXERR + description: "Receive message error\r The flag indicates errors of the last Rx message declared (via RXMSGEND), such as incorrect CRC or truncated message (a line becoming static before EOP is met). It is asserted whenever the RXMSGEND flag is set." + bit_offset: 13 + bit_size: 1 + enum: RXERR + - name: TYPECEVT1 + description: "Type-C voltage level event on CC1 line\r The flag indicates a change of the TYPEC_VSTATE_CC1[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." + bit_offset: 14 + bit_size: 1 + enum: TYPECEVT1 + - name: TYPECEVT2 + description: "Type-C voltage level event on CC2 line\r The flag indicates a change of the TYPEC_VSTATE_CC2[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." + bit_offset: 15 + bit_size: 1 + enum: TYPECEVT2 + - name: TYPEC_VSTATE_CC1 + description: "The status bitfield indicates the voltage level on the CC1 line in its steady state.\r The voltage variation on the CC1 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." + bit_offset: 16 + bit_size: 2 + enum: TYPEC_VSTATE_CC1 + - name: TYPEC_VSTATE_CC2 + description: "CC2 line voltage level\r The status bitfield indicates the voltage level on the CC2 line in its steady state.\r The voltage variation on the CC2 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." + bit_offset: 18 + bit_size: 2 + enum: TYPEC_VSTATE_CC2 + - name: FRSEVT + description: "FRS detection event\r The flag is cleared by setting the FRSEVTCF bit." + bit_offset: 20 + bit_size: 1 + enum: FRSEVT +fieldset/UCPD_TXDR: + description: "UCPD Tx data register " + fields: + - name: TXDATA + description: Data byte to transmit + bit_offset: 0 + bit_size: 8 +fieldset/UCPD_TX_ORDSETR: + description: "UCPD Tx ordered set type register " + fields: + - name: TXORDSET + description: "Ordered set to transmit\r The bitfield determines a full 20-bit sequence to transmit, consisting of four K-codes, each of five bits, defining the packet to transmit. The bit 0 (bit 0 of K-code1) is the first, the bit 19 (bit 4 of K‑code4) the last." + bit_offset: 0 + bit_size: 20 +fieldset/UCPD_TX_PAYSZR: + description: "UCPD Tx payload size register " + fields: + - name: TXPAYSZ + description: "Payload size yet to transmit\r The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the UCPD_TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission." + bit_offset: 0 + bit_size: 10 +enum/ANAMODE: + bit_size: 1 + variants: + - name: B_0x0 + description: Source + value: 0 + - name: B_0x1 + description: Sink + value: 1 +enum/CC1TCDIS: + bit_size: 1 + variants: + - name: B_0x0 + description: Enable + value: 0 + - name: B_0x1 + description: Disable + value: 1 +enum/CC1VCONNEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/CC2TCDIS: + bit_size: 1 + variants: + - name: B_0x0 + description: Enable + value: 0 + - name: B_0x1 + description: Disable + value: 1 +enum/CC2VCONNEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/CCENABLE: + bit_size: 2 + variants: + - name: B_0x0 + description: "Disable both PHYs " + value: 0 + - name: B_0x1 + description: Enable CC1 PHY + value: 1 + - name: B_0x2 + description: Enable CC2 PHY + value: 2 + - name: B_0x3 + description: Enable CC1 and CC2 PHY + value: 3 +enum/FORCECLK: + bit_size: 1 + variants: + - name: B_0x0 + description: Do not force clock request + value: 0 + - name: B_0x1 + description: Force clock request + value: 1 +enum/FRSEVT: + bit_size: 1 + variants: + - name: B_0x0 + description: No new event + value: 0 + - name: B_0x1 + description: New FRS receive event occurred + value: 1 +enum/FRSEVTIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/FRSRXEN: + bit_size: 1 + variants: + - name: B_0x1 + description: Enable + value: 1 +enum/FRSTX: + bit_size: 1 + variants: + - name: B_0x0 + description: No effect + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/HBITCLKDIV: + bit_size: 6 + variants: + - name: B_0x0 + description: 1 (bypass) + value: 0 + - name: B_0x1A + description: "27" + value: 26 + - name: B_0x3F + description: "64" + value: 63 +enum/HRSTDISC: + bit_size: 1 + variants: + - name: B_0x0 + description: No Hard Reset discarded + value: 0 + - name: B_0x1 + description: Hard Reset discarded + value: 1 +enum/HRSTDISCIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/HRSTSENT: + bit_size: 1 + variants: + - name: B_0x0 + description: No Hard Reset message sent + value: 0 + - name: B_0x1 + description: Hard Reset message sent + value: 1 +enum/HRSTSENTIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/IFRGAP: + bit_size: 5 + variants: + - name: B_0x0 + description: Not supported + value: 0 + - name: B_0x1 + description: "2" + value: 1 + - name: B_0xD + description: "14 " + value: 13 + - name: B_0xE + description: "15 " + value: 14 + - name: B_0xF + description: "16 " + value: 15 + - name: B_0x1F + description: "32" + value: 31 +enum/PHYCCSEL: + bit_size: 1 + variants: + - name: B_0x0 + description: Use CC1 IO for Power Delivery communication + value: 0 + - name: B_0x1 + description: Use CC2 IO for Power Delivery communication + value: 1 +enum/PHYRXEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/PSC_USBPDCLK: + bit_size: 3 + variants: + - name: B_0x0 + description: 1 (bypass) + value: 0 + - name: B_0x1 + description: "2" + value: 1 + - name: B_0x2 + description: "4" + value: 2 + - name: B_0x3 + description: "8" + value: 3 + - name: B_0x4 + description: "16" + value: 4 +enum/RDCH: + bit_size: 1 + variants: + - name: B_0x0 + description: No effect + value: 0 + - name: B_0x1 + description: Rdch condition drive + value: 1 +enum/RXDMAEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/RXERR: + bit_size: 1 + variants: + - name: B_0x0 + description: No error detected + value: 0 + - name: B_0x1 + description: Error(s) detected + value: 1 +enum/RXFILT2N3: + bit_size: 1 + variants: + - name: B_0x0 + description: 3 samples + value: 0 + - name: B_0x1 + description: 2 samples + value: 1 +enum/RXFILTDIS: + bit_size: 1 + variants: + - name: B_0x0 + description: Enable + value: 0 + - name: B_0x1 + description: Disable + value: 1 +enum/RXHRSTDET: + bit_size: 1 + variants: + - name: B_0x0 + description: Hard Reset not received + value: 0 + - name: B_0x1 + description: Hard Reset received + value: 1 +enum/RXHRSTDETIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/RXMODE: + bit_size: 1 + variants: + - name: B_0x0 + description: Normal receive mode + value: 0 + - name: B_0x1 + description: BIST receive mode (BIST test data mode) + value: 1 +enum/RXMSGEND: + bit_size: 1 + variants: + - name: B_0x0 + description: No new Rx message received + value: 0 + - name: B_0x1 + description: A new Rx message received + value: 1 +enum/RXMSGENDIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/RXNE: + bit_size: 1 + variants: + - name: B_0x0 + description: Rx data register empty + value: 0 + - name: B_0x1 + description: Rx data register not empty + value: 1 +enum/RXNEIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/RXORDDET: + bit_size: 1 + variants: + - name: B_0x0 + description: No ordered set detected + value: 0 + - name: B_0x1 + description: A new ordered set detected + value: 1 +enum/RXORDDETIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/RXORDSET: + bit_size: 3 + variants: + - name: B_0x0 + description: SOP code detected in receiver + value: 0 + - name: B_0x1 + description: "SOP' code detected in receiver" + value: 1 + - name: B_0x2 + description: "SOP'' code detected in receiver" + value: 2 + - name: B_0x3 + description: "SOP'_Debug detected in receiver" + value: 3 + - name: B_0x4 + description: "SOP''_Debug detected in receiver" + value: 4 + - name: B_0x5 + description: Cable Reset detected in receiver + value: 5 + - name: B_0x6 + description: "SOP extension#1 detected in receiver" + value: 6 + - name: B_0x7 + description: "SOP extension#2 detected in receiver" + value: 7 +enum/RXOVR: + bit_size: 1 + variants: + - name: B_0x0 + description: No overflow + value: 0 + - name: B_0x1 + description: Overflow + value: 1 +enum/RXOVRIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/RXSOP3OF4: + bit_size: 1 + variants: + - name: B_0x0 + description: 4 correct K‑codes out of 4‑ + value: 0 + - name: B_0x1 + description: 3 correct K‑codes out of 4‑ + value: 1 +enum/RXSOPKINVALID: + bit_size: 3 + variants: + - name: B_0x0 + description: No K‑code corrupted + value: 0 + - name: B_0x1 + description: First K‑code corrupted + value: 1 + - name: B_0x2 + description: Second K‑code corrupted + value: 2 + - name: B_0x3 + description: Third K‑code corrupted + value: 3 + - name: B_0x4 + description: Fourth K‑code corrupted + value: 4 +enum/TRANSWIN: + bit_size: 5 + variants: + - name: B_0x0 + description: Not supported + value: 0 + - name: B_0x1 + description: "2" + value: 1 + - name: B_0x9 + description: 10 (recommended) + value: 9 + - name: B_0x1F + description: "32" + value: 31 +enum/TXDMAEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TXHRST: + bit_size: 1 + variants: + - name: B_0x0 + description: No effect + value: 0 + - name: B_0x1 + description: Start Tx Hard Reset message + value: 1 +enum/TXIS: + bit_size: 1 + variants: + - name: B_0x0 + description: New Tx data write not required + value: 0 + - name: B_0x1 + description: New Tx data write required + value: 1 +enum/TXISIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TXMODE: + bit_size: 2 + variants: + - name: B_0x0 + description: Transmission of Tx packet previously defined in other registers + value: 0 + - name: B_0x1 + description: Cable Reset sequence + value: 1 + - name: B_0x2 + description: BIST test sequence (BIST Carrier Mode 2) + value: 2 +enum/TXMSGABT: + bit_size: 1 + variants: + - name: B_0x0 + description: No transmit message abort + value: 0 + - name: B_0x1 + description: Transmit message abort + value: 1 +enum/TXMSGABTIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TXMSGDISC: + bit_size: 1 + variants: + - name: B_0x0 + description: No Tx message discarded + value: 0 + - name: B_0x1 + description: Tx message discarded + value: 1 +enum/TXMSGDISCIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TXMSGSENT: + bit_size: 1 + variants: + - name: B_0x0 + description: No Tx message completed + value: 0 + - name: B_0x1 + description: Tx message completed + value: 1 +enum/TXMSGSENTIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TXSEND: + bit_size: 1 + variants: + - name: B_0x0 + description: No effect + value: 0 + - name: B_0x1 + description: Start Tx packet transmission + value: 1 +enum/TXUND: + bit_size: 1 + variants: + - name: B_0x0 + description: No Tx data underrun detected + value: 0 + - name: B_0x1 + description: Tx data underrun detected + value: 1 +enum/TXUNDIE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TYPECEVT1: + bit_size: 1 + variants: + - name: B_0x0 + description: No new event + value: 0 + - name: B_0x1 + description: A new Type-C event + value: 1 +enum/TYPECEVT2: + bit_size: 1 + variants: + - name: B_0x0 + description: No new event + value: 0 + - name: B_0x1 + description: A new Type-C event + value: 1 +enum/TYPECEVT2IE: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/TYPEC_VSTATE_CC1: + bit_size: 2 + variants: + - name: B_0x0 + description: Lowest + value: 0 + - name: B_0x1 + description: Low + value: 1 + - name: B_0x2 + description: High + value: 2 + - name: B_0x3 + description: Highest + value: 3 +enum/TYPEC_VSTATE_CC2: + bit_size: 2 + variants: + - name: B_0x0 + description: Lowest + value: 0 + - name: B_0x1 + description: Low + value: 1 + - name: B_0x2 + description: High + value: 2 + - name: B_0x3 + description: Highest + value: 3 +enum/UCPDEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 +enum/WUPEN: + bit_size: 1 + variants: + - name: B_0x0 + description: Disable + value: 0 + - name: B_0x1 + description: Enable + value: 1 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 9c8795c..c06cc91 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -420,6 +420,7 @@ impl PeriMatcher { (".*:LCD:lcdc1_v1.2.*", ("lcd", "v2", "LCD")), (".*:LCD:lcdc1_v1.3.*", ("lcd", "v2", "LCD")), (".*:UID:.*", ("uid", "v1", "UID")), + (".*:UCPD:.*", ("ucpd", "v1", "UCPD")), ]; Self { From 30dcf3cabebd53c427d80e2455ddc2b5482dfa90 Mon Sep 17 00:00:00 2001 From: ExplodingWaffle Date: Fri, 1 Sep 2023 16:24:11 +0100 Subject: [PATCH 16/54] remove UCPD_ prefixes, remove unneeded enums --- data/registers/ucpd_v1.yaml | 737 +++++------------------------------- 1 file changed, 96 insertions(+), 641 deletions(-) diff --git a/data/registers/ucpd_v1.yaml b/data/registers/ucpd_v1.yaml index 4d1908d..48de1ca 100644 --- a/data/registers/ucpd_v1.yaml +++ b/data/registers/ucpd_v1.yaml @@ -2,86 +2,83 @@ block/UCPD: description: USB Power Delivery interface items: - - name: UCPD_CFGR1 - description: "UCPD configuration register 1 " + - name: CFGR1 + description: "configuration register 1 " byte_offset: 0 - fieldset: UCPD_CFGR1 - - name: UCPD_CFGR2 - description: "UCPD configuration register 2 " + fieldset: CFGR1 + - name: CFGR2 + description: "configuration register 2 " byte_offset: 4 - fieldset: UCPD_CFGR2 - - name: UCPD_CFGR3 - description: "UCPD configuration register 3 " + fieldset: CFGR2 + - name: CFGR3 + description: "configuration register 3 " byte_offset: 8 - fieldset: UCPD_CFGR3 - - name: UCPD_CR - description: "UCPD control register " + fieldset: CFGR3 + - name: CR + description: "control register " byte_offset: 12 - fieldset: UCPD_CR - - name: UCPD_IMR - description: "UCPD interrupt mask register " + fieldset: CR + - name: IMR + description: "interrupt mask register " byte_offset: 16 - fieldset: UCPD_IMR - - name: UCPD_SR - description: "UCPD status register " + fieldset: IMR + - name: SR + description: "status register " byte_offset: 20 - fieldset: UCPD_SR - - name: UCPD_ICR - description: "UCPD interrupt clear register " + fieldset: SR + - name: ICR + description: "interrupt clear register " byte_offset: 24 - fieldset: UCPD_ICR - - name: UCPD_TX_ORDSETR - description: "UCPD Tx ordered set type register " + fieldset: ICR + - name: TX_ORDSETR + description: "Tx ordered set type register " byte_offset: 28 - fieldset: UCPD_TX_ORDSETR - - name: UCPD_TX_PAYSZR - description: "UCPD Tx payload size register " + fieldset: TX_ORDSETR + - name: TX_PAYSZR + description: "Tx payload size register " byte_offset: 32 - fieldset: UCPD_TX_PAYSZR - - name: UCPD_TXDR - description: "UCPD Tx data register " + fieldset: TX_PAYSZR + - name: TXDR + description: "Tx data register " byte_offset: 36 - fieldset: UCPD_TXDR - - name: UCPD_RX_ORDSETR + fieldset: TXDR + - name: RX_ORDSETR byte_offset: 40 - fieldset: UCPD_RX_ORDSETR - - name: UCPD_RX_PAYSZR + fieldset: RX_ORDSETR + - name: RX_PAYSZR byte_offset: 44 - fieldset: UCPD_RX_PAYSZR - - name: UCPD_RXDR + fieldset: RX_PAYSZR + - name: RXDR byte_offset: 48 - fieldset: UCPD_RXDR - - name: UCPD_RX_ORDEXTR1 - description: "UCPD Rx ordered set extension register 1 \t" + fieldset: RXDR + - name: RX_ORDEXTR1 + description: "Rx ordered set extension register 1 \t" byte_offset: 52 - fieldset: UCPD_RX_ORDEXTR1 - - name: UCPD_RX_ORDEXTR2 - description: "UCPD Rx ordered set extension register 2 \t" + fieldset: RX_ORDEXTR1 + - name: RX_ORDEXTR2 + description: "Rx ordered set extension register 2 \t" byte_offset: 56 - fieldset: UCPD_RX_ORDEXTR2 -fieldset/UCPD_CFGR1: - description: "UCPD configuration register 1 " + fieldset: RX_ORDEXTR2 + # TODO: IPVER, IPID and MID from g0[7, 8]1? do we care? +fieldset/CFGR1: + description: "configuration register 1 " fields: - name: HBITCLKDIV - description: "Division ratio for producing half-bit clock\r The bitfield determines the division ratio (the bitfield value plus one) of a ucpd_clk divider producing half-bit clock (hbit_clk)." + description: "Division ratio for producing half-bit clock\r The bitfield determines the division ratio (the bitfield value plus one) of a clk divider producing half-bit clock (hbit_clk)." bit_offset: 0 bit_size: 6 - enum: HBITCLKDIV - name: IFRGAP - description: "Division ratio for producing inter-frame gap timer clock\r The bitfield determines the division ratio (the bitfield value minus one) of a ucpd_clk divider producing inter-frame gap timer clock (tInterFrameGap).\r The division ratio 15 is to apply for Tx clock at the USB PD 2.0 specification nominal value. The division ratios below 15 are to apply for Tx clock below nominal, and the division ratios above 15 for Tx clock above nominal." + description: "Division ratio for producing inter-frame gap timer clock\r The bitfield determines the division ratio (the bitfield value minus one) of a clk divider producing inter-frame gap timer clock (tInterFrameGap).\r The division ratio 15 is to apply for Tx clock at the USB PD 2.0 specification nominal value. The division ratios below 15 are to apply for Tx clock below nominal, and the division ratios above 15 for Tx clock above nominal." bit_offset: 6 bit_size: 5 - enum: IFRGAP - name: TRANSWIN - description: "Transition window duration\r The bitfield determines the division ratio (the bitfield value minus one) of a hbit_clk divider producing tTransitionWindow interval.\r Set a value that produces an interval of 12 to 20 us, taking into account the ucpd_clk frequency and the HBITCLKDIV[5:0] bitfield setting." + description: "Transition window duration\r The bitfield determines the division ratio (the bitfield value minus one) of a hbit_clk divider producing tTransitionWindow interval.\r Set a value that produces an interval of 12 to 20 us, taking into account the clk frequency and the HBITCLKDIV[5:0] bitfield setting." bit_offset: 11 bit_size: 5 - enum: TRANSWIN - name: PSC_USBPDCLK - description: "Pre-scaler division ratio for generating ucpd_clk\r The bitfield determines the division ratio of a kernel clock pre-scaler producing UCPD peripheral clock (ucpd_clk).\r It is recommended to use the pre-scaler so as to set the ucpd_clk frequency in the range from 6 to 9 MHz." + description: "Pre-scaler division ratio for generating clk\r The bitfield determines the division ratio of a kernel clock pre-scaler producing peripheral clock (clk).\r It is recommended to use the pre-scaler so as to set the clk frequency in the range from 6 to 9 MHz." bit_offset: 17 bit_size: 3 - enum: PSC_USBPDCLK - name: RXORDSETEN description: "Receiver ordered set enable\r The bitfield determines the types of ordered sets that the receiver must detect. When set/cleared, each bit enables/disables a specific function:\r 0bxxxxxxxx1: SOP detect enabled\r 0bxxxxxxx1x: SOP' detect enabled\r 0bxxxxxx1xx: SOP'' detect enabled\r 0bxxxxx1xxx: Hard Reset detect enabled\r 0bxxxx1xxxx: Cable Detect reset enabled\r 0bxxx1xxxxx: SOP'_Debug enabled\r 0bxx1xxxxxx: SOP''_Debug enabled\r 0bx1xxxxxxx: SOP extension#1 enabled\r 0b1xxxxxxxx: SOP extension#2 enabled" bit_offset: 20 @@ -90,25 +87,21 @@ fieldset/UCPD_CFGR1: description: "Transmission DMA mode enable\r When set, the bit enables DMA mode for transmission." bit_offset: 29 bit_size: 1 - enum: TXDMAEN - name: RXDMAEN description: "Reception DMA mode enable\r When set, the bit enables DMA mode for reception." bit_offset: 30 bit_size: 1 - enum: RXDMAEN - name: UCPDEN - description: "UCPD peripheral enable\r General enable of the UCPD peripheral.\r Upon disabling, the peripheral instantly quits any ongoing activity and all control bits and bitfields default to their reset values. They must be set to their desired values each time the peripheral transits from disabled to enabled state." + description: "peripheral enable\r General enable of the peripheral.\r Upon disabling, the peripheral instantly quits any ongoing activity and all control bits and bitfields default to their reset values. They must be set to their desired values each time the peripheral transits from disabled to enabled state." bit_offset: 31 bit_size: 1 - enum: UCPDEN -fieldset/UCPD_CFGR2: - description: "UCPD configuration register 2 " +fieldset/CFGR2: + description: "configuration register 2 " fields: - name: RXFILTDIS description: "BMC decoder Rx pre-filter enable\r The sampling clock is that of the receiver (that is, after pre-scaler)." bit_offset: 0 bit_size: 1 - enum: RXFILTDIS - name: RXFILT2N3 description: "BMC decoder Rx pre-filter sampling method\r Number of consistent consecutive samples before confirming a new value." bit_offset: 1 @@ -118,14 +111,12 @@ fieldset/UCPD_CFGR2: description: Force ClkReq clock request bit_offset: 2 bit_size: 1 - enum: FORCECLK - name: WUPEN - description: "Wakeup from Stop mode enable\r Setting the bit enables the UCPD_ASYNC_INT signal." + description: "Wakeup from Stop mode enable\r Setting the bit enables the ASYNC_INT signal." bit_offset: 3 bit_size: 1 - enum: WUPEN -fieldset/UCPD_CFGR3: - description: "UCPD configuration register 3 " +fieldset/CFGR3: + description: "configuration register 3 " fields: - name: TRIM1_NG_CCRPD description: SW trim value for RPD resistors on the CC1 line @@ -143,8 +134,8 @@ fieldset/UCPD_CFGR3: description: SW trim value for Iref on the CC2 line bit_offset: 25 bit_size: 4 -fieldset/UCPD_CR: - description: "UCPD control register " +fieldset/CR: + description: "control register " fields: - name: TXMODE description: "Type of Tx packet\r Writing the bitfield triggers the action as follows, depending on the value:\r Others: invalid\r From V1.1 of the USB PD specification, there is a counter defined for the duration of the BIST Carrier Mode 2. To quit this mode correctly (after the \"tBISTContMode\" delay), disable the peripheral (UCPDEN = 0)." @@ -155,17 +146,14 @@ fieldset/UCPD_CR: description: "Command to send a Tx packet\r The bit is cleared by hardware as soon as the packet transmission begins or is discarded." bit_offset: 2 bit_size: 1 - enum: TXSEND - name: TXHRST description: "Command to send a Tx Hard Reset\r The bit is cleared by hardware as soon as the message transmission begins or is discarded." bit_offset: 3 bit_size: 1 - enum: TXHRST - name: RXMODE description: "Receiver mode\r Determines the mode of the receiver.\r When the bit is set, RXORDSET behaves normally, RXDR no longer receives bytes yet the CRC checking still proceeds as for a normal message." bit_offset: 4 bit_size: 1 - enum: RXMODE - name: PHYRXEN description: "USB Power Delivery receiver enable\r Both CC1 and CC2 receivers are disabled when the bit is cleared. Only the CC receiver selected via the PHYCCSEL bit is enabled when the bit is set." bit_offset: 5 @@ -194,155 +182,136 @@ fieldset/UCPD_CR: description: VCONN switch enable for CC1 bit_offset: 13 bit_size: 1 - enum: CC1VCONNEN - name: CC2VCONNEN description: VCONN switch enable for CC2 bit_offset: 14 bit_size: 1 - enum: CC2VCONNEN - name: FRSRXEN description: "FRS event detection enable\r Setting the bit enables FRS Rx event (FRSEVT) detection on the CC line selected through the PHYCCSEL bit. 0: Disable\r Clear the bit when the device is attached to an FRS-incapable source/sink." bit_offset: 16 bit_size: 1 - enum: FRSRXEN - name: FRSTX description: "FRS Tx signaling enable.\r Setting the bit enables FRS Tx signaling.\r The bit is cleared by hardware after a delay respecting the USB Power Delivery specification Revision 3.0." bit_offset: 17 bit_size: 1 - enum: FRSTX - name: RDCH description: "Rdch condition drive\r The bit drives Rdch condition on the CC line selected through the PHYCCSEL bit (thus associated with VCONN), by remaining set during the source-only UnattachedWait.SRC state, to respect the Type-C state. Refer to \"USB Type-C ECN for Source VCONN Discharge\". The CCENABLE[1:0] bitfield must be set accordingly, too." bit_offset: 18 bit_size: 1 - enum: RDCH - name: CC1TCDIS description: "CC1 Type-C detector disable\r The bit disables the Type-C detector on the CC1 line.\r When enabled, the Type-C detector for CC1 is configured through ANAMODE and ANASUBMODE[1:0]." bit_offset: 20 bit_size: 1 - enum: CC1TCDIS - name: CC2TCDIS description: "CC2 Type-C detector disable\r The bit disables the Type-C detector on the CC2 line.\r When enabled, the Type-C detector for CC2 is configured through ANAMODE and ANASUBMODE[1:0]." bit_offset: 21 bit_size: 1 - enum: CC2TCDIS -fieldset/UCPD_ICR: - description: "UCPD interrupt clear register " +fieldset/ICR: + description: "interrupt clear register " fields: - name: TXMSGDISCCF - description: "Tx message discard flag (TXMSGDISC) clear\r Setting the bit clears the TXMSGDISC flag in the UCPD_SR register." + description: "Tx message discard flag (TXMSGDISC) clear\r Setting the bit clears the TXMSGDISC flag in the SR register." bit_offset: 1 bit_size: 1 - name: TXMSGSENTCF - description: "Tx message send flag (TXMSGSENT) clear\r Setting the bit clears the TXMSGSENT flag in the UCPD_SR register." + description: "Tx message send flag (TXMSGSENT) clear\r Setting the bit clears the TXMSGSENT flag in the SR register." bit_offset: 2 bit_size: 1 - name: TXMSGABTCF - description: "Tx message abort flag (TXMSGABT) clear\r Setting the bit clears the TXMSGABT flag in the UCPD_SR register." + description: "Tx message abort flag (TXMSGABT) clear\r Setting the bit clears the TXMSGABT flag in the SR register." bit_offset: 3 bit_size: 1 - name: HRSTDISCCF - description: "Hard reset discard flag (HRSTDISC) clear\r Setting the bit clears the HRSTDISC flag in the UCPD_SR register." + description: "Hard reset discard flag (HRSTDISC) clear\r Setting the bit clears the HRSTDISC flag in the SR register." bit_offset: 4 bit_size: 1 - name: HRSTSENTCF - description: "Hard reset send flag (HRSTSENT) clear\r Setting the bit clears the HRSTSENT flag in the UCPD_SR register." + description: "Hard reset send flag (HRSTSENT) clear\r Setting the bit clears the HRSTSENT flag in the SR register." bit_offset: 5 bit_size: 1 - name: TXUNDCF - description: "Tx underflow flag (TXUND) clear\r Setting the bit clears the TXUND flag in the UCPD_SR register." + description: "Tx underflow flag (TXUND) clear\r Setting the bit clears the TXUND flag in the SR register." bit_offset: 6 bit_size: 1 - name: RXORDDETCF - description: "Rx ordered set detect flag (RXORDDET) clear\r Setting the bit clears the RXORDDET flag in the UCPD_SR register." + description: "Rx ordered set detect flag (RXORDDET) clear\r Setting the bit clears the RXORDDET flag in the SR register." bit_offset: 9 bit_size: 1 - name: RXHRSTDETCF - description: "Rx Hard Reset detect flag (RXHRSTDET) clear\r Setting the bit clears the RXHRSTDET flag in the UCPD_SR register." + description: "Rx Hard Reset detect flag (RXHRSTDET) clear\r Setting the bit clears the RXHRSTDET flag in the SR register." bit_offset: 10 bit_size: 1 - name: RXOVRCF - description: "Rx overflow flag (RXOVR) clear\r Setting the bit clears the RXOVR flag in the UCPD_SR register." + description: "Rx overflow flag (RXOVR) clear\r Setting the bit clears the RXOVR flag in the SR register." bit_offset: 11 bit_size: 1 - name: RXMSGENDCF - description: "Rx message received flag (RXMSGEND) clear\r Setting the bit clears the RXMSGEND flag in the UCPD_SR register." + description: "Rx message received flag (RXMSGEND) clear\r Setting the bit clears the RXMSGEND flag in the SR register." bit_offset: 12 bit_size: 1 - name: TYPECEVT1CF - description: "Type-C CC1 event flag (TYPECEVT1) clear\r Setting the bit clears the TYPECEVT1 flag in the UCPD_SR register" + description: "Type-C CC1 event flag (TYPECEVT1) clear\r Setting the bit clears the TYPECEVT1 flag in the SR register" bit_offset: 14 bit_size: 1 - name: TYPECEVT2CF - description: "Type-C CC2 line event flag (TYPECEVT2) clear\r Setting the bit clears the TYPECEVT2 flag in the UCPD_SR register" + description: "Type-C CC2 line event flag (TYPECEVT2) clear\r Setting the bit clears the TYPECEVT2 flag in the SR register" bit_offset: 15 bit_size: 1 - name: FRSEVTCF - description: "FRS event flag (FRSEVT) clear\r Setting the bit clears the FRSEVT flag in the UCPD_SR register." + description: "FRS event flag (FRSEVT) clear\r Setting the bit clears the FRSEVT flag in the SR register." bit_offset: 20 bit_size: 1 -fieldset/UCPD_IMR: - description: "UCPD interrupt mask register " +fieldset/IMR: + description: "interrupt mask register " fields: - name: TXISIE description: TXIS interrupt enable bit_offset: 0 bit_size: 1 - enum: TXISIE - name: TXMSGDISCIE description: TXMSGDISC interrupt enable bit_offset: 1 bit_size: 1 - enum: TXMSGDISCIE - name: TXMSGSENTIE description: TXMSGSENT interrupt enable bit_offset: 2 bit_size: 1 - enum: TXMSGSENTIE - name: TXMSGABTIE description: TXMSGABT interrupt enable bit_offset: 3 bit_size: 1 - enum: TXMSGABTIE - name: HRSTDISCIE description: HRSTDISC interrupt enable bit_offset: 4 bit_size: 1 - enum: HRSTDISCIE - name: HRSTSENTIE description: HRSTSENT interrupt enable bit_offset: 5 bit_size: 1 - enum: HRSTSENTIE - name: TXUNDIE description: TXUND interrupt enable bit_offset: 6 bit_size: 1 - enum: TXUNDIE - name: RXNEIE description: RXNE interrupt enable bit_offset: 8 bit_size: 1 - enum: RXNEIE - name: RXORDDETIE description: RXORDDET interrupt enable bit_offset: 9 bit_size: 1 - enum: RXORDDETIE - name: RXHRSTDETIE description: RXHRSTDET interrupt enable bit_offset: 10 bit_size: 1 - enum: RXHRSTDETIE - name: RXOVRIE description: RXOVR interrupt enable bit_offset: 11 bit_size: 1 - enum: RXOVRIE - name: RXMSGENDIE description: RXMSGEND interrupt enable bit_offset: 12 bit_size: 1 - enum: RXMSGENDIE - name: TYPECEVT1IE description: TYPECEVT1 interrupt enable bit_offset: 14 @@ -351,33 +320,31 @@ fieldset/UCPD_IMR: description: TYPECEVT2 interrupt enable bit_offset: 15 bit_size: 1 - enum: TYPECEVT2IE - name: FRSEVTIE description: FRSEVT interrupt enable bit_offset: 20 bit_size: 1 - enum: FRSEVTIE -fieldset/UCPD_RXDR: +fieldset/RXDR: fields: - name: RXDATA description: Data byte received bit_offset: 0 bit_size: 8 -fieldset/UCPD_RX_ORDEXTR1: - description: "UCPD Rx ordered set extension register 1 \t" +fieldset/RX_ORDEXTR1: + description: "Rx ordered set extension register 1 \t" fields: - name: RXSOPX1 description: "Ordered set 1 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." bit_offset: 0 bit_size: 20 -fieldset/UCPD_RX_ORDEXTR2: - description: "UCPD Rx ordered set extension register 2 \t" +fieldset/RX_ORDEXTR2: + description: "Rx ordered set extension register 2 \t" fields: - name: RXSOPX2 description: "Ordered set 2 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." bit_offset: 0 bit_size: 20 -fieldset/UCPD_RX_ORDSETR: +fieldset/RX_ORDSETR: fields: - name: RXORDSET description: Rx ordered set code detected @@ -388,96 +355,80 @@ fieldset/UCPD_RX_ORDSETR: description: The bit indicates the number of correct K‑codes. For debug purposes only. bit_offset: 3 bit_size: 1 - enum: RXSOP3OF4 - name: RXSOPKINVALID description: "The bitfield is for debug purposes only.\r Others: Invalid" bit_offset: 4 bit_size: 3 enum: RXSOPKINVALID -fieldset/UCPD_RX_PAYSZR: +fieldset/RX_PAYSZR: fields: - name: RXPAYSZ - description: "Rx payload size received\r This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the UCPD_RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled).\r The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low)." + description: "Rx payload size received\r This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled).\r The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low)." bit_offset: 0 bit_size: 10 -fieldset/UCPD_SR: - description: "UCPD status register " +fieldset/SR: + description: "status register " fields: - name: TXIS - description: "Transmit interrupt status\r The flag indicates that the UCPD_TXDR register is empty and new data write is required (as the amount of data sent has not reached the payload size defined in the TXPAYSZ bitfield). The flag is cleared with the data write into the UCPD_TXDR register." + description: "Transmit interrupt status\r The flag indicates that the TXDR register is empty and new data write is required (as the amount of data sent has not reached the payload size defined in the TXPAYSZ bitfield). The flag is cleared with the data write into the TXDR register." bit_offset: 0 bit_size: 1 - enum: TXIS - name: TXMSGDISC description: "Message transmission discarded\r The flag indicates that a message transmission was dropped. The flag is cleared by setting the TXMSGDISCCF bit.\r Transmission of a message can be dropped if there is a concurrent receive in progress or at excessive noise on the line. After a Tx message is discarded, the flag is only raised when the CC line becomes idle." bit_offset: 1 bit_size: 1 - enum: TXMSGDISC - name: TXMSGSENT description: "Message transmission completed\r The flag indicates the completion of packet transmission. It is cleared by setting the TXMSGSENTCF bit.\r In the event of a message transmission interrupted by a Hard Reset, the flag is not raised." bit_offset: 2 bit_size: 1 - enum: TXMSGSENT - name: TXMSGABT description: "Transmit message abort\r The flag indicates that a Tx message is aborted due to a subsequent Hard Reset message send request taking priority during transmit. It is cleared by setting the TXMSGABTCF bit." bit_offset: 3 bit_size: 1 - enum: TXMSGABT - name: HRSTDISC description: "Hard Reset discarded\r The flag indicates that the Hard Reset message is discarded. The flag is cleared by setting the HRSTDISCCF bit." bit_offset: 4 bit_size: 1 - enum: HRSTDISC - name: HRSTSENT description: "Hard Reset message sent\r The flag indicates that the Hard Reset message is sent. The flag is cleared by setting the HRSTSENTCF bit." bit_offset: 5 bit_size: 1 - enum: HRSTSENT - name: TXUND - description: "Tx data underrun detection\r The flag indicates that the Tx data register (UCPD_TXDR) was not written in time for a transmit message to execute normally. It is cleared by setting the TXUNDCF bit." + description: "Tx data underrun detection\r The flag indicates that the Tx data register (TXDR) was not written in time for a transmit message to execute normally. It is cleared by setting the TXUNDCF bit." bit_offset: 6 bit_size: 1 - enum: TXUND - name: RXNE - description: "Receive data register not empty detection\r The flag indicates that the UCPD_RXDR register is not empty. It is automatically cleared upon reading UCPD_RXDR." + description: "Receive data register not empty detection\r The flag indicates that the RXDR register is not empty. It is automatically cleared upon reading RXDR." bit_offset: 8 bit_size: 1 - enum: RXNE - name: RXORDDET - description: "Rx ordered set (4 K-codes) detection\r The flag indicates the detection of an ordered set. The relevant information is stored in the RXORDSET[2:0] bitfield of the UCPD_RX_ORDSET register. It is cleared by setting the RXORDDETCF bit." + description: "Rx ordered set (4 K-codes) detection\r The flag indicates the detection of an ordered set. The relevant information is stored in the RXORDSET[2:0] bitfield of the RX_ORDSET register. It is cleared by setting the RXORDDETCF bit." bit_offset: 9 bit_size: 1 - enum: RXORDDET - name: RXHRSTDET description: "Rx Hard Reset receipt detection\r The flag indicates the receipt of valid Hard Reset message. It is cleared by setting the RXHRSTDETCF bit." bit_offset: 10 bit_size: 1 - enum: RXHRSTDET - name: RXOVR description: "Rx data overflow detection\r The flag indicates Rx data buffer overflow. It is cleared by setting the RXOVRCF bit.\r The buffer overflow can occur if the received data are not read fast enough." bit_offset: 11 bit_size: 1 - enum: RXOVR - name: RXMSGEND description: "Rx message received\r The flag indicates whether a message (except Hard Reset message) has been received, regardless the CRC value. The flag is cleared by setting the RXMSGENDCF bit.\r The RXERR flag set when the RXMSGEND flag goes high indicates errors in the last-received message." bit_offset: 12 bit_size: 1 - enum: RXMSGEND - name: RXERR description: "Receive message error\r The flag indicates errors of the last Rx message declared (via RXMSGEND), such as incorrect CRC or truncated message (a line becoming static before EOP is met). It is asserted whenever the RXMSGEND flag is set." bit_offset: 13 bit_size: 1 - enum: RXERR - name: TYPECEVT1 description: "Type-C voltage level event on CC1 line\r The flag indicates a change of the TYPEC_VSTATE_CC1[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." bit_offset: 14 bit_size: 1 - enum: TYPECEVT1 - name: TYPECEVT2 description: "Type-C voltage level event on CC2 line\r The flag indicates a change of the TYPEC_VSTATE_CC2[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." bit_offset: 15 bit_size: 1 - enum: TYPECEVT2 - name: TYPEC_VSTATE_CC1 description: "The status bitfield indicates the voltage level on the CC1 line in its steady state.\r The voltage variation on the CC1 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." bit_offset: 16 @@ -492,26 +443,25 @@ fieldset/UCPD_SR: description: "FRS detection event\r The flag is cleared by setting the FRSEVTCF bit." bit_offset: 20 bit_size: 1 - enum: FRSEVT -fieldset/UCPD_TXDR: - description: "UCPD Tx data register " +fieldset/TXDR: + description: "Tx data register " fields: - name: TXDATA description: Data byte to transmit bit_offset: 0 bit_size: 8 -fieldset/UCPD_TX_ORDSETR: - description: "UCPD Tx ordered set type register " +fieldset/TX_ORDSETR: + description: "Tx ordered set type register " fields: - name: TXORDSET description: "Ordered set to transmit\r The bitfield determines a full 20-bit sequence to transmit, consisting of four K-codes, each of five bits, defining the packet to transmit. The bit 0 (bit 0 of K-code1) is the first, the bit 19 (bit 4 of K‑code4) the last." bit_offset: 0 bit_size: 20 -fieldset/UCPD_TX_PAYSZR: - description: "UCPD Tx payload size register " +fieldset/TX_PAYSZR: + description: "Tx payload size register " fields: - name: TXPAYSZ - description: "Payload size yet to transmit\r The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the UCPD_TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission." + description: "Payload size yet to transmit\r The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission." bit_offset: 0 bit_size: 10 enum/ANAMODE: @@ -523,42 +473,6 @@ enum/ANAMODE: - name: B_0x1 description: Sink value: 1 -enum/CC1TCDIS: - bit_size: 1 - variants: - - name: B_0x0 - description: Enable - value: 0 - - name: B_0x1 - description: Disable - value: 1 -enum/CC1VCONNEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/CC2TCDIS: - bit_size: 1 - variants: - - name: B_0x0 - description: Enable - value: 0 - - name: B_0x1 - description: Disable - value: 1 -enum/CC2VCONNEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 enum/CCENABLE: bit_size: 2 variants: @@ -574,117 +488,6 @@ enum/CCENABLE: - name: B_0x3 description: Enable CC1 and CC2 PHY value: 3 -enum/FORCECLK: - bit_size: 1 - variants: - - name: B_0x0 - description: Do not force clock request - value: 0 - - name: B_0x1 - description: Force clock request - value: 1 -enum/FRSEVT: - bit_size: 1 - variants: - - name: B_0x0 - description: No new event - value: 0 - - name: B_0x1 - description: New FRS receive event occurred - value: 1 -enum/FRSEVTIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/FRSRXEN: - bit_size: 1 - variants: - - name: B_0x1 - description: Enable - value: 1 -enum/FRSTX: - bit_size: 1 - variants: - - name: B_0x0 - description: No effect - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/HBITCLKDIV: - bit_size: 6 - variants: - - name: B_0x0 - description: 1 (bypass) - value: 0 - - name: B_0x1A - description: "27" - value: 26 - - name: B_0x3F - description: "64" - value: 63 -enum/HRSTDISC: - bit_size: 1 - variants: - - name: B_0x0 - description: No Hard Reset discarded - value: 0 - - name: B_0x1 - description: Hard Reset discarded - value: 1 -enum/HRSTDISCIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/HRSTSENT: - bit_size: 1 - variants: - - name: B_0x0 - description: No Hard Reset message sent - value: 0 - - name: B_0x1 - description: Hard Reset message sent - value: 1 -enum/HRSTSENTIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/IFRGAP: - bit_size: 5 - variants: - - name: B_0x0 - description: Not supported - value: 0 - - name: B_0x1 - description: "2" - value: 1 - - name: B_0xD - description: "14 " - value: 13 - - name: B_0xE - description: "15 " - value: 14 - - name: B_0xF - description: "16 " - value: 15 - - name: B_0x1F - description: "32" - value: 31 enum/PHYCCSEL: bit_size: 1 variants: @@ -694,60 +497,6 @@ enum/PHYCCSEL: - name: B_0x1 description: Use CC2 IO for Power Delivery communication value: 1 -enum/PHYRXEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/PSC_USBPDCLK: - bit_size: 3 - variants: - - name: B_0x0 - description: 1 (bypass) - value: 0 - - name: B_0x1 - description: "2" - value: 1 - - name: B_0x2 - description: "4" - value: 2 - - name: B_0x3 - description: "8" - value: 3 - - name: B_0x4 - description: "16" - value: 4 -enum/RDCH: - bit_size: 1 - variants: - - name: B_0x0 - description: No effect - value: 0 - - name: B_0x1 - description: Rdch condition drive - value: 1 -enum/RXDMAEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/RXERR: - bit_size: 1 - variants: - - name: B_0x0 - description: No error detected - value: 0 - - name: B_0x1 - description: Error(s) detected - value: 1 enum/RXFILT2N3: bit_size: 1 variants: @@ -757,96 +506,6 @@ enum/RXFILT2N3: - name: B_0x1 description: 2 samples value: 1 -enum/RXFILTDIS: - bit_size: 1 - variants: - - name: B_0x0 - description: Enable - value: 0 - - name: B_0x1 - description: Disable - value: 1 -enum/RXHRSTDET: - bit_size: 1 - variants: - - name: B_0x0 - description: Hard Reset not received - value: 0 - - name: B_0x1 - description: Hard Reset received - value: 1 -enum/RXHRSTDETIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/RXMODE: - bit_size: 1 - variants: - - name: B_0x0 - description: Normal receive mode - value: 0 - - name: B_0x1 - description: BIST receive mode (BIST test data mode) - value: 1 -enum/RXMSGEND: - bit_size: 1 - variants: - - name: B_0x0 - description: No new Rx message received - value: 0 - - name: B_0x1 - description: A new Rx message received - value: 1 -enum/RXMSGENDIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/RXNE: - bit_size: 1 - variants: - - name: B_0x0 - description: Rx data register empty - value: 0 - - name: B_0x1 - description: Rx data register not empty - value: 1 -enum/RXNEIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/RXORDDET: - bit_size: 1 - variants: - - name: B_0x0 - description: No ordered set detected - value: 0 - - name: B_0x1 - description: A new ordered set detected - value: 1 -enum/RXORDDETIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 enum/RXORDSET: bit_size: 3 variants: @@ -874,33 +533,6 @@ enum/RXORDSET: - name: B_0x7 description: "SOP extension#2 detected in receiver" value: 7 -enum/RXOVR: - bit_size: 1 - variants: - - name: B_0x0 - description: No overflow - value: 0 - - name: B_0x1 - description: Overflow - value: 1 -enum/RXOVRIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/RXSOP3OF4: - bit_size: 1 - variants: - - name: B_0x0 - description: 4 correct K‑codes out of 4‑ - value: 0 - - name: B_0x1 - description: 3 correct K‑codes out of 4‑ - value: 1 enum/RXSOPKINVALID: bit_size: 3 variants: @@ -919,57 +551,6 @@ enum/RXSOPKINVALID: - name: B_0x4 description: Fourth K‑code corrupted value: 4 -enum/TRANSWIN: - bit_size: 5 - variants: - - name: B_0x0 - description: Not supported - value: 0 - - name: B_0x1 - description: "2" - value: 1 - - name: B_0x9 - description: 10 (recommended) - value: 9 - - name: B_0x1F - description: "32" - value: 31 -enum/TXDMAEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/TXHRST: - bit_size: 1 - variants: - - name: B_0x0 - description: No effect - value: 0 - - name: B_0x1 - description: Start Tx Hard Reset message - value: 1 -enum/TXIS: - bit_size: 1 - variants: - - name: B_0x0 - description: New Tx data write not required - value: 0 - - name: B_0x1 - description: New Tx data write required - value: 1 -enum/TXISIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 enum/TXMODE: bit_size: 2 variants: @@ -982,114 +563,6 @@ enum/TXMODE: - name: B_0x2 description: BIST test sequence (BIST Carrier Mode 2) value: 2 -enum/TXMSGABT: - bit_size: 1 - variants: - - name: B_0x0 - description: No transmit message abort - value: 0 - - name: B_0x1 - description: Transmit message abort - value: 1 -enum/TXMSGABTIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/TXMSGDISC: - bit_size: 1 - variants: - - name: B_0x0 - description: No Tx message discarded - value: 0 - - name: B_0x1 - description: Tx message discarded - value: 1 -enum/TXMSGDISCIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/TXMSGSENT: - bit_size: 1 - variants: - - name: B_0x0 - description: No Tx message completed - value: 0 - - name: B_0x1 - description: Tx message completed - value: 1 -enum/TXMSGSENTIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/TXSEND: - bit_size: 1 - variants: - - name: B_0x0 - description: No effect - value: 0 - - name: B_0x1 - description: Start Tx packet transmission - value: 1 -enum/TXUND: - bit_size: 1 - variants: - - name: B_0x0 - description: No Tx data underrun detected - value: 0 - - name: B_0x1 - description: Tx data underrun detected - value: 1 -enum/TXUNDIE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/TYPECEVT1: - bit_size: 1 - variants: - - name: B_0x0 - description: No new event - value: 0 - - name: B_0x1 - description: A new Type-C event - value: 1 -enum/TYPECEVT2: - bit_size: 1 - variants: - - name: B_0x0 - description: No new event - value: 0 - - name: B_0x1 - description: A new Type-C event - value: 1 -enum/TYPECEVT2IE: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 enum/TYPEC_VSTATE_CC1: bit_size: 2 variants: @@ -1119,22 +592,4 @@ enum/TYPEC_VSTATE_CC2: value: 2 - name: B_0x3 description: Highest - value: 3 -enum/UCPDEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 -enum/WUPEN: - bit_size: 1 - variants: - - name: B_0x0 - description: Disable - value: 0 - - name: B_0x1 - description: Enable - value: 1 + value: 3 \ No newline at end of file From eeadbd3f7bb365f8bb28041b117b5afc0f8a7f3f Mon Sep 17 00:00:00 2001 From: ExplodingWaffle Date: Fri, 1 Sep 2023 16:40:50 +0100 Subject: [PATCH 17/54] give enums real names --- data/registers/ucpd_v1.yaml | 96 +++++++++++++++---------------------- 1 file changed, 39 insertions(+), 57 deletions(-) diff --git a/data/registers/ucpd_v1.yaml b/data/registers/ucpd_v1.yaml index 48de1ca..f0a7aea 100644 --- a/data/registers/ucpd_v1.yaml +++ b/data/registers/ucpd_v1.yaml @@ -59,7 +59,7 @@ block/UCPD: description: "Rx ordered set extension register 2 \t" byte_offset: 56 fieldset: RX_ORDEXTR2 - # TODO: IPVER, IPID and MID from g0[7, 8]1? do we care? + # TODO: IPVER, IPID and MID from g0[7, 8]1 svds? do we care? fieldset/CFGR1: description: "configuration register 1 " fields: @@ -106,7 +106,6 @@ fieldset/CFGR2: description: "BMC decoder Rx pre-filter sampling method\r Number of consistent consecutive samples before confirming a new value." bit_offset: 1 bit_size: 1 - enum: RXFILT2N3 - name: FORCECLK description: Force ClkReq clock request bit_offset: 2 @@ -116,6 +115,7 @@ fieldset/CFGR2: bit_offset: 3 bit_size: 1 fieldset/CFGR3: +# TODO: sort out this mess description: "configuration register 3 " fields: - name: TRIM1_NG_CCRPD @@ -186,6 +186,11 @@ fieldset/CR: description: VCONN switch enable for CC2 bit_offset: 14 bit_size: 1 +# TODO: this is fine, right? + - name: DBATTEN + description: "Dead battery function enable\r The bit takes effect upon setting the USBPDstrobe bit of the SYS_CONFIG register.\r Dead battery function only operates if the external circuit is appropriately configured." + bit_offset: 15 + bit_size: 1 - name: FRSRXEN description: "FRS event detection enable\r Setting the bit enables FRS Rx event (FRSEVT) detection on the CC line selected through the PHYCCSEL bit. 0: Disable\r Clear the bit when the device is attached to an FRS-incapable source/sink." bit_offset: 16 @@ -433,12 +438,12 @@ fieldset/SR: description: "The status bitfield indicates the voltage level on the CC1 line in its steady state.\r The voltage variation on the CC1 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." bit_offset: 16 bit_size: 2 - enum: TYPEC_VSTATE_CC1 + enum: TYPEC_VSTATE_CC - name: TYPEC_VSTATE_CC2 description: "CC2 line voltage level\r The status bitfield indicates the voltage level on the CC2 line in its steady state.\r The voltage variation on the CC2 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." bit_offset: 18 bit_size: 2 - enum: TYPEC_VSTATE_CC2 + enum: TYPEC_VSTATE_CC - name: FRSEVT description: "FRS detection event\r The flag is cleared by setting the FRSEVTCF bit." bit_offset: 20 @@ -467,129 +472,106 @@ fieldset/TX_PAYSZR: enum/ANAMODE: bit_size: 1 variants: - - name: B_0x0 + - name: Source description: Source value: 0 - - name: B_0x1 + - name: Sink description: Sink value: 1 enum/CCENABLE: bit_size: 2 + # TODO: should this maybe be 2 fields, CCxENABLE? variants: - - name: B_0x0 + - name: Disabled description: "Disable both PHYs " value: 0 - - name: B_0x1 + - name: Cc1 description: Enable CC1 PHY value: 1 - - name: B_0x2 + - name: Cc2 description: Enable CC2 PHY value: 2 - - name: B_0x3 + - name: Both description: Enable CC1 and CC2 PHY value: 3 enum/PHYCCSEL: bit_size: 1 variants: - - name: B_0x0 + - name: Cc1 description: Use CC1 IO for Power Delivery communication value: 0 - - name: B_0x1 + - name: Cc2 description: Use CC2 IO for Power Delivery communication value: 1 -enum/RXFILT2N3: - bit_size: 1 - variants: - - name: B_0x0 - description: 3 samples - value: 0 - - name: B_0x1 - description: 2 samples - value: 1 enum/RXORDSET: bit_size: 3 variants: - - name: B_0x0 + - name: Sop description: SOP code detected in receiver value: 0 - - name: B_0x1 + - name: SopPrime description: "SOP' code detected in receiver" value: 1 - - name: B_0x2 + - name: SopDoublePrime description: "SOP'' code detected in receiver" value: 2 - - name: B_0x3 + - name: SopPrimeDebug description: "SOP'_Debug detected in receiver" value: 3 - - name: B_0x4 + - name: SopDoublePrimeDebug description: "SOP''_Debug detected in receiver" value: 4 - - name: B_0x5 + - name: CableReset description: Cable Reset detected in receiver value: 5 - - name: B_0x6 + - name: Ext1 description: "SOP extension#1 detected in receiver" value: 6 - - name: B_0x7 + - name: Ext2 description: "SOP extension#2 detected in receiver" value: 7 enum/RXSOPKINVALID: bit_size: 3 variants: - - name: B_0x0 + - name: None description: No K‑code corrupted value: 0 - - name: B_0x1 + - name: First description: First K‑code corrupted value: 1 - - name: B_0x2 + - name: Second description: Second K‑code corrupted value: 2 - - name: B_0x3 + - name: Third description: Third K‑code corrupted value: 3 - - name: B_0x4 + - name: Fourth description: Fourth K‑code corrupted value: 4 enum/TXMODE: bit_size: 2 variants: - - name: B_0x0 + - name: Packet description: Transmission of Tx packet previously defined in other registers value: 0 - - name: B_0x1 + - name: CableReset description: Cable Reset sequence value: 1 - - name: B_0x2 + - name: Bist description: BIST test sequence (BIST Carrier Mode 2) value: 2 -enum/TYPEC_VSTATE_CC1: +enum/TYPEC_VSTATE_CC: bit_size: 2 variants: - - name: B_0x0 + - name: Lowest description: Lowest value: 0 - - name: B_0x1 + - name: Low description: Low value: 1 - - name: B_0x2 + - name: High description: High value: 2 - - name: B_0x3 - description: Highest - value: 3 -enum/TYPEC_VSTATE_CC2: - bit_size: 2 - variants: - - name: B_0x0 - description: Lowest - value: 0 - - name: B_0x1 - description: Low - value: 1 - - name: B_0x2 - description: High - value: 2 - - name: B_0x3 + - name: Highest description: Highest value: 3 \ No newline at end of file From e2cab23e2c714f9c6c90be65cdb3ed8f67367318 Mon Sep 17 00:00:00 2001 From: ExplodingWaffle Date: Fri, 1 Sep 2023 17:50:46 +0100 Subject: [PATCH 18/54] fix --- data/registers/ucpd_v1.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/data/registers/ucpd_v1.yaml b/data/registers/ucpd_v1.yaml index f0a7aea..5ca26ff 100644 --- a/data/registers/ucpd_v1.yaml +++ b/data/registers/ucpd_v1.yaml @@ -158,7 +158,6 @@ fieldset/CR: description: "USB Power Delivery receiver enable\r Both CC1 and CC2 receivers are disabled when the bit is cleared. Only the CC receiver selected via the PHYCCSEL bit is enabled when the bit is set." bit_offset: 5 bit_size: 1 - enum: PHYRXEN - name: PHYCCSEL description: "CC1/CC2 line selector for USB Power Delivery signaling\r The selection depends on the cable orientation as discovered at attach." bit_offset: 6 From cc8759f205d4813c02b67231b930713b6a48d25a Mon Sep 17 00:00:00 2001 From: JuliDi <20155974+JuliDi@users.noreply.github.com> Date: Sun, 3 Sep 2023 17:06:27 +0200 Subject: [PATCH 19/54] add free-running clock mode for quadspi --- data/registers/quadspi_v1.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/registers/quadspi_v1.yaml b/data/registers/quadspi_v1.yaml index 23c9011..d2012ba 100644 --- a/data/registers/quadspi_v1.yaml +++ b/data/registers/quadspi_v1.yaml @@ -112,6 +112,10 @@ fieldset/CCR: description: Send instruction only once mode bit_offset: 28 bit_size: 1 + - name: FRCM + description: Free-running clock mode (not available on all chips!) + bit_offset: 29 + bit_size: 1 - name: DHHC description: DDR hold half cycle bit_offset: 30 @@ -132,7 +136,7 @@ fieldset/CR: bit_offset: 1 bit_size: 1 - name: DMAEN - description: DMA enable + description: DMA enable (not available on all chips!) bit_offset: 2 bit_size: 1 - name: TCEN From 697ff5ff6e660416593d6c9ed4766cad0b85c033 Mon Sep 17 00:00:00 2001 From: Daehyeok Mun Date: Sat, 19 Aug 2023 18:41:38 -0700 Subject: [PATCH 20/54] Support STM32G4 ADC peripheral --- data/registers/rcc_g4.yaml | 14 ++++++++++++++ stm32-data-gen/src/chips.rs | 2 ++ 2 files changed, 16 insertions(+) diff --git a/data/registers/rcc_g4.yaml b/data/registers/rcc_g4.yaml index a254fdc..f649702 100644 --- a/data/registers/rcc_g4.yaml +++ b/data/registers/rcc_g4.yaml @@ -1027,9 +1027,11 @@ fieldset/CCIPR: description: ADCs clock source selection bit_offset: 28 bit_size: 2 + enum: ADCSEL - name: ADC345SEL description: ADC3/4/5 clock source selection bit_offset: 30 + enum: ADCSEL bit_size: 2 fieldset/CCIPR2: description: Peripherals independent clock configuration register @@ -1333,6 +1335,18 @@ fieldset/PLLCFGR: description: Main PLL division factor for PLLSAI2CLK bit_offset: 27 bit_size: 5 +enum/ADCSEL: + bit_size: 2 + variants: + - name: NOCLK + description: No clock selected + value: 0 + - name: PLLP + description: PLL 'P' clock selected as ADC clock + value: 1 + - name: SYSCLK + description: System clock selected as ADC clock + value: 2 enum/CLK48SEL: bit_size: 2 variants: diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 9c8795c..07fa785 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -180,6 +180,8 @@ impl PeriMatcher { (".*:ADC:aditf5_v3_1", ("adc", "v4", "ADC")), ("STM32G0.*:ADC:.*", ("adc", "g0", "ADC")), ("STM32G0.*:ADC_COMMON:.*", ("adccommon", "v3", "ADC_COMMON")), + ("STM32G4.*:ADC:.*", ("adc", "v4", "ADC")), + ("STM32G4.*:ADC_COMMON:.*", ("adccommon", "v4", "ADC_COMMON")), (".*:ADC_COMMON:aditf2_v1_1", ("adccommon", "v2", "ADC_COMMON")), (".*:ADC_COMMON:aditf5_v2_0", ("adccommon", "v3", "ADC_COMMON")), (".*:ADC_COMMON:aditf5_v2_2", ("adccommon", "v3", "ADC_COMMON")), From ab99fff0af448cae804c3270088fa0b2ce7416d3 Mon Sep 17 00:00:00 2001 From: Olle Sandberg Date: Mon, 4 Sep 2023 09:04:34 +0200 Subject: [PATCH 21/54] Support STM32WLEx ADC peripheral Use adc_g0 since very similar to the WLE one. --- data/registers/rcc_wle.yaml | 13 +++++++++++++ stm32-data-gen/src/chips.rs | 1 + 2 files changed, 14 insertions(+) diff --git a/data/registers/rcc_wle.yaml b/data/registers/rcc_wle.yaml index c130d96..0ebd82c 100644 --- a/data/registers/rcc_wle.yaml +++ b/data/registers/rcc_wle.yaml @@ -689,6 +689,7 @@ fieldset/CCIPR: description: ADC clock source selection bit_offset: 28 bit_size: 2 + enum: ADCSEL - name: RNGSEL description: RNG clock source selection bit_offset: 30 @@ -1044,3 +1045,15 @@ fieldset/PLLCFGR: description: Main PLL division factor for PLLRCLK bit_offset: 29 bit_size: 3 +enum/ADCSEL: + bit_size: 2 + variants: + - name: HSI16 + description: HSI16 used as ADC clock source + value: 1 + - name: PLLPCLK + description: PLLPCLK used as ADC clock source + value: 2 + - name: SYSCLK + description: SYSCLK used as ADC clock source + value: 3 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 07fa785..dda3ed6 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -208,6 +208,7 @@ impl PeriMatcher { ("STM32WB.*:SYSCFG:.*", ("syscfg", "wb", "SYSCFG")), ("STM32WL5.*:SYSCFG:.*", ("syscfg", "wl5", "SYSCFG")), ("STM32WLE.*:SYSCFG:.*", ("syscfg", "wle", "SYSCFG")), + ("STM32WLE.*:ADC:.*", ("adc", "g0", "ADC")), ("STM32H50.*:SBS:.*", ("sbs", "h50", "SBS")), ("STM32H5.*:SBS:.*", ("sbs", "h5", "SBS")), (".*:IWDG:iwdg1_v1_1", ("iwdg", "v1", "IWDG")), From 9c71725bf20190c452fa030fdf11160ef2b65240 Mon Sep 17 00:00:00 2001 From: Olle Sandberg Date: Tue, 5 Sep 2023 12:20:52 +0200 Subject: [PATCH 22/54] Support STM32WL5x ADC peripheral --- data/registers/rcc_wl5.yaml | 13 +++++++++++++ stm32-data-gen/src/chips.rs | 1 + 2 files changed, 14 insertions(+) diff --git a/data/registers/rcc_wl5.yaml b/data/registers/rcc_wl5.yaml index 828c986..9b9fee8 100644 --- a/data/registers/rcc_wl5.yaml +++ b/data/registers/rcc_wl5.yaml @@ -1059,6 +1059,7 @@ fieldset/CCIPR: description: ADC clock source selection bit_offset: 28 bit_size: 2 + enum: ADCSEL - name: RNGSEL description: RNG clock source selection bit_offset: 30 @@ -1422,3 +1423,15 @@ fieldset/PLLCFGR: description: Main PLL division factor for PLLRCLK bit_offset: 29 bit_size: 3 +enum/ADCSEL: + bit_size: 2 + variants: + - name: HSI16 + description: HSI16 used as ADC clock source + value: 1 + - name: PLLPCLK + description: PLLPCLK used as ADC clock source + value: 2 + - name: SYSCLK + description: SYSCLK used as ADC clock source + value: 3 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index dda3ed6..5271317 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -207,6 +207,7 @@ impl PeriMatcher { ("STM32U5.*:SYSCFG:.*", ("syscfg", "u5", "SYSCFG")), ("STM32WB.*:SYSCFG:.*", ("syscfg", "wb", "SYSCFG")), ("STM32WL5.*:SYSCFG:.*", ("syscfg", "wl5", "SYSCFG")), + ("STM32WL5.*:ADC:.*", ("adc", "g0", "ADC")), ("STM32WLE.*:SYSCFG:.*", ("syscfg", "wle", "SYSCFG")), ("STM32WLE.*:ADC:.*", ("adc", "g0", "ADC")), ("STM32H50.*:SBS:.*", ("sbs", "h50", "SBS")), From 9a56721608a5bfa66919750aa378910c08c445c4 Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 09:51:50 +0300 Subject: [PATCH 23/54] add unmodified AES yamls --- data/registers/aes_f7.yaml | 330 ++++++++++++++++++++++++++++ data/registers/aes_g081.yaml | 398 +++++++++++++++++++++++++++++++++ data/registers/aes_u5.yaml | 414 +++++++++++++++++++++++++++++++++++ data/registers/aes_v1.yaml | 321 +++++++++++++++++++++++++++ data/registers/aes_v2.yaml | 332 ++++++++++++++++++++++++++++ 5 files changed, 1795 insertions(+) create mode 100644 data/registers/aes_f7.yaml create mode 100644 data/registers/aes_g081.yaml create mode 100644 data/registers/aes_u5.yaml create mode 100644 data/registers/aes_v1.yaml create mode 100644 data/registers/aes_v2.yaml diff --git a/data/registers/aes_f7.yaml b/data/registers/aes_f7.yaml new file mode 100644 index 0000000..6325adf --- /dev/null +++ b/data/registers/aes_f7.yaml @@ -0,0 +1,330 @@ +--- +block/AES: + description: Advanced encryption standard hardware accelerator 1 + items: + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + access: Read + fieldset: SR + - name: DINR + description: data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: data output register + byte_offset: 12 + access: Read + fieldset: DOUTR + - name: KEYR0 + description: key register 0 + byte_offset: 16 + fieldset: KEYR0 + - name: KEYR1 + description: key register 1 + byte_offset: 20 + fieldset: KEYR1 + - name: KEYR2 + description: key register 2 + byte_offset: 24 + fieldset: KEYR2 + - name: KEYR3 + description: key register 3 + byte_offset: 28 + fieldset: KEYR3 + - name: IVR0 + description: initialization vector register 0 + byte_offset: 32 + fieldset: IVR0 + - name: IVR1 + description: initialization vector register 1 + byte_offset: 36 + fieldset: IVR1 + - name: IVR2 + description: initialization vector register 2 + byte_offset: 40 + fieldset: IVR2 + - name: IVR3 + description: initialization vector register 3 + byte_offset: 44 + fieldset: IVR3 + - name: KEYR4 + description: key register 4 + byte_offset: 48 + fieldset: KEYR4 + - name: KEYR5 + description: key register 5 + byte_offset: 52 + fieldset: KEYR5 + - name: KEYR6 + description: key register 6 + byte_offset: 56 + fieldset: KEYR6 + - name: KEYR7 + description: key register 7 + byte_offset: 60 + fieldset: KEYR7 + - name: SUSP0R + description: AES suspend register 0 + byte_offset: 64 + fieldset: SUSP0R + - name: SUSP1R + description: AES suspend register 1 + byte_offset: 68 + fieldset: SUSP1R + - name: SUSP2R + description: AES suspend register 2 + byte_offset: 72 + fieldset: SUSP2R + - name: SUSP3R + description: AES suspend register 3 + byte_offset: 76 + fieldset: SUSP3R + - name: SUSP4R + description: AES suspend register 4 + byte_offset: 80 + fieldset: SUSP4R + - name: SUSP5R + description: AES suspend register 5 + byte_offset: 84 + fieldset: SUSP5R + - name: SUSP6R + description: AES suspend register 6 + byte_offset: 88 + fieldset: SUSP6R + - name: SUSP7R + description: AES suspend register 7 + byte_offset: 92 + fieldset: SUSP7R +fieldset/CR: + description: control register + fields: + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection (for data in and data out to/from the cryptographic block) + bit_offset: 1 + bit_size: 2 + - name: MODE + description: AES operating mode + bit_offset: 3 + bit_size: 2 + - name: CHMOD10 + description: AES chaining mode Bit1 Bit0 + bit_offset: 5 + bit_size: 2 + - name: CCFC + description: Computation Complete Flag Clear + bit_offset: 7 + bit_size: 1 + - name: ERRC + description: Error clear + bit_offset: 8 + bit_size: 1 + - name: CCFIE + description: CCF flag interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: "Used only for GCM, CCM and GMAC algorithms and has no effect when other algorithms are selected" + bit_offset: 13 + bit_size: 2 + - name: CHMOD2 + description: AES chaining mode Bit2 + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: Key size selection + bit_offset: 18 + bit_size: 1 +fieldset/DINR: + description: data input register + fields: + - name: AES_DINR + description: Data Input Register + bit_offset: 0 + bit_size: 32 +fieldset/DOUTR: + description: data output register + fields: + - name: AES_DOUTR + description: Data output register + bit_offset: 0 + bit_size: 32 +fieldset/IVR0: + description: initialization vector register 0 + fields: + - name: AES_IVR0 + description: "initialization vector register (LSB IVR [31:0])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR1: + description: initialization vector register 1 + fields: + - name: AES_IVR1 + description: "Initialization Vector Register (IVR [63:32])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR2: + description: initialization vector register 2 + fields: + - name: AES_IVR2 + description: "Initialization Vector Register (IVR [95:64])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR3: + description: initialization vector register 3 + fields: + - name: AES_IVR3 + description: "Initialization Vector Register (MSB IVR [127:96])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR0: + description: key register 0 + fields: + - name: AES_KEYR0 + description: "Data Output Register (LSB key [31:0])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR1: + description: key register 1 + fields: + - name: AES_KEYR1 + description: "AES key register (key [63:32])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR2: + description: key register 2 + fields: + - name: AES_KEYR2 + description: "AES key register (key [95:64])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR3: + description: key register 3 + fields: + - name: AES_KEYR3 + description: "AES key register (MSB key [127:96])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR4: + description: key register 4 + fields: + - name: AES_KEYR4 + description: "AES key register (MSB key [159:128])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR5: + description: key register 5 + fields: + - name: AES_KEYR5 + description: "AES key register (MSB key [191:160])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR6: + description: key register 6 + fields: + - name: AES_KEYR6 + description: "AES key register (MSB key [223:192])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR7: + description: key register 7 + fields: + - name: AES_KEYR7 + description: "AES key register (MSB key [255:224])" + bit_offset: 0 + bit_size: 32 +fieldset/SR: + description: status register + fields: + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 3 + bit_size: 1 +fieldset/SUSP0R: + description: AES suspend register 0 + fields: + - name: AES_SUSP0R + description: AES suspend register 0 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP1R: + description: AES suspend register 1 + fields: + - name: AES_SUSP1R + description: AES suspend register 1 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP2R: + description: AES suspend register 2 + fields: + - name: AES_SUSP2R + description: AES suspend register 2 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP3R: + description: AES suspend register 3 + fields: + - name: AES_SUSP3R + description: AES suspend register 3 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP4R: + description: AES suspend register 4 + fields: + - name: AES_SUSP4R + description: AES suspend register 4 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP5R: + description: AES suspend register 5 + fields: + - name: AES_SUSP5R + description: AES suspend register 5 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP6R: + description: AES suspend register 6 + fields: + - name: AES_SUSP6R + description: AES suspend register 6 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP7R: + description: AES suspend register 7 + fields: + - name: AES_SUSP7R + description: AES suspend register 7 + bit_offset: 0 + bit_size: 32 diff --git a/data/registers/aes_g081.yaml b/data/registers/aes_g081.yaml new file mode 100644 index 0000000..d0b8e82 --- /dev/null +++ b/data/registers/aes_g081.yaml @@ -0,0 +1,398 @@ +--- +block/AES: + description: Advanced encryption standard hardware accelerator 1 + items: + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + access: Read + fieldset: SR + - name: DINR + description: data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: data output register + byte_offset: 12 + access: Read + fieldset: DOUTR + - name: KEYR0 + description: key register 0 + byte_offset: 16 + fieldset: KEYR0 + - name: KEYR1 + description: key register 1 + byte_offset: 20 + fieldset: KEYR1 + - name: KEYR2 + description: key register 2 + byte_offset: 24 + fieldset: KEYR2 + - name: KEYR3 + description: key register 3 + byte_offset: 28 + fieldset: KEYR3 + - name: IVR0 + description: initialization vector register 0 + byte_offset: 32 + fieldset: IVR0 + - name: IVR1 + description: initialization vector register 1 + byte_offset: 36 + fieldset: IVR1 + - name: IVR2 + description: initialization vector register 2 + byte_offset: 40 + fieldset: IVR2 + - name: IVR3 + description: initialization vector register 3 + byte_offset: 44 + fieldset: IVR3 + - name: KEYR4 + description: key register 4 + byte_offset: 48 + fieldset: KEYR4 + - name: KEYR5 + description: key register 5 + byte_offset: 52 + fieldset: KEYR5 + - name: KEYR6 + description: key register 6 + byte_offset: 56 + fieldset: KEYR6 + - name: KEYR7 + description: key register 7 + byte_offset: 60 + fieldset: KEYR7 + - name: SUSP0R + description: AES suspend register 0 + byte_offset: 64 + fieldset: SUSP0R + - name: SUSP1R + description: AES suspend register 1 + byte_offset: 68 + fieldset: SUSP1R + - name: SUSP2R + description: AES suspend register 2 + byte_offset: 72 + fieldset: SUSP2R + - name: SUSP3R + description: AES suspend register 3 + byte_offset: 76 + fieldset: SUSP3R + - name: SUSP4R + description: AES suspend register 4 + byte_offset: 80 + fieldset: SUSP4R + - name: SUSP5R + description: AES suspend register 5 + byte_offset: 84 + fieldset: SUSP5R + - name: SUSP6R + description: AES suspend register 6 + byte_offset: 88 + fieldset: SUSP6R + - name: SUSP7R + description: AES suspend register 7 + byte_offset: 92 + fieldset: SUSP7R + - name: HWCFR + description: AES hardware configuration register + byte_offset: 1008 + access: Read + fieldset: HWCFR + - name: VERR + description: AES version register + byte_offset: 1012 + access: Read + fieldset: VERR + - name: IPIDR + description: AES identification register + byte_offset: 1016 + access: Read + fieldset: IPIDR + - name: SIDR + description: AES size ID register + byte_offset: 1020 + access: Read + fieldset: SIDR +fieldset/CR: + description: control register + fields: + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection (for data in and data out to/from the cryptographic block) + bit_offset: 1 + bit_size: 2 + - name: MODE + description: AES operating mode + bit_offset: 3 + bit_size: 2 + - name: CHMOD10 + description: AES chaining mode Bit1 Bit0 + bit_offset: 5 + bit_size: 2 + - name: CCFC + description: Computation Complete Flag Clear + bit_offset: 7 + bit_size: 1 + - name: ERRC + description: Error clear + bit_offset: 8 + bit_size: 1 + - name: CCFIE + description: CCF flag interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: "Used only for GCM, CCM and GMAC algorithms and has no effect when other algorithms are selected" + bit_offset: 13 + bit_size: 2 + - name: CHMOD2 + description: AES chaining mode Bit2 + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: Key size selection + bit_offset: 18 + bit_size: 1 + - name: NPBLB + description: Number of padding bytes in last block of payload + bit_offset: 20 + bit_size: 4 +fieldset/DINR: + description: data input register + fields: + - name: AES_DINR + description: Data Input Register + bit_offset: 0 + bit_size: 32 +fieldset/DOUTR: + description: data output register + fields: + - name: AES_DOUTR + description: Data output register + bit_offset: 0 + bit_size: 32 +fieldset/HWCFR: + description: AES hardware configuration register + fields: + - name: CFG1 + description: HW Generic 1 + bit_offset: 0 + bit_size: 4 + - name: CFG2 + description: HW Generic 2 + bit_offset: 4 + bit_size: 4 + - name: CFG3 + description: HW Generic 3 + bit_offset: 8 + bit_size: 4 + - name: CFG4 + description: HW Generic 4 + bit_offset: 12 + bit_size: 4 +fieldset/IPIDR: + description: AES identification register + fields: + - name: ID + description: Identification code + bit_offset: 0 + bit_size: 32 +fieldset/IVR0: + description: initialization vector register 0 + fields: + - name: AES_IVR0 + description: "initialization vector register (LSB IVR [31:0])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR1: + description: initialization vector register 1 + fields: + - name: AES_IVR1 + description: "Initialization Vector Register (IVR [63:32])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR2: + description: initialization vector register 2 + fields: + - name: AES_IVR2 + description: "Initialization Vector Register (IVR [95:64])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR3: + description: initialization vector register 3 + fields: + - name: AES_IVR3 + description: "Initialization Vector Register (MSB IVR [127:96])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR0: + description: key register 0 + fields: + - name: AES_KEYR0 + description: "Data Output Register (LSB key [31:0])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR1: + description: key register 1 + fields: + - name: AES_KEYR1 + description: "AES key register (key [63:32])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR2: + description: key register 2 + fields: + - name: AES_KEYR2 + description: "AES key register (key [95:64])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR3: + description: key register 3 + fields: + - name: AES_KEYR3 + description: "AES key register (MSB key [127:96])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR4: + description: key register 4 + fields: + - name: AES_KEYR4 + description: "AES key register (MSB key [159:128])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR5: + description: key register 5 + fields: + - name: AES_KEYR5 + description: "AES key register (MSB key [191:160])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR6: + description: key register 6 + fields: + - name: AES_KEYR6 + description: "AES key register (MSB key [223:192])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR7: + description: key register 7 + fields: + - name: AES_KEYR7 + description: "AES key register (MSB key [255:224])" + bit_offset: 0 + bit_size: 32 +fieldset/SIDR: + description: AES size ID register + fields: + - name: ID + description: Size Identification code + bit_offset: 0 + bit_size: 32 +fieldset/SR: + description: status register + fields: + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 3 + bit_size: 1 +fieldset/SUSP0R: + description: AES suspend register 0 + fields: + - name: AES_SUSP0R + description: AES suspend register 0 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP1R: + description: AES suspend register 1 + fields: + - name: AES_SUSP1R + description: AES suspend register 1 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP2R: + description: AES suspend register 2 + fields: + - name: AES_SUSP2R + description: AES suspend register 2 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP3R: + description: AES suspend register 3 + fields: + - name: AES_SUSP3R + description: AES suspend register 3 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP4R: + description: AES suspend register 4 + fields: + - name: AES_SUSP4R + description: AES suspend register 4 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP5R: + description: AES suspend register 5 + fields: + - name: AES_SUSP5R + description: AES suspend register 5 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP6R: + description: AES suspend register 6 + fields: + - name: AES_SUSP6R + description: AES suspend register 6 + bit_offset: 0 + bit_size: 32 +fieldset/SUSP7R: + description: AES suspend register 7 + fields: + - name: AES_SUSP7R + description: AES suspend register 7 + bit_offset: 0 + bit_size: 32 +fieldset/VERR: + description: AES version register + fields: + - name: MINREV + description: Minor revision + bit_offset: 0 + bit_size: 4 + - name: MAJREV + description: Major revision + bit_offset: 4 + bit_size: 4 diff --git a/data/registers/aes_u5.yaml b/data/registers/aes_u5.yaml new file mode 100644 index 0000000..b4366cc --- /dev/null +++ b/data/registers/aes_u5.yaml @@ -0,0 +1,414 @@ +--- +block/AES: + description: Advanced encryption standard hardware accelerator + items: + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + access: Read + fieldset: SR + - name: DINR + description: data input register + byte_offset: 8 + access: Write + fieldset: DINR + - name: DOUTR + description: data output register + byte_offset: 12 + access: Read + fieldset: DOUTR + - name: KEYR0 + description: key register 0 + byte_offset: 16 + access: Write + fieldset: KEYR0 + - name: KEYR1 + description: key register 1 + byte_offset: 20 + access: Write + fieldset: KEYR1 + - name: KEYR2 + description: key register 2 + byte_offset: 24 + access: Write + fieldset: KEYR2 + - name: KEYR3 + description: key register 3 + byte_offset: 28 + access: Write + fieldset: KEYR3 + - name: IVR0 + description: initialization vector register 0 + byte_offset: 32 + fieldset: IVR0 + - name: IVR1 + description: initialization vector register 1 + byte_offset: 36 + fieldset: IVR1 + - name: IVR2 + description: initialization vector register 2 + byte_offset: 40 + fieldset: IVR2 + - name: IVR3 + description: initialization vector register 3 + byte_offset: 44 + fieldset: IVR3 + - name: KEYR4 + description: key register 4 + byte_offset: 48 + access: Write + fieldset: KEYR4 + - name: KEYR5 + description: key register 5 + byte_offset: 52 + access: Write + fieldset: KEYR5 + - name: KEYR6 + description: key register 6 + byte_offset: 56 + access: Write + fieldset: KEYR6 + - name: KEYR7 + description: key register 7 + byte_offset: 60 + access: Write + fieldset: KEYR7 + - name: SUSP0R + description: suspend registers + byte_offset: 64 + access: Write + fieldset: SUSP0R + - name: SUSP1R + description: suspend registers + byte_offset: 68 + access: Write + fieldset: SUSP1R + - name: SUSP2R + description: suspend registers + byte_offset: 72 + access: Write + fieldset: SUSP2R + - name: SUSP3R + description: suspend registers + byte_offset: 76 + access: Write + fieldset: SUSP3R + - name: SUSP4R + description: suspend registers + byte_offset: 80 + access: Write + fieldset: SUSP4R + - name: SUSP5R + description: suspend registers + byte_offset: 84 + access: Write + fieldset: SUSP5R + - name: SUSP6R + description: suspend registers + byte_offset: 88 + access: Write + fieldset: SUSP6R + - name: SUSP7R + description: suspend registers + byte_offset: 92 + access: Write + fieldset: SUSP7R + - name: IER + description: interrupt enable register + byte_offset: 768 + fieldset: IER + - name: ISR + description: interrupt status register + byte_offset: 772 + access: Read + fieldset: ISR + - name: ICR + description: interrupt clear register + byte_offset: 776 + access: Write + fieldset: ICR +fieldset/CR: + description: control register + fields: + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection (for data in and data out to/from the cryptographic block) + bit_offset: 1 + bit_size: 2 + - name: MODE + description: AES operating mode + bit_offset: 3 + bit_size: 2 + - name: CHMOD + description: AES chaining mode + bit_offset: 5 + bit_size: 2 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: GCMPH + bit_offset: 13 + bit_size: 2 + - name: CHMOD_2 + description: CHMOD_2 + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: KEYSIZE + bit_offset: 18 + bit_size: 1 + - name: NPBLB + description: NPBLB + bit_offset: 20 + bit_size: 4 + - name: KMOD + description: KMOD + bit_offset: 24 + bit_size: 2 + - name: IPRST + description: IPRST + bit_offset: 31 + bit_size: 1 +fieldset/DINR: + description: data input register + fields: + - name: DIN + description: Input data word + bit_offset: 0 + bit_size: 32 +fieldset/DOUTR: + description: data output register + fields: + - name: DOUT + description: Output data word + bit_offset: 0 + bit_size: 32 +fieldset/ICR: + description: interrupt clear register + fields: + - name: CCF + description: Computation complete flag clear + bit_offset: 0 + bit_size: 1 + - name: RWEIF + description: Read or write error interrupt flag clear + bit_offset: 1 + bit_size: 1 + - name: KEIF + description: Key error interrupt flag clear + bit_offset: 2 + bit_size: 1 +fieldset/IER: + description: interrupt enable register + fields: + - name: CCFIE + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RWEIE + description: Read or write error interrupt flag + bit_offset: 1 + bit_size: 1 + - name: KEIE + description: Key error interrupt flag + bit_offset: 2 + bit_size: 1 + - name: RNGEIE + description: Key error interrupt flag + bit_offset: 3 + bit_size: 1 +fieldset/ISR: + description: interrupt status register + fields: + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RWEIF + description: Read or write error interrupt flag + bit_offset: 1 + bit_size: 1 + - name: KEIF + description: Key error interrupt flag + bit_offset: 2 + bit_size: 1 + - name: RNGEIF + description: Key error interrupt flag + bit_offset: 3 + bit_size: 1 +fieldset/IVR0: + description: initialization vector register 0 + fields: + - name: IVI + description: "Initialization vector input, bits [31:0]" + bit_offset: 0 + bit_size: 32 +fieldset/IVR1: + description: initialization vector register 1 + fields: + - name: IVI + description: "Initialization vector input, bits [63:32]" + bit_offset: 0 + bit_size: 32 +fieldset/IVR2: + description: initialization vector register 2 + fields: + - name: IVI + description: "Initialization vector input, bits [95:64]" + bit_offset: 0 + bit_size: 32 +fieldset/IVR3: + description: initialization vector register 3 + fields: + - name: IVI + description: "Initialization vector input, bits [127:96]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR0: + description: key register 0 + fields: + - name: KEY + description: "Cryptographic key, bits [31:0]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR1: + description: key register 1 + fields: + - name: KEY + description: "Cryptographic key, bits [63:32]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR2: + description: key register 2 + fields: + - name: KEYR + description: "Cryptographic key, bits [95:64]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR3: + description: key register 3 + fields: + - name: AES_KEYR3 + description: "Cryptographic key, bits [127:96]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR4: + description: key register 4 + fields: + - name: KEY + description: "Cryptographic key, bits [159:128]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR5: + description: key register 5 + fields: + - name: KEY + description: "Cryptographic key, bits [191:160]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR6: + description: key register 6 + fields: + - name: KEY + description: "Cryptographic key, bits [223:192]" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR7: + description: key register 7 + fields: + - name: KEY + description: "Cryptographic key, bits [255:224]" + bit_offset: 0 + bit_size: 32 +fieldset/SR: + description: status register + fields: + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: BUSY + bit_offset: 3 + bit_size: 1 + - name: KEYVALID + description: Key Valid flag + bit_offset: 7 + bit_size: 1 +fieldset/SUSP0R: + description: suspend registers + fields: + - name: SUSP0 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP1R: + description: suspend registers + fields: + - name: SUSP1 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP2R: + description: suspend registers + fields: + - name: SUSP2 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP3R: + description: suspend registers + fields: + - name: SUSP3 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP4R: + description: suspend registers + fields: + - name: SUSP4 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP5R: + description: suspend registers + fields: + - name: SUSP5 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP6R: + description: suspend registers + fields: + - name: SUSP6 + description: AES suspend + bit_offset: 0 + bit_size: 32 +fieldset/SUSP7R: + description: suspend registers + fields: + - name: SUSP7 + description: AES suspend + bit_offset: 0 + bit_size: 32 diff --git a/data/registers/aes_v1.yaml b/data/registers/aes_v1.yaml new file mode 100644 index 0000000..1f2ee7e --- /dev/null +++ b/data/registers/aes_v1.yaml @@ -0,0 +1,321 @@ +--- +block/AES: + description: Advanced encryption standard hardware accelerator + items: + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + access: Read + fieldset: SR + - name: DINR + description: data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: data output register + byte_offset: 12 + access: Read + fieldset: DOUTR + - name: KEYR0 + description: key register 0 + byte_offset: 16 + fieldset: KEYR0 + - name: KEYR1 + description: key register 1 + byte_offset: 20 + fieldset: KEYR1 + - name: KEYR2 + description: key register 2 + byte_offset: 24 + fieldset: KEYR2 + - name: KEYR3 + description: key register 3 + byte_offset: 28 + fieldset: KEYR3 + - name: IVR0 + description: initialization vector register 0 + byte_offset: 32 + fieldset: IVR0 + - name: IVR1 + description: initialization vector register 1 + byte_offset: 36 + fieldset: IVR1 + - name: IVR2 + description: initialization vector register 2 + byte_offset: 40 + fieldset: IVR2 + - name: IVR3 + description: initialization vector register 3 + byte_offset: 44 + fieldset: IVR3 +fieldset/CR: + description: control register + fields: + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + enum: EN + - name: DATATYPE + description: Data type selection (for data in and data out to/from the cryptographic block) + bit_offset: 1 + bit_size: 2 + enum: DATATYPE + - name: MODE + description: AES operating mode + bit_offset: 3 + bit_size: 2 + enum: MODE + - name: CHMOD + description: AES chaining mode + bit_offset: 5 + bit_size: 2 + enum: CHMOD + - name: CCFC + description: Computation Complete Flag Clear + bit_offset: 7 + bit_size: 1 + enum: CCFC + - name: ERRC + description: Error clear + bit_offset: 8 + bit_size: 1 + enum: ERRC + - name: CCFIE + description: CCF flag interrupt enable + bit_offset: 9 + bit_size: 1 + enum: CCFIE + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + enum: ERRIE + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + enum: DMAINEN + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + enum: DMAOUTEN +fieldset/DINR: + description: data input register + fields: + - name: DIN + description: Data Input Register. + bit_offset: 0 + bit_size: 32 +fieldset/DOUTR: + description: data output register + fields: + - name: DOUT + description: Data output register + bit_offset: 0 + bit_size: 32 +fieldset/IVR0: + description: initialization vector register 0 + fields: + - name: IV0 + description: "initialization vector register (LSB IVR [31:0])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR1: + description: initialization vector register 1 + fields: + - name: IV1 + description: "Initialization Vector Register (IVR [63:32])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR2: + description: initialization vector register 2 + fields: + - name: IV2 + description: "Initialization Vector Register (IVR [95:64])" + bit_offset: 0 + bit_size: 32 +fieldset/IVR3: + description: initialization vector register 3 + fields: + - name: IV3 + description: "Initialization Vector Register (MSB IVR [127:96])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR0: + description: key register 0 + fields: + - name: KEY0 + description: "Data Output Register (LSB key [31:0])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR1: + description: key register 1 + fields: + - name: KEY1 + description: "AES key register (key [63:32])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR2: + description: key register 2 + fields: + - name: KEY2 + description: "AES key register (key [95:64])" + bit_offset: 0 + bit_size: 32 +fieldset/KEYR3: + description: key register 3 + fields: + - name: KEY3 + description: "AES key register (MSB key [127:96])" + bit_offset: 0 + bit_size: 32 +fieldset/SR: + description: status register + fields: + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + enum: CCF + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + enum: RDERR + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + enum: WRERR +enum/CCF: + bit_size: 1 + variants: + - name: Complete + description: Computation complete + value: 0 + - name: NotComplete + description: Computation not complete + value: 1 +enum/CCFC: + bit_size: 1 + variants: + - name: Clear + description: Clear computation complete flag + value: 1 +enum/CCFIE: + bit_size: 1 + variants: + - name: Disabled + description: Disable (mask) CCF interrupt + value: 0 + - name: Enabled + description: Enable CCF interrupt + value: 1 +enum/CHMOD: + bit_size: 2 + variants: + - name: ECB + description: Electronic codebook (ECB) + value: 0 + - name: CBC + description: Cipher-Block Chaining (CBC) + value: 1 + - name: CTR + description: Counter Mode (CTR) + value: 2 +enum/DATATYPE: + bit_size: 2 + variants: + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 +enum/DMAINEN: + bit_size: 1 + variants: + - name: Disabled + description: Disable DMA Input + value: 0 + - name: Enabled + description: Enable DMA Input + value: 1 +enum/DMAOUTEN: + bit_size: 1 + variants: + - name: Disabled + description: Disable DMA Output + value: 0 + - name: Enabled + description: Enabled DMA Output + value: 1 +enum/EN: + bit_size: 1 + variants: + - name: Disabled + description: Disable AES + value: 0 + - name: Enabled + description: Enable AES + value: 1 +enum/ERRC: + bit_size: 1 + variants: + - name: Clear + description: Clear RDERR and WRERR flags + value: 1 +enum/ERRIE: + bit_size: 1 + variants: + - name: Disabled + description: Disable (mask) error interrupt + value: 0 + - name: Enabled + description: Enable error interrupt + value: 1 +enum/MODE: + bit_size: 2 + variants: + - name: Mode1 + description: "Mode 1: encryption" + value: 0 + - name: Mode2 + description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + value: 1 + - name: Mode3 + description: "Mode 3: decryption" + value: 2 + - name: Mode4 + description: "Mode 4: key derivation then single decryption" + value: 3 +enum/RDERR: + bit_size: 1 + variants: + - name: NoError + description: Read error not detected + value: 0 + - name: Error + description: Read error detected + value: 1 +enum/WRERR: + bit_size: 1 + variants: + - name: NoError + description: Write error not detected + value: 0 + - name: Error + description: Write error detected + value: 1 diff --git a/data/registers/aes_v2.yaml b/data/registers/aes_v2.yaml new file mode 100644 index 0000000..ec689a3 --- /dev/null +++ b/data/registers/aes_v2.yaml @@ -0,0 +1,332 @@ +--- +block/AES: + description: Advanced Encryption Standard + items: + - name: CR + description: AES control register + byte_offset: 0 + fieldset: CR + - name: SR + description: AES status register + byte_offset: 4 + fieldset: SR + - name: DINR + description: "AES data input register " + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: "AES data output register " + byte_offset: 12 + fieldset: DOUTR + - name: KEYR0 + description: AES key register 0 + byte_offset: 16 + fieldset: KEYR0 + - name: KEYR1 + description: AES key register 1 + byte_offset: 20 + fieldset: KEYR1 + - name: KEYR2 + description: AES key register 2 + byte_offset: 24 + fieldset: KEYR2 + - name: KEYR3 + description: AES key register 3 + byte_offset: 28 + fieldset: KEYR3 + - name: IVR0 + description: AES initialization vector register 0 + byte_offset: 32 + fieldset: IVR0 + - name: IVR1 + description: AES initialization vector register 1 + byte_offset: 36 + fieldset: IVR1 + - name: IVR2 + description: AES initialization vector register 2 + byte_offset: 40 + fieldset: IVR2 + - name: IVR3 + description: AES initialization vector register 3 + byte_offset: 44 + fieldset: IVR3 + - name: KEYR4 + description: AES key register 4 + byte_offset: 48 + fieldset: KEYR4 + - name: KEYR5 + description: AES key register 5 + byte_offset: 52 + fieldset: KEYR5 + - name: KEYR6 + description: AES key register 6 + byte_offset: 56 + fieldset: KEYR6 + - name: KEYR7 + description: AES key register 7 + byte_offset: 60 + fieldset: KEYR7 + - name: SUSP0R + description: "AES suspend registers " + byte_offset: 64 + fieldset: SUSP0R + - name: SUSP1R + description: "AES suspend registers " + byte_offset: 68 + fieldset: SUSP1R + - name: SUSP2R + description: "AES suspend registers " + byte_offset: 72 + fieldset: SUSP2R + - name: SUSP3R + description: "AES suspend registers " + byte_offset: 76 + fieldset: SUSP3R + - name: SUSP4R + description: "AES suspend registers " + byte_offset: 80 + fieldset: SUSP4R + - name: SUSP5R + description: "AES suspend registers " + byte_offset: 84 + fieldset: SUSP5R + - name: SUSP6R + description: "AES suspend registers " + byte_offset: 88 + fieldset: SUSP6R + - name: SUSP7R + description: "AES suspend registers " + byte_offset: 92 + fieldset: SUSP7R +fieldset/CR: + description: AES control register + fields: + - name: EN + description: "AES enable This bit enables/disables the AES peripheral: At any moment, clearing then setting the bit re-initializes the AES peripheral. This bit is automatically cleared by hardware upon the completion of the key preparation (Mode 2) and upon the completion of GCM/GMAC/CCM initial phase." + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: "Data type selection This bitfield defines the format of data written in the AES_DINR register or read from the AES_DOUTR register, through selecting the mode of data swapping: For more details, refer to . Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + bit_offset: 1 + bit_size: 2 + - name: MODE + description: "AES operating mode This bitfield selects the AES operating mode: Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access. Any attempt to selecting Mode 4 while either ECB or CBC chaining mode is not selected, defaults to effective selection of Mode 3. It is not possible to select a Mode 3 following a Mode 4." + bit_offset: 3 + bit_size: 2 + - name: CHMOD1 + description: "Chaining mode selection, bit [2] Refer to the bits [5:6] of the register for the description of the CHMOD[2:0] bitfield CHMOD[1:0]: Chaining mode selection, bits [1:0] This bitfield, together with the bit CHMOD[2] forming CHMOD[2:0], selects the AES chaining mode: others: Reserved Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + bit_offset: 5 + bit_size: 2 + - name: CCFC + description: "Computation complete flag clear Upon written to 1, this bit clears the computation complete flag (CCF) in the AES_SR register: Reading the flag always returns zero." + bit_offset: 7 + bit_size: 1 + - name: ERRC + description: "Error flag clear Upon written to 1, this bit clears the RDERR and WRERR error flags in the AES_SR register: Reading the flag always returns zero." + bit_offset: 8 + bit_size: 1 + - name: CCFIE + description: "CCF interrupt enable This bit enables or disables (masks) the AES interrupt generation when CCF (computation complete flag) is set:" + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: "Error interrupt enable This bit enables or disables (masks) the AES interrupt generation when RDERR and/or WRERR is set:" + bit_offset: 10 + bit_size: 1 + - name: DMAINEN + description: "DMA input enable This bit enables/disables data transferring with DMA, in the input phase: When the bit is set, DMA requests are automatically generated by AES during the input data phase. This feature is only effective when Mode 1 or Mode 3 is selected through the MODE[1:0] bitfield. It is not effective for Mode 2 (key derivation). Usage of DMA with Mode 4 (single decryption) is not recommended." + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: "DMA output enable This bit enables/disables data transferring with DMA, in the output phase: When the bit is set, DMA requests are automatically generated by AES during the output data phase. This feature is only effective when Mode 1 or Mode 3 is selected through the MODE[1:0] bitfield. It is not effective for Mode 2 (key derivation). Usage of DMA with Mode 4 (single decryption) is not recommended." + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: "GCM or CCM phase selection This bitfield selects the phase of GCM, GMAC or CCM algorithm: The bitfield has no effect if other than GCM, GMAC or CCM algorithms are selected (through the ALGOMODE bitfield)." + bit_offset: 13 + bit_size: 2 + - name: CHMOD2 + description: "Chaining mode selection, bit [2] Refer to the bits [5:6] of the register for the description of the CHMOD[2:0] bitfield CHMOD[1:0]: Chaining mode selection, bits [1:0] This bitfield, together with the bit CHMOD[2] forming CHMOD[2:0], selects the AES chaining mode: others: Reserved Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: "Key size selection This bitfield defines the length of the key used in the AES cryptographic core, in bits: Attempts to write the bit are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + bit_offset: 18 + bit_size: 1 + - name: NPBLB + description: "Number of padding bytes in last block The bitfield sets the number of padding bytes in last block of payload: ..." + bit_offset: 20 + bit_size: 4 +fieldset/DINR: + description: "AES data input register " + fields: + - name: DIN + description: "Input data word A four-fold sequential write to this bitfield during the input phase results in writing a complete 128-bit block of input data to the AES peripheral. From the first to the fourth write, the corresponding data weights are [127:96], [95:64], [63:32], and [31:0]. Upon each write, the data from the 32-bit input buffer are handled by the data swap block according to the DATATYPE[1:0] bitfield, then written into the AES core 128-bit input buffer. The data signification of the input data block depends on the AES operating mode: - Mode 1 (encryption): plaintext - Mode 2 (key derivation): the bitfield is not used (AES_KEYRx registers used for input) - Mode 3 (decryption) and Mode 4 (key derivation then single decryption): ciphertext The data swap operation is described in page 499." + bit_offset: 0 + bit_size: 32 +fieldset/DOUTR: + description: "AES data output register " + fields: + - name: DOUT + description: "Output data word This read-only bitfield fetches a 32-bit output buffer. A four-fold sequential read of this bitfield, upon the computation completion (CCF set), virtually reads a complete 128-bit block of output data from the AES peripheral. Before reaching the output buffer, the data produced by the AES core are handled by the data swap block according to the DATATYPE[1:0] bitfield. Data weights from the first to the fourth read operation are: [127:96], [95:64], [63:32], and [31:0]. The data signification of the output data block depends on the AES operating mode: - Mode 1 (encryption): ciphertext - Mode 2 (key derivation): the bitfield is not used (AES_KEYRx registers used for output) - Mode 3 (decryption) and Mode 4 (key derivation then single decryption): plaintext The data swap operation is described in page 499." + bit_offset: 0 + bit_size: 32 +fieldset/IVR0: + description: AES initialization vector register 0 + fields: + - name: IVI + description: "Initialization vector input, bits [31:0] Refer to for description of the IVI[127:0] bitfield. The initialization vector is only used in chaining modes other than ECB. The AES_IVRx registers may be written only when the AES peripheral is disabled" + bit_offset: 0 + bit_size: 32 +fieldset/IVR1: + description: AES initialization vector register 1 + fields: + - name: IVI + description: "Initialization vector input, bits [63:32] Refer to the AES_IVR0 register for description of the IVI[128:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/IVR2: + description: AES initialization vector register 2 + fields: + - name: IVI + description: "Initialization vector input, bits [95:64] Refer to the AES_IVR0 register for description of the IVI[128:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/IVR3: + description: AES initialization vector register 3 + fields: + - name: IVI + description: "Initialization vector input, bits [127:96] Refer to the AES_IVR0 register for description of the IVI[128:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR0: + description: AES key register 0 + fields: + - name: KEY + description: "Cryptographic key, bits [31:0] This bitfield contains the bits [31:0] of the AES encryption or decryption key, depending on the operating mode: - In Mode 1 (encryption), Mode 2 (key derivation) and Mode 4 (key derivation then single decryption): the value to write into the bitfield is the encryption key. - In Mode 3 (decryption): the value to write into the bitfield is the encryption key to be derived before being used for decryption. After writing the encryption key into the bitfield, its reading before enabling AES returns the same value. Its reading after enabling AES and after the CCF flag is set returns the decryption key derived from the encryption key. Note: In mode 4 (key derivation then single decryption) the bitfield always contains the encryption key. The AES_KEYRx registers may be written only when KEYSIZE value is correct and when the AES peripheral is disabled (EN bit of the AES_CR register cleared). Note that, if, the key is directly loaded to AES_KEYRx registers (hence writes to key register is ignored and KEIF is set). Refer to for more details." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR1: + description: AES key register 1 + fields: + - name: KEY + description: "Cryptographic key, bits [63:32] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR2: + description: AES key register 2 + fields: + - name: KEY + description: "Cryptographic key, bits [95:64] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR3: + description: AES key register 3 + fields: + - name: KEY + description: "Cryptographic key, bits [127:96] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR4: + description: AES key register 4 + fields: + - name: KEY + description: "Cryptographic key, bits [159:128] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR5: + description: AES key register 5 + fields: + - name: KEY + description: "Cryptographic key, bits [191:160] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR6: + description: AES key register 6 + fields: + - name: KEY + description: "Cryptographic key, bits [223:192] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/KEYR7: + description: AES key register 7 + fields: + - name: KEY + description: "Cryptographic key, bits [255:224] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + bit_offset: 0 + bit_size: 32 +fieldset/SR: + description: AES status register + fields: + - name: CCF + description: "Computation completed flag This flag indicates whether the computation is completed: The flag is set by hardware upon the completion of the computation. It is cleared by software, upon setting the CCFC bit of the AES_CR register. Upon the flag setting, an interrupt is generated if enabled through the CCFIE bit of the AES_CR register. The flag is significant only when the DMAOUTEN bit is 0. It may stay high when DMA_EN is 1." + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: "Read error flag This flag indicates the detection of an unexpected read operation from the AES_DOUTR register (during computation or data input phase): The flag is set by hardware. It is cleared by software upon setting the ERRC bit of the AES_CR register. Upon the flag setting, an interrupt is generated if enabled through the ERRIE bit of the AES_CR register. The flag setting has no impact on the AES operation. Unexpected read returns zero." + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: "Write error This flag indicates the detection of an unexpected write operation to the AES_DINR register (during computation or data output phase): The flag is set by hardware. It is cleared by software upon setting the ERRC bit of the AES_CR register. Upon the flag setting, an interrupt is generated if enabled through the ERRIE bit of the AES_CR register. The flag setting has no impact on the AES operation. Unexpected write is ignored." + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: "Busy This flag indicates whether AES is idle or busy during GCM payload encryption phase: When the flag indicates “idle”, the current GCM encryption processing may be suspended to process a higher-priority message. In other chaining modes, or in GCM phases other than payload encryption, the flag must be ignored for the suspend process." + bit_offset: 3 + bit_size: 1 +fieldset/SUSP0R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP1R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP2R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP3R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP4R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP5R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP6R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 +fieldset/SUSP7R: + description: "AES suspend registers " + fields: + - name: SUSP + description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + bit_offset: 0 + bit_size: 32 From 37a93d46270a874a1143386d6352fb55706325f7 Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 20:33:11 +0300 Subject: [PATCH 24/54] aes: make all yamls as similar as possible --- data/registers/aes_f7.yaml | 246 +++++++++++++++++++------------- data/registers/aes_g081.yaml | 266 ++++++++++++++++++++--------------- data/registers/aes_u5.yaml | 228 ++++++++++++++++-------------- data/registers/aes_v1.yaml | 201 ++++++-------------------- data/registers/aes_v2.yaml | 220 ++++++++++++++++++----------- 5 files changed, 606 insertions(+), 555 deletions(-) diff --git a/data/registers/aes_f7.yaml b/data/registers/aes_f7.yaml index 6325adf..3e20b93 100644 --- a/data/registers/aes_f7.yaml +++ b/data/registers/aes_f7.yaml @@ -1,122 +1,122 @@ --- block/AES: - description: Advanced encryption standard hardware accelerator 1 + description: Advanced encryption standard hardware accelerator items: - name: CR - description: control register + description: Control register byte_offset: 0 fieldset: CR - name: SR - description: status register + description: Status register byte_offset: 4 - access: Read fieldset: SR - name: DINR - description: data input register + description: Data input register byte_offset: 8 fieldset: DINR - name: DOUTR - description: data output register + description: Data output register byte_offset: 12 - access: Read fieldset: DOUTR - name: KEYR0 - description: key register 0 + description: Key register 0 byte_offset: 16 fieldset: KEYR0 - name: KEYR1 - description: key register 1 + description: Key register 1 byte_offset: 20 fieldset: KEYR1 - name: KEYR2 - description: key register 2 + description: Key register 2 byte_offset: 24 fieldset: KEYR2 - name: KEYR3 - description: key register 3 + description: Key register 3 byte_offset: 28 fieldset: KEYR3 - name: IVR0 - description: initialization vector register 0 + description: Initialization vector register 0 byte_offset: 32 fieldset: IVR0 - name: IVR1 - description: initialization vector register 1 + description: Initialization vector register 1 byte_offset: 36 fieldset: IVR1 - name: IVR2 - description: initialization vector register 2 + description: Initialization vector register 2 byte_offset: 40 fieldset: IVR2 - name: IVR3 - description: initialization vector register 3 + description: Initialization vector register 3 byte_offset: 44 fieldset: IVR3 - name: KEYR4 - description: key register 4 + description: Key register 4 byte_offset: 48 fieldset: KEYR4 - name: KEYR5 - description: key register 5 + description: Key register 5 byte_offset: 52 fieldset: KEYR5 - name: KEYR6 - description: key register 6 + description: Key register 6 byte_offset: 56 fieldset: KEYR6 - name: KEYR7 - description: key register 7 + description: Key register 7 byte_offset: 60 fieldset: KEYR7 - name: SUSP0R - description: AES suspend register 0 + description: Suspend register 0 byte_offset: 64 fieldset: SUSP0R - name: SUSP1R - description: AES suspend register 1 + description: Suspend register 1 byte_offset: 68 fieldset: SUSP1R - name: SUSP2R - description: AES suspend register 2 + description: Suspend register 2 byte_offset: 72 fieldset: SUSP2R - name: SUSP3R - description: AES suspend register 3 + description: Suspend register 3 byte_offset: 76 fieldset: SUSP3R - name: SUSP4R - description: AES suspend register 4 + description: Suspend register 4 byte_offset: 80 fieldset: SUSP4R - name: SUSP5R - description: AES suspend register 5 + description: Suspend register 5 byte_offset: 84 fieldset: SUSP5R - name: SUSP6R - description: AES suspend register 6 + description: Suspend register 6 byte_offset: 88 fieldset: SUSP6R - name: SUSP7R - description: AES suspend register 7 + description: Suspend register 7 byte_offset: 92 fieldset: SUSP7R fieldset/CR: - description: control register + description: Control register fields: - name: EN description: AES enable bit_offset: 0 bit_size: 1 - name: DATATYPE - description: Data type selection (for data in and data out to/from the cryptographic block) + description: Data type selection bit_offset: 1 bit_size: 2 + enum: DATATYPE - name: MODE - description: AES operating mode + description: Operating mode bit_offset: 3 bit_size: 2 + enum: MODE - name: CHMOD10 - description: AES chaining mode Bit1 Bit0 + description: Chaining mode bit1 bit0 bit_offset: 5 bit_size: 2 - name: CCFC @@ -144,11 +144,12 @@ fieldset/CR: bit_offset: 12 bit_size: 1 - name: GCMPH - description: "Used only for GCM, CCM and GMAC algorithms and has no effect when other algorithms are selected" + description: GCM or CCM phase selection bit_offset: 13 bit_size: 2 + enum: GCMPH - name: CHMOD2 - description: AES chaining mode Bit2 + description: Chaining mode bit2 bit_offset: 16 bit_size: 1 - name: KEYSIZE @@ -156,105 +157,105 @@ fieldset/CR: bit_offset: 18 bit_size: 1 fieldset/DINR: - description: data input register + description: Data input register fields: - - name: AES_DINR - description: Data Input Register + - name: DIN + description: Input data word bit_offset: 0 bit_size: 32 fieldset/DOUTR: - description: data output register + description: Data output register fields: - - name: AES_DOUTR - description: Data output register + - name: DOUT + description: Output data word bit_offset: 0 bit_size: 32 fieldset/IVR0: - description: initialization vector register 0 + description: AES initialization vector register 0 fields: - - name: AES_IVR0 - description: "initialization vector register (LSB IVR [31:0])" + - name: IVI + description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: initialization vector register 1 + description: AES initialization vector register 1 fields: - - name: AES_IVR1 - description: "Initialization Vector Register (IVR [63:32])" + - name: IVI + description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: initialization vector register 2 + description: AES initialization vector register 2 fields: - - name: AES_IVR2 - description: "Initialization Vector Register (IVR [95:64])" + - name: IVI + description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: initialization vector register 3 + description: AES initialization vector register 3 fields: - - name: AES_IVR3 - description: "Initialization Vector Register (MSB IVR [127:96])" + - name: IVI + description: Initialization vector input, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR0: - description: key register 0 + description: Key register 0 fields: - - name: AES_KEYR0 - description: "Data Output Register (LSB key [31:0])" + - name: KEY + description: Cryptographic key, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/KEYR1: - description: key register 1 + description: Key register 1 fields: - - name: AES_KEYR1 - description: "AES key register (key [63:32])" + - name: KEY + description: Cryptographic key, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/KEYR2: - description: key register 2 + description: Key register 2 fields: - - name: AES_KEYR2 - description: "AES key register (key [95:64])" + - name: KEY + description: Cryptographic key, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/KEYR3: - description: key register 3 + description: Key register 3 fields: - - name: AES_KEYR3 - description: "AES key register (MSB key [127:96])" + - name: KEY + description: Cryptographic key, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR4: - description: key register 4 + description: Key register 4 fields: - - name: AES_KEYR4 - description: "AES key register (MSB key [159:128])" + - name: KEY + description: Cryptographic key, bits [159:128] bit_offset: 0 bit_size: 32 fieldset/KEYR5: - description: key register 5 + description: Key register 5 fields: - - name: AES_KEYR5 - description: "AES key register (MSB key [191:160])" + - name: KEY + description: Cryptographic key, bits [191:160] bit_offset: 0 bit_size: 32 fieldset/KEYR6: - description: key register 6 + description: Key register 6 fields: - - name: AES_KEYR6 - description: "AES key register (MSB key [223:192])" + - name: KEY + description: Cryptographic key, bits [223:192] bit_offset: 0 bit_size: 32 fieldset/KEYR7: - description: key register 7 + description: Key register 7 fields: - - name: AES_KEYR7 - description: "AES key register (MSB key [255:224])" + - name: KEY + description: Cryptographic key, bits [255:224] bit_offset: 0 bit_size: 32 fieldset/SR: - description: status register + description: Status register fields: - name: CCF description: Computation complete flag @@ -273,58 +274,103 @@ fieldset/SR: bit_offset: 3 bit_size: 1 fieldset/SUSP0R: - description: AES suspend register 0 + description: Suspend register 0 fields: - - name: AES_SUSP0R - description: AES suspend register 0 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP1R: - description: AES suspend register 1 + description: Suspend register 1 fields: - - name: AES_SUSP1R - description: AES suspend register 1 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP2R: - description: AES suspend register 2 + description: Suspend register 2 fields: - - name: AES_SUSP2R - description: AES suspend register 2 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP3R: - description: AES suspend register 3 + description: Suspend register 3 fields: - - name: AES_SUSP3R - description: AES suspend register 3 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP4R: - description: AES suspend register 4 + description: Suspend register 4 fields: - - name: AES_SUSP4R - description: AES suspend register 4 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP5R: - description: AES suspend register 5 + description: Suspend register 5 fields: - - name: AES_SUSP5R - description: AES suspend register 5 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP6R: - description: AES suspend register 6 + description: Suspend register 6 fields: - - name: AES_SUSP6R - description: AES suspend register 6 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP7R: - description: AES suspend register 7 + description: Suspend register 7 fields: - - name: AES_SUSP7R - description: AES suspend register 7 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 +enum/DATATYPE: + bit_size: 2 + variants: + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 +enum/MODE: + bit_size: 2 + variants: + - name: Mode1 + description: "Mode 1: encryption" + value: 0 + - name: Mode2 + description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + value: 1 + - name: Mode3 + description: "Mode 3: decryption" + value: 2 + - name: Mode4 + description: "Mode 4: key derivation then single decryption" + value: 3 diff --git a/data/registers/aes_g081.yaml b/data/registers/aes_g081.yaml index d0b8e82..5e66002 100644 --- a/data/registers/aes_g081.yaml +++ b/data/registers/aes_g081.yaml @@ -1,142 +1,138 @@ --- block/AES: - description: Advanced encryption standard hardware accelerator 1 + description: Advanced encryption standard hardware accelerator items: - name: CR - description: control register + description: Control register byte_offset: 0 fieldset: CR - name: SR - description: status register + description: Status register byte_offset: 4 - access: Read fieldset: SR - name: DINR - description: data input register + description: Data input register byte_offset: 8 fieldset: DINR - name: DOUTR - description: data output register + description: Data output register byte_offset: 12 - access: Read fieldset: DOUTR - name: KEYR0 - description: key register 0 + description: Key register 0 byte_offset: 16 fieldset: KEYR0 - name: KEYR1 - description: key register 1 + description: Key register 1 byte_offset: 20 fieldset: KEYR1 - name: KEYR2 - description: key register 2 + description: Key register 2 byte_offset: 24 fieldset: KEYR2 - name: KEYR3 - description: key register 3 + description: Key register 3 byte_offset: 28 fieldset: KEYR3 - name: IVR0 - description: initialization vector register 0 + description: Initialization vector register 0 byte_offset: 32 fieldset: IVR0 - name: IVR1 - description: initialization vector register 1 + description: Initialization vector register 1 byte_offset: 36 fieldset: IVR1 - name: IVR2 - description: initialization vector register 2 + description: Initialization vector register 2 byte_offset: 40 fieldset: IVR2 - name: IVR3 - description: initialization vector register 3 + description: Initialization vector register 3 byte_offset: 44 fieldset: IVR3 - name: KEYR4 - description: key register 4 + description: Key register 4 byte_offset: 48 fieldset: KEYR4 - name: KEYR5 - description: key register 5 + description: Key register 5 byte_offset: 52 fieldset: KEYR5 - name: KEYR6 - description: key register 6 + description: Key register 6 byte_offset: 56 fieldset: KEYR6 - name: KEYR7 - description: key register 7 + description: Key register 7 byte_offset: 60 fieldset: KEYR7 - name: SUSP0R - description: AES suspend register 0 + description: Suspend register 0 byte_offset: 64 fieldset: SUSP0R - name: SUSP1R - description: AES suspend register 1 + description: Suspend register 1 byte_offset: 68 fieldset: SUSP1R - name: SUSP2R - description: AES suspend register 2 + description: Suspend register 2 byte_offset: 72 fieldset: SUSP2R - name: SUSP3R - description: AES suspend register 3 + description: Suspend register 3 byte_offset: 76 fieldset: SUSP3R - name: SUSP4R - description: AES suspend register 4 + description: Suspend register 4 byte_offset: 80 fieldset: SUSP4R - name: SUSP5R - description: AES suspend register 5 + description: Suspend register 5 byte_offset: 84 fieldset: SUSP5R - name: SUSP6R - description: AES suspend register 6 + description: Suspend register 6 byte_offset: 88 fieldset: SUSP6R - name: SUSP7R - description: AES suspend register 7 + description: Suspend register 7 byte_offset: 92 fieldset: SUSP7R - name: HWCFR - description: AES hardware configuration register + description: Hardware configuration register byte_offset: 1008 - access: Read fieldset: HWCFR - name: VERR - description: AES version register + description: Version register byte_offset: 1012 - access: Read fieldset: VERR - name: IPIDR - description: AES identification register + description: Identification register byte_offset: 1016 - access: Read fieldset: IPIDR - name: SIDR - description: AES size ID register + description: Size ID register byte_offset: 1020 - access: Read fieldset: SIDR fieldset/CR: - description: control register + description: Control register fields: - name: EN description: AES enable bit_offset: 0 bit_size: 1 - name: DATATYPE - description: Data type selection (for data in and data out to/from the cryptographic block) + description: Data type selection bit_offset: 1 bit_size: 2 + enum: DATATYPE - name: MODE - description: AES operating mode + description: Operating mode bit_offset: 3 bit_size: 2 + enum: MODE - name: CHMOD10 - description: AES chaining mode Bit1 Bit0 + description: Chaining mode bit1 bit0 bit_offset: 5 bit_size: 2 - name: CCFC @@ -164,11 +160,12 @@ fieldset/CR: bit_offset: 12 bit_size: 1 - name: GCMPH - description: "Used only for GCM, CCM and GMAC algorithms and has no effect when other algorithms are selected" + description: GCM or CCM phase selection bit_offset: 13 bit_size: 2 + enum: GCMPH - name: CHMOD2 - description: AES chaining mode Bit2 + description: Chaining mode bit2 bit_offset: 16 bit_size: 1 - name: KEYSIZE @@ -180,21 +177,21 @@ fieldset/CR: bit_offset: 20 bit_size: 4 fieldset/DINR: - description: data input register + description: Data input register fields: - - name: AES_DINR - description: Data Input Register + - name: DIN + description: Input data word bit_offset: 0 bit_size: 32 fieldset/DOUTR: - description: data output register + description: Data output register fields: - - name: AES_DOUTR - description: Data output register + - name: DOUT + description: Output data word bit_offset: 0 bit_size: 32 fieldset/HWCFR: - description: AES hardware configuration register + description: Hardware configuration register fields: - name: CFG1 description: HW Generic 1 @@ -213,105 +210,105 @@ fieldset/HWCFR: bit_offset: 12 bit_size: 4 fieldset/IPIDR: - description: AES identification register + description: Identification register fields: - name: ID description: Identification code bit_offset: 0 bit_size: 32 fieldset/IVR0: - description: initialization vector register 0 + description: AES initialization vector register 0 fields: - - name: AES_IVR0 - description: "initialization vector register (LSB IVR [31:0])" + - name: IVI + description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: initialization vector register 1 + description: AES initialization vector register 1 fields: - - name: AES_IVR1 - description: "Initialization Vector Register (IVR [63:32])" + - name: IVI + description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: initialization vector register 2 + description: AES initialization vector register 2 fields: - - name: AES_IVR2 - description: "Initialization Vector Register (IVR [95:64])" + - name: IVI + description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: initialization vector register 3 + description: AES initialization vector register 3 fields: - - name: AES_IVR3 - description: "Initialization Vector Register (MSB IVR [127:96])" + - name: IVI + description: Initialization vector input, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR0: - description: key register 0 + description: Key register 0 fields: - - name: AES_KEYR0 - description: "Data Output Register (LSB key [31:0])" + - name: KEY + description: Cryptographic key, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/KEYR1: - description: key register 1 + description: Key register 1 fields: - - name: AES_KEYR1 - description: "AES key register (key [63:32])" + - name: KEY + description: Cryptographic key, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/KEYR2: - description: key register 2 + description: Key register 2 fields: - - name: AES_KEYR2 - description: "AES key register (key [95:64])" + - name: KEY + description: Cryptographic key, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/KEYR3: - description: key register 3 + description: Key register 3 fields: - - name: AES_KEYR3 - description: "AES key register (MSB key [127:96])" + - name: KEY + description: Cryptographic key, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR4: - description: key register 4 + description: Key register 4 fields: - - name: AES_KEYR4 - description: "AES key register (MSB key [159:128])" + - name: KEY + description: Cryptographic key, bits [159:128] bit_offset: 0 bit_size: 32 fieldset/KEYR5: - description: key register 5 + description: Key register 5 fields: - - name: AES_KEYR5 - description: "AES key register (MSB key [191:160])" + - name: KEY + description: Cryptographic key, bits [191:160] bit_offset: 0 bit_size: 32 fieldset/KEYR6: - description: key register 6 + description: Key register 6 fields: - - name: AES_KEYR6 - description: "AES key register (MSB key [223:192])" + - name: KEY + description: Cryptographic key, bits [223:192] bit_offset: 0 bit_size: 32 fieldset/KEYR7: - description: key register 7 + description: Key register 7 fields: - - name: AES_KEYR7 - description: "AES key register (MSB key [255:224])" + - name: KEY + description: Cryptographic key, bits [255:224] bit_offset: 0 bit_size: 32 fieldset/SIDR: - description: AES size ID register + description: Size ID register fields: - name: ID description: Size Identification code bit_offset: 0 bit_size: 32 fieldset/SR: - description: status register + description: Status register fields: - name: CCF description: Computation complete flag @@ -330,63 +327,63 @@ fieldset/SR: bit_offset: 3 bit_size: 1 fieldset/SUSP0R: - description: AES suspend register 0 + description: Suspend register 0 fields: - - name: AES_SUSP0R - description: AES suspend register 0 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP1R: - description: AES suspend register 1 + description: Suspend register 1 fields: - - name: AES_SUSP1R - description: AES suspend register 1 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP2R: - description: AES suspend register 2 + description: Suspend register 2 fields: - - name: AES_SUSP2R - description: AES suspend register 2 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP3R: - description: AES suspend register 3 + description: Suspend register 3 fields: - - name: AES_SUSP3R - description: AES suspend register 3 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP4R: - description: AES suspend register 4 + description: Suspend register 4 fields: - - name: AES_SUSP4R - description: AES suspend register 4 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP5R: - description: AES suspend register 5 + description: Suspend register 5 fields: - - name: AES_SUSP5R - description: AES suspend register 5 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP6R: - description: AES suspend register 6 + description: Suspend register 6 fields: - - name: AES_SUSP6R - description: AES suspend register 6 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP7R: - description: AES suspend register 7 + description: Suspend register 7 fields: - - name: AES_SUSP7R - description: AES suspend register 7 + - name: SUSP + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/VERR: - description: AES version register + description: Version register fields: - name: MINREV description: Minor revision @@ -396,3 +393,48 @@ fieldset/VERR: description: Major revision bit_offset: 4 bit_size: 4 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 +enum/DATATYPE: + bit_size: 2 + variants: + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 +enum/MODE: + bit_size: 2 + variants: + - name: Mode1 + description: "Mode 1: encryption" + value: 0 + - name: Mode2 + description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + value: 1 + - name: Mode3 + description: "Mode 3: decryption" + value: 2 + - name: Mode4 + description: "Mode 4: key derivation then single decryption" + value: 3 diff --git a/data/registers/aes_u5.yaml b/data/registers/aes_u5.yaml index b4366cc..2f6ef40 100644 --- a/data/registers/aes_u5.yaml +++ b/data/registers/aes_u5.yaml @@ -3,119 +3,100 @@ block/AES: description: Advanced encryption standard hardware accelerator items: - name: CR - description: control register + description: Control register byte_offset: 0 fieldset: CR - name: SR - description: status register + description: Status register byte_offset: 4 - access: Read fieldset: SR - name: DINR - description: data input register + description: Data input register byte_offset: 8 - access: Write fieldset: DINR - name: DOUTR - description: data output register + description: Data output register byte_offset: 12 - access: Read fieldset: DOUTR - name: KEYR0 - description: key register 0 + description: Key register 0 byte_offset: 16 - access: Write fieldset: KEYR0 - name: KEYR1 - description: key register 1 + description: Key register 1 byte_offset: 20 - access: Write fieldset: KEYR1 - name: KEYR2 - description: key register 2 + description: Key register 2 byte_offset: 24 - access: Write fieldset: KEYR2 - name: KEYR3 - description: key register 3 + description: Key register 3 byte_offset: 28 - access: Write fieldset: KEYR3 - name: IVR0 - description: initialization vector register 0 + description: Initialization vector register 0 byte_offset: 32 fieldset: IVR0 - name: IVR1 - description: initialization vector register 1 + description: Initialization vector register 1 byte_offset: 36 fieldset: IVR1 - name: IVR2 - description: initialization vector register 2 + description: Initialization vector register 2 byte_offset: 40 fieldset: IVR2 - name: IVR3 - description: initialization vector register 3 + description: Initialization vector register 3 byte_offset: 44 fieldset: IVR3 - name: KEYR4 - description: key register 4 + description: Key register 4 byte_offset: 48 - access: Write fieldset: KEYR4 - name: KEYR5 - description: key register 5 + description: Key register 5 byte_offset: 52 - access: Write fieldset: KEYR5 - name: KEYR6 - description: key register 6 + description: Key register 6 byte_offset: 56 - access: Write fieldset: KEYR6 - name: KEYR7 - description: key register 7 + description: Key register 7 byte_offset: 60 - access: Write fieldset: KEYR7 - name: SUSP0R - description: suspend registers + description: Suspend register 0 byte_offset: 64 - access: Write fieldset: SUSP0R - name: SUSP1R - description: suspend registers + description: Suspend register 1 byte_offset: 68 - access: Write fieldset: SUSP1R - name: SUSP2R - description: suspend registers + description: Suspend register 2 byte_offset: 72 - access: Write fieldset: SUSP2R - name: SUSP3R - description: suspend registers + description: Suspend register 3 byte_offset: 76 - access: Write fieldset: SUSP3R - name: SUSP4R - description: suspend registers + description: Suspend register 4 byte_offset: 80 - access: Write fieldset: SUSP4R - name: SUSP5R - description: suspend registers + description: Suspend register 5 byte_offset: 84 - access: Write fieldset: SUSP5R - name: SUSP6R - description: suspend registers + description: Suspend register 6 byte_offset: 88 - access: Write fieldset: SUSP6R - name: SUSP7R - description: suspend registers + description: Suspend register 7 byte_offset: 92 - access: Write fieldset: SUSP7R - name: IER description: interrupt enable register @@ -124,30 +105,30 @@ block/AES: - name: ISR description: interrupt status register byte_offset: 772 - access: Read fieldset: ISR - name: ICR description: interrupt clear register byte_offset: 776 - access: Write fieldset: ICR fieldset/CR: - description: control register + description: Control register fields: - name: EN description: AES enable bit_offset: 0 bit_size: 1 - name: DATATYPE - description: Data type selection (for data in and data out to/from the cryptographic block) + description: Data type selection bit_offset: 1 bit_size: 2 + enum: DATATYPE - name: MODE - description: AES operating mode + description: Operating mode bit_offset: 3 bit_size: 2 - - name: CHMOD - description: AES chaining mode + enum: MODE + - name: CHMOD10 + description: Chaining mode bit1 bit0 bit_offset: 5 bit_size: 2 - name: DMAINEN @@ -159,19 +140,20 @@ fieldset/CR: bit_offset: 12 bit_size: 1 - name: GCMPH - description: GCMPH + description: GCM or CCM phase selection bit_offset: 13 bit_size: 2 - - name: CHMOD_2 - description: CHMOD_2 + enum: GCMPH + - name: CHMOD2 + description: Chaining mode bit2 bit_offset: 16 bit_size: 1 - name: KEYSIZE - description: KEYSIZE + description: Key size selection bit_offset: 18 bit_size: 1 - name: NPBLB - description: NPBLB + description: Number of padding bytes in last block of payload bit_offset: 20 bit_size: 4 - name: KMOD @@ -183,14 +165,14 @@ fieldset/CR: bit_offset: 31 bit_size: 1 fieldset/DINR: - description: data input register + description: Data input register fields: - name: DIN description: Input data word bit_offset: 0 bit_size: 32 fieldset/DOUTR: - description: data output register + description: Data output register fields: - name: DOUT description: Output data word @@ -250,91 +232,91 @@ fieldset/ISR: bit_offset: 3 bit_size: 1 fieldset/IVR0: - description: initialization vector register 0 + description: AES initialization vector register 0 fields: - name: IVI - description: "Initialization vector input, bits [31:0]" + description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: initialization vector register 1 + description: AES initialization vector register 1 fields: - name: IVI - description: "Initialization vector input, bits [63:32]" + description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: initialization vector register 2 + description: AES initialization vector register 2 fields: - name: IVI - description: "Initialization vector input, bits [95:64]" + description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: initialization vector register 3 + description: AES initialization vector register 3 fields: - name: IVI - description: "Initialization vector input, bits [127:96]" + description: Initialization vector input, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR0: - description: key register 0 + description: Key register 0 fields: - name: KEY - description: "Cryptographic key, bits [31:0]" + description: Cryptographic key, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/KEYR1: - description: key register 1 + description: Key register 1 fields: - name: KEY - description: "Cryptographic key, bits [63:32]" + description: Cryptographic key, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/KEYR2: - description: key register 2 + description: Key register 2 fields: - - name: KEYR - description: "Cryptographic key, bits [95:64]" + - name: KEY + description: Cryptographic key, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/KEYR3: - description: key register 3 + description: Key register 3 fields: - - name: AES_KEYR3 - description: "Cryptographic key, bits [127:96]" + - name: KEY + description: Cryptographic key, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR4: - description: key register 4 + description: Key register 4 fields: - name: KEY - description: "Cryptographic key, bits [159:128]" + description: Cryptographic key, bits [159:128] bit_offset: 0 bit_size: 32 fieldset/KEYR5: - description: key register 5 + description: Key register 5 fields: - name: KEY - description: "Cryptographic key, bits [191:160]" + description: Cryptographic key, bits [191:160] bit_offset: 0 bit_size: 32 fieldset/KEYR6: - description: key register 6 + description: Key register 6 fields: - name: KEY - description: "Cryptographic key, bits [223:192]" + description: Cryptographic key, bits [223:192] bit_offset: 0 bit_size: 32 fieldset/KEYR7: - description: key register 7 + description: Key register 7 fields: - name: KEY - description: "Cryptographic key, bits [255:224]" + description: Cryptographic key, bits [255:224] bit_offset: 0 bit_size: 32 fieldset/SR: - description: status register + description: Status register fields: - name: CCF description: Computation complete flag @@ -349,66 +331,108 @@ fieldset/SR: bit_offset: 2 bit_size: 1 - name: BUSY - description: BUSY + description: Busy flag bit_offset: 3 bit_size: 1 - name: KEYVALID - description: Key Valid flag + description: Key valid flag bit_offset: 7 bit_size: 1 fieldset/SUSP0R: - description: suspend registers + description: Suspend register 0 fields: - - name: SUSP0 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP1R: - description: suspend registers + description: Suspend register 1 fields: - - name: SUSP1 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP2R: - description: suspend registers + description: Suspend register 2 fields: - - name: SUSP2 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP3R: - description: suspend registers + description: Suspend register 3 fields: - - name: SUSP3 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP4R: - description: suspend registers + description: Suspend register 4 fields: - - name: SUSP4 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP5R: - description: suspend registers + description: Suspend register 5 fields: - - name: SUSP5 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP6R: - description: suspend registers + description: Suspend register 6 fields: - - name: SUSP6 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP7R: - description: suspend registers + description: Suspend register 7 fields: - - name: SUSP7 + - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 +enum/DATATYPE: + bit_size: 2 + variants: + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 +enum/MODE: + bit_size: 2 + variants: + - name: Mode1 + description: "Mode 1: encryption" + value: 0 + - name: Mode2 + description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + value: 1 + - name: Mode3 + description: "Mode 3: decryption" + value: 2 diff --git a/data/registers/aes_v1.yaml b/data/registers/aes_v1.yaml index 1f2ee7e..6fbc6cc 100644 --- a/data/registers/aes_v1.yaml +++ b/data/registers/aes_v1.yaml @@ -3,232 +3,183 @@ block/AES: description: Advanced encryption standard hardware accelerator items: - name: CR - description: control register + description: Control register byte_offset: 0 fieldset: CR - name: SR - description: status register + description: Status register byte_offset: 4 - access: Read fieldset: SR - name: DINR - description: data input register + description: Data input register byte_offset: 8 fieldset: DINR - name: DOUTR - description: data output register + description: Data output register byte_offset: 12 - access: Read fieldset: DOUTR - name: KEYR0 - description: key register 0 + description: Key register 0 byte_offset: 16 fieldset: KEYR0 - name: KEYR1 - description: key register 1 + description: Key register 1 byte_offset: 20 fieldset: KEYR1 - name: KEYR2 - description: key register 2 + description: Key register 2 byte_offset: 24 fieldset: KEYR2 - name: KEYR3 - description: key register 3 + description: Key register 3 byte_offset: 28 fieldset: KEYR3 - name: IVR0 - description: initialization vector register 0 + description: Initialization vector register 0 byte_offset: 32 fieldset: IVR0 - name: IVR1 - description: initialization vector register 1 + description: Initialization vector register 1 byte_offset: 36 fieldset: IVR1 - name: IVR2 - description: initialization vector register 2 + description: Initialization vector register 2 byte_offset: 40 fieldset: IVR2 - name: IVR3 - description: initialization vector register 3 + description: Initialization vector register 3 byte_offset: 44 fieldset: IVR3 fieldset/CR: - description: control register + description: Control register fields: - name: EN description: AES enable bit_offset: 0 bit_size: 1 - enum: EN - name: DATATYPE - description: Data type selection (for data in and data out to/from the cryptographic block) + description: Data type selection bit_offset: 1 bit_size: 2 enum: DATATYPE - name: MODE - description: AES operating mode + description: Operating mode bit_offset: 3 bit_size: 2 enum: MODE - - name: CHMOD - description: AES chaining mode + - name: CHMOD10 + description: Chaining mode bit1 bit0 bit_offset: 5 bit_size: 2 - enum: CHMOD - name: CCFC description: Computation Complete Flag Clear bit_offset: 7 bit_size: 1 - enum: CCFC - name: ERRC description: Error clear bit_offset: 8 bit_size: 1 - enum: ERRC - name: CCFIE description: CCF flag interrupt enable bit_offset: 9 bit_size: 1 - enum: CCFIE - name: ERRIE description: Error interrupt enable bit_offset: 10 bit_size: 1 - enum: ERRIE - name: DMAINEN description: Enable DMA management of data input phase bit_offset: 11 bit_size: 1 - enum: DMAINEN - name: DMAOUTEN description: Enable DMA management of data output phase bit_offset: 12 bit_size: 1 - enum: DMAOUTEN fieldset/DINR: - description: data input register + description: Data input register fields: - name: DIN - description: Data Input Register. + description: Input data word bit_offset: 0 bit_size: 32 fieldset/DOUTR: - description: data output register + description: Data output register fields: - name: DOUT - description: Data output register + description: Output data word bit_offset: 0 bit_size: 32 fieldset/IVR0: - description: initialization vector register 0 + description: AES initialization vector register 0 fields: - - name: IV0 - description: "initialization vector register (LSB IVR [31:0])" + - name: IVI + description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: initialization vector register 1 + description: AES initialization vector register 1 fields: - - name: IV1 - description: "Initialization Vector Register (IVR [63:32])" + - name: IVI + description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: initialization vector register 2 + description: AES initialization vector register 2 fields: - - name: IV2 - description: "Initialization Vector Register (IVR [95:64])" + - name: IVI + description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: initialization vector register 3 + description: AES initialization vector register 3 fields: - - name: IV3 - description: "Initialization Vector Register (MSB IVR [127:96])" + - name: IVI + description: Initialization vector input, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR0: - description: key register 0 + description: Key register 0 fields: - - name: KEY0 - description: "Data Output Register (LSB key [31:0])" + - name: KEY + description: Cryptographic key, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/KEYR1: - description: key register 1 + description: Key register 1 fields: - - name: KEY1 - description: "AES key register (key [63:32])" + - name: KEY + description: Cryptographic key, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/KEYR2: - description: key register 2 + description: Key register 2 fields: - - name: KEY2 - description: "AES key register (key [95:64])" + - name: KEY + description: Cryptographic key, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/KEYR3: - description: key register 3 + description: Key register 3 fields: - - name: KEY3 - description: "AES key register (MSB key [127:96])" + - name: KEY + description: Cryptographic key, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/SR: - description: status register + description: Status register fields: - name: CCF description: Computation complete flag bit_offset: 0 bit_size: 1 - enum: CCF - name: RDERR description: Read error flag bit_offset: 1 bit_size: 1 - enum: RDERR - name: WRERR description: Write error flag bit_offset: 2 bit_size: 1 - enum: WRERR -enum/CCF: - bit_size: 1 - variants: - - name: Complete - description: Computation complete - value: 0 - - name: NotComplete - description: Computation not complete - value: 1 -enum/CCFC: - bit_size: 1 - variants: - - name: Clear - description: Clear computation complete flag - value: 1 -enum/CCFIE: - bit_size: 1 - variants: - - name: Disabled - description: Disable (mask) CCF interrupt - value: 0 - - name: Enabled - description: Enable CCF interrupt - value: 1 -enum/CHMOD: - bit_size: 2 - variants: - - name: ECB - description: Electronic codebook (ECB) - value: 0 - - name: CBC - description: Cipher-Block Chaining (CBC) - value: 1 - - name: CTR - description: Counter Mode (CTR) - value: 2 enum/DATATYPE: bit_size: 2 variants: @@ -244,48 +195,6 @@ enum/DATATYPE: - name: Bit description: Bit value: 3 -enum/DMAINEN: - bit_size: 1 - variants: - - name: Disabled - description: Disable DMA Input - value: 0 - - name: Enabled - description: Enable DMA Input - value: 1 -enum/DMAOUTEN: - bit_size: 1 - variants: - - name: Disabled - description: Disable DMA Output - value: 0 - - name: Enabled - description: Enabled DMA Output - value: 1 -enum/EN: - bit_size: 1 - variants: - - name: Disabled - description: Disable AES - value: 0 - - name: Enabled - description: Enable AES - value: 1 -enum/ERRC: - bit_size: 1 - variants: - - name: Clear - description: Clear RDERR and WRERR flags - value: 1 -enum/ERRIE: - bit_size: 1 - variants: - - name: Disabled - description: Disable (mask) error interrupt - value: 0 - - name: Enabled - description: Enable error interrupt - value: 1 enum/MODE: bit_size: 2 variants: @@ -301,21 +210,3 @@ enum/MODE: - name: Mode4 description: "Mode 4: key derivation then single decryption" value: 3 -enum/RDERR: - bit_size: 1 - variants: - - name: NoError - description: Read error not detected - value: 0 - - name: Error - description: Read error detected - value: 1 -enum/WRERR: - bit_size: 1 - variants: - - name: NoError - description: Write error not detected - value: 0 - - name: Error - description: Write error detected - value: 1 diff --git a/data/registers/aes_v2.yaml b/data/registers/aes_v2.yaml index ec689a3..1857320 100644 --- a/data/registers/aes_v2.yaml +++ b/data/registers/aes_v2.yaml @@ -1,332 +1,380 @@ --- block/AES: - description: Advanced Encryption Standard + description: Advanced encryption standard hardware accelerator items: - name: CR - description: AES control register + description: Control register byte_offset: 0 fieldset: CR - name: SR - description: AES status register + description: Status register byte_offset: 4 fieldset: SR - name: DINR - description: "AES data input register " + description: Data input register byte_offset: 8 fieldset: DINR - name: DOUTR - description: "AES data output register " + description: Data output register byte_offset: 12 fieldset: DOUTR - name: KEYR0 - description: AES key register 0 + description: Key register 0 byte_offset: 16 fieldset: KEYR0 - name: KEYR1 - description: AES key register 1 + description: Key register 1 byte_offset: 20 fieldset: KEYR1 - name: KEYR2 - description: AES key register 2 + description: Key register 2 byte_offset: 24 fieldset: KEYR2 - name: KEYR3 - description: AES key register 3 + description: Key register 3 byte_offset: 28 fieldset: KEYR3 - name: IVR0 - description: AES initialization vector register 0 + description: Initialization vector register 0 byte_offset: 32 fieldset: IVR0 - name: IVR1 - description: AES initialization vector register 1 + description: Initialization vector register 1 byte_offset: 36 fieldset: IVR1 - name: IVR2 - description: AES initialization vector register 2 + description: Initialization vector register 2 byte_offset: 40 fieldset: IVR2 - name: IVR3 - description: AES initialization vector register 3 + description: Initialization vector register 3 byte_offset: 44 fieldset: IVR3 - name: KEYR4 - description: AES key register 4 + description: Key register 4 byte_offset: 48 fieldset: KEYR4 - name: KEYR5 - description: AES key register 5 + description: Key register 5 byte_offset: 52 fieldset: KEYR5 - name: KEYR6 - description: AES key register 6 + description: Key register 6 byte_offset: 56 fieldset: KEYR6 - name: KEYR7 - description: AES key register 7 + description: Key register 7 byte_offset: 60 fieldset: KEYR7 - name: SUSP0R - description: "AES suspend registers " + description: Suspend register 0 byte_offset: 64 fieldset: SUSP0R - name: SUSP1R - description: "AES suspend registers " + description: Suspend register 1 byte_offset: 68 fieldset: SUSP1R - name: SUSP2R - description: "AES suspend registers " + description: Suspend register 2 byte_offset: 72 fieldset: SUSP2R - name: SUSP3R - description: "AES suspend registers " + description: Suspend register 3 byte_offset: 76 fieldset: SUSP3R - name: SUSP4R - description: "AES suspend registers " + description: Suspend register 4 byte_offset: 80 fieldset: SUSP4R - name: SUSP5R - description: "AES suspend registers " + description: Suspend register 5 byte_offset: 84 fieldset: SUSP5R - name: SUSP6R - description: "AES suspend registers " + description: Suspend register 6 byte_offset: 88 fieldset: SUSP6R - name: SUSP7R - description: "AES suspend registers " + description: Suspend register 7 byte_offset: 92 fieldset: SUSP7R fieldset/CR: - description: AES control register + description: Control register fields: - name: EN - description: "AES enable This bit enables/disables the AES peripheral: At any moment, clearing then setting the bit re-initializes the AES peripheral. This bit is automatically cleared by hardware upon the completion of the key preparation (Mode 2) and upon the completion of GCM/GMAC/CCM initial phase." + description: AES enable bit_offset: 0 bit_size: 1 - name: DATATYPE - description: "Data type selection This bitfield defines the format of data written in the AES_DINR register or read from the AES_DOUTR register, through selecting the mode of data swapping: For more details, refer to . Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + description: Data type selection bit_offset: 1 bit_size: 2 + enum: DATATYPE - name: MODE - description: "AES operating mode This bitfield selects the AES operating mode: Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access. Any attempt to selecting Mode 4 while either ECB or CBC chaining mode is not selected, defaults to effective selection of Mode 3. It is not possible to select a Mode 3 following a Mode 4." + description: Operating mode bit_offset: 3 bit_size: 2 - - name: CHMOD1 - description: "Chaining mode selection, bit [2] Refer to the bits [5:6] of the register for the description of the CHMOD[2:0] bitfield CHMOD[1:0]: Chaining mode selection, bits [1:0] This bitfield, together with the bit CHMOD[2] forming CHMOD[2:0], selects the AES chaining mode: others: Reserved Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + enum: MODE + - name: CHMOD10 + description: Chaining mode bit1 bit0 bit_offset: 5 bit_size: 2 - name: CCFC - description: "Computation complete flag clear Upon written to 1, this bit clears the computation complete flag (CCF) in the AES_SR register: Reading the flag always returns zero." + description: Computation Complete Flag Clear bit_offset: 7 bit_size: 1 - name: ERRC - description: "Error flag clear Upon written to 1, this bit clears the RDERR and WRERR error flags in the AES_SR register: Reading the flag always returns zero." + description: Error clear bit_offset: 8 bit_size: 1 - name: CCFIE - description: "CCF interrupt enable This bit enables or disables (masks) the AES interrupt generation when CCF (computation complete flag) is set:" + description: CCF flag interrupt enable bit_offset: 9 bit_size: 1 - name: ERRIE - description: "Error interrupt enable This bit enables or disables (masks) the AES interrupt generation when RDERR and/or WRERR is set:" + description: Error interrupt enable bit_offset: 10 bit_size: 1 - name: DMAINEN - description: "DMA input enable This bit enables/disables data transferring with DMA, in the input phase: When the bit is set, DMA requests are automatically generated by AES during the input data phase. This feature is only effective when Mode 1 or Mode 3 is selected through the MODE[1:0] bitfield. It is not effective for Mode 2 (key derivation). Usage of DMA with Mode 4 (single decryption) is not recommended." + description: Enable DMA management of data input phase bit_offset: 11 bit_size: 1 - name: DMAOUTEN - description: "DMA output enable This bit enables/disables data transferring with DMA, in the output phase: When the bit is set, DMA requests are automatically generated by AES during the output data phase. This feature is only effective when Mode 1 or Mode 3 is selected through the MODE[1:0] bitfield. It is not effective for Mode 2 (key derivation). Usage of DMA with Mode 4 (single decryption) is not recommended." + description: Enable DMA management of data output phase bit_offset: 12 bit_size: 1 - name: GCMPH - description: "GCM or CCM phase selection This bitfield selects the phase of GCM, GMAC or CCM algorithm: The bitfield has no effect if other than GCM, GMAC or CCM algorithms are selected (through the ALGOMODE bitfield)." + description: GCM or CCM phase selection bit_offset: 13 bit_size: 2 + enum: GCMPH - name: CHMOD2 - description: "Chaining mode selection, bit [2] Refer to the bits [5:6] of the register for the description of the CHMOD[2:0] bitfield CHMOD[1:0]: Chaining mode selection, bits [1:0] This bitfield, together with the bit CHMOD[2] forming CHMOD[2:0], selects the AES chaining mode: others: Reserved Attempts to write the bitfield are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + description: Chaining mode bit2 bit_offset: 16 bit_size: 1 - name: KEYSIZE - description: "Key size selection This bitfield defines the length of the key used in the AES cryptographic core, in bits: Attempts to write the bit are ignored when the EN bit of the AES_CR register is set before the write access and it is not cleared by that write access." + description: Key size selection bit_offset: 18 bit_size: 1 - name: NPBLB - description: "Number of padding bytes in last block The bitfield sets the number of padding bytes in last block of payload: ..." + description: Number of padding bytes in last block of payload bit_offset: 20 bit_size: 4 fieldset/DINR: - description: "AES data input register " + description: Data input register fields: - name: DIN - description: "Input data word A four-fold sequential write to this bitfield during the input phase results in writing a complete 128-bit block of input data to the AES peripheral. From the first to the fourth write, the corresponding data weights are [127:96], [95:64], [63:32], and [31:0]. Upon each write, the data from the 32-bit input buffer are handled by the data swap block according to the DATATYPE[1:0] bitfield, then written into the AES core 128-bit input buffer. The data signification of the input data block depends on the AES operating mode: - Mode 1 (encryption): plaintext - Mode 2 (key derivation): the bitfield is not used (AES_KEYRx registers used for input) - Mode 3 (decryption) and Mode 4 (key derivation then single decryption): ciphertext The data swap operation is described in page 499." + description: Input data word bit_offset: 0 bit_size: 32 fieldset/DOUTR: - description: "AES data output register " + description: Data output register fields: - name: DOUT - description: "Output data word This read-only bitfield fetches a 32-bit output buffer. A four-fold sequential read of this bitfield, upon the computation completion (CCF set), virtually reads a complete 128-bit block of output data from the AES peripheral. Before reaching the output buffer, the data produced by the AES core are handled by the data swap block according to the DATATYPE[1:0] bitfield. Data weights from the first to the fourth read operation are: [127:96], [95:64], [63:32], and [31:0]. The data signification of the output data block depends on the AES operating mode: - Mode 1 (encryption): ciphertext - Mode 2 (key derivation): the bitfield is not used (AES_KEYRx registers used for output) - Mode 3 (decryption) and Mode 4 (key derivation then single decryption): plaintext The data swap operation is described in page 499." + description: Output data word bit_offset: 0 bit_size: 32 fieldset/IVR0: description: AES initialization vector register 0 fields: - name: IVI - description: "Initialization vector input, bits [31:0] Refer to for description of the IVI[127:0] bitfield. The initialization vector is only used in chaining modes other than ECB. The AES_IVRx registers may be written only when the AES peripheral is disabled" + description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: description: AES initialization vector register 1 fields: - name: IVI - description: "Initialization vector input, bits [63:32] Refer to the AES_IVR0 register for description of the IVI[128:0] bitfield." + description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: description: AES initialization vector register 2 fields: - name: IVI - description: "Initialization vector input, bits [95:64] Refer to the AES_IVR0 register for description of the IVI[128:0] bitfield." + description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: description: AES initialization vector register 3 fields: - name: IVI - description: "Initialization vector input, bits [127:96] Refer to the AES_IVR0 register for description of the IVI[128:0] bitfield." + description: Initialization vector input, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR0: - description: AES key register 0 + description: Key register 0 fields: - name: KEY - description: "Cryptographic key, bits [31:0] This bitfield contains the bits [31:0] of the AES encryption or decryption key, depending on the operating mode: - In Mode 1 (encryption), Mode 2 (key derivation) and Mode 4 (key derivation then single decryption): the value to write into the bitfield is the encryption key. - In Mode 3 (decryption): the value to write into the bitfield is the encryption key to be derived before being used for decryption. After writing the encryption key into the bitfield, its reading before enabling AES returns the same value. Its reading after enabling AES and after the CCF flag is set returns the decryption key derived from the encryption key. Note: In mode 4 (key derivation then single decryption) the bitfield always contains the encryption key. The AES_KEYRx registers may be written only when KEYSIZE value is correct and when the AES peripheral is disabled (EN bit of the AES_CR register cleared). Note that, if, the key is directly loaded to AES_KEYRx registers (hence writes to key register is ignored and KEIF is set). Refer to for more details." + description: Cryptographic key, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/KEYR1: - description: AES key register 1 + description: Key register 1 fields: - name: KEY - description: "Cryptographic key, bits [63:32] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/KEYR2: - description: AES key register 2 + description: Key register 2 fields: - name: KEY - description: "Cryptographic key, bits [95:64] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/KEYR3: - description: AES key register 3 + description: Key register 3 fields: - name: KEY - description: "Cryptographic key, bits [127:96] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [127:96] bit_offset: 0 bit_size: 32 fieldset/KEYR4: - description: AES key register 4 + description: Key register 4 fields: - name: KEY - description: "Cryptographic key, bits [159:128] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [159:128] bit_offset: 0 bit_size: 32 fieldset/KEYR5: - description: AES key register 5 + description: Key register 5 fields: - name: KEY - description: "Cryptographic key, bits [191:160] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [191:160] bit_offset: 0 bit_size: 32 fieldset/KEYR6: - description: AES key register 6 + description: Key register 6 fields: - name: KEY - description: "Cryptographic key, bits [223:192] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [223:192] bit_offset: 0 bit_size: 32 fieldset/KEYR7: - description: AES key register 7 + description: Key register 7 fields: - name: KEY - description: "Cryptographic key, bits [255:224] Refer to the AES_KEYR0 register for description of the KEY[255:0] bitfield." + description: Cryptographic key, bits [255:224] bit_offset: 0 bit_size: 32 fieldset/SR: - description: AES status register + description: Status register fields: - name: CCF - description: "Computation completed flag This flag indicates whether the computation is completed: The flag is set by hardware upon the completion of the computation. It is cleared by software, upon setting the CCFC bit of the AES_CR register. Upon the flag setting, an interrupt is generated if enabled through the CCFIE bit of the AES_CR register. The flag is significant only when the DMAOUTEN bit is 0. It may stay high when DMA_EN is 1." + description: Computation complete flag bit_offset: 0 bit_size: 1 - name: RDERR - description: "Read error flag This flag indicates the detection of an unexpected read operation from the AES_DOUTR register (during computation or data input phase): The flag is set by hardware. It is cleared by software upon setting the ERRC bit of the AES_CR register. Upon the flag setting, an interrupt is generated if enabled through the ERRIE bit of the AES_CR register. The flag setting has no impact on the AES operation. Unexpected read returns zero." + description: Read error flag bit_offset: 1 bit_size: 1 - name: WRERR - description: "Write error This flag indicates the detection of an unexpected write operation to the AES_DINR register (during computation or data output phase): The flag is set by hardware. It is cleared by software upon setting the ERRC bit of the AES_CR register. Upon the flag setting, an interrupt is generated if enabled through the ERRIE bit of the AES_CR register. The flag setting has no impact on the AES operation. Unexpected write is ignored." + description: Write error flag bit_offset: 2 bit_size: 1 - name: BUSY - description: "Busy This flag indicates whether AES is idle or busy during GCM payload encryption phase: When the flag indicates “idle”, the current GCM encryption processing may be suspended to process a higher-priority message. In other chaining modes, or in GCM phases other than payload encryption, the flag must be ignored for the suspend process." + description: Busy flag bit_offset: 3 bit_size: 1 fieldset/SUSP0R: - description: "AES suspend registers " + description: Suspend register 0 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP1R: - description: "AES suspend registers " + description: Suspend register 1 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP2R: - description: "AES suspend registers " + description: Suspend register 2 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP3R: - description: "AES suspend registers " + description: Suspend register 3 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP4R: - description: "AES suspend registers " + description: Suspend register 4 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP5R: - description: "AES suspend registers " + description: Suspend register 5 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP6R: - description: "AES suspend registers " + description: Suspend register 6 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 fieldset/SUSP7R: - description: "AES suspend registers " + description: Suspend register 7 fields: - name: SUSP - description: "AES suspend Upon suspend operation, this bitfield of every AES_SUSPxR register takes the value of one of internal AES registers." + description: AES suspend bit_offset: 0 bit_size: 32 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 +enum/DATATYPE: + bit_size: 2 + variants: + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 +enum/MODE: + bit_size: 2 + variants: + - name: Mode1 + description: "Mode 1: encryption" + value: 0 + - name: Mode2 + description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + value: 1 + - name: Mode3 + description: "Mode 3: decryption" + value: 2 + - name: Mode4 + description: "Mode 4: key derivation then single decryption" + value: 3 From 34fec9129a958a8b3240197696924bdb9e6adfad Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 20:37:08 +0300 Subject: [PATCH 25/54] aes_g081: rm unknow regs Those registers are not mentioned in RM0444 AES register map. --- data/registers/aes_g081.yaml | 60 ------------------------------------ 1 file changed, 60 deletions(-) diff --git a/data/registers/aes_g081.yaml b/data/registers/aes_g081.yaml index 5e66002..1857320 100644 --- a/data/registers/aes_g081.yaml +++ b/data/registers/aes_g081.yaml @@ -98,22 +98,6 @@ block/AES: description: Suspend register 7 byte_offset: 92 fieldset: SUSP7R - - name: HWCFR - description: Hardware configuration register - byte_offset: 1008 - fieldset: HWCFR - - name: VERR - description: Version register - byte_offset: 1012 - fieldset: VERR - - name: IPIDR - description: Identification register - byte_offset: 1016 - fieldset: IPIDR - - name: SIDR - description: Size ID register - byte_offset: 1020 - fieldset: SIDR fieldset/CR: description: Control register fields: @@ -190,32 +174,6 @@ fieldset/DOUTR: description: Output data word bit_offset: 0 bit_size: 32 -fieldset/HWCFR: - description: Hardware configuration register - fields: - - name: CFG1 - description: HW Generic 1 - bit_offset: 0 - bit_size: 4 - - name: CFG2 - description: HW Generic 2 - bit_offset: 4 - bit_size: 4 - - name: CFG3 - description: HW Generic 3 - bit_offset: 8 - bit_size: 4 - - name: CFG4 - description: HW Generic 4 - bit_offset: 12 - bit_size: 4 -fieldset/IPIDR: - description: Identification register - fields: - - name: ID - description: Identification code - bit_offset: 0 - bit_size: 32 fieldset/IVR0: description: AES initialization vector register 0 fields: @@ -300,13 +258,6 @@ fieldset/KEYR7: description: Cryptographic key, bits [255:224] bit_offset: 0 bit_size: 32 -fieldset/SIDR: - description: Size ID register - fields: - - name: ID - description: Size Identification code - bit_offset: 0 - bit_size: 32 fieldset/SR: description: Status register fields: @@ -382,17 +333,6 @@ fieldset/SUSP7R: description: AES suspend bit_offset: 0 bit_size: 32 -fieldset/VERR: - description: Version register - fields: - - name: MINREV - description: Minor revision - bit_offset: 0 - bit_size: 4 - - name: MAJREV - description: Major revision - bit_offset: 4 - bit_size: 4 enum/GCMPH: bit_size: 2 variants: From b6da305f855304795c466d93f7ddd87be8165f9f Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 20:37:56 +0300 Subject: [PATCH 26/54] rm aes_g081.yaml, it is now same as aes_v2.yaml. --- data/registers/aes_g081.yaml | 380 ----------------------------------- 1 file changed, 380 deletions(-) delete mode 100644 data/registers/aes_g081.yaml diff --git a/data/registers/aes_g081.yaml b/data/registers/aes_g081.yaml deleted file mode 100644 index 1857320..0000000 --- a/data/registers/aes_g081.yaml +++ /dev/null @@ -1,380 +0,0 @@ ---- -block/AES: - description: Advanced encryption standard hardware accelerator - items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: SR - description: Status register - byte_offset: 4 - fieldset: SR - - name: DINR - description: Data input register - byte_offset: 8 - fieldset: DINR - - name: DOUTR - description: Data output register - byte_offset: 12 - fieldset: DOUTR - - name: KEYR0 - description: Key register 0 - byte_offset: 16 - fieldset: KEYR0 - - name: KEYR1 - description: Key register 1 - byte_offset: 20 - fieldset: KEYR1 - - name: KEYR2 - description: Key register 2 - byte_offset: 24 - fieldset: KEYR2 - - name: KEYR3 - description: Key register 3 - byte_offset: 28 - fieldset: KEYR3 - - name: IVR0 - description: Initialization vector register 0 - byte_offset: 32 - fieldset: IVR0 - - name: IVR1 - description: Initialization vector register 1 - byte_offset: 36 - fieldset: IVR1 - - name: IVR2 - description: Initialization vector register 2 - byte_offset: 40 - fieldset: IVR2 - - name: IVR3 - description: Initialization vector register 3 - byte_offset: 44 - fieldset: IVR3 - - name: KEYR4 - description: Key register 4 - byte_offset: 48 - fieldset: KEYR4 - - name: KEYR5 - description: Key register 5 - byte_offset: 52 - fieldset: KEYR5 - - name: KEYR6 - description: Key register 6 - byte_offset: 56 - fieldset: KEYR6 - - name: KEYR7 - description: Key register 7 - byte_offset: 60 - fieldset: KEYR7 - - name: SUSP0R - description: Suspend register 0 - byte_offset: 64 - fieldset: SUSP0R - - name: SUSP1R - description: Suspend register 1 - byte_offset: 68 - fieldset: SUSP1R - - name: SUSP2R - description: Suspend register 2 - byte_offset: 72 - fieldset: SUSP2R - - name: SUSP3R - description: Suspend register 3 - byte_offset: 76 - fieldset: SUSP3R - - name: SUSP4R - description: Suspend register 4 - byte_offset: 80 - fieldset: SUSP4R - - name: SUSP5R - description: Suspend register 5 - byte_offset: 84 - fieldset: SUSP5R - - name: SUSP6R - description: Suspend register 6 - byte_offset: 88 - fieldset: SUSP6R - - name: SUSP7R - description: Suspend register 7 - byte_offset: 92 - fieldset: SUSP7R -fieldset/CR: - description: Control register - fields: - - name: EN - description: AES enable - bit_offset: 0 - bit_size: 1 - - name: DATATYPE - description: Data type selection - bit_offset: 1 - bit_size: 2 - enum: DATATYPE - - name: MODE - description: Operating mode - bit_offset: 3 - bit_size: 2 - enum: MODE - - name: CHMOD10 - description: Chaining mode bit1 bit0 - bit_offset: 5 - bit_size: 2 - - name: CCFC - description: Computation Complete Flag Clear - bit_offset: 7 - bit_size: 1 - - name: ERRC - description: Error clear - bit_offset: 8 - bit_size: 1 - - name: CCFIE - description: CCF flag interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: DMAINEN - description: Enable DMA management of data input phase - bit_offset: 11 - bit_size: 1 - - name: DMAOUTEN - description: Enable DMA management of data output phase - bit_offset: 12 - bit_size: 1 - - name: GCMPH - description: GCM or CCM phase selection - bit_offset: 13 - bit_size: 2 - enum: GCMPH - - name: CHMOD2 - description: Chaining mode bit2 - bit_offset: 16 - bit_size: 1 - - name: KEYSIZE - description: Key size selection - bit_offset: 18 - bit_size: 1 - - name: NPBLB - description: Number of padding bytes in last block of payload - bit_offset: 20 - bit_size: 4 -fieldset/DINR: - description: Data input register - fields: - - name: DIN - description: Input data word - bit_offset: 0 - bit_size: 32 -fieldset/DOUTR: - description: Data output register - fields: - - name: DOUT - description: Output data word - bit_offset: 0 - bit_size: 32 -fieldset/IVR0: - description: AES initialization vector register 0 - fields: - - name: IVI - description: Initialization vector input, bits [31:0] - bit_offset: 0 - bit_size: 32 -fieldset/IVR1: - description: AES initialization vector register 1 - fields: - - name: IVI - description: Initialization vector input, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/IVR2: - description: AES initialization vector register 2 - fields: - - name: IVI - description: Initialization vector input, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/IVR3: - description: AES initialization vector register 3 - fields: - - name: IVI - description: Initialization vector input, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR0: - description: Key register 0 - fields: - - name: KEY - description: Cryptographic key, bits [31:0] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR1: - description: Key register 1 - fields: - - name: KEY - description: Cryptographic key, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR2: - description: Key register 2 - fields: - - name: KEY - description: Cryptographic key, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR3: - description: Key register 3 - fields: - - name: KEY - description: Cryptographic key, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR4: - description: Key register 4 - fields: - - name: KEY - description: Cryptographic key, bits [159:128] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR5: - description: Key register 5 - fields: - - name: KEY - description: Cryptographic key, bits [191:160] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR6: - description: Key register 6 - fields: - - name: KEY - description: Cryptographic key, bits [223:192] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR7: - description: Key register 7 - fields: - - name: KEY - description: Cryptographic key, bits [255:224] - bit_offset: 0 - bit_size: 32 -fieldset/SR: - description: Status register - fields: - - name: CCF - description: Computation complete flag - bit_offset: 0 - bit_size: 1 - - name: RDERR - description: Read error flag - bit_offset: 1 - bit_size: 1 - - name: WRERR - description: Write error flag - bit_offset: 2 - bit_size: 1 - - name: BUSY - description: Busy flag - bit_offset: 3 - bit_size: 1 -fieldset/SUSP0R: - description: Suspend register 0 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP1R: - description: Suspend register 1 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP2R: - description: Suspend register 2 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP3R: - description: Suspend register 3 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP4R: - description: Suspend register 4 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP5R: - description: Suspend register 5 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP6R: - description: Suspend register 6 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP7R: - description: Suspend register 7 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -enum/GCMPH: - bit_size: 2 - variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 -enum/DATATYPE: - bit_size: 2 - variants: - - name: None - description: Word - value: 0 - - name: HalfWord - description: Half-word (16-bit) - value: 1 - - name: Byte - description: Byte (8-bit) - value: 2 - - name: Bit - description: Bit - value: 3 -enum/MODE: - bit_size: 2 - variants: - - name: Mode1 - description: "Mode 1: encryption" - value: 0 - - name: Mode2 - description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" - value: 1 - - name: Mode3 - description: "Mode 3: decryption" - value: 2 - - name: Mode4 - description: "Mode 4: key derivation then single decryption" - value: 3 From 8d1896c4e09f542d302b101f93466be0a42f6597 Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 20:54:49 +0300 Subject: [PATCH 27/54] aes_u5.yaml: remove wrong fields --- data/registers/aes_u5.yaml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/data/registers/aes_u5.yaml b/data/registers/aes_u5.yaml index 2f6ef40..8343ad6 100644 --- a/data/registers/aes_u5.yaml +++ b/data/registers/aes_u5.yaml @@ -157,11 +157,11 @@ fieldset/CR: bit_offset: 20 bit_size: 4 - name: KMOD - description: KMOD + description: Key mode selection bit_offset: 24 bit_size: 2 - name: IPRST - description: IPRST + description: AES peripheral software reset bit_offset: 31 bit_size: 1 fieldset/DINR: @@ -179,7 +179,7 @@ fieldset/DOUTR: bit_offset: 0 bit_size: 32 fieldset/ICR: - description: interrupt clear register + description: Interrupt clear register fields: - name: CCF description: Computation complete flag clear @@ -194,26 +194,22 @@ fieldset/ICR: bit_offset: 2 bit_size: 1 fieldset/IER: - description: interrupt enable register + description: Interrupt enable register fields: - name: CCFIE - description: Computation complete flag + description: Computation complete flag interrupt enable bit_offset: 0 bit_size: 1 - name: RWEIE - description: Read or write error interrupt flag + description: Read or write error interrupt enable bit_offset: 1 bit_size: 1 - name: KEIE - description: Key error interrupt flag + description: Key error interrupt enable bit_offset: 2 bit_size: 1 - - name: RNGEIE - description: Key error interrupt flag - bit_offset: 3 - bit_size: 1 fieldset/ISR: - description: interrupt status register + description: Interrupt status register fields: - name: CCF description: Computation complete flag @@ -227,10 +223,6 @@ fieldset/ISR: description: Key error interrupt flag bit_offset: 2 bit_size: 1 - - name: RNGEIF - description: Key error interrupt flag - bit_offset: 3 - bit_size: 1 fieldset/IVR0: description: AES initialization vector register 0 fields: From 6efff79ad8993c1971f00379b28f1701bf7b5104 Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 21:20:36 +0300 Subject: [PATCH 28/54] aes: rm AES from IVR description --- data/registers/aes_f7.yaml | 8 ++++---- data/registers/aes_u5.yaml | 8 ++++---- data/registers/aes_v1.yaml | 8 ++++---- data/registers/aes_v2.yaml | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/data/registers/aes_f7.yaml b/data/registers/aes_f7.yaml index 3e20b93..98a0012 100644 --- a/data/registers/aes_f7.yaml +++ b/data/registers/aes_f7.yaml @@ -171,28 +171,28 @@ fieldset/DOUTR: bit_offset: 0 bit_size: 32 fieldset/IVR0: - description: AES initialization vector register 0 + description: Initialization vector register 0 fields: - name: IVI description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: AES initialization vector register 1 + description: Initialization vector register 1 fields: - name: IVI description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: AES initialization vector register 2 + description: Initialization vector register 2 fields: - name: IVI description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: AES initialization vector register 3 + description: Initialization vector register 3 fields: - name: IVI description: Initialization vector input, bits [127:96] diff --git a/data/registers/aes_u5.yaml b/data/registers/aes_u5.yaml index 8343ad6..3f0ed12 100644 --- a/data/registers/aes_u5.yaml +++ b/data/registers/aes_u5.yaml @@ -224,28 +224,28 @@ fieldset/ISR: bit_offset: 2 bit_size: 1 fieldset/IVR0: - description: AES initialization vector register 0 + description: Initialization vector register 0 fields: - name: IVI description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: AES initialization vector register 1 + description: Initialization vector register 1 fields: - name: IVI description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: AES initialization vector register 2 + description: Initialization vector register 2 fields: - name: IVI description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: AES initialization vector register 3 + description: Initialization vector register 3 fields: - name: IVI description: Initialization vector input, bits [127:96] diff --git a/data/registers/aes_v1.yaml b/data/registers/aes_v1.yaml index 6fbc6cc..de814d1 100644 --- a/data/registers/aes_v1.yaml +++ b/data/registers/aes_v1.yaml @@ -110,28 +110,28 @@ fieldset/DOUTR: bit_offset: 0 bit_size: 32 fieldset/IVR0: - description: AES initialization vector register 0 + description: Initialization vector register 0 fields: - name: IVI description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: AES initialization vector register 1 + description: Initialization vector register 1 fields: - name: IVI description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: AES initialization vector register 2 + description: Initialization vector register 2 fields: - name: IVI description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: AES initialization vector register 3 + description: Initialization vector register 3 fields: - name: IVI description: Initialization vector input, bits [127:96] diff --git a/data/registers/aes_v2.yaml b/data/registers/aes_v2.yaml index 1857320..1522d8f 100644 --- a/data/registers/aes_v2.yaml +++ b/data/registers/aes_v2.yaml @@ -175,28 +175,28 @@ fieldset/DOUTR: bit_offset: 0 bit_size: 32 fieldset/IVR0: - description: AES initialization vector register 0 + description: Initialization vector register 0 fields: - name: IVI description: Initialization vector input, bits [31:0] bit_offset: 0 bit_size: 32 fieldset/IVR1: - description: AES initialization vector register 1 + description: Initialization vector register 1 fields: - name: IVI description: Initialization vector input, bits [63:32] bit_offset: 0 bit_size: 32 fieldset/IVR2: - description: AES initialization vector register 2 + description: Initialization vector register 2 fields: - name: IVI description: Initialization vector input, bits [95:64] bit_offset: 0 bit_size: 32 fieldset/IVR3: - description: AES initialization vector register 3 + description: Initialization vector register 3 fields: - name: IVI description: Initialization vector input, bits [127:96] From ffea347a4e9ffb3827874dca9b28d62df5360b0d Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 22:59:09 +0300 Subject: [PATCH 29/54] aes: MergeFieldsets and MakeRegisterArray --- data/registers/aes_f7.yaml | 275 +++++++----------------------------- data/registers/aes_u5.yaml | 279 +++++++------------------------------ data/registers/aes_v1.yaml | 104 +++----------- data/registers/aes_v2.yaml | 275 +++++++----------------------------- 4 files changed, 180 insertions(+), 753 deletions(-) diff --git a/data/registers/aes_f7.yaml b/data/registers/aes_f7.yaml index 98a0012..b2bffb8 100644 --- a/data/registers/aes_f7.yaml +++ b/data/registers/aes_f7.yaml @@ -18,86 +18,34 @@ block/AES: description: Data output register byte_offset: 12 fieldset: DOUTR - - name: KEYR0 - description: Key register 0 + - name: KEYR + description: Key register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 32 + - 36 + - 40 + - 44 byte_offset: 16 - fieldset: KEYR0 - - name: KEYR1 - description: Key register 1 - byte_offset: 20 - fieldset: KEYR1 - - name: KEYR2 - description: Key register 2 - byte_offset: 24 - fieldset: KEYR2 - - name: KEYR3 - description: Key register 3 - byte_offset: 28 - fieldset: KEYR3 - - name: IVR0 - description: Initialization vector register 0 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 byte_offset: 32 - fieldset: IVR0 - - name: IVR1 - description: Initialization vector register 1 - byte_offset: 36 - fieldset: IVR1 - - name: IVR2 - description: Initialization vector register 2 - byte_offset: 40 - fieldset: IVR2 - - name: IVR3 - description: Initialization vector register 3 - byte_offset: 44 - fieldset: IVR3 - - name: KEYR4 - description: Key register 4 - byte_offset: 48 - fieldset: KEYR4 - - name: KEYR5 - description: Key register 5 - byte_offset: 52 - fieldset: KEYR5 - - name: KEYR6 - description: Key register 6 - byte_offset: 56 - fieldset: KEYR6 - - name: KEYR7 - description: Key register 7 - byte_offset: 60 - fieldset: KEYR7 - - name: SUSP0R - description: Suspend register 0 + fieldset: IVR + - name: SUSPR + description: Suspend register + array: + len: 8 + stride: 4 byte_offset: 64 - fieldset: SUSP0R - - name: SUSP1R - description: Suspend register 1 - byte_offset: 68 - fieldset: SUSP1R - - name: SUSP2R - description: Suspend register 2 - byte_offset: 72 - fieldset: SUSP2R - - name: SUSP3R - description: Suspend register 3 - byte_offset: 76 - fieldset: SUSP3R - - name: SUSP4R - description: Suspend register 4 - byte_offset: 80 - fieldset: SUSP4R - - name: SUSP5R - description: Suspend register 5 - byte_offset: 84 - fieldset: SUSP5R - - name: SUSP6R - description: Suspend register 6 - byte_offset: 88 - fieldset: SUSP6R - - name: SUSP7R - description: Suspend register 7 - byte_offset: 92 - fieldset: SUSP7R + fieldset: SUSPR fieldset/CR: description: Control register fields: @@ -170,88 +118,18 @@ fieldset/DOUTR: description: Output data word bit_offset: 0 bit_size: 32 -fieldset/IVR0: - description: Initialization vector register 0 +fieldset/IVR: + description: Initialization vector register fields: - name: IVI - description: Initialization vector input, bits [31:0] + description: Initialization vector input bit_offset: 0 bit_size: 32 -fieldset/IVR1: - description: Initialization vector register 1 - fields: - - name: IVI - description: Initialization vector input, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/IVR2: - description: Initialization vector register 2 - fields: - - name: IVI - description: Initialization vector input, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/IVR3: - description: Initialization vector register 3 - fields: - - name: IVI - description: Initialization vector input, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR0: - description: Key register 0 +fieldset/KEYR: + description: Key register fields: - name: KEY - description: Cryptographic key, bits [31:0] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR1: - description: Key register 1 - fields: - - name: KEY - description: Cryptographic key, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR2: - description: Key register 2 - fields: - - name: KEY - description: Cryptographic key, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR3: - description: Key register 3 - fields: - - name: KEY - description: Cryptographic key, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR4: - description: Key register 4 - fields: - - name: KEY - description: Cryptographic key, bits [159:128] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR5: - description: Key register 5 - fields: - - name: KEY - description: Cryptographic key, bits [191:160] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR6: - description: Key register 6 - fields: - - name: KEY - description: Cryptographic key, bits [223:192] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR7: - description: Key register 7 - fields: - - name: KEY - description: Cryptographic key, bits [255:224] + description: Cryptographic key bit_offset: 0 bit_size: 32 fieldset/SR: @@ -273,77 +151,13 @@ fieldset/SR: description: Busy flag bit_offset: 3 bit_size: 1 -fieldset/SUSP0R: - description: Suspend register 0 +fieldset/SUSPR: + description: Suspend register fields: - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 -fieldset/SUSP1R: - description: Suspend register 1 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP2R: - description: Suspend register 2 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP3R: - description: Suspend register 3 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP4R: - description: Suspend register 4 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP5R: - description: Suspend register 5 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP6R: - description: Suspend register 6 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP7R: - description: Suspend register 7 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -enum/GCMPH: - bit_size: 2 - variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 enum/DATATYPE: bit_size: 2 variants: @@ -359,18 +173,33 @@ enum/DATATYPE: - name: Bit description: Bit value: 3 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 enum/MODE: bit_size: 2 variants: - name: Mode1 - description: "Mode 1: encryption" + description: "Encryption" value: 0 - name: Mode2 - description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + description: "Key derivation (or key preparation for ECB/CBC decryption)" value: 1 - name: Mode3 - description: "Mode 3: decryption" + description: "Decryption" value: 2 - name: Mode4 - description: "Mode 4: key derivation then single decryption" + description: "Key derivation then single decryption" value: 3 diff --git a/data/registers/aes_u5.yaml b/data/registers/aes_u5.yaml index 3f0ed12..fc2b46f 100644 --- a/data/registers/aes_u5.yaml +++ b/data/registers/aes_u5.yaml @@ -18,86 +18,6 @@ block/AES: description: Data output register byte_offset: 12 fieldset: DOUTR - - name: KEYR0 - description: Key register 0 - byte_offset: 16 - fieldset: KEYR0 - - name: KEYR1 - description: Key register 1 - byte_offset: 20 - fieldset: KEYR1 - - name: KEYR2 - description: Key register 2 - byte_offset: 24 - fieldset: KEYR2 - - name: KEYR3 - description: Key register 3 - byte_offset: 28 - fieldset: KEYR3 - - name: IVR0 - description: Initialization vector register 0 - byte_offset: 32 - fieldset: IVR0 - - name: IVR1 - description: Initialization vector register 1 - byte_offset: 36 - fieldset: IVR1 - - name: IVR2 - description: Initialization vector register 2 - byte_offset: 40 - fieldset: IVR2 - - name: IVR3 - description: Initialization vector register 3 - byte_offset: 44 - fieldset: IVR3 - - name: KEYR4 - description: Key register 4 - byte_offset: 48 - fieldset: KEYR4 - - name: KEYR5 - description: Key register 5 - byte_offset: 52 - fieldset: KEYR5 - - name: KEYR6 - description: Key register 6 - byte_offset: 56 - fieldset: KEYR6 - - name: KEYR7 - description: Key register 7 - byte_offset: 60 - fieldset: KEYR7 - - name: SUSP0R - description: Suspend register 0 - byte_offset: 64 - fieldset: SUSP0R - - name: SUSP1R - description: Suspend register 1 - byte_offset: 68 - fieldset: SUSP1R - - name: SUSP2R - description: Suspend register 2 - byte_offset: 72 - fieldset: SUSP2R - - name: SUSP3R - description: Suspend register 3 - byte_offset: 76 - fieldset: SUSP3R - - name: SUSP4R - description: Suspend register 4 - byte_offset: 80 - fieldset: SUSP4R - - name: SUSP5R - description: Suspend register 5 - byte_offset: 84 - fieldset: SUSP5R - - name: SUSP6R - description: Suspend register 6 - byte_offset: 88 - fieldset: SUSP6R - - name: SUSP7R - description: Suspend register 7 - byte_offset: 92 - fieldset: SUSP7R - name: IER description: interrupt enable register byte_offset: 768 @@ -110,6 +30,34 @@ block/AES: description: interrupt clear register byte_offset: 776 fieldset: ICR + - name: KEYR + description: Key register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 32 + - 36 + - 40 + - 44 + byte_offset: 16 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 + byte_offset: 32 + fieldset: IVR + - name: SUSPR + description: Suspend register + array: + len: 8 + stride: 4 + byte_offset: 64 + fieldset: SUSPR fieldset/CR: description: Control register fields: @@ -223,88 +171,18 @@ fieldset/ISR: description: Key error interrupt flag bit_offset: 2 bit_size: 1 -fieldset/IVR0: - description: Initialization vector register 0 +fieldset/IVR: + description: Initialization vector register fields: - name: IVI - description: Initialization vector input, bits [31:0] + description: Initialization vector input bit_offset: 0 bit_size: 32 -fieldset/IVR1: - description: Initialization vector register 1 - fields: - - name: IVI - description: Initialization vector input, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/IVR2: - description: Initialization vector register 2 - fields: - - name: IVI - description: Initialization vector input, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/IVR3: - description: Initialization vector register 3 - fields: - - name: IVI - description: Initialization vector input, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR0: - description: Key register 0 +fieldset/KEYR: + description: Key register fields: - name: KEY - description: Cryptographic key, bits [31:0] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR1: - description: Key register 1 - fields: - - name: KEY - description: Cryptographic key, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR2: - description: Key register 2 - fields: - - name: KEY - description: Cryptographic key, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR3: - description: Key register 3 - fields: - - name: KEY - description: Cryptographic key, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR4: - description: Key register 4 - fields: - - name: KEY - description: Cryptographic key, bits [159:128] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR5: - description: Key register 5 - fields: - - name: KEY - description: Cryptographic key, bits [191:160] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR6: - description: Key register 6 - fields: - - name: KEY - description: Cryptographic key, bits [223:192] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR7: - description: Key register 7 - fields: - - name: KEY - description: Cryptographic key, bits [255:224] + description: Cryptographic key bit_offset: 0 bit_size: 32 fieldset/SR: @@ -330,77 +208,13 @@ fieldset/SR: description: Key valid flag bit_offset: 7 bit_size: 1 -fieldset/SUSP0R: - description: Suspend register 0 +fieldset/SUSPR: + description: Suspend register fields: - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 -fieldset/SUSP1R: - description: Suspend register 1 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP2R: - description: Suspend register 2 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP3R: - description: Suspend register 3 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP4R: - description: Suspend register 4 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP5R: - description: Suspend register 5 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP6R: - description: Suspend register 6 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP7R: - description: Suspend register 7 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -enum/GCMPH: - bit_size: 2 - variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 enum/DATATYPE: bit_size: 2 variants: @@ -416,15 +230,30 @@ enum/DATATYPE: - name: Bit description: Bit value: 3 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 enum/MODE: bit_size: 2 variants: - name: Mode1 - description: "Mode 1: encryption" + description: "Encryption" value: 0 - name: Mode2 - description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + description: "Key derivation (or key preparation for ECB/CBC decryption)" value: 1 - name: Mode3 - description: "Mode 3: decryption" + description: "Decryption" value: 2 diff --git a/data/registers/aes_v1.yaml b/data/registers/aes_v1.yaml index de814d1..fda80c5 100644 --- a/data/registers/aes_v1.yaml +++ b/data/registers/aes_v1.yaml @@ -18,38 +18,20 @@ block/AES: description: Data output register byte_offset: 12 fieldset: DOUTR - - name: KEYR0 - description: Key register 0 + - name: KEYR + description: Key register + array: + len: 4 + stride: 4 byte_offset: 16 - fieldset: KEYR0 - - name: KEYR1 - description: Key register 1 - byte_offset: 20 - fieldset: KEYR1 - - name: KEYR2 - description: Key register 2 - byte_offset: 24 - fieldset: KEYR2 - - name: KEYR3 - description: Key register 3 - byte_offset: 28 - fieldset: KEYR3 - - name: IVR0 - description: Initialization vector register 0 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 byte_offset: 32 - fieldset: IVR0 - - name: IVR1 - description: Initialization vector register 1 - byte_offset: 36 - fieldset: IVR1 - - name: IVR2 - description: Initialization vector register 2 - byte_offset: 40 - fieldset: IVR2 - - name: IVR3 - description: Initialization vector register 3 - byte_offset: 44 - fieldset: IVR3 + fieldset: IVR fieldset/CR: description: Control register fields: @@ -109,60 +91,18 @@ fieldset/DOUTR: description: Output data word bit_offset: 0 bit_size: 32 -fieldset/IVR0: - description: Initialization vector register 0 +fieldset/IVR: + description: Initialization vector register fields: - name: IVI - description: Initialization vector input, bits [31:0] + description: "Initialization vector input" bit_offset: 0 bit_size: 32 -fieldset/IVR1: - description: Initialization vector register 1 - fields: - - name: IVI - description: Initialization vector input, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/IVR2: - description: Initialization vector register 2 - fields: - - name: IVI - description: Initialization vector input, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/IVR3: - description: Initialization vector register 3 - fields: - - name: IVI - description: Initialization vector input, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR0: - description: Key register 0 +fieldset/KEYR: + description: Key register fields: - name: KEY - description: Cryptographic key, bits [31:0] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR1: - description: Key register 1 - fields: - - name: KEY - description: Cryptographic key, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR2: - description: Key register 2 - fields: - - name: KEY - description: Cryptographic key, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR3: - description: Key register 3 - fields: - - name: KEY - description: Cryptographic key, bits [127:96] + description: Cryptographic key bit_offset: 0 bit_size: 32 fieldset/SR: @@ -199,14 +139,14 @@ enum/MODE: bit_size: 2 variants: - name: Mode1 - description: "Mode 1: encryption" + description: "Encryption" value: 0 - name: Mode2 - description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + description: "Key derivation (or key preparation for ECB/CBC decryption)" value: 1 - name: Mode3 - description: "Mode 3: decryption" + description: "Decryption" value: 2 - name: Mode4 - description: "Mode 4: key derivation then single decryption" + description: "Key derivation then single decryption" value: 3 diff --git a/data/registers/aes_v2.yaml b/data/registers/aes_v2.yaml index 1522d8f..a9846bf 100644 --- a/data/registers/aes_v2.yaml +++ b/data/registers/aes_v2.yaml @@ -18,86 +18,34 @@ block/AES: description: Data output register byte_offset: 12 fieldset: DOUTR - - name: KEYR0 - description: Key register 0 + - name: KEYR + description: Key register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 32 + - 36 + - 40 + - 44 byte_offset: 16 - fieldset: KEYR0 - - name: KEYR1 - description: Key register 1 - byte_offset: 20 - fieldset: KEYR1 - - name: KEYR2 - description: Key register 2 - byte_offset: 24 - fieldset: KEYR2 - - name: KEYR3 - description: Key register 3 - byte_offset: 28 - fieldset: KEYR3 - - name: IVR0 - description: Initialization vector register 0 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 byte_offset: 32 - fieldset: IVR0 - - name: IVR1 - description: Initialization vector register 1 - byte_offset: 36 - fieldset: IVR1 - - name: IVR2 - description: Initialization vector register 2 - byte_offset: 40 - fieldset: IVR2 - - name: IVR3 - description: Initialization vector register 3 - byte_offset: 44 - fieldset: IVR3 - - name: KEYR4 - description: Key register 4 - byte_offset: 48 - fieldset: KEYR4 - - name: KEYR5 - description: Key register 5 - byte_offset: 52 - fieldset: KEYR5 - - name: KEYR6 - description: Key register 6 - byte_offset: 56 - fieldset: KEYR6 - - name: KEYR7 - description: Key register 7 - byte_offset: 60 - fieldset: KEYR7 - - name: SUSP0R - description: Suspend register 0 + fieldset: IVR + - name: SUSPR + description: Suspend register + array: + len: 8 + stride: 4 byte_offset: 64 - fieldset: SUSP0R - - name: SUSP1R - description: Suspend register 1 - byte_offset: 68 - fieldset: SUSP1R - - name: SUSP2R - description: Suspend register 2 - byte_offset: 72 - fieldset: SUSP2R - - name: SUSP3R - description: Suspend register 3 - byte_offset: 76 - fieldset: SUSP3R - - name: SUSP4R - description: Suspend register 4 - byte_offset: 80 - fieldset: SUSP4R - - name: SUSP5R - description: Suspend register 5 - byte_offset: 84 - fieldset: SUSP5R - - name: SUSP6R - description: Suspend register 6 - byte_offset: 88 - fieldset: SUSP6R - - name: SUSP7R - description: Suspend register 7 - byte_offset: 92 - fieldset: SUSP7R + fieldset: SUSPR fieldset/CR: description: Control register fields: @@ -174,88 +122,18 @@ fieldset/DOUTR: description: Output data word bit_offset: 0 bit_size: 32 -fieldset/IVR0: - description: Initialization vector register 0 +fieldset/IVR: + description: Initialization vector register fields: - name: IVI - description: Initialization vector input, bits [31:0] + description: Initialization vector input bit_offset: 0 bit_size: 32 -fieldset/IVR1: - description: Initialization vector register 1 - fields: - - name: IVI - description: Initialization vector input, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/IVR2: - description: Initialization vector register 2 - fields: - - name: IVI - description: Initialization vector input, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/IVR3: - description: Initialization vector register 3 - fields: - - name: IVI - description: Initialization vector input, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR0: - description: Key register 0 +fieldset/KEYR: + description: Key register fields: - name: KEY - description: Cryptographic key, bits [31:0] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR1: - description: Key register 1 - fields: - - name: KEY - description: Cryptographic key, bits [63:32] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR2: - description: Key register 2 - fields: - - name: KEY - description: Cryptographic key, bits [95:64] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR3: - description: Key register 3 - fields: - - name: KEY - description: Cryptographic key, bits [127:96] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR4: - description: Key register 4 - fields: - - name: KEY - description: Cryptographic key, bits [159:128] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR5: - description: Key register 5 - fields: - - name: KEY - description: Cryptographic key, bits [191:160] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR6: - description: Key register 6 - fields: - - name: KEY - description: Cryptographic key, bits [223:192] - bit_offset: 0 - bit_size: 32 -fieldset/KEYR7: - description: Key register 7 - fields: - - name: KEY - description: Cryptographic key, bits [255:224] + description: Cryptographic key bit_offset: 0 bit_size: 32 fieldset/SR: @@ -277,77 +155,13 @@ fieldset/SR: description: Busy flag bit_offset: 3 bit_size: 1 -fieldset/SUSP0R: - description: Suspend register 0 +fieldset/SUSPR: + description: Suspend register fields: - name: SUSP description: AES suspend bit_offset: 0 bit_size: 32 -fieldset/SUSP1R: - description: Suspend register 1 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP2R: - description: Suspend register 2 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP3R: - description: Suspend register 3 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP4R: - description: Suspend register 4 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP5R: - description: Suspend register 5 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP6R: - description: Suspend register 6 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -fieldset/SUSP7R: - description: Suspend register 7 - fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 -enum/GCMPH: - bit_size: 2 - variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 enum/DATATYPE: bit_size: 2 variants: @@ -363,18 +177,33 @@ enum/DATATYPE: - name: Bit description: Bit value: 3 +enum/GCMPH: + bit_size: 2 + variants: + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 enum/MODE: bit_size: 2 variants: - name: Mode1 - description: "Mode 1: encryption" + description: "Encryption" value: 0 - name: Mode2 - description: "Mode 2: key derivation (or key preparation for ECB/CBC decryption)" + description: "Key derivation (or key preparation for ECB/CBC decryption)" value: 1 - name: Mode3 - description: "Mode 3: decryption" + description: "Decryption" value: 2 - name: Mode4 - description: "Mode 4: key derivation then single decryption" + description: "Key derivation then single decryption" value: 3 From 5236cc71cea898c6ed7b1a09b906d6411e97192f Mon Sep 17 00:00:00 2001 From: Andres Vahter Date: Thu, 7 Sep 2023 23:08:54 +0300 Subject: [PATCH 30/54] chips: add AES entries to perimap --- stm32-data-gen/src/chips.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 07fa785..72b1292 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -142,6 +142,17 @@ impl PeriMatcher { ("STM32H7.*:RNG:.*", ("rng", "v1", "RNG")), ("STM32G0.*:RNG:.*", ("rng", "v1", "RNG")), ("STM32G4.*:RNG:.*", ("rng", "v1", "RNG")), + ("STM32F7.*:AES:.*", ("aes", "f7", "AES")), + ("STM32F4.*:AES:.*", ("aes", "v1", "AES")), + ("STM32G0.*:AES:.*", ("aes", "v2", "AES")), + ("STM32G4.*:AES:.*", ("aes", "v2", "AES")), + ("STM32L0.*:AES:.*", ("aes", "v1", "AES")), + ("STM32L1.*:AES:.*", ("aes", "v1", "AES")), + ("STM32L4.*:AES:.*", ("aes", "v1", "AES")), + ("STM32L5.*:AES:.*", ("aes", "v2", "AES")), + ("STM32U5.*:AES:.*", ("aes", "u5", "AES")), + ("STM32WL5.*:AES:.*", ("aes", "v2", "AES")), + ("STM32WLE.*:AES:.*", ("aes", "v2", "AES")), (".*:SPI:spi2_v1_4", ("spi", "f1", "SPI")), (".*:SPI:spi2s1_v2_1", ("spi", "v1", "SPI")), (".*:SPI:spi2s1_v2_2", ("spi", "v1", "SPI")), From 32bbb683af438c63ef65a9a55ad04b20ff67fdd3 Mon Sep 17 00:00:00 2001 From: ExplodingWaffle Date: Sat, 9 Sep 2023 14:55:57 +0100 Subject: [PATCH 31/54] finishing touches --- data/registers/ucpd_v1.yaml | 77 ++++++++++++++++++++++++++++++------- 1 file changed, 64 insertions(+), 13 deletions(-) diff --git a/data/registers/ucpd_v1.yaml b/data/registers/ucpd_v1.yaml index 5ca26ff..b9b40c5 100644 --- a/data/registers/ucpd_v1.yaml +++ b/data/registers/ucpd_v1.yaml @@ -59,7 +59,21 @@ block/UCPD: description: "Rx ordered set extension register 2 \t" byte_offset: 56 fieldset: RX_ORDEXTR2 - # TODO: IPVER, IPID and MID from g0[7, 8]1 svds? do we care? + - name: IPVER + description: UCPD IP ID register + byte_offset: 1012 + access: Read + fieldset: IPVER + - name: IPID + description: UCPD IP ID register + byte_offset: 1016 + access: Read + fieldset: IPID + - name: MID + description: UCPD IP ID register + byte_offset: 1020 + access: Read + fieldset: MID fieldset/CFGR1: description: "configuration register 1 " fields: @@ -79,6 +93,7 @@ fieldset/CFGR1: description: "Pre-scaler division ratio for generating clk\r The bitfield determines the division ratio of a kernel clock pre-scaler producing peripheral clock (clk).\r It is recommended to use the pre-scaler so as to set the clk frequency in the range from 6 to 9 MHz." bit_offset: 17 bit_size: 3 + enum: PSC_USBPDCLK - name: RXORDSETEN description: "Receiver ordered set enable\r The bitfield determines the types of ordered sets that the receiver must detect. When set/cleared, each bit enables/disables a specific function:\r 0bxxxxxxxx1: SOP detect enabled\r 0bxxxxxxx1x: SOP' detect enabled\r 0bxxxxxx1xx: SOP'' detect enabled\r 0bxxxxx1xxx: Hard Reset detect enabled\r 0bxxxx1xxxx: Cable Detect reset enabled\r 0bxxx1xxxxx: SOP'_Debug enabled\r 0bxx1xxxxxx: SOP''_Debug enabled\r 0bx1xxxxxxx: SOP extension#1 enabled\r 0b1xxxxxxxx: SOP extension#2 enabled" bit_offset: 20 @@ -115,23 +130,22 @@ fieldset/CFGR2: bit_offset: 3 bit_size: 1 fieldset/CFGR3: -# TODO: sort out this mess description: "configuration register 3 " fields: - - name: TRIM1_NG_CCRPD - description: SW trim value for RPD resistors on the CC1 line + - name: TRIM_CC1_RD + description: SW trim value for Rd resistor on the CC1 line bit_offset: 0 bit_size: 4 - - name: TRIM1_NG_CC3A0 - description: SW trim value for Iref on the CC1 line + - name: TRIM_CC1_RP + description: SW trim value for Rp current sources on the CC1 line bit_offset: 9 bit_size: 4 - - name: TRIM2_NG_CCRPD - description: SW trim value for RPD resistors on the CC2 line + - name: TRIM_CC2_RD + description: SW trim value for Rd resistor on the CC2 line bit_offset: 16 bit_size: 4 - - name: TRIM2_NG_CC3A0 - description: SW trim value for Iref on the CC2 line + - name: TRIM_CC2_RP + description: SW trim value for Rp current sources on the CC2 line bit_offset: 25 bit_size: 4 fieldset/CR: @@ -185,7 +199,6 @@ fieldset/CR: description: VCONN switch enable for CC2 bit_offset: 14 bit_size: 1 -# TODO: this is fine, right? - name: DBATTEN description: "Dead battery function enable\r The bit takes effect upon setting the USBPDstrobe bit of the SYS_CONFIG register.\r Dead battery function only operates if the external circuit is appropriately configured." bit_offset: 15 @@ -328,6 +341,27 @@ fieldset/IMR: description: FRSEVT interrupt enable bit_offset: 20 bit_size: 1 +fieldset/IPID: + description: UCPD IP ID register + fields: + - name: IPID + description: IPID + bit_offset: 0 + bit_size: 32 +fieldset/IPVER: + description: UCPD IP ID register + fields: + - name: IPVER + description: IPVER + bit_offset: 0 + bit_size: 32 +fieldset/MID: + description: UCPD IP ID register + fields: + - name: IPID + description: IPID + bit_offset: 0 + bit_size: 32 fieldset/RXDR: fields: - name: RXDATA @@ -479,7 +513,6 @@ enum/ANAMODE: value: 1 enum/CCENABLE: bit_size: 2 - # TODO: should this maybe be 2 fields, CCxENABLE? variants: - name: Disabled description: "Disable both PHYs " @@ -573,4 +606,22 @@ enum/TYPEC_VSTATE_CC: value: 2 - name: Highest description: Highest - value: 3 \ No newline at end of file + value: 3 +enum/PSC_USBPDCLK: + bit_size: 3 + variants: + - name: Div1 + description: 1 (bypass) + value: 0 + - name: Div2 + description: "2" + value: 1 + - name: Div4 + description: "4" + value: 2 + - name: Div8 + description: "8" + value: 3 + - name: Div16 + description: "16" + value: 4 \ No newline at end of file From 27b99b9d246264093474767af006a47f10054f90 Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Sun, 10 Sep 2023 12:37:48 +0100 Subject: [PATCH 32/54] Add stbiterr field for sdmmc_v1 --- data/registers/sdmmc_v1.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/data/registers/sdmmc_v1.yaml b/data/registers/sdmmc_v1.yaml index 8841d50..0eb958f 100644 --- a/data/registers/sdmmc_v1.yaml +++ b/data/registers/sdmmc_v1.yaml @@ -248,6 +248,10 @@ fieldset/ICR: description: DATAEND flag clear bit bit_offset: 8 bit_size: 1 + - name: STBITERRC + description: STBITERR flag clear bit + bit_offset: 9 + bit_size: 1 - name: DBCKENDC description: DBCKEND flag clear bit bit_offset: 10 @@ -295,6 +299,10 @@ fieldset/MASKR: description: Data end interrupt enable bit_offset: 8 bit_size: 1 + - name: STBITERRE + description: STBITERR interrupt enable + bit_offset: 9 + bit_size: 1 - name: DBCKENDIE description: Data block end interrupt enable bit_offset: 10 @@ -428,6 +436,10 @@ fieldset/STAR: description: "Data end (data counter, SDIDCOUNT, is zero)" bit_offset: 8 bit_size: 1 + - name: STBITERR + description: " Start bit not detected on all data signals in wide bus mode" + bit_offset: 9 + bit_size: 1 - name: DBCKEND description: Data block sent/received (CRC check passed) bit_offset: 10 From 539d2dd7febae45405d35e0495d399d07563dce9 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sun, 10 Sep 2023 14:05:55 -0500 Subject: [PATCH 33/54] u5: add sdmmc --- stm32-data-gen/src/chips.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 9c8795c..028a5b1 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -305,6 +305,7 @@ impl PeriMatcher { ("STM32G4.*:CRS:.*", ("crs", "v1", "CRS")), ("STM32U5.*:CRS:.*", ("crs", "v1", "CRS")), (".*SDMMC:sdmmc2_v1_0", ("sdmmc", "v2", "SDMMC")), + (".*SDMMC:sdmmc2_v2_1", ("sdmmc", "v2", "SDMMC")), ("STM32C0.*:PWR:.*", ("pwr", "c0", "PWR")), ("STM32G0.*:PWR:.*", ("pwr", "g0", "PWR")), ("STM32G4.*:PWR:.*", ("pwr", "g4", "PWR")), From d71fac77e6193aacd7926482cce0197e816b4059 Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 11 Sep 2023 15:55:53 -0500 Subject: [PATCH 34/54] g4: fix rcc adc generation --- stm32-data-gen/src/rcc.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stm32-data-gen/src/rcc.rs b/stm32-data-gen/src/rcc.rs index 34da8c0..9bb540c 100644 --- a/stm32-data-gen/src/rcc.rs +++ b/stm32-data-gen/src/rcc.rs @@ -123,6 +123,11 @@ impl PeripheralToClock { } } + // If adc is 3, 4, or 5, check for ADC345 + if (peri_name == "ADC3" || peri_name == "ADC4" || peri_name == "ADC5") && clocks.contains_key("ADC345") { + return clocks.get("ADC345"); + } + // Look for bare ADC clock register if clocks.contains_key("ADC") { return clocks.get("ADC"); From db70d166918c6575619d029838125bb31b4b373b Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 11 Sep 2023 16:06:43 -0500 Subject: [PATCH 35/54] adc/v2: cleanup enums --- data/registers/adc_v2.yaml | 120 ------------------------------------- 1 file changed, 120 deletions(-) diff --git a/data/registers/adc_v2.yaml b/data/registers/adc_v2.yaml index c66afcb..1621443 100644 --- a/data/registers/adc_v2.yaml +++ b/data/registers/adc_v2.yaml @@ -77,22 +77,18 @@ fieldset/CR1: description: Interrupt enable for EOC bit_offset: 5 bit_size: 1 - enum: EOCIE - name: AWDIE description: Analog watchdog interrupt enable bit_offset: 6 bit_size: 1 - enum: AWDIE - name: JEOCIE description: Interrupt enable for injected channels bit_offset: 7 bit_size: 1 - enum: JEOCIE - name: SCAN description: Scan mode bit_offset: 8 bit_size: 1 - enum: SCAN - name: AWDSGL description: Enable the watchdog on a single channel in scan mode bit_offset: 9 @@ -102,17 +98,14 @@ fieldset/CR1: description: Automatic injected group conversion bit_offset: 10 bit_size: 1 - enum: JAUTO - name: DISCEN description: Discontinuous mode on regular channels bit_offset: 11 bit_size: 1 - enum: DISCEN - name: JDISCEN description: Discontinuous mode on injected channels bit_offset: 12 bit_size: 1 - enum: JDISCEN - name: DISCNUM description: Discontinuous mode channel count bit_offset: 13 @@ -121,12 +114,10 @@ fieldset/CR1: description: Analog watchdog enable on injected channels bit_offset: 22 bit_size: 1 - enum: JAWDEN - name: AWDEN description: Analog watchdog enable on regular channels bit_offset: 23 bit_size: 1 - enum: AWDEN - name: RES description: Resolution bit_offset: 24 @@ -136,7 +127,6 @@ fieldset/CR1: description: Overrun interrupt enable bit_offset: 26 bit_size: 1 - enum: OVRIE fieldset/CR2: description: control register 2 fields: @@ -144,7 +134,6 @@ fieldset/CR2: description: A/D Converter ON / OFF bit_offset: 0 bit_size: 1 - enum: ADON - name: CONT description: Continuous conversion bit_offset: 1 @@ -154,7 +143,6 @@ fieldset/CR2: description: Direct memory access mode (for single ADC mode) bit_offset: 8 bit_size: 1 - enum: DMA - name: DDS description: DMA disable selection (for single ADC mode) bit_offset: 9 @@ -346,15 +334,6 @@ fieldset/SR: bit_offset: 5 bit_size: 1 enum: OVR -enum/ADON: - bit_size: 1 - variants: - - name: Disabled - description: Disable ADC conversion and go to power down mode - value: 0 - - name: Enabled - description: Enable ADC - value: 1 enum/ALIGN: bit_size: 1 variants: @@ -373,24 +352,6 @@ enum/AWD: - name: Event description: Analog watchdog event occurred value: 1 -enum/AWDEN: - bit_size: 1 - variants: - - name: Disabled - description: Analog watchdog disabled on regular channels - value: 0 - - name: Enabled - description: Analog watchdog enabled on regular channels - value: 1 -enum/AWDIE: - bit_size: 1 - variants: - - name: Disabled - description: Analogue watchdog interrupt disabled - value: 0 - - name: Enabled - description: Analogue watchdog interrupt enabled - value: 1 enum/AWDSGL: bit_size: 1 variants: @@ -418,24 +379,6 @@ enum/DDS: - name: Continuous description: DMA requests are issued as long as data are converted and DMA=1 value: 1 -enum/DISCEN: - bit_size: 1 - variants: - - name: Disabled - description: Discontinuous mode on regular channels disabled - value: 0 - - name: Enabled - description: Discontinuous mode on regular channels enabled - value: 1 -enum/DMA: - bit_size: 1 - variants: - - name: Disabled - description: DMA mode disabled - value: 0 - - name: Enabled - description: DMA mode enabled - value: 1 enum/EOC: bit_size: 1 variants: @@ -445,15 +388,6 @@ enum/EOC: - name: Complete description: Conversion complete value: 1 -enum/EOCIE: - bit_size: 1 - variants: - - name: Disabled - description: EOC interrupt disabled - value: 0 - - name: Enabled - description: EOC interrupt enabled - value: 1 enum/EOCS: bit_size: 1 variants: @@ -502,33 +436,6 @@ enum/EXTSEL: - name: TIM2TRGO description: Timer 2 TRGO event value: 6 -enum/JAUTO: - bit_size: 1 - variants: - - name: Disabled - description: Automatic injected group conversion disabled - value: 0 - - name: Enabled - description: Automatic injected group conversion enabled - value: 1 -enum/JAWDEN: - bit_size: 1 - variants: - - name: Disabled - description: Analog watchdog disabled on injected channels - value: 0 - - name: Enabled - description: Analog watchdog enabled on injected channels - value: 1 -enum/JDISCEN: - bit_size: 1 - variants: - - name: Disabled - description: Discontinuous mode on injected channels disabled - value: 0 - - name: Enabled - description: Discontinuous mode on injected channels enabled - value: 1 enum/JEOC: bit_size: 1 variants: @@ -538,15 +445,6 @@ enum/JEOC: - name: Complete description: Conversion complete value: 1 -enum/JEOCIE: - bit_size: 1 - variants: - - name: Disabled - description: JEOC interrupt disabled - value: 0 - - name: Enabled - description: JEOC interrupt enabled - value: 1 enum/JEXTEN: bit_size: 2 variants: @@ -625,15 +523,6 @@ enum/OVR: - name: Overrun description: Overrun occurred value: 1 -enum/OVRIE: - bit_size: 1 - variants: - - name: Disabled - description: Overrun interrupt disabled - value: 0 - - name: Enabled - description: Overrun interrupt enabled - value: 1 enum/RES: bit_size: 2 variants: @@ -676,15 +565,6 @@ enum/SAMPLE_TIME: - name: Cycles480 description: 480 cycles value: 7 -enum/SCAN: - bit_size: 1 - variants: - - name: Disabled - description: Scan mode disabled - value: 0 - - name: Enabled - description: Scan mode enabled - value: 1 enum/SMPR_SMPx_x: bit_size: 32 variants: From b77943a5472aefb514199b3f3f412320539f9fc4 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 14 Sep 2023 03:34:04 +0200 Subject: [PATCH 36/54] ci: upload generated json diff, and generated data+metapac as artifacts. --- .github/ci/build.sh | 28 ++++++++++++++++++++++++++++ .github/ci/generated.sh | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/ci/build.sh b/.github/ci/build.sh index bdf7490..d9e1478 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -13,4 +13,32 @@ hashtime save /ci/cache/filetime.json cargo fmt -- --check +# clone stm32-data-generated at the merge base +# so the diff will show this PR's effect +git clone --depth 1 --branch stm32-data-$(git merge-base HEAD main) https://github.com/embassy-rs/stm32-data-generated/ build + ./d ci + +# upload diff +( + cd build + git diff --color data | aha --black > /ci/artifacts/diff.html +) + +# upload generated data to a fake git repo at +# https://ci.embassy.dev/jobs/$ID/artifacts/generated.git +# this allows testing the corresponding embassy-stm32 PR before merging the stm32-data one. +( + cd build + rm -rf .git + git init + git add . + git commit -m 'generated' + git gc # makes cloning faster + git update-server-info # generate .git/info/refs + mv .git /ci/artifacts/generated.git +) + +cat > /ci/comment.md < Date: Thu, 14 Sep 2023 17:10:04 -0500 Subject: [PATCH 37/54] add pwr l0 --- data/registers/pwr_l0.yaml | 257 ++++++++++++++++++++++++++++++++++++ stm32-data-gen/src/chips.rs | 1 + 2 files changed, 258 insertions(+) create mode 100644 data/registers/pwr_l0.yaml diff --git a/data/registers/pwr_l0.yaml b/data/registers/pwr_l0.yaml new file mode 100644 index 0000000..c3afb3d --- /dev/null +++ b/data/registers/pwr_l0.yaml @@ -0,0 +1,257 @@ +--- +block/PWR: + description: Power control + items: + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR +fieldset/CR: + description: power control register + fields: + - name: LPSDSR + description: Low-power deepsleep/Sleep/Low-power run + bit_offset: 0 + bit_size: 1 + enum: LPSDSR + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + enum: PLS + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: ULP + description: Ultra-low-power mode + bit_offset: 9 + bit_size: 1 + - name: FWU + description: Fast wakeup + bit_offset: 10 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 11 + bit_size: 2 + enum: VOS + - name: DS_EE_KOFF + description: Deep sleep mode with Flash memory kept off + bit_offset: 13 + bit_size: 1 + enum: DS_EE_KOFF + - name: LPRUN + description: Low power run mode + bit_offset: 14 + bit_size: 1 + enum: LPRUN + - name: LPDS + description: Regulator in Low-power deepsleep mode + bit_offset: 16 + bit_size: 1 + enum: LPDS +fieldset/CSR: + description: power control/status register + fields: + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + enum_read: WUFR + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + enum_read: SBFR + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + enum_read: PVDOR + - name: VREFINTRDYF + description: Internal voltage reference ready flag + bit_offset: 3 + bit_size: 1 + enum_read: VREFINTRDYFR + - name: VOSF + description: Voltage Scaling select flag + bit_offset: 4 + bit_size: 1 + enum_read: VOSFR + - name: REGLPF + description: Regulator LP flag + bit_offset: 5 + bit_size: 1 + enum_read: REGLPFR + - name: EWUP1 + description: Enable WKUP pin 1 + bit_offset: 8 + bit_size: 1 + - name: EWUP2 + description: Enable WKUP pin 2 + bit_offset: 9 + bit_size: 1 + - name: EWUP3 + description: Enable WKUP pin 3 + bit_offset: 10 + bit_size: 1 +enum/DS_EE_KOFF: + bit_size: 1 + variants: + - name: NVMWakeUp + description: NVM woken up when exiting from Deepsleep mode even if the bit RUN_PD is set + value: 0 + - name: NVMSleep + description: NVM not woken up when exiting from low-power mode (if the bit RUN_PD is set) + value: 1 +enum/LPDS: + bit_size: 1 + variants: + - name: MAIN_MODE + description: Voltage regulator in Main mode during Deepsleep mode (Stop mode) + value: 0 + - name: LOW_POWER_MODE + description: Voltage regulator switches to low-power mode when the CPU enters Deepsleep mode (Stop mode) + value: 1 +enum/LPRUN: + bit_size: 1 + variants: + - name: MAIN_MODE + description: Voltage regulator in Main mode in Low-power run mode + value: 0 + - name: LOW_POWER_MODE + description: Voltage regulator in low-power mode in Low-power run mode + value: 1 +enum/LPSDSR: + bit_size: 1 + variants: + - name: MAIN_MODE + description: Voltage regulator on during Deepsleep/Sleep/Low-power run mode + value: 0 + - name: LOW_POWER_MODE + description: Voltage regulator in low-power mode during Deepsleep/Sleep/Low-power run mode + value: 1 +enum/PDDS: + bit_size: 1 + variants: + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 +enum/PLS: + bit_size: 3 + variants: + - name: V1_9 + description: 1.9 V + value: 0 + - name: V2_1 + description: 2.1 V + value: 1 + - name: V2_3 + description: 2.3 V + value: 2 + - name: V2_5 + description: 2.5 V + value: 3 + - name: V2_7 + description: 2.7 V + value: 4 + - name: V2_9 + description: 2.9 V + value: 5 + - name: V3_1 + description: 3.1 V + value: 6 + - name: External + description: External input analog voltage (Compare internally to VREFINT) + value: 7 +enum/PVDOR: + bit_size: 1 + variants: + - name: AboveThreshold + description: "VDD is higher than the PVD threshold selected with the PLS[2:0] bits" + value: 0 + - name: BelowThreshold + description: "VDD is lower than the PVD threshold selected with the PLS[2:0] bits" + value: 1 +enum/REGLPFR: + bit_size: 1 + variants: + - name: Ready + description: Regulator is ready in Main mode + value: 0 + - name: NotReady + description: Regulator voltage is in low-power mode + value: 1 +enum/SBFR: + bit_size: 1 + variants: + - name: NoStandbyEvent + description: Device has not been in Standby mode + value: 0 + - name: StandbyEvent + description: Device has been in Standby mode + value: 1 +enum/VOS: + bit_size: 2 + variants: + - name: V1_8 + description: 1.8 V (range 1) + value: 1 + - name: V1_5 + description: 1.5 V (range 2) + value: 2 + - name: V1_2 + description: 1.2 V (range 3) + value: 3 +enum/VOSFR: + bit_size: 1 + variants: + - name: Ready + description: Regulator is ready in the selected voltage range + value: 0 + - name: NotReady + description: Regulator voltage output is changing to the required VOS level + value: 1 +enum/VREFINTRDYFR: + bit_size: 1 + variants: + - name: NotReady + description: VREFINT is OFF + value: 0 + - name: Ready + description: VREFINT is ready + value: 1 +enum/WUFR: + bit_size: 1 + variants: + - name: NoWakeupEvent + description: No wakeup event occurred + value: 0 + - name: WakeupEvent + description: "A wakeup event was received from the WKUP pin or from the RTC alarm (Alarm A or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup)" + value: 1 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 5ddd3c2..6bb769f 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -330,6 +330,7 @@ impl PeriMatcher { ("STM32F3.*:PWR:.*", ("pwr", "f3", "PWR")), ("STM32F4.*:PWR:.*", ("pwr", "f4", "PWR")), ("STM32F7.*:PWR:.*", ("pwr", "f7", "PWR")), + ("STM32L0.*:PWR:.*", ("pwr", "l0", "PWR")), ("STM32L1.*:PWR:.*", ("pwr", "l1", "PWR")), ("STM32L4.*:PWR:.*", ("pwr", "l4", "PWR")), ("STM32L5.*:PWR:.*", ("pwr", "l5", "PWR")), From 1118eb4c965527760c1031fe305f3d7dc49c06b0 Mon Sep 17 00:00:00 2001 From: xoviat Date: Thu, 14 Sep 2023 17:10:13 -0500 Subject: [PATCH 38/54] cleanup adc common v2 --- data/registers/adccommon_v2.yaml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/data/registers/adccommon_v2.yaml b/data/registers/adccommon_v2.yaml index 037ade7..5d9a6a7 100644 --- a/data/registers/adccommon_v2.yaml +++ b/data/registers/adccommon_v2.yaml @@ -47,12 +47,10 @@ fieldset/CCR: description: VBAT enable bit_offset: 22 bit_size: 1 - enum: VBATE - name: TSVREFE description: Temperature sensor and VREFINT enable bit_offset: 23 bit_size: 1 - enum: TSVREFE fieldset/CDR: description: ADC common regular data register for dual and triple modes fields: @@ -249,21 +247,3 @@ enum/STRT: - name: Started description: Regular channel conversion has started value: 1 -enum/TSVREFE: - bit_size: 1 - variants: - - name: Disabled - description: Temperature sensor and V_REFINT channel disabled - value: 0 - - name: Enabled - description: Temperature sensor and V_REFINT channel enabled - value: 1 -enum/VBATE: - bit_size: 1 - variants: - - name: Disabled - description: V_BAT channel disabled - value: 0 - - name: Enabled - description: V_BAT channel enabled - value: 1 From 1e9067e0f0e5ff58558dae3be0645c6486f176a9 Mon Sep 17 00:00:00 2001 From: xoviat Date: Thu, 14 Sep 2023 17:32:36 -0500 Subject: [PATCH 39/54] pwr/l0: cleanup enums --- data/registers/pwr_l0.yaml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/data/registers/pwr_l0.yaml b/data/registers/pwr_l0.yaml index c3afb3d..40aaa6b 100644 --- a/data/registers/pwr_l0.yaml +++ b/data/registers/pwr_l0.yaml @@ -17,7 +17,7 @@ fieldset/CR: description: Low-power deepsleep/Sleep/Low-power run bit_offset: 0 bit_size: 1 - enum: LPSDSR + enum: MODE - name: PDDS description: Power down deepsleep bit_offset: 1 @@ -66,12 +66,12 @@ fieldset/CR: description: Low power run mode bit_offset: 14 bit_size: 1 - enum: LPRUN + enum: MODE - name: LPDS description: Regulator in Low-power deepsleep mode bit_offset: 16 bit_size: 1 - enum: LPDS + enum: MODE fieldset/CSR: description: power control/status register fields: @@ -126,32 +126,14 @@ enum/DS_EE_KOFF: - name: NVMSleep description: NVM not woken up when exiting from low-power mode (if the bit RUN_PD is set) value: 1 -enum/LPDS: +enum/MODE: bit_size: 1 variants: - name: MAIN_MODE - description: Voltage regulator in Main mode during Deepsleep mode (Stop mode) + description: Voltage regulator in Main mode value: 0 - name: LOW_POWER_MODE - description: Voltage regulator switches to low-power mode when the CPU enters Deepsleep mode (Stop mode) - value: 1 -enum/LPRUN: - bit_size: 1 - variants: - - name: MAIN_MODE - description: Voltage regulator in Main mode in Low-power run mode - value: 0 - - name: LOW_POWER_MODE - description: Voltage regulator in low-power mode in Low-power run mode - value: 1 -enum/LPSDSR: - bit_size: 1 - variants: - - name: MAIN_MODE - description: Voltage regulator on during Deepsleep/Sleep/Low-power run mode - value: 0 - - name: LOW_POWER_MODE - description: Voltage regulator in low-power mode during Deepsleep/Sleep/Low-power run mode + description: Voltage regulator switches to low-power mode value: 1 enum/PDDS: bit_size: 1 From 2304100192e5b596a515aacb78b501dbb49f8b83 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 15 Sep 2023 00:47:15 +0200 Subject: [PATCH 40/54] ci: fix diff generation for PRs from forks. --- .github/ci/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/ci/build.sh b/.github/ci/build.sh index d9e1478..cc57d5e 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -15,7 +15,9 @@ cargo fmt -- --check # clone stm32-data-generated at the merge base # so the diff will show this PR's effect -git clone --depth 1 --branch stm32-data-$(git merge-base HEAD main) https://github.com/embassy-rs/stm32-data-generated/ build +git remote add upstream https://github.com/embassy-rs/stm32-data +git fetch --depth 1 upstream main +git clone --depth 1 --branch stm32-data-$(git merge-base HEAD upstream/main) https://github.com/embassy-rs/stm32-data-generated/ build ./d ci From 9b5d6310591feac7366b2ddd4df0ad4b0c0252b5 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 16 Sep 2023 02:10:21 +0200 Subject: [PATCH 41/54] wtf --- .github/ci/build.sh | 5 +++-- d | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/ci/build.sh b/.github/ci/build.sh index cc57d5e..c667adc 100755 --- a/.github/ci/build.sh +++ b/.github/ci/build.sh @@ -2,7 +2,7 @@ ## on push branch~=gh-readonly-queue/main/.* ## on pull_request -set -euo pipefail +set -euxo pipefail export RUSTUP_HOME=/ci/cache/rustup export CARGO_HOME=/ci/cache/cargo @@ -24,7 +24,8 @@ git clone --depth 1 --branch stm32-data-$(git merge-base HEAD upstream/main) htt # upload diff ( cd build - git diff --color data | aha --black > /ci/artifacts/diff.html + git add . + git diff --staged --color data | aha --black > /ci/artifacts/diff.html ) # upload generated data to a fake git repo at diff --git a/d b/d index 356f902..81cd362 100755 --- a/d +++ b/d @@ -11,7 +11,7 @@ case "$CMD" in rm -rf ./sources/ git clone https://github.com/embassy-rs/stm32-data-sources.git ./sources/ cd ./sources/ - git checkout ca89656b + git checkout a2062c088cf299bd3dc5128eeaa96e07fff2087c ;; install-chiptool) cargo install --git https://github.com/embassy-rs/chiptool From 86fb0cfc2fb48d4583d31fdb9fa7a1fba7d6c720 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 15 Sep 2023 23:00:25 +0200 Subject: [PATCH 42/54] chiptool fmt. --- data/registers/adc_f1.yaml | 691 +- data/registers/adc_f3.yaml | 1359 ++-- data/registers/adc_f3_v2.yaml | 1181 ++-- data/registers/adc_g0.yaml | 1143 ++-- data/registers/adc_v1.yaml | 641 +- data/registers/adc_v2.yaml | 1007 ++- data/registers/adc_v3.yaml | 917 ++- data/registers/adc_v4.yaml | 1643 +++-- data/registers/adccommon_f3.yaml | 536 +- data/registers/adccommon_v2.yaml | 413 +- data/registers/adccommon_v3.yaml | 285 +- data/registers/adccommon_v4.yaml | 625 +- data/registers/aes_f7.yaml | 343 +- data/registers/aes_u5.yaml | 433 +- data/registers/aes_v1.yaml | 249 +- data/registers/aes_v2.yaml | 351 +- data/registers/afio_f1.yaml | 373 +- data/registers/bdma_v1.yaml | 331 +- data/registers/bdma_v2.yaml | 353 +- data/registers/bkp_v1.yaml | 245 +- data/registers/can_bxcan.yaml | 1287 ++-- data/registers/can_fdcan.yaml | 1582 +++-- data/registers/crc_v1.yaml | 29 +- data/registers/crc_v2.yaml | 141 +- data/registers/crc_v3.yaml | 147 +- data/registers/crs_v1.yaml | 263 +- data/registers/dac_v1.yaml | 439 +- data/registers/dac_v2.yaml | 579 +- data/registers/dac_v3.yaml | 671 +- data/registers/dbgmcu_c0.yaml | 139 +- data/registers/dbgmcu_f0.yaml | 187 +- data/registers/dbgmcu_f1.yaml | 235 +- data/registers/dbgmcu_f2.yaml | 267 +- data/registers/dbgmcu_f3.yaml | 251 +- data/registers/dbgmcu_f4.yaml | 275 +- data/registers/dbgmcu_f7.yaml | 291 +- data/registers/dbgmcu_g0.yaml | 187 +- data/registers/dbgmcu_g4.yaml | 291 +- data/registers/dbgmcu_h7.yaml | 339 +- data/registers/dbgmcu_l0.yaml | 155 +- data/registers/dbgmcu_l1.yaml | 203 +- data/registers/dbgmcu_l4.yaml | 259 +- data/registers/dbgmcu_u5.yaml | 731 ++- data/registers/dbgmcu_wb.yaml | 291 +- data/registers/dbgmcu_wl.yaml | 313 +- data/registers/dcmi_v1.yaml | 499 +- data/registers/dma2d_v1.yaml | 1161 ++-- data/registers/dma2d_v2.yaml | 1249 ++-- data/registers/dma_v1.yaml | 643 +- data/registers/dma_v2.yaml | 643 +- data/registers/dmamux_v1.yaml | 221 +- data/registers/eth_v1a.yaml | 3437 +++++----- data/registers/eth_v1b.yaml | 3557 +++++----- data/registers/eth_v1c.yaml | 3557 +++++----- data/registers/eth_v2.yaml | 4489 +++++++------ data/registers/exti_c0.yaml | 143 +- data/registers/exti_g0.yaml | 143 +- data/registers/exti_h5.yaml | 243 +- data/registers/exti_h50.yaml | 185 +- data/registers/exti_h7.yaml | 101 +- data/registers/exti_l5.yaml | 215 +- data/registers/exti_u5.yaml | 215 +- data/registers/exti_v1.yaml | 101 +- data/registers/exti_w.yaml | 115 +- data/registers/exti_wle.yaml | 101 +- data/registers/flash_c0.yaml | 733 ++- data/registers/flash_f0.yaml | 493 +- data/registers/flash_f1.yaml | 327 +- data/registers/flash_f2.yaml | 385 +- data/registers/flash_f3.yaml | 429 +- data/registers/flash_f4.yaml | 449 +- data/registers/flash_f7.yaml | 521 +- data/registers/flash_g0.yaml | 787 ++- data/registers/flash_g4.yaml | 751 ++- data/registers/flash_h5.yaml | 2181 ++++--- data/registers/flash_h50.yaml | 1305 ++-- data/registers/flash_h7.yaml | 1149 ++-- data/registers/flash_h7ab.yaml | 1149 ++-- data/registers/flash_l0.yaml | 397 +- data/registers/flash_l1.yaml | 411 +- data/registers/flash_l4.yaml | 709 +- data/registers/flash_l5.yaml | 1191 ++-- data/registers/flash_u5.yaml | 6089 +++++++++-------- data/registers/flash_wb.yaml | 997 ++- data/registers/flash_wl.yaml | 997 ++- data/registers/fmac_v1.yaml | 303 +- data/registers/fmc_v1x3.yaml | 1363 ++-- data/registers/fmc_v2x1.yaml | 1285 ++-- data/registers/fmc_v3x1.yaml | 1277 ++-- data/registers/fsmc_v1x0.yaml | 387 +- data/registers/fsmc_v1x3.yaml | 751 ++- data/registers/fsmc_v2x3.yaml | 839 ++- data/registers/fsmc_v3x1.yaml | 819 ++- data/registers/fsmc_v4x1.yaml | 907 ++- data/registers/fsmc_v5x1.yaml | 907 ++- data/registers/gpdma_v1.yaml | 1025 +-- data/registers/gpio_v1.yaml | 323 +- data/registers/gpio_v2.yaml | 375 +- data/registers/hrtim_v1.yaml | 4350 +++++++------ data/registers/hrtim_v2.yaml | 4348 +++++++------ data/registers/i2c_v1.yaml | 701 +- data/registers/i2c_v2.yaml | 911 ++- data/registers/ipcc_v1.yaml | 223 +- data/registers/iwdg_v1.yaml | 147 +- data/registers/iwdg_v2.yaml | 171 +- data/registers/jpeg_v1.yaml | 9051 +++++++++++++------------- data/registers/lcd_v1.yaml | 245 +- data/registers/lcd_v2.yaml | 253 +- data/registers/lptim_g0.yaml | 505 +- data/registers/lptim_v1.yaml | 391 +- data/registers/ltdc_v1.yaml | 1179 ++-- data/registers/mdios_v1.yaml | 237 +- data/registers/otg_v1.yaml | 3093 +++++---- data/registers/pwr_c0.yaml | 219 +- data/registers/pwr_f2.yaml | 143 +- data/registers/pwr_f3.yaml | 147 +- data/registers/pwr_f4.yaml | 275 +- data/registers/pwr_f7.yaml | 315 +- data/registers/pwr_g0.yaml | 353 +- data/registers/pwr_g4.yaml | 505 +- data/registers/pwr_h5.yaml | 977 ++- data/registers/pwr_h50.yaml | 729 ++- data/registers/pwr_h7.yaml | 453 +- data/registers/pwr_h7smps.yaml | 477 +- data/registers/pwr_l0.yaml | 387 +- data/registers/pwr_l1.yaml | 181 +- data/registers/pwr_l4.yaml | 561 +- data/registers/pwr_l5.yaml | 717 +- data/registers/pwr_u5.yaml | 1645 +++-- data/registers/pwr_wb55.yaml | 2087 +++--- data/registers/pwr_wl5.yaml | 1333 ++-- data/registers/quadspi_v1.yaml | 515 +- data/registers/rcc_c0.yaml | 1705 +++-- data/registers/rcc_f0.yaml | 2005 +++--- data/registers/rcc_f1.yaml | 1571 +++-- data/registers/rcc_f100.yaml | 1591 +++-- data/registers/rcc_f1cl.yaml | 1753 +++-- data/registers/rcc_f2.yaml | 2487 ++++--- data/registers/rcc_f3.yaml | 2373 ++++--- data/registers/rcc_f3_v2.yaml | 2325 ++++--- data/registers/rcc_f4.yaml | 4711 +++++++------- data/registers/rcc_f410.yaml | 1809 +++-- data/registers/rcc_f7.yaml | 4167 ++++++------ data/registers/rcc_g0.yaml | 2959 +++++---- data/registers/rcc_g4.yaml | 2763 ++++---- data/registers/rcc_h5.yaml | 4997 +++++++------- data/registers/rcc_h50.yaml | 3093 +++++---- data/registers/rcc_h7.yaml | 7953 +++++++++++----------- data/registers/rcc_h7ab.yaml | 5943 +++++++++-------- data/registers/rcc_l0.yaml | 2293 ++++--- data/registers/rcc_l1.yaml | 1945 +++--- data/registers/rcc_l4.yaml | 3561 +++++----- data/registers/rcc_l5.yaml | 4091 ++++++------ data/registers/rcc_u5.yaml | 5873 +++++++++-------- data/registers/rcc_wb.yaml | 2981 +++++---- data/registers/rcc_wl5.yaml | 2609 ++++---- data/registers/rcc_wle.yaml | 1913 +++--- data/registers/rng_v1.yaml | 89 +- data/registers/rng_v2.yaml | 329 +- data/registers/rng_v3.yaml | 337 +- data/registers/rtc_v1.yaml | 257 +- data/registers/rtc_v2f0.yaml | 1433 ++-- data/registers/rtc_v2f2.yaml | 1025 ++- data/registers/rtc_v2f3.yaml | 1443 ++-- data/registers/rtc_v2f4.yaml | 1415 ++-- data/registers/rtc_v2f7.yaml | 1445 ++-- data/registers/rtc_v2h7.yaml | 1445 ++-- data/registers/rtc_v2l0.yaml | 1429 ++-- data/registers/rtc_v2l1.yaml | 1403 ++-- data/registers/rtc_v2l4.yaml | 1437 ++-- data/registers/rtc_v2wb.yaml | 1445 ++-- data/registers/rtc_v3.yaml | 1613 +++-- data/registers/rtc_v3u5.yaml | 1821 +++--- data/registers/sai_v1.yaml | 959 ++- data/registers/sai_v2.yaml | 983 ++- data/registers/sai_v3.yaml | 1105 ++-- data/registers/sai_v4.yaml | 1113 ++-- data/registers/sbs_h5.yaml | 657 +- data/registers/sbs_h50.yaml | 463 +- data/registers/sdmmc_v1.yaml | 873 ++- data/registers/sdmmc_v2.yaml | 1207 ++-- data/registers/spdifrx_v1.yaml | 427 +- data/registers/spi_f1.yaml | 739 ++- data/registers/spi_v1.yaml | 769 ++- data/registers/spi_v2.yaml | 1049 ++- data/registers/spi_v3.yaml | 1151 ++-- data/registers/spi_v4.yaml | 1145 ++-- data/registers/spi_v5.yaml | 1196 ++-- data/registers/syscfg_c0.yaml | 845 ++- data/registers/syscfg_f0.yaml | 687 +- data/registers/syscfg_f2.yaml | 113 +- data/registers/syscfg_f3.yaml | 1495 +++-- data/registers/syscfg_f4.yaml | 127 +- data/registers/syscfg_f7.yaml | 191 +- data/registers/syscfg_g0.yaml | 1139 ++-- data/registers/syscfg_g4.yaml | 261 +- data/registers/syscfg_h7.yaml | 669 +- data/registers/syscfg_l0.yaml | 205 +- data/registers/syscfg_l1.yaml | 77 +- data/registers/syscfg_l4.yaml | 263 +- data/registers/syscfg_l5.yaml | 839 ++- data/registers/syscfg_u5.yaml | 403 +- data/registers/syscfg_wb.yaml | 709 +- data/registers/syscfg_wl5.yaml | 757 ++- data/registers/syscfg_wle.yaml | 253 +- data/registers/timer_v1.yaml | 1683 +++-- data/registers/ucpd_v1.yaml | 1145 ++-- data/registers/uid_v1.yaml | 15 +- data/registers/usart_v1.yaml | 595 +- data/registers/usart_v2.yaml | 625 +- data/registers/usart_v3.yaml | 1259 ++-- data/registers/usart_v4.yaml | 1445 ++-- data/registers/usb_v1.yaml | 453 +- data/registers/usb_v2.yaml | 531 +- data/registers/usb_v3.yaml | 625 +- data/registers/usb_v4.yaml | 689 +- data/registers/usbram_16x1_512.yaml | 15 +- data/registers/usbram_16x2_1024.yaml | 15 +- data/registers/usbram_16x2_512.yaml | 15 +- data/registers/usbram_32_2048.yaml | 13 +- data/registers/vrefintcal_v1.yaml | 19 +- data/registers/wwdg_v1.yaml | 113 +- 222 files changed, 121632 insertions(+), 121853 deletions(-) diff --git a/data/registers/adc_f1.yaml b/data/registers/adc_f1.yaml index 6edf6bf..ccf1e2d 100644 --- a/data/registers/adc_f1.yaml +++ b/data/registers/adc_f1.yaml @@ -1,400 +1,399 @@ ---- block/ADC: description: Analog-to-digital converter items: - - name: SR - description: status register - byte_offset: 0 - fieldset: SR - - name: CR1 - description: control register 1 - byte_offset: 4 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 8 - fieldset: CR2 - - name: SMPR1 - description: sample time register 1 - byte_offset: 12 - fieldset: SMPR1 - - name: SMPR2 - description: sample time register 2 - byte_offset: 16 - fieldset: SMPR2 - - name: JOFR - description: injected channel data offset register x - array: - len: 4 - stride: 4 - byte_offset: 20 - fieldset: JOFR - - name: HTR - description: watchdog higher threshold register - byte_offset: 36 - fieldset: HTR - - name: LTR - description: watchdog lower threshold register - byte_offset: 40 - fieldset: LTR - - name: SQR1 - description: regular sequence register 1 - byte_offset: 44 - fieldset: SQR1 - - name: SQR2 - description: regular sequence register 2 - byte_offset: 48 - fieldset: SQR2 - - name: SQR3 - description: regular sequence register 3 - byte_offset: 52 - fieldset: SQR3 - - name: JSQR - description: injected sequence register - byte_offset: 56 - fieldset: JSQR - - name: JDR - description: injected data register x - array: - len: 4 - stride: 4 - byte_offset: 60 - access: Read - fieldset: JDR - - name: DR - description: regular data register - byte_offset: 76 - access: Read - fieldset: DR + - name: SR + description: status register + byte_offset: 0 + fieldset: SR + - name: CR1 + description: control register 1 + byte_offset: 4 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 8 + fieldset: CR2 + - name: SMPR1 + description: sample time register 1 + byte_offset: 12 + fieldset: SMPR1 + - name: SMPR2 + description: sample time register 2 + byte_offset: 16 + fieldset: SMPR2 + - name: JOFR + description: injected channel data offset register x + array: + len: 4 + stride: 4 + byte_offset: 20 + fieldset: JOFR + - name: HTR + description: watchdog higher threshold register + byte_offset: 36 + fieldset: HTR + - name: LTR + description: watchdog lower threshold register + byte_offset: 40 + fieldset: LTR + - name: SQR1 + description: regular sequence register 1 + byte_offset: 44 + fieldset: SQR1 + - name: SQR2 + description: regular sequence register 2 + byte_offset: 48 + fieldset: SQR2 + - name: SQR3 + description: regular sequence register 3 + byte_offset: 52 + fieldset: SQR3 + - name: JSQR + description: injected sequence register + byte_offset: 56 + fieldset: JSQR + - name: JDR + description: injected data register x + array: + len: 4 + stride: 4 + byte_offset: 60 + access: Read + fieldset: JDR + - name: DR + description: regular data register + byte_offset: 76 + access: Read + fieldset: DR fieldset/CR1: description: control register 1 fields: - - name: AWDCH - description: Analog watchdog channel select bits - bit_offset: 0 - bit_size: 5 - - name: EOCIE - description: Interrupt enable for EOC - bit_offset: 5 - bit_size: 1 - - name: AWDIE - description: Analog watchdog interrupt enable - bit_offset: 6 - bit_size: 1 - - name: JEOCIE - description: Interrupt enable for injected channels - bit_offset: 7 - bit_size: 1 - - name: SCAN - description: Scan mode - bit_offset: 8 - bit_size: 1 - - name: AWDSGL - description: Enable the watchdog on a single channel in scan mode - bit_offset: 9 - bit_size: 1 - - name: JAUTO - description: Automatic injected group conversion - bit_offset: 10 - bit_size: 1 - - name: DISCEN - description: Discontinuous mode on regular channels - bit_offset: 11 - bit_size: 1 - - name: JDISCEN - description: Discontinuous mode on injected channels - bit_offset: 12 - bit_size: 1 - - name: DISCNUM - description: Discontinuous mode channel count - bit_offset: 13 - bit_size: 3 - - name: DUALMOD - description: Dual mode selection - bit_offset: 16 - bit_size: 4 - enum: DUALMOD - - name: JAWDEN - description: Analog watchdog enable on injected channels - bit_offset: 22 - bit_size: 1 - - name: AWDEN - description: Analog watchdog enable on regular channels - bit_offset: 23 - bit_size: 1 + - name: AWDCH + description: Analog watchdog channel select bits + bit_offset: 0 + bit_size: 5 + - name: EOCIE + description: Interrupt enable for EOC + bit_offset: 5 + bit_size: 1 + - name: AWDIE + description: Analog watchdog interrupt enable + bit_offset: 6 + bit_size: 1 + - name: JEOCIE + description: Interrupt enable for injected channels + bit_offset: 7 + bit_size: 1 + - name: SCAN + description: Scan mode + bit_offset: 8 + bit_size: 1 + - name: AWDSGL + description: Enable the watchdog on a single channel in scan mode + bit_offset: 9 + bit_size: 1 + - name: JAUTO + description: Automatic injected group conversion + bit_offset: 10 + bit_size: 1 + - name: DISCEN + description: Discontinuous mode on regular channels + bit_offset: 11 + bit_size: 1 + - name: JDISCEN + description: Discontinuous mode on injected channels + bit_offset: 12 + bit_size: 1 + - name: DISCNUM + description: Discontinuous mode channel count + bit_offset: 13 + bit_size: 3 + - name: DUALMOD + description: Dual mode selection + bit_offset: 16 + bit_size: 4 + enum: DUALMOD + - name: JAWDEN + description: Analog watchdog enable on injected channels + bit_offset: 22 + bit_size: 1 + - name: AWDEN + description: Analog watchdog enable on regular channels + bit_offset: 23 + bit_size: 1 fieldset/CR2: description: control register 2 fields: - - name: ADON - description: A/D Converter ON / OFF - bit_offset: 0 - bit_size: 1 - - name: CONT - description: Continuous conversion - bit_offset: 1 - bit_size: 1 - - name: CAL - description: A/D Calibration - bit_offset: 2 - bit_size: 1 - - name: RSTCAL - description: Reset calibration - bit_offset: 3 - bit_size: 1 - - name: DMA - description: Direct memory access mode (for single ADC mode) - bit_offset: 8 - bit_size: 1 - - name: ALIGN - description: Data alignment - bit_offset: 11 - bit_size: 1 - - name: JEXTSEL - description: External event select for injected group - bit_offset: 12 - bit_size: 3 - enum: EXTSEL - - name: JEXTTRIG - description: External trigger conversion mode for injected channels - bit_offset: 15 - bit_size: 1 - - name: EXTSEL - description: External event select for regular group - bit_offset: 17 - bit_size: 3 - enum: EXTSEL - - name: EXTTRIG - description: External trigger conversion mode for regular channels - bit_offset: 20 - bit_size: 1 - - name: JSWSTART - description: Start conversion of injected channels - bit_offset: 21 - bit_size: 1 - - name: SWSTART - description: Start conversion of regular channels - bit_offset: 22 - bit_size: 1 - - name: TSVREFE - description: Temperature sensor and VREFINT enable - bit_offset: 23 - bit_size: 1 + - name: ADON + description: A/D Converter ON / OFF + bit_offset: 0 + bit_size: 1 + - name: CONT + description: Continuous conversion + bit_offset: 1 + bit_size: 1 + - name: CAL + description: A/D Calibration + bit_offset: 2 + bit_size: 1 + - name: RSTCAL + description: Reset calibration + bit_offset: 3 + bit_size: 1 + - name: DMA + description: Direct memory access mode (for single ADC mode) + bit_offset: 8 + bit_size: 1 + - name: ALIGN + description: Data alignment + bit_offset: 11 + bit_size: 1 + - name: JEXTSEL + description: External event select for injected group + bit_offset: 12 + bit_size: 3 + enum: EXTSEL + - name: JEXTTRIG + description: External trigger conversion mode for injected channels + bit_offset: 15 + bit_size: 1 + - name: EXTSEL + description: External event select for regular group + bit_offset: 17 + bit_size: 3 + enum: EXTSEL + - name: EXTTRIG + description: External trigger conversion mode for regular channels + bit_offset: 20 + bit_size: 1 + - name: JSWSTART + description: Start conversion of injected channels + bit_offset: 21 + bit_size: 1 + - name: SWSTART + description: Start conversion of regular channels + bit_offset: 22 + bit_size: 1 + - name: TSVREFE + description: Temperature sensor and VREFINT enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: regular data register fields: - - name: DATA - description: Regular data - bit_offset: 0 - bit_size: 16 - - name: ADC2DATA - description: ADC2 data - bit_offset: 16 - bit_size: 16 + - name: DATA + description: Regular data + bit_offset: 0 + bit_size: 16 + - name: ADC2DATA + description: ADC2 data + bit_offset: 16 + bit_size: 16 fieldset/HTR: description: watchdog higher threshold register fields: - - name: HT - description: Analog watchdog higher threshold - bit_offset: 0 - bit_size: 12 + - name: HT + description: Analog watchdog higher threshold + bit_offset: 0 + bit_size: 12 fieldset/JDR: description: injected data register x fields: - - name: JDATA - description: Injected data - bit_offset: 0 - bit_size: 16 + - name: JDATA + description: Injected data + bit_offset: 0 + bit_size: 16 fieldset/JOFR: description: injected channel data offset register x fields: - - name: JOFFSET - description: Data offset for injected channel x - bit_offset: 0 - bit_size: 12 + - name: JOFFSET + description: Data offset for injected channel x + bit_offset: 0 + bit_size: 12 fieldset/JSQR: description: injected sequence register fields: - - name: JSQ - description: 1st conversion in injected sequence - bit_offset: 0 - bit_size: 5 - array: - len: 4 - stride: 5 - - name: JL - description: Injected sequence length - bit_offset: 20 - bit_size: 2 + - name: JSQ + description: 1st conversion in injected sequence + bit_offset: 0 + bit_size: 5 + array: + len: 4 + stride: 5 + - name: JL + description: Injected sequence length + bit_offset: 20 + bit_size: 2 fieldset/LTR: description: watchdog lower threshold register fields: - - name: LT - description: Analog watchdog lower threshold - bit_offset: 0 - bit_size: 12 + - name: LT + description: Analog watchdog lower threshold + bit_offset: 0 + bit_size: 12 fieldset/SMPR1: description: sample time register 1 fields: - - name: SMP - description: Channel x sample time selection - bit_offset: 0 - bit_size: 3 - array: - len: 8 - stride: 3 - enum: SAMPLE_TIME + - name: SMP + description: Channel x sample time selection + bit_offset: 0 + bit_size: 3 + array: + len: 8 + stride: 3 + enum: SAMPLE_TIME fieldset/SMPR2: description: sample time register 2 fields: - - name: SMP - description: Channel 0 sampling time selection - bit_offset: 0 - bit_size: 3 - array: - len: 10 - stride: 3 - enum: SAMPLE_TIME + - name: SMP + description: Channel 0 sampling time selection + bit_offset: 0 + bit_size: 3 + array: + len: 10 + stride: 3 + enum: SAMPLE_TIME fieldset/SQR1: description: regular sequence register 1 fields: - - name: SQ - description: 13th to 16th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 4 - stride: 5 - - name: L - description: Regular channel sequence length - bit_offset: 20 - bit_size: 4 + - name: SQ + description: 13th to 16th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 4 + stride: 5 + - name: L + description: Regular channel sequence length + bit_offset: 20 + bit_size: 4 fieldset/SQR2: description: regular sequence register 2 fields: - - name: SQ - description: 7th to 12th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 6 - stride: 5 + - name: SQ + description: 7th to 12th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 6 + stride: 5 fieldset/SQR3: description: regular sequence register 3 fields: - - name: SQ - description: 1st to 6th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 6 - stride: 5 + - name: SQ + description: 1st to 6th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 6 + stride: 5 fieldset/SR: description: status register fields: - - name: AWD - description: Analog watchdog flag - bit_offset: 0 - bit_size: 1 - - name: EOC - description: Regular channel end of conversion - bit_offset: 1 - bit_size: 1 - - name: JEOC - description: Injected channel end of conversion - bit_offset: 2 - bit_size: 1 - - name: JSTRT - description: Injected channel start flag - bit_offset: 3 - bit_size: 1 - - name: STRT - description: Regular channel start flag - bit_offset: 4 - bit_size: 1 + - name: AWD + description: Analog watchdog flag + bit_offset: 0 + bit_size: 1 + - name: EOC + description: Regular channel end of conversion + bit_offset: 1 + bit_size: 1 + - name: JEOC + description: Injected channel end of conversion + bit_offset: 2 + bit_size: 1 + - name: JSTRT + description: Injected channel start flag + bit_offset: 3 + bit_size: 1 + - name: STRT + description: Regular channel start flag + bit_offset: 4 + bit_size: 1 enum/DUALMOD: bit_size: 4 variants: - - name: Independent - description: Independent mode. - value: 0 - - name: RegularInjected - description: Combined regular simultaneous + injected simultaneous mode - value: 1 - - name: RegularAlternateTrigger - description: Combined regular simultaneous + alternate trigger mode - value: 2 - - name: InjectedFastInterleaved - description: Combined injected simultaneous + fast interleaved mode - value: 3 - - name: InjectedSlowInterleaved - description: Combined injected simultaneous + slow Interleaved mode - value: 4 - - name: Injected - description: Injected simultaneous mode only - value: 5 - - name: Regular - description: Regular simultaneous mode only - value: 6 - - name: FastInterleaved - description: Fast interleaved mode only - value: 7 - - name: SlowInterleaved - description: Slow interleaved mode only - value: 8 - - name: AlternateTrigger - description: Alternate trigger mode only - value: 9 + - name: Independent + description: Independent mode. + value: 0 + - name: RegularInjected + description: Combined regular simultaneous + injected simultaneous mode + value: 1 + - name: RegularAlternateTrigger + description: Combined regular simultaneous + alternate trigger mode + value: 2 + - name: InjectedFastInterleaved + description: Combined injected simultaneous + fast interleaved mode + value: 3 + - name: InjectedSlowInterleaved + description: Combined injected simultaneous + slow Interleaved mode + value: 4 + - name: Injected + description: Injected simultaneous mode only + value: 5 + - name: Regular + description: Regular simultaneous mode only + value: 6 + - name: FastInterleaved + description: Fast interleaved mode only + value: 7 + - name: SlowInterleaved + description: Slow interleaved mode only + value: 8 + - name: AlternateTrigger + description: Alternate trigger mode only + value: 9 enum/EXTSEL: bit_size: 3 variants: - - name: TIM1TRGO - description: Timer 1 TRGO event - value: 0 - - name: TIM1CC4 - description: Timer 1 CC4 event - value: 1 - - name: TIM2TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM2CC1 - description: Timer 2 CC1 event - value: 3 - - name: TIM3CC4 - description: Timer 3 CC4 event - value: 4 - - name: TIM4TRGO - description: Timer 4 TRGO event - value: 5 - - name: TIM8CC4 - description: EXTI line 15/Timer 8 CC4 event - value: 6 - - name: SWSTART - description: SWSTART - value: 7 + - name: TIM1TRGO + description: Timer 1 TRGO event + value: 0 + - name: TIM1CC4 + description: Timer 1 CC4 event + value: 1 + - name: TIM2TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM2CC1 + description: Timer 2 CC1 event + value: 3 + - name: TIM3CC4 + description: Timer 3 CC4 event + value: 4 + - name: TIM4TRGO + description: Timer 4 TRGO event + value: 5 + - name: TIM8CC4 + description: EXTI line 15/Timer 8 CC4 event + value: 6 + - name: SWSTART + description: SWSTART + value: 7 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles1_5 - description: 1.5 cycles - value: 0 - - name: Cycles7_5 - description: 7.5 cycles - value: 1 - - name: Cycles13_5 - description: 13.5 cycles - value: 2 - - name: Cycles28_5 - description: 28.5 cycles - value: 3 - - name: Cycles41_5 - description: 41.5 cycles - value: 4 - - name: Cycles55_5 - description: 55.5 cycles - value: 5 - - name: Cycles71_5 - description: 71.5 cycles - value: 6 - - name: Cycles239_5 - description: 239.5 cycles - value: 7 + - name: Cycles1_5 + description: 1.5 cycles + value: 0 + - name: Cycles7_5 + description: 7.5 cycles + value: 1 + - name: Cycles13_5 + description: 13.5 cycles + value: 2 + - name: Cycles28_5 + description: 28.5 cycles + value: 3 + - name: Cycles41_5 + description: 41.5 cycles + value: 4 + - name: Cycles55_5 + description: 55.5 cycles + value: 5 + - name: Cycles71_5 + description: 71.5 cycles + value: 6 + - name: Cycles239_5 + description: 239.5 cycles + value: 7 diff --git a/data/registers/adc_f3.yaml b/data/registers/adc_f3.yaml index 552fd03..a7f9a72 100644 --- a/data/registers/adc_f3.yaml +++ b/data/registers/adc_f3.yaml @@ -1,776 +1,775 @@ ---- block/ADC: description: Analog-to-Digital Converter items: - - name: ISR - description: interrupt and status register - byte_offset: 0 - fieldset: ISR - - name: IER - description: interrupt enable register - byte_offset: 4 - fieldset: IER - - name: CR - description: control register - byte_offset: 8 - fieldset: CR - - name: CFGR - description: configuration register - byte_offset: 12 - fieldset: CFGR - - name: SMPR1 - description: sample time register 1 - byte_offset: 20 - fieldset: SMPR1 - - name: SMPR2 - description: sample time register 2 - byte_offset: 24 - fieldset: SMPR2 - - name: TR1 - description: watchdog threshold register 1 - byte_offset: 32 - fieldset: TR1 - - name: TR2 - description: watchdog threshold register - byte_offset: 36 - fieldset: TR2 - - name: TR3 - description: watchdog threshold register 3 - byte_offset: 40 - fieldset: TR3 - - name: SQR1 - description: regular sequence register 1 - byte_offset: 48 - fieldset: SQR1 - - name: SQR2 - description: regular sequence register 2 - byte_offset: 52 - fieldset: SQR2 - - name: SQR3 - description: regular sequence register 3 - byte_offset: 56 - fieldset: SQR3 - - name: SQR4 - description: regular sequence register 4 - byte_offset: 60 - fieldset: SQR4 - - name: DR - description: regular Data Register - byte_offset: 64 - access: Read - fieldset: DR - - name: JSQR - description: injected sequence register - byte_offset: 76 - fieldset: JSQR - - name: OFR - description: offset register X - byte_offset: 96 - fieldset: OFR - array: - len: 4 - stride: 4 - - name: JDR - description: injected data register X - byte_offset: 128 - access: Read - fieldset: JDR - array: - len: 4 - stride: 4 - - name: AWDCR - description: "Analog Watchdog X Configuration\r Register" - byte_offset: 160 - fieldset: AWDCR - array: - len: 2 - stride: 4 - - name: DIFSEL - description: "Differential Mode Selection Register\r 2" - byte_offset: 176 - fieldset: DIFSEL - - name: CALFACT - description: Calibration Factors - byte_offset: 180 - fieldset: CALFACT + - name: ISR + description: interrupt and status register + byte_offset: 0 + fieldset: ISR + - name: IER + description: interrupt enable register + byte_offset: 4 + fieldset: IER + - name: CR + description: control register + byte_offset: 8 + fieldset: CR + - name: CFGR + description: configuration register + byte_offset: 12 + fieldset: CFGR + - name: SMPR1 + description: sample time register 1 + byte_offset: 20 + fieldset: SMPR1 + - name: SMPR2 + description: sample time register 2 + byte_offset: 24 + fieldset: SMPR2 + - name: TR1 + description: watchdog threshold register 1 + byte_offset: 32 + fieldset: TR1 + - name: TR2 + description: watchdog threshold register + byte_offset: 36 + fieldset: TR2 + - name: TR3 + description: watchdog threshold register 3 + byte_offset: 40 + fieldset: TR3 + - name: SQR1 + description: regular sequence register 1 + byte_offset: 48 + fieldset: SQR1 + - name: SQR2 + description: regular sequence register 2 + byte_offset: 52 + fieldset: SQR2 + - name: SQR3 + description: regular sequence register 3 + byte_offset: 56 + fieldset: SQR3 + - name: SQR4 + description: regular sequence register 4 + byte_offset: 60 + fieldset: SQR4 + - name: DR + description: regular Data Register + byte_offset: 64 + access: Read + fieldset: DR + - name: JSQR + description: injected sequence register + byte_offset: 76 + fieldset: JSQR + - name: OFR + description: offset register X + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: OFR + - name: JDR + description: injected data register X + array: + len: 4 + stride: 4 + byte_offset: 128 + access: Read + fieldset: JDR + - name: AWDCR + description: "Analog Watchdog X Configuration\r Register" + array: + len: 2 + stride: 4 + byte_offset: 160 + fieldset: AWDCR + - name: DIFSEL + description: "Differential Mode Selection Register\r 2" + byte_offset: 176 + fieldset: DIFSEL + - name: CALFACT + description: Calibration Factors + byte_offset: 180 + fieldset: CALFACT fieldset/AWDCR: description: "Analog Watchdog 2 Configuration\r Register" fields: - - name: AWD2CH0 - description: AWD2CH - bit_offset: 1 - bit_size: 1 - array: - len: 17 - stride: 1 + - name: AWD2CH0 + description: AWD2CH + bit_offset: 1 + bit_size: 1 + array: + len: 17 + stride: 1 fieldset/CALFACT: description: Calibration Factors fields: - - name: CALFACT_S - description: CALFACT_S - bit_offset: 0 - bit_size: 7 - - name: CALFACT_D - description: CALFACT_D - bit_offset: 16 - bit_size: 7 + - name: CALFACT_S + description: CALFACT_S + bit_offset: 0 + bit_size: 7 + - name: CALFACT_D + description: CALFACT_D + bit_offset: 16 + bit_size: 7 fieldset/CFGR: description: configuration register fields: - - name: DMAEN - description: Direct memory access enable - bit_offset: 0 - bit_size: 1 - - name: DMACFG - description: Direct memory access configuration - bit_offset: 1 - bit_size: 1 - - name: RES - description: Data resolution - bit_offset: 3 - bit_size: 2 - enum: RES - - name: ALIGN - description: Data alignment - bit_offset: 5 - bit_size: 1 - enum: ALIGN - - name: EXTSEL - description: External trigger selection for regular group - bit_offset: 6 - bit_size: 4 - enum: EXTSEL - - name: EXTEN - description: External trigger enable and polarity selection for regular channels - bit_offset: 10 - bit_size: 2 - enum: EXTEN - - name: OVRMOD - description: Overrun Mode - bit_offset: 12 - bit_size: 1 - - name: CONT - description: Single / continuous conversion mode for regular conversions - bit_offset: 13 - bit_size: 1 - - name: AUTDLY - description: Delayed conversion mode - bit_offset: 14 - bit_size: 1 - - name: DISCEN - description: Discontinuous mode for regular channels - bit_offset: 16 - bit_size: 1 - - name: DISCNUM - description: Discontinuous mode channel count - bit_offset: 17 - bit_size: 3 - - name: JDISCEN - description: Discontinuous mode on injected channels - bit_offset: 20 - bit_size: 1 - - name: JQM - description: JSQR queue mode - bit_offset: 21 - bit_size: 1 - enum: JQM - - name: AWD1SGL - description: Enable the watchdog 1 on a single channel or on all channels - bit_offset: 22 - bit_size: 1 - enum: AWD1SGL - - name: AWD1EN - description: Analog watchdog 1 enable on regular channels - bit_offset: 23 - bit_size: 1 - - name: JAWD1EN - description: Analog watchdog 1 enable on injected channels - bit_offset: 24 - bit_size: 1 - - name: JAUTO - description: Automatic injected group conversion - bit_offset: 25 - bit_size: 1 - - name: AWD1CH - description: Analog watchdog 1 channel selection - bit_offset: 26 - bit_size: 5 + - name: DMAEN + description: Direct memory access enable + bit_offset: 0 + bit_size: 1 + - name: DMACFG + description: Direct memory access configuration + bit_offset: 1 + bit_size: 1 + - name: RES + description: Data resolution + bit_offset: 3 + bit_size: 2 + enum: RES + - name: ALIGN + description: Data alignment + bit_offset: 5 + bit_size: 1 + enum: ALIGN + - name: EXTSEL + description: External trigger selection for regular group + bit_offset: 6 + bit_size: 4 + enum: EXTSEL + - name: EXTEN + description: External trigger enable and polarity selection for regular channels + bit_offset: 10 + bit_size: 2 + enum: EXTEN + - name: OVRMOD + description: Overrun Mode + bit_offset: 12 + bit_size: 1 + - name: CONT + description: Single / continuous conversion mode for regular conversions + bit_offset: 13 + bit_size: 1 + - name: AUTDLY + description: Delayed conversion mode + bit_offset: 14 + bit_size: 1 + - name: DISCEN + description: Discontinuous mode for regular channels + bit_offset: 16 + bit_size: 1 + - name: DISCNUM + description: Discontinuous mode channel count + bit_offset: 17 + bit_size: 3 + - name: JDISCEN + description: Discontinuous mode on injected channels + bit_offset: 20 + bit_size: 1 + - name: JQM + description: JSQR queue mode + bit_offset: 21 + bit_size: 1 + enum: JQM + - name: AWD1SGL + description: Enable the watchdog 1 on a single channel or on all channels + bit_offset: 22 + bit_size: 1 + enum: AWD1SGL + - name: AWD1EN + description: Analog watchdog 1 enable on regular channels + bit_offset: 23 + bit_size: 1 + - name: JAWD1EN + description: Analog watchdog 1 enable on injected channels + bit_offset: 24 + bit_size: 1 + - name: JAUTO + description: Automatic injected group conversion + bit_offset: 25 + bit_size: 1 + - name: AWD1CH + description: Analog watchdog 1 channel selection + bit_offset: 26 + bit_size: 5 fieldset/CR: description: control register fields: - - name: ADEN - description: ADC enable control - bit_offset: 0 - bit_size: 1 - - name: ADDIS - description: ADC disable command - bit_offset: 1 - bit_size: 1 - - name: ADSTART - description: ADC start of regular conversion - bit_offset: 2 - bit_size: 1 - - name: JADSTART - description: ADC start of injected conversion - bit_offset: 3 - bit_size: 1 - - name: ADSTP - description: ADC stop of regular conversion command - bit_offset: 4 - bit_size: 1 - - name: JADSTP - description: ADC stop of injected conversion command - bit_offset: 5 - bit_size: 1 - - name: ADVREGEN - description: ADC voltage regulator enable - bit_offset: 28 - bit_size: 2 - enum: ADVREGEN - - name: ADCALDIF - description: Differential mode for calibration - bit_offset: 30 - bit_size: 1 - - name: ADCAL - description: ADC calibration - bit_offset: 31 - bit_size: 1 + - name: ADEN + description: ADC enable control + bit_offset: 0 + bit_size: 1 + - name: ADDIS + description: ADC disable command + bit_offset: 1 + bit_size: 1 + - name: ADSTART + description: ADC start of regular conversion + bit_offset: 2 + bit_size: 1 + - name: JADSTART + description: ADC start of injected conversion + bit_offset: 3 + bit_size: 1 + - name: ADSTP + description: ADC stop of regular conversion command + bit_offset: 4 + bit_size: 1 + - name: JADSTP + description: ADC stop of injected conversion command + bit_offset: 5 + bit_size: 1 + - name: ADVREGEN + description: ADC voltage regulator enable + bit_offset: 28 + bit_size: 2 + enum: ADVREGEN + - name: ADCALDIF + description: Differential mode for calibration + bit_offset: 30 + bit_size: 1 + - name: ADCAL + description: ADC calibration + bit_offset: 31 + bit_size: 1 fieldset/DIFSEL: description: "Differential Mode Selection Register\r 2" fields: - - name: DIFSEL_10 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 1 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_11 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 2 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_12 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 3 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_13 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 4 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_14 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 5 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_15 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 6 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_16 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 7 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_17 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 8 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_18 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 9 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_19 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 10 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_110 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 11 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_111 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 12 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_112 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 13 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_113 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 14 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_114 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 15 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_115 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 16 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_116 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 17 - bit_size: 1 - enum: DIFSEL_10 - - name: DIFSEL_117 - description: "Differential mode for channels 15 to\r 1" - bit_offset: 18 - bit_size: 1 - enum: DIFSEL_10 + - name: DIFSEL_10 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 1 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_11 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 2 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_12 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 3 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_13 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 4 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_14 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 5 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_15 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 6 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_16 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 7 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_17 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 8 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_18 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 9 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_19 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 10 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_110 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 11 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_111 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 12 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_112 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 13 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_113 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 14 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_114 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 15 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_115 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 16 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_116 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 17 + bit_size: 1 + enum: DIFSEL_10 + - name: DIFSEL_117 + description: "Differential mode for channels 15 to\r 1" + bit_offset: 18 + bit_size: 1 + enum: DIFSEL_10 fieldset/DR: description: regular Data Register fields: - - name: RDATA - description: Regular data - bit_offset: 0 - bit_size: 16 + - name: RDATA + description: Regular data + bit_offset: 0 + bit_size: 16 fieldset/IER: description: interrupt enable register fields: - - name: ADRDYIE - description: ADC ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: EOSMPIE - description: End of sampling flag interrupt enable for regular conversions - bit_offset: 1 - bit_size: 1 - - name: EOCIE - description: End of regular conversion interrupt enable - bit_offset: 2 - bit_size: 1 - - name: EOSIE - description: End of regular sequence of conversions interrupt enable - bit_offset: 3 - bit_size: 1 - - name: OVRIE - description: Overrun interrupt enable - bit_offset: 4 - bit_size: 1 - - name: JEOCIE - description: End of injected conversion interrupt enable - bit_offset: 5 - bit_size: 1 - - name: JEOSIE - description: End of injected sequence of conversions interrupt enable - bit_offset: 6 - bit_size: 1 - - name: AWDIE - description: Analog watchdog X interrupt enable - bit_offset: 7 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: JQOVFIE - description: Injected context queue overflow interrupt enable - bit_offset: 10 - bit_size: 1 + - name: ADRDYIE + description: ADC ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: EOSMPIE + description: End of sampling flag interrupt enable for regular conversions + bit_offset: 1 + bit_size: 1 + - name: EOCIE + description: End of regular conversion interrupt enable + bit_offset: 2 + bit_size: 1 + - name: EOSIE + description: End of regular sequence of conversions interrupt enable + bit_offset: 3 + bit_size: 1 + - name: OVRIE + description: Overrun interrupt enable + bit_offset: 4 + bit_size: 1 + - name: JEOCIE + description: End of injected conversion interrupt enable + bit_offset: 5 + bit_size: 1 + - name: JEOSIE + description: End of injected sequence of conversions interrupt enable + bit_offset: 6 + bit_size: 1 + - name: AWDIE + description: Analog watchdog X interrupt enable + bit_offset: 7 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: JQOVFIE + description: Injected context queue overflow interrupt enable + bit_offset: 10 + bit_size: 1 fieldset/ISR: description: interrupt and status register fields: - - name: ADRDY - description: ADC Ready - bit_offset: 0 - bit_size: 1 - - name: EOSMP - description: End of sampling flag - bit_offset: 1 - bit_size: 1 - - name: EOC - description: End of conversion flag - bit_offset: 2 - bit_size: 1 - - name: EOS - description: End of regular sequence flag - bit_offset: 3 - bit_size: 1 - - name: OVR - description: ADC overrun - bit_offset: 4 - bit_size: 1 - - name: JEOC - description: Injected channel end of conversion flag - bit_offset: 5 - bit_size: 1 - - name: JEOS - description: Injected channel end of sequence flag - bit_offset: 6 - bit_size: 1 - - name: AWD - description: Analog watchdog flag - bit_offset: 7 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: JQOVF - description: Injected context queue overflow - bit_offset: 10 - bit_size: 1 + - name: ADRDY + description: ADC Ready + bit_offset: 0 + bit_size: 1 + - name: EOSMP + description: End of sampling flag + bit_offset: 1 + bit_size: 1 + - name: EOC + description: End of conversion flag + bit_offset: 2 + bit_size: 1 + - name: EOS + description: End of regular sequence flag + bit_offset: 3 + bit_size: 1 + - name: OVR + description: ADC overrun + bit_offset: 4 + bit_size: 1 + - name: JEOC + description: Injected channel end of conversion flag + bit_offset: 5 + bit_size: 1 + - name: JEOS + description: Injected channel end of sequence flag + bit_offset: 6 + bit_size: 1 + - name: AWD + description: Analog watchdog flag + bit_offset: 7 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: JQOVF + description: Injected context queue overflow + bit_offset: 10 + bit_size: 1 fieldset/JDR: description: injected data register 1 fields: - - name: JDATA - description: Injected data - bit_offset: 0 - bit_size: 16 + - name: JDATA + description: Injected data + bit_offset: 0 + bit_size: 16 fieldset/JSQR: description: injected sequence register fields: - - name: JL - description: Injected channel sequence length - bit_offset: 0 - bit_size: 2 - - name: JEXTSEL - description: External Trigger Selection for injected group - bit_offset: 2 - bit_size: 4 - enum: JEXTSEL - - name: JEXTEN - description: External Trigger Enable and Polarity Selection for injected channels - bit_offset: 6 - bit_size: 2 - enum: JEXTEN - - name: JSQ - description: X conversion in the injected sequence - bit_offset: 8 - bit_size: 5 - array: - len: 4 - stride: 6 + - name: JL + description: Injected channel sequence length + bit_offset: 0 + bit_size: 2 + - name: JEXTSEL + description: External Trigger Selection for injected group + bit_offset: 2 + bit_size: 4 + enum: JEXTSEL + - name: JEXTEN + description: External Trigger Enable and Polarity Selection for injected channels + bit_offset: 6 + bit_size: 2 + enum: JEXTEN + - name: JSQ + description: X conversion in the injected sequence + bit_offset: 8 + bit_size: 5 + array: + len: 4 + stride: 6 fieldset/OFR: description: offset register 1 fields: - - name: OFFSET - description: Data offset y for the channel programmed into bits OFFSETy_CH - bit_offset: 0 - bit_size: 12 - - name: CH - description: Data offset y for the channel programmed into bits OFFSETy_CH - bit_offset: 26 - bit_size: 5 - - name: EN - description: Offset y Enable - bit_offset: 31 - bit_size: 1 + - name: OFFSET + description: Data offset y for the channel programmed into bits OFFSETy_CH + bit_offset: 0 + bit_size: 12 + - name: CH + description: Data offset y for the channel programmed into bits OFFSETy_CH + bit_offset: 26 + bit_size: 5 + - name: EN + description: Offset y Enable + bit_offset: 31 + bit_size: 1 fieldset/SMPR1: description: sample time register 1 fields: - - name: SMP - description: Channel x sampling time selection - bit_offset: 3 - bit_size: 3 - enum: SAMPLE_TIME - array: - len: 9 - stride: 3 + - name: SMP + description: Channel x sampling time selection + bit_offset: 3 + bit_size: 3 + array: + len: 9 + stride: 3 + enum: SAMPLE_TIME fieldset/SMPR2: description: sample time register 2 fields: - - name: SMP - description: Channel x sampling time selection - bit_offset: 0 - bit_size: 3 - enum: SAMPLE_TIME - array: - len: 9 - stride: 3 + - name: SMP + description: Channel x sampling time selection + bit_offset: 0 + bit_size: 3 + array: + len: 9 + stride: 3 + enum: SAMPLE_TIME fieldset/SQR1: description: regular sequence register 1 fields: - - name: L - description: Regular channel sequence length - bit_offset: 0 - bit_size: 4 - - name: SQ - description: X conversion in regular sequence - bit_offset: 6 - bit_size: 5 - array: - len: 4 - stride: 6 + - name: L + description: Regular channel sequence length + bit_offset: 0 + bit_size: 4 + - name: SQ + description: X conversion in regular sequence + bit_offset: 6 + bit_size: 5 + array: + len: 4 + stride: 6 fieldset/SQR2: description: regular sequence register 2 fields: - - name: SQ - description: X conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 5 - stride: 6 + - name: SQ + description: X conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 5 + stride: 6 fieldset/SQR3: description: regular sequence register 3 fields: - - name: SQ - description: X conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 5 - stride: 6 + - name: SQ + description: X conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 5 + stride: 6 fieldset/SQR4: description: regular sequence register 4 fields: - - name: SQ - description: X conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 2 - stride: 6 + - name: SQ + description: X conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 2 + stride: 6 fieldset/TR1: description: watchdog threshold register 1 fields: - - name: LT1 - description: LT1 - bit_offset: 0 - bit_size: 12 - - name: HT1 - description: HT1 - bit_offset: 16 - bit_size: 12 + - name: LT1 + description: LT1 + bit_offset: 0 + bit_size: 12 + - name: HT1 + description: HT1 + bit_offset: 16 + bit_size: 12 fieldset/TR2: description: watchdog threshold register fields: - - name: LT2 - description: LT2 - bit_offset: 0 - bit_size: 8 - - name: HT2 - description: HT2 - bit_offset: 16 - bit_size: 8 + - name: LT2 + description: LT2 + bit_offset: 0 + bit_size: 8 + - name: HT2 + description: HT2 + bit_offset: 16 + bit_size: 8 fieldset/TR3: description: watchdog threshold register 3 fields: - - name: LT3 - description: LT3 - bit_offset: 0 - bit_size: 8 - - name: HT3 - description: HT3 - bit_offset: 16 - bit_size: 8 + - name: LT3 + description: LT3 + bit_offset: 0 + bit_size: 8 + - name: HT3 + description: HT3 + bit_offset: 16 + bit_size: 8 enum/ADVREGEN: bit_size: 2 variants: - - name: Intermediate - description: Intermediate state required when moving the ADC voltage regulator between states - value: 0 - - name: Enabled - description: ADC voltage regulator enabled - value: 1 - - name: Disabled - description: ADC voltage regulator disabled - value: 2 + - name: Intermediate + description: Intermediate state required when moving the ADC voltage regulator between states + value: 0 + - name: Enabled + description: ADC voltage regulator enabled + value: 1 + - name: Disabled + description: ADC voltage regulator disabled + value: 2 enum/ALIGN: bit_size: 1 variants: - - name: Right - description: Right alignment - value: 0 - - name: Left - description: Left alignment - value: 1 + - name: Right + description: Right alignment + value: 0 + - name: Left + description: Left alignment + value: 1 enum/AWD1SGL: bit_size: 1 variants: - - name: All - description: Analog watchdog 1 enabled on all channels - value: 0 - - name: Single - description: Analog watchdog 1 enabled on single channel selected in AWD1CH - value: 1 + - name: All + description: Analog watchdog 1 enabled on all channels + value: 0 + - name: Single + description: Analog watchdog 1 enabled on single channel selected in AWD1CH + value: 1 enum/DIFSEL_10: bit_size: 1 variants: - - name: SingleEnded - description: Input channel is configured in single-ended mode - value: 0 - - name: Differential - description: Input channel is configured in differential mode - value: 1 + - name: SingleEnded + description: Input channel is configured in single-ended mode + value: 0 + - name: Differential + description: Input channel is configured in differential mode + value: 1 enum/EXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/EXTSEL: bit_size: 4 variants: - - name: TIM1_CC1 - description: Timer 1 CC1 event - value: 0 - - name: TIM1_CC2 - description: Timer 1 CC2 event - value: 1 - - name: TIM1_CC3 - description: Timer 1 CC3 event - value: 2 - - name: TIM2_CC2 - description: Timer 2 CC2 event - value: 3 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 4 - - name: EXTI11 - description: EXTI line 11 - value: 6 - - name: HRTIM_ADCTRG1 - description: HRTIM_ADCTRG1 event - value: 7 - - name: HRTIM_ADCTRG3 - description: HRTIM_ADCTRG3 event - value: 8 - - name: TIM1_TRGO - description: Timer 1 TRGO event - value: 9 - - name: TIM1_TRGO2 - description: Timer 1 TRGO2 event - value: 10 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 11 - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 13 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 14 - - name: TIM3_CC4 - description: Timer 3 CC4 event - value: 15 + - name: TIM1_CC1 + description: Timer 1 CC1 event + value: 0 + - name: TIM1_CC2 + description: Timer 1 CC2 event + value: 1 + - name: TIM1_CC3 + description: Timer 1 CC3 event + value: 2 + - name: TIM2_CC2 + description: Timer 2 CC2 event + value: 3 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 4 + - name: EXTI11 + description: EXTI line 11 + value: 6 + - name: HRTIM_ADCTRG1 + description: HRTIM_ADCTRG1 event + value: 7 + - name: HRTIM_ADCTRG3 + description: HRTIM_ADCTRG3 event + value: 8 + - name: TIM1_TRGO + description: Timer 1 TRGO event + value: 9 + - name: TIM1_TRGO2 + description: Timer 1 TRGO2 event + value: 10 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 11 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 13 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 14 + - name: TIM3_CC4 + description: Timer 3 CC4 event + value: 15 enum/JEXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/JEXTSEL: bit_size: 4 variants: - - name: TIM1_TRGO - description: Timer 1 TRGO event - value: 0 - - name: TIM1_CC4 - description: Timer 1 CC4 event - value: 1 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM2_CC1 - description: Timer 2 CC1 event - value: 3 - - name: TIM3_CC4 - description: Timer 3 CC4 event - value: 4 - - name: EXTI15 - description: EXTI line 15 - value: 6 - - name: TIM1_TRGO2 - description: Timer 1 TRGO2 event - value: 8 - - name: HRTIM_ADCTRG2 - description: HRTIM_ADCTRG2 event - value: 9 - - name: HRTIM_ADCTRG4 - description: HRTIM_ADCTRG4 event - value: 10 - - name: TIM3_CC3 - description: Timer 3 CC3 event - value: 11 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 12 - - name: TIM3_CC1 - description: Timer 3 CC1 event - value: 13 - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 14 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 15 + - name: TIM1_TRGO + description: Timer 1 TRGO event + value: 0 + - name: TIM1_CC4 + description: Timer 1 CC4 event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM2_CC1 + description: Timer 2 CC1 event + value: 3 + - name: TIM3_CC4 + description: Timer 3 CC4 event + value: 4 + - name: EXTI15 + description: EXTI line 15 + value: 6 + - name: TIM1_TRGO2 + description: Timer 1 TRGO2 event + value: 8 + - name: HRTIM_ADCTRG2 + description: HRTIM_ADCTRG2 event + value: 9 + - name: HRTIM_ADCTRG4 + description: HRTIM_ADCTRG4 event + value: 10 + - name: TIM3_CC3 + description: Timer 3 CC3 event + value: 11 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 12 + - name: TIM3_CC1 + description: Timer 3 CC1 event + value: 13 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 14 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 15 enum/JQM: bit_size: 1 variants: - - name: Mode0 - description: "JSQR Mode 0: Queue maintains the last written configuration into JSQR" - value: 0 - - name: Mode1 - description: "JSQR Mode 1: An empty queue disables software and hardware triggers of the injected sequence" - value: 1 + - name: Mode0 + description: 'JSQR Mode 0: Queue maintains the last written configuration into JSQR' + value: 0 + - name: Mode1 + description: 'JSQR Mode 1: An empty queue disables software and hardware triggers of the injected sequence' + value: 1 enum/RES: bit_size: 2 variants: - - name: TwelveBit - description: 12-bit resolution - value: 0 - - name: TenBit - description: 10-bit resolution - value: 1 - - name: EightBit - description: 8-bit resolution - value: 2 - - name: SixBit - description: 6-bit resolution - value: 3 + - name: TwelveBit + description: 12-bit resolution + value: 0 + - name: TenBit + description: 10-bit resolution + value: 1 + - name: EightBit + description: 8-bit resolution + value: 2 + - name: SixBit + description: 6-bit resolution + value: 3 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles1_5 - description: 1.5 ADC clock cycles - value: 0 - - name: Cycles2_5 - description: 2.5 ADC clock cycles - value: 1 - - name: Cycles4_5 - description: 4.5 ADC clock cycles - value: 2 - - name: Cycles7_5 - description: 7.5 ADC clock cycles - value: 3 - - name: Cycles19_5 - description: 19.5 ADC clock cycles - value: 4 - - name: Cycles61_5 - description: 61.5 ADC clock cycles - value: 5 - - name: Cycles181_5 - description: 181.5 ADC clock cycles - value: 6 - - name: Cycles601_5 - description: 601.5 ADC clock cycles - value: 7 + - name: Cycles1_5 + description: 1.5 ADC clock cycles + value: 0 + - name: Cycles2_5 + description: 2.5 ADC clock cycles + value: 1 + - name: Cycles4_5 + description: 4.5 ADC clock cycles + value: 2 + - name: Cycles7_5 + description: 7.5 ADC clock cycles + value: 3 + - name: Cycles19_5 + description: 19.5 ADC clock cycles + value: 4 + - name: Cycles61_5 + description: 61.5 ADC clock cycles + value: 5 + - name: Cycles181_5 + description: 181.5 ADC clock cycles + value: 6 + - name: Cycles601_5 + description: 601.5 ADC clock cycles + value: 7 diff --git a/data/registers/adc_f3_v2.yaml b/data/registers/adc_f3_v2.yaml index 627072e..2ab4207 100644 --- a/data/registers/adc_f3_v2.yaml +++ b/data/registers/adc_f3_v2.yaml @@ -1,613 +1,610 @@ ---- block/ADC: description: Analog-to-Digital Converter items: - - name: SR - description: status register - byte_offset: 0 - fieldset: SR - - name: CR1 - description: control register 1 - byte_offset: 4 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 8 - fieldset: CR2 - - name: SMPR1 - description: sample time register 1 - byte_offset: 12 - fieldset: SMPR1 - - name: SMPR2 - description: sample time register 2 - byte_offset: 16 - fieldset: SMPR2 - - name: JOFR1 - description: injected channel data offset register 1 - byte_offset: 20 - fieldset: JOFR1 - - name: JOFR2 - description: injected channel data offset register 2 - byte_offset: 24 - fieldset: JOFR2 - - name: JOFR3 - description: injected channel data offset register 3 - byte_offset: 28 - fieldset: JOFR3 - - name: JOFR4 - description: injected channel data offset register 4 - byte_offset: 32 - fieldset: JOFR4 - - name: HTR - description: watchdog higher threshold register - byte_offset: 36 - fieldset: HTR - - name: LTR - description: watchdog lower threshold register - byte_offset: 40 - fieldset: LTR - - name: SQR1 - description: regular sequence register 1 - byte_offset: 44 - fieldset: SQR1 - - name: SQR2 - description: regular sequence register 2 - byte_offset: 48 - fieldset: SQR2 - - name: SQR3 - description: regular sequence register 3 - byte_offset: 52 - fieldset: SQR3 - - name: JSQR - description: injected sequence register - byte_offset: 56 - fieldset: JSQR - - name: JDR1 - description: injected data register 1 - byte_offset: 60 - fieldset: JDR1 - access: Read - - name: JDR2 - description: injected data register 2 - byte_offset: 64 - fieldset: JDR2 - access: Read - - name: JDR3 - description: injected data register 3 - byte_offset: 68 - fieldset: JDR3 - access: Read - - name: JDR4 - description: injected data register 4 - byte_offset: 72 - fieldset: JDR4 - access: Read - - name: DR - description: regular data register - byte_offset: 76 - fieldset: DR - access: Read -fieldset/SR: - description: status register - fields: - - name: AWD - description: analog watchdog flag - bit_offset: 0 - bit_size: 1 - - name: EOC - description: end of conversion - bit_offset: 1 - bit_size: 1 - - name: JEOC - description: injected channel end of conversion - bit_offset: 2 - bit_size: 1 - - name: JSTRT - description: injected channel start flag - bit_offset: 3 - bit_size: 1 - - name: STRT - description: regular channel start flag - bit_offset: 4 - bit_size: 1 - - name: OVR - description: overrun - bit_offset: 5 - bit_size: 1 + - name: SR + description: status register + byte_offset: 0 + fieldset: SR + - name: CR1 + description: control register 1 + byte_offset: 4 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 8 + fieldset: CR2 + - name: SMPR1 + description: sample time register 1 + byte_offset: 12 + fieldset: SMPR1 + - name: SMPR2 + description: sample time register 2 + byte_offset: 16 + fieldset: SMPR2 + - name: JOFR1 + description: injected channel data offset register 1 + byte_offset: 20 + fieldset: JOFR1 + - name: JOFR2 + description: injected channel data offset register 2 + byte_offset: 24 + fieldset: JOFR2 + - name: JOFR3 + description: injected channel data offset register 3 + byte_offset: 28 + fieldset: JOFR3 + - name: JOFR4 + description: injected channel data offset register 4 + byte_offset: 32 + fieldset: JOFR4 + - name: HTR + description: watchdog higher threshold register + byte_offset: 36 + fieldset: HTR + - name: LTR + description: watchdog lower threshold register + byte_offset: 40 + fieldset: LTR + - name: SQR1 + description: regular sequence register 1 + byte_offset: 44 + fieldset: SQR1 + - name: SQR2 + description: regular sequence register 2 + byte_offset: 48 + fieldset: SQR2 + - name: SQR3 + description: regular sequence register 3 + byte_offset: 52 + fieldset: SQR3 + - name: JSQR + description: injected sequence register + byte_offset: 56 + fieldset: JSQR + - name: JDR1 + description: injected data register 1 + byte_offset: 60 + access: Read + fieldset: JDR1 + - name: JDR2 + description: injected data register 2 + byte_offset: 64 + access: Read + fieldset: JDR2 + - name: JDR3 + description: injected data register 3 + byte_offset: 68 + access: Read + fieldset: JDR3 + - name: JDR4 + description: injected data register 4 + byte_offset: 72 + access: Read + fieldset: JDR4 + - name: DR + description: regular data register + byte_offset: 76 + access: Read + fieldset: DR fieldset/CR1: description: control register 1 fields: - - name: AWDCH - description: analog watchdog channel select bits - bit_offset: 0 - bit_size: 5 - - name: EOCIE - description: interrupt enable for EOC - bit_offset: 5 - bit_size: 1 - - name: AWDIE - description: analog watchdog interrupt enable - bit_offset: 6 - bit_size: 1 - - name: JEOCIE - description: interrupt enable for injected channels - bit_offset: 7 - bit_size: 1 - - name: SCAN - description: scan mode - bit_offset: 8 - bit_size: 1 - - name: AWDSGL - description: enable the watchdog on a single channel in scan mode - bit_offset: 9 - bit_size: 1 - - name: JAUTO - description: automatic injected group conversion - bit_offset: 10 - bit_size: 1 - - name: DISCEN - description: discontinuous mode on regular channels - bit_offset: 11 - bit_size: 1 - - name: JDISCEN - description: discontinuous mode on injected channels - bit_offset: 12 - bit_size: 1 - - name: DISCNUM - description: discontinuous mode channel count - bit_offset: 13 - bit_size: 3 - enum: DISCNUM - - name: JAWDEN - description: analog watchdog enable on injected channels - bit_offset: 22 - bit_size: 1 - - name: AWDEN - description: analog watchdog enable on regular channels - bit_offset: 23 - bit_size: 1 + - name: AWDCH + description: analog watchdog channel select bits + bit_offset: 0 + bit_size: 5 + - name: EOCIE + description: interrupt enable for EOC + bit_offset: 5 + bit_size: 1 + - name: AWDIE + description: analog watchdog interrupt enable + bit_offset: 6 + bit_size: 1 + - name: JEOCIE + description: interrupt enable for injected channels + bit_offset: 7 + bit_size: 1 + - name: SCAN + description: scan mode + bit_offset: 8 + bit_size: 1 + - name: AWDSGL + description: enable the watchdog on a single channel in scan mode + bit_offset: 9 + bit_size: 1 + - name: JAUTO + description: automatic injected group conversion + bit_offset: 10 + bit_size: 1 + - name: DISCEN + description: discontinuous mode on regular channels + bit_offset: 11 + bit_size: 1 + - name: JDISCEN + description: discontinuous mode on injected channels + bit_offset: 12 + bit_size: 1 + - name: DISCNUM + description: discontinuous mode channel count + bit_offset: 13 + bit_size: 3 + enum: DISCNUM + - name: JAWDEN + description: analog watchdog enable on injected channels + bit_offset: 22 + bit_size: 1 + - name: AWDEN + description: analog watchdog enable on regular channels + bit_offset: 23 + bit_size: 1 fieldset/CR2: description: control register 2 fields: - - name: ADON - description: A/D converter ON / OFF - bit_offset: 0 - bit_size: 1 - - name: CONT - description: continuous conversion - bit_offset: 1 - bit_size: 1 - - name: CAL - description: A/D calibration - bit_offset: 2 - bit_size: 1 - - name: RSTCAL - description: reset calibration - bit_offset: 3 - bit_size: 1 - - name: DMA - description: DMA disable selection (for single ADC mode) - bit_offset: 8 - bit_size: 1 - - name: ALIGN - description: data alignment - bit_offset: 11 - bit_size: 1 - - name: JEXTSEL - description: external event select for injected group - bit_offset: 12 - bit_size: 3 - enum: JEXTSEL - - name: JEXTTRIG - description: external trigger conversion mode for injected channels - bit_offset: 15 - bit_size: 1 - - name: EXTSEL - description: external event select for regular group - bit_offset: 17 - bit_size: 3 - enum: EXTSEL - - name: EXTTRIG - description: external trigger conversion mode for regular channels - bit_offset: 20 - bit_size: 1 - - name: JSWSTART - description: start conversion of injected channels - bit_offset: 21 - bit_size: 1 - - name: SWSTART - description: start conversion of regular channels - bit_offset: 22 - bit_size: 1 - - name: TSVREFE - description: temperature sensor and VREFINT enable - bit_offset: 23 - bit_size: 1 -fieldset/SMPR1: - description: sample time register 1 - fields: - - name: SMP10 - description: channel 10 sampling time selection - bit_offset: 0 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP11 - description: channel 11 sampling time selection - bit_offset: 3 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP12 - description: channel 12 sampling time selection - bit_offset: 6 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP13 - description: channel 13 sampling time selection - bit_offset: 9 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP14 - description: channel 14 sampling time selection - bit_offset: 12 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP15 - description: channel 15 sampling time selection - bit_offset: 15 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP16 - description: channel 16 sampling time selection - bit_offset: 18 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP17 - description: channel 17 sampling time selection - bit_offset: 21 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP18 - description: channel 18 sampling time selection - bit_offset: 24 - bit_size: 3 - enum: SAMPLE_TIME -fieldset/SMPR2: - description: sample time register 2 - fields: - - name: SMP0 - description: channel 0 sampling time selection - bit_offset: 0 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP1 - description: channel 1 sampling time selection - bit_offset: 3 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP2 - description: channel 2 sampling time selection - bit_offset: 6 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP3 - description: channel 3 sampling time selection - bit_offset: 9 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP4 - description: channel 4 sampling time selection - bit_offset: 12 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP5 - description: channel 5 sampling time selection - bit_offset: 15 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP6 - description: channel 6 sampling time selection - bit_offset: 18 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP7 - description: channel 7 sampling time selection - bit_offset: 21 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP8 - description: channel 8 sampling time selection - bit_offset: 24 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP9 - description: channel 9 sampling time selection - bit_offset: 27 - bit_size: 3 - enum: SAMPLE_TIME -fieldset/JOFR1: - description: injected channel data offset register 1 - fields: - - name: JOFFSET1 - description: data offset for injected channel 1 - bit_offset: 0 - bit_size: 12 -fieldset/JOFR2: - description: injected channel data offset register 2 - fields: - - name: JOFFSET2 - description: data offset for injected channel 2 - bit_offset: 0 - bit_size: 12 -fieldset/JOFR3: - description: injected channel data offset register 3 - fields: - - name: JOFFSET3 - description: data offset for injected channel 3 - bit_offset: 0 - bit_size: 12 -fieldset/JOFR4: - description: injected channel data offset register 4 - fields: - - name: JOFFSET4 - description: data offset for injected channel 4 - bit_offset: 0 - bit_size: 12 -fieldset/HTR: - description: watchdog higher threshold register - fields: - - name: HT - description: Analog watchdog high threshold - bit_offset: 0 - bit_size: 12 -fieldset/LTR: - description: watchdog lower threshold register - fields: - - name: LT - description: Analog watchdog low threshold - bit_offset: 0 - bit_size: 12 -fieldset/SQR1: - description: regular sequence register 1 - fields: - - name: SQ13 - description: 13th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - - name: SQ14 - description: 14th conversion in regular sequence - bit_offset: 5 - bit_size: 5 - - name: SQ15 - description: 15th conversion in regular sequence - bit_offset: 10 - bit_size: 5 - - name: SQ16 - description: 16th conversion in regular sequence - bit_offset: 15 - bit_size: 5 - - name: L - description: regular channel sequence length - bit_offset: 20 - bit_size: 4 -fieldset/SQR2: - description: regular sequence register 2 - fields: - - name: SQ7 - description: 7th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - - name: SQ8 - description: 8th conversion in regular sequence - bit_offset: 5 - bit_size: 5 - - name: SQ9 - description: 9th conversion in regular sequence - bit_offset: 10 - bit_size: 5 - - name: SQ10 - description: 10th conversion in regular sequence - bit_offset: 15 - bit_size: 5 - - name: SQ11 - description: 11th conversion in regular sequence - bit_offset: 20 - bit_size: 5 - - name: SQ12 - description: 12th conversion in regular sequence - bit_offset: 25 - bit_size: 5 -fieldset/SQR3: - description: regular sequence register 3 - fields: - - name: SQ1 - description: 1st conversion in regular sequence - bit_offset: 0 - bit_size: 5 - - name: SQ2 - description: 2nd conversion in regular sequence - bit_offset: 5 - bit_size: 5 - - name: SQ3 - description: 3rd conversion in regular sequence - bit_offset: 10 - bit_size: 5 - - name: SQ4 - description: 4th conversion in regular sequence - bit_offset: 15 - bit_size: 5 - - name: SQ5 - description: 5th conversion in regular sequence - bit_offset: 20 - bit_size: 5 - - name: SQ6 - description: 6th conversion in regular sequence - bit_offset: 25 - bit_size: 5 -fieldset/JSQR: - description: injected sequence register - fields: - - name: JSQ1 - description: 1st conversion in injected sequence - bit_offset: 0 - bit_size: 5 - - name: JSQ2 - description: 2nd conversion in injected sequence - bit_offset: 5 - bit_size: 5 - - name: JSQ3 - description: 3rd conversion in injected sequence - bit_offset: 10 - bit_size: 5 - - name: JSQ4 - description: 4th conversion in injected sequence - bit_offset: 15 - bit_size: 5 - - name: JL - description: injected sequence length - bit_offset: 20 - bit_size: 2 -fieldset/JDR1: - description: injected data register 1 - fields: - - name: JDATA1 - description: Injected data - bit_offset: 0 - bit_size: 16 -fieldset/JDR2: - description: injected data register 2 - fields: - - name: JDATA2 - description: Injected data - bit_offset: 0 - bit_size: 16 -fieldset/JDR3: - description: injected data register 3 - fields: - - name: JDATA3 - description: Injected data - bit_offset: 0 - bit_size: 16 -fieldset/JDR4: - description: injected data register 4 - fields: - - name: JDATA4 - description: Injected data - bit_offset: 0 - bit_size: 16 + - name: ADON + description: A/D converter ON / OFF + bit_offset: 0 + bit_size: 1 + - name: CONT + description: continuous conversion + bit_offset: 1 + bit_size: 1 + - name: CAL + description: A/D calibration + bit_offset: 2 + bit_size: 1 + - name: RSTCAL + description: reset calibration + bit_offset: 3 + bit_size: 1 + - name: DMA + description: DMA disable selection (for single ADC mode) + bit_offset: 8 + bit_size: 1 + - name: ALIGN + description: data alignment + bit_offset: 11 + bit_size: 1 + - name: JEXTSEL + description: external event select for injected group + bit_offset: 12 + bit_size: 3 + enum: JEXTSEL + - name: JEXTTRIG + description: external trigger conversion mode for injected channels + bit_offset: 15 + bit_size: 1 + - name: EXTSEL + description: external event select for regular group + bit_offset: 17 + bit_size: 3 + enum: EXTSEL + - name: EXTTRIG + description: external trigger conversion mode for regular channels + bit_offset: 20 + bit_size: 1 + - name: JSWSTART + description: start conversion of injected channels + bit_offset: 21 + bit_size: 1 + - name: SWSTART + description: start conversion of regular channels + bit_offset: 22 + bit_size: 1 + - name: TSVREFE + description: temperature sensor and VREFINT enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: regular data register fields: - - name: DATA - description: Regular data - bit_offset: 0 - bit_size: 16 + - name: DATA + description: Regular data + bit_offset: 0 + bit_size: 16 +fieldset/HTR: + description: watchdog higher threshold register + fields: + - name: HT + description: Analog watchdog high threshold + bit_offset: 0 + bit_size: 12 +fieldset/JDR1: + description: injected data register 1 + fields: + - name: JDATA1 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JDR2: + description: injected data register 2 + fields: + - name: JDATA2 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JDR3: + description: injected data register 3 + fields: + - name: JDATA3 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JDR4: + description: injected data register 4 + fields: + - name: JDATA4 + description: Injected data + bit_offset: 0 + bit_size: 16 +fieldset/JOFR1: + description: injected channel data offset register 1 + fields: + - name: JOFFSET1 + description: data offset for injected channel 1 + bit_offset: 0 + bit_size: 12 +fieldset/JOFR2: + description: injected channel data offset register 2 + fields: + - name: JOFFSET2 + description: data offset for injected channel 2 + bit_offset: 0 + bit_size: 12 +fieldset/JOFR3: + description: injected channel data offset register 3 + fields: + - name: JOFFSET3 + description: data offset for injected channel 3 + bit_offset: 0 + bit_size: 12 +fieldset/JOFR4: + description: injected channel data offset register 4 + fields: + - name: JOFFSET4 + description: data offset for injected channel 4 + bit_offset: 0 + bit_size: 12 +fieldset/JSQR: + description: injected sequence register + fields: + - name: JSQ1 + description: 1st conversion in injected sequence + bit_offset: 0 + bit_size: 5 + - name: JSQ2 + description: 2nd conversion in injected sequence + bit_offset: 5 + bit_size: 5 + - name: JSQ3 + description: 3rd conversion in injected sequence + bit_offset: 10 + bit_size: 5 + - name: JSQ4 + description: 4th conversion in injected sequence + bit_offset: 15 + bit_size: 5 + - name: JL + description: injected sequence length + bit_offset: 20 + bit_size: 2 +fieldset/LTR: + description: watchdog lower threshold register + fields: + - name: LT + description: Analog watchdog low threshold + bit_offset: 0 + bit_size: 12 +fieldset/SMPR1: + description: sample time register 1 + fields: + - name: SMP10 + description: channel 10 sampling time selection + bit_offset: 0 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP11 + description: channel 11 sampling time selection + bit_offset: 3 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP12 + description: channel 12 sampling time selection + bit_offset: 6 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP13 + description: channel 13 sampling time selection + bit_offset: 9 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP14 + description: channel 14 sampling time selection + bit_offset: 12 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP15 + description: channel 15 sampling time selection + bit_offset: 15 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP16 + description: channel 16 sampling time selection + bit_offset: 18 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP17 + description: channel 17 sampling time selection + bit_offset: 21 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP18 + description: channel 18 sampling time selection + bit_offset: 24 + bit_size: 3 + enum: SAMPLE_TIME +fieldset/SMPR2: + description: sample time register 2 + fields: + - name: SMP0 + description: channel 0 sampling time selection + bit_offset: 0 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP1 + description: channel 1 sampling time selection + bit_offset: 3 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP2 + description: channel 2 sampling time selection + bit_offset: 6 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP3 + description: channel 3 sampling time selection + bit_offset: 9 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP4 + description: channel 4 sampling time selection + bit_offset: 12 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP5 + description: channel 5 sampling time selection + bit_offset: 15 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP6 + description: channel 6 sampling time selection + bit_offset: 18 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP7 + description: channel 7 sampling time selection + bit_offset: 21 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP8 + description: channel 8 sampling time selection + bit_offset: 24 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP9 + description: channel 9 sampling time selection + bit_offset: 27 + bit_size: 3 + enum: SAMPLE_TIME +fieldset/SQR1: + description: regular sequence register 1 + fields: + - name: SQ13 + description: 13th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + - name: SQ14 + description: 14th conversion in regular sequence + bit_offset: 5 + bit_size: 5 + - name: SQ15 + description: 15th conversion in regular sequence + bit_offset: 10 + bit_size: 5 + - name: SQ16 + description: 16th conversion in regular sequence + bit_offset: 15 + bit_size: 5 + - name: L + description: regular channel sequence length + bit_offset: 20 + bit_size: 4 +fieldset/SQR2: + description: regular sequence register 2 + fields: + - name: SQ7 + description: 7th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + - name: SQ8 + description: 8th conversion in regular sequence + bit_offset: 5 + bit_size: 5 + - name: SQ9 + description: 9th conversion in regular sequence + bit_offset: 10 + bit_size: 5 + - name: SQ10 + description: 10th conversion in regular sequence + bit_offset: 15 + bit_size: 5 + - name: SQ11 + description: 11th conversion in regular sequence + bit_offset: 20 + bit_size: 5 + - name: SQ12 + description: 12th conversion in regular sequence + bit_offset: 25 + bit_size: 5 +fieldset/SQR3: + description: regular sequence register 3 + fields: + - name: SQ1 + description: 1st conversion in regular sequence + bit_offset: 0 + bit_size: 5 + - name: SQ2 + description: 2nd conversion in regular sequence + bit_offset: 5 + bit_size: 5 + - name: SQ3 + description: 3rd conversion in regular sequence + bit_offset: 10 + bit_size: 5 + - name: SQ4 + description: 4th conversion in regular sequence + bit_offset: 15 + bit_size: 5 + - name: SQ5 + description: 5th conversion in regular sequence + bit_offset: 20 + bit_size: 5 + - name: SQ6 + description: 6th conversion in regular sequence + bit_offset: 25 + bit_size: 5 +fieldset/SR: + description: status register + fields: + - name: AWD + description: analog watchdog flag + bit_offset: 0 + bit_size: 1 + - name: EOC + description: end of conversion + bit_offset: 1 + bit_size: 1 + - name: JEOC + description: injected channel end of conversion + bit_offset: 2 + bit_size: 1 + - name: JSTRT + description: injected channel start flag + bit_offset: 3 + bit_size: 1 + - name: STRT + description: regular channel start flag + bit_offset: 4 + bit_size: 1 + - name: OVR + description: overrun + bit_offset: 5 + bit_size: 1 enum/DISCNUM: bit_size: 3 variants: - - name: DISCNUM_1 - description: 1 conversions are discontinued and the conversion is carried out on one channel - value: 0 - - name: DISCNUM_2 - description: 2 conversion is discontinued and the conversions are carried out on 2 channels - value: 1 - - name: DISCNUM_3 - description: 3 conversions are discontinued and the conversions are carried out on 3 channels - value: 2 - - name: DISCNUM_4 - description: 4 conversions are discontinued and the conversions are carried out on 4 channels - value: 3 - - name: DISCNUM_5 - description: 5 conversions are discontinued and the conversions are carried out on 5 channels - value: 4 - - name: DISCNUM_6 - description: 6 conversions are discontinued and the conversions are carried out on 6 channels - value: 5 - - name: DISCNUM_7 - description: 7 conversions are discontinued and the conversions are carried out on 7 channels - value: 6 - - name: DISCNUM_8 - description: 8 conversions are discontinued and the conversions are carried out on 8 channels - value: 7 -enum/JEXTSEL: - bit_size: 3 - variants: - - name: TIM19_CC1 - description: Timer 19 CC1 event - value: 0 - - name: TIM19_CC2 - description: Timer 19 CC2 event - value: 1 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM2_CC1 - description: Timer 2 CC1 event - value: 3 - - name: TIM3_CC4 - description: Timer 3 CC4 event - value: 4 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 5 - - name: EXTI_LINE15 - description: External interrupt line 15 - value: 6 - - name: JSWSTART - description: JSWSTART bit - value: 7 + - name: DISCNUM_1 + description: 1 conversions are discontinued and the conversion is carried out on one channel + value: 0 + - name: DISCNUM_2 + description: 2 conversion is discontinued and the conversions are carried out on 2 channels + value: 1 + - name: DISCNUM_3 + description: 3 conversions are discontinued and the conversions are carried out on 3 channels + value: 2 + - name: DISCNUM_4 + description: 4 conversions are discontinued and the conversions are carried out on 4 channels + value: 3 + - name: DISCNUM_5 + description: 5 conversions are discontinued and the conversions are carried out on 5 channels + value: 4 + - name: DISCNUM_6 + description: 6 conversions are discontinued and the conversions are carried out on 6 channels + value: 5 + - name: DISCNUM_7 + description: 7 conversions are discontinued and the conversions are carried out on 7 channels + value: 6 + - name: DISCNUM_8 + description: 8 conversions are discontinued and the conversions are carried out on 8 channels + value: 7 enum/EXTSEL: bit_size: 3 variants: - - name: TIM19_TRGO - description: Timer 19 TRGO event - value: 0 - - name: TIM19_CC3 - description: Timer 19 CC3 event - value: 1 - - name: TIM19_CC4 - description: Timer 19 CC4 event - value: 2 - - name: TIM2_CC2 - description: Timer 2 CC2 event - value: 3 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 4 - - name: TIM4_CC4 - description: Timer 4 CC4 event - value: 5 - - name: EXTI_LINE11 - description: External interrupt line 11 - value: 6 - - name: SWSTART - description: SWSTART bit - value: 7 + - name: TIM19_TRGO + description: Timer 19 TRGO event + value: 0 + - name: TIM19_CC3 + description: Timer 19 CC3 event + value: 1 + - name: TIM19_CC4 + description: Timer 19 CC4 event + value: 2 + - name: TIM2_CC2 + description: Timer 2 CC2 event + value: 3 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 4 + - name: TIM4_CC4 + description: Timer 4 CC4 event + value: 5 + - name: EXTI_LINE11 + description: External interrupt line 11 + value: 6 + - name: SWSTART + description: SWSTART bit + value: 7 +enum/JEXTSEL: + bit_size: 3 + variants: + - name: TIM19_CC1 + description: Timer 19 CC1 event + value: 0 + - name: TIM19_CC2 + description: Timer 19 CC2 event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM2_CC1 + description: Timer 2 CC1 event + value: 3 + - name: TIM3_CC4 + description: Timer 3 CC4 event + value: 4 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 5 + - name: EXTI_LINE15 + description: External interrupt line 15 + value: 6 + - name: JSWSTART + description: JSWSTART bit + value: 7 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles1_5 - description: 1.5 ADC clock cycles - value: 0 - - name: Cycles7_5 - description: 7.5 ADC clock cycles - value: 1 - - name: Cycles13_5 - description: 13.5 ADC clock cycles - value: 2 - - name: Cycles28_5 - description: 28.5 ADC clock cycles - value: 3 - - name: Cycles41_5 - description: 41.5 ADC clock cycles - value: 4 - - name: Cycles55_5 - description: 55.5 ADC clock cycles - value: 5 - - name: Cycles71_5 - description: 71.5 ADC clock cycles - value: 6 - - name: Cycles239_5 - description: 239.5 ADC clock cycles - value: 7 - - + - name: Cycles1_5 + description: 1.5 ADC clock cycles + value: 0 + - name: Cycles7_5 + description: 7.5 ADC clock cycles + value: 1 + - name: Cycles13_5 + description: 13.5 ADC clock cycles + value: 2 + - name: Cycles28_5 + description: 28.5 ADC clock cycles + value: 3 + - name: Cycles41_5 + description: 41.5 ADC clock cycles + value: 4 + - name: Cycles55_5 + description: 55.5 ADC clock cycles + value: 5 + - name: Cycles71_5 + description: 71.5 ADC clock cycles + value: 6 + - name: Cycles239_5 + description: 239.5 ADC clock cycles + value: 7 diff --git a/data/registers/adc_g0.yaml b/data/registers/adc_g0.yaml index dab4a46..432e088 100644 --- a/data/registers/adc_g0.yaml +++ b/data/registers/adc_g0.yaml @@ -1,659 +1,658 @@ ---- block/ADC: description: Analog to Digital Converter items: - - name: ISR - description: ADC interrupt and status register - byte_offset: 0 - fieldset: ISR - - name: IER - description: ADC interrupt enable register - byte_offset: 4 - fieldset: IER - - name: CR - description: ADC control register - byte_offset: 8 - fieldset: CR - - name: CFGR1 - description: ADC configuration register 1 - byte_offset: 12 - fieldset: CFGR1 - - name: CFGR2 - description: ADC configuration register 2 - byte_offset: 16 - fieldset: CFGR2 - - name: SMPR - description: ADC sampling time register - byte_offset: 20 - fieldset: SMPR - - name: AWD1TR - description: watchdog threshold register - byte_offset: 32 - fieldset: AWD1TR - - name: AWD2TR - description: watchdog threshold register - byte_offset: 36 - fieldset: AWD2TR - - name: CHSELR - description: channel selection register - byte_offset: 40 - fieldset: CHSELR - - name: CHSELR_1 - description: channel selection register CHSELRMOD = 1 in ADC_CFGR1 - byte_offset: 40 - fieldset: CHSELR_1 - - name: AWD3TR - description: watchdog threshold register - byte_offset: 44 - fieldset: AWD3TR - - name: DR - description: ADC group regular conversion data register - byte_offset: 64 - access: Read - fieldset: DR - - name: AWD2CR - description: ADC analog watchdog 2 configuration register - byte_offset: 160 - fieldset: AWD2CR - - name: AWD3CR - description: ADC analog watchdog 3 configuration register - byte_offset: 164 - fieldset: AWD3CR - - name: CALFACT - description: ADC calibration factors register - byte_offset: 180 - fieldset: CALFACT - - name: CCR - description: ADC common control register - byte_offset: 776 - fieldset: CCR - - name: HWCFGR6 - description: Hardware Configuration Register - byte_offset: 984 - fieldset: HWCFGR6 - - name: HWCFGR5 - description: Hardware Configuration Register - byte_offset: 988 - fieldset: HWCFGR5 - - name: HWCFGR4 - description: Hardware Configuration Register - byte_offset: 992 - fieldset: HWCFGR4 - - name: HWCFGR3 - description: Hardware Configuration Register - byte_offset: 996 - fieldset: HWCFGR3 - - name: HWCFGR2 - description: Hardware Configuration Register - byte_offset: 1000 - fieldset: HWCFGR2 - - name: HWCFGR1 - description: Hardware Configuration Register - byte_offset: 1004 - fieldset: HWCFGR1 - - name: HWCFGR0 - description: Hardware Configuration Register - byte_offset: 1008 - access: Read - fieldset: HWCFGR0 - - name: VERR - description: EXTI IP Version register - byte_offset: 1012 - access: Read - fieldset: VERR - - name: IPIDR - description: EXTI Identification register - byte_offset: 1016 - access: Read - fieldset: IPIDR - - name: SIDR - description: EXTI Size ID register - byte_offset: 1020 - access: Read - fieldset: SIDR + - name: ISR + description: ADC interrupt and status register + byte_offset: 0 + fieldset: ISR + - name: IER + description: ADC interrupt enable register + byte_offset: 4 + fieldset: IER + - name: CR + description: ADC control register + byte_offset: 8 + fieldset: CR + - name: CFGR1 + description: ADC configuration register 1 + byte_offset: 12 + fieldset: CFGR1 + - name: CFGR2 + description: ADC configuration register 2 + byte_offset: 16 + fieldset: CFGR2 + - name: SMPR + description: ADC sampling time register + byte_offset: 20 + fieldset: SMPR + - name: AWD1TR + description: watchdog threshold register + byte_offset: 32 + fieldset: AWD1TR + - name: AWD2TR + description: watchdog threshold register + byte_offset: 36 + fieldset: AWD2TR + - name: CHSELR + description: channel selection register + byte_offset: 40 + fieldset: CHSELR + - name: CHSELR_1 + description: channel selection register CHSELRMOD = 1 in ADC_CFGR1 + byte_offset: 40 + fieldset: CHSELR_1 + - name: AWD3TR + description: watchdog threshold register + byte_offset: 44 + fieldset: AWD3TR + - name: DR + description: ADC group regular conversion data register + byte_offset: 64 + access: Read + fieldset: DR + - name: AWD2CR + description: ADC analog watchdog 2 configuration register + byte_offset: 160 + fieldset: AWD2CR + - name: AWD3CR + description: ADC analog watchdog 3 configuration register + byte_offset: 164 + fieldset: AWD3CR + - name: CALFACT + description: ADC calibration factors register + byte_offset: 180 + fieldset: CALFACT + - name: CCR + description: ADC common control register + byte_offset: 776 + fieldset: CCR + - name: HWCFGR6 + description: Hardware Configuration Register + byte_offset: 984 + fieldset: HWCFGR6 + - name: HWCFGR5 + description: Hardware Configuration Register + byte_offset: 988 + fieldset: HWCFGR5 + - name: HWCFGR4 + description: Hardware Configuration Register + byte_offset: 992 + fieldset: HWCFGR4 + - name: HWCFGR3 + description: Hardware Configuration Register + byte_offset: 996 + fieldset: HWCFGR3 + - name: HWCFGR2 + description: Hardware Configuration Register + byte_offset: 1000 + fieldset: HWCFGR2 + - name: HWCFGR1 + description: Hardware Configuration Register + byte_offset: 1004 + fieldset: HWCFGR1 + - name: HWCFGR0 + description: Hardware Configuration Register + byte_offset: 1008 + access: Read + fieldset: HWCFGR0 + - name: VERR + description: EXTI IP Version register + byte_offset: 1012 + access: Read + fieldset: VERR + - name: IPIDR + description: EXTI Identification register + byte_offset: 1016 + access: Read + fieldset: IPIDR + - name: SIDR + description: EXTI Size ID register + byte_offset: 1020 + access: Read + fieldset: SIDR fieldset/AWD1TR: description: watchdog threshold register fields: - - name: LT1 - description: ADC analog watchdog 1 threshold low - bit_offset: 0 - bit_size: 12 - - name: HT1 - description: ADC analog watchdog 1 threshold high - bit_offset: 16 - bit_size: 12 + - name: LT1 + description: ADC analog watchdog 1 threshold low + bit_offset: 0 + bit_size: 12 + - name: HT1 + description: ADC analog watchdog 1 threshold high + bit_offset: 16 + bit_size: 12 fieldset/AWD2CR: description: ADC analog watchdog 2 configuration register fields: - - name: AWD2CH - description: ADC analog watchdog 2 monitored channel selection - bit_offset: 0 - bit_size: 19 + - name: AWD2CH + description: ADC analog watchdog 2 monitored channel selection + bit_offset: 0 + bit_size: 19 fieldset/AWD2TR: description: watchdog threshold register fields: - - name: LT2 - description: ADC analog watchdog 2 threshold low - bit_offset: 0 - bit_size: 12 - - name: HT2 - description: ADC analog watchdog 2 threshold high - bit_offset: 16 - bit_size: 12 + - name: LT2 + description: ADC analog watchdog 2 threshold low + bit_offset: 0 + bit_size: 12 + - name: HT2 + description: ADC analog watchdog 2 threshold high + bit_offset: 16 + bit_size: 12 fieldset/AWD3CR: description: ADC analog watchdog 3 configuration register fields: - - name: AWD3CH - description: ADC analog watchdog 3 monitored channel selection - bit_offset: 0 - bit_size: 19 + - name: AWD3CH + description: ADC analog watchdog 3 monitored channel selection + bit_offset: 0 + bit_size: 19 fieldset/AWD3TR: description: watchdog threshold register fields: - - name: LT3 - description: ADC analog watchdog 3 threshold high - bit_offset: 0 - bit_size: 12 - - name: HT3 - description: ADC analog watchdog 3 threshold high - bit_offset: 16 - bit_size: 12 + - name: LT3 + description: ADC analog watchdog 3 threshold high + bit_offset: 0 + bit_size: 12 + - name: HT3 + description: ADC analog watchdog 3 threshold high + bit_offset: 16 + bit_size: 12 fieldset/CALFACT: description: ADC calibration factors register fields: - - name: CALFACT - description: ADC calibration factor in single-ended mode - bit_offset: 0 - bit_size: 7 + - name: CALFACT + description: ADC calibration factor in single-ended mode + bit_offset: 0 + bit_size: 7 fieldset/CCR: description: ADC common control register fields: - - name: PRESC - description: ADC prescaler - bit_offset: 18 - bit_size: 4 - - name: VREFEN - description: VREFINT enable - bit_offset: 22 - bit_size: 1 - - name: TSEN - description: Temperature sensor enable - bit_offset: 23 - bit_size: 1 - - name: VBATEN - description: VBAT enable - bit_offset: 24 - bit_size: 1 + - name: PRESC + description: ADC prescaler + bit_offset: 18 + bit_size: 4 + - name: VREFEN + description: VREFINT enable + bit_offset: 22 + bit_size: 1 + - name: TSEN + description: Temperature sensor enable + bit_offset: 23 + bit_size: 1 + - name: VBATEN + description: VBAT enable + bit_offset: 24 + bit_size: 1 fieldset/CFGR1: description: ADC configuration register 1 fields: - - name: DMAEN - description: ADC DMA transfer enable - bit_offset: 0 - bit_size: 1 - - name: DMACFG - description: ADC DMA transfer configuration - bit_offset: 1 - bit_size: 1 - - name: SCANDIR - description: Scan sequence direction - bit_offset: 2 - bit_size: 1 - - name: RES - description: ADC data resolution - bit_offset: 3 - bit_size: 2 - enum: RES - - name: ALIGN - description: ADC data alignement - bit_offset: 5 - bit_size: 1 - - name: EXTSEL - description: ADC group regular external trigger source - bit_offset: 6 - bit_size: 3 - - name: EXTEN - description: ADC group regular external trigger polarity - bit_offset: 10 - bit_size: 2 - - name: OVRMOD - description: ADC group regular overrun configuration - bit_offset: 12 - bit_size: 1 - - name: CONT - description: ADC group regular continuous conversion mode - bit_offset: 13 - bit_size: 1 - - name: WAIT - description: Wait conversion mode - bit_offset: 14 - bit_size: 1 - - name: AUTOFF - description: Auto-off mode - bit_offset: 15 - bit_size: 1 - - name: DISCEN - description: ADC group regular sequencer discontinuous mode - bit_offset: 16 - bit_size: 1 - - name: CHSELRMOD - description: Mode selection of the ADC_CHSELR register - bit_offset: 21 - bit_size: 1 - - name: AWD1SGL - description: ADC analog watchdog 1 monitoring a single channel or all channels - bit_offset: 22 - bit_size: 1 - - name: AWD1EN - description: ADC analog watchdog 1 enable on scope ADC group regular - bit_offset: 23 - bit_size: 1 - - name: AWDCH1CH - description: ADC analog watchdog 1 monitored channel selection - bit_offset: 26 - bit_size: 5 + - name: DMAEN + description: ADC DMA transfer enable + bit_offset: 0 + bit_size: 1 + - name: DMACFG + description: ADC DMA transfer configuration + bit_offset: 1 + bit_size: 1 + - name: SCANDIR + description: Scan sequence direction + bit_offset: 2 + bit_size: 1 + - name: RES + description: ADC data resolution + bit_offset: 3 + bit_size: 2 + enum: RES + - name: ALIGN + description: ADC data alignement + bit_offset: 5 + bit_size: 1 + - name: EXTSEL + description: ADC group regular external trigger source + bit_offset: 6 + bit_size: 3 + - name: EXTEN + description: ADC group regular external trigger polarity + bit_offset: 10 + bit_size: 2 + - name: OVRMOD + description: ADC group regular overrun configuration + bit_offset: 12 + bit_size: 1 + - name: CONT + description: ADC group regular continuous conversion mode + bit_offset: 13 + bit_size: 1 + - name: WAIT + description: Wait conversion mode + bit_offset: 14 + bit_size: 1 + - name: AUTOFF + description: Auto-off mode + bit_offset: 15 + bit_size: 1 + - name: DISCEN + description: ADC group regular sequencer discontinuous mode + bit_offset: 16 + bit_size: 1 + - name: CHSELRMOD + description: Mode selection of the ADC_CHSELR register + bit_offset: 21 + bit_size: 1 + - name: AWD1SGL + description: ADC analog watchdog 1 monitoring a single channel or all channels + bit_offset: 22 + bit_size: 1 + - name: AWD1EN + description: ADC analog watchdog 1 enable on scope ADC group regular + bit_offset: 23 + bit_size: 1 + - name: AWDCH1CH + description: ADC analog watchdog 1 monitored channel selection + bit_offset: 26 + bit_size: 5 fieldset/CFGR2: description: ADC configuration register 2 fields: - - name: OVSE - description: ADC oversampler enable on scope ADC group regular - bit_offset: 0 - bit_size: 1 - - name: OVSR - description: ADC oversampling ratio - bit_offset: 2 - bit_size: 3 - - name: OVSS - description: ADC oversampling shift - bit_offset: 5 - bit_size: 4 - - name: TOVS - description: ADC oversampling discontinuous mode (triggered mode) for ADC group regular - bit_offset: 9 - bit_size: 1 - - name: LFTRIG - description: Low frequency trigger mode enable - bit_offset: 29 - bit_size: 1 - - name: CKMODE - description: ADC clock mode - bit_offset: 30 - bit_size: 2 + - name: OVSE + description: ADC oversampler enable on scope ADC group regular + bit_offset: 0 + bit_size: 1 + - name: OVSR + description: ADC oversampling ratio + bit_offset: 2 + bit_size: 3 + - name: OVSS + description: ADC oversampling shift + bit_offset: 5 + bit_size: 4 + - name: TOVS + description: ADC oversampling discontinuous mode (triggered mode) for ADC group regular + bit_offset: 9 + bit_size: 1 + - name: LFTRIG + description: Low frequency trigger mode enable + bit_offset: 29 + bit_size: 1 + - name: CKMODE + description: ADC clock mode + bit_offset: 30 + bit_size: 2 fieldset/CHSELR: description: channel selection register fields: - - name: CHSEL - description: Channel-x selection - bit_offset: 0 - bit_size: 19 + - name: CHSEL + description: Channel-x selection + bit_offset: 0 + bit_size: 19 fieldset/CHSELR_1: description: channel selection register CHSELRMOD = 1 in ADC_CFGR1 fields: - - name: SQ1 - description: conversion of the sequence - bit_offset: 0 - bit_size: 4 - - name: SQ2 - description: conversion of the sequence - bit_offset: 4 - bit_size: 4 - - name: SQ3 - description: conversion of the sequence - bit_offset: 8 - bit_size: 4 - - name: SQ4 - description: conversion of the sequence - bit_offset: 12 - bit_size: 4 - - name: SQ5 - description: conversion of the sequence - bit_offset: 16 - bit_size: 4 - - name: SQ6 - description: conversion of the sequence - bit_offset: 20 - bit_size: 4 - - name: SQ7 - description: conversion of the sequence - bit_offset: 24 - bit_size: 4 - - name: SQ8 - description: conversion of the sequence - bit_offset: 28 - bit_size: 4 + - name: SQ1 + description: conversion of the sequence + bit_offset: 0 + bit_size: 4 + - name: SQ2 + description: conversion of the sequence + bit_offset: 4 + bit_size: 4 + - name: SQ3 + description: conversion of the sequence + bit_offset: 8 + bit_size: 4 + - name: SQ4 + description: conversion of the sequence + bit_offset: 12 + bit_size: 4 + - name: SQ5 + description: conversion of the sequence + bit_offset: 16 + bit_size: 4 + - name: SQ6 + description: conversion of the sequence + bit_offset: 20 + bit_size: 4 + - name: SQ7 + description: conversion of the sequence + bit_offset: 24 + bit_size: 4 + - name: SQ8 + description: conversion of the sequence + bit_offset: 28 + bit_size: 4 fieldset/CR: description: ADC control register fields: - - name: ADEN - description: ADC enable - bit_offset: 0 - bit_size: 1 - - name: ADDIS - description: ADC disable - bit_offset: 1 - bit_size: 1 - - name: ADSTART - description: ADC group regular conversion start - bit_offset: 2 - bit_size: 1 - - name: ADSTP - description: ADC group regular conversion stop - bit_offset: 4 - bit_size: 1 - - name: ADVREGEN - description: ADC voltage regulator enable - bit_offset: 28 - bit_size: 1 - - name: ADCAL - description: ADC calibration - bit_offset: 31 - bit_size: 1 + - name: ADEN + description: ADC enable + bit_offset: 0 + bit_size: 1 + - name: ADDIS + description: ADC disable + bit_offset: 1 + bit_size: 1 + - name: ADSTART + description: ADC group regular conversion start + bit_offset: 2 + bit_size: 1 + - name: ADSTP + description: ADC group regular conversion stop + bit_offset: 4 + bit_size: 1 + - name: ADVREGEN + description: ADC voltage regulator enable + bit_offset: 28 + bit_size: 1 + - name: ADCAL + description: ADC calibration + bit_offset: 31 + bit_size: 1 fieldset/DR: description: ADC group regular conversion data register fields: - - name: regularDATA - description: ADC group regular conversion data - bit_offset: 0 - bit_size: 16 + - name: regularDATA + description: ADC group regular conversion data + bit_offset: 0 + bit_size: 16 fieldset/HWCFGR0: description: Hardware Configuration Register fields: - - name: NUM_CHAN_24 - description: NUM_CHAN_24 - bit_offset: 0 - bit_size: 4 - - name: EXTRA_AWDS - description: Extra analog watchdog - bit_offset: 4 - bit_size: 4 - - name: OVS - description: Oversampling - bit_offset: 8 - bit_size: 4 + - name: NUM_CHAN_24 + description: NUM_CHAN_24 + bit_offset: 0 + bit_size: 4 + - name: EXTRA_AWDS + description: Extra analog watchdog + bit_offset: 4 + bit_size: 4 + - name: OVS + description: Oversampling + bit_offset: 8 + bit_size: 4 fieldset/HWCFGR1: description: Hardware Configuration Register fields: - - name: CHMAP3 - description: Input channel mapping - bit_offset: 0 - bit_size: 5 - - name: CHMAP2 - description: Input channel mapping - bit_offset: 8 - bit_size: 5 - - name: CHMAP1 - description: Input channel mapping - bit_offset: 16 - bit_size: 5 - - name: CHMAP0 - description: Input channel mapping - bit_offset: 24 - bit_size: 5 + - name: CHMAP3 + description: Input channel mapping + bit_offset: 0 + bit_size: 5 + - name: CHMAP2 + description: Input channel mapping + bit_offset: 8 + bit_size: 5 + - name: CHMAP1 + description: Input channel mapping + bit_offset: 16 + bit_size: 5 + - name: CHMAP0 + description: Input channel mapping + bit_offset: 24 + bit_size: 5 fieldset/HWCFGR2: description: Hardware Configuration Register fields: - - name: CHMAP7 - description: Input channel mapping - bit_offset: 0 - bit_size: 5 - - name: CHMAP6 - description: Input channel mapping - bit_offset: 8 - bit_size: 5 - - name: CHMAP5 - description: Input channel mapping - bit_offset: 16 - bit_size: 5 - - name: CHMAP4 - description: Input channel mapping - bit_offset: 24 - bit_size: 5 + - name: CHMAP7 + description: Input channel mapping + bit_offset: 0 + bit_size: 5 + - name: CHMAP6 + description: Input channel mapping + bit_offset: 8 + bit_size: 5 + - name: CHMAP5 + description: Input channel mapping + bit_offset: 16 + bit_size: 5 + - name: CHMAP4 + description: Input channel mapping + bit_offset: 24 + bit_size: 5 fieldset/HWCFGR3: description: Hardware Configuration Register fields: - - name: CHMAP11 - description: Input channel mapping - bit_offset: 0 - bit_size: 5 - - name: CHMAP10 - description: Input channel mapping - bit_offset: 8 - bit_size: 5 - - name: CHMAP9 - description: Input channel mapping - bit_offset: 16 - bit_size: 5 - - name: CHMAP8 - description: Input channel mapping - bit_offset: 24 - bit_size: 5 + - name: CHMAP11 + description: Input channel mapping + bit_offset: 0 + bit_size: 5 + - name: CHMAP10 + description: Input channel mapping + bit_offset: 8 + bit_size: 5 + - name: CHMAP9 + description: Input channel mapping + bit_offset: 16 + bit_size: 5 + - name: CHMAP8 + description: Input channel mapping + bit_offset: 24 + bit_size: 5 fieldset/HWCFGR4: description: Hardware Configuration Register fields: - - name: CHMAP15 - description: Input channel mapping - bit_offset: 0 - bit_size: 5 - - name: CHMAP14 - description: Input channel mapping - bit_offset: 8 - bit_size: 5 - - name: CHMAP13 - description: Input channel mapping - bit_offset: 16 - bit_size: 5 - - name: CHMAP12 - description: Input channel mapping - bit_offset: 24 - bit_size: 5 + - name: CHMAP15 + description: Input channel mapping + bit_offset: 0 + bit_size: 5 + - name: CHMAP14 + description: Input channel mapping + bit_offset: 8 + bit_size: 5 + - name: CHMAP13 + description: Input channel mapping + bit_offset: 16 + bit_size: 5 + - name: CHMAP12 + description: Input channel mapping + bit_offset: 24 + bit_size: 5 fieldset/HWCFGR5: description: Hardware Configuration Register fields: - - name: CHMAP19 - description: Input channel mapping - bit_offset: 0 - bit_size: 5 - - name: CHMAP18 - description: Input channel mapping - bit_offset: 8 - bit_size: 5 - - name: CHMAP17 - description: Input channel mapping - bit_offset: 16 - bit_size: 5 - - name: CHMAP16 - description: Input channel mapping - bit_offset: 24 - bit_size: 5 + - name: CHMAP19 + description: Input channel mapping + bit_offset: 0 + bit_size: 5 + - name: CHMAP18 + description: Input channel mapping + bit_offset: 8 + bit_size: 5 + - name: CHMAP17 + description: Input channel mapping + bit_offset: 16 + bit_size: 5 + - name: CHMAP16 + description: Input channel mapping + bit_offset: 24 + bit_size: 5 fieldset/HWCFGR6: description: Hardware Configuration Register fields: - - name: CHMAP20 - description: Input channel mapping - bit_offset: 0 - bit_size: 5 - - name: CHMAP21 - description: Input channel mapping - bit_offset: 8 - bit_size: 5 - - name: CHMAP22 - description: Input channel mapping - bit_offset: 16 - bit_size: 5 - - name: CHMAP23 - description: Input channel mapping - bit_offset: 24 - bit_size: 5 + - name: CHMAP20 + description: Input channel mapping + bit_offset: 0 + bit_size: 5 + - name: CHMAP21 + description: Input channel mapping + bit_offset: 8 + bit_size: 5 + - name: CHMAP22 + description: Input channel mapping + bit_offset: 16 + bit_size: 5 + - name: CHMAP23 + description: Input channel mapping + bit_offset: 24 + bit_size: 5 fieldset/IER: description: ADC interrupt enable register fields: - - name: ADRDYIE - description: ADC ready interrupt - bit_offset: 0 - bit_size: 1 - - name: EOSMPIE - description: ADC group regular end of sampling interrupt - bit_offset: 1 - bit_size: 1 - - name: EOCIE - description: ADC group regular end of unitary conversion interrupt - bit_offset: 2 - bit_size: 1 - - name: EOSIE - description: ADC group regular end of sequence conversions interrupt - bit_offset: 3 - bit_size: 1 - - name: OVRIE - description: ADC group regular overrun interrupt - bit_offset: 4 - bit_size: 1 - - name: AWD1IE - description: ADC analog watchdog 1 interrupt - bit_offset: 7 - bit_size: 1 - - name: AWD2IE - description: ADC analog watchdog 2 interrupt - bit_offset: 8 - bit_size: 1 - - name: AWD3IE - description: ADC analog watchdog 3 interrupt - bit_offset: 9 - bit_size: 1 - - name: EOCALIE - description: End of calibration interrupt enable - bit_offset: 11 - bit_size: 1 - - name: CCRDYIE - description: Channel Configuration Ready Interrupt enable - bit_offset: 13 - bit_size: 1 + - name: ADRDYIE + description: ADC ready interrupt + bit_offset: 0 + bit_size: 1 + - name: EOSMPIE + description: ADC group regular end of sampling interrupt + bit_offset: 1 + bit_size: 1 + - name: EOCIE + description: ADC group regular end of unitary conversion interrupt + bit_offset: 2 + bit_size: 1 + - name: EOSIE + description: ADC group regular end of sequence conversions interrupt + bit_offset: 3 + bit_size: 1 + - name: OVRIE + description: ADC group regular overrun interrupt + bit_offset: 4 + bit_size: 1 + - name: AWD1IE + description: ADC analog watchdog 1 interrupt + bit_offset: 7 + bit_size: 1 + - name: AWD2IE + description: ADC analog watchdog 2 interrupt + bit_offset: 8 + bit_size: 1 + - name: AWD3IE + description: ADC analog watchdog 3 interrupt + bit_offset: 9 + bit_size: 1 + - name: EOCALIE + description: End of calibration interrupt enable + bit_offset: 11 + bit_size: 1 + - name: CCRDYIE + description: Channel Configuration Ready Interrupt enable + bit_offset: 13 + bit_size: 1 fieldset/IPIDR: description: EXTI Identification register fields: - - name: IPID - description: IP Identification - bit_offset: 0 - bit_size: 32 + - name: IPID + description: IP Identification + bit_offset: 0 + bit_size: 32 fieldset/ISR: description: ADC interrupt and status register fields: - - name: ADRDY - description: ADC ready flag - bit_offset: 0 - bit_size: 1 - - name: EOSMP - description: ADC group regular end of sampling flag - bit_offset: 1 - bit_size: 1 - - name: EOC - description: ADC group regular end of unitary conversion flag - bit_offset: 2 - bit_size: 1 - - name: EOS - description: ADC group regular end of sequence conversions flag - bit_offset: 3 - bit_size: 1 - - name: OVR - description: ADC group regular overrun flag - bit_offset: 4 - bit_size: 1 - - name: AWD1 - description: ADC analog watchdog 1 flag - bit_offset: 7 - bit_size: 1 - - name: AWD2 - description: ADC analog watchdog 2 flag - bit_offset: 8 - bit_size: 1 - - name: AWD3 - description: ADC analog watchdog 3 flag - bit_offset: 9 - bit_size: 1 - - name: EOCAL - description: End Of Calibration flag - bit_offset: 11 - bit_size: 1 - - name: CCRDY - description: Channel Configuration Ready flag - bit_offset: 13 - bit_size: 1 + - name: ADRDY + description: ADC ready flag + bit_offset: 0 + bit_size: 1 + - name: EOSMP + description: ADC group regular end of sampling flag + bit_offset: 1 + bit_size: 1 + - name: EOC + description: ADC group regular end of unitary conversion flag + bit_offset: 2 + bit_size: 1 + - name: EOS + description: ADC group regular end of sequence conversions flag + bit_offset: 3 + bit_size: 1 + - name: OVR + description: ADC group regular overrun flag + bit_offset: 4 + bit_size: 1 + - name: AWD1 + description: ADC analog watchdog 1 flag + bit_offset: 7 + bit_size: 1 + - name: AWD2 + description: ADC analog watchdog 2 flag + bit_offset: 8 + bit_size: 1 + - name: AWD3 + description: ADC analog watchdog 3 flag + bit_offset: 9 + bit_size: 1 + - name: EOCAL + description: End Of Calibration flag + bit_offset: 11 + bit_size: 1 + - name: CCRDY + description: Channel Configuration Ready flag + bit_offset: 13 + bit_size: 1 fieldset/SIDR: description: EXTI Size ID register fields: - - name: SID - description: Size Identification - bit_offset: 0 - bit_size: 32 + - name: SID + description: Size Identification + bit_offset: 0 + bit_size: 32 fieldset/SMPR: description: ADC sampling time register fields: - - name: SMP1 - description: Sampling time selection - bit_offset: 0 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMP2 - description: Sampling time selection - bit_offset: 4 - bit_size: 3 - enum: SAMPLE_TIME - - name: SMPSEL - description: Channel sampling time selection - bit_offset: 8 - bit_size: 1 - array: - len: 19 - stride: 0 + - name: SMP1 + description: Sampling time selection + bit_offset: 0 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMP2 + description: Sampling time selection + bit_offset: 4 + bit_size: 3 + enum: SAMPLE_TIME + - name: SMPSEL + description: Channel sampling time selection + bit_offset: 8 + bit_size: 1 + array: + len: 19 + stride: 0 fieldset/VERR: description: EXTI IP Version register fields: - - name: MINREV - description: Minor Revision number - bit_offset: 0 - bit_size: 4 - - name: MAJREV - description: Major Revision number - bit_offset: 4 - bit_size: 4 + - name: MINREV + description: Minor Revision number + bit_offset: 0 + bit_size: 4 + - name: MAJREV + description: Major Revision number + bit_offset: 4 + bit_size: 4 enum/RES: bit_size: 2 variants: - - name: TwelveBit - description: 12-bit resolution - value: 0 - - name: TenBit - description: 10-bit resolution - value: 1 - - name: EightBit - description: 8-bit resolution - value: 2 - - name: SixBit - description: 6-bit resolution - value: 3 + - name: TwelveBit + description: 12-bit resolution + value: 0 + - name: TenBit + description: 10-bit resolution + value: 1 + - name: EightBit + description: 8-bit resolution + value: 2 + - name: SixBit + description: 6-bit resolution + value: 3 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles1_5 - description: 1.5 ADC cycles - value: 0 - - name: Cycles3_5 - description: 3.5 ADC cycles - value: 1 - - name: Cycles7_5 - description: 7.5 ADC cycles - value: 2 - - name: Cycles12_5 - description: 12.5 ADC cycles - value: 3 - - name: Cycles19_5 - description: 19.5 ADC cycles - value: 4 - - name: Cycles39_5 - description: 39.5 ADC cycles - value: 5 - - name: Cycles79_5 - description: 79.5 ADC cycles - value: 6 - - name: Cycles160_5 - description: 160.5 ADC cycles - value: 7 + - name: Cycles1_5 + description: 1.5 ADC cycles + value: 0 + - name: Cycles3_5 + description: 3.5 ADC cycles + value: 1 + - name: Cycles7_5 + description: 7.5 ADC cycles + value: 2 + - name: Cycles12_5 + description: 12.5 ADC cycles + value: 3 + - name: Cycles19_5 + description: 19.5 ADC cycles + value: 4 + - name: Cycles39_5 + description: 39.5 ADC cycles + value: 5 + - name: Cycles79_5 + description: 79.5 ADC cycles + value: 6 + - name: Cycles160_5 + description: 160.5 ADC cycles + value: 7 diff --git a/data/registers/adc_v1.yaml b/data/registers/adc_v1.yaml index f008f04..4765a1f 100644 --- a/data/registers/adc_v1.yaml +++ b/data/registers/adc_v1.yaml @@ -1,384 +1,383 @@ ---- block/ADC: description: Analog-to-digital converter items: - - name: ISR - description: interrupt and status register - byte_offset: 0 - fieldset: ISR - - name: IER - description: interrupt enable register - byte_offset: 4 - fieldset: IER - - name: CR - description: control register - byte_offset: 8 - fieldset: CR - - name: CFGR1 - description: configuration register 1 - byte_offset: 12 - fieldset: CFGR1 - - name: CFGR2 - description: configuration register 2 - byte_offset: 16 - fieldset: CFGR2 - - name: SMPR - description: sampling time register - byte_offset: 20 - fieldset: SMPR - - name: TR - description: watchdog threshold register - byte_offset: 32 - fieldset: TR - - name: CHSELR - description: channel selection register - byte_offset: 40 - fieldset: CHSELR - - name: DR - description: data register - byte_offset: 64 - access: Read - fieldset: DR - - name: CCR - description: common configuration register - byte_offset: 776 - fieldset: CCR + - name: ISR + description: interrupt and status register + byte_offset: 0 + fieldset: ISR + - name: IER + description: interrupt enable register + byte_offset: 4 + fieldset: IER + - name: CR + description: control register + byte_offset: 8 + fieldset: CR + - name: CFGR1 + description: configuration register 1 + byte_offset: 12 + fieldset: CFGR1 + - name: CFGR2 + description: configuration register 2 + byte_offset: 16 + fieldset: CFGR2 + - name: SMPR + description: sampling time register + byte_offset: 20 + fieldset: SMPR + - name: TR + description: watchdog threshold register + byte_offset: 32 + fieldset: TR + - name: CHSELR + description: channel selection register + byte_offset: 40 + fieldset: CHSELR + - name: DR + description: data register + byte_offset: 64 + access: Read + fieldset: DR + - name: CCR + description: common configuration register + byte_offset: 776 + fieldset: CCR fieldset/CCR: description: common configuration register fields: - - name: VREFEN - description: Temperature sensor and VREFINT enable - bit_offset: 22 - bit_size: 1 - - name: TSEN - description: Temperature sensor enable - bit_offset: 23 - bit_size: 1 - - name: VBATEN - description: VBAT enable - bit_offset: 24 - bit_size: 1 + - name: VREFEN + description: Temperature sensor and VREFINT enable + bit_offset: 22 + bit_size: 1 + - name: TSEN + description: Temperature sensor enable + bit_offset: 23 + bit_size: 1 + - name: VBATEN + description: VBAT enable + bit_offset: 24 + bit_size: 1 fieldset/CFGR1: description: configuration register 1 fields: - - name: DMAEN - description: Direct memory access enable - bit_offset: 0 - bit_size: 1 - - name: DMACFG - description: Direct memery access configuration - bit_offset: 1 - bit_size: 1 - enum: DMACFG - - name: SCANDIR - description: Scan sequence direction - bit_offset: 2 - bit_size: 1 - enum: SCANDIR - - name: RES - description: Data resolution - bit_offset: 3 - bit_size: 2 - enum: RES - - name: ALIGN - description: Data alignment - bit_offset: 5 - bit_size: 1 - enum: ALIGN - - name: EXTSEL - description: External trigger selection - bit_offset: 6 - bit_size: 3 - enum: EXTSEL - - name: EXTEN - description: External trigger enable and polarity selection - bit_offset: 10 - bit_size: 2 - enum: EXTEN - - name: OVRMOD - description: Overrun management mode - bit_offset: 12 - bit_size: 1 - enum: OVRMOD - - name: CONT - description: Single / continuous conversion mode - bit_offset: 13 - bit_size: 1 - - name: WAIT - description: Wait conversion mode - bit_offset: 14 - bit_size: 1 - - name: AUTOFF - description: Auto-off mode - bit_offset: 15 - bit_size: 1 - - name: DISCEN - description: Discontinuous mode - bit_offset: 16 - bit_size: 1 - - name: AWDSGL - description: Enable the watchdog on a single channel or on all channels - bit_offset: 22 - bit_size: 1 - enum: AWDSGL - - name: AWDEN - description: Analog watchdog enable - bit_offset: 23 - bit_size: 1 - - name: AWDCH - description: Analog watchdog channel selection - bit_offset: 26 - bit_size: 5 + - name: DMAEN + description: Direct memory access enable + bit_offset: 0 + bit_size: 1 + - name: DMACFG + description: Direct memery access configuration + bit_offset: 1 + bit_size: 1 + enum: DMACFG + - name: SCANDIR + description: Scan sequence direction + bit_offset: 2 + bit_size: 1 + enum: SCANDIR + - name: RES + description: Data resolution + bit_offset: 3 + bit_size: 2 + enum: RES + - name: ALIGN + description: Data alignment + bit_offset: 5 + bit_size: 1 + enum: ALIGN + - name: EXTSEL + description: External trigger selection + bit_offset: 6 + bit_size: 3 + enum: EXTSEL + - name: EXTEN + description: External trigger enable and polarity selection + bit_offset: 10 + bit_size: 2 + enum: EXTEN + - name: OVRMOD + description: Overrun management mode + bit_offset: 12 + bit_size: 1 + enum: OVRMOD + - name: CONT + description: Single / continuous conversion mode + bit_offset: 13 + bit_size: 1 + - name: WAIT + description: Wait conversion mode + bit_offset: 14 + bit_size: 1 + - name: AUTOFF + description: Auto-off mode + bit_offset: 15 + bit_size: 1 + - name: DISCEN + description: Discontinuous mode + bit_offset: 16 + bit_size: 1 + - name: AWDSGL + description: Enable the watchdog on a single channel or on all channels + bit_offset: 22 + bit_size: 1 + enum: AWDSGL + - name: AWDEN + description: Analog watchdog enable + bit_offset: 23 + bit_size: 1 + - name: AWDCH + description: Analog watchdog channel selection + bit_offset: 26 + bit_size: 5 fieldset/CFGR2: description: configuration register 2 fields: - - name: CKMODE - description: ADC clock mode - bit_offset: 30 - bit_size: 2 - enum: CKMODE + - name: CKMODE + description: ADC clock mode + bit_offset: 30 + bit_size: 2 + enum: CKMODE fieldset/CHSELR: description: channel selection register fields: - - name: CHSEL x - description: Channel-x selection - bit_offset: 0 - bit_size: 1 - array: - len: 19 - stride: 1 + - name: CHSEL x + description: Channel-x selection + bit_offset: 0 + bit_size: 1 + array: + len: 19 + stride: 1 fieldset/CR: description: control register fields: - - name: ADEN - description: ADC enable command - bit_offset: 0 - bit_size: 1 - - name: ADDIS - description: ADC disable command - bit_offset: 1 - bit_size: 1 - - name: ADSTART - description: ADC start conversion command - bit_offset: 2 - bit_size: 1 - - name: ADSTP - description: ADC stop conversion command - bit_offset: 4 - bit_size: 1 - - name: ADCAL - description: ADC calibration - bit_offset: 31 - bit_size: 1 + - name: ADEN + description: ADC enable command + bit_offset: 0 + bit_size: 1 + - name: ADDIS + description: ADC disable command + bit_offset: 1 + bit_size: 1 + - name: ADSTART + description: ADC start conversion command + bit_offset: 2 + bit_size: 1 + - name: ADSTP + description: ADC stop conversion command + bit_offset: 4 + bit_size: 1 + - name: ADCAL + description: ADC calibration + bit_offset: 31 + bit_size: 1 fieldset/DR: description: data register fields: - - name: DATA - description: Converted data - bit_offset: 0 - bit_size: 16 + - name: DATA + description: Converted data + bit_offset: 0 + bit_size: 16 fieldset/IER: description: interrupt enable register fields: - - name: ADRDYIE - description: ADC ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: EOSMPIE - description: End of sampling flag interrupt enable - bit_offset: 1 - bit_size: 1 - - name: EOCIE - description: End of conversion interrupt enable - bit_offset: 2 - bit_size: 1 - - name: EOSEQIE - description: End of conversion sequence interrupt enable - bit_offset: 3 - bit_size: 1 - - name: OVRIE - description: Overrun interrupt enable - bit_offset: 4 - bit_size: 1 - - name: AWDIE - description: Analog watchdog interrupt enable - bit_offset: 7 - bit_size: 1 + - name: ADRDYIE + description: ADC ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: EOSMPIE + description: End of sampling flag interrupt enable + bit_offset: 1 + bit_size: 1 + - name: EOCIE + description: End of conversion interrupt enable + bit_offset: 2 + bit_size: 1 + - name: EOSEQIE + description: End of conversion sequence interrupt enable + bit_offset: 3 + bit_size: 1 + - name: OVRIE + description: Overrun interrupt enable + bit_offset: 4 + bit_size: 1 + - name: AWDIE + description: Analog watchdog interrupt enable + bit_offset: 7 + bit_size: 1 fieldset/ISR: description: interrupt and status register fields: - - name: ADRDY - description: ADC ready - bit_offset: 0 - bit_size: 1 - - name: EOSMP - description: End of sampling flag - bit_offset: 1 - bit_size: 1 - - name: EOC - description: End of conversion flag - bit_offset: 2 - bit_size: 1 - - name: EOSEQ - description: End of sequence flag - bit_offset: 3 - bit_size: 1 - - name: OVR - description: ADC overrun - bit_offset: 4 - bit_size: 1 - - name: AWD - description: Analog watchdog flag - bit_offset: 7 - bit_size: 1 + - name: ADRDY + description: ADC ready + bit_offset: 0 + bit_size: 1 + - name: EOSMP + description: End of sampling flag + bit_offset: 1 + bit_size: 1 + - name: EOC + description: End of conversion flag + bit_offset: 2 + bit_size: 1 + - name: EOSEQ + description: End of sequence flag + bit_offset: 3 + bit_size: 1 + - name: OVR + description: ADC overrun + bit_offset: 4 + bit_size: 1 + - name: AWD + description: Analog watchdog flag + bit_offset: 7 + bit_size: 1 fieldset/SMPR: description: sampling time register fields: - - name: SMP - description: Sampling time selection - bit_offset: 0 - bit_size: 3 - enum: SAMPLE_TIME + - name: SMP + description: Sampling time selection + bit_offset: 0 + bit_size: 3 + enum: SAMPLE_TIME fieldset/TR: description: watchdog threshold register fields: - - name: LT - description: Analog watchdog lower threshold - bit_offset: 0 - bit_size: 12 - - name: HT - description: Analog watchdog higher threshold - bit_offset: 16 - bit_size: 12 + - name: LT + description: Analog watchdog lower threshold + bit_offset: 0 + bit_size: 12 + - name: HT + description: Analog watchdog higher threshold + bit_offset: 16 + bit_size: 12 enum/ALIGN: bit_size: 1 variants: - - name: Right - description: Right alignment - value: 0 - - name: Left - description: Left alignment - value: 1 + - name: Right + description: Right alignment + value: 0 + - name: Left + description: Left alignment + value: 1 enum/AWDSGL: bit_size: 1 variants: - - name: AllChannels - description: Analog watchdog enabled on all channels - value: 0 - - name: SingleChannel - description: Analog watchdog enabled on a single channel - value: 1 + - name: AllChannels + description: Analog watchdog enabled on all channels + value: 0 + - name: SingleChannel + description: Analog watchdog enabled on a single channel + value: 1 enum/CKMODE: bit_size: 2 variants: - - name: ADCCLK - description: Asynchronous clock mode - value: 0 - - name: PCLK_Div2 - description: Synchronous clock mode (PCLK/2) - value: 1 - - name: PCLK_Div4 - description: Sychronous clock mode (PCLK/4) - value: 2 + - name: ADCCLK + description: Asynchronous clock mode + value: 0 + - name: PCLK_Div2 + description: Synchronous clock mode (PCLK/2) + value: 1 + - name: PCLK_Div4 + description: Sychronous clock mode (PCLK/4) + value: 2 enum/DMACFG: bit_size: 1 variants: - - name: OneShot - description: DMA one shot mode - value: 0 - - name: Circular - description: DMA circular mode - value: 1 + - name: OneShot + description: DMA one shot mode + value: 0 + - name: Circular + description: DMA circular mode + value: 1 enum/EXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/EXTSEL: bit_size: 3 variants: - - name: TIM1_TRGO - description: Timer 1 TRGO Event - value: 0 - - name: TIM1_CC4 - description: Timer 1 CC4 event - value: 1 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 3 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 4 + - name: TIM1_TRGO + description: Timer 1 TRGO Event + value: 0 + - name: TIM1_CC4 + description: Timer 1 CC4 event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 3 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 4 enum/OVRMOD: bit_size: 1 variants: - - name: Preserved - description: ADC_DR register is preserved with the old data when an overrun is detected - value: 0 - - name: Overwritten - description: ADC_DR register is overwritten with the last conversion result when an overrun is detected - value: 1 + - name: Preserved + description: ADC_DR register is preserved with the old data when an overrun is detected + value: 0 + - name: Overwritten + description: ADC_DR register is overwritten with the last conversion result when an overrun is detected + value: 1 enum/RES: bit_size: 2 variants: - - name: TwelveBit - description: 12-bit (14 ADCCLK cycles) - value: 0 - - name: TenBit - description: 10-bit (13 ADCCLK cycles) - value: 1 - - name: EightBit - description: 8-bit (11 ADCCLK cycles) - value: 2 - - name: SixBit - description: 6-bit (9 ADCCLK cycles) - value: 3 + - name: TwelveBit + description: 12-bit (14 ADCCLK cycles) + value: 0 + - name: TenBit + description: 10-bit (13 ADCCLK cycles) + value: 1 + - name: EightBit + description: 8-bit (11 ADCCLK cycles) + value: 2 + - name: SixBit + description: 6-bit (9 ADCCLK cycles) + value: 3 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles1_5 - description: 1.5 cycles - value: 0 - - name: Cycles7_5 - description: 7.5 cycles - value: 1 - - name: Cycles13_5 - description: 13.5 cycles - value: 2 - - name: Cycles28_5 - description: 28.5 cycles - value: 3 - - name: Cycles41_5 - description: 41.5 cycles - value: 4 - - name: Cycles55_5 - description: 55.5 cycles - value: 5 - - name: Cycles71_5 - description: 71.5 cycles - value: 6 - - name: Cycles239_5 - description: 239.5 cycles - value: 7 + - name: Cycles1_5 + description: 1.5 cycles + value: 0 + - name: Cycles7_5 + description: 7.5 cycles + value: 1 + - name: Cycles13_5 + description: 13.5 cycles + value: 2 + - name: Cycles28_5 + description: 28.5 cycles + value: 3 + - name: Cycles41_5 + description: 41.5 cycles + value: 4 + - name: Cycles55_5 + description: 55.5 cycles + value: 5 + - name: Cycles71_5 + description: 71.5 cycles + value: 6 + - name: Cycles239_5 + description: 239.5 cycles + value: 7 enum/SCANDIR: bit_size: 1 variants: - - name: Upward - description: Upward scan (from CHSEL0 to CHSEL18) - value: 0 - - name: Backward - description: Backward scan (from CHSEL18 to CHSEL0) - value: 1 + - name: Upward + description: Upward scan (from CHSEL0 to CHSEL18) + value: 0 + - name: Backward + description: Backward scan (from CHSEL18 to CHSEL0) + value: 1 diff --git a/data/registers/adc_v2.yaml b/data/registers/adc_v2.yaml index 1621443..15a579e 100644 --- a/data/registers/adc_v2.yaml +++ b/data/registers/adc_v2.yaml @@ -1,603 +1,602 @@ ---- block/ADC: description: Analog-to-digital converter items: - - name: SR - description: status register - byte_offset: 0 - fieldset: SR - - name: CR1 - description: control register 1 - byte_offset: 4 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 8 - fieldset: CR2 - - name: SMPR1 - description: sample time register 1 - byte_offset: 12 - fieldset: SMPR1 - - name: SMPR2 - description: sample time register 2 - byte_offset: 16 - fieldset: SMPR2 - - name: JOFR - description: injected channel data offset register x - array: - len: 4 - stride: 4 - byte_offset: 20 - fieldset: JOFR - - name: HTR - description: watchdog higher threshold register - byte_offset: 36 - fieldset: HTR - - name: LTR - description: watchdog lower threshold register - byte_offset: 40 - fieldset: LTR - - name: SQR1 - description: regular sequence register 1 - byte_offset: 44 - fieldset: SQR1 - - name: SQR2 - description: regular sequence register 2 - byte_offset: 48 - fieldset: SQR2 - - name: SQR3 - description: regular sequence register 3 - byte_offset: 52 - fieldset: SQR3 - - name: JSQR - description: injected sequence register - byte_offset: 56 - fieldset: JSQR - - name: JDR - description: injected data register x - array: - len: 4 - stride: 4 - byte_offset: 60 - access: Read - fieldset: JDR - - name: DR - description: regular data register - byte_offset: 76 - access: Read - fieldset: DR + - name: SR + description: status register + byte_offset: 0 + fieldset: SR + - name: CR1 + description: control register 1 + byte_offset: 4 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 8 + fieldset: CR2 + - name: SMPR1 + description: sample time register 1 + byte_offset: 12 + fieldset: SMPR1 + - name: SMPR2 + description: sample time register 2 + byte_offset: 16 + fieldset: SMPR2 + - name: JOFR + description: injected channel data offset register x + array: + len: 4 + stride: 4 + byte_offset: 20 + fieldset: JOFR + - name: HTR + description: watchdog higher threshold register + byte_offset: 36 + fieldset: HTR + - name: LTR + description: watchdog lower threshold register + byte_offset: 40 + fieldset: LTR + - name: SQR1 + description: regular sequence register 1 + byte_offset: 44 + fieldset: SQR1 + - name: SQR2 + description: regular sequence register 2 + byte_offset: 48 + fieldset: SQR2 + - name: SQR3 + description: regular sequence register 3 + byte_offset: 52 + fieldset: SQR3 + - name: JSQR + description: injected sequence register + byte_offset: 56 + fieldset: JSQR + - name: JDR + description: injected data register x + array: + len: 4 + stride: 4 + byte_offset: 60 + access: Read + fieldset: JDR + - name: DR + description: regular data register + byte_offset: 76 + access: Read + fieldset: DR fieldset/CR1: description: control register 1 fields: - - name: AWDCH - description: Analog watchdog channel select bits - bit_offset: 0 - bit_size: 5 - - name: EOCIE - description: Interrupt enable for EOC - bit_offset: 5 - bit_size: 1 - - name: AWDIE - description: Analog watchdog interrupt enable - bit_offset: 6 - bit_size: 1 - - name: JEOCIE - description: Interrupt enable for injected channels - bit_offset: 7 - bit_size: 1 - - name: SCAN - description: Scan mode - bit_offset: 8 - bit_size: 1 - - name: AWDSGL - description: Enable the watchdog on a single channel in scan mode - bit_offset: 9 - bit_size: 1 - enum: AWDSGL - - name: JAUTO - description: Automatic injected group conversion - bit_offset: 10 - bit_size: 1 - - name: DISCEN - description: Discontinuous mode on regular channels - bit_offset: 11 - bit_size: 1 - - name: JDISCEN - description: Discontinuous mode on injected channels - bit_offset: 12 - bit_size: 1 - - name: DISCNUM - description: Discontinuous mode channel count - bit_offset: 13 - bit_size: 3 - - name: JAWDEN - description: Analog watchdog enable on injected channels - bit_offset: 22 - bit_size: 1 - - name: AWDEN - description: Analog watchdog enable on regular channels - bit_offset: 23 - bit_size: 1 - - name: RES - description: Resolution - bit_offset: 24 - bit_size: 2 - enum: RES - - name: OVRIE - description: Overrun interrupt enable - bit_offset: 26 - bit_size: 1 + - name: AWDCH + description: Analog watchdog channel select bits + bit_offset: 0 + bit_size: 5 + - name: EOCIE + description: Interrupt enable for EOC + bit_offset: 5 + bit_size: 1 + - name: AWDIE + description: Analog watchdog interrupt enable + bit_offset: 6 + bit_size: 1 + - name: JEOCIE + description: Interrupt enable for injected channels + bit_offset: 7 + bit_size: 1 + - name: SCAN + description: Scan mode + bit_offset: 8 + bit_size: 1 + - name: AWDSGL + description: Enable the watchdog on a single channel in scan mode + bit_offset: 9 + bit_size: 1 + enum: AWDSGL + - name: JAUTO + description: Automatic injected group conversion + bit_offset: 10 + bit_size: 1 + - name: DISCEN + description: Discontinuous mode on regular channels + bit_offset: 11 + bit_size: 1 + - name: JDISCEN + description: Discontinuous mode on injected channels + bit_offset: 12 + bit_size: 1 + - name: DISCNUM + description: Discontinuous mode channel count + bit_offset: 13 + bit_size: 3 + - name: JAWDEN + description: Analog watchdog enable on injected channels + bit_offset: 22 + bit_size: 1 + - name: AWDEN + description: Analog watchdog enable on regular channels + bit_offset: 23 + bit_size: 1 + - name: RES + description: Resolution + bit_offset: 24 + bit_size: 2 + enum: RES + - name: OVRIE + description: Overrun interrupt enable + bit_offset: 26 + bit_size: 1 fieldset/CR2: description: control register 2 fields: - - name: ADON - description: A/D Converter ON / OFF - bit_offset: 0 - bit_size: 1 - - name: CONT - description: Continuous conversion - bit_offset: 1 - bit_size: 1 - enum: CONT - - name: DMA - description: Direct memory access mode (for single ADC mode) - bit_offset: 8 - bit_size: 1 - - name: DDS - description: DMA disable selection (for single ADC mode) - bit_offset: 9 - bit_size: 1 - enum: DDS - - name: EOCS - description: End of conversion selection - bit_offset: 10 - bit_size: 1 - enum: EOCS - - name: ALIGN - description: Data alignment - bit_offset: 11 - bit_size: 1 - enum: ALIGN - - name: JEXTSEL - description: External event select for injected group - bit_offset: 16 - bit_size: 4 - enum: JEXTSEL - - name: JEXTEN - description: External trigger enable for injected channels - bit_offset: 20 - bit_size: 2 - enum: JEXTEN - - name: JSWSTART - description: Start conversion of injected channels - bit_offset: 22 - bit_size: 1 - - name: EXTSEL - description: External event select for regular group - bit_offset: 24 - bit_size: 4 - enum: EXTSEL - - name: EXTEN - description: External trigger enable for regular channels - bit_offset: 28 - bit_size: 2 - enum: EXTEN - - name: SWSTART - description: Start conversion of regular channels - bit_offset: 30 - bit_size: 1 + - name: ADON + description: A/D Converter ON / OFF + bit_offset: 0 + bit_size: 1 + - name: CONT + description: Continuous conversion + bit_offset: 1 + bit_size: 1 + enum: CONT + - name: DMA + description: Direct memory access mode (for single ADC mode) + bit_offset: 8 + bit_size: 1 + - name: DDS + description: DMA disable selection (for single ADC mode) + bit_offset: 9 + bit_size: 1 + enum: DDS + - name: EOCS + description: End of conversion selection + bit_offset: 10 + bit_size: 1 + enum: EOCS + - name: ALIGN + description: Data alignment + bit_offset: 11 + bit_size: 1 + enum: ALIGN + - name: JEXTSEL + description: External event select for injected group + bit_offset: 16 + bit_size: 4 + enum: JEXTSEL + - name: JEXTEN + description: External trigger enable for injected channels + bit_offset: 20 + bit_size: 2 + enum: JEXTEN + - name: JSWSTART + description: Start conversion of injected channels + bit_offset: 22 + bit_size: 1 + - name: EXTSEL + description: External event select for regular group + bit_offset: 24 + bit_size: 4 + enum: EXTSEL + - name: EXTEN + description: External trigger enable for regular channels + bit_offset: 28 + bit_size: 2 + enum: EXTEN + - name: SWSTART + description: Start conversion of regular channels + bit_offset: 30 + bit_size: 1 fieldset/DR: description: regular data register fields: - - name: DATA - description: Regular data - bit_offset: 0 - bit_size: 16 + - name: DATA + description: Regular data + bit_offset: 0 + bit_size: 16 fieldset/HTR: description: watchdog higher threshold register fields: - - name: HT - description: Analog watchdog higher threshold - bit_offset: 0 - bit_size: 12 + - name: HT + description: Analog watchdog higher threshold + bit_offset: 0 + bit_size: 12 fieldset/JDR: description: injected data register x fields: - - name: JDATA - description: Injected data - bit_offset: 0 - bit_size: 16 + - name: JDATA + description: Injected data + bit_offset: 0 + bit_size: 16 fieldset/JOFR: description: injected channel data offset register x fields: - - name: JOFFSET - description: Data offset for injected channel x - bit_offset: 0 - bit_size: 12 + - name: JOFFSET + description: Data offset for injected channel x + bit_offset: 0 + bit_size: 12 fieldset/JSQR: description: injected sequence register fields: - - name: JSQ - description: 1st conversion in injected sequence - bit_offset: 0 - bit_size: 5 - array: - len: 4 - stride: 5 - - name: JL - description: Injected sequence length - bit_offset: 20 - bit_size: 2 + - name: JSQ + description: 1st conversion in injected sequence + bit_offset: 0 + bit_size: 5 + array: + len: 4 + stride: 5 + - name: JL + description: Injected sequence length + bit_offset: 20 + bit_size: 2 fieldset/LTR: description: watchdog lower threshold register fields: - - name: LT - description: Analog watchdog lower threshold - bit_offset: 0 - bit_size: 12 + - name: LT + description: Analog watchdog lower threshold + bit_offset: 0 + bit_size: 12 fieldset/SMPR1: description: sample time register 1 fields: - - name: SMP - description: Channel 10 sampling time selection - bit_offset: 0 - bit_size: 3 - array: - len: 9 - stride: 3 - enum: SAMPLE_TIME - - name: SMPx_x - description: Sample time bits - bit_offset: 0 - bit_size: 32 - enum: SMPR_SMPx_x + - name: SMP + description: Channel 10 sampling time selection + bit_offset: 0 + bit_size: 3 + array: + len: 9 + stride: 3 + enum: SAMPLE_TIME + - name: SMPx_x + description: Sample time bits + bit_offset: 0 + bit_size: 32 + enum: SMPR_SMPx_x fieldset/SMPR2: description: sample time register 2 fields: - - name: SMP - description: Channel 0 sampling time selection - bit_offset: 0 - bit_size: 3 - array: - len: 10 - stride: 3 - enum: SAMPLE_TIME - - name: SMPx_x - description: Sample time bits - bit_offset: 0 - bit_size: 32 - enum: SMPR_SMPx_x + - name: SMP + description: Channel 0 sampling time selection + bit_offset: 0 + bit_size: 3 + array: + len: 10 + stride: 3 + enum: SAMPLE_TIME + - name: SMPx_x + description: Sample time bits + bit_offset: 0 + bit_size: 32 + enum: SMPR_SMPx_x fieldset/SQR1: description: regular sequence register 1 fields: - - name: SQ - description: 13th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 4 - stride: 5 - - name: L - description: Regular channel sequence length - bit_offset: 20 - bit_size: 4 + - name: SQ + description: 13th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 4 + stride: 5 + - name: L + description: Regular channel sequence length + bit_offset: 20 + bit_size: 4 fieldset/SQR2: description: regular sequence register 2 fields: - - name: SQ - description: 7th conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 6 - stride: 5 + - name: SQ + description: 7th conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 6 + stride: 5 fieldset/SQR3: description: regular sequence register 3 fields: - - name: SQ - description: 1st conversion in regular sequence - bit_offset: 0 - bit_size: 5 - array: - len: 6 - stride: 5 + - name: SQ + description: 1st conversion in regular sequence + bit_offset: 0 + bit_size: 5 + array: + len: 6 + stride: 5 fieldset/SR: description: status register fields: - - name: AWD - description: Analog watchdog flag - bit_offset: 0 - bit_size: 1 - enum: AWD - - name: EOC - description: Regular channel end of conversion - bit_offset: 1 - bit_size: 1 - enum: EOC - - name: JEOC - description: Injected channel end of conversion - bit_offset: 2 - bit_size: 1 - enum: JEOC - - name: JSTRT - description: Injected channel start flag - bit_offset: 3 - bit_size: 1 - enum: JSTRT - - name: STRT - description: Regular channel start flag - bit_offset: 4 - bit_size: 1 - enum: STRT - - name: OVR - description: Overrun - bit_offset: 5 - bit_size: 1 - enum: OVR + - name: AWD + description: Analog watchdog flag + bit_offset: 0 + bit_size: 1 + enum: AWD + - name: EOC + description: Regular channel end of conversion + bit_offset: 1 + bit_size: 1 + enum: EOC + - name: JEOC + description: Injected channel end of conversion + bit_offset: 2 + bit_size: 1 + enum: JEOC + - name: JSTRT + description: Injected channel start flag + bit_offset: 3 + bit_size: 1 + enum: JSTRT + - name: STRT + description: Regular channel start flag + bit_offset: 4 + bit_size: 1 + enum: STRT + - name: OVR + description: Overrun + bit_offset: 5 + bit_size: 1 + enum: OVR enum/ALIGN: bit_size: 1 variants: - - name: Right - description: Right alignment - value: 0 - - name: Left - description: Left alignment - value: 1 + - name: Right + description: Right alignment + value: 0 + - name: Left + description: Left alignment + value: 1 enum/AWD: bit_size: 1 variants: - - name: NoEvent - description: No analog watchdog event occurred - value: 0 - - name: Event - description: Analog watchdog event occurred - value: 1 + - name: NoEvent + description: No analog watchdog event occurred + value: 0 + - name: Event + description: Analog watchdog event occurred + value: 1 enum/AWDSGL: bit_size: 1 variants: - - name: AllChannels - description: Analog watchdog enabled on all channels - value: 0 - - name: SingleChannel - description: Analog watchdog enabled on a single channel - value: 1 + - name: AllChannels + description: Analog watchdog enabled on all channels + value: 0 + - name: SingleChannel + description: Analog watchdog enabled on a single channel + value: 1 enum/CONT: bit_size: 1 variants: - - name: Single - description: Single conversion mode - value: 0 - - name: Continuous - description: Continuous conversion mode - value: 1 + - name: Single + description: Single conversion mode + value: 0 + - name: Continuous + description: Continuous conversion mode + value: 1 enum/DDS: bit_size: 1 variants: - - name: Single - description: No new DMA request is issued after the last transfer - value: 0 - - name: Continuous - description: DMA requests are issued as long as data are converted and DMA=1 - value: 1 + - name: Single + description: No new DMA request is issued after the last transfer + value: 0 + - name: Continuous + description: DMA requests are issued as long as data are converted and DMA=1 + value: 1 enum/EOC: bit_size: 1 variants: - - name: NotComplete - description: Conversion is not complete - value: 0 - - name: Complete - description: Conversion complete - value: 1 + - name: NotComplete + description: Conversion is not complete + value: 0 + - name: Complete + description: Conversion complete + value: 1 enum/EOCS: bit_size: 1 variants: - - name: EachSequence - description: The EOC bit is set at the end of each sequence of regular conversions - value: 0 - - name: EachConversion - description: The EOC bit is set at the end of each regular conversion - value: 1 + - name: EachSequence + description: The EOC bit is set at the end of each sequence of regular conversions + value: 0 + - name: EachConversion + description: The EOC bit is set at the end of each regular conversion + value: 1 enum/EXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/EXTSEL: bit_size: 4 variants: - - name: TIM1CC1 - description: Timer 1 CC1 event - value: 0 - - name: TIM1CC2 - description: Timer 1 CC2 event - value: 1 - - name: TIM1CC3 - description: Timer 1 CC3 event - value: 2 - - name: TIM2CC2 - description: Timer 2 CC2 event - value: 3 - - name: TIM2CC3 - description: Timer 2 CC3 event - value: 4 - - name: TIM2CC4 - description: Timer 2 CC4 event - value: 5 - - name: TIM2TRGO - description: Timer 2 TRGO event - value: 6 + - name: TIM1CC1 + description: Timer 1 CC1 event + value: 0 + - name: TIM1CC2 + description: Timer 1 CC2 event + value: 1 + - name: TIM1CC3 + description: Timer 1 CC3 event + value: 2 + - name: TIM2CC2 + description: Timer 2 CC2 event + value: 3 + - name: TIM2CC3 + description: Timer 2 CC3 event + value: 4 + - name: TIM2CC4 + description: Timer 2 CC4 event + value: 5 + - name: TIM2TRGO + description: Timer 2 TRGO event + value: 6 enum/JEOC: bit_size: 1 variants: - - name: NotComplete - description: Conversion is not complete - value: 0 - - name: Complete - description: Conversion complete - value: 1 + - name: NotComplete + description: Conversion is not complete + value: 0 + - name: Complete + description: Conversion complete + value: 1 enum/JEXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/JEXTSEL: bit_size: 4 variants: - - name: TIM1TRGO - description: Timer 1 TRGO event - value: 0 - - name: TIM1CC4 - description: Timer 1 CC4 event - value: 1 - - name: TIM2TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM2CC1 - description: Timer 2 CC1 event - value: 3 - - name: TIM3CC4 - description: Timer 3 CC4 event - value: 4 - - name: TIM4TRGO - description: Timer 4 TRGO event - value: 5 - - name: TIM8CC4 - description: Timer 8 CC4 event - value: 7 - - name: TIM1TRGO2 - description: Timer 1 TRGO(2) event - value: 8 - - name: TIM8TRGO - description: Timer 8 TRGO event - value: 9 - - name: TIM8TRGO2 - description: Timer 8 TRGO(2) event - value: 10 - - name: TIM3CC3 - description: Timer 3 CC3 event - value: 11 - - name: TIM5TRGO - description: Timer 5 TRGO event - value: 12 - - name: TIM3CC1 - description: Timer 3 CC1 event - value: 13 - - name: TIM6TRGO - description: Timer 6 TRGO event - value: 14 + - name: TIM1TRGO + description: Timer 1 TRGO event + value: 0 + - name: TIM1CC4 + description: Timer 1 CC4 event + value: 1 + - name: TIM2TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM2CC1 + description: Timer 2 CC1 event + value: 3 + - name: TIM3CC4 + description: Timer 3 CC4 event + value: 4 + - name: TIM4TRGO + description: Timer 4 TRGO event + value: 5 + - name: TIM8CC4 + description: Timer 8 CC4 event + value: 7 + - name: TIM1TRGO2 + description: Timer 1 TRGO(2) event + value: 8 + - name: TIM8TRGO + description: Timer 8 TRGO event + value: 9 + - name: TIM8TRGO2 + description: Timer 8 TRGO(2) event + value: 10 + - name: TIM3CC3 + description: Timer 3 CC3 event + value: 11 + - name: TIM5TRGO + description: Timer 5 TRGO event + value: 12 + - name: TIM3CC1 + description: Timer 3 CC1 event + value: 13 + - name: TIM6TRGO + description: Timer 6 TRGO event + value: 14 enum/JSTRT: bit_size: 1 variants: - - name: NotStarted - description: No injected channel conversion started - value: 0 - - name: Started - description: Injected channel conversion has started - value: 1 + - name: NotStarted + description: No injected channel conversion started + value: 0 + - name: Started + description: Injected channel conversion has started + value: 1 enum/OVR: bit_size: 1 variants: - - name: NoOverrun - description: No overrun occurred - value: 0 - - name: Overrun - description: Overrun occurred - value: 1 + - name: NoOverrun + description: No overrun occurred + value: 0 + - name: Overrun + description: Overrun occurred + value: 1 enum/RES: bit_size: 2 variants: - - name: TwelveBit - description: 12-bit (15 ADCCLK cycles) - value: 0 - - name: TenBit - description: 10-bit (13 ADCCLK cycles) - value: 1 - - name: EightBit - description: 8-bit (11 ADCCLK cycles) - value: 2 - - name: SixBit - description: 6-bit (9 ADCCLK cycles) - value: 3 + - name: TwelveBit + description: 12-bit (15 ADCCLK cycles) + value: 0 + - name: TenBit + description: 10-bit (13 ADCCLK cycles) + value: 1 + - name: EightBit + description: 8-bit (11 ADCCLK cycles) + value: 2 + - name: SixBit + description: 6-bit (9 ADCCLK cycles) + value: 3 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles3 - description: 3 cycles - value: 0 - - name: Cycles15 - description: 15 cycles - value: 1 - - name: Cycles28 - description: 28 cycles - value: 2 - - name: Cycles56 - description: 56 cycles - value: 3 - - name: Cycles84 - description: 84 cycles - value: 4 - - name: Cycles112 - description: 112 cycles - value: 5 - - name: Cycles144 - description: 144 cycles - value: 6 - - name: Cycles480 - description: 480 cycles - value: 7 + - name: Cycles3 + description: 3 cycles + value: 0 + - name: Cycles15 + description: 15 cycles + value: 1 + - name: Cycles28 + description: 28 cycles + value: 2 + - name: Cycles56 + description: 56 cycles + value: 3 + - name: Cycles84 + description: 84 cycles + value: 4 + - name: Cycles112 + description: 112 cycles + value: 5 + - name: Cycles144 + description: 144 cycles + value: 6 + - name: Cycles480 + description: 480 cycles + value: 7 enum/SMPR_SMPx_x: bit_size: 32 variants: - - name: Cycles3 - description: 3 cycles - value: 0 - - name: Cycles15 - description: 15 cycles - value: 1 - - name: Cycles28 - description: 28 cycles - value: 2 - - name: Cycles56 - description: 56 cycles - value: 3 - - name: Cycles84 - description: 84 cycles - value: 4 - - name: Cycles112 - description: 112 cycles - value: 5 - - name: Cycles144 - description: 144 cycles - value: 6 - - name: Cycles480 - description: 480 cycles - value: 7 + - name: Cycles3 + description: 3 cycles + value: 0 + - name: Cycles15 + description: 15 cycles + value: 1 + - name: Cycles28 + description: 28 cycles + value: 2 + - name: Cycles56 + description: 56 cycles + value: 3 + - name: Cycles84 + description: 84 cycles + value: 4 + - name: Cycles112 + description: 112 cycles + value: 5 + - name: Cycles144 + description: 144 cycles + value: 6 + - name: Cycles480 + description: 480 cycles + value: 7 enum/STRT: bit_size: 1 variants: - - name: NotStarted - description: No regular channel conversion started - value: 0 - - name: Started - description: Regular channel conversion has started - value: 1 + - name: NotStarted + description: No regular channel conversion started + value: 0 + - name: Started + description: Regular channel conversion has started + value: 1 diff --git a/data/registers/adc_v3.yaml b/data/registers/adc_v3.yaml index 752ec84..73d8f02 100644 --- a/data/registers/adc_v3.yaml +++ b/data/registers/adc_v3.yaml @@ -1,525 +1,524 @@ ---- block/ADC: description: Analog-to-Digital Converter items: - - name: ISR - description: interrupt and status register - byte_offset: 0 - fieldset: ISR - - name: IER - description: interrupt enable register - byte_offset: 4 - fieldset: IER - - name: CR - description: control register - byte_offset: 8 - fieldset: CR - - name: CFGR - description: configuration register - byte_offset: 12 - fieldset: CFGR - - name: CFGR2 - description: configuration register - byte_offset: 16 - fieldset: CFGR2 - - name: SMPR - description: sample time register 1 - array: - len: 2 - stride: 4 - byte_offset: 20 - fieldset: SMPR - - name: TR - description: watchdog threshold register 1 - array: - len: 3 - stride: 4 - byte_offset: 32 - fieldset: TR - - name: SQR1 - description: regular sequence register 1 - byte_offset: 48 - fieldset: SQR1 - - name: SQR2 - description: regular sequence register 2 - byte_offset: 52 - fieldset: SQR2 - - name: SQR3 - description: regular sequence register 3 - byte_offset: 56 - fieldset: SQR3 - - name: SQR4 - description: regular sequence register 4 - byte_offset: 60 - fieldset: SQR4 - - name: DR - description: regular Data Register - byte_offset: 64 - access: Read - fieldset: DR - - name: JSQR - description: injected sequence register - byte_offset: 76 - fieldset: JSQR - - name: OFR - description: offset register 1 - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: OFR - - name: JDR - description: injected data registers - array: - len: 4 - stride: 4 - byte_offset: 128 - access: Read - fieldset: JDR - - name: AWD2CR - description: Analog Watchdog 2 Configuration Register - byte_offset: 160 - fieldset: AWD2CR - - name: AWD3CR - description: Analog Watchdog 3 Configuration Register - byte_offset: 164 - fieldset: AWD3CR - - name: DIFSEL - description: Differential Mode Selection Register 2 - byte_offset: 176 - fieldset: DIFSEL - - name: CALFACT - description: Calibration Factors - byte_offset: 180 - fieldset: CALFACT + - name: ISR + description: interrupt and status register + byte_offset: 0 + fieldset: ISR + - name: IER + description: interrupt enable register + byte_offset: 4 + fieldset: IER + - name: CR + description: control register + byte_offset: 8 + fieldset: CR + - name: CFGR + description: configuration register + byte_offset: 12 + fieldset: CFGR + - name: CFGR2 + description: configuration register + byte_offset: 16 + fieldset: CFGR2 + - name: SMPR + description: sample time register 1 + array: + len: 2 + stride: 4 + byte_offset: 20 + fieldset: SMPR + - name: TR + description: watchdog threshold register 1 + array: + len: 3 + stride: 4 + byte_offset: 32 + fieldset: TR + - name: SQR1 + description: regular sequence register 1 + byte_offset: 48 + fieldset: SQR1 + - name: SQR2 + description: regular sequence register 2 + byte_offset: 52 + fieldset: SQR2 + - name: SQR3 + description: regular sequence register 3 + byte_offset: 56 + fieldset: SQR3 + - name: SQR4 + description: regular sequence register 4 + byte_offset: 60 + fieldset: SQR4 + - name: DR + description: regular Data Register + byte_offset: 64 + access: Read + fieldset: DR + - name: JSQR + description: injected sequence register + byte_offset: 76 + fieldset: JSQR + - name: OFR + description: offset register 1 + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: OFR + - name: JDR + description: injected data registers + array: + len: 4 + stride: 4 + byte_offset: 128 + access: Read + fieldset: JDR + - name: AWD2CR + description: Analog Watchdog 2 Configuration Register + byte_offset: 160 + fieldset: AWD2CR + - name: AWD3CR + description: Analog Watchdog 3 Configuration Register + byte_offset: 164 + fieldset: AWD3CR + - name: DIFSEL + description: Differential Mode Selection Register 2 + byte_offset: 176 + fieldset: DIFSEL + - name: CALFACT + description: Calibration Factors + byte_offset: 180 + fieldset: CALFACT fieldset/AWD2CR: description: Analog Watchdog 2 Configuration Register fields: - - name: AWD2CH - description: AWD2CH - bit_offset: 1 - bit_size: 18 + - name: AWD2CH + description: AWD2CH + bit_offset: 1 + bit_size: 18 fieldset/AWD3CR: description: Analog Watchdog 3 Configuration Register fields: - - name: AWD3CH - description: AWD3CH - bit_offset: 1 - bit_size: 18 + - name: AWD3CH + description: AWD3CH + bit_offset: 1 + bit_size: 18 fieldset/CALFACT: description: Calibration Factors fields: - - name: CALFACT_S - description: CALFACT_S - bit_offset: 0 - bit_size: 7 - - name: CALFACT_D - description: CALFACT_D - bit_offset: 16 - bit_size: 7 + - name: CALFACT_S + description: CALFACT_S + bit_offset: 0 + bit_size: 7 + - name: CALFACT_D + description: CALFACT_D + bit_offset: 16 + bit_size: 7 fieldset/CFGR: description: configuration register fields: - - name: DMAEN - description: DMAEN - bit_offset: 0 - bit_size: 1 - - name: DMACFG - description: DMACFG - bit_offset: 1 - bit_size: 1 - - name: RES - description: RES - bit_offset: 3 - bit_size: 2 - enum: RES - - name: ALIGN - description: ALIGN - bit_offset: 5 - bit_size: 1 - - name: EXTSEL - description: EXTSEL - bit_offset: 6 - bit_size: 4 - - name: EXTEN - description: EXTEN - bit_offset: 10 - bit_size: 2 - - name: OVRMOD - description: OVRMOD - bit_offset: 12 - bit_size: 1 - - name: CONT - description: CONT - bit_offset: 13 - bit_size: 1 - - name: AUTDLY - description: AUTDLY - bit_offset: 14 - bit_size: 1 - - name: AUTOFF - description: AUTOFF - bit_offset: 15 - bit_size: 1 - - name: DISCEN - description: DISCEN - bit_offset: 16 - bit_size: 1 - - name: DISCNUM - description: DISCNUM - bit_offset: 17 - bit_size: 3 - - name: JDISCEN - description: JDISCEN - bit_offset: 20 - bit_size: 1 - - name: JQM - description: JQM - bit_offset: 21 - bit_size: 1 - - name: AWD1SGL - description: AWD1SGL - bit_offset: 22 - bit_size: 1 - - name: AWD1EN - description: AWD1EN - bit_offset: 23 - bit_size: 1 - - name: JAWD1EN - description: JAWD1EN - bit_offset: 24 - bit_size: 1 - - name: JAUTO - description: JAUTO - bit_offset: 25 - bit_size: 1 - - name: AWDCH1CH - description: AWDCH1CH - bit_offset: 26 - bit_size: 5 + - name: DMAEN + description: DMAEN + bit_offset: 0 + bit_size: 1 + - name: DMACFG + description: DMACFG + bit_offset: 1 + bit_size: 1 + - name: RES + description: RES + bit_offset: 3 + bit_size: 2 + enum: RES + - name: ALIGN + description: ALIGN + bit_offset: 5 + bit_size: 1 + - name: EXTSEL + description: EXTSEL + bit_offset: 6 + bit_size: 4 + - name: EXTEN + description: EXTEN + bit_offset: 10 + bit_size: 2 + - name: OVRMOD + description: OVRMOD + bit_offset: 12 + bit_size: 1 + - name: CONT + description: CONT + bit_offset: 13 + bit_size: 1 + - name: AUTDLY + description: AUTDLY + bit_offset: 14 + bit_size: 1 + - name: AUTOFF + description: AUTOFF + bit_offset: 15 + bit_size: 1 + - name: DISCEN + description: DISCEN + bit_offset: 16 + bit_size: 1 + - name: DISCNUM + description: DISCNUM + bit_offset: 17 + bit_size: 3 + - name: JDISCEN + description: JDISCEN + bit_offset: 20 + bit_size: 1 + - name: JQM + description: JQM + bit_offset: 21 + bit_size: 1 + - name: AWD1SGL + description: AWD1SGL + bit_offset: 22 + bit_size: 1 + - name: AWD1EN + description: AWD1EN + bit_offset: 23 + bit_size: 1 + - name: JAWD1EN + description: JAWD1EN + bit_offset: 24 + bit_size: 1 + - name: JAUTO + description: JAUTO + bit_offset: 25 + bit_size: 1 + - name: AWDCH1CH + description: AWDCH1CH + bit_offset: 26 + bit_size: 5 fieldset/CFGR2: description: configuration register fields: - - name: ROVSE - description: DMAEN - bit_offset: 0 - bit_size: 1 - - name: JOVSE - description: DMACFG - bit_offset: 1 - bit_size: 1 - - name: OVSR - description: RES - bit_offset: 2 - bit_size: 3 - - name: OVSS - description: ALIGN - bit_offset: 5 - bit_size: 4 - - name: TOVS - description: EXTSEL - bit_offset: 9 - bit_size: 1 - - name: ROVSM - description: EXTEN - bit_offset: 10 - bit_size: 1 + - name: ROVSE + description: DMAEN + bit_offset: 0 + bit_size: 1 + - name: JOVSE + description: DMACFG + bit_offset: 1 + bit_size: 1 + - name: OVSR + description: RES + bit_offset: 2 + bit_size: 3 + - name: OVSS + description: ALIGN + bit_offset: 5 + bit_size: 4 + - name: TOVS + description: EXTSEL + bit_offset: 9 + bit_size: 1 + - name: ROVSM + description: EXTEN + bit_offset: 10 + bit_size: 1 fieldset/CR: description: control register fields: - - name: ADEN - description: ADEN - bit_offset: 0 - bit_size: 1 - - name: ADDIS - description: ADDIS - bit_offset: 1 - bit_size: 1 - - name: ADSTART - description: ADSTART - bit_offset: 2 - bit_size: 1 - - name: JADSTART - description: JADSTART - bit_offset: 3 - bit_size: 1 - - name: ADSTP - description: ADSTP - bit_offset: 4 - bit_size: 1 - - name: JADSTP - description: JADSTP - bit_offset: 5 - bit_size: 1 - - name: ADVREGEN - description: ADVREGEN - bit_offset: 28 - bit_size: 1 - - name: DEEPPWD - description: DEEPPWD - bit_offset: 29 - bit_size: 1 - - name: ADCALDIF - description: ADCALDIF - bit_offset: 30 - bit_size: 1 - - name: ADCAL - description: ADCAL - bit_offset: 31 - bit_size: 1 + - name: ADEN + description: ADEN + bit_offset: 0 + bit_size: 1 + - name: ADDIS + description: ADDIS + bit_offset: 1 + bit_size: 1 + - name: ADSTART + description: ADSTART + bit_offset: 2 + bit_size: 1 + - name: JADSTART + description: JADSTART + bit_offset: 3 + bit_size: 1 + - name: ADSTP + description: ADSTP + bit_offset: 4 + bit_size: 1 + - name: JADSTP + description: JADSTP + bit_offset: 5 + bit_size: 1 + - name: ADVREGEN + description: ADVREGEN + bit_offset: 28 + bit_size: 1 + - name: DEEPPWD + description: DEEPPWD + bit_offset: 29 + bit_size: 1 + - name: ADCALDIF + description: ADCALDIF + bit_offset: 30 + bit_size: 1 + - name: ADCAL + description: ADCAL + bit_offset: 31 + bit_size: 1 fieldset/DIFSEL: description: Differential Mode Selection Register 2 fields: - - name: DIFSEL_1_15 - description: Differential mode for channels 15 to 1 - bit_offset: 1 - bit_size: 15 - - name: DIFSEL_16_18 - description: Differential mode for channels 18 to 16 - bit_offset: 16 - bit_size: 3 + - name: DIFSEL_1_15 + description: Differential mode for channels 15 to 1 + bit_offset: 1 + bit_size: 15 + - name: DIFSEL_16_18 + description: Differential mode for channels 18 to 16 + bit_offset: 16 + bit_size: 3 fieldset/DR: description: regular Data Register fields: - - name: regularDATA - description: regularDATA - bit_offset: 0 - bit_size: 16 + - name: regularDATA + description: regularDATA + bit_offset: 0 + bit_size: 16 fieldset/IER: description: interrupt enable register fields: - - name: ADRDYIE - description: ADRDYIE - bit_offset: 0 - bit_size: 1 - - name: EOSMPIE - description: EOSMPIE - bit_offset: 1 - bit_size: 1 - - name: EOCIE - description: EOCIE - bit_offset: 2 - bit_size: 1 - - name: EOSIE - description: EOSIE - bit_offset: 3 - bit_size: 1 - - name: OVRIE - description: OVRIE - bit_offset: 4 - bit_size: 1 - - name: JEOCIE - description: JEOCIE - bit_offset: 5 - bit_size: 1 - - name: JEOSIE - description: JEOSIE - bit_offset: 6 - bit_size: 1 - - name: AWD1IE - description: AWD1IE - bit_offset: 7 - bit_size: 1 - - name: AWD2IE - description: AWD2IE - bit_offset: 8 - bit_size: 1 - - name: AWD3IE - description: AWD3IE - bit_offset: 9 - bit_size: 1 - - name: JQOVFIE - description: JQOVFIE - bit_offset: 10 - bit_size: 1 + - name: ADRDYIE + description: ADRDYIE + bit_offset: 0 + bit_size: 1 + - name: EOSMPIE + description: EOSMPIE + bit_offset: 1 + bit_size: 1 + - name: EOCIE + description: EOCIE + bit_offset: 2 + bit_size: 1 + - name: EOSIE + description: EOSIE + bit_offset: 3 + bit_size: 1 + - name: OVRIE + description: OVRIE + bit_offset: 4 + bit_size: 1 + - name: JEOCIE + description: JEOCIE + bit_offset: 5 + bit_size: 1 + - name: JEOSIE + description: JEOSIE + bit_offset: 6 + bit_size: 1 + - name: AWD1IE + description: AWD1IE + bit_offset: 7 + bit_size: 1 + - name: AWD2IE + description: AWD2IE + bit_offset: 8 + bit_size: 1 + - name: AWD3IE + description: AWD3IE + bit_offset: 9 + bit_size: 1 + - name: JQOVFIE + description: JQOVFIE + bit_offset: 10 + bit_size: 1 fieldset/ISR: description: interrupt and status register fields: - - name: ADRDY - description: ADRDY - bit_offset: 0 - bit_size: 1 - - name: EOSMP - description: EOSMP - bit_offset: 1 - bit_size: 1 - - name: EOC - description: EOC - bit_offset: 2 - bit_size: 1 - - name: EOS - description: EOS - bit_offset: 3 - bit_size: 1 - - name: OVR - description: OVR - bit_offset: 4 - bit_size: 1 - - name: JEOC - description: JEOC - bit_offset: 5 - bit_size: 1 - - name: JEOS - description: JEOS - bit_offset: 6 - bit_size: 1 - - name: AWD - description: AWD1 - bit_offset: 7 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: JQOVF - description: JQOVF - bit_offset: 10 - bit_size: 1 + - name: ADRDY + description: ADRDY + bit_offset: 0 + bit_size: 1 + - name: EOSMP + description: EOSMP + bit_offset: 1 + bit_size: 1 + - name: EOC + description: EOC + bit_offset: 2 + bit_size: 1 + - name: EOS + description: EOS + bit_offset: 3 + bit_size: 1 + - name: OVR + description: OVR + bit_offset: 4 + bit_size: 1 + - name: JEOC + description: JEOC + bit_offset: 5 + bit_size: 1 + - name: JEOS + description: JEOS + bit_offset: 6 + bit_size: 1 + - name: AWD + description: AWD1 + bit_offset: 7 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: JQOVF + description: JQOVF + bit_offset: 10 + bit_size: 1 fieldset/JDR: description: injected data register 1 fields: - - name: JDATA - description: JDATA1 - bit_offset: 0 - bit_size: 16 + - name: JDATA + description: JDATA1 + bit_offset: 0 + bit_size: 16 fieldset/JSQR: description: injected sequence register fields: - - name: JL - description: JL - bit_offset: 0 - bit_size: 2 - - name: JEXTSEL - description: JEXTSEL - bit_offset: 2 - bit_size: 4 - - name: JEXTEN - description: JEXTEN - bit_offset: 6 - bit_size: 2 - - name: JSQ - description: JSQ1 - bit_offset: 8 - bit_size: 5 - array: - len: 4 - stride: 6 + - name: JL + description: JL + bit_offset: 0 + bit_size: 2 + - name: JEXTSEL + description: JEXTSEL + bit_offset: 2 + bit_size: 4 + - name: JEXTEN + description: JEXTEN + bit_offset: 6 + bit_size: 2 + - name: JSQ + description: JSQ1 + bit_offset: 8 + bit_size: 5 + array: + len: 4 + stride: 6 fieldset/OFR: description: offset register fields: - - name: OFFSET - bit_offset: 0 - bit_size: 12 - - name: OFFSET_CH - bit_offset: 26 - bit_size: 5 - - name: OFFSET_EN - bit_offset: 31 - bit_size: 1 + - name: OFFSET + bit_offset: 0 + bit_size: 12 + - name: OFFSET_CH + bit_offset: 26 + bit_size: 5 + - name: OFFSET_EN + bit_offset: 31 + bit_size: 1 fieldset/SMPR: description: sample time register 1 fields: - - name: SMP - description: Channel 0 sampling time selection - bit_offset: 0 - bit_size: 3 - array: - len: 10 - stride: 3 - enum: SAMPLE_TIME + - name: SMP + description: Channel 0 sampling time selection + bit_offset: 0 + bit_size: 3 + array: + len: 10 + stride: 3 + enum: SAMPLE_TIME fieldset/SQR1: description: regular sequence register 1 fields: - - name: L - description: Regular channel sequence length - bit_offset: 0 - bit_size: 4 - - name: SQ - description: SQ1 - bit_offset: 6 - bit_size: 5 - array: - len: 4 - stride: 6 + - name: L + description: Regular channel sequence length + bit_offset: 0 + bit_size: 4 + - name: SQ + description: SQ1 + bit_offset: 6 + bit_size: 5 + array: + len: 4 + stride: 6 fieldset/SQR2: description: regular sequence register 2 fields: - - name: SQ - description: SQ5 - bit_offset: 0 - bit_size: 5 - array: - len: 5 - stride: 6 + - name: SQ + description: SQ5 + bit_offset: 0 + bit_size: 5 + array: + len: 5 + stride: 6 fieldset/SQR3: description: regular sequence register 3 fields: - - name: SQ - description: SQ10 - bit_offset: 0 - bit_size: 5 - array: - len: 5 - stride: 6 + - name: SQ + description: SQ10 + bit_offset: 0 + bit_size: 5 + array: + len: 5 + stride: 6 fieldset/SQR4: description: regular sequence register 4 fields: - - name: SQ - description: SQ15 - bit_offset: 0 - bit_size: 5 - array: - len: 2 - stride: 6 + - name: SQ + description: SQ15 + bit_offset: 0 + bit_size: 5 + array: + len: 2 + stride: 6 fieldset/TR: description: watchdog threshold register fields: - - name: LT - description: LT1 - bit_offset: 0 - bit_size: 12 - - name: HT - description: HT1 - bit_offset: 16 - bit_size: 12 + - name: LT + description: LT1 + bit_offset: 0 + bit_size: 12 + - name: HT + description: HT1 + bit_offset: 16 + bit_size: 12 enum/RES: bit_size: 2 variants: - - name: TwelveBit - description: 12-bit resolution - value: 0 - - name: TenBit - description: 10-bit resolution - value: 1 - - name: EightBit - description: 8-bit resolution - value: 2 - - name: SixBit - description: 6-bit resolution - value: 3 + - name: TwelveBit + description: 12-bit resolution + value: 0 + - name: TenBit + description: 10-bit resolution + value: 1 + - name: EightBit + description: 8-bit resolution + value: 2 + - name: SixBit + description: 6-bit resolution + value: 3 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles2_5 - description: 2.5 ADC cycles - value: 0 - - name: Cycles6_5 - description: 6.5 ADC cycles - value: 1 - - name: Cycles12_5 - description: 12.5 ADC cycles - value: 2 - - name: Cycles24_5 - description: 24.5 ADC cycles - value: 3 - - name: Cycles47_5 - description: 47.5 ADC cycles - value: 4 - - name: Cycles92_5 - description: 92.5 ADC cycles - value: 5 - - name: Cycles247_5 - description: 247.5 ADC cycles - value: 6 - - name: Cycles640_5 - description: 640.5 ADC cycles - value: 7 + - name: Cycles2_5 + description: 2.5 ADC cycles + value: 0 + - name: Cycles6_5 + description: 6.5 ADC cycles + value: 1 + - name: Cycles12_5 + description: 12.5 ADC cycles + value: 2 + - name: Cycles24_5 + description: 24.5 ADC cycles + value: 3 + - name: Cycles47_5 + description: 47.5 ADC cycles + value: 4 + - name: Cycles92_5 + description: 92.5 ADC cycles + value: 5 + - name: Cycles247_5 + description: 247.5 ADC cycles + value: 6 + - name: Cycles640_5 + description: 640.5 ADC cycles + value: 7 diff --git a/data/registers/adc_v4.yaml b/data/registers/adc_v4.yaml index 2eb9cd7..c0dc3fb 100644 --- a/data/registers/adc_v4.yaml +++ b/data/registers/adc_v4.yaml @@ -1,954 +1,953 @@ ---- block/ADC: description: Analog to Digital Converter items: - - name: ISR - description: interrupt and status register - byte_offset: 0 - fieldset: ISR - - name: IER - description: interrupt enable register - byte_offset: 4 - fieldset: IER - - name: CR - description: control register - byte_offset: 8 - fieldset: CR - - name: CFGR - description: configuration register 1 - byte_offset: 12 - fieldset: CFGR - - name: CFGR2 - description: configuration register 2 - byte_offset: 16 - fieldset: CFGR2 - - name: SMPR - description: sampling time register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 20 - fieldset: SMPR - - name: PCSEL - description: pre channel selection register - byte_offset: 28 - fieldset: PCSEL - - name: LTR1 - description: analog watchdog 1 threshold register - byte_offset: 32 - fieldset: LTR1 - - name: HTR1 - description: analog watchdog 2 threshold register - byte_offset: 36 - fieldset: HTR1 - - name: SQR1 - description: group regular sequencer ranks register 1 - byte_offset: 48 - fieldset: SQR1 - - name: SQR2 - description: group regular sequencer ranks register 2 - byte_offset: 52 - fieldset: SQR2 - - name: SQR3 - description: group regular sequencer ranks register 3 - byte_offset: 56 - fieldset: SQR3 - - name: SQR4 - description: group regular sequencer ranks register 4 - byte_offset: 60 - fieldset: SQR4 - - name: DR - description: group regular conversion data register - byte_offset: 64 - access: Read - fieldset: DR - - name: JSQR - description: group injected sequencer register - byte_offset: 76 - fieldset: JSQR - - name: OFR - description: offset number 1-4 register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: OFR - - name: JDR - description: group injected sequencer rank 1-4 register - array: - len: 4 - stride: 4 - byte_offset: 128 - access: Read - fieldset: JDR - - name: AWD2CR - description: analog watchdog 2 configuration register - byte_offset: 160 - fieldset: AWD2CR - - name: AWD3CR - description: analog watchdog 3 configuration register - byte_offset: 164 - fieldset: AWD3CR - - name: LTR2 - description: watchdog lower threshold register 2 - byte_offset: 176 - fieldset: LTR2 - - name: HTR2 - description: watchdog higher threshold register 2 - byte_offset: 180 - fieldset: HTR2 - - name: LTR3 - description: watchdog lower threshold register 3 - byte_offset: 184 - fieldset: LTR3 - - name: HTR3 - description: watchdog higher threshold register 3 - byte_offset: 188 - fieldset: HTR3 - - name: DIFSEL - description: channel differential or single-ended mode selection register - byte_offset: 192 - fieldset: DIFSEL - - name: CALFACT - description: calibration factors register - byte_offset: 196 - fieldset: CALFACT - - name: CALFACT2 - description: Calibration Factor register 2 - byte_offset: 200 - fieldset: CALFACT2 + - name: ISR + description: interrupt and status register + byte_offset: 0 + fieldset: ISR + - name: IER + description: interrupt enable register + byte_offset: 4 + fieldset: IER + - name: CR + description: control register + byte_offset: 8 + fieldset: CR + - name: CFGR + description: configuration register 1 + byte_offset: 12 + fieldset: CFGR + - name: CFGR2 + description: configuration register 2 + byte_offset: 16 + fieldset: CFGR2 + - name: SMPR + description: sampling time register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 20 + fieldset: SMPR + - name: PCSEL + description: pre channel selection register + byte_offset: 28 + fieldset: PCSEL + - name: LTR1 + description: analog watchdog 1 threshold register + byte_offset: 32 + fieldset: LTR1 + - name: HTR1 + description: analog watchdog 2 threshold register + byte_offset: 36 + fieldset: HTR1 + - name: SQR1 + description: group regular sequencer ranks register 1 + byte_offset: 48 + fieldset: SQR1 + - name: SQR2 + description: group regular sequencer ranks register 2 + byte_offset: 52 + fieldset: SQR2 + - name: SQR3 + description: group regular sequencer ranks register 3 + byte_offset: 56 + fieldset: SQR3 + - name: SQR4 + description: group regular sequencer ranks register 4 + byte_offset: 60 + fieldset: SQR4 + - name: DR + description: group regular conversion data register + byte_offset: 64 + access: Read + fieldset: DR + - name: JSQR + description: group injected sequencer register + byte_offset: 76 + fieldset: JSQR + - name: OFR + description: offset number 1-4 register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: OFR + - name: JDR + description: group injected sequencer rank 1-4 register + array: + len: 4 + stride: 4 + byte_offset: 128 + access: Read + fieldset: JDR + - name: AWD2CR + description: analog watchdog 2 configuration register + byte_offset: 160 + fieldset: AWD2CR + - name: AWD3CR + description: analog watchdog 3 configuration register + byte_offset: 164 + fieldset: AWD3CR + - name: LTR2 + description: watchdog lower threshold register 2 + byte_offset: 176 + fieldset: LTR2 + - name: HTR2 + description: watchdog higher threshold register 2 + byte_offset: 180 + fieldset: HTR2 + - name: LTR3 + description: watchdog lower threshold register 3 + byte_offset: 184 + fieldset: LTR3 + - name: HTR3 + description: watchdog higher threshold register 3 + byte_offset: 188 + fieldset: HTR3 + - name: DIFSEL + description: channel differential or single-ended mode selection register + byte_offset: 192 + fieldset: DIFSEL + - name: CALFACT + description: calibration factors register + byte_offset: 196 + fieldset: CALFACT + - name: CALFACT2 + description: Calibration Factor register 2 + byte_offset: 200 + fieldset: CALFACT2 fieldset/AWD2CR: description: analog watchdog 2 configuration register fields: - - name: AWD2CH - description: analog watchdog 2 monitored channel selection - bit_offset: 0 - bit_size: 1 - array: - len: 20 - stride: 1 + - name: AWD2CH + description: analog watchdog 2 monitored channel selection + bit_offset: 0 + bit_size: 1 + array: + len: 20 + stride: 1 fieldset/AWD3CR: description: analog watchdog 3 configuration register fields: - - name: AWD3CH - description: analog watchdog 3 monitored channel selection - bit_offset: 1 - bit_size: 1 - array: - len: 20 - stride: 1 + - name: AWD3CH + description: analog watchdog 3 monitored channel selection + bit_offset: 1 + bit_size: 1 + array: + len: 20 + stride: 1 fieldset/CALFACT: description: calibration factors register fields: - - name: CALFACT_S - description: calibration factor in single-ended mode - bit_offset: 0 - bit_size: 11 - - name: CALFACT_D - description: calibration factor in differential mode - bit_offset: 16 - bit_size: 11 + - name: CALFACT_S + description: calibration factor in single-ended mode + bit_offset: 0 + bit_size: 11 + - name: CALFACT_D + description: calibration factor in differential mode + bit_offset: 16 + bit_size: 11 fieldset/CALFACT2: description: Calibration Factor register 2 fields: - - name: LINCALFACT - description: Linearity Calibration Factor - bit_offset: 0 - bit_size: 30 + - name: LINCALFACT + description: Linearity Calibration Factor + bit_offset: 0 + bit_size: 30 fieldset/CFGR: description: configuration register 1 fields: - - name: DMNGT - description: DMA transfer enable - bit_offset: 0 - bit_size: 2 - enum: DMNGT - - name: RES - description: data resolution - bit_offset: 2 - bit_size: 3 - enum: RES - - name: EXTSEL - description: group regular external trigger source - bit_offset: 5 - bit_size: 5 - enum: EXTSEL - - name: EXTEN - description: group regular external trigger polarity - bit_offset: 10 - bit_size: 2 - enum: EXTEN - - name: OVRMOD - description: group regular overrun configuration - bit_offset: 12 - bit_size: 1 - enum: OVRMOD - - name: CONT - description: group regular continuous conversion mode - bit_offset: 13 - bit_size: 1 - - name: AUTDLY - description: low power auto wait - bit_offset: 14 - bit_size: 1 - - name: DISCEN - description: group regular sequencer discontinuous mode - bit_offset: 16 - bit_size: 1 - - name: DISCNUM - description: group regular sequencer discontinuous number of ranks - bit_offset: 17 - bit_size: 3 - - name: JDISCEN - description: group injected sequencer discontinuous mode - bit_offset: 20 - bit_size: 1 - - name: JQM - description: group injected contexts queue mode - bit_offset: 21 - bit_size: 1 - enum: JQM - - name: AWD1SGL - description: analog watchdog 1 monitoring a single channel or all channels - bit_offset: 22 - bit_size: 1 - enum: AWD1SGL - - name: AWD1EN - description: analog watchdog 1 enable on scope group regular - bit_offset: 23 - bit_size: 1 - - name: JAWD1EN - description: analog watchdog 1 enable on scope group injected - bit_offset: 24 - bit_size: 1 - - name: JAUTO - description: group injected automatic trigger mode - bit_offset: 25 - bit_size: 1 - - name: AWD1CH - description: analog watchdog 1 monitored channel selection - bit_offset: 26 - bit_size: 5 - - name: JQDIS - description: group injected contexts queue disable - bit_offset: 31 - bit_size: 1 + - name: DMNGT + description: DMA transfer enable + bit_offset: 0 + bit_size: 2 + enum: DMNGT + - name: RES + description: data resolution + bit_offset: 2 + bit_size: 3 + enum: RES + - name: EXTSEL + description: group regular external trigger source + bit_offset: 5 + bit_size: 5 + enum: EXTSEL + - name: EXTEN + description: group regular external trigger polarity + bit_offset: 10 + bit_size: 2 + enum: EXTEN + - name: OVRMOD + description: group regular overrun configuration + bit_offset: 12 + bit_size: 1 + enum: OVRMOD + - name: CONT + description: group regular continuous conversion mode + bit_offset: 13 + bit_size: 1 + - name: AUTDLY + description: low power auto wait + bit_offset: 14 + bit_size: 1 + - name: DISCEN + description: group regular sequencer discontinuous mode + bit_offset: 16 + bit_size: 1 + - name: DISCNUM + description: group regular sequencer discontinuous number of ranks + bit_offset: 17 + bit_size: 3 + - name: JDISCEN + description: group injected sequencer discontinuous mode + bit_offset: 20 + bit_size: 1 + - name: JQM + description: group injected contexts queue mode + bit_offset: 21 + bit_size: 1 + enum: JQM + - name: AWD1SGL + description: analog watchdog 1 monitoring a single channel or all channels + bit_offset: 22 + bit_size: 1 + enum: AWD1SGL + - name: AWD1EN + description: analog watchdog 1 enable on scope group regular + bit_offset: 23 + bit_size: 1 + - name: JAWD1EN + description: analog watchdog 1 enable on scope group injected + bit_offset: 24 + bit_size: 1 + - name: JAUTO + description: group injected automatic trigger mode + bit_offset: 25 + bit_size: 1 + - name: AWD1CH + description: analog watchdog 1 monitored channel selection + bit_offset: 26 + bit_size: 5 + - name: JQDIS + description: group injected contexts queue disable + bit_offset: 31 + bit_size: 1 fieldset/CFGR2: description: configuration register 2 fields: - - name: ROVSE - description: oversampler enable on scope group regular - bit_offset: 0 - bit_size: 1 - - name: JOVSE - description: oversampler enable on scope group injected - bit_offset: 1 - bit_size: 1 - - name: OVSS - description: oversampling shift - bit_offset: 5 - bit_size: 4 - - name: TROVS - description: oversampling discontinuous mode (triggered mode) for group regular - bit_offset: 9 - bit_size: 1 - enum: TROVS - - name: ROVSM - description: Regular Oversampling mode - bit_offset: 10 - bit_size: 1 - enum: ROVSM - - name: RSHIFT1 - description: Right-shift data after Offset 1 correction - bit_offset: 11 - bit_size: 1 - - name: RSHIFT2 - description: Right-shift data after Offset 2 correction - bit_offset: 12 - bit_size: 1 - - name: RSHIFT3 - description: Right-shift data after Offset 3 correction - bit_offset: 13 - bit_size: 1 - - name: RSHIFT4 - description: Right-shift data after Offset 4 correction - bit_offset: 14 - bit_size: 1 - - name: OSVR - description: Oversampling ratio - bit_offset: 16 - bit_size: 10 - - name: LSHIFT - description: Left shift factor - bit_offset: 28 - bit_size: 4 + - name: ROVSE + description: oversampler enable on scope group regular + bit_offset: 0 + bit_size: 1 + - name: JOVSE + description: oversampler enable on scope group injected + bit_offset: 1 + bit_size: 1 + - name: OVSS + description: oversampling shift + bit_offset: 5 + bit_size: 4 + - name: TROVS + description: oversampling discontinuous mode (triggered mode) for group regular + bit_offset: 9 + bit_size: 1 + enum: TROVS + - name: ROVSM + description: Regular Oversampling mode + bit_offset: 10 + bit_size: 1 + enum: ROVSM + - name: RSHIFT1 + description: Right-shift data after Offset 1 correction + bit_offset: 11 + bit_size: 1 + - name: RSHIFT2 + description: Right-shift data after Offset 2 correction + bit_offset: 12 + bit_size: 1 + - name: RSHIFT3 + description: Right-shift data after Offset 3 correction + bit_offset: 13 + bit_size: 1 + - name: RSHIFT4 + description: Right-shift data after Offset 4 correction + bit_offset: 14 + bit_size: 1 + - name: OSVR + description: Oversampling ratio + bit_offset: 16 + bit_size: 10 + - name: LSHIFT + description: Left shift factor + bit_offset: 28 + bit_size: 4 fieldset/CR: description: control register fields: - - name: ADEN - description: enable - bit_offset: 0 - bit_size: 1 - - name: ADDIS - description: disable - bit_offset: 1 - bit_size: 1 - - name: ADSTART - description: group regular conversion start - bit_offset: 2 - bit_size: 1 - - name: JADSTART - description: group injected conversion start - bit_offset: 3 - bit_size: 1 - - name: ADSTP - description: group regular conversion stop - bit_offset: 4 - bit_size: 1 - enum: ADSTP - - name: JADSTP - description: group injected conversion stop - bit_offset: 5 - bit_size: 1 - enum: ADSTP - - name: BOOST - description: Boost mode control - bit_offset: 8 - bit_size: 2 - enum: BOOST - - name: ADCALLIN - description: Linearity calibration - bit_offset: 16 - bit_size: 1 - - name: LINCALRDYW1 - description: Linearity calibration ready Word 1 - bit_offset: 22 - bit_size: 1 - - name: LINCALRDYW2 - description: Linearity calibration ready Word 2 - bit_offset: 23 - bit_size: 1 - - name: LINCALRDYW3 - description: Linearity calibration ready Word 3 - bit_offset: 24 - bit_size: 1 - - name: LINCALRDYW4 - description: Linearity calibration ready Word 4 - bit_offset: 25 - bit_size: 1 - - name: LINCALRDYW5 - description: Linearity calibration ready Word 5 - bit_offset: 26 - bit_size: 1 - - name: LINCALRDYW6 - description: Linearity calibration ready Word 6 - bit_offset: 27 - bit_size: 1 - - name: ADVREGEN - description: voltage regulator enable - bit_offset: 28 - bit_size: 1 - - name: DEEPPWD - description: deep power down enable - bit_offset: 29 - bit_size: 1 - - name: ADCALDIF - description: differential mode for calibration - bit_offset: 30 - bit_size: 1 - enum: ADCALDIF - - name: ADCAL - description: calibration - bit_offset: 31 - bit_size: 1 + - name: ADEN + description: enable + bit_offset: 0 + bit_size: 1 + - name: ADDIS + description: disable + bit_offset: 1 + bit_size: 1 + - name: ADSTART + description: group regular conversion start + bit_offset: 2 + bit_size: 1 + - name: JADSTART + description: group injected conversion start + bit_offset: 3 + bit_size: 1 + - name: ADSTP + description: group regular conversion stop + bit_offset: 4 + bit_size: 1 + enum: ADSTP + - name: JADSTP + description: group injected conversion stop + bit_offset: 5 + bit_size: 1 + enum: ADSTP + - name: BOOST + description: Boost mode control + bit_offset: 8 + bit_size: 2 + enum: BOOST + - name: ADCALLIN + description: Linearity calibration + bit_offset: 16 + bit_size: 1 + - name: LINCALRDYW1 + description: Linearity calibration ready Word 1 + bit_offset: 22 + bit_size: 1 + - name: LINCALRDYW2 + description: Linearity calibration ready Word 2 + bit_offset: 23 + bit_size: 1 + - name: LINCALRDYW3 + description: Linearity calibration ready Word 3 + bit_offset: 24 + bit_size: 1 + - name: LINCALRDYW4 + description: Linearity calibration ready Word 4 + bit_offset: 25 + bit_size: 1 + - name: LINCALRDYW5 + description: Linearity calibration ready Word 5 + bit_offset: 26 + bit_size: 1 + - name: LINCALRDYW6 + description: Linearity calibration ready Word 6 + bit_offset: 27 + bit_size: 1 + - name: ADVREGEN + description: voltage regulator enable + bit_offset: 28 + bit_size: 1 + - name: DEEPPWD + description: deep power down enable + bit_offset: 29 + bit_size: 1 + - name: ADCALDIF + description: differential mode for calibration + bit_offset: 30 + bit_size: 1 + enum: ADCALDIF + - name: ADCAL + description: calibration + bit_offset: 31 + bit_size: 1 fieldset/DIFSEL: description: channel differential or single-ended mode selection register fields: - - name: DIFSEL - description: channel differential or single-ended mode for channel - bit_offset: 0 - bit_size: 1 - array: - len: 20 - stride: 1 - enum: DIFSEL + - name: DIFSEL + description: channel differential or single-ended mode for channel + bit_offset: 0 + bit_size: 1 + array: + len: 20 + stride: 1 + enum: DIFSEL fieldset/DR: description: group regular conversion data register fields: - - name: RDATA - description: group regular conversion data - bit_offset: 0 - bit_size: 16 + - name: RDATA + description: group regular conversion data + bit_offset: 0 + bit_size: 16 fieldset/HTR1: description: analog watchdog 2 threshold register fields: - - name: HTR1 - description: analog watchdog 2 threshold low - bit_offset: 0 - bit_size: 26 + - name: HTR1 + description: analog watchdog 2 threshold low + bit_offset: 0 + bit_size: 26 fieldset/HTR2: description: watchdog higher threshold register 2 fields: - - name: HTR2 - description: Analog watchdog 2 higher threshold - bit_offset: 0 - bit_size: 26 + - name: HTR2 + description: Analog watchdog 2 higher threshold + bit_offset: 0 + bit_size: 26 fieldset/HTR3: description: watchdog higher threshold register 3 fields: - - name: HTR3 - description: Analog watchdog 3 higher threshold - bit_offset: 0 - bit_size: 26 + - name: HTR3 + description: Analog watchdog 3 higher threshold + bit_offset: 0 + bit_size: 26 fieldset/IER: description: interrupt enable register fields: - - name: ADRDYIE - description: ready interrupt - bit_offset: 0 - bit_size: 1 - - name: EOSMPIE - description: group regular end of sampling interrupt - bit_offset: 1 - bit_size: 1 - - name: EOCIE - description: group regular end of unitary conversion interrupt - bit_offset: 2 - bit_size: 1 - - name: EOSIE - description: group regular end of sequence conversions interrupt - bit_offset: 3 - bit_size: 1 - - name: OVRIE - description: group regular overrun interrupt - bit_offset: 4 - bit_size: 1 - - name: JEOCIE - description: group injected end of unitary conversion interrupt - bit_offset: 5 - bit_size: 1 - - name: JEOSIE - description: group injected end of sequence conversions interrupt - bit_offset: 6 - bit_size: 1 - - name: AWD1IE - description: analog watchdog 1 interrupt - bit_offset: 7 - bit_size: 1 - - name: AWD2IE - description: analog watchdog 2 interrupt - bit_offset: 8 - bit_size: 1 - - name: AWD3IE - description: analog watchdog 3 interrupt - bit_offset: 9 - bit_size: 1 - - name: JQOVFIE - description: group injected contexts queue overflow interrupt - bit_offset: 10 - bit_size: 1 + - name: ADRDYIE + description: ready interrupt + bit_offset: 0 + bit_size: 1 + - name: EOSMPIE + description: group regular end of sampling interrupt + bit_offset: 1 + bit_size: 1 + - name: EOCIE + description: group regular end of unitary conversion interrupt + bit_offset: 2 + bit_size: 1 + - name: EOSIE + description: group regular end of sequence conversions interrupt + bit_offset: 3 + bit_size: 1 + - name: OVRIE + description: group regular overrun interrupt + bit_offset: 4 + bit_size: 1 + - name: JEOCIE + description: group injected end of unitary conversion interrupt + bit_offset: 5 + bit_size: 1 + - name: JEOSIE + description: group injected end of sequence conversions interrupt + bit_offset: 6 + bit_size: 1 + - name: AWD1IE + description: analog watchdog 1 interrupt + bit_offset: 7 + bit_size: 1 + - name: AWD2IE + description: analog watchdog 2 interrupt + bit_offset: 8 + bit_size: 1 + - name: AWD3IE + description: analog watchdog 3 interrupt + bit_offset: 9 + bit_size: 1 + - name: JQOVFIE + description: group injected contexts queue overflow interrupt + bit_offset: 10 + bit_size: 1 fieldset/ISR: description: interrupt and status register fields: - - name: ADRDY - description: ready flag - bit_offset: 0 - bit_size: 1 - - name: EOSMP - description: group regular end of sampling flag - bit_offset: 1 - bit_size: 1 - - name: EOC - description: group regular end of unitary conversion flag - bit_offset: 2 - bit_size: 1 - - name: EOS - description: group regular end of sequence conversions flag - bit_offset: 3 - bit_size: 1 - - name: OVR - description: group regular overrun flag - bit_offset: 4 - bit_size: 1 - - name: JEOC - description: group injected end of unitary conversion flag - bit_offset: 5 - bit_size: 1 - - name: JEOS - description: group injected end of sequence conversions flag - bit_offset: 6 - bit_size: 1 - - name: AWD1 - description: analog watchdog 1 flag - bit_offset: 7 - bit_size: 1 - - name: AWD2 - description: analog watchdog 2 flag - bit_offset: 8 - bit_size: 1 - - name: AWD3 - description: analog watchdog 3 flag - bit_offset: 9 - bit_size: 1 - - name: JQOVF - description: group injected contexts queue overflow flag - bit_offset: 10 - bit_size: 1 - - name: LDORDY - description: ADC LDO output voltage ready (not always available) - bit_offset: 12 - bit_size: 1 + - name: ADRDY + description: ready flag + bit_offset: 0 + bit_size: 1 + - name: EOSMP + description: group regular end of sampling flag + bit_offset: 1 + bit_size: 1 + - name: EOC + description: group regular end of unitary conversion flag + bit_offset: 2 + bit_size: 1 + - name: EOS + description: group regular end of sequence conversions flag + bit_offset: 3 + bit_size: 1 + - name: OVR + description: group regular overrun flag + bit_offset: 4 + bit_size: 1 + - name: JEOC + description: group injected end of unitary conversion flag + bit_offset: 5 + bit_size: 1 + - name: JEOS + description: group injected end of sequence conversions flag + bit_offset: 6 + bit_size: 1 + - name: AWD1 + description: analog watchdog 1 flag + bit_offset: 7 + bit_size: 1 + - name: AWD2 + description: analog watchdog 2 flag + bit_offset: 8 + bit_size: 1 + - name: AWD3 + description: analog watchdog 3 flag + bit_offset: 9 + bit_size: 1 + - name: JQOVF + description: group injected contexts queue overflow flag + bit_offset: 10 + bit_size: 1 + - name: LDORDY + description: ADC LDO output voltage ready (not always available) + bit_offset: 12 + bit_size: 1 fieldset/JDR: description: group injected sequencer rank 1 register fields: - - name: JDATA - description: group injected sequencer rank 1 conversion data - bit_offset: 0 - bit_size: 32 + - name: JDATA + description: group injected sequencer rank 1 conversion data + bit_offset: 0 + bit_size: 32 fieldset/JSQR: description: group injected sequencer register fields: - - name: JL - description: group injected sequencer scan length - bit_offset: 0 - bit_size: 2 - - name: JEXTSEL - description: group injected external trigger source - bit_offset: 2 - bit_size: 5 - enum: JEXTSEL - - name: JEXTEN - description: group injected external trigger polarity - bit_offset: 7 - bit_size: 2 - enum: JEXTEN - - name: JSQ1 - description: group injected sequencer rank 1-4 - bit_offset: 9 - bit_size: 5 - array: - len: 4 - stride: 6 + - name: JL + description: group injected sequencer scan length + bit_offset: 0 + bit_size: 2 + - name: JEXTSEL + description: group injected external trigger source + bit_offset: 2 + bit_size: 5 + enum: JEXTSEL + - name: JEXTEN + description: group injected external trigger polarity + bit_offset: 7 + bit_size: 2 + enum: JEXTEN + - name: JSQ1 + description: group injected sequencer rank 1-4 + bit_offset: 9 + bit_size: 5 + array: + len: 4 + stride: 6 fieldset/LTR1: description: analog watchdog 1 threshold register fields: - - name: LTR1 - description: analog watchdog 1 threshold low - bit_offset: 0 - bit_size: 26 + - name: LTR1 + description: analog watchdog 1 threshold low + bit_offset: 0 + bit_size: 26 fieldset/LTR2: description: watchdog lower threshold register 2 fields: - - name: LTR2 - description: Analog watchdog 2 lower threshold - bit_offset: 0 - bit_size: 26 + - name: LTR2 + description: Analog watchdog 2 lower threshold + bit_offset: 0 + bit_size: 26 fieldset/LTR3: description: watchdog lower threshold register 3 fields: - - name: LTR3 - description: Analog watchdog 3 lower threshold - bit_offset: 0 - bit_size: 26 + - name: LTR3 + description: Analog watchdog 3 lower threshold + bit_offset: 0 + bit_size: 26 fieldset/OFR: description: offset number x register fields: - - name: OFFSET1 - description: offset number x offset level - bit_offset: 0 - bit_size: 26 - - name: OFFSET1_CH - description: offset number x channel selection - bit_offset: 26 - bit_size: 5 - - name: SSATE - description: Signed saturation enable - bit_offset: 31 - bit_size: 1 + - name: OFFSET1 + description: offset number x offset level + bit_offset: 0 + bit_size: 26 + - name: OFFSET1_CH + description: offset number x channel selection + bit_offset: 26 + bit_size: 5 + - name: SSATE + description: Signed saturation enable + bit_offset: 31 + bit_size: 1 fieldset/PCSEL: description: channel preselection register fields: - - name: PCSEL - description: "Channel x (VINP[i]) pre selection" - bit_offset: 0 - bit_size: 1 - array: - len: 20 - stride: 1 - enum: PCSEL + - name: PCSEL + description: Channel x (VINP[i]) pre selection + bit_offset: 0 + bit_size: 1 + array: + len: 20 + stride: 1 + enum: PCSEL fieldset/SMPR: description: sampling time register n fields: - - name: SMP - description: channel n * 10 + x sampling time - bit_offset: 0 - bit_size: 3 - array: - len: 10 - stride: 3 - enum: SAMPLE_TIME + - name: SMP + description: channel n * 10 + x sampling time + bit_offset: 0 + bit_size: 3 + array: + len: 10 + stride: 3 + enum: SAMPLE_TIME fieldset/SQR1: description: group regular sequencer ranks register 1 fields: - - name: L - description: L3 - bit_offset: 0 - bit_size: 4 - - name: SQ - description: group regular sequencer rank 1-4 - bit_offset: 6 - bit_size: 5 - array: - len: 4 - stride: 6 + - name: L + description: L3 + bit_offset: 0 + bit_size: 4 + - name: SQ + description: group regular sequencer rank 1-4 + bit_offset: 6 + bit_size: 5 + array: + len: 4 + stride: 6 fieldset/SQR2: description: group regular sequencer ranks register 2 fields: - - name: SQ - description: group regular sequencer rank 5-9 - bit_offset: 0 - bit_size: 5 - array: - len: 5 - stride: 6 + - name: SQ + description: group regular sequencer rank 5-9 + bit_offset: 0 + bit_size: 5 + array: + len: 5 + stride: 6 fieldset/SQR3: description: group regular sequencer ranks register 3 fields: - - name: SQ - description: group regular sequencer rank 10-14 - bit_offset: 0 - bit_size: 5 - array: - len: 5 - stride: 6 + - name: SQ + description: group regular sequencer rank 10-14 + bit_offset: 0 + bit_size: 5 + array: + len: 5 + stride: 6 fieldset/SQR4: description: group regular sequencer ranks register 4 fields: - - name: SQ - description: group regular sequencer rank 15-16 - bit_offset: 0 - bit_size: 5 - array: - len: 2 - stride: 6 + - name: SQ + description: group regular sequencer rank 15-16 + bit_offset: 0 + bit_size: 5 + array: + len: 2 + stride: 6 enum/ADCALDIF: bit_size: 1 variants: - - name: SingleEnded - description: Calibration for single-ended mode - value: 0 - - name: Differential - description: Calibration for differential mode - value: 1 + - name: SingleEnded + description: Calibration for single-ended mode + value: 0 + - name: Differential + description: Calibration for differential mode + value: 1 enum/ADSTP: bit_size: 1 variants: - - name: Stop - description: Stop conversion of channel - value: 1 + - name: Stop + description: Stop conversion of channel + value: 1 enum/AWD1SGL: bit_size: 1 variants: - - name: All - description: Analog watchdog 1 enabled on all channels - value: 0 - - name: Single - description: Analog watchdog 1 enabled on single channel selected in AWD1CH - value: 1 + - name: All + description: Analog watchdog 1 enabled on all channels + value: 0 + - name: Single + description: Analog watchdog 1 enabled on single channel selected in AWD1CH + value: 1 enum/BOOST: bit_size: 2 variants: - - name: LT6_25 - description: Boost mode used when clock ≤ 6.25 MHz - value: 0 - - name: LT12_5 - description: Boost mode used when 6.25 MHz < clock ≤ 12.5 MHz - value: 1 - - name: LT25 - description: Boost mode used when 12.5 MHz < clock ≤ 25.0 MHz - value: 2 - - name: LT50 - description: Boost mode used when 25.0 MHz < clock ≤ 50.0 MHz - value: 3 + - name: LT6_25 + description: Boost mode used when clock ≤ 6.25 MHz + value: 0 + - name: LT12_5 + description: Boost mode used when 6.25 MHz < clock ≤ 12.5 MHz + value: 1 + - name: LT25 + description: Boost mode used when 12.5 MHz < clock ≤ 25.0 MHz + value: 2 + - name: LT50 + description: Boost mode used when 25.0 MHz < clock ≤ 50.0 MHz + value: 3 enum/DIFSEL: bit_size: 1 variants: - - name: SingleEnded - description: Input channel is configured in single-ended mode - value: 0 - - name: Differential - description: Input channel is configured in differential mode - value: 1 + - name: SingleEnded + description: Input channel is configured in single-ended mode + value: 0 + - name: Differential + description: Input channel is configured in differential mode + value: 1 enum/DMNGT: bit_size: 2 variants: - - name: DR - description: Store output data in DR only - value: 0 - - name: DMA_OneShot - description: DMA One Shot Mode selected - value: 1 - - name: DFSDM - description: DFSDM mode selected - value: 2 - - name: DMA_Circular - description: DMA Circular Mode selected - value: 3 + - name: DR + description: Store output data in DR only + value: 0 + - name: DMA_OneShot + description: DMA One Shot Mode selected + value: 1 + - name: DFSDM + description: DFSDM mode selected + value: 2 + - name: DMA_Circular + description: DMA Circular Mode selected + value: 3 enum/EXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/EXTSEL: bit_size: 5 variants: - - name: TIM1_CC1 - description: Timer 1 CC1 event - value: 0 - - name: TIM1_CC2 - description: Timer 1 CC2 event - value: 1 - - name: TIM1_CC3 - description: Timer 1 CC3 event - value: 2 - - name: TIM2_CC2 - description: Timer 2 CC2 event - value: 3 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 4 - - name: TIM4_CC4 - description: Timer 4 CC4 event - value: 5 - - name: EXTI11 - description: EXTI line 11 - value: 6 - - name: TIM8_TRGO - description: Timer 8 TRGO event - value: 7 - - name: TIM8_TRGO2 - description: Timer 8 TRGO2 event - value: 8 - - name: TIM1_TRGO - description: Timer 1 TRGO event - value: 9 - - name: TIM1_TRGO2 - description: Timer 1 TRGO2 event - value: 10 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 11 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 12 - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 13 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 14 - - name: TIM3_CC4 - description: Timer 3 CC4 event - value: 15 - - name: HRTIM1_ADCTRG1 - description: HRTIM1_ADCTRG1 event - value: 16 - - name: HRTIM1_ADCTRG3 - description: HRTIM1_ADCTRG3 event - value: 17 - - name: LPTIM1_OUT - description: LPTIM1_OUT event - value: 18 - - name: LPTIM2_OUT - description: LPTIM2_OUT event - value: 19 - - name: LPTIM3_OUT - description: LPTIM3_OUT event - value: 20 + - name: TIM1_CC1 + description: Timer 1 CC1 event + value: 0 + - name: TIM1_CC2 + description: Timer 1 CC2 event + value: 1 + - name: TIM1_CC3 + description: Timer 1 CC3 event + value: 2 + - name: TIM2_CC2 + description: Timer 2 CC2 event + value: 3 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 4 + - name: TIM4_CC4 + description: Timer 4 CC4 event + value: 5 + - name: EXTI11 + description: EXTI line 11 + value: 6 + - name: TIM8_TRGO + description: Timer 8 TRGO event + value: 7 + - name: TIM8_TRGO2 + description: Timer 8 TRGO2 event + value: 8 + - name: TIM1_TRGO + description: Timer 1 TRGO event + value: 9 + - name: TIM1_TRGO2 + description: Timer 1 TRGO2 event + value: 10 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 11 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 12 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 13 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 14 + - name: TIM3_CC4 + description: Timer 3 CC4 event + value: 15 + - name: HRTIM1_ADCTRG1 + description: HRTIM1_ADCTRG1 event + value: 16 + - name: HRTIM1_ADCTRG3 + description: HRTIM1_ADCTRG3 event + value: 17 + - name: LPTIM1_OUT + description: LPTIM1_OUT event + value: 18 + - name: LPTIM2_OUT + description: LPTIM2_OUT event + value: 19 + - name: LPTIM3_OUT + description: LPTIM3_OUT event + value: 20 enum/JEXTEN: bit_size: 2 variants: - - name: Disabled - description: Trigger detection disabled - value: 0 - - name: RisingEdge - description: Trigger detection on the rising edge - value: 1 - - name: FallingEdge - description: Trigger detection on the falling edge - value: 2 - - name: BothEdges - description: Trigger detection on both the rising and falling edges - value: 3 + - name: Disabled + description: Trigger detection disabled + value: 0 + - name: RisingEdge + description: Trigger detection on the rising edge + value: 1 + - name: FallingEdge + description: Trigger detection on the falling edge + value: 2 + - name: BothEdges + description: Trigger detection on both the rising and falling edges + value: 3 enum/JEXTSEL: bit_size: 5 variants: - - name: TIM1_TRGO - description: Timer 1 TRGO event - value: 0 - - name: TIM1_CC4 - description: Timer 1 CC4 event - value: 1 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM2_CC1 - description: Timer 2 CC1 event - value: 3 - - name: TIM3_CC4 - description: Timer 3 CC4 event - value: 4 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 5 - - name: EXTI15 - description: EXTI line 15 - value: 6 - - name: TIM8_CC4 - description: Timer 8 CC4 event - value: 7 - - name: TIM1_TRGO2 - description: Timer 1 TRGO2 event - value: 8 - - name: TIM8_TRGO - description: Timer 8 TRGO event - value: 9 - - name: TIM8_TRGO2 - description: Timer 8 TRGO2 event - value: 10 - - name: TIM3_CC3 - description: Timer 3 CC3 event - value: 11 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 12 - - name: TIM3_CC1 - description: Timer 3 CC1 event - value: 13 - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 14 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 15 - - name: HRTIM1_ADCTRG2 - description: HRTIM1_ADCTRG2 event - value: 16 - - name: HRTIM1_ADCTRG4 - description: HRTIM1_ADCTRG4 event - value: 17 - - name: LPTIM1_OUT - description: LPTIM1_OUT event - value: 18 - - name: LPTIM2_OUT - description: LPTIM2_OUT event - value: 19 - - name: LPTIM3_OUT - description: LPTIM3_OUT event - value: 20 + - name: TIM1_TRGO + description: Timer 1 TRGO event + value: 0 + - name: TIM1_CC4 + description: Timer 1 CC4 event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM2_CC1 + description: Timer 2 CC1 event + value: 3 + - name: TIM3_CC4 + description: Timer 3 CC4 event + value: 4 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 5 + - name: EXTI15 + description: EXTI line 15 + value: 6 + - name: TIM8_CC4 + description: Timer 8 CC4 event + value: 7 + - name: TIM1_TRGO2 + description: Timer 1 TRGO2 event + value: 8 + - name: TIM8_TRGO + description: Timer 8 TRGO event + value: 9 + - name: TIM8_TRGO2 + description: Timer 8 TRGO2 event + value: 10 + - name: TIM3_CC3 + description: Timer 3 CC3 event + value: 11 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 12 + - name: TIM3_CC1 + description: Timer 3 CC1 event + value: 13 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 14 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 15 + - name: HRTIM1_ADCTRG2 + description: HRTIM1_ADCTRG2 event + value: 16 + - name: HRTIM1_ADCTRG4 + description: HRTIM1_ADCTRG4 event + value: 17 + - name: LPTIM1_OUT + description: LPTIM1_OUT event + value: 18 + - name: LPTIM2_OUT + description: LPTIM2_OUT event + value: 19 + - name: LPTIM3_OUT + description: LPTIM3_OUT event + value: 20 enum/JQM: bit_size: 1 variants: - - name: Mode0 - description: "JSQR Mode 0: Queue maintains the last written configuration into JSQR" - value: 0 - - name: Mode1 - description: "JSQR Mode 1: An empty queue disables software and hardware triggers of the injected sequence" - value: 1 + - name: Mode0 + description: 'JSQR Mode 0: Queue maintains the last written configuration into JSQR' + value: 0 + - name: Mode1 + description: 'JSQR Mode 1: An empty queue disables software and hardware triggers of the injected sequence' + value: 1 enum/OVRMOD: bit_size: 1 variants: - - name: Preserve - description: Preserve DR register when an overrun is detected - value: 0 - - name: Overwrite - description: Overwrite DR register when an overrun is detected - value: 1 + - name: Preserve + description: Preserve DR register when an overrun is detected + value: 0 + - name: Overwrite + description: Overwrite DR register when an overrun is detected + value: 1 enum/PCSEL: bit_size: 20 variants: - - name: NotPreselected - description: Input channel x is not pre-selected - value: 0 - - name: Preselected - description: Pre-select input channel x - value: 1 + - name: NotPreselected + description: Input channel x is not pre-selected + value: 0 + - name: Preselected + description: Pre-select input channel x + value: 1 enum/RES: bit_size: 3 variants: - - name: SixteenBit - description: 16-bit resolution - value: 0 - - name: FourteenBit - description: 14-bit resolution in legacy mode (not optimized power consumption) - value: 1 - - name: TwelveBit - description: 12-bit resolution in legacy mode (not optimized power consumption) - value: 2 - - name: TenBit - description: 10-bit resolution - value: 3 - - name: FourteenBitV - description: 14-bit resolution - value: 5 - - name: TwelveBitV - description: 12-bit resolution - value: 6 - - name: EightBit - description: 8-bit resolution - value: 7 + - name: SixteenBit + description: 16-bit resolution + value: 0 + - name: FourteenBit + description: 14-bit resolution in legacy mode (not optimized power consumption) + value: 1 + - name: TwelveBit + description: 12-bit resolution in legacy mode (not optimized power consumption) + value: 2 + - name: TenBit + description: 10-bit resolution + value: 3 + - name: FourteenBitV + description: 14-bit resolution + value: 5 + - name: TwelveBitV + description: 12-bit resolution + value: 6 + - name: EightBit + description: 8-bit resolution + value: 7 enum/ROVSM: bit_size: 1 variants: - - name: Continued - description: Oversampling is temporary stopped and continued after injection sequence - value: 0 - - name: Resumed - description: Oversampling is aborted and resumed from start after injection sequence - value: 1 + - name: Continued + description: Oversampling is temporary stopped and continued after injection sequence + value: 0 + - name: Resumed + description: Oversampling is aborted and resumed from start after injection sequence + value: 1 enum/SAMPLE_TIME: bit_size: 3 variants: - - name: Cycles1_5 - description: 1.5 clock cycles - value: 0 - - name: Cycles2_5 - description: 2.5 clock cycles - value: 1 - - name: Cycles8_5 - description: 8.5 clock cycles - value: 2 - - name: Cycles16_5 - description: 16.5 clock cycles - value: 3 - - name: Cycles32_5 - description: 32.5 clock cycles - value: 4 - - name: Cycles64_5 - description: 64.5 clock cycles - value: 5 - - name: Cycles387_5 - description: 387.5 clock cycles - value: 6 - - name: Cycles810_5 - description: 810.5 clock cycles - value: 7 + - name: Cycles1_5 + description: 1.5 clock cycles + value: 0 + - name: Cycles2_5 + description: 2.5 clock cycles + value: 1 + - name: Cycles8_5 + description: 8.5 clock cycles + value: 2 + - name: Cycles16_5 + description: 16.5 clock cycles + value: 3 + - name: Cycles32_5 + description: 32.5 clock cycles + value: 4 + - name: Cycles64_5 + description: 64.5 clock cycles + value: 5 + - name: Cycles387_5 + description: 387.5 clock cycles + value: 6 + - name: Cycles810_5 + description: 810.5 clock cycles + value: 7 enum/TROVS: bit_size: 1 variants: - - name: Automatic - description: All oversampled conversions for a channel are run following a trigger - value: 0 - - name: Triggered - description: Each oversampled conversion for a channel needs a new trigger - value: 1 + - name: Automatic + description: All oversampled conversions for a channel are run following a trigger + value: 0 + - name: Triggered + description: Each oversampled conversion for a channel needs a new trigger + value: 1 diff --git a/data/registers/adccommon_f3.yaml b/data/registers/adccommon_f3.yaml index 61dad4d..c48475b 100644 --- a/data/registers/adccommon_f3.yaml +++ b/data/registers/adccommon_f3.yaml @@ -1,286 +1,284 @@ ---- block/ADC_COMMON: description: ADC common registers items: - - name: CSR - description: ADC Common status register - byte_offset: 0 - access: Read - fieldset: CSR - - name: CCR - description: ADC common control register - byte_offset: 8 - fieldset: CCR - - name: CDR - description: ADC common regular data register for dual and triple modes - byte_offset: 12 - access: Read - fieldset: CDR -fieldset/CSR: - decsription: ADC common status register - fields: - - name: ADRDY_MST - description: Master ADC ready - bit_offset: 0 - bit_size: 1 - - name: EOSMP_MST - description: End of sampling phase flag of the master ADC - bit_offset: 1 - bit_size: 1 - enum: ENDED - - name: EOC_MST - description: End of regular conversion of the master ADC - bit_offset: 2 - bit_size: 1 - enum: ENDED - - name: EOS_MST - description: End of regular sequence flag of the master ADC - bit_offset: 3 - bit_size: 1 - enum: ENDED - - name: OVR_MST - description: Overrun flag of the master ADC - bit_offset: 4 - bit_size: 1 - enum: OVR - - name: JEOC_MST - description: End of injected conversion of the master ADC - bit_offset: 5 - bit_size: 1 - enum: ENDED - - name: JEOS - description: End of injected sequence flag of the master ADC - bit_offset: 6 - bit_size: 1 - enum: ENDED - - name: AWD1_MST - description: Analog watchdog 1 flag of the master ADC - bit_offset: 7 - bit_size: 1 - enum: AWD - - name: AWD2_MST - description: Analog watchdog 2 flag of the master ADC - bit_offset: 8 - bit_size: 1 - enum: AWD - - name: AWD3_MST - description: Analog watchdog 3 flag of the master ADC - bit_offset: 9 - bit_size: 1 - enum: AWD - - name: JQOVF_MST - description: Injected context queue overflow flag of the master ADC - bit_offset: 10 - bit_size: 1 - enum: JQOVF - - name: ADRDY_SLV - description: Slave ADC ready - bit_offset: 16 - bit_size: 1 - - name: EOSMP_SLV - description: End of sampling phase flag of the slave ADC - bit_offset: 17 - bit_size: 1 - enum: ENDED - - name: EOC_SLV - description: End of regular conversion of the slave ADC - bit_offset: 18 - bit_size: 1 - enum: ENDED - - name: EOS_SLV - description: End of regular sequence flag of the slave ADC - bit_offset: 19 - bit_size: 1 - enum: ENDED - - name: OVR_SLV - description: Overrun flag of the slave ADC - bit_offset: 20 - bit_size: 1 - enum: OVR - - name: JEOC_SLV - description: End of injected conversion of the slave ADC - bit_offset: 21 - bit_size: 1 - enum: ENDED - - name: JEOS_SLV - description: End of injected sequence flag of the slave ADC - bit_offset: 22 - bit_size: 1 - enum: ENDED - - name: AWD1_SLV - description: Analog watchdog 1 flag of the slave ADC - bit_offset: 23 - bit_size: 1 - enum: AWD - - name: AWD2_SLV - description: Analog watchdog 2 flag of the slave ADC - bit_offset: 24 - bit_size: 1 - enum: AWD - - name: AWD3_SLV - description: Analog watchdog 3 flag of the slave ADC - bit_offset: 25 - bit_size: 1 - enum: AWD - - name: JQOVF_SLV - description: Injected context queue overflow flag of the slave ADC - bit_offset: 26 - bit_size: 1 - enum: JQOVF + - name: CSR + description: ADC Common status register + byte_offset: 0 + access: Read + fieldset: CSR + - name: CCR + description: ADC common control register + byte_offset: 8 + fieldset: CCR + - name: CDR + description: ADC common regular data register for dual and triple modes + byte_offset: 12 + access: Read + fieldset: CDR fieldset/CCR: description: ADC common control register fields: - - name: DUAL - description: Dual ADC mode selection - bit_offset: 0 - bit_size: 5 - enum: DUAL - - name: DELAY - description: Delay between 2 sampling phases - bit_offset: 8 - bit_size: 4 - - name: DMACFG - description: DMA configuration (for multi-ADC mode) - bit_offset: 13 - bit_size: 1 - enum: DMACFG - - name: MDMA - description: Direct memory access mode for multi ADC mode - bit_offset: 14 - bit_size: 2 - enum: MDMA - - name: CKMODE - description: ADC clock mode - bit_offset: 16 - bit_size: 2 - enum: CKMODE - - name: VREFEN - description: VREFINT enable - bit_offset: 22 - bit_size: 1 - - name: TSEN - description: Temperature sensor enable - bit_offset: 23 - bit_size: 1 - - name: VBATEN - description: VBAT enable - bit_offset: 24 - bit_size: 1 + - name: DUAL + description: Dual ADC mode selection + bit_offset: 0 + bit_size: 5 + enum: DUAL + - name: DELAY + description: Delay between 2 sampling phases + bit_offset: 8 + bit_size: 4 + - name: DMACFG + description: DMA configuration (for multi-ADC mode) + bit_offset: 13 + bit_size: 1 + enum: DMACFG + - name: MDMA + description: Direct memory access mode for multi ADC mode + bit_offset: 14 + bit_size: 2 + enum: MDMA + - name: CKMODE + description: ADC clock mode + bit_offset: 16 + bit_size: 2 + enum: CKMODE + - name: VREFEN + description: VREFINT enable + bit_offset: 22 + bit_size: 1 + - name: TSEN + description: Temperature sensor enable + bit_offset: 23 + bit_size: 1 + - name: VBATEN + description: VBAT enable + bit_offset: 24 + bit_size: 1 fieldset/CDR: description: ADC common regular data register for dual and triple modes fields: - - name: RDATA_MST - description: Regular data of the master ADC - bit_offset: 0 - bit_size: 16 - - name: RDATA_SLV - description: Regular data of the master ADC - bit_offset: 16 - bit_size: 16 -enum/ENDED: - description: End of operation - bit_size: 1 - variants: - - name: NotEnded - value: 0 - description: Operation is not ended - - name: Ended - value: 1 - description: Operation is ended -enum/OVR: - description: Overrun flag - bit_size: 1 - variants: - - name: NoOverrun - value: 0 - description: No overrun occurred - - name: Overrun - value: 1 - description: Overrun occurred + - name: RDATA_MST + description: Regular data of the master ADC + bit_offset: 0 + bit_size: 16 + - name: RDATA_SLV + description: Regular data of the master ADC + bit_offset: 16 + bit_size: 16 +fieldset/CSR: + fields: + - name: ADRDY_MST + description: Master ADC ready + bit_offset: 0 + bit_size: 1 + - name: EOSMP_MST + description: End of sampling phase flag of the master ADC + bit_offset: 1 + bit_size: 1 + enum: ENDED + - name: EOC_MST + description: End of regular conversion of the master ADC + bit_offset: 2 + bit_size: 1 + enum: ENDED + - name: EOS_MST + description: End of regular sequence flag of the master ADC + bit_offset: 3 + bit_size: 1 + enum: ENDED + - name: OVR_MST + description: Overrun flag of the master ADC + bit_offset: 4 + bit_size: 1 + enum: OVR + - name: JEOC_MST + description: End of injected conversion of the master ADC + bit_offset: 5 + bit_size: 1 + enum: ENDED + - name: JEOS + description: End of injected sequence flag of the master ADC + bit_offset: 6 + bit_size: 1 + enum: ENDED + - name: AWD1_MST + description: Analog watchdog 1 flag of the master ADC + bit_offset: 7 + bit_size: 1 + enum: AWD + - name: AWD2_MST + description: Analog watchdog 2 flag of the master ADC + bit_offset: 8 + bit_size: 1 + enum: AWD + - name: AWD3_MST + description: Analog watchdog 3 flag of the master ADC + bit_offset: 9 + bit_size: 1 + enum: AWD + - name: JQOVF_MST + description: Injected context queue overflow flag of the master ADC + bit_offset: 10 + bit_size: 1 + enum: JQOVF + - name: ADRDY_SLV + description: Slave ADC ready + bit_offset: 16 + bit_size: 1 + - name: EOSMP_SLV + description: End of sampling phase flag of the slave ADC + bit_offset: 17 + bit_size: 1 + enum: ENDED + - name: EOC_SLV + description: End of regular conversion of the slave ADC + bit_offset: 18 + bit_size: 1 + enum: ENDED + - name: EOS_SLV + description: End of regular sequence flag of the slave ADC + bit_offset: 19 + bit_size: 1 + enum: ENDED + - name: OVR_SLV + description: Overrun flag of the slave ADC + bit_offset: 20 + bit_size: 1 + enum: OVR + - name: JEOC_SLV + description: End of injected conversion of the slave ADC + bit_offset: 21 + bit_size: 1 + enum: ENDED + - name: JEOS_SLV + description: End of injected sequence flag of the slave ADC + bit_offset: 22 + bit_size: 1 + enum: ENDED + - name: AWD1_SLV + description: Analog watchdog 1 flag of the slave ADC + bit_offset: 23 + bit_size: 1 + enum: AWD + - name: AWD2_SLV + description: Analog watchdog 2 flag of the slave ADC + bit_offset: 24 + bit_size: 1 + enum: AWD + - name: AWD3_SLV + description: Analog watchdog 3 flag of the slave ADC + bit_offset: 25 + bit_size: 1 + enum: AWD + - name: JQOVF_SLV + description: Injected context queue overflow flag of the slave ADC + bit_offset: 26 + bit_size: 1 + enum: JQOVF enum/AWD: description: Analog watchdog flag bit_size: 1 variants: - - name: NoEvent - value: 0 - description: No analog watchdog event occurred - - name: Event - value: 1 - description: Analog watchdog event occurred -enum/JQOVF: - description: Injected context queue overflow flag - bit_size: 1 - variants: - - name: NoOverflow - value: 0 - description: No injected context queue overflow - - name: Overflow - value: 1 - description: Injected context queue overflow -enum/DUAL: - description: Dual ADC mode selection - bit_size: 5 - variants: - - name: Independent - value: 0 - description: Independent mode - - name: DualRJ - value: 1 - description: Dual, combined regular simultaneous + injected simultaneous mode - - name: DualRA - value: 2 - description: Dual, combined regular simultaneous + alternate trigger mode - - name: DualIJ - value: 3 - description: Dual, combined injected simultaneous + fast interleaved mode - - name: DualJ - value: 5 - description: Dual, injected simultaneous mode only - - name: DualR - value: 6 - description: Dual, regular simultaneous mode only - - name: DualI - value: 7 - description: dual, interleaved mode only - - name: DualA - value: 9 - description: Dual, alternate trigger mode only -enum/DMACFG: - description: DMA configuration (for multi-ADC mode) - bit_size: 1 - variants: - - name: OneShot - value: 0 - description: DMA one shot mode selected - - name: Circulator - value: 1 - description: DMA circular mode selected -enum/MDMA: - description: Direct memory access mode for multi ADC mode - bit_size: 2 - variants: - - name: Disabled - value: 0 - description: MDMA mode disabled - - name: Bits12_10 - value: 2 - description: MDMA mode enabled for 12 and 10-bit resolution - - name: Bit8_6 - value: 3 - description: MDMA mode enabled for 8 and 6-bit resolution + - name: NoEvent + description: No analog watchdog event occurred + value: 0 + - name: Event + description: Analog watchdog event occurred + value: 1 enum/CKMODE: description: ADC clock mode bit_size: 2 variants: - - name: Asynchronous - value: 0 - description: Use Kernel Clock adc_ker_ck_input divided by PRESC. Asynchronous mode - - name: SyncDiv1 - value: 1 - description: Use AHB clock rcc_hclk3. In this case rcc_hclk must equal sys_d1cpre_ck. - - name: SyncDiv2 - value: 2 - description: Use AHB clock rcc_hclk3 divided by 2. - - name: SyncDiv4 - value: 3 - description: Use AHB clock rcc_hclk3 divided by 4. \ No newline at end of file + - name: Asynchronous + description: Use Kernel Clock adc_ker_ck_input divided by PRESC. Asynchronous mode + value: 0 + - name: SyncDiv1 + description: Use AHB clock rcc_hclk3. In this case rcc_hclk must equal sys_d1cpre_ck. + value: 1 + - name: SyncDiv2 + description: Use AHB clock rcc_hclk3 divided by 2. + value: 2 + - name: SyncDiv4 + description: Use AHB clock rcc_hclk3 divided by 4. + value: 3 +enum/DMACFG: + description: DMA configuration (for multi-ADC mode) + bit_size: 1 + variants: + - name: OneShot + description: DMA one shot mode selected + value: 0 + - name: Circulator + description: DMA circular mode selected + value: 1 +enum/DUAL: + description: Dual ADC mode selection + bit_size: 5 + variants: + - name: Independent + description: Independent mode + value: 0 + - name: DualRJ + description: Dual, combined regular simultaneous + injected simultaneous mode + value: 1 + - name: DualRA + description: Dual, combined regular simultaneous + alternate trigger mode + value: 2 + - name: DualIJ + description: Dual, combined injected simultaneous + fast interleaved mode + value: 3 + - name: DualJ + description: Dual, injected simultaneous mode only + value: 5 + - name: DualR + description: Dual, regular simultaneous mode only + value: 6 + - name: DualI + description: dual, interleaved mode only + value: 7 + - name: DualA + description: Dual, alternate trigger mode only + value: 9 +enum/ENDED: + description: End of operation + bit_size: 1 + variants: + - name: NotEnded + description: Operation is not ended + value: 0 + - name: Ended + description: Operation is ended + value: 1 +enum/JQOVF: + description: Injected context queue overflow flag + bit_size: 1 + variants: + - name: NoOverflow + description: No injected context queue overflow + value: 0 + - name: Overflow + description: Injected context queue overflow + value: 1 +enum/MDMA: + description: Direct memory access mode for multi ADC mode + bit_size: 2 + variants: + - name: Disabled + description: MDMA mode disabled + value: 0 + - name: Bits12_10 + description: MDMA mode enabled for 12 and 10-bit resolution + value: 2 + - name: Bit8_6 + description: MDMA mode enabled for 8 and 6-bit resolution + value: 3 +enum/OVR: + description: Overrun flag + bit_size: 1 + variants: + - name: NoOverrun + description: No overrun occurred + value: 0 + - name: Overrun + description: Overrun occurred + value: 1 diff --git a/data/registers/adccommon_v2.yaml b/data/registers/adccommon_v2.yaml index 5d9a6a7..fb5a4dd 100644 --- a/data/registers/adccommon_v2.yaml +++ b/data/registers/adccommon_v2.yaml @@ -1,249 +1,248 @@ ---- block/ADC_COMMON: description: ADC common registers items: - - name: CSR - description: ADC Common status register - byte_offset: 0 - access: Read - fieldset: CSR - - name: CCR - description: ADC common control register - byte_offset: 4 - fieldset: CCR - - name: CDR - description: ADC common regular data register for dual and triple modes - byte_offset: 8 - access: Read - fieldset: CDR + - name: CSR + description: ADC Common status register + byte_offset: 0 + access: Read + fieldset: CSR + - name: CCR + description: ADC common control register + byte_offset: 4 + fieldset: CCR + - name: CDR + description: ADC common regular data register for dual and triple modes + byte_offset: 8 + access: Read + fieldset: CDR fieldset/CCR: description: ADC common control register fields: - - name: MULTI - description: Multi ADC mode selection - bit_offset: 0 - bit_size: 5 - enum: MULTI - - name: DELAY - description: Delay between 2 sampling phases - bit_offset: 8 - bit_size: 4 - - name: DDS - description: DMA disable selection for multi-ADC mode - bit_offset: 13 - bit_size: 1 - enum: DDS - - name: DMA - description: Direct memory access mode for multi ADC mode - bit_offset: 14 - bit_size: 2 - enum: DMA - - name: ADCPRE - description: ADC prescaler - bit_offset: 16 - bit_size: 2 - enum: ADCPRE - - name: VBATE - description: VBAT enable - bit_offset: 22 - bit_size: 1 - - name: TSVREFE - description: Temperature sensor and VREFINT enable - bit_offset: 23 - bit_size: 1 + - name: MULTI + description: Multi ADC mode selection + bit_offset: 0 + bit_size: 5 + enum: MULTI + - name: DELAY + description: Delay between 2 sampling phases + bit_offset: 8 + bit_size: 4 + - name: DDS + description: DMA disable selection for multi-ADC mode + bit_offset: 13 + bit_size: 1 + enum: DDS + - name: DMA + description: Direct memory access mode for multi ADC mode + bit_offset: 14 + bit_size: 2 + enum: DMA + - name: ADCPRE + description: ADC prescaler + bit_offset: 16 + bit_size: 2 + enum: ADCPRE + - name: VBATE + description: VBAT enable + bit_offset: 22 + bit_size: 1 + - name: TSVREFE + description: Temperature sensor and VREFINT enable + bit_offset: 23 + bit_size: 1 fieldset/CDR: description: ADC common regular data register for dual and triple modes fields: - - name: DATA - description: 1st data item of a pair of regular conversions - bit_offset: 0 - bit_size: 16 - array: - len: 2 - stride: 16 + - name: DATA + description: 1st data item of a pair of regular conversions + bit_offset: 0 + bit_size: 16 + array: + len: 2 + stride: 16 fieldset/CSR: description: ADC common status register fields: - - name: AWD - description: Analog watchdog flag of ADC 1 - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 8 - enum: AWD - - name: EOC - description: End of conversion of ADC 1 - bit_offset: 1 - bit_size: 1 - array: - len: 3 - stride: 8 - enum: EOC - - name: JEOC - description: Injected channel end of conversion of ADC 1 - bit_offset: 2 - bit_size: 1 - array: - len: 3 - stride: 8 - enum: JEOC - - name: JSTRT - description: Injected channel Start flag of ADC 1 - bit_offset: 3 - bit_size: 1 - array: - len: 3 - stride: 8 - enum: JSTRT - - name: STRT - description: Regular channel Start flag of ADC 1 - bit_offset: 4 - bit_size: 1 - array: - len: 3 - stride: 8 - enum: STRT - - name: OVR - description: Overrun flag of ADC 1 - bit_offset: 5 - bit_size: 1 - array: - len: 3 - stride: 8 - enum: OVR + - name: AWD + description: Analog watchdog flag of ADC 1 + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 8 + enum: AWD + - name: EOC + description: End of conversion of ADC 1 + bit_offset: 1 + bit_size: 1 + array: + len: 3 + stride: 8 + enum: EOC + - name: JEOC + description: Injected channel end of conversion of ADC 1 + bit_offset: 2 + bit_size: 1 + array: + len: 3 + stride: 8 + enum: JEOC + - name: JSTRT + description: Injected channel Start flag of ADC 1 + bit_offset: 3 + bit_size: 1 + array: + len: 3 + stride: 8 + enum: JSTRT + - name: STRT + description: Regular channel Start flag of ADC 1 + bit_offset: 4 + bit_size: 1 + array: + len: 3 + stride: 8 + enum: STRT + - name: OVR + description: Overrun flag of ADC 1 + bit_offset: 5 + bit_size: 1 + array: + len: 3 + stride: 8 + enum: OVR enum/ADCPRE: bit_size: 2 variants: - - name: Div2 - description: PCLK2 divided by 2 - value: 0 - - name: Div4 - description: PCLK2 divided by 4 - value: 1 - - name: Div6 - description: PCLK2 divided by 6 - value: 2 - - name: Div8 - description: PCLK2 divided by 8 - value: 3 + - name: Div2 + description: PCLK2 divided by 2 + value: 0 + - name: Div4 + description: PCLK2 divided by 4 + value: 1 + - name: Div6 + description: PCLK2 divided by 6 + value: 2 + - name: Div8 + description: PCLK2 divided by 8 + value: 3 enum/AWD: bit_size: 1 variants: - - name: NoEvent - description: No analog watchdog event occurred - value: 0 - - name: Event - description: Analog watchdog event occurred - value: 1 + - name: NoEvent + description: No analog watchdog event occurred + value: 0 + - name: Event + description: Analog watchdog event occurred + value: 1 enum/DDS: bit_size: 1 variants: - - name: Single - description: No new DMA request is issued after the last transfer - value: 0 - - name: Continuous - description: "DMA requests are issued as long as data are converted and DMA=01, 10 or 11" - value: 1 + - name: Single + description: No new DMA request is issued after the last transfer + value: 0 + - name: Continuous + description: DMA requests are issued as long as data are converted and DMA=01, 10 or 11 + value: 1 enum/DMA: bit_size: 2 variants: - - name: Disabled - description: DMA mode disabled - value: 0 - - name: Mode1 - description: DMA mode 1 enabled (2 / 3 half-words one by one - 1 then 2 then 3) - value: 1 - - name: Mode2 - description: DMA mode 2 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2) - value: 2 - - name: Mode3 - description: DMA mode 3 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2) - value: 3 + - name: Disabled + description: DMA mode disabled + value: 0 + - name: Mode1 + description: DMA mode 1 enabled (2 / 3 half-words one by one - 1 then 2 then 3) + value: 1 + - name: Mode2 + description: DMA mode 2 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2) + value: 2 + - name: Mode3 + description: DMA mode 3 enabled (2 / 3 half-words by pairs - 2&1 then 1&3 then 3&2) + value: 3 enum/EOC: bit_size: 1 variants: - - name: NotComplete - description: Conversion is not complete - value: 0 - - name: Complete - description: Conversion complete - value: 1 + - name: NotComplete + description: Conversion is not complete + value: 0 + - name: Complete + description: Conversion complete + value: 1 enum/JEOC: bit_size: 1 variants: - - name: NotComplete - description: Conversion is not complete - value: 0 - - name: Complete - description: Conversion complete - value: 1 + - name: NotComplete + description: Conversion is not complete + value: 0 + - name: Complete + description: Conversion complete + value: 1 enum/JSTRT: bit_size: 1 variants: - - name: NotStarted - description: No injected channel conversion started - value: 0 - - name: Started - description: Injected channel conversion has started - value: 1 + - name: NotStarted + description: No injected channel conversion started + value: 0 + - name: Started + description: Injected channel conversion has started + value: 1 enum/MULTI: bit_size: 5 variants: - - name: Independent - description: "All the ADCs independent: independent mode" - value: 0 - - name: DualRJ - description: "Dual ADC1 and ADC2, combined regular and injected simultaneous mode" - value: 1 - - name: DualRA - description: "Dual ADC1 and ADC2, combined regular and alternate trigger mode" - value: 2 - - name: DualJ - description: "Dual ADC1 and ADC2, injected simultaneous mode only" - value: 5 - - name: DualR - description: "Dual ADC1 and ADC2, regular simultaneous mode only" - value: 6 - - name: DualI - description: "Dual ADC1 and ADC2, interleaved mode only" - value: 7 - - name: DualA - description: "Dual ADC1 and ADC2, alternate trigger mode only" - value: 9 - - name: TripleRJ - description: "Triple ADC, regular and injected simultaneous mode" - value: 17 - - name: TripleRA - description: "Triple ADC, regular and alternate trigger mode" - value: 18 - - name: TripleJ - description: "Triple ADC, injected simultaneous mode only" - value: 21 - - name: TripleR - description: "Triple ADC, regular simultaneous mode only" - value: 22 - - name: TripleI - description: "Triple ADC, interleaved mode only" - value: 23 - - name: TripleA - description: "Triple ADC, alternate trigger mode only" - value: 24 + - name: Independent + description: 'All the ADCs independent: independent mode' + value: 0 + - name: DualRJ + description: Dual ADC1 and ADC2, combined regular and injected simultaneous mode + value: 1 + - name: DualRA + description: Dual ADC1 and ADC2, combined regular and alternate trigger mode + value: 2 + - name: DualJ + description: Dual ADC1 and ADC2, injected simultaneous mode only + value: 5 + - name: DualR + description: Dual ADC1 and ADC2, regular simultaneous mode only + value: 6 + - name: DualI + description: Dual ADC1 and ADC2, interleaved mode only + value: 7 + - name: DualA + description: Dual ADC1 and ADC2, alternate trigger mode only + value: 9 + - name: TripleRJ + description: Triple ADC, regular and injected simultaneous mode + value: 17 + - name: TripleRA + description: Triple ADC, regular and alternate trigger mode + value: 18 + - name: TripleJ + description: Triple ADC, injected simultaneous mode only + value: 21 + - name: TripleR + description: Triple ADC, regular simultaneous mode only + value: 22 + - name: TripleI + description: Triple ADC, interleaved mode only + value: 23 + - name: TripleA + description: Triple ADC, alternate trigger mode only + value: 24 enum/OVR: bit_size: 1 variants: - - name: NoOverrun - description: No overrun occurred - value: 0 - - name: Overrun - description: Overrun occurred - value: 1 + - name: NoOverrun + description: No overrun occurred + value: 0 + - name: Overrun + description: Overrun occurred + value: 1 enum/STRT: bit_size: 1 variants: - - name: NotStarted - description: No regular channel conversion started - value: 0 - - name: Started - description: Regular channel conversion has started - value: 1 + - name: NotStarted + description: No regular channel conversion started + value: 0 + - name: Started + description: Regular channel conversion has started + value: 1 diff --git a/data/registers/adccommon_v3.yaml b/data/registers/adccommon_v3.yaml index e9ae7b0..c9b069c 100644 --- a/data/registers/adccommon_v3.yaml +++ b/data/registers/adccommon_v3.yaml @@ -1,155 +1,154 @@ ---- block/ADC_COMMON: description: Analog-to-Digital Converter items: - - name: CSR - description: ADC Common status register - byte_offset: 0 - access: Read - fieldset: CSR - - name: CCR - description: ADC common control register - byte_offset: 8 - fieldset: CCR - - name: CDR - description: ADC common regular data register for dual and triple modes - byte_offset: 12 - access: Read - fieldset: CDR + - name: CSR + description: ADC Common status register + byte_offset: 0 + access: Read + fieldset: CSR + - name: CCR + description: ADC common control register + byte_offset: 8 + fieldset: CCR + - name: CDR + description: ADC common regular data register for dual and triple modes + byte_offset: 12 + access: Read + fieldset: CDR fieldset/CCR: description: ADC common control register fields: - - name: MULT - description: Multi ADC mode selection - bit_offset: 0 - bit_size: 5 - - name: DELAY - description: Delay between 2 sampling phases - bit_offset: 8 - bit_size: 4 - - name: DMACFG - description: DMA configuration (for multi-ADC mode) - bit_offset: 13 - bit_size: 1 - - name: MDMA - description: Direct memory access mode for multi ADC mode - bit_offset: 14 - bit_size: 2 - - name: CKMODE - description: ADC clock mode - bit_offset: 16 - bit_size: 2 - - name: VREFEN - description: VREFINT enable - bit_offset: 22 - bit_size: 1 - - name: CH18SEL - description: CH18 selection (Vbat) - bit_offset: 23 - bit_size: 1 - - name: CH17SEL - description: CH17 selection (temperature) - bit_offset: 24 - bit_size: 1 + - name: MULT + description: Multi ADC mode selection + bit_offset: 0 + bit_size: 5 + - name: DELAY + description: Delay between 2 sampling phases + bit_offset: 8 + bit_size: 4 + - name: DMACFG + description: DMA configuration (for multi-ADC mode) + bit_offset: 13 + bit_size: 1 + - name: MDMA + description: Direct memory access mode for multi ADC mode + bit_offset: 14 + bit_size: 2 + - name: CKMODE + description: ADC clock mode + bit_offset: 16 + bit_size: 2 + - name: VREFEN + description: VREFINT enable + bit_offset: 22 + bit_size: 1 + - name: CH18SEL + description: CH18 selection (Vbat) + bit_offset: 23 + bit_size: 1 + - name: CH17SEL + description: CH17 selection (temperature) + bit_offset: 24 + bit_size: 1 fieldset/CDR: description: ADC common regular data register for dual and triple modes fields: - - name: RDATA_MST - description: Regular data of the master ADC - bit_offset: 0 - bit_size: 16 - - name: RDATA_SLV - description: Regular data of the slave ADC - bit_offset: 16 - bit_size: 16 + - name: RDATA_MST + description: Regular data of the master ADC + bit_offset: 0 + bit_size: 16 + - name: RDATA_SLV + description: Regular data of the slave ADC + bit_offset: 16 + bit_size: 16 fieldset/CSR: description: ADC Common status register fields: - - name: ADDRDY_MST - description: ADDRDY_MST - bit_offset: 0 - bit_size: 1 - - name: EOSMP_MST - description: EOSMP_MST - bit_offset: 1 - bit_size: 1 - - name: EOC_MST - description: EOC_MST - bit_offset: 2 - bit_size: 1 - - name: EOS_MST - description: EOS_MST - bit_offset: 3 - bit_size: 1 - - name: OVR_MST - description: OVR_MST - bit_offset: 4 - bit_size: 1 - - name: JEOC_MST - description: JEOC_MST - bit_offset: 5 - bit_size: 1 - - name: JEOS_MST - description: JEOS_MST - bit_offset: 6 - bit_size: 1 - - name: AWD1_MST - description: AWD1_MST - bit_offset: 7 - bit_size: 1 - - name: AWD2_MST - description: AWD2_MST - bit_offset: 8 - bit_size: 1 - - name: AWD3_MST - description: AWD3_MST - bit_offset: 9 - bit_size: 1 - - name: JQOVF_MST - description: JQOVF_MST - bit_offset: 10 - bit_size: 1 - - name: ADRDY_SLV - description: ADRDY_SLV - bit_offset: 16 - bit_size: 1 - - name: EOSMP_SLV - description: EOSMP_SLV - bit_offset: 17 - bit_size: 1 - - name: EOC_SLV - description: End of regular conversion of the slave ADC - bit_offset: 18 - bit_size: 1 - - name: EOS_SLV - description: End of regular sequence flag of the slave ADC - bit_offset: 19 - bit_size: 1 - - name: OVR_SLV - description: Overrun flag of the slave ADC - bit_offset: 20 - bit_size: 1 - - name: JEOC_SLV - description: End of injected conversion flag of the slave ADC - bit_offset: 21 - bit_size: 1 - - name: JEOS_SLV - description: End of injected sequence flag of the slave ADC - bit_offset: 22 - bit_size: 1 - - name: AWD1_SLV - description: Analog watchdog 1 flag of the slave ADC - bit_offset: 23 - bit_size: 1 - - name: AWD2_SLV - description: Analog watchdog 2 flag of the slave ADC - bit_offset: 24 - bit_size: 1 - - name: AWD3_SLV - description: Analog watchdog 3 flag of the slave ADC - bit_offset: 25 - bit_size: 1 - - name: JQOVF_SLV - description: Injected Context Queue Overflow flag of the slave ADC - bit_offset: 26 - bit_size: 1 + - name: ADDRDY_MST + description: ADDRDY_MST + bit_offset: 0 + bit_size: 1 + - name: EOSMP_MST + description: EOSMP_MST + bit_offset: 1 + bit_size: 1 + - name: EOC_MST + description: EOC_MST + bit_offset: 2 + bit_size: 1 + - name: EOS_MST + description: EOS_MST + bit_offset: 3 + bit_size: 1 + - name: OVR_MST + description: OVR_MST + bit_offset: 4 + bit_size: 1 + - name: JEOC_MST + description: JEOC_MST + bit_offset: 5 + bit_size: 1 + - name: JEOS_MST + description: JEOS_MST + bit_offset: 6 + bit_size: 1 + - name: AWD1_MST + description: AWD1_MST + bit_offset: 7 + bit_size: 1 + - name: AWD2_MST + description: AWD2_MST + bit_offset: 8 + bit_size: 1 + - name: AWD3_MST + description: AWD3_MST + bit_offset: 9 + bit_size: 1 + - name: JQOVF_MST + description: JQOVF_MST + bit_offset: 10 + bit_size: 1 + - name: ADRDY_SLV + description: ADRDY_SLV + bit_offset: 16 + bit_size: 1 + - name: EOSMP_SLV + description: EOSMP_SLV + bit_offset: 17 + bit_size: 1 + - name: EOC_SLV + description: End of regular conversion of the slave ADC + bit_offset: 18 + bit_size: 1 + - name: EOS_SLV + description: End of regular sequence flag of the slave ADC + bit_offset: 19 + bit_size: 1 + - name: OVR_SLV + description: Overrun flag of the slave ADC + bit_offset: 20 + bit_size: 1 + - name: JEOC_SLV + description: End of injected conversion flag of the slave ADC + bit_offset: 21 + bit_size: 1 + - name: JEOS_SLV + description: End of injected sequence flag of the slave ADC + bit_offset: 22 + bit_size: 1 + - name: AWD1_SLV + description: Analog watchdog 1 flag of the slave ADC + bit_offset: 23 + bit_size: 1 + - name: AWD2_SLV + description: Analog watchdog 2 flag of the slave ADC + bit_offset: 24 + bit_size: 1 + - name: AWD3_SLV + description: Analog watchdog 3 flag of the slave ADC + bit_offset: 25 + bit_size: 1 + - name: JQOVF_SLV + description: Injected Context Queue Overflow flag of the slave ADC + bit_offset: 26 + bit_size: 1 diff --git a/data/registers/adccommon_v4.yaml b/data/registers/adccommon_v4.yaml index 1c50f5f..ae931d2 100644 --- a/data/registers/adccommon_v4.yaml +++ b/data/registers/adccommon_v4.yaml @@ -1,367 +1,366 @@ ---- block/ADC_COMMON: description: Analog-to-Digital Converter items: - - name: CSR - description: ADC Common status register - byte_offset: 0 - access: Read - fieldset: CSR - - name: CCR - description: ADC common control register - byte_offset: 8 - fieldset: CCR - - name: CDR - description: ADC common regular data register for dual and triple modes - byte_offset: 12 - access: Read - fieldset: CDR - - name: CDR2 - description: ADC x common regular data register for 32-bit dual mode - byte_offset: 16 - access: Read - fieldset: CDR2 + - name: CSR + description: ADC Common status register + byte_offset: 0 + access: Read + fieldset: CSR + - name: CCR + description: ADC common control register + byte_offset: 8 + fieldset: CCR + - name: CDR + description: ADC common regular data register for dual and triple modes + byte_offset: 12 + access: Read + fieldset: CDR + - name: CDR2 + description: ADC x common regular data register for 32-bit dual mode + byte_offset: 16 + access: Read + fieldset: CDR2 fieldset/CCR: description: ADC common control register fields: - - name: DUAL - description: Dual ADC mode selection - bit_offset: 0 - bit_size: 5 - enum: DUAL - - name: DELAY - description: Delay between 2 sampling phases - bit_offset: 8 - bit_size: 4 - - name: DAMDF - description: Dual ADC Mode Data Format - bit_offset: 14 - bit_size: 2 - enum: DAMDF - - name: CKMODE - description: ADC clock mode - bit_offset: 16 - bit_size: 2 - enum: CKMODE - - name: PRESC - description: ADC prescaler - bit_offset: 18 - bit_size: 4 - enum: PRESC - - name: VREFEN - description: VREFINT enable - bit_offset: 22 - bit_size: 1 - - name: VSENSEEN - description: Temperature sensor enable - bit_offset: 23 - bit_size: 1 - - name: VBATEN - description: VBAT enable - bit_offset: 24 - bit_size: 1 + - name: DUAL + description: Dual ADC mode selection + bit_offset: 0 + bit_size: 5 + enum: DUAL + - name: DELAY + description: Delay between 2 sampling phases + bit_offset: 8 + bit_size: 4 + - name: DAMDF + description: Dual ADC Mode Data Format + bit_offset: 14 + bit_size: 2 + enum: DAMDF + - name: CKMODE + description: ADC clock mode + bit_offset: 16 + bit_size: 2 + enum: CKMODE + - name: PRESC + description: ADC prescaler + bit_offset: 18 + bit_size: 4 + enum: PRESC + - name: VREFEN + description: VREFINT enable + bit_offset: 22 + bit_size: 1 + - name: VSENSEEN + description: Temperature sensor enable + bit_offset: 23 + bit_size: 1 + - name: VBATEN + description: VBAT enable + bit_offset: 24 + bit_size: 1 fieldset/CDR: description: ADC common regular data register for dual and triple modes fields: - - name: RDATA_MST - description: Regular data of the master ADC - bit_offset: 0 - bit_size: 16 - - name: RDATA_SLV - description: Regular data of the slave ADC - bit_offset: 16 - bit_size: 16 + - name: RDATA_MST + description: Regular data of the master ADC + bit_offset: 0 + bit_size: 16 + - name: RDATA_SLV + description: Regular data of the slave ADC + bit_offset: 16 + bit_size: 16 fieldset/CDR2: description: ADC x common regular data register for 32-bit dual mode fields: - - name: RDATA_ALT - description: Regular data of the master/slave alternated ADCs - bit_offset: 0 - bit_size: 32 + - name: RDATA_ALT + description: Regular data of the master/slave alternated ADCs + bit_offset: 0 + bit_size: 32 fieldset/CSR: description: ADC Common status register fields: - - name: ADRDY_MST - description: Master ADC ready - bit_offset: 0 - bit_size: 1 - enum: ADRDY_MST - - name: EOSMP_MST - description: End of Sampling phase flag of the master ADC - bit_offset: 1 - bit_size: 1 - enum: EOSMP_MST - - name: EOC_MST - description: End of regular conversion of the master ADC - bit_offset: 2 - bit_size: 1 - enum: EOC_MST - - name: EOS_MST - description: End of regular sequence flag of the master ADC - bit_offset: 3 - bit_size: 1 - enum: EOS_MST - - name: OVR_MST - description: Overrun flag of the master ADC - bit_offset: 4 - bit_size: 1 - enum: OVR_MST - - name: JEOC_MST - description: End of injected conversion flag of the master ADC - bit_offset: 5 - bit_size: 1 - enum: JEOC_MST - - name: JEOS_MST - description: End of injected sequence flag of the master ADC - bit_offset: 6 - bit_size: 1 - enum: JEOS_MST - - name: AWD1_MST - description: Analog watchdog 1 flag of the master ADC - bit_offset: 7 - bit_size: 1 - enum: AWD1_MST - - name: AWD2_MST - description: Analog watchdog 2 flag of the master ADC - bit_offset: 8 - bit_size: 1 - enum: AWD1_MST - - name: AWD3_MST - description: Analog watchdog 3 flag of the master ADC - bit_offset: 9 - bit_size: 1 - enum: AWD1_MST - - name: JQOVF_MST - description: Injected Context Queue Overflow flag of the master ADC - bit_offset: 10 - bit_size: 1 - enum: JQOVF_MST - - name: ADRDY_SLV - description: Slave ADC ready - bit_offset: 16 - bit_size: 1 - enum: ADRDY_MST - - name: EOSMP_SLV - description: End of Sampling phase flag of the slave ADC - bit_offset: 17 - bit_size: 1 - enum: EOSMP_MST - - name: EOC_SLV - description: End of regular conversion of the slave ADC - bit_offset: 18 - bit_size: 1 - enum: EOC_MST - - name: EOS_SLV - description: End of regular sequence flag of the slave ADC - bit_offset: 19 - bit_size: 1 - enum: EOS_MST - - name: OVR_SLV - description: Overrun flag of the slave ADC - bit_offset: 20 - bit_size: 1 - enum: OVR_MST - - name: JEOC_SLV - description: End of injected conversion flag of the slave ADC - bit_offset: 21 - bit_size: 1 - enum: JEOC_MST - - name: JEOS_SLV - description: End of injected sequence flag of the slave ADC - bit_offset: 22 - bit_size: 1 - enum: JEOS_MST - - name: AWD1_SLV - description: Analog watchdog 1 flag of the slave ADC - bit_offset: 23 - bit_size: 1 - enum: AWD1_MST - - name: AWD2_SLV - description: Analog watchdog 2 flag of the slave ADC - bit_offset: 24 - bit_size: 1 - enum: AWD1_MST - - name: AWD3_SLV - description: Analog watchdog 3 flag of the slave ADC - bit_offset: 25 - bit_size: 1 - enum: AWD1_MST - - name: JQOVF_SLV - description: Injected Context Queue Overflow flag of the slave ADC - bit_offset: 26 - bit_size: 1 - enum: JQOVF_MST + - name: ADRDY_MST + description: Master ADC ready + bit_offset: 0 + bit_size: 1 + enum: ADRDY_MST + - name: EOSMP_MST + description: End of Sampling phase flag of the master ADC + bit_offset: 1 + bit_size: 1 + enum: EOSMP_MST + - name: EOC_MST + description: End of regular conversion of the master ADC + bit_offset: 2 + bit_size: 1 + enum: EOC_MST + - name: EOS_MST + description: End of regular sequence flag of the master ADC + bit_offset: 3 + bit_size: 1 + enum: EOS_MST + - name: OVR_MST + description: Overrun flag of the master ADC + bit_offset: 4 + bit_size: 1 + enum: OVR_MST + - name: JEOC_MST + description: End of injected conversion flag of the master ADC + bit_offset: 5 + bit_size: 1 + enum: JEOC_MST + - name: JEOS_MST + description: End of injected sequence flag of the master ADC + bit_offset: 6 + bit_size: 1 + enum: JEOS_MST + - name: AWD1_MST + description: Analog watchdog 1 flag of the master ADC + bit_offset: 7 + bit_size: 1 + enum: AWD1_MST + - name: AWD2_MST + description: Analog watchdog 2 flag of the master ADC + bit_offset: 8 + bit_size: 1 + enum: AWD1_MST + - name: AWD3_MST + description: Analog watchdog 3 flag of the master ADC + bit_offset: 9 + bit_size: 1 + enum: AWD1_MST + - name: JQOVF_MST + description: Injected Context Queue Overflow flag of the master ADC + bit_offset: 10 + bit_size: 1 + enum: JQOVF_MST + - name: ADRDY_SLV + description: Slave ADC ready + bit_offset: 16 + bit_size: 1 + enum: ADRDY_MST + - name: EOSMP_SLV + description: End of Sampling phase flag of the slave ADC + bit_offset: 17 + bit_size: 1 + enum: EOSMP_MST + - name: EOC_SLV + description: End of regular conversion of the slave ADC + bit_offset: 18 + bit_size: 1 + enum: EOC_MST + - name: EOS_SLV + description: End of regular sequence flag of the slave ADC + bit_offset: 19 + bit_size: 1 + enum: EOS_MST + - name: OVR_SLV + description: Overrun flag of the slave ADC + bit_offset: 20 + bit_size: 1 + enum: OVR_MST + - name: JEOC_SLV + description: End of injected conversion flag of the slave ADC + bit_offset: 21 + bit_size: 1 + enum: JEOC_MST + - name: JEOS_SLV + description: End of injected sequence flag of the slave ADC + bit_offset: 22 + bit_size: 1 + enum: JEOS_MST + - name: AWD1_SLV + description: Analog watchdog 1 flag of the slave ADC + bit_offset: 23 + bit_size: 1 + enum: AWD1_MST + - name: AWD2_SLV + description: Analog watchdog 2 flag of the slave ADC + bit_offset: 24 + bit_size: 1 + enum: AWD1_MST + - name: AWD3_SLV + description: Analog watchdog 3 flag of the slave ADC + bit_offset: 25 + bit_size: 1 + enum: AWD1_MST + - name: JQOVF_SLV + description: Injected Context Queue Overflow flag of the slave ADC + bit_offset: 26 + bit_size: 1 + enum: JQOVF_MST enum/ADRDY_MST: bit_size: 1 variants: - - name: NotReady - description: ADC is not ready to start conversion - value: 0 - - name: Ready - description: ADC is ready to start conversion - value: 1 + - name: NotReady + description: ADC is not ready to start conversion + value: 0 + - name: Ready + description: ADC is ready to start conversion + value: 1 enum/AWD1_MST: bit_size: 1 variants: - - name: NoEvent - description: No analog watchdog event occurred - value: 0 - - name: Event - description: Analog watchdog event occurred - value: 1 + - name: NoEvent + description: No analog watchdog event occurred + value: 0 + - name: Event + description: Analog watchdog event occurred + value: 1 enum/CKMODE: bit_size: 2 variants: - - name: Asynchronous - description: Use Kernel Clock adc_ker_ck_input divided by PRESC. Asynchronous to AHB clock - value: 0 - - name: SyncDiv1 - description: Use AHB clock rcc_hclk3. In this case rcc_hclk must equal sys_d1cpre_ck - value: 1 - - name: SyncDiv2 - description: Use AHB clock rcc_hclk3 divided by 2 - value: 2 - - name: SyncDiv4 - description: Use AHB clock rcc_hclk3 divided by 4 - value: 3 + - name: Asynchronous + description: Use Kernel Clock adc_ker_ck_input divided by PRESC. Asynchronous to AHB clock + value: 0 + - name: SyncDiv1 + description: Use AHB clock rcc_hclk3. In this case rcc_hclk must equal sys_d1cpre_ck + value: 1 + - name: SyncDiv2 + description: Use AHB clock rcc_hclk3 divided by 2 + value: 2 + - name: SyncDiv4 + description: Use AHB clock rcc_hclk3 divided by 4 + value: 3 enum/DAMDF: bit_size: 2 variants: - - name: NoPack - description: "Without data packing, CDR/CDR2 not used" - value: 0 - - name: Format32to10 - description: CDR formatted for 32-bit down to 10-bit resolution - value: 2 - - name: Format8 - description: CDR formatted for 8-bit resolution - value: 3 + - name: NoPack + description: Without data packing, CDR/CDR2 not used + value: 0 + - name: Format32to10 + description: CDR formatted for 32-bit down to 10-bit resolution + value: 2 + - name: Format8 + description: CDR formatted for 8-bit resolution + value: 3 enum/DUAL: bit_size: 5 variants: - - name: Independent - description: Independent mode - value: 0 - - name: DualRJ - description: "Dual, combined regular simultaneous + injected simultaneous mode" - value: 1 - - name: DualRA - description: "Dual, combined regular simultaneous + alternate trigger mode" - value: 2 - - name: DualIJ - description: "Dual, combined interleaved mode + injected simultaneous mode" - value: 3 - - name: DualJ - description: "Dual, injected simultaneous mode only" - value: 5 - - name: DualR - description: "Dual, regular simultaneous mode only" - value: 6 - - name: DualI - description: "Dual, interleaved mode only" - value: 7 - - name: DualA - description: "Dual, alternate trigger mode only" - value: 9 + - name: Independent + description: Independent mode + value: 0 + - name: DualRJ + description: Dual, combined regular simultaneous + injected simultaneous mode + value: 1 + - name: DualRA + description: Dual, combined regular simultaneous + alternate trigger mode + value: 2 + - name: DualIJ + description: Dual, combined interleaved mode + injected simultaneous mode + value: 3 + - name: DualJ + description: Dual, injected simultaneous mode only + value: 5 + - name: DualR + description: Dual, regular simultaneous mode only + value: 6 + - name: DualI + description: Dual, interleaved mode only + value: 7 + - name: DualA + description: Dual, alternate trigger mode only + value: 9 enum/EOC_MST: bit_size: 1 variants: - - name: NotComplete - description: Regular conversion is not complete - value: 0 - - name: Complete - description: Regular conversion complete - value: 1 + - name: NotComplete + description: Regular conversion is not complete + value: 0 + - name: Complete + description: Regular conversion complete + value: 1 enum/EOSMP_MST: bit_size: 1 variants: - - name: NotEnded - description: End of sampling phase no yet reached - value: 0 - - name: Ended - description: End of sampling phase reached - value: 1 + - name: NotEnded + description: End of sampling phase no yet reached + value: 0 + - name: Ended + description: End of sampling phase reached + value: 1 enum/EOS_MST: bit_size: 1 variants: - - name: NotComplete - description: Regular sequence is not complete - value: 0 - - name: Complete - description: Regular sequence complete - value: 1 + - name: NotComplete + description: Regular sequence is not complete + value: 0 + - name: Complete + description: Regular sequence complete + value: 1 enum/JEOC_MST: bit_size: 1 variants: - - name: NotComplete - description: Injected conversion is not complete - value: 0 - - name: Complete - description: Injected conversion complete - value: 1 + - name: NotComplete + description: Injected conversion is not complete + value: 0 + - name: Complete + description: Injected conversion complete + value: 1 enum/JEOS_MST: bit_size: 1 variants: - - name: NotComplete - description: Injected sequence is not complete - value: 0 - - name: Complete - description: Injected sequence complete - value: 1 + - name: NotComplete + description: Injected sequence is not complete + value: 0 + - name: Complete + description: Injected sequence complete + value: 1 enum/JQOVF_MST: bit_size: 1 variants: - - name: NoOverflow - description: No injected context queue overflow has occurred - value: 0 - - name: Overflow - description: Injected context queue overflow has occurred - value: 1 + - name: NoOverflow + description: No injected context queue overflow has occurred + value: 0 + - name: Overflow + description: Injected context queue overflow has occurred + value: 1 enum/OVR_MST: bit_size: 1 variants: - - name: NoOverrun - description: No overrun occurred - value: 0 - - name: Overrun - description: Overrun occurred - value: 1 + - name: NoOverrun + description: No overrun occurred + value: 0 + - name: Overrun + description: Overrun occurred + value: 1 enum/PRESC: bit_size: 4 variants: - - name: Div1 - description: adc_ker_ck_input not divided - value: 0 - - name: Div2 - description: adc_ker_ck_input divided by 2 - value: 1 - - name: Div4 - description: adc_ker_ck_input divided by 4 - value: 2 - - name: Div6 - description: adc_ker_ck_input divided by 6 - value: 3 - - name: Div8 - description: adc_ker_ck_input divided by 8 - value: 4 - - name: Div10 - description: adc_ker_ck_input divided by 10 - value: 5 - - name: Div12 - description: adc_ker_ck_input divided by 12 - value: 6 - - name: Div16 - description: adc_ker_ck_input divided by 16 - value: 7 - - name: Div32 - description: adc_ker_ck_input divided by 32 - value: 8 - - name: Div64 - description: adc_ker_ck_input divided by 64 - value: 9 - - name: Div128 - description: adc_ker_ck_input divided by 128 - value: 10 - - name: Div256 - description: adc_ker_ck_input divided by 256 - value: 11 + - name: Div1 + description: adc_ker_ck_input not divided + value: 0 + - name: Div2 + description: adc_ker_ck_input divided by 2 + value: 1 + - name: Div4 + description: adc_ker_ck_input divided by 4 + value: 2 + - name: Div6 + description: adc_ker_ck_input divided by 6 + value: 3 + - name: Div8 + description: adc_ker_ck_input divided by 8 + value: 4 + - name: Div10 + description: adc_ker_ck_input divided by 10 + value: 5 + - name: Div12 + description: adc_ker_ck_input divided by 12 + value: 6 + - name: Div16 + description: adc_ker_ck_input divided by 16 + value: 7 + - name: Div32 + description: adc_ker_ck_input divided by 32 + value: 8 + - name: Div64 + description: adc_ker_ck_input divided by 64 + value: 9 + - name: Div128 + description: adc_ker_ck_input divided by 128 + value: 10 + - name: Div256 + description: adc_ker_ck_input divided by 256 + value: 11 diff --git a/data/registers/aes_f7.yaml b/data/registers/aes_f7.yaml index b2bffb8..2ef6fa2 100644 --- a/data/registers/aes_f7.yaml +++ b/data/registers/aes_f7.yaml @@ -1,205 +1,204 @@ ---- block/AES: description: Advanced encryption standard hardware accelerator items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: SR - description: Status register - byte_offset: 4 - fieldset: SR - - name: DINR - description: Data input register - byte_offset: 8 - fieldset: DINR - - name: DOUTR - description: Data output register - byte_offset: 12 - fieldset: DOUTR - - name: KEYR - description: Key register - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 32 - - 36 - - 40 - - 44 - byte_offset: 16 - fieldset: KEYR - - name: IVR - description: Initialization vector register - array: - len: 4 - stride: 4 - byte_offset: 32 - fieldset: IVR - - name: SUSPR - description: Suspend register - array: - len: 8 - stride: 4 - byte_offset: 64 - fieldset: SUSPR + - name: CR + description: Control register + byte_offset: 0 + fieldset: CR + - name: SR + description: Status register + byte_offset: 4 + fieldset: SR + - name: DINR + description: Data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: Data output register + byte_offset: 12 + fieldset: DOUTR + - name: KEYR + description: Key register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 32 + - 36 + - 40 + - 44 + byte_offset: 16 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 + byte_offset: 32 + fieldset: IVR + - name: SUSPR + description: Suspend register + array: + len: 8 + stride: 4 + byte_offset: 64 + fieldset: SUSPR fieldset/CR: description: Control register fields: - - name: EN - description: AES enable - bit_offset: 0 - bit_size: 1 - - name: DATATYPE - description: Data type selection - bit_offset: 1 - bit_size: 2 - enum: DATATYPE - - name: MODE - description: Operating mode - bit_offset: 3 - bit_size: 2 - enum: MODE - - name: CHMOD10 - description: Chaining mode bit1 bit0 - bit_offset: 5 - bit_size: 2 - - name: CCFC - description: Computation Complete Flag Clear - bit_offset: 7 - bit_size: 1 - - name: ERRC - description: Error clear - bit_offset: 8 - bit_size: 1 - - name: CCFIE - description: CCF flag interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: DMAINEN - description: Enable DMA management of data input phase - bit_offset: 11 - bit_size: 1 - - name: DMAOUTEN - description: Enable DMA management of data output phase - bit_offset: 12 - bit_size: 1 - - name: GCMPH - description: GCM or CCM phase selection - bit_offset: 13 - bit_size: 2 - enum: GCMPH - - name: CHMOD2 - description: Chaining mode bit2 - bit_offset: 16 - bit_size: 1 - - name: KEYSIZE - description: Key size selection - bit_offset: 18 - bit_size: 1 + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection + bit_offset: 1 + bit_size: 2 + enum: DATATYPE + - name: MODE + description: Operating mode + bit_offset: 3 + bit_size: 2 + enum: MODE + - name: CHMOD10 + description: Chaining mode bit1 bit0 + bit_offset: 5 + bit_size: 2 + - name: CCFC + description: Computation Complete Flag Clear + bit_offset: 7 + bit_size: 1 + - name: ERRC + description: Error clear + bit_offset: 8 + bit_size: 1 + - name: CCFIE + description: CCF flag interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: GCM or CCM phase selection + bit_offset: 13 + bit_size: 2 + enum: GCMPH + - name: CHMOD2 + description: Chaining mode bit2 + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: Key size selection + bit_offset: 18 + bit_size: 1 fieldset/DINR: description: Data input register fields: - - name: DIN - description: Input data word - bit_offset: 0 - bit_size: 32 + - name: DIN + description: Input data word + bit_offset: 0 + bit_size: 32 fieldset/DOUTR: description: Data output register fields: - - name: DOUT - description: Output data word - bit_offset: 0 - bit_size: 32 + - name: DOUT + description: Output data word + bit_offset: 0 + bit_size: 32 fieldset/IVR: description: Initialization vector register fields: - - name: IVI - description: Initialization vector input - bit_offset: 0 - bit_size: 32 + - name: IVI + description: Initialization vector input + bit_offset: 0 + bit_size: 32 fieldset/KEYR: description: Key register fields: - - name: KEY - description: Cryptographic key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: Cryptographic key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: CCF - description: Computation complete flag - bit_offset: 0 - bit_size: 1 - - name: RDERR - description: Read error flag - bit_offset: 1 - bit_size: 1 - - name: WRERR - description: Write error flag - bit_offset: 2 - bit_size: 1 - - name: BUSY - description: Busy flag - bit_offset: 3 - bit_size: 1 + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 3 + bit_size: 1 fieldset/SUSPR: description: Suspend register fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 + - name: SUSP + description: AES suspend + bit_offset: 0 + bit_size: 32 enum/DATATYPE: bit_size: 2 variants: - - name: None - description: Word - value: 0 - - name: HalfWord - description: Half-word (16-bit) - value: 1 - - name: Byte - description: Byte (8-bit) - value: 2 - - name: Bit - description: Bit - value: 3 + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 enum/GCMPH: bit_size: 2 variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 enum/MODE: bit_size: 2 variants: - - name: Mode1 - description: "Encryption" - value: 0 - - name: Mode2 - description: "Key derivation (or key preparation for ECB/CBC decryption)" - value: 1 - - name: Mode3 - description: "Decryption" - value: 2 - - name: Mode4 - description: "Key derivation then single decryption" - value: 3 + - name: Mode1 + description: Encryption + value: 0 + - name: Mode2 + description: Key derivation (or key preparation for ECB/CBC decryption) + value: 1 + - name: Mode3 + description: Decryption + value: 2 + - name: Mode4 + description: Key derivation then single decryption + value: 3 diff --git a/data/registers/aes_u5.yaml b/data/registers/aes_u5.yaml index fc2b46f..e46fc54 100644 --- a/data/registers/aes_u5.yaml +++ b/data/registers/aes_u5.yaml @@ -1,259 +1,258 @@ ---- block/AES: description: Advanced encryption standard hardware accelerator items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: SR - description: Status register - byte_offset: 4 - fieldset: SR - - name: DINR - description: Data input register - byte_offset: 8 - fieldset: DINR - - name: DOUTR - description: Data output register - byte_offset: 12 - fieldset: DOUTR - - name: IER - description: interrupt enable register - byte_offset: 768 - fieldset: IER - - name: ISR - description: interrupt status register - byte_offset: 772 - fieldset: ISR - - name: ICR - description: interrupt clear register - byte_offset: 776 - fieldset: ICR - - name: KEYR - description: Key register - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 32 - - 36 - - 40 - - 44 - byte_offset: 16 - fieldset: KEYR - - name: IVR - description: Initialization vector register - array: - len: 4 - stride: 4 - byte_offset: 32 - fieldset: IVR - - name: SUSPR - description: Suspend register - array: - len: 8 - stride: 4 - byte_offset: 64 - fieldset: SUSPR + - name: CR + description: Control register + byte_offset: 0 + fieldset: CR + - name: SR + description: Status register + byte_offset: 4 + fieldset: SR + - name: DINR + description: Data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: Data output register + byte_offset: 12 + fieldset: DOUTR + - name: KEYR + description: Key register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 32 + - 36 + - 40 + - 44 + byte_offset: 16 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 + byte_offset: 32 + fieldset: IVR + - name: SUSPR + description: Suspend register + array: + len: 8 + stride: 4 + byte_offset: 64 + fieldset: SUSPR + - name: IER + description: interrupt enable register + byte_offset: 768 + fieldset: IER + - name: ISR + description: interrupt status register + byte_offset: 772 + fieldset: ISR + - name: ICR + description: interrupt clear register + byte_offset: 776 + fieldset: ICR fieldset/CR: description: Control register fields: - - name: EN - description: AES enable - bit_offset: 0 - bit_size: 1 - - name: DATATYPE - description: Data type selection - bit_offset: 1 - bit_size: 2 - enum: DATATYPE - - name: MODE - description: Operating mode - bit_offset: 3 - bit_size: 2 - enum: MODE - - name: CHMOD10 - description: Chaining mode bit1 bit0 - bit_offset: 5 - bit_size: 2 - - name: DMAINEN - description: Enable DMA management of data input phase - bit_offset: 11 - bit_size: 1 - - name: DMAOUTEN - description: Enable DMA management of data output phase - bit_offset: 12 - bit_size: 1 - - name: GCMPH - description: GCM or CCM phase selection - bit_offset: 13 - bit_size: 2 - enum: GCMPH - - name: CHMOD2 - description: Chaining mode bit2 - bit_offset: 16 - bit_size: 1 - - name: KEYSIZE - description: Key size selection - bit_offset: 18 - bit_size: 1 - - name: NPBLB - description: Number of padding bytes in last block of payload - bit_offset: 20 - bit_size: 4 - - name: KMOD - description: Key mode selection - bit_offset: 24 - bit_size: 2 - - name: IPRST - description: AES peripheral software reset - bit_offset: 31 - bit_size: 1 + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection + bit_offset: 1 + bit_size: 2 + enum: DATATYPE + - name: MODE + description: Operating mode + bit_offset: 3 + bit_size: 2 + enum: MODE + - name: CHMOD10 + description: Chaining mode bit1 bit0 + bit_offset: 5 + bit_size: 2 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: GCM or CCM phase selection + bit_offset: 13 + bit_size: 2 + enum: GCMPH + - name: CHMOD2 + description: Chaining mode bit2 + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: Key size selection + bit_offset: 18 + bit_size: 1 + - name: NPBLB + description: Number of padding bytes in last block of payload + bit_offset: 20 + bit_size: 4 + - name: KMOD + description: Key mode selection + bit_offset: 24 + bit_size: 2 + - name: IPRST + description: AES peripheral software reset + bit_offset: 31 + bit_size: 1 fieldset/DINR: description: Data input register fields: - - name: DIN - description: Input data word - bit_offset: 0 - bit_size: 32 + - name: DIN + description: Input data word + bit_offset: 0 + bit_size: 32 fieldset/DOUTR: description: Data output register fields: - - name: DOUT - description: Output data word - bit_offset: 0 - bit_size: 32 + - name: DOUT + description: Output data word + bit_offset: 0 + bit_size: 32 fieldset/ICR: description: Interrupt clear register fields: - - name: CCF - description: Computation complete flag clear - bit_offset: 0 - bit_size: 1 - - name: RWEIF - description: Read or write error interrupt flag clear - bit_offset: 1 - bit_size: 1 - - name: KEIF - description: Key error interrupt flag clear - bit_offset: 2 - bit_size: 1 + - name: CCF + description: Computation complete flag clear + bit_offset: 0 + bit_size: 1 + - name: RWEIF + description: Read or write error interrupt flag clear + bit_offset: 1 + bit_size: 1 + - name: KEIF + description: Key error interrupt flag clear + bit_offset: 2 + bit_size: 1 fieldset/IER: description: Interrupt enable register fields: - - name: CCFIE - description: Computation complete flag interrupt enable - bit_offset: 0 - bit_size: 1 - - name: RWEIE - description: Read or write error interrupt enable - bit_offset: 1 - bit_size: 1 - - name: KEIE - description: Key error interrupt enable - bit_offset: 2 - bit_size: 1 + - name: CCFIE + description: Computation complete flag interrupt enable + bit_offset: 0 + bit_size: 1 + - name: RWEIE + description: Read or write error interrupt enable + bit_offset: 1 + bit_size: 1 + - name: KEIE + description: Key error interrupt enable + bit_offset: 2 + bit_size: 1 fieldset/ISR: description: Interrupt status register fields: - - name: CCF - description: Computation complete flag - bit_offset: 0 - bit_size: 1 - - name: RWEIF - description: Read or write error interrupt flag - bit_offset: 1 - bit_size: 1 - - name: KEIF - description: Key error interrupt flag - bit_offset: 2 - bit_size: 1 + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RWEIF + description: Read or write error interrupt flag + bit_offset: 1 + bit_size: 1 + - name: KEIF + description: Key error interrupt flag + bit_offset: 2 + bit_size: 1 fieldset/IVR: description: Initialization vector register fields: - - name: IVI - description: Initialization vector input - bit_offset: 0 - bit_size: 32 + - name: IVI + description: Initialization vector input + bit_offset: 0 + bit_size: 32 fieldset/KEYR: description: Key register fields: - - name: KEY - description: Cryptographic key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: Cryptographic key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: CCF - description: Computation complete flag - bit_offset: 0 - bit_size: 1 - - name: RDERR - description: Read error flag - bit_offset: 1 - bit_size: 1 - - name: WRERR - description: Write error flag - bit_offset: 2 - bit_size: 1 - - name: BUSY - description: Busy flag - bit_offset: 3 - bit_size: 1 - - name: KEYVALID - description: Key valid flag - bit_offset: 7 - bit_size: 1 + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 3 + bit_size: 1 + - name: KEYVALID + description: Key valid flag + bit_offset: 7 + bit_size: 1 fieldset/SUSPR: description: Suspend register fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 + - name: SUSP + description: AES suspend + bit_offset: 0 + bit_size: 32 enum/DATATYPE: bit_size: 2 variants: - - name: None - description: Word - value: 0 - - name: HalfWord - description: Half-word (16-bit) - value: 1 - - name: Byte - description: Byte (8-bit) - value: 2 - - name: Bit - description: Bit - value: 3 + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 enum/GCMPH: bit_size: 2 variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 enum/MODE: bit_size: 2 variants: - - name: Mode1 - description: "Encryption" - value: 0 - - name: Mode2 - description: "Key derivation (or key preparation for ECB/CBC decryption)" - value: 1 - - name: Mode3 - description: "Decryption" - value: 2 + - name: Mode1 + description: Encryption + value: 0 + - name: Mode2 + description: Key derivation (or key preparation for ECB/CBC decryption) + value: 1 + - name: Mode3 + description: Decryption + value: 2 diff --git a/data/registers/aes_v1.yaml b/data/registers/aes_v1.yaml index fda80c5..63b0e21 100644 --- a/data/registers/aes_v1.yaml +++ b/data/registers/aes_v1.yaml @@ -1,152 +1,151 @@ ---- block/AES: description: Advanced encryption standard hardware accelerator items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: SR - description: Status register - byte_offset: 4 - fieldset: SR - - name: DINR - description: Data input register - byte_offset: 8 - fieldset: DINR - - name: DOUTR - description: Data output register - byte_offset: 12 - fieldset: DOUTR - - name: KEYR - description: Key register - array: - len: 4 - stride: 4 - byte_offset: 16 - fieldset: KEYR - - name: IVR - description: Initialization vector register - array: - len: 4 - stride: 4 - byte_offset: 32 - fieldset: IVR + - name: CR + description: Control register + byte_offset: 0 + fieldset: CR + - name: SR + description: Status register + byte_offset: 4 + fieldset: SR + - name: DINR + description: Data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: Data output register + byte_offset: 12 + fieldset: DOUTR + - name: KEYR + description: Key register + array: + len: 4 + stride: 4 + byte_offset: 16 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 + byte_offset: 32 + fieldset: IVR fieldset/CR: description: Control register fields: - - name: EN - description: AES enable - bit_offset: 0 - bit_size: 1 - - name: DATATYPE - description: Data type selection - bit_offset: 1 - bit_size: 2 - enum: DATATYPE - - name: MODE - description: Operating mode - bit_offset: 3 - bit_size: 2 - enum: MODE - - name: CHMOD10 - description: Chaining mode bit1 bit0 - bit_offset: 5 - bit_size: 2 - - name: CCFC - description: Computation Complete Flag Clear - bit_offset: 7 - bit_size: 1 - - name: ERRC - description: Error clear - bit_offset: 8 - bit_size: 1 - - name: CCFIE - description: CCF flag interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: DMAINEN - description: Enable DMA management of data input phase - bit_offset: 11 - bit_size: 1 - - name: DMAOUTEN - description: Enable DMA management of data output phase - bit_offset: 12 - bit_size: 1 + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection + bit_offset: 1 + bit_size: 2 + enum: DATATYPE + - name: MODE + description: Operating mode + bit_offset: 3 + bit_size: 2 + enum: MODE + - name: CHMOD10 + description: Chaining mode bit1 bit0 + bit_offset: 5 + bit_size: 2 + - name: CCFC + description: Computation Complete Flag Clear + bit_offset: 7 + bit_size: 1 + - name: ERRC + description: Error clear + bit_offset: 8 + bit_size: 1 + - name: CCFIE + description: CCF flag interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 fieldset/DINR: description: Data input register fields: - - name: DIN - description: Input data word - bit_offset: 0 - bit_size: 32 + - name: DIN + description: Input data word + bit_offset: 0 + bit_size: 32 fieldset/DOUTR: description: Data output register fields: - - name: DOUT - description: Output data word - bit_offset: 0 - bit_size: 32 + - name: DOUT + description: Output data word + bit_offset: 0 + bit_size: 32 fieldset/IVR: description: Initialization vector register fields: - - name: IVI - description: "Initialization vector input" - bit_offset: 0 - bit_size: 32 + - name: IVI + description: Initialization vector input + bit_offset: 0 + bit_size: 32 fieldset/KEYR: description: Key register fields: - - name: KEY - description: Cryptographic key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: Cryptographic key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: CCF - description: Computation complete flag - bit_offset: 0 - bit_size: 1 - - name: RDERR - description: Read error flag - bit_offset: 1 - bit_size: 1 - - name: WRERR - description: Write error flag - bit_offset: 2 - bit_size: 1 + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 enum/DATATYPE: bit_size: 2 variants: - - name: None - description: Word - value: 0 - - name: HalfWord - description: Half-word (16-bit) - value: 1 - - name: Byte - description: Byte (8-bit) - value: 2 - - name: Bit - description: Bit - value: 3 + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 enum/MODE: bit_size: 2 variants: - - name: Mode1 - description: "Encryption" - value: 0 - - name: Mode2 - description: "Key derivation (or key preparation for ECB/CBC decryption)" - value: 1 - - name: Mode3 - description: "Decryption" - value: 2 - - name: Mode4 - description: "Key derivation then single decryption" - value: 3 + - name: Mode1 + description: Encryption + value: 0 + - name: Mode2 + description: Key derivation (or key preparation for ECB/CBC decryption) + value: 1 + - name: Mode3 + description: Decryption + value: 2 + - name: Mode4 + description: Key derivation then single decryption + value: 3 diff --git a/data/registers/aes_v2.yaml b/data/registers/aes_v2.yaml index a9846bf..b830ff8 100644 --- a/data/registers/aes_v2.yaml +++ b/data/registers/aes_v2.yaml @@ -1,209 +1,208 @@ ---- block/AES: description: Advanced encryption standard hardware accelerator items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: SR - description: Status register - byte_offset: 4 - fieldset: SR - - name: DINR - description: Data input register - byte_offset: 8 - fieldset: DINR - - name: DOUTR - description: Data output register - byte_offset: 12 - fieldset: DOUTR - - name: KEYR - description: Key register - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 32 - - 36 - - 40 - - 44 - byte_offset: 16 - fieldset: KEYR - - name: IVR - description: Initialization vector register - array: - len: 4 - stride: 4 - byte_offset: 32 - fieldset: IVR - - name: SUSPR - description: Suspend register - array: - len: 8 - stride: 4 - byte_offset: 64 - fieldset: SUSPR + - name: CR + description: Control register + byte_offset: 0 + fieldset: CR + - name: SR + description: Status register + byte_offset: 4 + fieldset: SR + - name: DINR + description: Data input register + byte_offset: 8 + fieldset: DINR + - name: DOUTR + description: Data output register + byte_offset: 12 + fieldset: DOUTR + - name: KEYR + description: Key register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 32 + - 36 + - 40 + - 44 + byte_offset: 16 + fieldset: KEYR + - name: IVR + description: Initialization vector register + array: + len: 4 + stride: 4 + byte_offset: 32 + fieldset: IVR + - name: SUSPR + description: Suspend register + array: + len: 8 + stride: 4 + byte_offset: 64 + fieldset: SUSPR fieldset/CR: description: Control register fields: - - name: EN - description: AES enable - bit_offset: 0 - bit_size: 1 - - name: DATATYPE - description: Data type selection - bit_offset: 1 - bit_size: 2 - enum: DATATYPE - - name: MODE - description: Operating mode - bit_offset: 3 - bit_size: 2 - enum: MODE - - name: CHMOD10 - description: Chaining mode bit1 bit0 - bit_offset: 5 - bit_size: 2 - - name: CCFC - description: Computation Complete Flag Clear - bit_offset: 7 - bit_size: 1 - - name: ERRC - description: Error clear - bit_offset: 8 - bit_size: 1 - - name: CCFIE - description: CCF flag interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: DMAINEN - description: Enable DMA management of data input phase - bit_offset: 11 - bit_size: 1 - - name: DMAOUTEN - description: Enable DMA management of data output phase - bit_offset: 12 - bit_size: 1 - - name: GCMPH - description: GCM or CCM phase selection - bit_offset: 13 - bit_size: 2 - enum: GCMPH - - name: CHMOD2 - description: Chaining mode bit2 - bit_offset: 16 - bit_size: 1 - - name: KEYSIZE - description: Key size selection - bit_offset: 18 - bit_size: 1 - - name: NPBLB - description: Number of padding bytes in last block of payload - bit_offset: 20 - bit_size: 4 + - name: EN + description: AES enable + bit_offset: 0 + bit_size: 1 + - name: DATATYPE + description: Data type selection + bit_offset: 1 + bit_size: 2 + enum: DATATYPE + - name: MODE + description: Operating mode + bit_offset: 3 + bit_size: 2 + enum: MODE + - name: CHMOD10 + description: Chaining mode bit1 bit0 + bit_offset: 5 + bit_size: 2 + - name: CCFC + description: Computation Complete Flag Clear + bit_offset: 7 + bit_size: 1 + - name: ERRC + description: Error clear + bit_offset: 8 + bit_size: 1 + - name: CCFIE + description: CCF flag interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: DMAINEN + description: Enable DMA management of data input phase + bit_offset: 11 + bit_size: 1 + - name: DMAOUTEN + description: Enable DMA management of data output phase + bit_offset: 12 + bit_size: 1 + - name: GCMPH + description: GCM or CCM phase selection + bit_offset: 13 + bit_size: 2 + enum: GCMPH + - name: CHMOD2 + description: Chaining mode bit2 + bit_offset: 16 + bit_size: 1 + - name: KEYSIZE + description: Key size selection + bit_offset: 18 + bit_size: 1 + - name: NPBLB + description: Number of padding bytes in last block of payload + bit_offset: 20 + bit_size: 4 fieldset/DINR: description: Data input register fields: - - name: DIN - description: Input data word - bit_offset: 0 - bit_size: 32 + - name: DIN + description: Input data word + bit_offset: 0 + bit_size: 32 fieldset/DOUTR: description: Data output register fields: - - name: DOUT - description: Output data word - bit_offset: 0 - bit_size: 32 + - name: DOUT + description: Output data word + bit_offset: 0 + bit_size: 32 fieldset/IVR: description: Initialization vector register fields: - - name: IVI - description: Initialization vector input - bit_offset: 0 - bit_size: 32 + - name: IVI + description: Initialization vector input + bit_offset: 0 + bit_size: 32 fieldset/KEYR: description: Key register fields: - - name: KEY - description: Cryptographic key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: Cryptographic key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: CCF - description: Computation complete flag - bit_offset: 0 - bit_size: 1 - - name: RDERR - description: Read error flag - bit_offset: 1 - bit_size: 1 - - name: WRERR - description: Write error flag - bit_offset: 2 - bit_size: 1 - - name: BUSY - description: Busy flag - bit_offset: 3 - bit_size: 1 + - name: CCF + description: Computation complete flag + bit_offset: 0 + bit_size: 1 + - name: RDERR + description: Read error flag + bit_offset: 1 + bit_size: 1 + - name: WRERR + description: Write error flag + bit_offset: 2 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 3 + bit_size: 1 fieldset/SUSPR: description: Suspend register fields: - - name: SUSP - description: AES suspend - bit_offset: 0 - bit_size: 32 + - name: SUSP + description: AES suspend + bit_offset: 0 + bit_size: 32 enum/DATATYPE: bit_size: 2 variants: - - name: None - description: Word - value: 0 - - name: HalfWord - description: Half-word (16-bit) - value: 1 - - name: Byte - description: Byte (8-bit) - value: 2 - - name: Bit - description: Bit - value: 3 + - name: None + description: Word + value: 0 + - name: HalfWord + description: Half-word (16-bit) + value: 1 + - name: Byte + description: Byte (8-bit) + value: 2 + - name: Bit + description: Bit + value: 3 enum/GCMPH: bit_size: 2 variants: - - name: Init phase - description: Init phase - value: 0 - - name: Header phase - description: Header phase - value: 1 - - name: Payload phase - description: Payload phase - value: 2 - - name: Final phase - description: Final phase - value: 3 + - name: Init phase + description: Init phase + value: 0 + - name: Header phase + description: Header phase + value: 1 + - name: Payload phase + description: Payload phase + value: 2 + - name: Final phase + description: Final phase + value: 3 enum/MODE: bit_size: 2 variants: - - name: Mode1 - description: "Encryption" - value: 0 - - name: Mode2 - description: "Key derivation (or key preparation for ECB/CBC decryption)" - value: 1 - - name: Mode3 - description: "Decryption" - value: 2 - - name: Mode4 - description: "Key derivation then single decryption" - value: 3 + - name: Mode1 + description: Encryption + value: 0 + - name: Mode2 + description: Key derivation (or key preparation for ECB/CBC decryption) + value: 1 + - name: Mode3 + description: Decryption + value: 2 + - name: Mode4 + description: Key derivation then single decryption + value: 3 diff --git a/data/registers/afio_f1.yaml b/data/registers/afio_f1.yaml index c822d98..78b0278 100644 --- a/data/registers/afio_f1.yaml +++ b/data/registers/afio_f1.yaml @@ -1,202 +1,201 @@ ---- block/AFIO: description: Alternate function I/O items: - - name: EVCR - description: Event Control Register (AFIO_EVCR) - byte_offset: 0 - fieldset: EVCR - - name: MAPR - description: AF remap and debug I/O configuration register (AFIO_MAPR) - byte_offset: 4 - fieldset: MAPR - - name: EXTICR - description: External interrupt configuration register 1 (AFIO_EXTICR1) - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: MAPR2 - description: AF remap and debug I/O configuration register - byte_offset: 28 - fieldset: MAPR2 + - name: EVCR + description: Event Control Register (AFIO_EVCR) + byte_offset: 0 + fieldset: EVCR + - name: MAPR + description: AF remap and debug I/O configuration register (AFIO_MAPR) + byte_offset: 4 + fieldset: MAPR + - name: EXTICR + description: External interrupt configuration register 1 (AFIO_EXTICR1) + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: MAPR2 + description: AF remap and debug I/O configuration register + byte_offset: 28 + fieldset: MAPR2 fieldset/EVCR: description: Event Control Register (AFIO_EVCR) fields: - - name: PIN - description: Pin selection - bit_offset: 0 - bit_size: 4 - - name: PORT - description: Port selection - bit_offset: 4 - bit_size: 3 - - name: EVOE - description: Event Output Enable - bit_offset: 7 - bit_size: 1 + - name: PIN + description: Pin selection + bit_offset: 0 + bit_size: 4 + - name: PORT + description: Port selection + bit_offset: 4 + bit_size: 3 + - name: EVOE + description: Event Output Enable + bit_offset: 7 + bit_size: 1 fieldset/EXTICR: description: External interrupt configuration register 3 (AFIO_EXTICR3) fields: - - name: EXTI - description: EXTI12 configuration - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI12 configuration + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MAPR: description: AF remap and debug I/O configuration register (AFIO_MAPR) fields: - - name: SPI1_REMAP - description: SPI1 remapping - bit_offset: 0 - bit_size: 1 - - name: I2C1_REMAP - description: I2C1 remapping - bit_offset: 1 - bit_size: 1 - - name: USART1_REMAP - description: USART1 remapping - bit_offset: 2 - bit_size: 1 - - name: USART2_REMAP - description: USART2 remapping - bit_offset: 3 - bit_size: 1 - - name: USART3_REMAP - description: USART3 remapping - bit_offset: 4 - bit_size: 2 - - name: TIM1_REMAP - description: TIM1 remapping - bit_offset: 6 - bit_size: 2 - - name: TIM2_REMAP - description: TIM2 remapping - bit_offset: 8 - bit_size: 2 - - name: TIM3_REMAP - description: TIM3 remapping - bit_offset: 10 - bit_size: 2 - - name: TIM4_REMAP - description: TIM4 remapping - bit_offset: 12 - bit_size: 1 - - name: CAN1_REMAP - description: CAN1 remapping - bit_offset: 13 - bit_size: 2 - - name: PD01_REMAP - description: Port D0/Port D1 mapping on OSCIN/OSCOUT - bit_offset: 15 - bit_size: 1 - - name: TIM5CH4_IREMAP - description: Set and cleared by software - bit_offset: 16 - bit_size: 1 - - name: ADC1_ETRGINJ_REMAP - description: ADC 1 External trigger injected conversion remapping - bit_offset: 17 - bit_size: 1 - - name: ADC1_ETRGREG_REMAP - description: ADC 1 external trigger regular conversion remapping - bit_offset: 18 - bit_size: 1 - - name: ADC2_ETRGINJ_REMAP - description: ADC 2 external trigger injected conversion remapping - bit_offset: 19 - bit_size: 1 - - name: ADC2_ETRGREG_REMAP - description: ADC 2 external trigger regular conversion remapping - bit_offset: 20 - bit_size: 1 - - name: ETH_REMAP - description: Ethernet MAC I/O remapping - bit_offset: 21 - bit_size: 1 - - name: CAN2_REMAP - description: CAN2 I/O remapping - bit_offset: 22 - bit_size: 1 - - name: MII_RMII_SEL - description: MII or RMII selection - bit_offset: 23 - bit_size: 1 - - name: SWJ_CFG - description: Serial wire JTAG configuration - bit_offset: 24 - bit_size: 3 - - name: SPI3_REMAP - description: SPI3/I2S3 remapping - bit_offset: 28 - bit_size: 1 - - name: TIM2ITR1_IREMAP - description: TIM2 internal trigger 1 remapping - bit_offset: 29 - bit_size: 1 - - name: PTP_PPS_REMAP - description: Ethernet PTP PPS remapping - bit_offset: 30 - bit_size: 1 + - name: SPI1_REMAP + description: SPI1 remapping + bit_offset: 0 + bit_size: 1 + - name: I2C1_REMAP + description: I2C1 remapping + bit_offset: 1 + bit_size: 1 + - name: USART1_REMAP + description: USART1 remapping + bit_offset: 2 + bit_size: 1 + - name: USART2_REMAP + description: USART2 remapping + bit_offset: 3 + bit_size: 1 + - name: USART3_REMAP + description: USART3 remapping + bit_offset: 4 + bit_size: 2 + - name: TIM1_REMAP + description: TIM1 remapping + bit_offset: 6 + bit_size: 2 + - name: TIM2_REMAP + description: TIM2 remapping + bit_offset: 8 + bit_size: 2 + - name: TIM3_REMAP + description: TIM3 remapping + bit_offset: 10 + bit_size: 2 + - name: TIM4_REMAP + description: TIM4 remapping + bit_offset: 12 + bit_size: 1 + - name: CAN1_REMAP + description: CAN1 remapping + bit_offset: 13 + bit_size: 2 + - name: PD01_REMAP + description: Port D0/Port D1 mapping on OSCIN/OSCOUT + bit_offset: 15 + bit_size: 1 + - name: TIM5CH4_IREMAP + description: Set and cleared by software + bit_offset: 16 + bit_size: 1 + - name: ADC1_ETRGINJ_REMAP + description: ADC 1 External trigger injected conversion remapping + bit_offset: 17 + bit_size: 1 + - name: ADC1_ETRGREG_REMAP + description: ADC 1 external trigger regular conversion remapping + bit_offset: 18 + bit_size: 1 + - name: ADC2_ETRGINJ_REMAP + description: ADC 2 external trigger injected conversion remapping + bit_offset: 19 + bit_size: 1 + - name: ADC2_ETRGREG_REMAP + description: ADC 2 external trigger regular conversion remapping + bit_offset: 20 + bit_size: 1 + - name: ETH_REMAP + description: Ethernet MAC I/O remapping + bit_offset: 21 + bit_size: 1 + - name: CAN2_REMAP + description: CAN2 I/O remapping + bit_offset: 22 + bit_size: 1 + - name: MII_RMII_SEL + description: MII or RMII selection + bit_offset: 23 + bit_size: 1 + - name: SWJ_CFG + description: Serial wire JTAG configuration + bit_offset: 24 + bit_size: 3 + - name: SPI3_REMAP + description: SPI3/I2S3 remapping + bit_offset: 28 + bit_size: 1 + - name: TIM2ITR1_IREMAP + description: TIM2 internal trigger 1 remapping + bit_offset: 29 + bit_size: 1 + - name: PTP_PPS_REMAP + description: Ethernet PTP PPS remapping + bit_offset: 30 + bit_size: 1 fieldset/MAPR2: description: AF remap and debug I/O configuration register fields: - - name: TIM15_REMAP - description: TIM15 remapping - bit_offset: 0 - bit_size: 1 - - name: TIM16_REMAP - description: TIM16 remapping - bit_offset: 1 - bit_size: 1 - - name: TIM17_REMAP - description: TIM17 remapping - bit_offset: 2 - bit_size: 1 - - name: CEC_REMAP - description: CEC remapping - bit_offset: 3 - bit_size: 1 - - name: TIM1_DMA_REMAP - description: TIM1 DMA remapping - bit_offset: 4 - bit_size: 1 - - name: TIM9_REMAP - description: TIM9 remapping - bit_offset: 5 - bit_size: 1 - - name: TIM10_REMAP - description: TIM10 remapping - bit_offset: 6 - bit_size: 1 - - name: TIM11_REMAP - description: TIM11 remapping - bit_offset: 7 - bit_size: 1 - - name: TIM13_REMAP - description: TIM13 remapping - bit_offset: 8 - bit_size: 1 - - name: TIM14_REMAP - description: TIM14 remapping - bit_offset: 9 - bit_size: 1 - - name: FSMC_NADV - description: NADV connect/disconnect - bit_offset: 10 - bit_size: 1 - - name: TIM67_DAC_DMA_REMAP - description: TIM67_DAC DMA remapping - bit_offset: 11 - bit_size: 1 - - name: TIM12_REMAP - description: TIM12 remapping - bit_offset: 12 - bit_size: 1 - - name: MISC_REMAP - description: Miscellaneous features remapping - bit_offset: 13 - bit_size: 1 + - name: TIM15_REMAP + description: TIM15 remapping + bit_offset: 0 + bit_size: 1 + - name: TIM16_REMAP + description: TIM16 remapping + bit_offset: 1 + bit_size: 1 + - name: TIM17_REMAP + description: TIM17 remapping + bit_offset: 2 + bit_size: 1 + - name: CEC_REMAP + description: CEC remapping + bit_offset: 3 + bit_size: 1 + - name: TIM1_DMA_REMAP + description: TIM1 DMA remapping + bit_offset: 4 + bit_size: 1 + - name: TIM9_REMAP + description: TIM9 remapping + bit_offset: 5 + bit_size: 1 + - name: TIM10_REMAP + description: TIM10 remapping + bit_offset: 6 + bit_size: 1 + - name: TIM11_REMAP + description: TIM11 remapping + bit_offset: 7 + bit_size: 1 + - name: TIM13_REMAP + description: TIM13 remapping + bit_offset: 8 + bit_size: 1 + - name: TIM14_REMAP + description: TIM14 remapping + bit_offset: 9 + bit_size: 1 + - name: FSMC_NADV + description: NADV connect/disconnect + bit_offset: 10 + bit_size: 1 + - name: TIM67_DAC_DMA_REMAP + description: TIM67_DAC DMA remapping + bit_offset: 11 + bit_size: 1 + - name: TIM12_REMAP + description: TIM12 remapping + bit_offset: 12 + bit_size: 1 + - name: MISC_REMAP + description: Miscellaneous features remapping + bit_offset: 13 + bit_size: 1 diff --git a/data/registers/bdma_v1.yaml b/data/registers/bdma_v1.yaml index bf19cd5..695430d 100644 --- a/data/registers/bdma_v1.yaml +++ b/data/registers/bdma_v1.yaml @@ -1,198 +1,197 @@ ---- block/CH: - description: "Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers" + description: 'Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers' items: - - name: CR - description: DMA channel configuration register (DMA_CCR) - byte_offset: 0 - fieldset: CR - - name: NDTR - description: DMA channel 1 number of data register - byte_offset: 4 - fieldset: NDTR - - name: PAR - description: DMA channel 1 peripheral address register - byte_offset: 8 - - name: MAR - description: DMA channel 1 memory address register - byte_offset: 12 + - name: CR + description: DMA channel configuration register (DMA_CCR) + byte_offset: 0 + fieldset: CR + - name: NDTR + description: DMA channel 1 number of data register + byte_offset: 4 + fieldset: NDTR + - name: PAR + description: DMA channel 1 peripheral address register + byte_offset: 8 + - name: MAR + description: DMA channel 1 memory address register + byte_offset: 12 block/DMA: description: DMA controller items: - - name: ISR - description: DMA interrupt status register (DMA_ISR) - byte_offset: 0 - access: Read - fieldset: ISR - - name: IFCR - description: DMA interrupt flag clear register (DMA_IFCR) - byte_offset: 4 - access: Write - fieldset: ISR - - name: CH - description: "Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers" - array: - len: 8 - stride: 20 - byte_offset: 8 - block: CH + - name: ISR + description: DMA interrupt status register (DMA_ISR) + byte_offset: 0 + access: Read + fieldset: ISR + - name: IFCR + description: DMA interrupt flag clear register (DMA_IFCR) + byte_offset: 4 + access: Write + fieldset: ISR + - name: CH + description: 'Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers' + array: + len: 8 + stride: 20 + byte_offset: 8 + block: CH fieldset/CR: description: DMA channel configuration register (DMA_CCR) fields: - - name: EN - description: Channel enable - bit_offset: 0 - bit_size: 1 - - name: TCIE - description: Transfer complete interrupt enable - bit_offset: 1 - bit_size: 1 - - name: HTIE - description: Half Transfer interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TEIE - description: Transfer error interrupt enable - bit_offset: 3 - bit_size: 1 - - name: DIR - description: Data transfer direction - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: CIRC - description: Circular mode - bit_offset: 5 - bit_size: 1 - enum: CIRC - - name: PINC - description: Peripheral increment mode - bit_offset: 6 - bit_size: 1 - enum: INC - - name: MINC - description: Memory increment mode - bit_offset: 7 - bit_size: 1 - enum: INC - - name: PSIZE - description: Peripheral size - bit_offset: 8 - bit_size: 2 - enum: SIZE - - name: MSIZE - description: Memory size - bit_offset: 10 - bit_size: 2 - enum: SIZE - - name: PL - description: Channel Priority level - bit_offset: 12 - bit_size: 2 - enum: PL - - name: MEM2MEM - description: Memory to memory mode - bit_offset: 14 - bit_size: 1 - enum: MEMMEM + - name: EN + description: Channel enable + bit_offset: 0 + bit_size: 1 + - name: TCIE + description: Transfer complete interrupt enable + bit_offset: 1 + bit_size: 1 + - name: HTIE + description: Half Transfer interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TEIE + description: Transfer error interrupt enable + bit_offset: 3 + bit_size: 1 + - name: DIR + description: Data transfer direction + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: CIRC + description: Circular mode + bit_offset: 5 + bit_size: 1 + enum: CIRC + - name: PINC + description: Peripheral increment mode + bit_offset: 6 + bit_size: 1 + enum: INC + - name: MINC + description: Memory increment mode + bit_offset: 7 + bit_size: 1 + enum: INC + - name: PSIZE + description: Peripheral size + bit_offset: 8 + bit_size: 2 + enum: SIZE + - name: MSIZE + description: Memory size + bit_offset: 10 + bit_size: 2 + enum: SIZE + - name: PL + description: Channel Priority level + bit_offset: 12 + bit_size: 2 + enum: PL + - name: MEM2MEM + description: Memory to memory mode + bit_offset: 14 + bit_size: 1 + enum: MEMMEM fieldset/ISR: description: DMA interrupt status register (DMA_ISR) fields: - - name: GIF - description: Channel 1 Global interrupt flag - bit_offset: 0 - bit_size: 1 - array: - len: 8 - stride: 4 - - name: TCIF - description: Channel 1 Transfer Complete flag - bit_offset: 1 - bit_size: 1 - array: - len: 8 - stride: 4 - - name: HTIF - description: Channel 1 Half Transfer Complete flag - bit_offset: 2 - bit_size: 1 - array: - len: 8 - stride: 4 - - name: TEIF - description: Channel 1 Transfer Error flag - bit_offset: 3 - bit_size: 1 - array: - len: 8 - stride: 4 + - name: GIF + description: Channel 1 Global interrupt flag + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 4 + - name: TCIF + description: Channel 1 Transfer Complete flag + bit_offset: 1 + bit_size: 1 + array: + len: 8 + stride: 4 + - name: HTIF + description: Channel 1 Half Transfer Complete flag + bit_offset: 2 + bit_size: 1 + array: + len: 8 + stride: 4 + - name: TEIF + description: Channel 1 Transfer Error flag + bit_offset: 3 + bit_size: 1 + array: + len: 8 + stride: 4 fieldset/NDTR: description: DMA channel 1 number of data register fields: - - name: NDT - description: Number of data to transfer - bit_offset: 0 - bit_size: 16 + - name: NDT + description: Number of data to transfer + bit_offset: 0 + bit_size: 16 enum/CIRC: bit_size: 1 variants: - - name: Disabled - description: Circular buffer disabled - value: 0 - - name: Enabled - description: Circular buffer enabled - value: 1 + - name: Disabled + description: Circular buffer disabled + value: 0 + - name: Enabled + description: Circular buffer enabled + value: 1 enum/DIR: bit_size: 1 variants: - - name: FromPeripheral - description: Read from peripheral - value: 0 - - name: FromMemory - description: Read from memory - value: 1 + - name: FromPeripheral + description: Read from peripheral + value: 0 + - name: FromMemory + description: Read from memory + value: 1 enum/INC: bit_size: 1 variants: - - name: Disabled - description: Increment mode disabled - value: 0 - - name: Enabled - description: Increment mode enabled - value: 1 + - name: Disabled + description: Increment mode disabled + value: 0 + - name: Enabled + description: Increment mode enabled + value: 1 enum/MEMMEM: bit_size: 1 variants: - - name: Disabled - description: Memory to memory mode disabled - value: 0 - - name: Enabled - description: Memory to memory mode enabled - value: 1 + - name: Disabled + description: Memory to memory mode disabled + value: 0 + - name: Enabled + description: Memory to memory mode enabled + value: 1 enum/PL: bit_size: 2 variants: - - name: Low - description: Low priority - value: 0 - - name: Medium - description: Medium priority - value: 1 - - name: High - description: High priority - value: 2 - - name: VeryHigh - description: Very high priority - value: 3 + - name: Low + description: Low priority + value: 0 + - name: Medium + description: Medium priority + value: 1 + - name: High + description: High priority + value: 2 + - name: VeryHigh + description: Very high priority + value: 3 enum/SIZE: bit_size: 2 variants: - - name: Bits8 - description: 8-bit size - value: 0 - - name: Bits16 - description: 16-bit size - value: 1 - - name: Bits32 - description: 32-bit size - value: 2 + - name: Bits8 + description: 8-bit size + value: 0 + - name: Bits16 + description: 16-bit size + value: 1 + - name: Bits32 + description: 32-bit size + value: 2 diff --git a/data/registers/bdma_v2.yaml b/data/registers/bdma_v2.yaml index ed7839d..23ce6fa 100644 --- a/data/registers/bdma_v2.yaml +++ b/data/registers/bdma_v2.yaml @@ -1,212 +1,211 @@ ---- block/CH: - description: "Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers" + description: 'Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers' items: - - name: CR - description: DMA channel configuration register (DMA_CCR) - byte_offset: 0 - fieldset: CR - - name: NDTR - description: DMA channel 1 number of data register - byte_offset: 4 - fieldset: NDTR - - name: PAR - description: DMA channel 1 peripheral address register - byte_offset: 8 - - name: MAR - description: DMA channel 1 memory address register - byte_offset: 12 + - name: CR + description: DMA channel configuration register (DMA_CCR) + byte_offset: 0 + fieldset: CR + - name: NDTR + description: DMA channel 1 number of data register + byte_offset: 4 + fieldset: NDTR + - name: PAR + description: DMA channel 1 peripheral address register + byte_offset: 8 + - name: MAR + description: DMA channel 1 memory address register + byte_offset: 12 block/DMA: description: DMA controller items: - - name: ISR - description: DMA interrupt status register (DMA_ISR) - byte_offset: 0 - access: Read - fieldset: ISR - - name: IFCR - description: DMA interrupt flag clear register (DMA_IFCR) - byte_offset: 4 - access: Write - fieldset: ISR - - name: CH - description: "Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers" - array: - len: 8 - stride: 20 - byte_offset: 8 - block: CH - - name: CSELR - description: channel selection register - byte_offset: 168 - fieldset: CSELR + - name: ISR + description: DMA interrupt status register (DMA_ISR) + byte_offset: 0 + access: Read + fieldset: ISR + - name: IFCR + description: DMA interrupt flag clear register (DMA_IFCR) + byte_offset: 4 + access: Write + fieldset: ISR + - name: CH + description: 'Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers' + array: + len: 8 + stride: 20 + byte_offset: 8 + block: CH + - name: CSELR + description: channel selection register + byte_offset: 168 + fieldset: CSELR fieldset/CR: description: DMA channel configuration register (DMA_CCR) fields: - - name: EN - description: Channel enable - bit_offset: 0 - bit_size: 1 - - name: TCIE - description: Transfer complete interrupt enable - bit_offset: 1 - bit_size: 1 - - name: HTIE - description: Half Transfer interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TEIE - description: Transfer error interrupt enable - bit_offset: 3 - bit_size: 1 - - name: DIR - description: Data transfer direction - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: CIRC - description: Circular mode - bit_offset: 5 - bit_size: 1 - enum: CIRC - - name: PINC - description: Peripheral increment mode - bit_offset: 6 - bit_size: 1 - enum: INC - - name: MINC - description: Memory increment mode - bit_offset: 7 - bit_size: 1 - enum: INC - - name: PSIZE - description: Peripheral size - bit_offset: 8 - bit_size: 2 - enum: SIZE - - name: MSIZE - description: Memory size - bit_offset: 10 - bit_size: 2 - enum: SIZE - - name: PL - description: Channel Priority level - bit_offset: 12 - bit_size: 2 - enum: PL - - name: MEM2MEM - description: Memory to memory mode - bit_offset: 14 - bit_size: 1 - enum: MEMMEM + - name: EN + description: Channel enable + bit_offset: 0 + bit_size: 1 + - name: TCIE + description: Transfer complete interrupt enable + bit_offset: 1 + bit_size: 1 + - name: HTIE + description: Half Transfer interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TEIE + description: Transfer error interrupt enable + bit_offset: 3 + bit_size: 1 + - name: DIR + description: Data transfer direction + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: CIRC + description: Circular mode + bit_offset: 5 + bit_size: 1 + enum: CIRC + - name: PINC + description: Peripheral increment mode + bit_offset: 6 + bit_size: 1 + enum: INC + - name: MINC + description: Memory increment mode + bit_offset: 7 + bit_size: 1 + enum: INC + - name: PSIZE + description: Peripheral size + bit_offset: 8 + bit_size: 2 + enum: SIZE + - name: MSIZE + description: Memory size + bit_offset: 10 + bit_size: 2 + enum: SIZE + - name: PL + description: Channel Priority level + bit_offset: 12 + bit_size: 2 + enum: PL + - name: MEM2MEM + description: Memory to memory mode + bit_offset: 14 + bit_size: 1 + enum: MEMMEM fieldset/CSELR: description: channel selection register fields: - - name: CS - description: DMA channel selection - bit_offset: 0 - bit_size: 4 - array: - len: 8 - stride: 4 + - name: CS + description: DMA channel selection + bit_offset: 0 + bit_size: 4 + array: + len: 8 + stride: 4 fieldset/ISR: description: DMA interrupt status register (DMA_ISR) fields: - - name: GIF - description: Channel 1 Global interrupt flag - bit_offset: 0 - bit_size: 1 - array: - len: 8 - stride: 4 - - name: TCIF - description: Channel 1 Transfer Complete flag - bit_offset: 1 - bit_size: 1 - array: - len: 8 - stride: 4 - - name: HTIF - description: Channel 1 Half Transfer Complete flag - bit_offset: 2 - bit_size: 1 - array: - len: 8 - stride: 4 - - name: TEIF - description: Channel 1 Transfer Error flag - bit_offset: 3 - bit_size: 1 - array: - len: 8 - stride: 4 + - name: GIF + description: Channel 1 Global interrupt flag + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 4 + - name: TCIF + description: Channel 1 Transfer Complete flag + bit_offset: 1 + bit_size: 1 + array: + len: 8 + stride: 4 + - name: HTIF + description: Channel 1 Half Transfer Complete flag + bit_offset: 2 + bit_size: 1 + array: + len: 8 + stride: 4 + - name: TEIF + description: Channel 1 Transfer Error flag + bit_offset: 3 + bit_size: 1 + array: + len: 8 + stride: 4 fieldset/NDTR: description: DMA channel 1 number of data register fields: - - name: NDT - description: Number of data to transfer - bit_offset: 0 - bit_size: 16 + - name: NDT + description: Number of data to transfer + bit_offset: 0 + bit_size: 16 enum/CIRC: bit_size: 1 variants: - - name: Disabled - description: Circular buffer disabled - value: 0 - - name: Enabled - description: Circular buffer enabled - value: 1 + - name: Disabled + description: Circular buffer disabled + value: 0 + - name: Enabled + description: Circular buffer enabled + value: 1 enum/DIR: bit_size: 1 variants: - - name: FromPeripheral - description: Read from peripheral - value: 0 - - name: FromMemory - description: Read from memory - value: 1 + - name: FromPeripheral + description: Read from peripheral + value: 0 + - name: FromMemory + description: Read from memory + value: 1 enum/INC: bit_size: 1 variants: - - name: Disabled - description: Increment mode disabled - value: 0 - - name: Enabled - description: Increment mode enabled - value: 1 + - name: Disabled + description: Increment mode disabled + value: 0 + - name: Enabled + description: Increment mode enabled + value: 1 enum/MEMMEM: bit_size: 1 variants: - - name: Disabled - description: Memory to memory mode disabled - value: 0 - - name: Enabled - description: Memory to memory mode enabled - value: 1 + - name: Disabled + description: Memory to memory mode disabled + value: 0 + - name: Enabled + description: Memory to memory mode enabled + value: 1 enum/PL: bit_size: 2 variants: - - name: Low - description: Low priority - value: 0 - - name: Medium - description: Medium priority - value: 1 - - name: High - description: High priority - value: 2 - - name: VeryHigh - description: Very high priority - value: 3 + - name: Low + description: Low priority + value: 0 + - name: Medium + description: Medium priority + value: 1 + - name: High + description: High priority + value: 2 + - name: VeryHigh + description: Very high priority + value: 3 enum/SIZE: bit_size: 2 variants: - - name: Bits8 - description: 8-bit size - value: 0 - - name: Bits16 - description: 16-bit size - value: 1 - - name: Bits32 - description: 32-bit size - value: 2 + - name: Bits8 + description: 8-bit size + value: 0 + - name: Bits16 + description: 16-bit size + value: 1 + - name: Bits32 + description: 32-bit size + value: 2 diff --git a/data/registers/bkp_v1.yaml b/data/registers/bkp_v1.yaml index 6f85991..756ad61 100644 --- a/data/registers/bkp_v1.yaml +++ b/data/registers/bkp_v1.yaml @@ -1,144 +1,143 @@ ---- block/BKP: description: Backup registers items: - - name: DR - description: Data register - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - 20 - - 24 - - 28 - - 32 - - 36 - - 60 - - 64 - - 68 - - 72 - - 76 - - 80 - - 84 - - 88 - - 92 - - 96 - - 100 - - 104 - - 108 - - 112 - - 116 - - 120 - - 124 - - 128 - - 132 - - 136 - - 140 - - 144 - - 148 - - 152 - - 156 - - 160 - - 164 - - 168 - - 172 - - 176 - - 180 - - 184 - byte_offset: 0 - fieldset: DR - - name: RTCCR - description: RTC clock calibration register - byte_offset: 40 - fieldset: RTCCR - - name: CR - description: Control register - byte_offset: 44 - fieldset: CR - - name: CSR - description: Control/status register - byte_offset: 48 - fieldset: CSR + - name: DR + description: Data register + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - 20 + - 24 + - 28 + - 32 + - 36 + - 60 + - 64 + - 68 + - 72 + - 76 + - 80 + - 84 + - 88 + - 92 + - 96 + - 100 + - 104 + - 108 + - 112 + - 116 + - 120 + - 124 + - 128 + - 132 + - 136 + - 140 + - 144 + - 148 + - 152 + - 156 + - 160 + - 164 + - 168 + - 172 + - 176 + - 180 + - 184 + byte_offset: 0 + fieldset: DR + - name: RTCCR + description: RTC clock calibration register + byte_offset: 40 + fieldset: RTCCR + - name: CR + description: Control register + byte_offset: 44 + fieldset: CR + - name: CSR + description: Control/status register + byte_offset: 48 + fieldset: CSR fieldset/CR: description: Control register fields: - - name: TPE - description: Tamper pin enable - bit_offset: 0 - bit_size: 1 - - name: TPAL - description: Tamper pin active level - bit_offset: 1 - bit_size: 1 - enum: TPAL + - name: TPE + description: Tamper pin enable + bit_offset: 0 + bit_size: 1 + - name: TPAL + description: Tamper pin active level + bit_offset: 1 + bit_size: 1 + enum: TPAL fieldset/CSR: description: Control/status register fields: - - name: CTE - description: Clear Tamper event - bit_offset: 0 - bit_size: 1 - - name: CTI - description: Clear Tamper Interrupt - bit_offset: 1 - bit_size: 1 - - name: TPIE - description: Tamper Pin interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TEF - description: Tamper Event Flag - bit_offset: 8 - bit_size: 1 - - name: TIF - description: Tamper Interrupt Flag - bit_offset: 9 - bit_size: 1 + - name: CTE + description: Clear Tamper event + bit_offset: 0 + bit_size: 1 + - name: CTI + description: Clear Tamper Interrupt + bit_offset: 1 + bit_size: 1 + - name: TPIE + description: Tamper Pin interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TEF + description: Tamper Event Flag + bit_offset: 8 + bit_size: 1 + - name: TIF + description: Tamper Interrupt Flag + bit_offset: 9 + bit_size: 1 fieldset/DR: description: Data register fields: - - name: D - description: Backup data - bit_offset: 0 - bit_size: 16 + - name: D + description: Backup data + bit_offset: 0 + bit_size: 16 fieldset/RTCCR: description: RTC clock calibration register fields: - - name: CAL - description: Calibration value - bit_offset: 0 - bit_size: 7 - - name: CCO - description: Calibration Clock Output - bit_offset: 7 - bit_size: 1 - - name: ASOE - description: Alarm or second output enable - bit_offset: 8 - bit_size: 1 - - name: ASOS - description: Alarm or second output selection - bit_offset: 9 - bit_size: 1 - enum: ASOS + - name: CAL + description: Calibration value + bit_offset: 0 + bit_size: 7 + - name: CCO + description: Calibration Clock Output + bit_offset: 7 + bit_size: 1 + - name: ASOE + description: Alarm or second output enable + bit_offset: 8 + bit_size: 1 + - name: ASOS + description: Alarm or second output selection + bit_offset: 9 + bit_size: 1 + enum: ASOS enum/ASOS: bit_size: 1 variants: - - name: Alarm - description: RTC Alarm pulse output selected - value: 0 - - name: Second - description: RTC Second pulse output selected - value: 1 + - name: Alarm + description: RTC Alarm pulse output selected + value: 0 + - name: Second + description: RTC Second pulse output selected + value: 1 enum/TPAL: bit_size: 1 variants: - - name: High - description: A high level on the TAMPER pin resets all data backup registers (if TPE bit is set) - value: 0 - - name: Low - description: A low level on the TAMPER pin resets all data backup registers (if TPE bit is set) - value: 1 + - name: High + description: A high level on the TAMPER pin resets all data backup registers (if TPE bit is set) + value: 0 + - name: Low + description: A low level on the TAMPER pin resets all data backup registers (if TPE bit is set) + value: 1 diff --git a/data/registers/can_bxcan.yaml b/data/registers/can_bxcan.yaml index c7f1ad4..7d1e371 100644 --- a/data/registers/can_bxcan.yaml +++ b/data/registers/can_bxcan.yaml @@ -1,776 +1,775 @@ ---- block/CAN: description: Controller area network items: - - name: MCR - description: master control register - byte_offset: 0 - fieldset: MCR - - name: MSR - description: master status register - byte_offset: 4 - fieldset: MSR - - name: TSR - description: transmit status register - byte_offset: 8 - fieldset: TSR - - name: RFR - description: receive FIFO 0 register - array: - len: 2 - stride: 4 - byte_offset: 12 - fieldset: RFR - - name: IER - description: interrupt enable register - byte_offset: 20 - fieldset: IER - - name: ESR - description: error status register - byte_offset: 24 - fieldset: ESR - - name: BTR - description: bit timing register - byte_offset: 28 - fieldset: BTR - - name: TX - description: CAN Transmit cluster - array: - len: 3 - stride: 16 - byte_offset: 384 - block: TX - - name: RX - description: CAN Receive cluster - array: - len: 2 - stride: 16 - byte_offset: 432 - block: RX - - name: FMR - description: filter master register - byte_offset: 512 - fieldset: FMR - - name: FM1R - description: filter mode register - byte_offset: 516 - fieldset: FM1R - - name: FS1R - description: filter scale register - byte_offset: 524 - fieldset: FS1R - - name: FFA1R - description: filter FIFO assignment register - byte_offset: 532 - fieldset: FFA1R - - name: FA1R - description: filter activation register - byte_offset: 540 - fieldset: FA1R - - name: FB - description: CAN Filter Bank cluster - array: - len: 28 - stride: 8 - byte_offset: 576 - block: FB + - name: MCR + description: master control register + byte_offset: 0 + fieldset: MCR + - name: MSR + description: master status register + byte_offset: 4 + fieldset: MSR + - name: TSR + description: transmit status register + byte_offset: 8 + fieldset: TSR + - name: RFR + description: receive FIFO 0 register + array: + len: 2 + stride: 4 + byte_offset: 12 + fieldset: RFR + - name: IER + description: interrupt enable register + byte_offset: 20 + fieldset: IER + - name: ESR + description: error status register + byte_offset: 24 + fieldset: ESR + - name: BTR + description: bit timing register + byte_offset: 28 + fieldset: BTR + - name: TX + description: CAN Transmit cluster + array: + len: 3 + stride: 16 + byte_offset: 384 + block: TX + - name: RX + description: CAN Receive cluster + array: + len: 2 + stride: 16 + byte_offset: 432 + block: RX + - name: FMR + description: filter master register + byte_offset: 512 + fieldset: FMR + - name: FM1R + description: filter mode register + byte_offset: 516 + fieldset: FM1R + - name: FS1R + description: filter scale register + byte_offset: 524 + fieldset: FS1R + - name: FFA1R + description: filter FIFO assignment register + byte_offset: 532 + fieldset: FFA1R + - name: FA1R + description: filter activation register + byte_offset: 540 + fieldset: FA1R + - name: FB + description: CAN Filter Bank cluster + array: + len: 28 + stride: 8 + byte_offset: 576 + block: FB block/FB: description: CAN Filter Bank cluster items: - - name: FR1 - description: Filter bank 0 register 1 - byte_offset: 0 - fieldset: FR1 - - name: FR2 - description: Filter bank 0 register 2 - byte_offset: 4 - fieldset: FR2 + - name: FR1 + description: Filter bank 0 register 1 + byte_offset: 0 + fieldset: FR1 + - name: FR2 + description: Filter bank 0 register 2 + byte_offset: 4 + fieldset: FR2 block/RX: description: CAN Receive cluster items: - - name: RIR - description: receive FIFO mailbox identifier register - byte_offset: 0 - access: Read - fieldset: RIR - - name: RDTR - description: mailbox data high register - byte_offset: 4 - access: Read - fieldset: RDTR - - name: RDLR - description: mailbox data high register - byte_offset: 8 - access: Read - fieldset: RDLR - - name: RDHR - description: receive FIFO mailbox data high register - byte_offset: 12 - access: Read - fieldset: RDHR + - name: RIR + description: receive FIFO mailbox identifier register + byte_offset: 0 + access: Read + fieldset: RIR + - name: RDTR + description: mailbox data high register + byte_offset: 4 + access: Read + fieldset: RDTR + - name: RDLR + description: mailbox data high register + byte_offset: 8 + access: Read + fieldset: RDLR + - name: RDHR + description: receive FIFO mailbox data high register + byte_offset: 12 + access: Read + fieldset: RDHR block/TX: description: CAN Transmit cluster items: - - name: TIR - description: TX mailbox identifier register - byte_offset: 0 - fieldset: TIR - - name: TDTR - description: mailbox data length control and time stamp register - byte_offset: 4 - fieldset: TDTR - - name: TDLR - description: mailbox data low register - byte_offset: 8 - fieldset: TDLR - - name: TDHR - description: mailbox data high register - byte_offset: 12 - fieldset: TDHR + - name: TIR + description: TX mailbox identifier register + byte_offset: 0 + fieldset: TIR + - name: TDTR + description: mailbox data length control and time stamp register + byte_offset: 4 + fieldset: TDTR + - name: TDLR + description: mailbox data low register + byte_offset: 8 + fieldset: TDLR + - name: TDHR + description: mailbox data high register + byte_offset: 12 + fieldset: TDHR fieldset/BTR: description: bit timing register fields: - - name: BRP - description: BRP - bit_offset: 0 - bit_size: 10 - - name: TS - description: TS1 - bit_offset: 16 - bit_size: 4 - array: - len: 2 - stride: 4 - - name: SJW - description: SJW - bit_offset: 24 - bit_size: 2 - - name: LBKM - description: LBKM - bit_offset: 30 - bit_size: 1 - enum: LBKM - - name: SILM - description: SILM - bit_offset: 31 - bit_size: 1 - enum: SILM + - name: BRP + description: BRP + bit_offset: 0 + bit_size: 10 + - name: TS + description: TS1 + bit_offset: 16 + bit_size: 4 + array: + len: 2 + stride: 4 + - name: SJW + description: SJW + bit_offset: 24 + bit_size: 2 + - name: LBKM + description: LBKM + bit_offset: 30 + bit_size: 1 + enum: LBKM + - name: SILM + description: SILM + bit_offset: 31 + bit_size: 1 + enum: SILM fieldset/ESR: description: interrupt enable register fields: - - name: EWGF - description: EWGF - bit_offset: 0 - bit_size: 1 - - name: EPVF - description: EPVF - bit_offset: 1 - bit_size: 1 - - name: BOFF - description: BOFF - bit_offset: 2 - bit_size: 1 - - name: LEC - description: LEC - bit_offset: 4 - bit_size: 3 - enum: LEC - - name: TEC - description: TEC - bit_offset: 16 - bit_size: 8 - - name: REC - description: REC - bit_offset: 24 - bit_size: 8 + - name: EWGF + description: EWGF + bit_offset: 0 + bit_size: 1 + - name: EPVF + description: EPVF + bit_offset: 1 + bit_size: 1 + - name: BOFF + description: BOFF + bit_offset: 2 + bit_size: 1 + - name: LEC + description: LEC + bit_offset: 4 + bit_size: 3 + enum: LEC + - name: TEC + description: TEC + bit_offset: 16 + bit_size: 8 + - name: REC + description: REC + bit_offset: 24 + bit_size: 8 fieldset/FA1R: description: filter activation register fields: - - name: FACT - description: Filter active - bit_offset: 0 - bit_size: 1 - array: - len: 28 - stride: 1 + - name: FACT + description: Filter active + bit_offset: 0 + bit_size: 1 + array: + len: 28 + stride: 1 fieldset/FFA1R: description: filter FIFO assignment register fields: - - name: FFA - description: Filter FIFO assignment for filter 0 - bit_offset: 0 - bit_size: 1 - array: - len: 28 - stride: 1 + - name: FFA + description: Filter FIFO assignment for filter 0 + bit_offset: 0 + bit_size: 1 + array: + len: 28 + stride: 1 fieldset/FM1R: description: filter mode register fields: - - name: FBM - description: Filter mode - bit_offset: 0 - bit_size: 1 - array: - len: 28 - stride: 1 + - name: FBM + description: Filter mode + bit_offset: 0 + bit_size: 1 + array: + len: 28 + stride: 1 fieldset/FMR: description: filter master register fields: - - name: FINIT - description: FINIT - bit_offset: 0 - bit_size: 1 - - name: CAN2SB - description: CAN2SB - bit_offset: 8 - bit_size: 6 + - name: FINIT + description: FINIT + bit_offset: 0 + bit_size: 1 + - name: CAN2SB + description: CAN2SB + bit_offset: 8 + bit_size: 6 fieldset/FR1: description: Filter bank 0 register 1 fields: - - name: FB - description: Filter bits - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: FB + description: Filter bits + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/FR2: description: Filter bank 0 register 2 fields: - - name: FB - description: Filter bits - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: FB + description: Filter bits + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/FS1R: description: filter scale register fields: - - name: FSC - description: Filter scale configuration - bit_offset: 0 - bit_size: 1 - array: - len: 28 - stride: 1 + - name: FSC + description: Filter scale configuration + bit_offset: 0 + bit_size: 1 + array: + len: 28 + stride: 1 fieldset/IER: description: interrupt enable register fields: - - name: TMEIE - description: TMEIE - bit_offset: 0 - bit_size: 1 - enum: TMEIE - - name: FMPIE - description: FMPIE0 - bit_offset: 1 - bit_size: 1 - array: - len: 2 - stride: 3 - enum: FMPIE - - name: FFIE - description: FFIE0 - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 3 - enum: FFIE - - name: FOVIE - description: FOVIE0 - bit_offset: 3 - bit_size: 1 - array: - len: 2 - stride: 3 - enum: FOVIE - - name: EWGIE - description: EWGIE - bit_offset: 8 - bit_size: 1 - enum: EWGIE - - name: EPVIE - description: EPVIE - bit_offset: 9 - bit_size: 1 - enum: EPVIE - - name: BOFIE - description: BOFIE - bit_offset: 10 - bit_size: 1 - enum: BOFIE - - name: LECIE - description: LECIE - bit_offset: 11 - bit_size: 1 - enum: LECIE - - name: ERRIE - description: ERRIE - bit_offset: 15 - bit_size: 1 - enum: ERRIE - - name: WKUIE - description: WKUIE - bit_offset: 16 - bit_size: 1 - enum: WKUIE - - name: SLKIE - description: SLKIE - bit_offset: 17 - bit_size: 1 - enum: SLKIE + - name: TMEIE + description: TMEIE + bit_offset: 0 + bit_size: 1 + enum: TMEIE + - name: FMPIE + description: FMPIE0 + bit_offset: 1 + bit_size: 1 + array: + len: 2 + stride: 3 + enum: FMPIE + - name: FFIE + description: FFIE0 + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 3 + enum: FFIE + - name: FOVIE + description: FOVIE0 + bit_offset: 3 + bit_size: 1 + array: + len: 2 + stride: 3 + enum: FOVIE + - name: EWGIE + description: EWGIE + bit_offset: 8 + bit_size: 1 + enum: EWGIE + - name: EPVIE + description: EPVIE + bit_offset: 9 + bit_size: 1 + enum: EPVIE + - name: BOFIE + description: BOFIE + bit_offset: 10 + bit_size: 1 + enum: BOFIE + - name: LECIE + description: LECIE + bit_offset: 11 + bit_size: 1 + enum: LECIE + - name: ERRIE + description: ERRIE + bit_offset: 15 + bit_size: 1 + enum: ERRIE + - name: WKUIE + description: WKUIE + bit_offset: 16 + bit_size: 1 + enum: WKUIE + - name: SLKIE + description: SLKIE + bit_offset: 17 + bit_size: 1 + enum: SLKIE fieldset/MCR: description: master control register fields: - - name: INRQ - description: INRQ - bit_offset: 0 - bit_size: 1 - - name: SLEEP - description: SLEEP - bit_offset: 1 - bit_size: 1 - - name: TXFP - description: TXFP - bit_offset: 2 - bit_size: 1 - - name: RFLM - description: RFLM - bit_offset: 3 - bit_size: 1 - - name: NART - description: NART - bit_offset: 4 - bit_size: 1 - - name: AWUM - description: AWUM - bit_offset: 5 - bit_size: 1 - - name: ABOM - description: ABOM - bit_offset: 6 - bit_size: 1 - - name: TTCM - description: TTCM - bit_offset: 7 - bit_size: 1 - - name: RESET - description: RESET - bit_offset: 15 - bit_size: 1 - - name: DBF - description: DBF - bit_offset: 16 - bit_size: 1 + - name: INRQ + description: INRQ + bit_offset: 0 + bit_size: 1 + - name: SLEEP + description: SLEEP + bit_offset: 1 + bit_size: 1 + - name: TXFP + description: TXFP + bit_offset: 2 + bit_size: 1 + - name: RFLM + description: RFLM + bit_offset: 3 + bit_size: 1 + - name: NART + description: NART + bit_offset: 4 + bit_size: 1 + - name: AWUM + description: AWUM + bit_offset: 5 + bit_size: 1 + - name: ABOM + description: ABOM + bit_offset: 6 + bit_size: 1 + - name: TTCM + description: TTCM + bit_offset: 7 + bit_size: 1 + - name: RESET + description: RESET + bit_offset: 15 + bit_size: 1 + - name: DBF + description: DBF + bit_offset: 16 + bit_size: 1 fieldset/MSR: description: master status register fields: - - name: INAK - description: INAK - bit_offset: 0 - bit_size: 1 - - name: SLAK - description: SLAK - bit_offset: 1 - bit_size: 1 - - name: ERRI - description: ERRI - bit_offset: 2 - bit_size: 1 - - name: WKUI - description: WKUI - bit_offset: 3 - bit_size: 1 - - name: SLAKI - description: SLAKI - bit_offset: 4 - bit_size: 1 - - name: TXM - description: TXM - bit_offset: 8 - bit_size: 1 - - name: RXM - description: RXM - bit_offset: 9 - bit_size: 1 - - name: SAMP - description: SAMP - bit_offset: 10 - bit_size: 1 - - name: RX - description: RX - bit_offset: 11 - bit_size: 1 + - name: INAK + description: INAK + bit_offset: 0 + bit_size: 1 + - name: SLAK + description: SLAK + bit_offset: 1 + bit_size: 1 + - name: ERRI + description: ERRI + bit_offset: 2 + bit_size: 1 + - name: WKUI + description: WKUI + bit_offset: 3 + bit_size: 1 + - name: SLAKI + description: SLAKI + bit_offset: 4 + bit_size: 1 + - name: TXM + description: TXM + bit_offset: 8 + bit_size: 1 + - name: RXM + description: RXM + bit_offset: 9 + bit_size: 1 + - name: SAMP + description: SAMP + bit_offset: 10 + bit_size: 1 + - name: RX + description: RX + bit_offset: 11 + bit_size: 1 fieldset/RDHR: description: receive FIFO mailbox data high register fields: - - name: DATA - description: DATA4 - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: DATA + description: DATA4 + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/RDLR: description: mailbox data high register fields: - - name: DATA - description: DATA0 - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: DATA + description: DATA0 + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/RDTR: description: mailbox data high register fields: - - name: DLC - description: DLC - bit_offset: 0 - bit_size: 4 - - name: FMI - description: FMI - bit_offset: 8 - bit_size: 8 - - name: TIME - description: TIME - bit_offset: 16 - bit_size: 16 + - name: DLC + description: DLC + bit_offset: 0 + bit_size: 4 + - name: FMI + description: FMI + bit_offset: 8 + bit_size: 8 + - name: TIME + description: TIME + bit_offset: 16 + bit_size: 16 fieldset/RFR: description: receive FIFO 0 register fields: - - name: FMP - description: FMP0 - bit_offset: 0 - bit_size: 2 - - name: FULL - description: FULL0 - bit_offset: 3 - bit_size: 1 - - name: FOVR - description: FOVR0 - bit_offset: 4 - bit_size: 1 - - name: RFOM - description: RFOM0 - bit_offset: 5 - bit_size: 1 + - name: FMP + description: FMP0 + bit_offset: 0 + bit_size: 2 + - name: FULL + description: FULL0 + bit_offset: 3 + bit_size: 1 + - name: FOVR + description: FOVR0 + bit_offset: 4 + bit_size: 1 + - name: RFOM + description: RFOM0 + bit_offset: 5 + bit_size: 1 fieldset/RIR: description: receive FIFO mailbox identifier register fields: - - name: RTR - description: RTR - bit_offset: 1 - bit_size: 1 - enum: RIR_RTR - - name: IDE - description: IDE - bit_offset: 2 - bit_size: 1 - enum: RIR_IDE - - name: EXID - description: EXID - bit_offset: 3 - bit_size: 18 - - name: STID - description: STID - bit_offset: 21 - bit_size: 11 + - name: RTR + description: RTR + bit_offset: 1 + bit_size: 1 + enum: RIR_RTR + - name: IDE + description: IDE + bit_offset: 2 + bit_size: 1 + enum: RIR_IDE + - name: EXID + description: EXID + bit_offset: 3 + bit_size: 18 + - name: STID + description: STID + bit_offset: 21 + bit_size: 11 fieldset/TDHR: description: mailbox data high register fields: - - name: DATA - description: DATA4 - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: DATA + description: DATA4 + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/TDLR: description: mailbox data low register fields: - - name: DATA - description: DATA0 - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: DATA + description: DATA0 + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/TDTR: description: mailbox data length control and time stamp register fields: - - name: DLC - description: DLC - bit_offset: 0 - bit_size: 4 - - name: TGT - description: TGT - bit_offset: 8 - bit_size: 1 - - name: TIME - description: TIME - bit_offset: 16 - bit_size: 16 + - name: DLC + description: DLC + bit_offset: 0 + bit_size: 4 + - name: TGT + description: TGT + bit_offset: 8 + bit_size: 1 + - name: TIME + description: TIME + bit_offset: 16 + bit_size: 16 fieldset/TIR: description: TX mailbox identifier register fields: - - name: TXRQ - description: TXRQ - bit_offset: 0 - bit_size: 1 - - name: RTR - description: RTR - bit_offset: 1 - bit_size: 1 - enum: TIR_RTR - - name: IDE - description: IDE - bit_offset: 2 - bit_size: 1 - enum: TIR_IDE - - name: EXID - description: EXID - bit_offset: 3 - bit_size: 18 - - name: STID - description: STID - bit_offset: 21 - bit_size: 11 + - name: TXRQ + description: TXRQ + bit_offset: 0 + bit_size: 1 + - name: RTR + description: RTR + bit_offset: 1 + bit_size: 1 + enum: TIR_RTR + - name: IDE + description: IDE + bit_offset: 2 + bit_size: 1 + enum: TIR_IDE + - name: EXID + description: EXID + bit_offset: 3 + bit_size: 18 + - name: STID + description: STID + bit_offset: 21 + bit_size: 11 fieldset/TSR: description: transmit status register fields: - - name: RQCP - description: RQCP0 - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 8 - - name: TXOK - description: TXOK0 - bit_offset: 1 - bit_size: 1 - array: - len: 3 - stride: 8 - - name: ALST - description: ALST0 - bit_offset: 2 - bit_size: 1 - array: - len: 3 - stride: 8 - - name: TERR - description: TERR0 - bit_offset: 3 - bit_size: 1 - array: - len: 3 - stride: 8 - - name: ABRQ - description: ABRQ0 - bit_offset: 7 - bit_size: 1 - array: - len: 3 - stride: 8 - - name: CODE - description: CODE - bit_offset: 24 - bit_size: 2 - - name: TME - description: Lowest priority flag for mailbox 0 - bit_offset: 26 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LOW - description: Lowest priority flag for mailbox 0 - bit_offset: 29 - bit_size: 1 - array: - len: 3 - stride: 1 + - name: RQCP + description: RQCP0 + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 8 + - name: TXOK + description: TXOK0 + bit_offset: 1 + bit_size: 1 + array: + len: 3 + stride: 8 + - name: ALST + description: ALST0 + bit_offset: 2 + bit_size: 1 + array: + len: 3 + stride: 8 + - name: TERR + description: TERR0 + bit_offset: 3 + bit_size: 1 + array: + len: 3 + stride: 8 + - name: ABRQ + description: ABRQ0 + bit_offset: 7 + bit_size: 1 + array: + len: 3 + stride: 8 + - name: CODE + description: CODE + bit_offset: 24 + bit_size: 2 + - name: TME + description: Lowest priority flag for mailbox 0 + bit_offset: 26 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LOW + description: Lowest priority flag for mailbox 0 + bit_offset: 29 + bit_size: 1 + array: + len: 3 + stride: 1 enum/BOFIE: bit_size: 1 variants: - - name: Disabled - description: ERRI bit will not be set when BOFF is set - value: 0 - - name: Enabled - description: ERRI bit will be set when BOFF is set - value: 1 + - name: Disabled + description: ERRI bit will not be set when BOFF is set + value: 0 + - name: Enabled + description: ERRI bit will be set when BOFF is set + value: 1 enum/EPVIE: bit_size: 1 variants: - - name: Disabled - description: ERRI bit will not be set when EPVF is set - value: 0 - - name: Enabled - description: ERRI bit will be set when EPVF is set - value: 1 + - name: Disabled + description: ERRI bit will not be set when EPVF is set + value: 0 + - name: Enabled + description: ERRI bit will be set when EPVF is set + value: 1 enum/ERRIE: bit_size: 1 variants: - - name: Disabled - description: No interrupt will be generated when an error condition is pending in the CAN_ESR - value: 0 - - name: Enabled - description: An interrupt will be generation when an error condition is pending in the CAN_ESR - value: 1 + - name: Disabled + description: No interrupt will be generated when an error condition is pending in the CAN_ESR + value: 0 + - name: Enabled + description: An interrupt will be generation when an error condition is pending in the CAN_ESR + value: 1 enum/EWGIE: bit_size: 1 variants: - - name: Disabled - description: ERRI bit will not be set when EWGF is set - value: 0 - - name: Enabled - description: ERRI bit will be set when EWGF is set - value: 1 + - name: Disabled + description: ERRI bit will not be set when EWGF is set + value: 0 + - name: Enabled + description: ERRI bit will be set when EWGF is set + value: 1 enum/FFIE: bit_size: 1 variants: - - name: Disabled - description: No interrupt when FULL bit is set - value: 0 - - name: Enabled - description: Interrupt generated when FULL bit is set - value: 1 + - name: Disabled + description: No interrupt when FULL bit is set + value: 0 + - name: Enabled + description: Interrupt generated when FULL bit is set + value: 1 enum/FMPIE: bit_size: 1 variants: - - name: Disabled - description: "No interrupt generated when state of FMP[1:0] bits are not 00b" - value: 0 - - name: Enabled - description: "Interrupt generated when state of FMP[1:0] bits are not 00b" - value: 1 + - name: Disabled + description: No interrupt generated when state of FMP[1:0] bits are not 00b + value: 0 + - name: Enabled + description: Interrupt generated when state of FMP[1:0] bits are not 00b + value: 1 enum/FOVIE: bit_size: 1 variants: - - name: Disabled - description: No interrupt when FOVR bit is set - value: 0 - - name: Enabled - description: Interrupt generated when FOVR bit is set - value: 1 + - name: Disabled + description: No interrupt when FOVR bit is set + value: 0 + - name: Enabled + description: Interrupt generated when FOVR bit is set + value: 1 enum/LBKM: bit_size: 1 variants: - - name: Disabled - description: Loop Back Mode disabled - value: 0 - - name: Enabled - description: Loop Back Mode enabled - value: 1 + - name: Disabled + description: Loop Back Mode disabled + value: 0 + - name: Enabled + description: Loop Back Mode enabled + value: 1 enum/LEC: bit_size: 3 variants: - - name: NoError - description: No Error - value: 0 - - name: Stuff - description: Stuff Error - value: 1 - - name: Form - description: Form Error - value: 2 - - name: Ack - description: Acknowledgment Error - value: 3 - - name: BitRecessive - description: Bit recessive Error - value: 4 - - name: BitDominant - description: Bit dominant Error - value: 5 - - name: Crc - description: CRC Error - value: 6 - - name: Custom - description: Set by software - value: 7 + - name: NoError + description: No Error + value: 0 + - name: Stuff + description: Stuff Error + value: 1 + - name: Form + description: Form Error + value: 2 + - name: Ack + description: Acknowledgment Error + value: 3 + - name: BitRecessive + description: Bit recessive Error + value: 4 + - name: BitDominant + description: Bit dominant Error + value: 5 + - name: Crc + description: CRC Error + value: 6 + - name: Custom + description: Set by software + value: 7 enum/LECIE: bit_size: 1 variants: - - name: Disabled - description: "ERRI bit will not be set when the error code in LEC[2:0] is set by hardware on error detection" - value: 0 - - name: Enabled - description: "ERRI bit will be set when the error code in LEC[2:0] is set by hardware on error detection" - value: 1 + - name: Disabled + description: ERRI bit will not be set when the error code in LEC[2:0] is set by hardware on error detection + value: 0 + - name: Enabled + description: ERRI bit will be set when the error code in LEC[2:0] is set by hardware on error detection + value: 1 enum/RIR_IDE: bit_size: 1 variants: - - name: Standard - description: Standard identifier - value: 0 - - name: Extended - description: Extended identifier - value: 1 + - name: Standard + description: Standard identifier + value: 0 + - name: Extended + description: Extended identifier + value: 1 enum/RIR_RTR: bit_size: 1 variants: - - name: Data - description: Data frame - value: 0 - - name: Remote - description: Remote frame - value: 1 + - name: Data + description: Data frame + value: 0 + - name: Remote + description: Remote frame + value: 1 enum/SILM: bit_size: 1 variants: - - name: Normal - description: Normal operation - value: 0 - - name: Silent - description: Silent Mode - value: 1 + - name: Normal + description: Normal operation + value: 0 + - name: Silent + description: Silent Mode + value: 1 enum/SLKIE: bit_size: 1 variants: - - name: Disabled - description: No interrupt when SLAKI bit is set - value: 0 - - name: Enabled - description: Interrupt generated when SLAKI bit is set - value: 1 + - name: Disabled + description: No interrupt when SLAKI bit is set + value: 0 + - name: Enabled + description: Interrupt generated when SLAKI bit is set + value: 1 enum/TIR_IDE: bit_size: 1 variants: - - name: Standard - description: Standard identifier - value: 0 - - name: Extended - description: Extended identifier - value: 1 + - name: Standard + description: Standard identifier + value: 0 + - name: Extended + description: Extended identifier + value: 1 enum/TIR_RTR: bit_size: 1 variants: - - name: Data - description: Data frame - value: 0 - - name: Remote - description: Remote frame - value: 1 + - name: Data + description: Data frame + value: 0 + - name: Remote + description: Remote frame + value: 1 enum/TMEIE: bit_size: 1 variants: - - name: Disabled - description: No interrupt when RQCPx bit is set - value: 0 - - name: Enabled - description: Interrupt generated when RQCPx bit is set - value: 1 + - name: Disabled + description: No interrupt when RQCPx bit is set + value: 0 + - name: Enabled + description: Interrupt generated when RQCPx bit is set + value: 1 enum/WKUIE: bit_size: 1 variants: - - name: Disabled - description: No interrupt when WKUI is set - value: 0 - - name: Enabled - description: Interrupt generated when WKUI bit is set - value: 1 + - name: Disabled + description: No interrupt when WKUI is set + value: 0 + - name: Enabled + description: Interrupt generated when WKUI bit is set + value: 1 diff --git a/data/registers/can_fdcan.yaml b/data/registers/can_fdcan.yaml index cea4b80..4274d98 100644 --- a/data/registers/can_fdcan.yaml +++ b/data/registers/can_fdcan.yaml @@ -1,895 +1,893 @@ ---- block/FDCAN: description: FDCAN items: - - name: CREL - description: FDCAN Core Release Register - byte_offset: 0 - access: Read - fieldset: CREL - - name: ENDN - description: FDCAN Core Release Register - byte_offset: 4 - access: Read - fieldset: ENDN - - name: DBTP - description: "This register is only writable if bits CCCR.CCE and CCCR.INIT are set. The CAN bit time may be programed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 1024 FDCAN clock periods. tq = (DBRP + 1) FDCAN clock period. DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2. Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point." - byte_offset: 12 - fieldset: DBTP - - name: TEST - description: "Write access to the Test Register has to be enabled by setting bit CCCR[TEST] to 1 . All Test Register functions are set to their reset values when bit CCCR[TEST] is reset. Loop Back mode and software control of Tx pin FDCANx_TX are hardware test modes. Programming TX differently from 00 may disturb the message transfer on the CAN bus." - byte_offset: 16 - fieldset: TEST - - name: RWD - description: "The RAM Watchdog monitors the READY output of the Message RAM. A Message RAM access starts the Message RAM Watchdog Counter with the value configured by the RWD[WDC] bits. The counter is reloaded with RWD[WDC] bits when the Message RAM signals successful completion by activating its READY output. In case there is no response from the Message RAM until the counter has counted down to 0, the counter stops and interrupt flag IR[WDI] bit is set. The RAM Watchdog Counter is clocked by the fdcan_pclk clock." - byte_offset: 20 - fieldset: RWD - - name: CCCR - description: For details about setting and resetting of single bits see Software initialization. - byte_offset: 24 - fieldset: CCCR - - name: NBTP - description: FDCAN_NBTP - byte_offset: 28 - fieldset: NBTP - - name: TSCC - description: FDCAN Timestamp Counter Configuration Register - byte_offset: 32 - fieldset: TSCC - - name: TSCV - description: FDCAN Timestamp Counter Value Register - byte_offset: 36 - fieldset: TSCV - - name: TOCC - description: FDCAN Timeout Counter Configuration Register - byte_offset: 40 - fieldset: TOCC - - name: TOCV - description: FDCAN Timeout Counter Value Register - byte_offset: 44 - fieldset: TOCV - - name: ECR - description: FDCAN Error Counter Register - byte_offset: 64 - access: Read - fieldset: ECR - - name: PSR - description: FDCAN Protocol Status Register - byte_offset: 68 - fieldset: PSR - - name: TDCR - description: FDCAN Transmitter Delay Compensation Register - byte_offset: 72 - fieldset: TDCR - - name: IR - description: The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the Host clears them. A flag is cleared by writing a 1 to the corresponding bit position. Writing a 0 has no effect. A hard reset will clear the register. The configuration of IE controls whether an interrupt is generated. The configuration of ILS controls on which interrupt line an interrupt is signaled. - byte_offset: 80 - fieldset: IR - - name: IE - description: The settings in the Interrupt Enable register determine which status changes in the Interrupt Register will be signaled on an interrupt line. - byte_offset: 84 - fieldset: IE - - name: ILS - description: "The Interrupt Line Select register assigns an interrupt generated by a specific interrupt flag from the Interrupt Register to one of the two module interrupt lines. For interrupt generation the respective interrupt line has to be enabled via ILE[EINT0] and ILE[EINT1]." - byte_offset: 88 - fieldset: ILS - - name: ILE - description: Each of the two interrupt lines to the CPU can be enabled/disabled separately by programming bits EINT0 and EINT1. - byte_offset: 92 - fieldset: ILE - - name: RXGFC - description: "Global settings for Message ID filtering. The Global Filter Configuration controls the filter path for standard and extended messages as described in Figure706: Standard Message ID filter path and Figure707: Extended Message ID filter path." - byte_offset: 128 - fieldset: RXGFC - - name: XIDAM - description: FDCAN Extended ID and Mask Register - byte_offset: 132 - fieldset: XIDAM - - name: HPMS - description: This register is updated every time a Message ID filter element configured to generate a priority event match. This can be used to monitor the status of incoming high priority messages and to enable fast access to these messages. - byte_offset: 136 - access: Read - fieldset: HPMS - - name: RXFS - description: FDCAN Rx FIFO X Status Register - byte_offset: 144 - fieldset: RXFS - access: Read - array: - offsets: - - 0 - - 8 - - name: RXFA - description: CAN Rx FIFO 0 Acknowledge Register - byte_offset: 148 - fieldset: RXFA - array: - offsets: - - 0 - - 8 - - name: TXBC - description: FDCAN Tx Buffer Configuration Register - byte_offset: 192 - fieldset: TXBC - - name: TXFQS - description: The Tx FIFO/Queue status is related to the pending Tx requests listed in register TXBRP. Therefore the effect of Add/Cancellation requests may be delayed due to a running Tx scan (TXBRP not yet updated). - byte_offset: 196 - access: Read - fieldset: TXFQS - - name: TXBRP - description: FDCAN Tx Buffer Request Pending Register - byte_offset: 200 - access: Read - fieldset: TXBRP - - name: TXBAR - description: FDCAN Tx Buffer Add Request Register - byte_offset: 204 - fieldset: TXBAR - - name: TXBCR - description: FDCAN Tx Buffer Cancellation Request Register - byte_offset: 208 - fieldset: TXBCR - - name: TXBTO - description: FDCAN Tx Buffer Transmission Occurred Register - byte_offset: 212 - access: Read - fieldset: TXBTO - - name: TXBCF - description: FDCAN Tx Buffer Cancellation Finished Register - byte_offset: 216 - access: Read - fieldset: TXBCF - - name: TXBTIE - description: FDCAN Tx Buffer Transmission Interrupt Enable Register - byte_offset: 220 - fieldset: TXBTIE - - name: TXBCIE - description: FDCAN Tx Buffer Cancellation Finished Interrupt Enable Register - byte_offset: 224 - fieldset: TXBCIE - - name: TXEFS - description: FDCAN Tx Event FIFO Status Register - byte_offset: 228 - access: Read - fieldset: TXEFS - - name: TXEFA - description: FDCAN Tx Event FIFO Acknowledge Register - byte_offset: 232 - fieldset: TXEFA - - name: CKDIV - description: FDCAN CFG clock divider register - byte_offset: 256 - fieldset: CKDIV + - name: CREL + description: FDCAN Core Release Register + byte_offset: 0 + access: Read + fieldset: CREL + - name: ENDN + description: FDCAN Core Release Register + byte_offset: 4 + access: Read + fieldset: ENDN + - name: DBTP + description: This register is only writable if bits CCCR.CCE and CCCR.INIT are set. The CAN bit time may be programed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 1024 FDCAN clock periods. tq = (DBRP + 1) FDCAN clock period. DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2. Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point. + byte_offset: 12 + fieldset: DBTP + - name: TEST + description: Write access to the Test Register has to be enabled by setting bit CCCR[TEST] to 1 . All Test Register functions are set to their reset values when bit CCCR[TEST] is reset. Loop Back mode and software control of Tx pin FDCANx_TX are hardware test modes. Programming TX differently from 00 may disturb the message transfer on the CAN bus. + byte_offset: 16 + fieldset: TEST + - name: RWD + description: The RAM Watchdog monitors the READY output of the Message RAM. A Message RAM access starts the Message RAM Watchdog Counter with the value configured by the RWD[WDC] bits. The counter is reloaded with RWD[WDC] bits when the Message RAM signals successful completion by activating its READY output. In case there is no response from the Message RAM until the counter has counted down to 0, the counter stops and interrupt flag IR[WDI] bit is set. The RAM Watchdog Counter is clocked by the fdcan_pclk clock. + byte_offset: 20 + fieldset: RWD + - name: CCCR + description: For details about setting and resetting of single bits see Software initialization. + byte_offset: 24 + fieldset: CCCR + - name: NBTP + description: FDCAN_NBTP + byte_offset: 28 + fieldset: NBTP + - name: TSCC + description: FDCAN Timestamp Counter Configuration Register + byte_offset: 32 + fieldset: TSCC + - name: TSCV + description: FDCAN Timestamp Counter Value Register + byte_offset: 36 + fieldset: TSCV + - name: TOCC + description: FDCAN Timeout Counter Configuration Register + byte_offset: 40 + fieldset: TOCC + - name: TOCV + description: FDCAN Timeout Counter Value Register + byte_offset: 44 + fieldset: TOCV + - name: ECR + description: FDCAN Error Counter Register + byte_offset: 64 + access: Read + fieldset: ECR + - name: PSR + description: FDCAN Protocol Status Register + byte_offset: 68 + fieldset: PSR + - name: TDCR + description: FDCAN Transmitter Delay Compensation Register + byte_offset: 72 + fieldset: TDCR + - name: IR + description: The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the Host clears them. A flag is cleared by writing a 1 to the corresponding bit position. Writing a 0 has no effect. A hard reset will clear the register. The configuration of IE controls whether an interrupt is generated. The configuration of ILS controls on which interrupt line an interrupt is signaled. + byte_offset: 80 + fieldset: IR + - name: IE + description: The settings in the Interrupt Enable register determine which status changes in the Interrupt Register will be signaled on an interrupt line. + byte_offset: 84 + fieldset: IE + - name: ILS + description: The Interrupt Line Select register assigns an interrupt generated by a specific interrupt flag from the Interrupt Register to one of the two module interrupt lines. For interrupt generation the respective interrupt line has to be enabled via ILE[EINT0] and ILE[EINT1]. + byte_offset: 88 + fieldset: ILS + - name: ILE + description: Each of the two interrupt lines to the CPU can be enabled/disabled separately by programming bits EINT0 and EINT1. + byte_offset: 92 + fieldset: ILE + - name: RXGFC + description: 'Global settings for Message ID filtering. The Global Filter Configuration controls the filter path for standard and extended messages as described in Figure706: Standard Message ID filter path and Figure707: Extended Message ID filter path.' + byte_offset: 128 + fieldset: RXGFC + - name: XIDAM + description: FDCAN Extended ID and Mask Register + byte_offset: 132 + fieldset: XIDAM + - name: HPMS + description: This register is updated every time a Message ID filter element configured to generate a priority event match. This can be used to monitor the status of incoming high priority messages and to enable fast access to these messages. + byte_offset: 136 + access: Read + fieldset: HPMS + - name: RXFS + description: FDCAN Rx FIFO X Status Register + array: + offsets: + - 0 + - 8 + byte_offset: 144 + access: Read + fieldset: RXFS + - name: RXFA + description: CAN Rx FIFO 0 Acknowledge Register + array: + offsets: + - 0 + - 8 + byte_offset: 148 + fieldset: RXFA + - name: TXBC + description: FDCAN Tx Buffer Configuration Register + byte_offset: 192 + fieldset: TXBC + - name: TXFQS + description: The Tx FIFO/Queue status is related to the pending Tx requests listed in register TXBRP. Therefore the effect of Add/Cancellation requests may be delayed due to a running Tx scan (TXBRP not yet updated). + byte_offset: 196 + access: Read + fieldset: TXFQS + - name: TXBRP + description: FDCAN Tx Buffer Request Pending Register + byte_offset: 200 + access: Read + fieldset: TXBRP + - name: TXBAR + description: FDCAN Tx Buffer Add Request Register + byte_offset: 204 + fieldset: TXBAR + - name: TXBCR + description: FDCAN Tx Buffer Cancellation Request Register + byte_offset: 208 + fieldset: TXBCR + - name: TXBTO + description: FDCAN Tx Buffer Transmission Occurred Register + byte_offset: 212 + access: Read + fieldset: TXBTO + - name: TXBCF + description: FDCAN Tx Buffer Cancellation Finished Register + byte_offset: 216 + access: Read + fieldset: TXBCF + - name: TXBTIE + description: FDCAN Tx Buffer Transmission Interrupt Enable Register + byte_offset: 220 + fieldset: TXBTIE + - name: TXBCIE + description: FDCAN Tx Buffer Cancellation Finished Interrupt Enable Register + byte_offset: 224 + fieldset: TXBCIE + - name: TXEFS + description: FDCAN Tx Event FIFO Status Register + byte_offset: 228 + access: Read + fieldset: TXEFS + - name: TXEFA + description: FDCAN Tx Event FIFO Acknowledge Register + byte_offset: 232 + fieldset: TXEFA + - name: CKDIV + description: FDCAN CFG clock divider register + byte_offset: 256 + fieldset: CKDIV fieldset/CCCR: description: For details about setting and resetting of single bits see Software initialization. fields: - - name: INIT - description: INIT - bit_offset: 0 - bit_size: 1 - - name: CCE - description: CCE - bit_offset: 1 - bit_size: 1 - - name: ASM - description: ASM - bit_offset: 2 - bit_size: 1 - - name: CSA - description: CSA - bit_offset: 3 - bit_size: 1 - - name: CSR - description: CSR - bit_offset: 4 - bit_size: 1 - - name: MON - description: MON - bit_offset: 5 - bit_size: 1 - - name: DAR - description: DAR - bit_offset: 6 - bit_size: 1 - - name: TEST - description: TEST - bit_offset: 7 - bit_size: 1 - - name: FDOE - description: FDOE - bit_offset: 8 - bit_size: 1 - - name: BRSE - description: BRSE - bit_offset: 9 - bit_size: 1 - - name: PXHD - description: PXHD - bit_offset: 12 - bit_size: 1 - - name: EFBI - description: EFBI - bit_offset: 13 - bit_size: 1 - - name: TXP - description: TXP - bit_offset: 14 - bit_size: 1 - - name: NISO - description: NISO - bit_offset: 15 - bit_size: 1 + - name: INIT + description: INIT + bit_offset: 0 + bit_size: 1 + - name: CCE + description: CCE + bit_offset: 1 + bit_size: 1 + - name: ASM + description: ASM + bit_offset: 2 + bit_size: 1 + - name: CSA + description: CSA + bit_offset: 3 + bit_size: 1 + - name: CSR + description: CSR + bit_offset: 4 + bit_size: 1 + - name: MON + description: MON + bit_offset: 5 + bit_size: 1 + - name: DAR + description: DAR + bit_offset: 6 + bit_size: 1 + - name: TEST + description: TEST + bit_offset: 7 + bit_size: 1 + - name: FDOE + description: FDOE + bit_offset: 8 + bit_size: 1 + - name: BRSE + description: BRSE + bit_offset: 9 + bit_size: 1 + - name: PXHD + description: PXHD + bit_offset: 12 + bit_size: 1 + - name: EFBI + description: EFBI + bit_offset: 13 + bit_size: 1 + - name: TXP + description: TXP + bit_offset: 14 + bit_size: 1 + - name: NISO + description: NISO + bit_offset: 15 + bit_size: 1 fieldset/CKDIV: description: FDCAN CFG clock divider register fields: - - name: PDIV - description: input clock divider. the APB clock could be divided prior to be used by the CAN sub - bit_offset: 0 - bit_size: 4 + - name: PDIV + description: input clock divider. the APB clock could be divided prior to be used by the CAN sub + bit_offset: 0 + bit_size: 4 fieldset/CREL: description: FDCAN Core Release Register fields: - - name: DAY - description: DAY - bit_offset: 0 - bit_size: 8 - - name: MON - description: MON - bit_offset: 8 - bit_size: 8 - - name: YEAR - description: YEAR - bit_offset: 16 - bit_size: 4 - - name: SUBSTEP - description: SUBSTEP - bit_offset: 20 - bit_size: 4 - - name: STEP - description: STEP - bit_offset: 24 - bit_size: 4 - - name: REL - description: REL - bit_offset: 28 - bit_size: 4 + - name: DAY + description: DAY + bit_offset: 0 + bit_size: 8 + - name: MON + description: MON + bit_offset: 8 + bit_size: 8 + - name: YEAR + description: YEAR + bit_offset: 16 + bit_size: 4 + - name: SUBSTEP + description: SUBSTEP + bit_offset: 20 + bit_size: 4 + - name: STEP + description: STEP + bit_offset: 24 + bit_size: 4 + - name: REL + description: REL + bit_offset: 28 + bit_size: 4 fieldset/DBTP: - description: "This register is only writable if bits CCCR.CCE and CCCR.INIT are set. The CAN bit time may be programed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 1024 FDCAN clock periods. tq = (DBRP + 1) FDCAN clock period. DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2. Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point." + description: This register is only writable if bits CCCR.CCE and CCCR.INIT are set. The CAN bit time may be programed in the range of 4 to 25 time quanta. The CAN time quantum may be programmed in the range of 1 to 1024 FDCAN clock periods. tq = (DBRP + 1) FDCAN clock period. DTSEG1 is the sum of Prop_Seg and Phase_Seg1. DTSEG2 is Phase_Seg2. Therefore the length of the bit time is (programmed values) [DTSEG1 + DTSEG2 + 3] tq or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point. fields: - - name: DSJW - description: DSJW - bit_offset: 0 - bit_size: 4 - - name: DTSEG2 - description: DTSEG2 - bit_offset: 4 - bit_size: 4 - - name: DTSEG1 - description: DTSEG1 - bit_offset: 8 - bit_size: 5 - - name: DBRP - description: DBRP - bit_offset: 16 - bit_size: 5 - - name: TDC - description: TDC - bit_offset: 23 - bit_size: 1 + - name: DSJW + description: DSJW + bit_offset: 0 + bit_size: 4 + - name: DTSEG2 + description: DTSEG2 + bit_offset: 4 + bit_size: 4 + - name: DTSEG1 + description: DTSEG1 + bit_offset: 8 + bit_size: 5 + - name: DBRP + description: DBRP + bit_offset: 16 + bit_size: 5 + - name: TDC + description: TDC + bit_offset: 23 + bit_size: 1 fieldset/ECR: description: FDCAN Error Counter Register fields: - - name: TEC - description: TEC - bit_offset: 0 - bit_size: 8 - - name: REC - description: TREC - bit_offset: 8 - bit_size: 7 - - name: RP - description: RP - bit_offset: 15 - bit_size: 1 - - name: CEL - description: CEL - bit_offset: 16 - bit_size: 8 + - name: TEC + description: TEC + bit_offset: 0 + bit_size: 8 + - name: REC + description: TREC + bit_offset: 8 + bit_size: 7 + - name: RP + description: RP + bit_offset: 15 + bit_size: 1 + - name: CEL + description: CEL + bit_offset: 16 + bit_size: 8 fieldset/ENDN: description: FDCAN Core Release Register fields: - - name: ETV - description: ETV - bit_offset: 0 - bit_size: 32 + - name: ETV + description: ETV + bit_offset: 0 + bit_size: 32 fieldset/HPMS: description: This register is updated every time a Message ID filter element configured to generate a priority event match. This can be used to monitor the status of incoming high priority messages and to enable fast access to these messages. fields: - - name: BIDX - description: BIDX - bit_offset: 0 - bit_size: 6 - - name: MSI - description: MSI - bit_offset: 6 - bit_size: 2 - - name: FIDX - description: FIDX - bit_offset: 8 - bit_size: 7 - - name: FLST - description: FLST - bit_offset: 15 - bit_size: 1 + - name: BIDX + description: BIDX + bit_offset: 0 + bit_size: 6 + - name: MSI + description: MSI + bit_offset: 6 + bit_size: 2 + - name: FIDX + description: FIDX + bit_offset: 8 + bit_size: 7 + - name: FLST + description: FLST + bit_offset: 15 + bit_size: 1 fieldset/IE: description: The settings in the Interrupt Enable register determine which status changes in the Interrupt Register will be signaled on an interrupt line. fields: - - name: RFNE - description: Rx FIFO X new message enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: RFFE - description: Rx FIFO X full enable - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: RFLE - description: Rx FIFO X message lost enable - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - - name: HPME - description: High-priority message enable - bit_offset: 6 - bit_size: 1 - - name: TCE - description: Transmission completed enable - bit_offset: 7 - bit_size: 1 - - name: TCFE - description: Transmission cancellation finished enable - bit_offset: 8 - bit_size: 1 - - name: TFEE - description: Tx FIFO empty enable - bit_offset: 9 - bit_size: 1 - - name: TEFNE - description: Tx even FIFO new entry enable - bit_offset: 10 - bit_size: 1 - - name: TEFFE - description: Tx event FIFO full enable - bit_offset: 11 - bit_size: 1 - - name: TEFLE - description: Tx event FIFO element lost enable - bit_offset: 12 - bit_size: 1 - - name: TSWE - description: Timestamp wraparound enable - bit_offset: 13 - bit_size: 1 - - name: MRAFE - description: Message RAM access failure enable - bit_offset: 14 - bit_size: 1 - - name: TOOE - description: Timeout occurred enable - bit_offset: 15 - bit_size: 1 - - name: ELOE - description: Error logging overflow enable - bit_offset: 16 - bit_size: 1 - - name: EPE - description: Error passive enable - bit_offset: 17 - bit_size: 1 - - name: EWE - description: Warning status enable - bit_offset: 18 - bit_size: 1 - - name: BOE - description: Bus_off status enable - bit_offset: 19 - bit_size: 1 - - name: WDIE - description: Watchdog interrupt enable - bit_offset: 20 - bit_size: 1 - - name: PEAE - description: Protocol error in arbitration phase enable - bit_offset: 21 - bit_size: 1 - - name: PEDE - description: Protocol error in data phase enable - bit_offset: 22 - bit_size: 1 - - name: ARAE - description: Access to reserved address enable - bit_offset: 23 - bit_size: 1 + - name: RFNE + description: Rx FIFO X new message enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: RFFE + description: Rx FIFO X full enable + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: RFLE + description: Rx FIFO X message lost enable + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: HPME + description: High-priority message enable + bit_offset: 6 + bit_size: 1 + - name: TCE + description: Transmission completed enable + bit_offset: 7 + bit_size: 1 + - name: TCFE + description: Transmission cancellation finished enable + bit_offset: 8 + bit_size: 1 + - name: TFEE + description: Tx FIFO empty enable + bit_offset: 9 + bit_size: 1 + - name: TEFNE + description: Tx even FIFO new entry enable + bit_offset: 10 + bit_size: 1 + - name: TEFFE + description: Tx event FIFO full enable + bit_offset: 11 + bit_size: 1 + - name: TEFLE + description: Tx event FIFO element lost enable + bit_offset: 12 + bit_size: 1 + - name: TSWE + description: Timestamp wraparound enable + bit_offset: 13 + bit_size: 1 + - name: MRAFE + description: Message RAM access failure enable + bit_offset: 14 + bit_size: 1 + - name: TOOE + description: Timeout occurred enable + bit_offset: 15 + bit_size: 1 + - name: ELOE + description: Error logging overflow enable + bit_offset: 16 + bit_size: 1 + - name: EPE + description: Error passive enable + bit_offset: 17 + bit_size: 1 + - name: EWE + description: Warning status enable + bit_offset: 18 + bit_size: 1 + - name: BOE + description: Bus_off status enable + bit_offset: 19 + bit_size: 1 + - name: WDIE + description: Watchdog interrupt enable + bit_offset: 20 + bit_size: 1 + - name: PEAE + description: Protocol error in arbitration phase enable + bit_offset: 21 + bit_size: 1 + - name: PEDE + description: Protocol error in data phase enable + bit_offset: 22 + bit_size: 1 + - name: ARAE + description: Access to reserved address enable + bit_offset: 23 + bit_size: 1 fieldset/ILE: description: Each of the two interrupt lines to the CPU can be enabled/disabled separately by programming bits EINT0 and EINT1. fields: - - name: EINT0 - description: EINT0 - bit_offset: 0 - bit_size: 1 - - name: EINT1 - description: EINT1 - bit_offset: 1 - bit_size: 1 + - name: EINT0 + description: EINT0 + bit_offset: 0 + bit_size: 1 + - name: EINT1 + description: EINT1 + bit_offset: 1 + bit_size: 1 fieldset/ILS: - description: "The Interrupt Line Select register assigns an interrupt generated by a specific interrupt flag from the Interrupt Register to one of the two module interrupt lines. For interrupt generation the respective interrupt line has to be enabled via ILE[EINT0] and ILE[EINT1]." + description: The Interrupt Line Select register assigns an interrupt generated by a specific interrupt flag from the Interrupt Register to one of the two module interrupt lines. For interrupt generation the respective interrupt line has to be enabled via ILE[EINT0] and ILE[EINT1]. fields: - - name: RXFIFO - description: RX FIFO bit grouping the following interruption - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SMSG - description: Status message bit grouping the following interruption - bit_offset: 2 - bit_size: 1 - - name: TFERR - description: TX FIFO error grouping the following interruption - bit_offset: 3 - bit_size: 1 - - name: MISC - description: Interrupt regrouping the following interruption - bit_offset: 4 - bit_size: 1 - - name: BERR - description: Bit and line error grouping the following interruption - bit_offset: 5 - bit_size: 1 - - name: PERR - description: Protocol error grouping the following interruption - bit_offset: 6 - bit_size: 1 + - name: RXFIFO + description: RX FIFO bit grouping the following interruption + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SMSG + description: Status message bit grouping the following interruption + bit_offset: 2 + bit_size: 1 + - name: TFERR + description: TX FIFO error grouping the following interruption + bit_offset: 3 + bit_size: 1 + - name: MISC + description: Interrupt regrouping the following interruption + bit_offset: 4 + bit_size: 1 + - name: BERR + description: Bit and line error grouping the following interruption + bit_offset: 5 + bit_size: 1 + - name: PERR + description: Protocol error grouping the following interruption + bit_offset: 6 + bit_size: 1 fieldset/IR: description: The flags are set when one of the listed conditions is detected (edge-sensitive). The flags remain set until the Host clears them. A flag is cleared by writing a 1 to the corresponding bit position. Writing a 0 has no effect. A hard reset will clear the register. The configuration of IE controls whether an interrupt is generated. The configuration of ILS controls on which interrupt line an interrupt is signaled. fields: - - name: RFN - description: Rx FIFO X new message - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: RFF - description: Rx FIFO X full - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: RFL - description: Rx FIFO X message lost - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: HPM - description: High-priority message - bit_offset: 6 - bit_size: 1 - - name: TC - description: Transmission completed - bit_offset: 7 - bit_size: 1 - - name: TCF - description: Transmission cancellation finished - bit_offset: 8 - bit_size: 1 - - name: TFE - description: Tx FIFO empty - bit_offset: 9 - bit_size: 1 - - name: TEFN - description: Tx even FIFO new entry - bit_offset: 10 - bit_size: 1 - - name: TEFF - description: Tx event FIFO full - bit_offset: 11 - bit_size: 1 - - name: TEFL - description: Tx event FIFO element lost - bit_offset: 12 - bit_size: 1 - - name: TSW - description: Timestamp wraparound - bit_offset: 13 - bit_size: 1 - - name: MRAF - description: Message RAM access failure - bit_offset: 14 - bit_size: 1 - - name: TOO - description: Timeout occurred - bit_offset: 15 - bit_size: 1 - - name: ELO - description: Error logging overflow - bit_offset: 16 - bit_size: 1 - - name: EP - description: Error passive - bit_offset: 17 - bit_size: 1 - - name: EW - description: Warning status - bit_offset: 18 - bit_size: 1 - - name: BO - description: Bus_off status - bit_offset: 19 - bit_size: 1 - - name: WDI - description: Watchdog interrupt - bit_offset: 20 - bit_size: 1 - - name: PEA - description: Protocol error in arbitration phase - bit_offset: 21 - bit_size: 1 - - name: PED - description: Protocol error in data phase - bit_offset: 22 - bit_size: 1 - - name: ARA - description: Access to reserved address - bit_offset: 23 - bit_size: 1 + - name: RFN + description: Rx FIFO X new message + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: RFF + description: Rx FIFO X full + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: RFL + description: Rx FIFO X message lost + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: HPM + description: High-priority message + bit_offset: 6 + bit_size: 1 + - name: TC + description: Transmission completed + bit_offset: 7 + bit_size: 1 + - name: TCF + description: Transmission cancellation finished + bit_offset: 8 + bit_size: 1 + - name: TFE + description: Tx FIFO empty + bit_offset: 9 + bit_size: 1 + - name: TEFN + description: Tx even FIFO new entry + bit_offset: 10 + bit_size: 1 + - name: TEFF + description: Tx event FIFO full + bit_offset: 11 + bit_size: 1 + - name: TEFL + description: Tx event FIFO element lost + bit_offset: 12 + bit_size: 1 + - name: TSW + description: Timestamp wraparound + bit_offset: 13 + bit_size: 1 + - name: MRAF + description: Message RAM access failure + bit_offset: 14 + bit_size: 1 + - name: TOO + description: Timeout occurred + bit_offset: 15 + bit_size: 1 + - name: ELO + description: Error logging overflow + bit_offset: 16 + bit_size: 1 + - name: EP + description: Error passive + bit_offset: 17 + bit_size: 1 + - name: EW + description: Warning status + bit_offset: 18 + bit_size: 1 + - name: BO + description: Bus_off status + bit_offset: 19 + bit_size: 1 + - name: WDI + description: Watchdog interrupt + bit_offset: 20 + bit_size: 1 + - name: PEA + description: Protocol error in arbitration phase + bit_offset: 21 + bit_size: 1 + - name: PED + description: Protocol error in data phase + bit_offset: 22 + bit_size: 1 + - name: ARA + description: Access to reserved address + bit_offset: 23 + bit_size: 1 fieldset/NBTP: description: FDCAN_NBTP fields: - - name: NTSEG2 - description: TSEG2 - bit_offset: 0 - bit_size: 7 - - name: NTSEG1 - description: NTSEG1 - bit_offset: 8 - bit_size: 8 - - name: NBRP - description: NBRP - bit_offset: 16 - bit_size: 9 - - name: NSJW - description: NSJW - bit_offset: 25 - bit_size: 7 + - name: NTSEG2 + description: TSEG2 + bit_offset: 0 + bit_size: 7 + - name: NTSEG1 + description: NTSEG1 + bit_offset: 8 + bit_size: 8 + - name: NBRP + description: NBRP + bit_offset: 16 + bit_size: 9 + - name: NSJW + description: NSJW + bit_offset: 25 + bit_size: 7 fieldset/PSR: description: FDCAN Protocol Status Register fields: - - name: LEC - description: LEC - bit_offset: 0 - bit_size: 3 - - name: ACT - description: ACT - bit_offset: 3 - bit_size: 2 - - name: EP - description: EP - bit_offset: 5 - bit_size: 1 - - name: EW - description: EW - bit_offset: 6 - bit_size: 1 - - name: BO - description: BO - bit_offset: 7 - bit_size: 1 - - name: DLEC - description: DLEC - bit_offset: 8 - bit_size: 3 - - name: RESI - description: RESI - bit_offset: 11 - bit_size: 1 - - name: RBRS - description: RBRS - bit_offset: 12 - bit_size: 1 - - name: REDL - description: REDL - bit_offset: 13 - bit_size: 1 - - name: PXE - description: PXE - bit_offset: 14 - bit_size: 1 - - name: TDCV - description: TDCV - bit_offset: 16 - bit_size: 7 + - name: LEC + description: LEC + bit_offset: 0 + bit_size: 3 + - name: ACT + description: ACT + bit_offset: 3 + bit_size: 2 + - name: EP + description: EP + bit_offset: 5 + bit_size: 1 + - name: EW + description: EW + bit_offset: 6 + bit_size: 1 + - name: BO + description: BO + bit_offset: 7 + bit_size: 1 + - name: DLEC + description: DLEC + bit_offset: 8 + bit_size: 3 + - name: RESI + description: RESI + bit_offset: 11 + bit_size: 1 + - name: RBRS + description: RBRS + bit_offset: 12 + bit_size: 1 + - name: REDL + description: REDL + bit_offset: 13 + bit_size: 1 + - name: PXE + description: PXE + bit_offset: 14 + bit_size: 1 + - name: TDCV + description: TDCV + bit_offset: 16 + bit_size: 7 fieldset/RWD: - description: "The RAM Watchdog monitors the READY output of the Message RAM. A Message RAM access starts the Message RAM Watchdog Counter with the value configured by the RWD[WDC] bits. The counter is reloaded with RWD[WDC] bits when the Message RAM signals successful completion by activating its READY output. In case there is no response from the Message RAM until the counter has counted down to 0, the counter stops and interrupt flag IR[WDI] bit is set. The RAM Watchdog Counter is clocked by the fdcan_pclk clock." + description: The RAM Watchdog monitors the READY output of the Message RAM. A Message RAM access starts the Message RAM Watchdog Counter with the value configured by the RWD[WDC] bits. The counter is reloaded with RWD[WDC] bits when the Message RAM signals successful completion by activating its READY output. In case there is no response from the Message RAM until the counter has counted down to 0, the counter stops and interrupt flag IR[WDI] bit is set. The RAM Watchdog Counter is clocked by the fdcan_pclk clock. fields: - - name: WDC - description: WDC - bit_offset: 0 - bit_size: 8 - - name: WDV - description: WDV - bit_offset: 8 - bit_size: 8 + - name: WDC + description: WDC + bit_offset: 0 + bit_size: 8 + - name: WDV + description: WDV + bit_offset: 8 + bit_size: 8 fieldset/RXFA: description: CAN Rx FIFO X Acknowledge Register fields: - - name: FAI - description: FAI - bit_offset: 0 - bit_size: 6 + - name: FAI + description: FAI + bit_offset: 0 + bit_size: 6 fieldset/RXFS: description: FDCAN Rx FIFO X Status Register fields: - - name: FFL - description: FFL - bit_offset: 0 - bit_size: 7 - - name: FGI - description: FGI - bit_offset: 8 - bit_size: 6 - - name: FPI - description: FPI - bit_offset: 16 - bit_size: 6 - - name: FF - description: FF - bit_offset: 24 - bit_size: 1 - - name: RFL - description: RFL - bit_offset: 25 - bit_size: 1 + - name: FFL + description: FFL + bit_offset: 0 + bit_size: 7 + - name: FGI + description: FGI + bit_offset: 8 + bit_size: 6 + - name: FPI + description: FPI + bit_offset: 16 + bit_size: 6 + - name: FF + description: FF + bit_offset: 24 + bit_size: 1 + - name: RFL + description: RFL + bit_offset: 25 + bit_size: 1 fieldset/RXGFC: - description: "Global settings for Message ID filtering. The Global Filter Configuration controls the filter path for standard and extended messages as described in Figure706: Standard Message ID filter path and Figure707: Extended Message ID filter path." + description: 'Global settings for Message ID filtering. The Global Filter Configuration controls the filter path for standard and extended messages as described in Figure706: Standard Message ID filter path and Figure707: Extended Message ID filter path.' fields: - - name: RRFE - description: RRFE - bit_offset: 0 - bit_size: 1 - - name: RRFS - description: RRFS - bit_offset: 1 - bit_size: 1 - - name: ANFE - description: ANFE - bit_offset: 2 - bit_size: 2 - - name: ANFS - description: ANFS - bit_offset: 4 - bit_size: 2 - - name: F1OM - description: FIFO 1 operation mode - bit_offset: 8 - bit_size: 1 - - name: F0OM - description: FIFO 0 operation mode - bit_offset: 9 - bit_size: 1 - - name: LSS - description: List size standard - bit_offset: 16 - bit_size: 5 - - name: LSE - description: List size extended - bit_offset: 24 - bit_size: 4 + - name: RRFE + description: RRFE + bit_offset: 0 + bit_size: 1 + - name: RRFS + description: RRFS + bit_offset: 1 + bit_size: 1 + - name: ANFE + description: ANFE + bit_offset: 2 + bit_size: 2 + - name: ANFS + description: ANFS + bit_offset: 4 + bit_size: 2 + - name: F1OM + description: FIFO 1 operation mode + bit_offset: 8 + bit_size: 1 + - name: F0OM + description: FIFO 0 operation mode + bit_offset: 9 + bit_size: 1 + - name: LSS + description: List size standard + bit_offset: 16 + bit_size: 5 + - name: LSE + description: List size extended + bit_offset: 24 + bit_size: 4 fieldset/TDCR: description: FDCAN Transmitter Delay Compensation Register fields: - - name: TDCF - description: TDCF - bit_offset: 0 - bit_size: 7 - - name: TDCO - description: TDCO - bit_offset: 8 - bit_size: 7 + - name: TDCF + description: TDCF + bit_offset: 0 + bit_size: 7 + - name: TDCO + description: TDCO + bit_offset: 8 + bit_size: 7 fieldset/TEST: - description: "Write access to the Test Register has to be enabled by setting bit CCCR[TEST] to 1 . All Test Register functions are set to their reset values when bit CCCR[TEST] is reset. Loop Back mode and software control of Tx pin FDCANx_TX are hardware test modes. Programming TX differently from 00 may disturb the message transfer on the CAN bus." + description: Write access to the Test Register has to be enabled by setting bit CCCR[TEST] to 1 . All Test Register functions are set to their reset values when bit CCCR[TEST] is reset. Loop Back mode and software control of Tx pin FDCANx_TX are hardware test modes. Programming TX differently from 00 may disturb the message transfer on the CAN bus. fields: - - name: LBCK - description: LBCK - bit_offset: 4 - bit_size: 1 - - name: TX - description: TX - bit_offset: 5 - bit_size: 2 - - name: RX - description: RX - bit_offset: 7 - bit_size: 1 + - name: LBCK + description: LBCK + bit_offset: 4 + bit_size: 1 + - name: TX + description: TX + bit_offset: 5 + bit_size: 2 + - name: RX + description: RX + bit_offset: 7 + bit_size: 1 fieldset/TOCC: description: FDCAN Timeout Counter Configuration Register fields: - - name: ETOC - description: ETOC - bit_offset: 0 - bit_size: 1 - - name: TOS - description: TOS - bit_offset: 1 - bit_size: 2 - - name: TOP - description: TOP - bit_offset: 16 - bit_size: 16 + - name: ETOC + description: ETOC + bit_offset: 0 + bit_size: 1 + - name: TOS + description: TOS + bit_offset: 1 + bit_size: 2 + - name: TOP + description: TOP + bit_offset: 16 + bit_size: 16 fieldset/TOCV: description: FDCAN Timeout Counter Value Register fields: - - name: TOC - description: TOC - bit_offset: 0 - bit_size: 16 + - name: TOC + description: TOC + bit_offset: 0 + bit_size: 16 fieldset/TSCC: description: FDCAN Timestamp Counter Configuration Register fields: - - name: TSS - description: TSS - bit_offset: 0 - bit_size: 2 - - name: TCP - description: TCP - bit_offset: 16 - bit_size: 4 + - name: TSS + description: TSS + bit_offset: 0 + bit_size: 2 + - name: TCP + description: TCP + bit_offset: 16 + bit_size: 4 fieldset/TSCV: description: FDCAN Timestamp Counter Value Register fields: - - name: TSC - description: TSC - bit_offset: 0 - bit_size: 16 + - name: TSC + description: TSC + bit_offset: 0 + bit_size: 16 fieldset/TXBAR: description: FDCAN Tx Buffer Add Request Register fields: - - name: AR - description: AR - bit_offset: 0 - bit_size: 3 + - name: AR + description: AR + bit_offset: 0 + bit_size: 3 fieldset/TXBC: description: FDCAN Tx Buffer Configuration Register fields: - - name: TBSA - description: TBSA - bit_offset: 2 - bit_size: 14 - - name: NDTB - description: NDTB - bit_offset: 16 - bit_size: 6 - - name: TFQS - description: TFQS - bit_offset: 24 - bit_size: 6 - - name: TFQM - description: TFQM - bit_offset: 30 - bit_size: 1 + - name: TBSA + description: TBSA + bit_offset: 2 + bit_size: 14 + - name: NDTB + description: NDTB + bit_offset: 16 + bit_size: 6 + - name: TFQS + description: TFQS + bit_offset: 24 + bit_size: 6 + - name: TFQM + description: TFQM + bit_offset: 30 + bit_size: 1 fieldset/TXBCF: description: FDCAN Tx Buffer Cancellation Finished Register fields: - - name: CF - description: CF - bit_offset: 0 - bit_size: 3 + - name: CF + description: CF + bit_offset: 0 + bit_size: 3 fieldset/TXBCIE: description: FDCAN Tx Buffer Cancellation Finished Interrupt Enable Register fields: - - name: CFIE - description: CFIE - bit_offset: 0 - bit_size: 3 + - name: CFIE + description: CFIE + bit_offset: 0 + bit_size: 3 fieldset/TXBCR: description: FDCAN Tx Buffer Cancellation Request Register fields: - - name: CR - description: CR - bit_offset: 0 - bit_size: 3 + - name: CR + description: CR + bit_offset: 0 + bit_size: 3 fieldset/TXBRP: description: FDCAN Tx Buffer Request Pending Register fields: - - name: TRP - description: TRP - bit_offset: 0 - bit_size: 3 + - name: TRP + description: TRP + bit_offset: 0 + bit_size: 3 fieldset/TXBTIE: description: FDCAN Tx Buffer Transmission Interrupt Enable Register fields: - - name: TIE - description: TIE - bit_offset: 0 - bit_size: 3 + - name: TIE + description: TIE + bit_offset: 0 + bit_size: 3 fieldset/TXBTO: description: FDCAN Tx Buffer Transmission Occurred Register fields: - - name: TO - description: TO - bit_offset: 0 - bit_size: 3 + - name: TO + description: TO + bit_offset: 0 + bit_size: 3 fieldset/TXEFA: description: FDCAN Tx Event FIFO Acknowledge Register fields: - - name: EFAI - description: EFAI - bit_offset: 0 - bit_size: 5 + - name: EFAI + description: EFAI + bit_offset: 0 + bit_size: 5 fieldset/TXEFS: description: FDCAN Tx Event FIFO Status Register fields: - - name: EFFL - description: EFFL - bit_offset: 0 - bit_size: 3 - - name: EFGI - description: EFGI - bit_offset: 8 - bit_size: 2 - - name: EFPI - description: EFPI - bit_offset: 16 - bit_size: 2 - - name: EFF - description: EFF - bit_offset: 24 - bit_size: 1 - - name: TEFL - description: TEFL - bit_offset: 25 - bit_size: 1 + - name: EFFL + description: EFFL + bit_offset: 0 + bit_size: 3 + - name: EFGI + description: EFGI + bit_offset: 8 + bit_size: 2 + - name: EFPI + description: EFPI + bit_offset: 16 + bit_size: 2 + - name: EFF + description: EFF + bit_offset: 24 + bit_size: 1 + - name: TEFL + description: TEFL + bit_offset: 25 + bit_size: 1 fieldset/TXFQS: description: The Tx FIFO/Queue status is related to the pending Tx requests listed in register TXBRP. Therefore the effect of Add/Cancellation requests may be delayed due to a running Tx scan (TXBRP not yet updated). fields: - - name: TFFL - description: TFFL - bit_offset: 0 - bit_size: 3 - - name: TFGI - description: TFGI - bit_offset: 8 - bit_size: 2 - - name: TFQPI - description: TFQPI - bit_offset: 16 - bit_size: 2 - - name: TFQF - description: TFQF - bit_offset: 21 - bit_size: 1 + - name: TFFL + description: TFFL + bit_offset: 0 + bit_size: 3 + - name: TFGI + description: TFGI + bit_offset: 8 + bit_size: 2 + - name: TFQPI + description: TFQPI + bit_offset: 16 + bit_size: 2 + - name: TFQF + description: TFQF + bit_offset: 21 + bit_size: 1 fieldset/XIDAM: description: FDCAN Extended ID and Mask Register fields: - - name: EIDM - description: EIDM - bit_offset: 0 - bit_size: 29 + - name: EIDM + description: EIDM + bit_offset: 0 + bit_size: 29 diff --git a/data/registers/crc_v1.yaml b/data/registers/crc_v1.yaml index 0c9e3d9..83be07b 100644 --- a/data/registers/crc_v1.yaml +++ b/data/registers/crc_v1.yaml @@ -1,21 +1,20 @@ ---- block/CRC: description: Cyclic Redundancy Check calculation unit items: - - name: DR - description: Data register - byte_offset: 0 - - name: IDR - description: Independent Data register - byte_offset: 4 - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR + - name: DR + description: Data register + byte_offset: 0 + - name: IDR + description: Independent Data register + byte_offset: 4 + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR fieldset/CR: description: Control register fields: - - name: RESET - description: RESET bit - bit_offset: 0 - bit_size: 1 + - name: RESET + description: RESET bit + bit_offset: 0 + bit_size: 1 diff --git a/data/registers/crc_v2.yaml b/data/registers/crc_v2.yaml index f6551d1..8b6ef63 100644 --- a/data/registers/crc_v2.yaml +++ b/data/registers/crc_v2.yaml @@ -1,86 +1,85 @@ ---- block/CRC: description: Cyclic Redundancy Check calculation unit items: - - name: DR - description: Data register - byte_offset: 0 - - name: DR16 - description: Data register - half-word sized - byte_offset: 0 - bit_size: 16 - - name: DR8 - description: Data register - byte sized - byte_offset: 0 - bit_size: 8 - - name: IDR - description: Independent Data register - byte_offset: 4 - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: INIT - description: Initial CRC value - byte_offset: 16 + - name: DR + description: Data register + byte_offset: 0 + - name: DR16 + description: Data register - half-word sized + byte_offset: 0 + bit_size: 16 + - name: DR8 + description: Data register - byte sized + byte_offset: 0 + bit_size: 8 + - name: IDR + description: Independent Data register + byte_offset: 4 + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: INIT + description: Initial CRC value + byte_offset: 16 fieldset/CR: description: Control register fields: - - name: RESET - description: RESET bit - bit_offset: 0 - bit_size: 1 - - name: POLYSIZE - description: Polynomial size - bit_offset: 3 - bit_size: 2 - enum: POLYSIZE - - name: REV_IN - description: Reverse input data - bit_offset: 5 - bit_size: 2 - enum: REV_IN - - name: REV_OUT - description: Reverse output data - bit_offset: 7 - bit_size: 1 - enum: REV_OUT + - name: RESET + description: RESET bit + bit_offset: 0 + bit_size: 1 + - name: POLYSIZE + description: Polynomial size + bit_offset: 3 + bit_size: 2 + enum: POLYSIZE + - name: REV_IN + description: Reverse input data + bit_offset: 5 + bit_size: 2 + enum: REV_IN + - name: REV_OUT + description: Reverse output data + bit_offset: 7 + bit_size: 1 + enum: REV_OUT enum/POLYSIZE: bit_size: 2 variants: - - name: Polysize32 - description: 32-bit polynomial - value: 0 - - name: Polysize16 - description: 16-bit polynomial - value: 1 - - name: Polysize8 - description: 8-bit polynomial - value: 2 - - name: Polysize7 - description: 7-bit polynomial - value: 3 + - name: Polysize32 + description: 32-bit polynomial + value: 0 + - name: Polysize16 + description: 16-bit polynomial + value: 1 + - name: Polysize8 + description: 8-bit polynomial + value: 2 + - name: Polysize7 + description: 7-bit polynomial + value: 3 enum/REV_IN: bit_size: 2 variants: - - name: Normal - description: Bit order not affected - value: 0 - - name: Byte - description: Bit reversal done by byte - value: 1 - - name: HalfWord - description: Bit reversal done by half-word - value: 2 - - name: Word - description: Bit reversal done by word - value: 3 + - name: Normal + description: Bit order not affected + value: 0 + - name: Byte + description: Bit reversal done by byte + value: 1 + - name: HalfWord + description: Bit reversal done by half-word + value: 2 + - name: Word + description: Bit reversal done by word + value: 3 enum/REV_OUT: bit_size: 1 variants: - - name: Normal - description: Bit order not affected - value: 0 - - name: Reversed - description: Bit reversed output - value: 1 + - name: Normal + description: Bit order not affected + value: 0 + - name: Reversed + description: Bit reversed output + value: 1 diff --git a/data/registers/crc_v3.yaml b/data/registers/crc_v3.yaml index da8c544..1686d66 100644 --- a/data/registers/crc_v3.yaml +++ b/data/registers/crc_v3.yaml @@ -1,89 +1,88 @@ ---- block/CRC: description: Cyclic Redundancy Check calculation unit items: - - name: DR - description: Data register - byte_offset: 0 - - name: DR16 - description: Data register - half-word sized - byte_offset: 0 - bit_size: 16 - - name: DR8 - description: Data register - byte sized - byte_offset: 0 - bit_size: 8 - - name: IDR - description: Independent Data register - byte_offset: 4 - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: INIT - description: Initial CRC value - byte_offset: 16 - - name: POL - description: CRC polynomial - byte_offset: 20 + - name: DR + description: Data register + byte_offset: 0 + - name: DR16 + description: Data register - half-word sized + byte_offset: 0 + bit_size: 16 + - name: DR8 + description: Data register - byte sized + byte_offset: 0 + bit_size: 8 + - name: IDR + description: Independent Data register + byte_offset: 4 + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: INIT + description: Initial CRC value + byte_offset: 16 + - name: POL + description: CRC polynomial + byte_offset: 20 fieldset/CR: description: Control register fields: - - name: RESET - description: RESET bit - bit_offset: 0 - bit_size: 1 - - name: POLYSIZE - description: Polynomial size - bit_offset: 3 - bit_size: 2 - enum: POLYSIZE - - name: REV_IN - description: Reverse input data - bit_offset: 5 - bit_size: 2 - enum: REV_IN - - name: REV_OUT - description: Reverse output data - bit_offset: 7 - bit_size: 1 - enum: REV_OUT + - name: RESET + description: RESET bit + bit_offset: 0 + bit_size: 1 + - name: POLYSIZE + description: Polynomial size + bit_offset: 3 + bit_size: 2 + enum: POLYSIZE + - name: REV_IN + description: Reverse input data + bit_offset: 5 + bit_size: 2 + enum: REV_IN + - name: REV_OUT + description: Reverse output data + bit_offset: 7 + bit_size: 1 + enum: REV_OUT enum/POLYSIZE: bit_size: 2 variants: - - name: Polysize32 - description: 32-bit polynomial - value: 0 - - name: Polysize16 - description: 16-bit polynomial - value: 1 - - name: Polysize8 - description: 8-bit polynomial - value: 2 - - name: Polysize7 - description: 7-bit polynomial - value: 3 + - name: Polysize32 + description: 32-bit polynomial + value: 0 + - name: Polysize16 + description: 16-bit polynomial + value: 1 + - name: Polysize8 + description: 8-bit polynomial + value: 2 + - name: Polysize7 + description: 7-bit polynomial + value: 3 enum/REV_IN: bit_size: 2 variants: - - name: Normal - description: Bit order not affected - value: 0 - - name: Byte - description: Bit reversal done by byte - value: 1 - - name: HalfWord - description: Bit reversal done by half-word - value: 2 - - name: Word - description: Bit reversal done by word - value: 3 + - name: Normal + description: Bit order not affected + value: 0 + - name: Byte + description: Bit reversal done by byte + value: 1 + - name: HalfWord + description: Bit reversal done by half-word + value: 2 + - name: Word + description: Bit reversal done by word + value: 3 enum/REV_OUT: bit_size: 1 variants: - - name: Normal - description: Bit order not affected - value: 0 - - name: Reversed - description: Bit reversed output - value: 1 + - name: Normal + description: Bit order not affected + value: 0 + - name: Reversed + description: Bit reversed output + value: 1 diff --git a/data/registers/crs_v1.yaml b/data/registers/crs_v1.yaml index ab22b40..da0cb37 100644 --- a/data/registers/crs_v1.yaml +++ b/data/registers/crs_v1.yaml @@ -1,150 +1,149 @@ ---- block/CRS: description: Clock recovery system items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: configuration register - byte_offset: 4 - fieldset: CFGR - - name: ISR - description: interrupt and status register - byte_offset: 8 - access: Read - fieldset: ISR - - name: ICR - description: interrupt flag clear register - byte_offset: 12 - fieldset: ICR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: configuration register + byte_offset: 4 + fieldset: CFGR + - name: ISR + description: interrupt and status register + byte_offset: 8 + access: Read + fieldset: ISR + - name: ICR + description: interrupt flag clear register + byte_offset: 12 + fieldset: ICR fieldset/CFGR: description: configuration register fields: - - name: RELOAD - description: Counter reload value - bit_offset: 0 - bit_size: 16 - - name: FELIM - description: Frequency error limit - bit_offset: 16 - bit_size: 8 - - name: SYNCDIV - description: SYNC divider - bit_offset: 24 - bit_size: 3 - - name: SYNCSRC - description: SYNC signal source selection - bit_offset: 28 - bit_size: 2 - enum: SYNCSRC - - name: SYNCPOL - description: SYNC polarity selection - bit_offset: 31 - bit_size: 1 + - name: RELOAD + description: Counter reload value + bit_offset: 0 + bit_size: 16 + - name: FELIM + description: Frequency error limit + bit_offset: 16 + bit_size: 8 + - name: SYNCDIV + description: SYNC divider + bit_offset: 24 + bit_size: 3 + - name: SYNCSRC + description: SYNC signal source selection + bit_offset: 28 + bit_size: 2 + enum: SYNCSRC + - name: SYNCPOL + description: SYNC polarity selection + bit_offset: 31 + bit_size: 1 fieldset/CR: description: control register fields: - - name: SYNCOKIE - description: SYNC event OK interrupt enable - bit_offset: 0 - bit_size: 1 - - name: SYNCWARNIE - description: SYNC warning interrupt enable - bit_offset: 1 - bit_size: 1 - - name: ERRIE - description: Synchronization or trimming error interrupt enable - bit_offset: 2 - bit_size: 1 - - name: ESYNCIE - description: Expected SYNC interrupt enable - bit_offset: 3 - bit_size: 1 - - name: CEN - description: Frequency error counter enable - bit_offset: 5 - bit_size: 1 - - name: AUTOTRIMEN - description: Automatic trimming enable - bit_offset: 6 - bit_size: 1 - - name: SWSYNC - description: Generate software SYNC event - bit_offset: 7 - bit_size: 1 - - name: TRIM - description: HSI48 oscillator smooth trimming - bit_offset: 8 - bit_size: 6 + - name: SYNCOKIE + description: SYNC event OK interrupt enable + bit_offset: 0 + bit_size: 1 + - name: SYNCWARNIE + description: SYNC warning interrupt enable + bit_offset: 1 + bit_size: 1 + - name: ERRIE + description: Synchronization or trimming error interrupt enable + bit_offset: 2 + bit_size: 1 + - name: ESYNCIE + description: Expected SYNC interrupt enable + bit_offset: 3 + bit_size: 1 + - name: CEN + description: Frequency error counter enable + bit_offset: 5 + bit_size: 1 + - name: AUTOTRIMEN + description: Automatic trimming enable + bit_offset: 6 + bit_size: 1 + - name: SWSYNC + description: Generate software SYNC event + bit_offset: 7 + bit_size: 1 + - name: TRIM + description: HSI48 oscillator smooth trimming + bit_offset: 8 + bit_size: 6 fieldset/ICR: description: interrupt flag clear register fields: - - name: SYNCOKC - description: SYNC event OK clear flag - bit_offset: 0 - bit_size: 1 - - name: SYNCWARNC - description: SYNC warning clear flag - bit_offset: 1 - bit_size: 1 - - name: ERRC - description: Error clear flag - bit_offset: 2 - bit_size: 1 - - name: ESYNCC - description: Expected SYNC clear flag - bit_offset: 3 - bit_size: 1 + - name: SYNCOKC + description: SYNC event OK clear flag + bit_offset: 0 + bit_size: 1 + - name: SYNCWARNC + description: SYNC warning clear flag + bit_offset: 1 + bit_size: 1 + - name: ERRC + description: Error clear flag + bit_offset: 2 + bit_size: 1 + - name: ESYNCC + description: Expected SYNC clear flag + bit_offset: 3 + bit_size: 1 fieldset/ISR: description: interrupt and status register fields: - - name: SYNCOKF - description: SYNC event OK flag - bit_offset: 0 - bit_size: 1 - - name: SYNCWARNF - description: SYNC warning flag - bit_offset: 1 - bit_size: 1 - - name: ERRF - description: Error flag - bit_offset: 2 - bit_size: 1 - - name: ESYNCF - description: Expected SYNC flag - bit_offset: 3 - bit_size: 1 - - name: SYNCERR - description: SYNC error - bit_offset: 8 - bit_size: 1 - - name: SYNCMISS - description: SYNC missed - bit_offset: 9 - bit_size: 1 - - name: TRIMOVF - description: Trimming overflow or underflow - bit_offset: 10 - bit_size: 1 - - name: FEDIR - description: Frequency error direction - bit_offset: 15 - bit_size: 1 - - name: FECAP - description: Frequency error capture - bit_offset: 16 - bit_size: 16 + - name: SYNCOKF + description: SYNC event OK flag + bit_offset: 0 + bit_size: 1 + - name: SYNCWARNF + description: SYNC warning flag + bit_offset: 1 + bit_size: 1 + - name: ERRF + description: Error flag + bit_offset: 2 + bit_size: 1 + - name: ESYNCF + description: Expected SYNC flag + bit_offset: 3 + bit_size: 1 + - name: SYNCERR + description: SYNC error + bit_offset: 8 + bit_size: 1 + - name: SYNCMISS + description: SYNC missed + bit_offset: 9 + bit_size: 1 + - name: TRIMOVF + description: Trimming overflow or underflow + bit_offset: 10 + bit_size: 1 + - name: FEDIR + description: Frequency error direction + bit_offset: 15 + bit_size: 1 + - name: FECAP + description: Frequency error capture + bit_offset: 16 + bit_size: 16 enum/SYNCSRC: bit_size: 2 variants: - - name: GPIO - description: GPIO selected as SYNC signal source - value: 0 - - name: LSE - description: LSE selected as SYNC signal source - value: 1 - - name: USB - description: USB SOF selected as SYNC signal source - value: 2 + - name: GPIO + description: GPIO selected as SYNC signal source + value: 0 + - name: LSE + description: LSE selected as SYNC signal source + value: 1 + - name: USB + description: USB SOF selected as SYNC signal source + value: 2 diff --git a/data/registers/dac_v1.yaml b/data/registers/dac_v1.yaml index edba8ae..1ef1857 100644 --- a/data/registers/dac_v1.yaml +++ b/data/registers/dac_v1.yaml @@ -1,262 +1,261 @@ ---- block/DAC: description: Digital-to-analog converter items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: SWTRIGR - description: software trigger register - byte_offset: 4 - access: Write - fieldset: SWTRIGR - - name: DHR12R - description: channel 12-bit right-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 8 - fieldset: DHR12R - - name: DHR12L - description: channel 12-bit left-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 12 - fieldset: DHR12L - - name: DHR8R - description: channel 8-bit right-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 16 - fieldset: DHR8R - - name: DHR12RD - description: Dual DAC 12-bit right-aligned data holding register - byte_offset: 32 - fieldset: DHR12RD - - name: DHR12LD - description: DUAL DAC 12-bit left aligned data holding register - byte_offset: 36 - fieldset: DHR12LD - - name: DHR8RD - description: DUAL DAC 8-bit right aligned data holding register - byte_offset: 40 - fieldset: DHR8RD - - name: DOR - description: channel data output register - array: - len: 2 - stride: 4 - byte_offset: 44 - access: Read - fieldset: DOR - - name: SR - description: status register - byte_offset: 52 - fieldset: SR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SWTRIGR + description: software trigger register + byte_offset: 4 + access: Write + fieldset: SWTRIGR + - name: DHR12R + description: channel 12-bit right-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 8 + fieldset: DHR12R + - name: DHR12L + description: channel 12-bit left-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 12 + fieldset: DHR12L + - name: DHR8R + description: channel 8-bit right-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 16 + fieldset: DHR8R + - name: DHR12RD + description: Dual DAC 12-bit right-aligned data holding register + byte_offset: 32 + fieldset: DHR12RD + - name: DHR12LD + description: DUAL DAC 12-bit left aligned data holding register + byte_offset: 36 + fieldset: DHR12LD + - name: DHR8RD + description: DUAL DAC 8-bit right aligned data holding register + byte_offset: 40 + fieldset: DHR8RD + - name: DOR + description: channel data output register + array: + len: 2 + stride: 4 + byte_offset: 44 + access: Read + fieldset: DOR + - name: SR + description: status register + byte_offset: 52 + fieldset: SR fieldset/CR: description: control register fields: - - name: EN - description: DAC channel enable - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: BOFF - description: DAC channel output buffer disable - bit_offset: 1 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TEN - description: DAC channel trigger enable - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TSEL1 - description: DAC channel 1 trigger selection - bit_offset: 3 - bit_size: 3 - enum: TSEL1 - - name: WAVE - description: DAC channel noise/triangle wave generation enable - bit_offset: 6 - bit_size: 2 - array: - len: 2 - stride: 16 - enum: WAVE - - name: MAMP - description: DAC channel mask/amplitude selector - bit_offset: 8 - bit_size: 4 - array: - len: 2 - stride: 16 - - name: DMAEN - description: DAC channel DMA enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: DMAUDRIE - description: DAC channel DMA Underrun Interrupt enable - bit_offset: 13 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TSEL2 - description: DAC channel 2 trigger selection - bit_offset: 19 - bit_size: 3 - enum: TSEL2 + - name: EN + description: DAC channel enable + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: BOFF + description: DAC channel output buffer disable + bit_offset: 1 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TEN + description: DAC channel trigger enable + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TSEL1 + description: DAC channel 1 trigger selection + bit_offset: 3 + bit_size: 3 + enum: TSEL1 + - name: WAVE + description: DAC channel noise/triangle wave generation enable + bit_offset: 6 + bit_size: 2 + array: + len: 2 + stride: 16 + enum: WAVE + - name: MAMP + description: DAC channel mask/amplitude selector + bit_offset: 8 + bit_size: 4 + array: + len: 2 + stride: 16 + - name: DMAEN + description: DAC channel DMA enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: DMAUDRIE + description: DAC channel DMA Underrun Interrupt enable + bit_offset: 13 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TSEL2 + description: DAC channel 2 trigger selection + bit_offset: 19 + bit_size: 3 + enum: TSEL2 fieldset/DHR12L: description: channel 12-bit left-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit left-aligned data - bit_offset: 4 - bit_size: 12 + - name: DHR + description: DAC channel 12-bit left-aligned data + bit_offset: 4 + bit_size: 12 fieldset/DHR12LD: description: DUAL DAC 12-bit left aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit left-aligned data - bit_offset: 4 - bit_size: 12 - array: - len: 2 - stride: 16 + - name: DHR + description: DAC channel 12-bit left-aligned data + bit_offset: 4 + bit_size: 12 + array: + len: 2 + stride: 16 fieldset/DHR12R: description: channel 12-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit right-aligned data - bit_offset: 0 - bit_size: 12 + - name: DHR + description: DAC channel 12-bit right-aligned data + bit_offset: 0 + bit_size: 12 fieldset/DHR12RD: description: Dual DAC 12-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit right-aligned data - bit_offset: 0 - bit_size: 12 - array: - len: 2 - stride: 16 + - name: DHR + description: DAC channel 12-bit right-aligned data + bit_offset: 0 + bit_size: 12 + array: + len: 2 + stride: 16 fieldset/DHR8R: description: channel 8-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 8-bit right-aligned data - bit_offset: 0 - bit_size: 8 + - name: DHR + description: DAC channel 8-bit right-aligned data + bit_offset: 0 + bit_size: 8 fieldset/DHR8RD: description: DUAL DAC 8-bit right aligned data holding register fields: - - name: DHR - description: DAC channel 8-bit right-aligned data - bit_offset: 0 - bit_size: 8 - array: - len: 2 - stride: 8 + - name: DHR + description: DAC channel 8-bit right-aligned data + bit_offset: 0 + bit_size: 8 + array: + len: 2 + stride: 8 fieldset/DOR: description: channel data output register fields: - - name: DOR - description: DAC channel data output - bit_offset: 0 - bit_size: 12 + - name: DOR + description: DAC channel data output + bit_offset: 0 + bit_size: 12 fieldset/SR: description: status register fields: - - name: DMAUDR - description: DAC channel DMA underrun flag - bit_offset: 13 - bit_size: 1 - array: - len: 2 - stride: 16 + - name: DMAUDR + description: DAC channel DMA underrun flag + bit_offset: 13 + bit_size: 1 + array: + len: 2 + stride: 16 fieldset/SWTRIGR: description: software trigger register fields: - - name: SWTRIG - description: DAC channel software trigger - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: SWTRIG + description: DAC channel software trigger + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 enum/TSEL1: bit_size: 3 variants: - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 0 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 1 - - name: TIM7_TRGO - description: Timer 7 TRGO event - value: 2 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 3 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 4 - - name: EXTI9 - description: EXTI line9 - value: 6 - - name: SOFTWARE - description: Software trigger - value: 7 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 0 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 1 + - name: TIM7_TRGO + description: Timer 7 TRGO event + value: 2 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 3 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 4 + - name: EXTI9 + description: EXTI line9 + value: 6 + - name: SOFTWARE + description: Software trigger + value: 7 enum/TSEL2: bit_size: 3 variants: - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 0 - - name: TIM8_TRGO - description: Timer 8 TRGO event - value: 1 - - name: TIM7_TRGO - description: Timer 7 TRGO event - value: 2 - - name: TIM5_TRGO - description: Timer 5 TRGO event - value: 3 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 4 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 5 - - name: EXTI9 - description: EXTI line9 - value: 6 - - name: SOFTWARE - description: Software trigger - value: 7 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 0 + - name: TIM8_TRGO + description: Timer 8 TRGO event + value: 1 + - name: TIM7_TRGO + description: Timer 7 TRGO event + value: 2 + - name: TIM5_TRGO + description: Timer 5 TRGO event + value: 3 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 4 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 5 + - name: EXTI9 + description: EXTI line9 + value: 6 + - name: SOFTWARE + description: Software trigger + value: 7 enum/WAVE: bit_size: 2 variants: - - name: Disabled - description: Wave generation disabled - value: 0 - - name: Noise - description: Noise wave generation enabled - value: 1 - - name: Triangle - description: Triangle wave generation enabled - value: 2 + - name: Disabled + description: Wave generation disabled + value: 0 + - name: Noise + description: Noise wave generation enabled + value: 1 + - name: Triangle + description: Triangle wave generation enabled + value: 2 diff --git a/data/registers/dac_v2.yaml b/data/registers/dac_v2.yaml index 517bab5..348e410 100644 --- a/data/registers/dac_v2.yaml +++ b/data/registers/dac_v2.yaml @@ -1,347 +1,346 @@ ---- block/DAC: description: Digital-to-analog converter items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: SWTRIGR - description: software trigger register - byte_offset: 4 - access: Write - fieldset: SWTRIGR - - name: DHR12R - description: channel 12-bit right-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 8 - fieldset: DHR12R - - name: DHR12L - description: channel 12-bit left-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 12 - fieldset: DHR12L - - name: DHR8R - description: channel 8-bit right-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 16 - fieldset: DHR8R - - name: DHR12RD - description: Dual DAC 12-bit right-aligned data holding register - byte_offset: 32 - fieldset: DHR12RD - - name: DHR12LD - description: DUAL DAC 12-bit left aligned data holding register - byte_offset: 36 - fieldset: DHR12LD - - name: DHR8RD - description: DUAL DAC 8-bit right aligned data holding register - byte_offset: 40 - fieldset: DHR8RD - - name: DOR - description: channel data output register - array: - len: 2 - stride: 4 - byte_offset: 44 - access: Read - fieldset: DOR - - name: SR - description: status register - byte_offset: 52 - fieldset: SR - - name: CCR - description: calibration control register - byte_offset: 56 - fieldset: CCR - - name: MCR - description: mode control register - byte_offset: 60 - fieldset: MCR - - name: SHSR1 - description: Sample and Hold sample time register - array: - len: 2 - stride: 4 - byte_offset: 64 - fieldset: SHSR - - name: SHHR - description: Sample and Hold hold time register - byte_offset: 72 - fieldset: SHHR - - name: SHRR - description: Sample and Hold refresh time register - byte_offset: 76 - fieldset: SHRR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SWTRIGR + description: software trigger register + byte_offset: 4 + access: Write + fieldset: SWTRIGR + - name: DHR12R + description: channel 12-bit right-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 8 + fieldset: DHR12R + - name: DHR12L + description: channel 12-bit left-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 12 + fieldset: DHR12L + - name: DHR8R + description: channel 8-bit right-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 16 + fieldset: DHR8R + - name: DHR12RD + description: Dual DAC 12-bit right-aligned data holding register + byte_offset: 32 + fieldset: DHR12RD + - name: DHR12LD + description: DUAL DAC 12-bit left aligned data holding register + byte_offset: 36 + fieldset: DHR12LD + - name: DHR8RD + description: DUAL DAC 8-bit right aligned data holding register + byte_offset: 40 + fieldset: DHR8RD + - name: DOR + description: channel data output register + array: + len: 2 + stride: 4 + byte_offset: 44 + access: Read + fieldset: DOR + - name: SR + description: status register + byte_offset: 52 + fieldset: SR + - name: CCR + description: calibration control register + byte_offset: 56 + fieldset: CCR + - name: MCR + description: mode control register + byte_offset: 60 + fieldset: MCR + - name: SHSR1 + description: Sample and Hold sample time register + array: + len: 2 + stride: 4 + byte_offset: 64 + fieldset: SHSR + - name: SHHR + description: Sample and Hold hold time register + byte_offset: 72 + fieldset: SHHR + - name: SHRR + description: Sample and Hold refresh time register + byte_offset: 76 + fieldset: SHRR fieldset/CCR: description: calibration control register fields: - - name: OTRIM1 - description: DAC Channel 1 offset trimming value - bit_offset: 0 - bit_size: 5 - - name: OTRIM2 - description: DAC Channel 2 offset trimming value - bit_offset: 16 - bit_size: 5 + - name: OTRIM1 + description: DAC Channel 1 offset trimming value + bit_offset: 0 + bit_size: 5 + - name: OTRIM2 + description: DAC Channel 2 offset trimming value + bit_offset: 16 + bit_size: 5 fieldset/CR: description: control register fields: - - name: EN - description: DAC channel enable - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TEN - description: DAC channel trigger enable - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TSEL1 - description: DAC channel 1 trigger selection - bit_offset: 3 - bit_size: 3 - enum: TSEL1 - - name: WAVE - description: DAC channel noise/triangle wave generation enable - bit_offset: 6 - bit_size: 2 - array: - len: 2 - stride: 16 - enum: WAVE - - name: MAMP - description: DAC channel mask/amplitude selector - bit_offset: 8 - bit_size: 4 - array: - len: 2 - stride: 16 - - name: DMAEN - description: DAC channel DMA enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: DMAUDRIE - description: DAC channel DMA Underrun Interrupt enable - bit_offset: 13 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: CEN - description: DAC channel calibration enable - bit_offset: 14 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TSEL2 - description: DAC channel 2 trigger selection - bit_offset: 19 - bit_size: 3 - enum: TSEL2 + - name: EN + description: DAC channel enable + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TEN + description: DAC channel trigger enable + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TSEL1 + description: DAC channel 1 trigger selection + bit_offset: 3 + bit_size: 3 + enum: TSEL1 + - name: WAVE + description: DAC channel noise/triangle wave generation enable + bit_offset: 6 + bit_size: 2 + array: + len: 2 + stride: 16 + enum: WAVE + - name: MAMP + description: DAC channel mask/amplitude selector + bit_offset: 8 + bit_size: 4 + array: + len: 2 + stride: 16 + - name: DMAEN + description: DAC channel DMA enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: DMAUDRIE + description: DAC channel DMA Underrun Interrupt enable + bit_offset: 13 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: CEN + description: DAC channel calibration enable + bit_offset: 14 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TSEL2 + description: DAC channel 2 trigger selection + bit_offset: 19 + bit_size: 3 + enum: TSEL2 fieldset/DHR12L: description: channel 12-bit left-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit left-aligned data - bit_offset: 4 - bit_size: 12 + - name: DHR + description: DAC channel 12-bit left-aligned data + bit_offset: 4 + bit_size: 12 fieldset/DHR12LD: description: DUAL DAC 12-bit left aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit left-aligned data - bit_offset: 4 - bit_size: 12 - array: - len: 2 - stride: 16 + - name: DHR + description: DAC channel 12-bit left-aligned data + bit_offset: 4 + bit_size: 12 + array: + len: 2 + stride: 16 fieldset/DHR12R: description: channel 12-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit right-aligned data - bit_offset: 0 - bit_size: 12 + - name: DHR + description: DAC channel 12-bit right-aligned data + bit_offset: 0 + bit_size: 12 fieldset/DHR12RD: description: Dual DAC 12-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit right-aligned data - bit_offset: 0 - bit_size: 12 - array: - len: 2 - stride: 16 + - name: DHR + description: DAC channel 12-bit right-aligned data + bit_offset: 0 + bit_size: 12 + array: + len: 2 + stride: 16 fieldset/DHR8R: description: channel 8-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 8-bit right-aligned data - bit_offset: 0 - bit_size: 8 + - name: DHR + description: DAC channel 8-bit right-aligned data + bit_offset: 0 + bit_size: 8 fieldset/DHR8RD: description: DUAL DAC 8-bit right aligned data holding register fields: - - name: DHR - description: DAC channel 8-bit right-aligned data - bit_offset: 0 - bit_size: 8 - array: - len: 2 - stride: 8 + - name: DHR + description: DAC channel 8-bit right-aligned data + bit_offset: 0 + bit_size: 8 + array: + len: 2 + stride: 8 fieldset/DOR: description: channel data output register fields: - - name: DOR - description: DAC channel data output - bit_offset: 0 - bit_size: 12 + - name: DOR + description: DAC channel data output + bit_offset: 0 + bit_size: 12 fieldset/MCR: description: mode control register fields: - - name: MODE - description: DAC channel mode - bit_offset: 0 - bit_size: 3 - array: - len: 2 - stride: 16 + - name: MODE + description: DAC channel mode + bit_offset: 0 + bit_size: 3 + array: + len: 2 + stride: 16 fieldset/SHHR: description: Sample and Hold hold time register fields: - - name: THOLD - description: DAC channel hold Time - bit_offset: 0 - bit_size: 10 - array: - len: 2 - stride: 16 + - name: THOLD + description: DAC channel hold Time + bit_offset: 0 + bit_size: 10 + array: + len: 2 + stride: 16 fieldset/SHRR: description: Sample and Hold refresh time register fields: - - name: TREFRESH - description: DAC channel refresh Time - bit_offset: 0 - bit_size: 8 - array: - len: 2 - stride: 16 + - name: TREFRESH + description: DAC channel refresh Time + bit_offset: 0 + bit_size: 8 + array: + len: 2 + stride: 16 fieldset/SHSR: description: Sample and Hold sample time register fields: - - name: TSAMPLE - description: DAC channel sample Time - bit_offset: 0 - bit_size: 10 + - name: TSAMPLE + description: DAC channel sample Time + bit_offset: 0 + bit_size: 10 fieldset/SR: description: status register fields: - - name: DMAUDR - description: DAC channel DMA underrun flag - bit_offset: 13 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: CAL_FLAG - description: DAC channel calibration offset status - bit_offset: 14 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: BWST - description: DAC channel busy writing sample time flag - bit_offset: 15 - bit_size: 1 - array: - len: 2 - stride: 16 + - name: DMAUDR + description: DAC channel DMA underrun flag + bit_offset: 13 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: CAL_FLAG + description: DAC channel calibration offset status + bit_offset: 14 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: BWST + description: DAC channel busy writing sample time flag + bit_offset: 15 + bit_size: 1 + array: + len: 2 + stride: 16 fieldset/SWTRIGR: description: software trigger register fields: - - name: SWTRIG - description: DAC channel software trigger - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: SWTRIG + description: DAC channel software trigger + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 enum/TSEL1: bit_size: 3 variants: - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 0 - - name: TIM3_TRGO - description: Timer 3 TRGO event - value: 1 - - name: TIM7_TRGO - description: Timer 7 TRGO event - value: 2 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 3 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 4 - - name: EXTI9 - description: EXTI line9 - value: 6 - - name: SOFTWARE - description: Software trigger - value: 7 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 0 + - name: TIM3_TRGO + description: Timer 3 TRGO event + value: 1 + - name: TIM7_TRGO + description: Timer 7 TRGO event + value: 2 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 3 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 4 + - name: EXTI9 + description: EXTI line9 + value: 6 + - name: SOFTWARE + description: Software trigger + value: 7 enum/TSEL2: bit_size: 3 variants: - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 0 - - name: TIM8_TRGO - description: Timer 8 TRGO event - value: 1 - - name: TIM7_TRGO - description: Timer 7 TRGO event - value: 2 - - name: TIM5_TRGO - description: Timer 5 TRGO event - value: 3 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 4 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 5 - - name: EXTI9 - description: EXTI line9 - value: 6 - - name: SOFTWARE - description: Software trigger - value: 7 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 0 + - name: TIM8_TRGO + description: Timer 8 TRGO event + value: 1 + - name: TIM7_TRGO + description: Timer 7 TRGO event + value: 2 + - name: TIM5_TRGO + description: Timer 5 TRGO event + value: 3 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 4 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 5 + - name: EXTI9 + description: EXTI line9 + value: 6 + - name: SOFTWARE + description: Software trigger + value: 7 enum/WAVE: bit_size: 2 variants: - - name: Disabled - description: Wave generation disabled - value: 0 - - name: Noise - description: Noise wave generation enabled - value: 1 - - name: Triangle - description: Triangle wave generation enabled - value: 2 + - name: Disabled + description: Wave generation disabled + value: 0 + - name: Noise + description: Noise wave generation enabled + value: 1 + - name: Triangle + description: Triangle wave generation enabled + value: 2 diff --git a/data/registers/dac_v3.yaml b/data/registers/dac_v3.yaml index 7f348c4..e15ab44 100644 --- a/data/registers/dac_v3.yaml +++ b/data/registers/dac_v3.yaml @@ -1,394 +1,391 @@ ---- block/DAC: description: Digital-to-analog converter items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: SWTRIGR - description: software trigger register - byte_offset: 4 - access: Write - fieldset: SWTRIGR - - name: DHR12R - description: channel 12-bit right-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 8 - fieldset: DHR12R - - name: DHR12L - description: channel 12-bit left-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 12 - fieldset: DHR12L - - name: DHR8R - description: channel 8-bit right-aligned data holding register - array: - len: 2 - stride: 12 - byte_offset: 16 - fieldset: DHR8R - - name: DHR12RD - description: Dual DAC 12-bit right-aligned data holding register - byte_offset: 32 - fieldset: DHR12RD - - name: DHR12LD - description: DUAL DAC 12-bit left aligned data holding register - byte_offset: 36 - fieldset: DHR12LD - - name: DHR8RD - description: DUAL DAC 8-bit right aligned data holding register - byte_offset: 40 - fieldset: DHR8RD - - name: DOR - description: channel data output register - array: - len: 2 - stride: 4 - byte_offset: 44 - access: Read - fieldset: DOR - - name: SR - description: status register - byte_offset: 52 - fieldset: SR - - name: CCR - description: calibration control register - byte_offset: 56 - fieldset: CCR - - name: MCR - description: mode control register - byte_offset: 60 - fieldset: MCR - - name: SHSR1 - description: Sample and Hold sample time register - array: - len: 2 - stride: 4 - byte_offset: 64 - fieldset: SHSR - - name: SHHR - description: Sample and Hold hold time register - byte_offset: 72 - fieldset: SHHR - - name: SHRR - description: Sample and Hold refresh time register - byte_offset: 76 - fieldset: SHRR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SWTRIGR + description: software trigger register + byte_offset: 4 + access: Write + fieldset: SWTRIGR + - name: DHR12R + description: channel 12-bit right-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 8 + fieldset: DHR12R + - name: DHR12L + description: channel 12-bit left-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 12 + fieldset: DHR12L + - name: DHR8R + description: channel 8-bit right-aligned data holding register + array: + len: 2 + stride: 12 + byte_offset: 16 + fieldset: DHR8R + - name: DHR12RD + description: Dual DAC 12-bit right-aligned data holding register + byte_offset: 32 + fieldset: DHR12RD + - name: DHR12LD + description: DUAL DAC 12-bit left aligned data holding register + byte_offset: 36 + fieldset: DHR12LD + - name: DHR8RD + description: DUAL DAC 8-bit right aligned data holding register + byte_offset: 40 + fieldset: DHR8RD + - name: DOR + description: channel data output register + array: + len: 2 + stride: 4 + byte_offset: 44 + access: Read + fieldset: DOR + - name: SR + description: status register + byte_offset: 52 + fieldset: SR + - name: CCR + description: calibration control register + byte_offset: 56 + fieldset: CCR + - name: MCR + description: mode control register + byte_offset: 60 + fieldset: MCR + - name: SHSR1 + description: Sample and Hold sample time register + array: + len: 2 + stride: 4 + byte_offset: 64 + fieldset: SHSR + - name: SHHR + description: Sample and Hold hold time register + byte_offset: 72 + fieldset: SHHR + - name: SHRR + description: Sample and Hold refresh time register + byte_offset: 76 + fieldset: SHRR fieldset/CCR: description: calibration control register fields: - - name: OTRIM1 - description: DAC Channel 1 offset trimming value - bit_offset: 0 - bit_size: 5 - - name: OTRIM2 - description: DAC Channel 2 offset trimming value - bit_offset: 16 - bit_size: 5 + - name: OTRIM1 + description: DAC Channel 1 offset trimming value + bit_offset: 0 + bit_size: 5 + - name: OTRIM2 + description: DAC Channel 2 offset trimming value + bit_offset: 16 + bit_size: 5 fieldset/CR: description: control register fields: - - name: EN - description: DAC channel enable - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TEN - description: DAC channel trigger enable - bit_offset: 1 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TSEL1 - description: DAC channel 1 trigger selection - bit_offset: 2 - bit_size: 4 - enum: TSEL1 - - name: WAVE - description: DAC channel noise/triangle wave generation enable - bit_offset: 6 - bit_size: 2 - array: - len: 2 - stride: 16 - enum: WAVE - - name: MAMP - description: DAC channel mask/amplitude selector - bit_offset: 8 - bit_size: 4 - array: - len: 2 - stride: 16 - - name: DMAEN - description: DAC channel DMA enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: DMAUDRIE - description: DAC channel DMA Underrun Interrupt enable - bit_offset: 13 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: CEN - description: DAC channel calibration enable - bit_offset: 14 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: TSEL2 - description: DAC channel 2 trigger selection - bit_offset: 18 - bit_size: 4 - enum: TSEL2 + - name: EN + description: DAC channel enable + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TEN + description: DAC channel trigger enable + bit_offset: 1 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TSEL1 + description: DAC channel 1 trigger selection + bit_offset: 2 + bit_size: 4 + enum: TSEL1 + - name: WAVE + description: DAC channel noise/triangle wave generation enable + bit_offset: 6 + bit_size: 2 + array: + len: 2 + stride: 16 + enum: WAVE + - name: MAMP + description: DAC channel mask/amplitude selector + bit_offset: 8 + bit_size: 4 + array: + len: 2 + stride: 16 + - name: DMAEN + description: DAC channel DMA enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: DMAUDRIE + description: DAC channel DMA Underrun Interrupt enable + bit_offset: 13 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: CEN + description: DAC channel calibration enable + bit_offset: 14 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: TSEL2 + description: DAC channel 2 trigger selection + bit_offset: 18 + bit_size: 4 + enum: TSEL2 fieldset/DHR12L: description: channel 12-bit left-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit left-aligned data - bit_offset: 4 - bit_size: 12 + - name: DHR + description: DAC channel 12-bit left-aligned data + bit_offset: 4 + bit_size: 12 fieldset/DHR12LD: description: DUAL DAC 12-bit left aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit left-aligned data - bit_offset: 4 - bit_size: 12 - array: - len: 2 - stride: 16 + - name: DHR + description: DAC channel 12-bit left-aligned data + bit_offset: 4 + bit_size: 12 + array: + len: 2 + stride: 16 fieldset/DHR12R: description: channel 12-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit right-aligned data - bit_offset: 0 - bit_size: 12 + - name: DHR + description: DAC channel 12-bit right-aligned data + bit_offset: 0 + bit_size: 12 fieldset/DHR12RD: description: Dual DAC 12-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 12-bit right-aligned data - bit_offset: 0 - bit_size: 12 - array: - len: 2 - stride: 16 + - name: DHR + description: DAC channel 12-bit right-aligned data + bit_offset: 0 + bit_size: 12 + array: + len: 2 + stride: 16 fieldset/DHR8R: description: channel 8-bit right-aligned data holding register fields: - - name: DHR - description: DAC channel 8-bit right-aligned data - bit_offset: 0 - bit_size: 8 + - name: DHR + description: DAC channel 8-bit right-aligned data + bit_offset: 0 + bit_size: 8 fieldset/DHR8RD: description: DUAL DAC 8-bit right aligned data holding register fields: - - name: DHR - description: DAC channel 8-bit right-aligned data - bit_offset: 0 - bit_size: 8 - array: - len: 2 - stride: 8 + - name: DHR + description: DAC channel 8-bit right-aligned data + bit_offset: 0 + bit_size: 8 + array: + len: 2 + stride: 8 fieldset/DOR: description: channel data output register fields: - - name: DOR - description: DAC channel data output - bit_offset: 0 - bit_size: 12 + - name: DOR + description: DAC channel data output + bit_offset: 0 + bit_size: 12 fieldset/MCR: description: mode control register fields: - - name: MODE - description: DAC channel mode - bit_offset: 0 - bit_size: 3 - array: - len: 2 - stride: 16 + - name: MODE + description: DAC channel mode + bit_offset: 0 + bit_size: 3 + array: + len: 2 + stride: 16 fieldset/SHHR: description: Sample and Hold hold time register fields: - - name: THOLD - description: DAC channel hold Time - bit_offset: 0 - bit_size: 10 - array: - len: 2 - stride: 16 + - name: THOLD + description: DAC channel hold Time + bit_offset: 0 + bit_size: 10 + array: + len: 2 + stride: 16 fieldset/SHRR: description: Sample and Hold refresh time register fields: - - name: TREFRESH - description: DAC channel refresh Time - bit_offset: 0 - bit_size: 8 - array: - len: 2 - stride: 16 + - name: TREFRESH + description: DAC channel refresh Time + bit_offset: 0 + bit_size: 8 + array: + len: 2 + stride: 16 fieldset/SHSR: description: Sample and Hold sample time register fields: - - name: TSAMPLE - description: DAC channel sample Time - bit_offset: 0 - bit_size: 10 + - name: TSAMPLE + description: DAC channel sample Time + bit_offset: 0 + bit_size: 10 fieldset/SR: description: status register fields: - - name: DMAUDR - description: DAC channel DMA underrun flag - bit_offset: 13 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: CAL_FLAG - description: DAC channel calibration offset status - bit_offset: 14 - bit_size: 1 - array: - len: 2 - stride: 16 - - name: BWST - description: DAC channel busy writing sample time flag - bit_offset: 15 - bit_size: 1 - array: - len: 2 - stride: 16 + - name: DMAUDR + description: DAC channel DMA underrun flag + bit_offset: 13 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: CAL_FLAG + description: DAC channel calibration offset status + bit_offset: 14 + bit_size: 1 + array: + len: 2 + stride: 16 + - name: BWST + description: DAC channel busy writing sample time flag + bit_offset: 15 + bit_size: 1 + array: + len: 2 + stride: 16 fieldset/SWTRIGR: description: software trigger register fields: - - name: SWTRIG - description: DAC channel software trigger - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: SWTRIG + description: DAC channel software trigger + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 enum/TSEL1: bit_size: 4 variants: - - name: SOFTWARE - description: Software trigger - value: 0 - - name: TIM1_TRGO - description: Timer 1 TRGO event - value: 1 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 3 - - name: TIM5_TRGO - description: Timer 5 TRGO event - value: 4 - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 5 - - name: TIM7_TRGO - description: Timer 7 TRGO event - value: 6 - - name: TIM8_TRGO - description: Timer 8 TRGO event - value: 7 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 8 - - name: HRTIM1_DACTRG1 - description: High resolution timer 1 DACTRG1 event - value: 9 - - name: HRTIM1_DACTRG2 - description: High resolution timer 1 DACTRG2 event - value: 10 - - name: LPTIM1_OUT - description: Low-power timer 1 OUT event - value: 11 - - name: LPTIM2_OUT - description: Low-power timer 2 OUT event - value: 12 - - name: EXTI9 - description: EXTI line9 - value: 13 - - name: LPTIM3_OUT - description: Low-power timer 3 OUT event - value: 14 - + - name: SOFTWARE + description: Software trigger + value: 0 + - name: TIM1_TRGO + description: Timer 1 TRGO event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 3 + - name: TIM5_TRGO + description: Timer 5 TRGO event + value: 4 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 5 + - name: TIM7_TRGO + description: Timer 7 TRGO event + value: 6 + - name: TIM8_TRGO + description: Timer 8 TRGO event + value: 7 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 8 + - name: HRTIM1_DACTRG1 + description: High resolution timer 1 DACTRG1 event + value: 9 + - name: HRTIM1_DACTRG2 + description: High resolution timer 1 DACTRG2 event + value: 10 + - name: LPTIM1_OUT + description: Low-power timer 1 OUT event + value: 11 + - name: LPTIM2_OUT + description: Low-power timer 2 OUT event + value: 12 + - name: EXTI9 + description: EXTI line9 + value: 13 + - name: LPTIM3_OUT + description: Low-power timer 3 OUT event + value: 14 enum/TSEL2: bit_size: 4 variants: - - name: SOFTWARE - description: Software trigger - value: 0 - - name: TIM1_TRGO - description: Timer 1 TRGO event - value: 1 - - name: TIM2_TRGO - description: Timer 2 TRGO event - value: 2 - - name: TIM4_TRGO - description: Timer 4 TRGO event - value: 3 - - name: TIM5_TRGO - description: Timer 5 TRGO event - value: 4 - - name: TIM6_TRGO - description: Timer 6 TRGO event - value: 5 - - name: TIM7_TRGO - description: Timer 7 TRGO event - value: 6 - - name: TIM8_TRGO - description: Timer 8 TRGO event - value: 7 - - name: TIM15_TRGO - description: Timer 15 TRGO event - value: 8 - - name: HRTIM1_DACTRG1 - description: High resolution timer 1 DACTRG1 event - value: 9 - - name: HRTIM1_DACTRG2 - description: High resolution timer 1 DACTRG2 event - value: 10 - - name: LPTIM1_OUT - description: Low-power timer 1 OUT event - value: 11 - - name: LPTIM2_OUT - description: Low-power timer 2 OUT event - value: 12 - - name: EXTI9 - description: EXTI line9 - value: 13 - - name: LPTIM3_OUT - description: Low-power timer 3 OUT event - value: 14 - + - name: SOFTWARE + description: Software trigger + value: 0 + - name: TIM1_TRGO + description: Timer 1 TRGO event + value: 1 + - name: TIM2_TRGO + description: Timer 2 TRGO event + value: 2 + - name: TIM4_TRGO + description: Timer 4 TRGO event + value: 3 + - name: TIM5_TRGO + description: Timer 5 TRGO event + value: 4 + - name: TIM6_TRGO + description: Timer 6 TRGO event + value: 5 + - name: TIM7_TRGO + description: Timer 7 TRGO event + value: 6 + - name: TIM8_TRGO + description: Timer 8 TRGO event + value: 7 + - name: TIM15_TRGO + description: Timer 15 TRGO event + value: 8 + - name: HRTIM1_DACTRG1 + description: High resolution timer 1 DACTRG1 event + value: 9 + - name: HRTIM1_DACTRG2 + description: High resolution timer 1 DACTRG2 event + value: 10 + - name: LPTIM1_OUT + description: Low-power timer 1 OUT event + value: 11 + - name: LPTIM2_OUT + description: Low-power timer 2 OUT event + value: 12 + - name: EXTI9 + description: EXTI line9 + value: 13 + - name: LPTIM3_OUT + description: Low-power timer 3 OUT event + value: 14 enum/WAVE: bit_size: 2 variants: - - name: Disabled - description: Wave generation disabled - value: 0 - - name: Noise - description: Noise wave generation enabled - value: 1 - - name: Triangle - description: Triangle wave generation enabled - value: 2 + - name: Disabled + description: Wave generation disabled + value: 0 + - name: Noise + description: Noise wave generation enabled + value: 1 + - name: Triangle + description: Triangle wave generation enabled + value: 2 diff --git a/data/registers/dbgmcu_c0.yaml b/data/registers/dbgmcu_c0.yaml index aacbd38..08bd28c 100644 --- a/data/registers/dbgmcu_c0.yaml +++ b/data/registers/dbgmcu_c0.yaml @@ -1,85 +1,84 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR - description: DBG APB freeze register 1 - byte_offset: 8 - fieldset: APB1FZR - - name: APB2FZR - description: DBG APB freeze register 2 - byte_offset: 12 - fieldset: APB2FZR + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR + description: DBG APB freeze register 1 + byte_offset: 8 + fieldset: APB1FZR + - name: APB2FZR + description: DBG APB freeze register 2 + byte_offset: 12 + fieldset: APB2FZR fieldset/APB1FZR: description: DBG APB freeze register 1 fields: - - name: TIM3 - description: TIM3 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: RTC - description: Debug RTC stopped when Core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Debug Window Wachdog stopped when Core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Debug Independent Wachdog stopped when Core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout mode stopped when core is halted - bit_offset: 21 - bit_size: 1 + - name: TIM3 + description: TIM3 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: RTC + description: Debug RTC stopped when Core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Debug Window Wachdog stopped when Core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Debug Independent Wachdog stopped when Core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout mode stopped when core is halted + bit_offset: 21 + bit_size: 1 fieldset/APB2FZR: description: DBG APB freeze register 2 fields: - - name: TIM1 - description: TIM1 - bit_offset: 11 - bit_size: 1 - - name: TIM14 - description: TIM14 - bit_offset: 15 - bit_size: 1 - - name: TIM16 - description: TIM16 - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 + bit_offset: 11 + bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 15 + bit_size: 1 + - name: TIM16 + description: TIM16 + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 16 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 16 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_f0.yaml b/data/registers/dbgmcu_f0.yaml index d310e50..cd3415c 100644 --- a/data/registers/dbgmcu_f0.yaml +++ b/data/registers/dbgmcu_f0.yaml @@ -1,109 +1,108 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1_FZ - description: Debug MCU APB1 freeze register - byte_offset: 8 - fieldset: APB1_FZ - - name: APB2_FZ - description: Debug MCU APB2 freeze register - byte_offset: 12 - fieldset: APB2_FZ + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1_FZ + description: Debug MCU APB1 freeze register + byte_offset: 8 + fieldset: APB1_FZ + - name: APB2_FZ + description: Debug MCU APB2 freeze register + byte_offset: 12 + fieldset: APB2_FZ fieldset/APB1_FZ: description: Debug MCU APB1 freeze register fields: - - name: TIM2 - description: TIM2 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM6 - description: TIM6 counter stopped when core is halted - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 - - name: TIM14 - description: TIM14 counter stopped when core is halted - bit_offset: 8 - bit_size: 1 - - name: RTC - description: Debug RTC stopped when core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Debug window watchdog stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Debug independent watchdog stopped when core is halted - bit_offset: 12 - bit_size: 1 - - name: DBG_I2C1_SMBUS_TIMEOUT - description: SMBUS timeout mode stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: CAN - description: CAN stopped when core is halted - bit_offset: 25 - bit_size: 1 + - name: TIM2 + description: TIM2 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM6 + description: TIM6 counter stopped when core is halted + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 + - name: TIM14 + description: TIM14 counter stopped when core is halted + bit_offset: 8 + bit_size: 1 + - name: RTC + description: Debug RTC stopped when core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Debug window watchdog stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Debug independent watchdog stopped when core is halted + bit_offset: 12 + bit_size: 1 + - name: DBG_I2C1_SMBUS_TIMEOUT + description: SMBUS timeout mode stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: CAN + description: CAN stopped when core is halted + bit_offset: 25 + bit_size: 1 fieldset/APB2_FZ: description: Debug MCU APB2 freeze register fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: TIM15 - description: TIM15 counter stopped when core is halted - bit_offset: 16 - bit_size: 1 - - name: TIM16 - description: TIM16 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: TIM15 + description: TIM15 counter stopped when core is halted + bit_offset: 16 + bit_size: 1 + - name: TIM16 + description: TIM16 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 12 - - name: DIV_ID - description: Division Identifier - bit_offset: 12 - bit_size: 4 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 12 + - name: DIV_ID + description: Division Identifier + bit_offset: 12 + bit_size: 4 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_f1.yaml b/data/registers/dbgmcu_f1.yaml index 8caffd0..d1cc865 100644 --- a/data/registers/dbgmcu_f1.yaml +++ b/data/registers/dbgmcu_f1.yaml @@ -1,127 +1,126 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: DBGMCU_IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: DBGMCU_CR - byte_offset: 4 - fieldset: CR + - name: IDCODE + description: DBGMCU_IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: DBGMCU_CR + byte_offset: 4 + fieldset: CR fieldset/CR: description: DBGMCU_CR fields: - - name: DBG_SLEEP - description: DBG_SLEEP - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: DBG_STOP - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: DBG_STANDBY - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: TRACE_IOEN - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: TRACE_MODE - bit_offset: 6 - bit_size: 2 - - name: IWDG - description: IWDG - bit_offset: 8 - bit_size: 1 - - name: WWDG - description: WWDG - bit_offset: 9 - bit_size: 1 - - name: TIM1 - description: TIM1 - bit_offset: 10 - bit_size: 1 - - name: TIM2 - description: TIM2 - bit_offset: 11 - bit_size: 1 - - name: TIM3 - description: TIM3 - bit_offset: 12 - bit_size: 1 - - name: TIM4 - description: TIM4 - bit_offset: 13 - bit_size: 1 - - name: CAN1 - description: CAN1 - bit_offset: 14 - bit_size: 1 - - name: DBG_I2C1_SMBUS_TIMEOUT - description: DBG_I2C1_SMBUS_TIMEOUT - bit_offset: 15 - bit_size: 1 - - name: DBG_I2C2_SMBUS_TIMEOUT - description: DBG_I2C2_SMBUS_TIMEOUT - bit_offset: 16 - bit_size: 1 - - name: TIM8 - description: TIM8 - bit_offset: 17 - bit_size: 1 - - name: TIM5 - description: TIM5 - bit_offset: 18 - bit_size: 1 - - name: TIM6 - description: TIM6 - bit_offset: 19 - bit_size: 1 - - name: TIM7 - description: TIM7 - bit_offset: 20 - bit_size: 1 - - name: CAN2 - description: CAN2 - bit_offset: 21 - bit_size: 1 - - name: TIM15 - description: TIM15 - bit_offset: 22 - bit_size: 1 - - name: TIM16 - description: TIM16 - bit_offset: 23 - bit_size: 1 - - name: TIM17 - description: TIM17 - bit_offset: 24 - bit_size: 1 - - name: TIM12 - description: TIM12 - bit_offset: 25 - bit_size: 1 - - name: TIM13 - description: TIM13 - bit_offset: 26 - bit_size: 1 - - name: TIM14 - description: TIM14 - bit_offset: 27 - bit_size: 1 + - name: DBG_SLEEP + description: DBG_SLEEP + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: DBG_STOP + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: DBG_STANDBY + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: TRACE_IOEN + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: TRACE_MODE + bit_offset: 6 + bit_size: 2 + - name: IWDG + description: IWDG + bit_offset: 8 + bit_size: 1 + - name: WWDG + description: WWDG + bit_offset: 9 + bit_size: 1 + - name: TIM1 + description: TIM1 + bit_offset: 10 + bit_size: 1 + - name: TIM2 + description: TIM2 + bit_offset: 11 + bit_size: 1 + - name: TIM3 + description: TIM3 + bit_offset: 12 + bit_size: 1 + - name: TIM4 + description: TIM4 + bit_offset: 13 + bit_size: 1 + - name: CAN1 + description: CAN1 + bit_offset: 14 + bit_size: 1 + - name: DBG_I2C1_SMBUS_TIMEOUT + description: DBG_I2C1_SMBUS_TIMEOUT + bit_offset: 15 + bit_size: 1 + - name: DBG_I2C2_SMBUS_TIMEOUT + description: DBG_I2C2_SMBUS_TIMEOUT + bit_offset: 16 + bit_size: 1 + - name: TIM8 + description: TIM8 + bit_offset: 17 + bit_size: 1 + - name: TIM5 + description: TIM5 + bit_offset: 18 + bit_size: 1 + - name: TIM6 + description: TIM6 + bit_offset: 19 + bit_size: 1 + - name: TIM7 + description: TIM7 + bit_offset: 20 + bit_size: 1 + - name: CAN2 + description: CAN2 + bit_offset: 21 + bit_size: 1 + - name: TIM15 + description: TIM15 + bit_offset: 22 + bit_size: 1 + - name: TIM16 + description: TIM16 + bit_offset: 23 + bit_size: 1 + - name: TIM17 + description: TIM17 + bit_offset: 24 + bit_size: 1 + - name: TIM12 + description: TIM12 + bit_offset: 25 + bit_size: 1 + - name: TIM13 + description: TIM13 + bit_offset: 26 + bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 27 + bit_size: 1 fieldset/IDCODE: description: DBGMCU_IDCODE fields: - - name: DEV_ID - description: DEV_ID - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: REV_ID - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: DEV_ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: REV_ID + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_f2.yaml b/data/registers/dbgmcu_f2.yaml index 798b18a..e63b098 100644 --- a/data/registers/dbgmcu_f2.yaml +++ b/data/registers/dbgmcu_f2.yaml @@ -1,149 +1,148 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Control Register - byte_offset: 4 - fieldset: CR - - name: APB1_FZ - description: Debug MCU APB1 Freeze registe - byte_offset: 8 - fieldset: APB1_FZ - - name: APB2_FZ - description: Debug MCU APB2 Freeze registe - byte_offset: 12 - fieldset: APB2_FZ + - name: IDCODE + description: IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Control Register + byte_offset: 4 + fieldset: CR + - name: APB1_FZ + description: Debug MCU APB1 Freeze registe + byte_offset: 8 + fieldset: APB1_FZ + - name: APB2_FZ + description: Debug MCU APB2 Freeze registe + byte_offset: 12 + fieldset: APB2_FZ fieldset/APB1_FZ: description: Debug MCU APB1 Freeze registe fields: - - name: TIM2 - description: TIM2 - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: TIM4 - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: TIM5 - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: TIM6 - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 - bit_offset: 5 - bit_size: 1 - - name: TIM12 - description: TIM12 - bit_offset: 6 - bit_size: 1 - - name: TIM13 - description: TIM13 - bit_offset: 7 - bit_size: 1 - - name: TIM14 - description: TIM14 - bit_offset: 8 - bit_size: 1 - - name: RTC - description: RTC - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: WWDG - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: IWDEG - bit_offset: 12 - bit_size: 1 - - name: I2C1_SMBUS_TIMEOUT - description: I2C1_SMBUS_TIMEOUT - bit_offset: 21 - bit_size: 1 - - name: I2C2_SMBUS_TIMEOUT - description: I2C2_SMBUS_TIMEOUT - bit_offset: 22 - bit_size: 1 - - name: I2C3_SMBUS_TIMEOUT - description: I2C3_SMBUS_TIMEOUT - bit_offset: 23 - bit_size: 1 - - name: CAN1 - description: CAN1 - bit_offset: 25 - bit_size: 1 - - name: CAN2 - description: CAN2 - bit_offset: 26 - bit_size: 1 + - name: TIM2 + description: TIM2 + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: TIM4 + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: TIM5 + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: TIM6 + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 + bit_offset: 5 + bit_size: 1 + - name: TIM12 + description: TIM12 + bit_offset: 6 + bit_size: 1 + - name: TIM13 + description: TIM13 + bit_offset: 7 + bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 8 + bit_size: 1 + - name: RTC + description: RTC + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: WWDG + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: IWDEG + bit_offset: 12 + bit_size: 1 + - name: I2C1_SMBUS_TIMEOUT + description: I2C1_SMBUS_TIMEOUT + bit_offset: 21 + bit_size: 1 + - name: I2C2_SMBUS_TIMEOUT + description: I2C2_SMBUS_TIMEOUT + bit_offset: 22 + bit_size: 1 + - name: I2C3_SMBUS_TIMEOUT + description: I2C3_SMBUS_TIMEOUT + bit_offset: 23 + bit_size: 1 + - name: CAN1 + description: CAN1 + bit_offset: 25 + bit_size: 1 + - name: CAN2 + description: CAN2 + bit_offset: 26 + bit_size: 1 fieldset/APB2_FZ: description: Debug MCU APB2 Freeze registe fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM8 - description: TIM8 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM9 - description: TIM9 counter stopped when core is halted - bit_offset: 16 - bit_size: 1 - - name: TIM10 - description: TIM10 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM11 - description: TIM11 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM8 + description: TIM8 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM9 + description: TIM9 counter stopped when core is halted + bit_offset: 16 + bit_size: 1 + - name: TIM10 + description: TIM10 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM11 + description: TIM11 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Control Register fields: - - name: DBG_SLEEP - description: DBG_SLEEP - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: DBG_STOP - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: DBG_STANDBY - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: TRACE_IOEN - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: TRACE_MODE - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: DBG_SLEEP + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: DBG_STOP + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: DBG_STANDBY + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: TRACE_IOEN + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: TRACE_MODE + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: IDCODE fields: - - name: DEV_ID - description: DEV_ID - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: REV_ID - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: DEV_ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: REV_ID + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_f3.yaml b/data/registers/dbgmcu_f3.yaml index e5d2c97..6a91dd1 100644 --- a/data/registers/dbgmcu_f3.yaml +++ b/data/registers/dbgmcu_f3.yaml @@ -1,141 +1,140 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR - description: APB Low Freeze Register - byte_offset: 8 - fieldset: APB1FZR - - name: APB2FZR - description: APB High Freeze Register - byte_offset: 12 - fieldset: APB2FZR + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR + description: APB Low Freeze Register + byte_offset: 8 + fieldset: APB1FZR + - name: APB2FZR + description: APB High Freeze Register + byte_offset: 12 + fieldset: APB2FZR fieldset/APB1FZR: description: APB Low Freeze Register fields: - - name: TIM2 - description: Debug Timer 2 stopped when Core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: Debug Timer 3 stopped when Core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: Debug Timer 4 stopped when Core is halted - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: Debug Timer 5 stopped when Core is halted - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: Debug Timer 6 stopped when Core is halted - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: Debug Timer 7 stopped when Core is halted - bit_offset: 5 - bit_size: 1 - - name: TIM12 - description: Debug Timer 12 stopped when Core is halted - bit_offset: 6 - bit_size: 1 - - name: TIM13 - description: Debug Timer 13 stopped when Core is halted - bit_offset: 7 - bit_size: 1 - - name: TIM14 - description: Debug Timer 14 stopped when Core is halted - bit_offset: 8 - bit_size: 1 - - name: TIM18 - description: Debug Timer 18 stopped when Core is halted - bit_offset: 9 - bit_size: 1 - - name: RTC - description: Debug RTC stopped when Core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Debug Window Wachdog stopped when Core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Debug Independent Wachdog stopped when Core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1_SMBUS_TIMEOUT - description: SMBUS timeout mode stopped when Core is halted - bit_offset: 21 - bit_size: 1 - - name: I2C2_SMBUS_TIMEOUT - description: SMBUS timeout mode stopped when Core is halted - bit_offset: 22 - bit_size: 1 - - name: CAN - description: Debug CAN stopped when core is halted - bit_offset: 25 - bit_size: 1 + - name: TIM2 + description: Debug Timer 2 stopped when Core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: Debug Timer 3 stopped when Core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: Debug Timer 4 stopped when Core is halted + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: Debug Timer 5 stopped when Core is halted + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: Debug Timer 6 stopped when Core is halted + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: Debug Timer 7 stopped when Core is halted + bit_offset: 5 + bit_size: 1 + - name: TIM12 + description: Debug Timer 12 stopped when Core is halted + bit_offset: 6 + bit_size: 1 + - name: TIM13 + description: Debug Timer 13 stopped when Core is halted + bit_offset: 7 + bit_size: 1 + - name: TIM14 + description: Debug Timer 14 stopped when Core is halted + bit_offset: 8 + bit_size: 1 + - name: TIM18 + description: Debug Timer 18 stopped when Core is halted + bit_offset: 9 + bit_size: 1 + - name: RTC + description: Debug RTC stopped when Core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Debug Window Wachdog stopped when Core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Debug Independent Wachdog stopped when Core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1_SMBUS_TIMEOUT + description: SMBUS timeout mode stopped when Core is halted + bit_offset: 21 + bit_size: 1 + - name: I2C2_SMBUS_TIMEOUT + description: SMBUS timeout mode stopped when Core is halted + bit_offset: 22 + bit_size: 1 + - name: CAN + description: Debug CAN stopped when core is halted + bit_offset: 25 + bit_size: 1 fieldset/APB2FZR: description: APB High Freeze Register fields: - - name: TIM15 - description: Debug Timer 15 stopped when Core is halted - bit_offset: 2 - bit_size: 1 - - name: TIM16 - description: Debug Timer 16 stopped when Core is halted - bit_offset: 3 - bit_size: 1 - - name: TIM17 - description: Debug Timer 17 stopped when Core is halted - bit_offset: 4 - bit_size: 1 - - name: TIM19 - description: Debug Timer 19 stopped when Core is halted - bit_offset: 5 - bit_size: 1 + - name: TIM15 + description: Debug Timer 15 stopped when Core is halted + bit_offset: 2 + bit_size: 1 + - name: TIM16 + description: Debug Timer 16 stopped when Core is halted + bit_offset: 3 + bit_size: 1 + - name: TIM17 + description: Debug Timer 17 stopped when Core is halted + bit_offset: 4 + bit_size: 1 + - name: TIM19 + description: Debug Timer 19 stopped when Core is halted + bit_offset: 5 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_SLEEP - description: Debug Sleep mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: Trace pin assignment control - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: Trace pin assignment control - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: Debug Sleep mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: Trace pin assignment control + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: Trace pin assignment control + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_f4.yaml b/data/registers/dbgmcu_f4.yaml index bed8ba1..01dd86d 100644 --- a/data/registers/dbgmcu_f4.yaml +++ b/data/registers/dbgmcu_f4.yaml @@ -1,153 +1,152 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Control Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR - description: Debug MCU APB1 Freeze registe - byte_offset: 8 - fieldset: APB1FZR - - name: APB2FZR - description: Debug MCU APB2 Freeze registe - byte_offset: 12 - fieldset: APB2FZR + - name: IDCODE + description: IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Control Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR + description: Debug MCU APB1 Freeze registe + byte_offset: 8 + fieldset: APB1FZR + - name: APB2FZR + description: Debug MCU APB2 Freeze registe + byte_offset: 12 + fieldset: APB2FZR fieldset/APB1FZR: description: Debug MCU APB1 Freeze registe fields: - - name: TIM2 - description: TIM2 - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: TIM4 - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: TIM5 - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: TIM6 - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 - bit_offset: 5 - bit_size: 1 - - name: TIM12 - description: TIM12 - bit_offset: 6 - bit_size: 1 - - name: TIM13 - description: TIM13 - bit_offset: 7 - bit_size: 1 - - name: TIM14 - description: TIM14 - bit_offset: 8 - bit_size: 1 - - name: RTC - description: RTC stopped when Core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: WWDG - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: IWDEG - bit_offset: 12 - bit_size: 1 - - name: I2C1_SMBUS_TIMEOUT - description: I2C1_SMBUS_TIMEOUT - bit_offset: 21 - bit_size: 1 - - name: I2C2_SMBUS_TIMEOUT - description: I2C2_SMBUS_TIMEOUT - bit_offset: 22 - bit_size: 1 - - name: I2C3_SMBUS_TIMEOUT - description: I2C3SMBUS_TIMEOUT - bit_offset: 23 - bit_size: 1 - - name: I2CFMP_SMBUS_TIMEOUT - description: SMBUS timeout mode stopped when Core is halted - bit_offset: 24 - bit_size: 1 - - name: CAN1 - description: CAN1 - bit_offset: 25 - bit_size: 1 - - name: CAN2 - description: CAN2 - bit_offset: 26 - bit_size: 1 + - name: TIM2 + description: TIM2 + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: TIM4 + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: TIM5 + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: TIM6 + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 + bit_offset: 5 + bit_size: 1 + - name: TIM12 + description: TIM12 + bit_offset: 6 + bit_size: 1 + - name: TIM13 + description: TIM13 + bit_offset: 7 + bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 8 + bit_size: 1 + - name: RTC + description: RTC stopped when Core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: WWDG + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: IWDEG + bit_offset: 12 + bit_size: 1 + - name: I2C1_SMBUS_TIMEOUT + description: I2C1_SMBUS_TIMEOUT + bit_offset: 21 + bit_size: 1 + - name: I2C2_SMBUS_TIMEOUT + description: I2C2_SMBUS_TIMEOUT + bit_offset: 22 + bit_size: 1 + - name: I2C3_SMBUS_TIMEOUT + description: I2C3SMBUS_TIMEOUT + bit_offset: 23 + bit_size: 1 + - name: I2CFMP_SMBUS_TIMEOUT + description: SMBUS timeout mode stopped when Core is halted + bit_offset: 24 + bit_size: 1 + - name: CAN1 + description: CAN1 + bit_offset: 25 + bit_size: 1 + - name: CAN2 + description: CAN2 + bit_offset: 26 + bit_size: 1 fieldset/APB2FZR: description: Debug MCU APB2 Freeze registe fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM8 - description: TIM8 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM9 - description: TIM9 counter stopped when core is halted - bit_offset: 16 - bit_size: 1 - - name: TIM10 - description: TIM10 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM11 - description: TIM11 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM8 + description: TIM8 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM9 + description: TIM9 counter stopped when core is halted + bit_offset: 16 + bit_size: 1 + - name: TIM10 + description: TIM10 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM11 + description: TIM11 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Control Register fields: - - name: DBG_SLEEP - description: DBG_SLEEP - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: DBG_STOP - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: DBG_STANDBY - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: TRACE_IOEN - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: TRACE_MODE - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: DBG_SLEEP + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: DBG_STOP + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: DBG_STANDBY + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: TRACE_IOEN + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: TRACE_MODE + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: IDCODE fields: - - name: DEV_ID - description: DEV_ID - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: REV_ID - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: DEV_ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: REV_ID + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_f7.yaml b/data/registers/dbgmcu_f7.yaml index 5bb0de5..85bd1b1 100644 --- a/data/registers/dbgmcu_f7.yaml +++ b/data/registers/dbgmcu_f7.yaml @@ -1,161 +1,160 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Control Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR - description: Debug MCU APB1 Freeze register - byte_offset: 8 - fieldset: APB1FZR - - name: APB2FZR - description: Debug MCU APB2 Freeze register - byte_offset: 12 - fieldset: APB2FZR + - name: IDCODE + description: IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Control Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR + description: Debug MCU APB1 Freeze register + byte_offset: 8 + fieldset: APB1FZR + - name: APB2FZR + description: Debug MCU APB2 Freeze register + byte_offset: 12 + fieldset: APB2FZR fieldset/APB1FZR: description: Debug MCU APB1 Freeze register fields: - - name: TIM2 - description: TIM2 - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: TIM4 - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: TIM5 - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: TIM6 - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 - bit_offset: 5 - bit_size: 1 - - name: TIM12 - description: TIM12 - bit_offset: 6 - bit_size: 1 - - name: TIM13 - description: TIM13 - bit_offset: 7 - bit_size: 1 - - name: TIM14 - description: TIM14 - bit_offset: 8 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 - bit_offset: 9 - bit_size: 1 - - name: RTC - description: RTC - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: WWDG - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: IWDG - bit_offset: 12 - bit_size: 1 - - name: CAN3 - description: CAN3 - bit_offset: 13 - bit_size: 1 - - name: DBG_I2C1_SMBUS_TIMEOUT - description: DBG_I2C1_SMBUS_TIMEOUT - bit_offset: 21 - bit_size: 1 - - name: DBG_I2C2_SMBUS_TIMEOUT - description: DBG_I2C2_SMBUS_TIMEOUT - bit_offset: 22 - bit_size: 1 - - name: DBG_I2C3_SMBUS_TIMEOUT - description: DBG_I2C3_SMBUS_TIMEOUT - bit_offset: 23 - bit_size: 1 - - name: DBG_I2C4_SMBUS_TIMEOUT - description: DBG_I2C4SMBUS_TIMEOUT - bit_offset: 24 - bit_size: 1 - - name: CAN1 - description: CAN1 - bit_offset: 25 - bit_size: 1 - - name: CAN2 - description: CAN2 - bit_offset: 26 - bit_size: 1 + - name: TIM2 + description: TIM2 + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: TIM4 + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: TIM5 + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: TIM6 + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 + bit_offset: 5 + bit_size: 1 + - name: TIM12 + description: TIM12 + bit_offset: 6 + bit_size: 1 + - name: TIM13 + description: TIM13 + bit_offset: 7 + bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 8 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 + bit_offset: 9 + bit_size: 1 + - name: RTC + description: RTC + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: WWDG + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: IWDG + bit_offset: 12 + bit_size: 1 + - name: CAN3 + description: CAN3 + bit_offset: 13 + bit_size: 1 + - name: DBG_I2C1_SMBUS_TIMEOUT + description: DBG_I2C1_SMBUS_TIMEOUT + bit_offset: 21 + bit_size: 1 + - name: DBG_I2C2_SMBUS_TIMEOUT + description: DBG_I2C2_SMBUS_TIMEOUT + bit_offset: 22 + bit_size: 1 + - name: DBG_I2C3_SMBUS_TIMEOUT + description: DBG_I2C3_SMBUS_TIMEOUT + bit_offset: 23 + bit_size: 1 + - name: DBG_I2C4_SMBUS_TIMEOUT + description: DBG_I2C4SMBUS_TIMEOUT + bit_offset: 24 + bit_size: 1 + - name: CAN1 + description: CAN1 + bit_offset: 25 + bit_size: 1 + - name: CAN2 + description: CAN2 + bit_offset: 26 + bit_size: 1 fieldset/APB2FZR: description: Debug MCU APB2 Freeze register fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM8 - description: TIM8 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM9 - description: TIM9 counter stopped when core is halted - bit_offset: 16 - bit_size: 1 - - name: TIM10 - description: TIM10 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM11 - description: TIM11 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM8 + description: TIM8 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM9 + description: TIM9 counter stopped when core is halted + bit_offset: 16 + bit_size: 1 + - name: TIM10 + description: TIM10 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM11 + description: TIM11 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Control Register fields: - - name: DBG_SLEEP - description: DBG_SLEEP - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: DBG_STOP - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: DBG_STANDBY - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: TRACE_IOEN - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: TRACE_MODE - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: DBG_SLEEP + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: DBG_STOP + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: DBG_STANDBY + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: TRACE_IOEN + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: TRACE_MODE + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: IDCODE fields: - - name: DEV_ID - description: DEV_ID - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: REV_ID - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: DEV_ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: REV_ID + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_g0.yaml b/data/registers/dbgmcu_g0.yaml index 62b0e22..946fe6c 100644 --- a/data/registers/dbgmcu_g0.yaml +++ b/data/registers/dbgmcu_g0.yaml @@ -1,109 +1,108 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR - description: DBG APB freeze register 1 - byte_offset: 8 - fieldset: APB1FZR - - name: APB2FZR - description: DBG APB freeze register 2 - byte_offset: 12 - fieldset: APB2FZR + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR + description: DBG APB freeze register 1 + byte_offset: 8 + fieldset: APB1FZR + - name: APB2FZR + description: DBG APB freeze register 2 + byte_offset: 12 + fieldset: APB2FZR fieldset/APB1FZR: description: DBG APB freeze register 1 fields: - - name: TIM2 - description: Debug Timer 2 stopped when Core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM6 - description: Debug Timer 6 stopped when Core is halted - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 - - name: RTC - description: Debug RTC stopped when Core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Debug Window Wachdog stopped when Core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Debug Independent Wachdog stopped when Core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout mode stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: LPTIM2 - description: Clocking of LPTIMER2 counter when the core is halted - bit_offset: 30 - bit_size: 1 - - name: LPTIM1 - description: Clocking of LPTIMER1 counter when the core is halted - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: Debug Timer 2 stopped when Core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM6 + description: Debug Timer 6 stopped when Core is halted + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 + - name: RTC + description: Debug RTC stopped when Core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Debug Window Wachdog stopped when Core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Debug Independent Wachdog stopped when Core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout mode stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: LPTIM2 + description: Clocking of LPTIMER2 counter when the core is halted + bit_offset: 30 + bit_size: 1 + - name: LPTIM1 + description: Clocking of LPTIMER1 counter when the core is halted + bit_offset: 31 + bit_size: 1 fieldset/APB2FZR: description: DBG APB freeze register 2 fields: - - name: TIM1 - description: TIM1 - bit_offset: 11 - bit_size: 1 - - name: TIM14 - description: TIM14 - bit_offset: 15 - bit_size: 1 - - name: TIM15 - description: TIM15 - bit_offset: 16 - bit_size: 1 - - name: TIM16 - description: TIM16 - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 + bit_offset: 11 + bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 15 + bit_size: 1 + - name: TIM15 + description: TIM15 + bit_offset: 16 + bit_size: 1 + - name: TIM16 + description: TIM16 + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 16 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 16 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_g4.yaml b/data/registers/dbgmcu_g4.yaml index a3269a3..1d38682 100644 --- a/data/registers/dbgmcu_g4.yaml +++ b/data/registers/dbgmcu_g4.yaml @@ -1,164 +1,163 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1LFZR - description: APB Low Freeze Register 1 - byte_offset: 8 - fieldset: APB1LFZR - - name: APB1HFZR - description: APB Low Freeze Register 2 - byte_offset: 12 - fieldset: APB1HFZR - - name: APB2FZR - description: APB High Freeze Register - byte_offset: 16 - fieldset: APB2FZR + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1LFZR + description: APB Low Freeze Register 1 + byte_offset: 8 + fieldset: APB1LFZR + - name: APB1HFZR + description: APB Low Freeze Register 2 + byte_offset: 12 + fieldset: APB1HFZR + - name: APB2FZR + description: APB High Freeze Register + byte_offset: 16 + fieldset: APB2FZR fieldset/APB1HFZR: description: APB Low Freeze Register 2 fields: - - name: I2C4 - description: I2C4 - bit_offset: 1 - bit_size: 1 + - name: I2C4 + description: I2C4 + bit_offset: 1 + bit_size: 1 fieldset/APB1LFZR: description: APB Low Freeze Register 1 fields: - - name: TIM2 - description: Debug Timer 2 stopped when Core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: TIM4 counter stopped when core is halted - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: TIM5 counter stopped when core is halted - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: Debug Timer 6 stopped when Core is halted - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 - - name: RTC - description: Debug RTC stopped when Core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Debug Window Wachdog stopped when Core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Debug Independent Wachdog stopped when Core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout mode stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: I2C2 - description: I2C2 SMBUS timeout mode stopped when core is halted - bit_offset: 22 - bit_size: 1 - - name: I2C3 - description: I2C3 SMBUS timeout mode stopped when core is halted - bit_offset: 30 - bit_size: 1 - - name: LPTIMER - description: LPTIM1 counter stopped when core is halted - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: Debug Timer 2 stopped when Core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: TIM4 counter stopped when core is halted + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: TIM5 counter stopped when core is halted + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: Debug Timer 6 stopped when Core is halted + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 + - name: RTC + description: Debug RTC stopped when Core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Debug Window Wachdog stopped when Core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Debug Independent Wachdog stopped when Core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout mode stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: I2C2 + description: I2C2 SMBUS timeout mode stopped when core is halted + bit_offset: 22 + bit_size: 1 + - name: I2C3 + description: I2C3 SMBUS timeout mode stopped when core is halted + bit_offset: 30 + bit_size: 1 + - name: LPTIMER + description: LPTIM1 counter stopped when core is halted + bit_offset: 31 + bit_size: 1 fieldset/APB2FZR: description: APB High Freeze Register fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: TIM8 - description: TIM8 counter stopped when core is halted - bit_offset: 13 - bit_size: 1 - - name: TIM15 - description: TIM15 counter stopped when core is halted - bit_offset: 16 - bit_size: 1 - - name: TIM16 - description: TIM16 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 - - name: TIM20 - description: TIM20counter stopped when core is halted - bit_offset: 20 - bit_size: 1 - - name: HRTIM0 - description: HRTIM0 - bit_offset: 26 - bit_size: 1 - - name: HRTIM1 - description: HRTIM0 - bit_offset: 27 - bit_size: 1 - - name: HRTIM2 - description: HRTIM0 - bit_offset: 28 - bit_size: 1 - - name: HRTIM3 - description: HRTIM0 - bit_offset: 29 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: TIM8 + description: TIM8 counter stopped when core is halted + bit_offset: 13 + bit_size: 1 + - name: TIM15 + description: TIM15 counter stopped when core is halted + bit_offset: 16 + bit_size: 1 + - name: TIM16 + description: TIM16 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 + - name: TIM20 + description: TIM20counter stopped when core is halted + bit_offset: 20 + bit_size: 1 + - name: HRTIM0 + description: HRTIM0 + bit_offset: 26 + bit_size: 1 + - name: HRTIM1 + description: HRTIM0 + bit_offset: 27 + bit_size: 1 + - name: HRTIM2 + description: HRTIM0 + bit_offset: 28 + bit_size: 1 + - name: HRTIM3 + description: HRTIM0 + bit_offset: 29 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_SLEEP - description: Debug Sleep Mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: Trace pin assignment control - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: Trace pin assignment control - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: Debug Sleep Mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: Trace pin assignment control + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: Trace pin assignment control + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 16 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 16 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_h7.yaml b/data/registers/dbgmcu_h7.yaml index 44f5c35..7c186db 100644 --- a/data/registers/dbgmcu_h7.yaml +++ b/data/registers/dbgmcu_h7.yaml @@ -1,191 +1,190 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDC - description: Identity code - byte_offset: 0 - access: Read - fieldset: IDC - - name: CR - description: Configuration register - byte_offset: 4 - fieldset: CR - - name: APB3FZR1 - description: APB3 peripheral freeze register - byte_offset: 52 - fieldset: APB3FZR1 - - name: APB1LFZR1 - description: APB1L peripheral freeze register - byte_offset: 60 - fieldset: APB1LFZR1 - - name: APB2FZR1 - description: APB2 peripheral freeze register - byte_offset: 76 - fieldset: APB2FZR1 - - name: APB4FZR1 - description: APB4 peripheral freeze register - byte_offset: 84 - fieldset: APB4FZR1 + - name: IDC + description: Identity code + byte_offset: 0 + access: Read + fieldset: IDC + - name: CR + description: Configuration register + byte_offset: 4 + fieldset: CR + - name: APB3FZR1 + description: APB3 peripheral freeze register + byte_offset: 52 + fieldset: APB3FZR1 + - name: APB1LFZR1 + description: APB1L peripheral freeze register + byte_offset: 60 + fieldset: APB1LFZR1 + - name: APB2FZR1 + description: APB2 peripheral freeze register + byte_offset: 76 + fieldset: APB2FZR1 + - name: APB4FZR1 + description: APB4 peripheral freeze register + byte_offset: 84 + fieldset: APB4FZR1 fieldset/APB1LFZR1: description: APB1L peripheral freeze register fields: - - name: TIM2 - description: TIM2 stop in debug mode - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 stop in debug mode - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: TIM4 stop in debug mode - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: TIM5 stop in debug mode - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: TIM6 stop in debug mode - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 stop in debug mode - bit_offset: 5 - bit_size: 1 - - name: TIM12 - description: TIM12 stop in debug mode - bit_offset: 6 - bit_size: 1 - - name: TIM13 - description: TIM13 stop in debug mode - bit_offset: 7 - bit_size: 1 - - name: TIM14 - description: TIM14 stop in debug mode - bit_offset: 8 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 stop in debug mode - bit_offset: 9 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout stop in debug mode - bit_offset: 21 - bit_size: 1 - - name: I2C2 - description: I2C2 SMBUS timeout stop in debug mode - bit_offset: 22 - bit_size: 1 - - name: I2C3 - description: I2C3 SMBUS timeout stop in debug mode - bit_offset: 23 - bit_size: 1 + - name: TIM2 + description: TIM2 stop in debug mode + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 stop in debug mode + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: TIM4 stop in debug mode + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: TIM5 stop in debug mode + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: TIM6 stop in debug mode + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 stop in debug mode + bit_offset: 5 + bit_size: 1 + - name: TIM12 + description: TIM12 stop in debug mode + bit_offset: 6 + bit_size: 1 + - name: TIM13 + description: TIM13 stop in debug mode + bit_offset: 7 + bit_size: 1 + - name: TIM14 + description: TIM14 stop in debug mode + bit_offset: 8 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 stop in debug mode + bit_offset: 9 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout stop in debug mode + bit_offset: 21 + bit_size: 1 + - name: I2C2 + description: I2C2 SMBUS timeout stop in debug mode + bit_offset: 22 + bit_size: 1 + - name: I2C3 + description: I2C3 SMBUS timeout stop in debug mode + bit_offset: 23 + bit_size: 1 fieldset/APB2FZR1: description: APB2 peripheral freeze register fields: - - name: TIM1 - description: TIM1 stop in debug mode - bit_offset: 0 - bit_size: 1 - - name: TIM8 - description: TIM8 stop in debug mode - bit_offset: 1 - bit_size: 1 - - name: TIM15 - description: TIM15 stop in debug mode - bit_offset: 16 - bit_size: 1 - - name: TIM16 - description: TIM16 stop in debug mode - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 stop in debug mode - bit_offset: 18 - bit_size: 1 - - name: HRTIM - description: HRTIM stop in debug mode - bit_offset: 29 - bit_size: 1 + - name: TIM1 + description: TIM1 stop in debug mode + bit_offset: 0 + bit_size: 1 + - name: TIM8 + description: TIM8 stop in debug mode + bit_offset: 1 + bit_size: 1 + - name: TIM15 + description: TIM15 stop in debug mode + bit_offset: 16 + bit_size: 1 + - name: TIM16 + description: TIM16 stop in debug mode + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 stop in debug mode + bit_offset: 18 + bit_size: 1 + - name: HRTIM + description: HRTIM stop in debug mode + bit_offset: 29 + bit_size: 1 fieldset/APB3FZR1: description: APB3 peripheral freeze register fields: - - name: WWDG1 - description: WWDG1 stop in debug mode - bit_offset: 6 - bit_size: 1 + - name: WWDG1 + description: WWDG1 stop in debug mode + bit_offset: 6 + bit_size: 1 fieldset/APB4FZR1: description: APB4 peripheral freeze register fields: - - name: I2C4 - description: I2C4 SMBUS timeout stop in debug mode - bit_offset: 7 - bit_size: 1 - - name: LPTIM2 - description: LPTIM2 stop in debug mode - bit_offset: 9 - bit_size: 1 - - name: LPTIM3 - description: LPTIM3 stop in debug mode - bit_offset: 10 - bit_size: 1 - - name: LPTIM4 - description: LPTIM4 stop in debug mode - bit_offset: 11 - bit_size: 1 - - name: LPTIM5 - description: LPTIM5 stop in debug mode - bit_offset: 12 - bit_size: 1 - - name: RTC - description: RTC stop in debug mode - bit_offset: 16 - bit_size: 1 - - name: IWDG1 - description: Independent watchdog for D1 stop in debug mode - bit_offset: 18 - bit_size: 1 + - name: I2C4 + description: I2C4 SMBUS timeout stop in debug mode + bit_offset: 7 + bit_size: 1 + - name: LPTIM2 + description: LPTIM2 stop in debug mode + bit_offset: 9 + bit_size: 1 + - name: LPTIM3 + description: LPTIM3 stop in debug mode + bit_offset: 10 + bit_size: 1 + - name: LPTIM4 + description: LPTIM4 stop in debug mode + bit_offset: 11 + bit_size: 1 + - name: LPTIM5 + description: LPTIM5 stop in debug mode + bit_offset: 12 + bit_size: 1 + - name: RTC + description: RTC stop in debug mode + bit_offset: 16 + bit_size: 1 + - name: IWDG1 + description: Independent watchdog for D1 stop in debug mode + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Configuration register fields: - - name: DBGSLEEP_D1 - description: Allow debug in D1 Sleep mode - bit_offset: 0 - bit_size: 1 - - name: DBGSTOP_D1 - description: Allow debug in D1 Stop mode - bit_offset: 1 - bit_size: 1 - - name: DBGSTBY_D1 - description: Allow debug in D1 Standby mode - bit_offset: 2 - bit_size: 1 - - name: TRACECLKEN - description: Trace clock enable enable - bit_offset: 20 - bit_size: 1 - - name: D1DBGCKEN - description: D1 debug clock enable enable - bit_offset: 21 - bit_size: 1 - - name: D3DBGCKEN - description: D3 debug clock enable enable - bit_offset: 22 - bit_size: 1 - - name: TRGOEN - description: External trigger output enable - bit_offset: 28 - bit_size: 1 + - name: DBGSLEEP_D1 + description: Allow debug in D1 Sleep mode + bit_offset: 0 + bit_size: 1 + - name: DBGSTOP_D1 + description: Allow debug in D1 Stop mode + bit_offset: 1 + bit_size: 1 + - name: DBGSTBY_D1 + description: Allow debug in D1 Standby mode + bit_offset: 2 + bit_size: 1 + - name: TRACECLKEN + description: Trace clock enable enable + bit_offset: 20 + bit_size: 1 + - name: D1DBGCKEN + description: D1 debug clock enable enable + bit_offset: 21 + bit_size: 1 + - name: D3DBGCKEN + description: D3 debug clock enable enable + bit_offset: 22 + bit_size: 1 + - name: TRGOEN + description: External trigger output enable + bit_offset: 28 + bit_size: 1 fieldset/IDC: description: Identity code fields: - - name: DEV_ID - description: Device ID - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision ID - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision ID + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_l0.yaml b/data/registers/dbgmcu_l0.yaml index 8db317c..0be30b3 100644 --- a/data/registers/dbgmcu_l0.yaml +++ b/data/registers/dbgmcu_l0.yaml @@ -1,93 +1,92 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR - description: APB Low Freeze Register - byte_offset: 8 - fieldset: APB1FZR - - name: APB2FZR - description: APB High Freeze Register - byte_offset: 12 - fieldset: APB2FZR + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR + description: APB Low Freeze Register + byte_offset: 8 + fieldset: APB1FZR + - name: APB2FZR + description: APB High Freeze Register + byte_offset: 12 + fieldset: APB2FZR fieldset/APB1FZR: description: APB Low Freeze Register fields: - - name: TIM2 - description: Debug Timer 2 stopped when Core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM6 - description: Debug Timer 6 stopped when Core is halted - bit_offset: 4 - bit_size: 1 - - name: RTC - description: Debug RTC stopped when Core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Debug Window Wachdog stopped when Core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Debug Independent Wachdog stopped when Core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout mode stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: I2C2 - description: I2C2 SMBUS timeout mode stopped when core is halted - bit_offset: 22 - bit_size: 1 - - name: LPTIM - description: LPTIM1 counter stopped when core is halted - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: Debug Timer 2 stopped when Core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM6 + description: Debug Timer 6 stopped when Core is halted + bit_offset: 4 + bit_size: 1 + - name: RTC + description: Debug RTC stopped when Core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Debug Window Wachdog stopped when Core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Debug Independent Wachdog stopped when Core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout mode stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: I2C2 + description: I2C2 SMBUS timeout mode stopped when core is halted + bit_offset: 22 + bit_size: 1 + - name: LPTIM + description: LPTIM1 counter stopped when core is halted + bit_offset: 31 + bit_size: 1 fieldset/APB2FZR: description: APB High Freeze Register fields: - - name: TIM21 - description: Debug Timer 21 stopped when Core is halted - bit_offset: 2 - bit_size: 1 - - name: TIM22 - description: Debug Timer 22 stopped when Core is halted - bit_offset: 6 - bit_size: 1 + - name: TIM21 + description: Debug Timer 21 stopped when Core is halted + bit_offset: 2 + bit_size: 1 + - name: TIM22 + description: Debug Timer 22 stopped when Core is halted + bit_offset: 6 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_SLEEP - description: Debug Sleep Mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 + - name: DBG_SLEEP + description: Debug Sleep Mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_l1.yaml b/data/registers/dbgmcu_l1.yaml index 9615467..bea7c30 100644 --- a/data/registers/dbgmcu_l1.yaml +++ b/data/registers/dbgmcu_l1.yaml @@ -1,117 +1,116 @@ ---- block/DBGMCU: description: debug support items: - - name: IDCODE - description: DBGMCU_IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU configuration register - byte_offset: 4 - fieldset: CR - - name: APB1_FZ - description: Debug MCU APB1 freeze register1 - byte_offset: 8 - fieldset: APB1_FZ - - name: APB2_FZ - description: Debug MCU APB1 freeze register 2 - byte_offset: 12 - fieldset: APB2_FZ + - name: IDCODE + description: DBGMCU_IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU configuration register + byte_offset: 4 + fieldset: CR + - name: APB1_FZ + description: Debug MCU APB1 freeze register1 + byte_offset: 8 + fieldset: APB1_FZ + - name: APB2_FZ + description: Debug MCU APB1 freeze register 2 + byte_offset: 12 + fieldset: APB2_FZ fieldset/APB1_FZ: description: Debug MCU APB1 freeze register1 fields: - - name: DBG_TIM2_STOP - description: TIM2 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: DBG_TIM3_STOP - description: TIM3 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: DBG_TIM4_STOP - description: TIM4 counter stopped when core is halted - bit_offset: 2 - bit_size: 1 - - name: DBG_TIM5_STOP - description: TIM5 counter stopped when core is halted - bit_offset: 3 - bit_size: 1 - - name: DBG_TIM6_STOP - description: TIM6 counter stopped when core is halted - bit_offset: 4 - bit_size: 1 - - name: DBG_TIM7_STOP - description: TIM7 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 - - name: DBG_RTC_STOP - description: Debug RTC stopped when core is halted - bit_offset: 10 - bit_size: 1 - - name: DBG_WWDG_STOP - description: Debug window watchdog stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: DBG_IWDG_STOP - description: Debug independent watchdog stopped when core is halted - bit_offset: 12 - bit_size: 1 - - name: DBG_I2C1_SMBUS_TIMEOUT - description: SMBUS timeout mode stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: DBG_I2C2_SMBUS_TIMEOUT - description: SMBUS timeout mode stopped when core is halted - bit_offset: 22 - bit_size: 1 + - name: DBG_TIM2_STOP + description: TIM2 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: DBG_TIM3_STOP + description: TIM3 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: DBG_TIM4_STOP + description: TIM4 counter stopped when core is halted + bit_offset: 2 + bit_size: 1 + - name: DBG_TIM5_STOP + description: TIM5 counter stopped when core is halted + bit_offset: 3 + bit_size: 1 + - name: DBG_TIM6_STOP + description: TIM6 counter stopped when core is halted + bit_offset: 4 + bit_size: 1 + - name: DBG_TIM7_STOP + description: TIM7 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 + - name: DBG_RTC_STOP + description: Debug RTC stopped when core is halted + bit_offset: 10 + bit_size: 1 + - name: DBG_WWDG_STOP + description: Debug window watchdog stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: DBG_IWDG_STOP + description: Debug independent watchdog stopped when core is halted + bit_offset: 12 + bit_size: 1 + - name: DBG_I2C1_SMBUS_TIMEOUT + description: SMBUS timeout mode stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: DBG_I2C2_SMBUS_TIMEOUT + description: SMBUS timeout mode stopped when core is halted + bit_offset: 22 + bit_size: 1 fieldset/APB2_FZ: description: Debug MCU APB1 freeze register 2 fields: - - name: DBG_TIM9_STOP - description: TIM counter stopped when core is halted - bit_offset: 2 - bit_size: 1 - - name: DBG_TIM10_STOP - description: TIM counter stopped when core is halted - bit_offset: 3 - bit_size: 1 - - name: DBG_TIM11_STOP - description: TIM counter stopped when core is halted - bit_offset: 4 - bit_size: 1 + - name: DBG_TIM9_STOP + description: TIM counter stopped when core is halted + bit_offset: 2 + bit_size: 1 + - name: DBG_TIM10_STOP + description: TIM counter stopped when core is halted + bit_offset: 3 + bit_size: 1 + - name: DBG_TIM11_STOP + description: TIM counter stopped when core is halted + bit_offset: 4 + bit_size: 1 fieldset/CR: description: Debug MCU configuration register fields: - - name: DBG_SLEEP - description: Debug Sleep mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Debug Stop mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby mode - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: Trace pin assignment control - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: Trace pin assignment control - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: Debug Sleep mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Debug Stop mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby mode + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: Trace pin assignment control + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: Trace pin assignment control + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: DBGMCU_IDCODE fields: - - name: DEV_ID - description: Device identifier - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision identifie - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device identifier + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision identifie + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_l4.yaml b/data/registers/dbgmcu_l4.yaml index 9d28027..ba67955 100644 --- a/data/registers/dbgmcu_l4.yaml +++ b/data/registers/dbgmcu_l4.yaml @@ -1,148 +1,147 @@ ---- block/DBGMCU: description: MCU debug component items: - - name: IDCODE - description: DBGMCU_IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU configuration register - byte_offset: 4 - fieldset: CR - - name: APB1FZR1 - description: Debug MCU APB1 freeze register1 - byte_offset: 8 - fieldset: APB1FZR1 - - name: APB1FZR2 - description: Debug MCU APB1 freeze register 2 - byte_offset: 12 - fieldset: APB1FZR2 - - name: APB2FZR - description: Debug MCU APB2 freeze register - byte_offset: 16 - fieldset: APB2FZR + - name: IDCODE + description: DBGMCU_IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU configuration register + byte_offset: 4 + fieldset: CR + - name: APB1FZR1 + description: Debug MCU APB1 freeze register1 + byte_offset: 8 + fieldset: APB1FZR1 + - name: APB1FZR2 + description: Debug MCU APB1 freeze register 2 + byte_offset: 12 + fieldset: APB1FZR2 + - name: APB2FZR + description: Debug MCU APB2 freeze register + byte_offset: 16 + fieldset: APB2FZR fieldset/APB1FZR1: description: Debug MCU APB1 freeze register1 fields: - - name: TIM2 - description: TIM2 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: TIM3 - description: TIM3 counter stopped when core is halted - bit_offset: 1 - bit_size: 1 - - name: TIM4 - description: TIM4 counter stopped when core is halted - bit_offset: 2 - bit_size: 1 - - name: TIM5 - description: TIM5 counter stopped when core is halted - bit_offset: 3 - bit_size: 1 - - name: TIM6 - description: TIM6 counter stopped when core is halted - bit_offset: 4 - bit_size: 1 - - name: TIM7 - description: TIM7 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 - - name: RTC - description: RTC counter stopped when core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: Window watchdog counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: Independent watchdog counter stopped when core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout counter stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: I2C2 - description: I2C2 SMBUS timeout counter stopped when core is halted - bit_offset: 22 - bit_size: 1 - - name: I2C3 - description: I2C3 SMBUS timeout counter stopped when core is halted - bit_offset: 23 - bit_size: 1 - - name: CAN - description: bxCAN stopped when core is halted - bit_offset: 25 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 counter stopped when core is halted - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: TIM2 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: TIM3 + description: TIM3 counter stopped when core is halted + bit_offset: 1 + bit_size: 1 + - name: TIM4 + description: TIM4 counter stopped when core is halted + bit_offset: 2 + bit_size: 1 + - name: TIM5 + description: TIM5 counter stopped when core is halted + bit_offset: 3 + bit_size: 1 + - name: TIM6 + description: TIM6 counter stopped when core is halted + bit_offset: 4 + bit_size: 1 + - name: TIM7 + description: TIM7 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 + - name: RTC + description: RTC counter stopped when core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: Window watchdog counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: Independent watchdog counter stopped when core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout counter stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: I2C2 + description: I2C2 SMBUS timeout counter stopped when core is halted + bit_offset: 22 + bit_size: 1 + - name: I2C3 + description: I2C3 SMBUS timeout counter stopped when core is halted + bit_offset: 23 + bit_size: 1 + - name: CAN + description: bxCAN stopped when core is halted + bit_offset: 25 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 counter stopped when core is halted + bit_offset: 31 + bit_size: 1 fieldset/APB1FZR2: description: Debug MCU APB1 freeze register 2 fields: - - name: LPTIM2 - description: LPTIM2 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 + - name: LPTIM2 + description: LPTIM2 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 fieldset/APB2FZR: description: Debug MCU APB2 freeze register fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: TIM8 - description: TIM8 counter stopped when core is halted - bit_offset: 13 - bit_size: 1 - - name: TIM15 - description: TIM15 counter stopped when core is halted - bit_offset: 16 - bit_size: 1 - - name: TIM16 - description: TIM16 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: TIM8 + description: TIM8 counter stopped when core is halted + bit_offset: 13 + bit_size: 1 + - name: TIM15 + description: TIM15 counter stopped when core is halted + bit_offset: 16 + bit_size: 1 + - name: TIM16 + description: TIM16 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Debug MCU configuration register fields: - - name: DBG_SLEEP - description: Debug Sleep mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Debug Stop mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby mode - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: Trace pin assignment control - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: Trace pin assignment control - bit_offset: 6 - bit_size: 2 + - name: DBG_SLEEP + description: Debug Sleep mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Debug Stop mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby mode + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: Trace pin assignment control + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: Trace pin assignment control + bit_offset: 6 + bit_size: 2 fieldset/IDCODE: description: DBGMCU_IDCODE fields: - - name: DEV_ID - description: Device identifier - bit_offset: 0 - bit_size: 16 - - name: REV_ID - description: Revision identifie - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device identifier + bit_offset: 0 + bit_size: 16 + - name: REV_ID + description: Revision identifie + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_u5.yaml b/data/registers/dbgmcu_u5.yaml index 885dccb..8a4048a 100644 --- a/data/registers/dbgmcu_u5.yaml +++ b/data/registers/dbgmcu_u5.yaml @@ -1,429 +1,428 @@ ---- block/DBGMCU: description: MCU debug component items: - - name: IDCODE - description: DBGMCU_IDCODE - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: "Debug MCU configuration\r register" - byte_offset: 4 - fieldset: CR - - name: APB1LFZR - description: "Debug MCU APB1L peripheral freeze\r register" - byte_offset: 8 - fieldset: APB1LFZR - - name: APB1HFZR - description: Debug MCU APB1H peripheral freeze register - byte_offset: 12 - fieldset: APB1HFZR - - name: APB2FZR - description: Debug MCU APB2 peripheral freeze register - byte_offset: 16 - fieldset: APB2FZR - - name: APB3FZR - description: Debug MCU APB3 peripheral freeze register - byte_offset: 20 - fieldset: APB3FZR - - name: AHB1FZR - description: Debug MCU AHB1 peripheral freeze register - byte_offset: 32 - fieldset: AHB1FZR - - name: AHB3FZR - description: Debug MCU AHB3 peripheral freeze register - byte_offset: 40 - fieldset: AHB3FZR - - name: DBGMCU_SR - description: DBGMCU status register - byte_offset: 252 - access: Read - fieldset: DBGMCU_SR - - name: DBGMCU_DBG_AUTH_HOST - description: DBGMCU debug host authentication register - byte_offset: 256 - access: Read - fieldset: DBGMCU_DBG_AUTH_HOST - - name: DBGMCU_DBG_AUTH_DEVICE - description: DBGMCU debug device authentication register - byte_offset: 260 - access: Read - fieldset: DBGMCU_DBG_AUTH_DEVICE - - name: PIDR4 - description: Debug MCU CoreSight peripheral identity register 4 - byte_offset: 4048 - access: Read - fieldset: PIDR4 - - name: PIDR0 - description: Debug MCU CoreSight peripheral identity register 0 - byte_offset: 4064 - access: Read - fieldset: PIDR0 - - name: PIDR1 - description: Debug MCU CoreSight peripheral identity register 1 - byte_offset: 4068 - access: Read - fieldset: PIDR1 - - name: PIDR2 - description: Debug MCU CoreSight peripheral identity register 2 - byte_offset: 4072 - access: Read - fieldset: PIDR2 - - name: PIDR3 - description: Debug MCU CoreSight peripheral identity register 3 - byte_offset: 4076 - access: Read - fieldset: PIDR3 - - name: CIDR0 - description: Debug MCU CoreSight component identity register 0 - byte_offset: 4080 - access: Read - fieldset: CIDR0 - - name: CIDR1 - description: Debug MCU CoreSight component identity register 1 - byte_offset: 4084 - access: Read - fieldset: CIDR1 - - name: CIDR2 - description: Debug MCU CoreSight component identity register 2 - byte_offset: 4088 - access: Read - fieldset: CIDR2 - - name: CIDR3 - description: Debug MCU CoreSight component identity register 3 - byte_offset: 4092 - access: Read - fieldset: CIDR3 + - name: IDCODE + description: DBGMCU_IDCODE + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: "Debug MCU configuration\r register" + byte_offset: 4 + fieldset: CR + - name: APB1LFZR + description: "Debug MCU APB1L peripheral freeze\r register" + byte_offset: 8 + fieldset: APB1LFZR + - name: APB1HFZR + description: Debug MCU APB1H peripheral freeze register + byte_offset: 12 + fieldset: APB1HFZR + - name: APB2FZR + description: Debug MCU APB2 peripheral freeze register + byte_offset: 16 + fieldset: APB2FZR + - name: APB3FZR + description: Debug MCU APB3 peripheral freeze register + byte_offset: 20 + fieldset: APB3FZR + - name: AHB1FZR + description: Debug MCU AHB1 peripheral freeze register + byte_offset: 32 + fieldset: AHB1FZR + - name: AHB3FZR + description: Debug MCU AHB3 peripheral freeze register + byte_offset: 40 + fieldset: AHB3FZR + - name: DBGMCU_SR + description: DBGMCU status register + byte_offset: 252 + access: Read + fieldset: DBGMCU_SR + - name: DBGMCU_DBG_AUTH_HOST + description: DBGMCU debug host authentication register + byte_offset: 256 + access: Read + fieldset: DBGMCU_DBG_AUTH_HOST + - name: DBGMCU_DBG_AUTH_DEVICE + description: DBGMCU debug device authentication register + byte_offset: 260 + access: Read + fieldset: DBGMCU_DBG_AUTH_DEVICE + - name: PIDR4 + description: Debug MCU CoreSight peripheral identity register 4 + byte_offset: 4048 + access: Read + fieldset: PIDR4 + - name: PIDR0 + description: Debug MCU CoreSight peripheral identity register 0 + byte_offset: 4064 + access: Read + fieldset: PIDR0 + - name: PIDR1 + description: Debug MCU CoreSight peripheral identity register 1 + byte_offset: 4068 + access: Read + fieldset: PIDR1 + - name: PIDR2 + description: Debug MCU CoreSight peripheral identity register 2 + byte_offset: 4072 + access: Read + fieldset: PIDR2 + - name: PIDR3 + description: Debug MCU CoreSight peripheral identity register 3 + byte_offset: 4076 + access: Read + fieldset: PIDR3 + - name: CIDR0 + description: Debug MCU CoreSight component identity register 0 + byte_offset: 4080 + access: Read + fieldset: CIDR0 + - name: CIDR1 + description: Debug MCU CoreSight component identity register 1 + byte_offset: 4084 + access: Read + fieldset: CIDR1 + - name: CIDR2 + description: Debug MCU CoreSight component identity register 2 + byte_offset: 4088 + access: Read + fieldset: CIDR2 + - name: CIDR3 + description: Debug MCU CoreSight component identity register 3 + byte_offset: 4092 + access: Read + fieldset: CIDR3 fieldset/AHB1FZR: description: Debug MCU AHB1 peripheral freeze register fields: - - name: DBG_GPDMA0_STOP - description: GPDMA channel 0 stop in debug - bit_offset: 0 - bit_size: 1 - - name: DBG_GPDMA1_STOP - description: GPDMA channel 1 stop in debug - bit_offset: 1 - bit_size: 1 - - name: DBG_GPDMA2_STOP - description: GPDMA channel 2 stop in debug - bit_offset: 2 - bit_size: 1 - - name: DBG_GPDMA3_STOP - description: GPDMA channel 3 stop in debug - bit_offset: 3 - bit_size: 1 - - name: DBG_GPDMA4_STOP - description: GPDMA channel 4 stop in debug - bit_offset: 4 - bit_size: 1 - - name: DBG_GPDMA5_STOP - description: GPDMA channel 5 stop in debug - bit_offset: 5 - bit_size: 1 - - name: DBG_GPDMA6_STOP - description: GPDMA channel 6 stop in debug - bit_offset: 6 - bit_size: 1 - - name: DBG_GPDMA7_STOP - description: GPDMA channel 7 stop in debug - bit_offset: 7 - bit_size: 1 - - name: DBG_GPDMA8_STOP - description: GPDMA channel 8 stop in debug - bit_offset: 8 - bit_size: 1 - - name: DBG_GPDMA9_STOP - description: GPDMA channel 9 stop in debug - bit_offset: 9 - bit_size: 1 - - name: DBG_GPDMA10_STOP - description: GPDMA channel 10 stop in debug - bit_offset: 10 - bit_size: 1 - - name: DBG_GPDMA11_STOP - description: GPDMA channel 11 stop in debug - bit_offset: 11 - bit_size: 1 - - name: DBG_GPDMA12_STOP - description: GPDMA channel 12 stop in debug - bit_offset: 12 - bit_size: 1 - - name: DBG_GPDMA13_STOP - description: GPDMA channel 13 stop in debug - bit_offset: 13 - bit_size: 1 - - name: DBG_GPDMA14_STOP - description: GPDMA channel 14 stop in debug - bit_offset: 14 - bit_size: 1 - - name: DBG_GPDMA15_STOP - description: GPDMA channel 15 stop in debug - bit_offset: 15 - bit_size: 1 + - name: DBG_GPDMA0_STOP + description: GPDMA channel 0 stop in debug + bit_offset: 0 + bit_size: 1 + - name: DBG_GPDMA1_STOP + description: GPDMA channel 1 stop in debug + bit_offset: 1 + bit_size: 1 + - name: DBG_GPDMA2_STOP + description: GPDMA channel 2 stop in debug + bit_offset: 2 + bit_size: 1 + - name: DBG_GPDMA3_STOP + description: GPDMA channel 3 stop in debug + bit_offset: 3 + bit_size: 1 + - name: DBG_GPDMA4_STOP + description: GPDMA channel 4 stop in debug + bit_offset: 4 + bit_size: 1 + - name: DBG_GPDMA5_STOP + description: GPDMA channel 5 stop in debug + bit_offset: 5 + bit_size: 1 + - name: DBG_GPDMA6_STOP + description: GPDMA channel 6 stop in debug + bit_offset: 6 + bit_size: 1 + - name: DBG_GPDMA7_STOP + description: GPDMA channel 7 stop in debug + bit_offset: 7 + bit_size: 1 + - name: DBG_GPDMA8_STOP + description: GPDMA channel 8 stop in debug + bit_offset: 8 + bit_size: 1 + - name: DBG_GPDMA9_STOP + description: GPDMA channel 9 stop in debug + bit_offset: 9 + bit_size: 1 + - name: DBG_GPDMA10_STOP + description: GPDMA channel 10 stop in debug + bit_offset: 10 + bit_size: 1 + - name: DBG_GPDMA11_STOP + description: GPDMA channel 11 stop in debug + bit_offset: 11 + bit_size: 1 + - name: DBG_GPDMA12_STOP + description: GPDMA channel 12 stop in debug + bit_offset: 12 + bit_size: 1 + - name: DBG_GPDMA13_STOP + description: GPDMA channel 13 stop in debug + bit_offset: 13 + bit_size: 1 + - name: DBG_GPDMA14_STOP + description: GPDMA channel 14 stop in debug + bit_offset: 14 + bit_size: 1 + - name: DBG_GPDMA15_STOP + description: GPDMA channel 15 stop in debug + bit_offset: 15 + bit_size: 1 fieldset/AHB3FZR: description: Debug MCU AHB3 peripheral freeze register fields: - - name: DBG_LPDMA0_STOP - description: LPDMA channel 0 stop in debug - bit_offset: 0 - bit_size: 1 - - name: DBG_LPDMA1_STOP - description: LPDMA channel 1 stop in debug - bit_offset: 1 - bit_size: 1 - - name: DBG_LPDMA2_STOP - description: LPDMA channel 2 stop in debug - bit_offset: 2 - bit_size: 1 - - name: DBG_LPDMA3_STOP - description: LPDMA channel 3 stop in debug - bit_offset: 3 - bit_size: 1 + - name: DBG_LPDMA0_STOP + description: LPDMA channel 0 stop in debug + bit_offset: 0 + bit_size: 1 + - name: DBG_LPDMA1_STOP + description: LPDMA channel 1 stop in debug + bit_offset: 1 + bit_size: 1 + - name: DBG_LPDMA2_STOP + description: LPDMA channel 2 stop in debug + bit_offset: 2 + bit_size: 1 + - name: DBG_LPDMA3_STOP + description: LPDMA channel 3 stop in debug + bit_offset: 3 + bit_size: 1 fieldset/APB1HFZR: description: Debug MCU APB1H peripheral freeze register fields: - - name: DBG_I2C4_STOP - description: I2C4 stop in debug - bit_offset: 1 - bit_size: 1 - - name: DBG_LPTIM2_STOP - description: LPTIM2 stop in debug - bit_offset: 5 - bit_size: 1 + - name: DBG_I2C4_STOP + description: I2C4 stop in debug + bit_offset: 1 + bit_size: 1 + - name: DBG_LPTIM2_STOP + description: LPTIM2 stop in debug + bit_offset: 5 + bit_size: 1 fieldset/APB1LFZR: description: "Debug MCU APB1L peripheral freeze\r register" fields: - - name: DBG_TIM2_STOP - description: TIM2 stop in debug - bit_offset: 0 - bit_size: 1 - - name: DBG_TIM3_STOP - description: TIM3 stop in debug - bit_offset: 1 - bit_size: 1 - - name: DBG_TIM4_STOP - description: TIM4 stop in debug - bit_offset: 2 - bit_size: 1 - - name: DBG_TIM5_STOP - description: TIM5 stop in debug - bit_offset: 3 - bit_size: 1 - - name: DBG_TIM6_STOP - description: TIM6 stop in debug - bit_offset: 4 - bit_size: 1 - - name: DBG_TIM7_STOP - description: TIM7 stop in debug - bit_offset: 5 - bit_size: 1 - - name: DBG_WWDG_STOP - description: Window watchdog counter stop in debug - bit_offset: 11 - bit_size: 1 - - name: DBG_IWDG_STOP - description: Independent watchdog counter stop in debug - bit_offset: 12 - bit_size: 1 - - name: DBG_I2C1_STOP - description: I2C1 SMBUS timeout stop in debug - bit_offset: 21 - bit_size: 1 - - name: DBG_I2C2_STOP - description: I2C2 SMBUS timeout stop in debug - bit_offset: 22 - bit_size: 1 + - name: DBG_TIM2_STOP + description: TIM2 stop in debug + bit_offset: 0 + bit_size: 1 + - name: DBG_TIM3_STOP + description: TIM3 stop in debug + bit_offset: 1 + bit_size: 1 + - name: DBG_TIM4_STOP + description: TIM4 stop in debug + bit_offset: 2 + bit_size: 1 + - name: DBG_TIM5_STOP + description: TIM5 stop in debug + bit_offset: 3 + bit_size: 1 + - name: DBG_TIM6_STOP + description: TIM6 stop in debug + bit_offset: 4 + bit_size: 1 + - name: DBG_TIM7_STOP + description: TIM7 stop in debug + bit_offset: 5 + bit_size: 1 + - name: DBG_WWDG_STOP + description: Window watchdog counter stop in debug + bit_offset: 11 + bit_size: 1 + - name: DBG_IWDG_STOP + description: Independent watchdog counter stop in debug + bit_offset: 12 + bit_size: 1 + - name: DBG_I2C1_STOP + description: I2C1 SMBUS timeout stop in debug + bit_offset: 21 + bit_size: 1 + - name: DBG_I2C2_STOP + description: I2C2 SMBUS timeout stop in debug + bit_offset: 22 + bit_size: 1 fieldset/APB2FZR: description: Debug MCU APB2 peripheral freeze register fields: - - name: DBG_TIM1_STOP - description: "TIM1 counter stopped when core is\r halted" - bit_offset: 11 - bit_size: 1 - - name: DBG_TIM8_STOP - description: TIM8 stop in debug - bit_offset: 13 - bit_size: 1 - - name: DBG_TIM15_STOP - description: "TIM15 counter stopped when core is\r halted" - bit_offset: 16 - bit_size: 1 - - name: DBG_TIM16_STOP - description: "TIM16 counter stopped when core is\r halted" - bit_offset: 17 - bit_size: 1 - - name: DBG_TIM17_STOP - description: DBG_TIM17_STOP - bit_offset: 18 - bit_size: 1 + - name: DBG_TIM1_STOP + description: "TIM1 counter stopped when core is\r halted" + bit_offset: 11 + bit_size: 1 + - name: DBG_TIM8_STOP + description: TIM8 stop in debug + bit_offset: 13 + bit_size: 1 + - name: DBG_TIM15_STOP + description: "TIM15 counter stopped when core is\r halted" + bit_offset: 16 + bit_size: 1 + - name: DBG_TIM16_STOP + description: "TIM16 counter stopped when core is\r halted" + bit_offset: 17 + bit_size: 1 + - name: DBG_TIM17_STOP + description: DBG_TIM17_STOP + bit_offset: 18 + bit_size: 1 fieldset/APB3FZR: description: Debug MCU APB3 peripheral freeze register fields: - - name: DBG_I2C3_STOP - description: I2C3 stop in debug - bit_offset: 10 - bit_size: 1 - - name: DBG_LPTIM1_STOP - description: LPTIM1 stop in debug - bit_offset: 17 - bit_size: 1 - - name: DBG_LPTIM3_STOP - description: LPTIM3 stop in debug - bit_offset: 18 - bit_size: 1 - - name: DBG_LPTIM4_STOP - description: LPTIM4 stop in debug - bit_offset: 19 - bit_size: 1 - - name: DBG_RTC_STOP - description: RTC stop in debug - bit_offset: 30 - bit_size: 1 + - name: DBG_I2C3_STOP + description: I2C3 stop in debug + bit_offset: 10 + bit_size: 1 + - name: DBG_LPTIM1_STOP + description: LPTIM1 stop in debug + bit_offset: 17 + bit_size: 1 + - name: DBG_LPTIM3_STOP + description: LPTIM3 stop in debug + bit_offset: 18 + bit_size: 1 + - name: DBG_LPTIM4_STOP + description: LPTIM4 stop in debug + bit_offset: 19 + bit_size: 1 + - name: DBG_RTC_STOP + description: RTC stop in debug + bit_offset: 30 + bit_size: 1 fieldset/CIDR0: description: Debug MCU CoreSight component identity register 0 fields: - - name: PREAMBLE - description: "component identification bits [7:0]" - bit_offset: 0 - bit_size: 8 + - name: PREAMBLE + description: component identification bits [7:0] + bit_offset: 0 + bit_size: 8 fieldset/CIDR1: description: Debug MCU CoreSight component identity register 1 fields: - - name: PREAMBLE - description: "component identification bits [11:8]" - bit_offset: 0 - bit_size: 4 - - name: CLASS - description: "component identification bits [15:12] - component class" - bit_offset: 4 - bit_size: 4 + - name: PREAMBLE + description: component identification bits [11:8] + bit_offset: 0 + bit_size: 4 + - name: CLASS + description: component identification bits [15:12] - component class + bit_offset: 4 + bit_size: 4 fieldset/CIDR2: description: Debug MCU CoreSight component identity register 2 fields: - - name: PREAMBLE - description: "component identification bits [23:16]" - bit_offset: 0 - bit_size: 8 + - name: PREAMBLE + description: component identification bits [23:16] + bit_offset: 0 + bit_size: 8 fieldset/CIDR3: description: Debug MCU CoreSight component identity register 3 fields: - - name: PREAMBLE - description: "component identification bits [31:24]" - bit_offset: 0 - bit_size: 8 + - name: PREAMBLE + description: component identification bits [31:24] + bit_offset: 0 + bit_size: 8 fieldset/CR: description: "Debug MCU configuration\r register" fields: - - name: DBG_STOP - description: Debug Stop mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby mode - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: "Trace pin assignment\r control" - bit_offset: 4 - bit_size: 1 - - name: TRACE_EN - description: "trace port and clock\r enable" - bit_offset: 5 - bit_size: 1 - - name: TRACE_MODE - description: "Trace pin assignment\r control" - bit_offset: 6 - bit_size: 2 + - name: DBG_STOP + description: Debug Stop mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby mode + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: "Trace pin assignment\r control" + bit_offset: 4 + bit_size: 1 + - name: TRACE_EN + description: "trace port and clock\r enable" + bit_offset: 5 + bit_size: 1 + - name: TRACE_MODE + description: "Trace pin assignment\r control" + bit_offset: 6 + bit_size: 2 fieldset/DBGMCU_DBG_AUTH_DEVICE: description: DBGMCU debug device authentication register fields: - - name: AUTH_ID - description: "Device specific ID\r \tDevice specific ID used for RDP regression." - bit_offset: 0 - bit_size: 32 + - name: AUTH_ID + description: "Device specific ID\r \tDevice specific ID used for RDP regression." + bit_offset: 0 + bit_size: 32 fieldset/DBGMCU_DBG_AUTH_HOST: description: DBGMCU debug host authentication register fields: - - name: AUTH_KEY - description: "Device authentication key\r \tThe device specific 64-bit authentication key (OEM key) must be written to this register (in two successive 32-bit writes, least significant word first) to permit RDP regression. Writing a wrong key locks access to the device and prevent code execution from the Flash memory." - bit_offset: 0 - bit_size: 32 + - name: AUTH_KEY + description: "Device authentication key\r \tThe device specific 64-bit authentication key (OEM key) must be written to this register (in two successive 32-bit writes, least significant word first) to permit RDP regression. Writing a wrong key locks access to the device and prevent code execution from the Flash memory." + bit_offset: 0 + bit_size: 32 fieldset/DBGMCU_SR: description: DBGMCU status register fields: - - name: AP_PRESENT - description: "Bit n identifies whether access port AP n is present in device\r \tBit n = 0: APn absent\r \tBit n = 1: APn present" - bit_offset: 0 - bit_size: 8 - - name: AP_LOCKED - description: "DECLARATION TO BE CONFIRMED by PRODUCT OWNER! Bit n identifies whether access port AP n is open (can be accessed via the debug port) or locked (debug access to the AP is blocked)\r \tBit n = 0: APn locked\r \tBit n = 1: APn enabled" - bit_offset: 8 - bit_size: 8 + - name: AP_PRESENT + description: "Bit n identifies whether access port AP n is present in device\r \tBit n = 0: APn absent\r \tBit n = 1: APn present" + bit_offset: 0 + bit_size: 8 + - name: AP_LOCKED + description: "DECLARATION TO BE CONFIRMED by PRODUCT OWNER! Bit n identifies whether access port AP n is open (can be accessed via the debug port) or locked (debug access to the AP is blocked)\r \tBit n = 0: APn locked\r \tBit n = 1: APn enabled" + bit_offset: 8 + bit_size: 8 fieldset/IDCODE: description: DBGMCU_IDCODE fields: - - name: DEV_ID - description: Device dentification - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device dentification + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision + bit_offset: 16 + bit_size: 16 fieldset/PIDR0: description: Debug MCU CoreSight peripheral identity register 0 fields: - - name: PARTNUM - description: "part number bits [7:0]" - bit_offset: 0 - bit_size: 8 + - name: PARTNUM + description: part number bits [7:0] + bit_offset: 0 + bit_size: 8 fieldset/PIDR1: description: Debug MCU CoreSight peripheral identity register 1 fields: - - name: PARTNUM - description: "part number bits [11:8]" - bit_offset: 0 - bit_size: 4 - - name: JEP106ID - description: "JEP106 identity code bits [3:0]" - bit_offset: 4 - bit_size: 4 + - name: PARTNUM + description: part number bits [11:8] + bit_offset: 0 + bit_size: 4 + - name: JEP106ID + description: JEP106 identity code bits [3:0] + bit_offset: 4 + bit_size: 4 fieldset/PIDR2: description: Debug MCU CoreSight peripheral identity register 2 fields: - - name: JEP106ID - description: "JEP106 identity code bits [6:4]" - bit_offset: 0 - bit_size: 3 - - name: JEDEC - description: JEDEC assigned value - bit_offset: 3 - bit_size: 1 - - name: REVISION - description: component revision number - bit_offset: 4 - bit_size: 4 + - name: JEP106ID + description: JEP106 identity code bits [6:4] + bit_offset: 0 + bit_size: 3 + - name: JEDEC + description: JEDEC assigned value + bit_offset: 3 + bit_size: 1 + - name: REVISION + description: component revision number + bit_offset: 4 + bit_size: 4 fieldset/PIDR3: description: Debug MCU CoreSight peripheral identity register 3 fields: - - name: CMOD - description: customer modified - bit_offset: 0 - bit_size: 4 - - name: REVAND - description: metal fix version - bit_offset: 4 - bit_size: 4 + - name: CMOD + description: customer modified + bit_offset: 0 + bit_size: 4 + - name: REVAND + description: metal fix version + bit_offset: 4 + bit_size: 4 fieldset/PIDR4: description: Debug MCU CoreSight peripheral identity register 4 fields: - - name: JEP106CON - description: JEP106 continuation code - bit_offset: 0 - bit_size: 4 - - name: KCOUNT_4 - description: register file size - bit_offset: 4 - bit_size: 4 + - name: JEP106CON + description: JEP106 continuation code + bit_offset: 0 + bit_size: 4 + - name: KCOUNT_4 + description: register file size + bit_offset: 4 + bit_size: 4 diff --git a/data/registers/dbgmcu_wb.yaml b/data/registers/dbgmcu_wb.yaml index f2a325d..4495575 100644 --- a/data/registers/dbgmcu_wb.yaml +++ b/data/registers/dbgmcu_wb.yaml @@ -1,173 +1,172 @@ ---- block/DBGMCU: description: Debug support items: - - name: IDCODE - description: MCU Device ID Code Register - byte_offset: 0 - access: Read - fieldset: IDCODE - - name: CR - description: Debug MCU Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR1 - description: APB1 Low Freeze Register CPU1 - byte_offset: 60 - fieldset: APB1FZR1 - - name: C2AP_B1FZR1 - description: APB1 Low Freeze Register CPU2 - byte_offset: 64 - fieldset: C2AP_B1FZR1 - - name: APB1FZR2 - description: APB1 High Freeze Register CPU1 - byte_offset: 68 - fieldset: APB1FZR2 - - name: C2APB1FZR2 - description: APB1 High Freeze Register CPU2 - byte_offset: 72 - fieldset: C2APB1FZR2 - - name: C2APB2FZR - description: APB2 Freeze Register CPU2 - byte_offset: 72 - fieldset: C2APB2FZR - - name: APB2FZR - description: APB2 Freeze Register CPU1 - byte_offset: 76 - fieldset: APB2FZR + - name: IDCODE + description: MCU Device ID Code Register + byte_offset: 0 + access: Read + fieldset: IDCODE + - name: CR + description: Debug MCU Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR1 + description: APB1 Low Freeze Register CPU1 + byte_offset: 60 + fieldset: APB1FZR1 + - name: C2AP_B1FZR1 + description: APB1 Low Freeze Register CPU2 + byte_offset: 64 + fieldset: C2AP_B1FZR1 + - name: APB1FZR2 + description: APB1 High Freeze Register CPU1 + byte_offset: 68 + fieldset: APB1FZR2 + - name: C2APB1FZR2 + description: APB1 High Freeze Register CPU2 + byte_offset: 72 + fieldset: C2APB1FZR2 + - name: C2APB2FZR + description: APB2 Freeze Register CPU2 + byte_offset: 72 + fieldset: C2APB2FZR + - name: APB2FZR + description: APB2 Freeze Register CPU1 + byte_offset: 76 + fieldset: APB2FZR fieldset/APB1FZR1: description: APB1 Low Freeze Register CPU1 fields: - - name: TIM2 - description: Debug Timer 2 stopped when Core is halted - bit_offset: 0 - bit_size: 1 - - name: RTC - description: RTC counter stopped when core is halted - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: WWDG counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: IWDG counter stopped when core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: Debug I2C1 SMBUS timeout stopped when Core is halted - bit_offset: 21 - bit_size: 1 - - name: I2C3 - description: Debug I2C3 SMBUS timeout stopped when core is halted - bit_offset: 23 - bit_size: 1 - - name: LPTIM1 - description: Debug LPTIM1 stopped when Core is halted - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: Debug Timer 2 stopped when Core is halted + bit_offset: 0 + bit_size: 1 + - name: RTC + description: RTC counter stopped when core is halted + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: WWDG counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: IWDG counter stopped when core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: Debug I2C1 SMBUS timeout stopped when Core is halted + bit_offset: 21 + bit_size: 1 + - name: I2C3 + description: Debug I2C3 SMBUS timeout stopped when core is halted + bit_offset: 23 + bit_size: 1 + - name: LPTIM1 + description: Debug LPTIM1 stopped when Core is halted + bit_offset: 31 + bit_size: 1 fieldset/APB1FZR2: description: APB1 High Freeze Register CPU1 fields: - - name: LPTIM2 - description: LPTIM2 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 + - name: LPTIM2 + description: LPTIM2 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 fieldset/APB2FZR: description: APB2 Freeze Register CPU1 fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: TIM16 - description: TIM16 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: TIM16 + description: TIM16 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/C2APB1FZR2: description: APB1 High Freeze Register CPU2 fields: - - name: LPTIM2 - description: LPTIM2 counter stopped when core is halted - bit_offset: 5 - bit_size: 1 + - name: LPTIM2 + description: LPTIM2 counter stopped when core is halted + bit_offset: 5 + bit_size: 1 fieldset/C2APB2FZR: description: APB2 Freeze Register CPU2 fields: - - name: TIM1 - description: TIM1 counter stopped when core is halted - bit_offset: 11 - bit_size: 1 - - name: TIM16 - description: TIM16 counter stopped when core is halted - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 counter stopped when core is halted - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 counter stopped when core is halted + bit_offset: 11 + bit_size: 1 + - name: TIM16 + description: TIM16 counter stopped when core is halted + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 counter stopped when core is halted + bit_offset: 18 + bit_size: 1 fieldset/C2AP_B1FZR1: description: APB1 Low Freeze Register CPU2 fields: - - name: LPTIM2 - description: LPTIM2 counter stopped when core is halted - bit_offset: 0 - bit_size: 1 - - name: RTC - description: RTC counter stopped when core is halted - bit_offset: 10 - bit_size: 1 - - name: IWDG - description: IWDG stopped when core is halted - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout stopped when core is halted - bit_offset: 21 - bit_size: 1 - - name: I2C3 - description: I2C3 SMBUS timeout stopped when core is halted - bit_offset: 23 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 counter stopped when core is halted - bit_offset: 31 - bit_size: 1 + - name: LPTIM2 + description: LPTIM2 counter stopped when core is halted + bit_offset: 0 + bit_size: 1 + - name: RTC + description: RTC counter stopped when core is halted + bit_offset: 10 + bit_size: 1 + - name: IWDG + description: IWDG stopped when core is halted + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout stopped when core is halted + bit_offset: 21 + bit_size: 1 + - name: I2C3 + description: I2C3 SMBUS timeout stopped when core is halted + bit_offset: 23 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 counter stopped when core is halted + bit_offset: 31 + bit_size: 1 fieldset/CR: description: Debug MCU Configuration Register fields: - - name: DBG_SLEEP - description: Debug Sleep Mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Debug Stop Mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Debug Standby Mode - bit_offset: 2 - bit_size: 1 - - name: TRACE_IOEN - description: Trace port and clock enable - bit_offset: 5 - bit_size: 1 - - name: TRGOEN - description: External trigger output enable - bit_offset: 28 - bit_size: 1 + - name: DBG_SLEEP + description: Debug Sleep Mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Debug Stop Mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Debug Standby Mode + bit_offset: 2 + bit_size: 1 + - name: TRACE_IOEN + description: Trace port and clock enable + bit_offset: 5 + bit_size: 1 + - name: TRGOEN + description: External trigger output enable + bit_offset: 28 + bit_size: 1 fieldset/IDCODE: description: MCU Device ID Code Register fields: - - name: DEV_ID - description: Device Identifier - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision Identifier - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device Identifier + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision Identifier + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dbgmcu_wl.yaml b/data/registers/dbgmcu_wl.yaml index 191f11c..4ec564f 100644 --- a/data/registers/dbgmcu_wl.yaml +++ b/data/registers/dbgmcu_wl.yaml @@ -1,181 +1,180 @@ ---- block/DBGMCU: description: Microcontroller Debug Unit items: - - name: IDCODER - description: Identity Code Register - byte_offset: 0 - access: Read - fieldset: IDCODER - - name: CR - description: Configuration Register - byte_offset: 4 - fieldset: CR - - name: APB1FZR1 - description: CPU1 APB1 Peripheral Freeze Register 1 - byte_offset: 60 - fieldset: APB1FZR1 - - name: C2APB1FZR1 - description: "CPU2 APB1 Peripheral Freeze Register 1 [dual core device" - byte_offset: 64 - fieldset: C2APB1FZR1 - - name: APB1FZR2 - description: CPU1 APB1 Peripheral Freeze Register 2 - byte_offset: 68 - fieldset: APB1FZR2 - - name: C2APB1FZR2 - description: "CPU2 APB1 Peripheral Freeze Register 2 [dual core device" - byte_offset: 72 - fieldset: C2APB1FZR2 - - name: APB2FZR - description: CPU1 APB2 Peripheral Freeze Register - byte_offset: 76 - fieldset: APB2FZR - - name: C2APB2FZR - description: "CPU2 APB2 Peripheral Freeze Register [dual core device" - byte_offset: 80 - fieldset: C2APB2FZR + - name: IDCODER + description: Identity Code Register + byte_offset: 0 + access: Read + fieldset: IDCODER + - name: CR + description: Configuration Register + byte_offset: 4 + fieldset: CR + - name: APB1FZR1 + description: CPU1 APB1 Peripheral Freeze Register 1 + byte_offset: 60 + fieldset: APB1FZR1 + - name: C2APB1FZR1 + description: CPU2 APB1 Peripheral Freeze Register 1 [dual core device + byte_offset: 64 + fieldset: C2APB1FZR1 + - name: APB1FZR2 + description: CPU1 APB1 Peripheral Freeze Register 2 + byte_offset: 68 + fieldset: APB1FZR2 + - name: C2APB1FZR2 + description: CPU2 APB1 Peripheral Freeze Register 2 [dual core device + byte_offset: 72 + fieldset: C2APB1FZR2 + - name: APB2FZR + description: CPU1 APB2 Peripheral Freeze Register + byte_offset: 76 + fieldset: APB2FZR + - name: C2APB2FZR + description: CPU2 APB2 Peripheral Freeze Register [dual core device + byte_offset: 80 + fieldset: C2APB2FZR fieldset/APB1FZR1: description: CPU1 APB1 Peripheral Freeze Register 1 fields: - - name: TIM2 - description: TIM2 stop in CPU1 debug - bit_offset: 0 - bit_size: 1 - - name: RTC - description: RTC stop in CPU1 debug - bit_offset: 10 - bit_size: 1 - - name: WWDG - description: WWDG stop in CPU1 debug - bit_offset: 11 - bit_size: 1 - - name: IWDG - description: IWDG stop in CPU1 debug - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 SMBUS timeout stop in CPU1 debug - bit_offset: 21 - bit_size: 1 - - name: I2C2 - description: I2C2 SMBUS timeout stop in CPU1 debug - bit_offset: 22 - bit_size: 1 - - name: I2C3 - description: I2C3 SMBUS timeout stop in CPU1 debug - bit_offset: 23 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 stop in CPU1 debug - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: TIM2 stop in CPU1 debug + bit_offset: 0 + bit_size: 1 + - name: RTC + description: RTC stop in CPU1 debug + bit_offset: 10 + bit_size: 1 + - name: WWDG + description: WWDG stop in CPU1 debug + bit_offset: 11 + bit_size: 1 + - name: IWDG + description: IWDG stop in CPU1 debug + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 SMBUS timeout stop in CPU1 debug + bit_offset: 21 + bit_size: 1 + - name: I2C2 + description: I2C2 SMBUS timeout stop in CPU1 debug + bit_offset: 22 + bit_size: 1 + - name: I2C3 + description: I2C3 SMBUS timeout stop in CPU1 debug + bit_offset: 23 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 stop in CPU1 debug + bit_offset: 31 + bit_size: 1 fieldset/APB1FZR2: description: CPU1 APB1 Peripheral Freeze Register 2 fields: - - name: LPTIM2 - description: LPTIM2 - bit_offset: 5 - bit_size: 1 - - name: LPTIM3 - description: LPTIM3 - bit_offset: 6 - bit_size: 1 + - name: LPTIM2 + description: LPTIM2 + bit_offset: 5 + bit_size: 1 + - name: LPTIM3 + description: LPTIM3 + bit_offset: 6 + bit_size: 1 fieldset/APB2FZR: description: CPU1 APB2 Peripheral Freeze Register fields: - - name: TIM1 - description: TIM1 - bit_offset: 11 - bit_size: 1 - - name: TIM16 - description: TIM16 - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 + bit_offset: 11 + bit_size: 1 + - name: TIM16 + description: TIM16 + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 + bit_offset: 18 + bit_size: 1 fieldset/C2APB1FZR1: - description: "CPU2 APB1 Peripheral Freeze Register 1 [dual core device" + description: CPU2 APB1 Peripheral Freeze Register 1 [dual core device fields: - - name: TIM2 - description: TIM2 - bit_offset: 0 - bit_size: 1 - - name: RTC - description: RTC - bit_offset: 10 - bit_size: 1 - - name: IWDG - description: IWDG - bit_offset: 12 - bit_size: 1 - - name: I2C1 - description: I2C1 - bit_offset: 21 - bit_size: 1 - - name: I2C2 - description: I2C2 - bit_offset: 22 - bit_size: 1 - - name: I2C3 - description: I2C3 - bit_offset: 23 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 - bit_offset: 31 - bit_size: 1 + - name: TIM2 + description: TIM2 + bit_offset: 0 + bit_size: 1 + - name: RTC + description: RTC + bit_offset: 10 + bit_size: 1 + - name: IWDG + description: IWDG + bit_offset: 12 + bit_size: 1 + - name: I2C1 + description: I2C1 + bit_offset: 21 + bit_size: 1 + - name: I2C2 + description: I2C2 + bit_offset: 22 + bit_size: 1 + - name: I2C3 + description: I2C3 + bit_offset: 23 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 + bit_offset: 31 + bit_size: 1 fieldset/C2APB1FZR2: - description: "CPU2 APB1 Peripheral Freeze Register 2 [dual core device" + description: CPU2 APB1 Peripheral Freeze Register 2 [dual core device fields: - - name: LPTIM2 - description: LPTIM2 - bit_offset: 5 - bit_size: 1 - - name: LPTIM3 - description: LPTIM3 - bit_offset: 6 - bit_size: 1 + - name: LPTIM2 + description: LPTIM2 + bit_offset: 5 + bit_size: 1 + - name: LPTIM3 + description: LPTIM3 + bit_offset: 6 + bit_size: 1 fieldset/C2APB2FZR: - description: "CPU2 APB2 Peripheral Freeze Register [dual core device" + description: CPU2 APB2 Peripheral Freeze Register [dual core device fields: - - name: TIM1 - description: TIM1 - bit_offset: 11 - bit_size: 1 - - name: TIM16 - description: TIM16 - bit_offset: 17 - bit_size: 1 - - name: TIM17 - description: TIM17 - bit_offset: 18 - bit_size: 1 + - name: TIM1 + description: TIM1 + bit_offset: 11 + bit_size: 1 + - name: TIM16 + description: TIM16 + bit_offset: 17 + bit_size: 1 + - name: TIM17 + description: TIM17 + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Configuration Register fields: - - name: DBG_SLEEP - description: Allow debug in SLEEP mode - bit_offset: 0 - bit_size: 1 - - name: DBG_STOP - description: Allow debug in STOP mode - bit_offset: 1 - bit_size: 1 - - name: DBG_STANDBY - description: Allow debug in STANDBY mode - bit_offset: 2 - bit_size: 1 + - name: DBG_SLEEP + description: Allow debug in SLEEP mode + bit_offset: 0 + bit_size: 1 + - name: DBG_STOP + description: Allow debug in STOP mode + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: Allow debug in STANDBY mode + bit_offset: 2 + bit_size: 1 fieldset/IDCODER: description: Identity Code Register fields: - - name: DEV_ID - description: Device ID - bit_offset: 0 - bit_size: 12 - - name: REV_ID - description: Revision - bit_offset: 16 - bit_size: 16 + - name: DEV_ID + description: Device ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/dcmi_v1.yaml b/data/registers/dcmi_v1.yaml index 71101e5..c15e36a 100644 --- a/data/registers/dcmi_v1.yaml +++ b/data/registers/dcmi_v1.yaml @@ -1,286 +1,285 @@ ---- block/DCMI: description: Digital camera interface items: - - name: CR - description: control register 1 - byte_offset: 0 - fieldset: CR - - name: SR - description: status register - byte_offset: 4 - access: Read - fieldset: SR - - name: RIS - description: raw interrupt status register - byte_offset: 8 - access: Read - fieldset: RIS - - name: IER - description: interrupt enable register - byte_offset: 12 - fieldset: IER - - name: MIS - description: masked interrupt status register - byte_offset: 16 - access: Read - fieldset: MIS - - name: ICR - description: interrupt clear register - byte_offset: 20 - access: Write - fieldset: ICR - - name: ESCR - description: embedded synchronization code register - byte_offset: 24 - fieldset: ESCR - - name: ESUR - description: embedded synchronization unmask register - byte_offset: 28 - fieldset: ESUR - - name: CWSTRT - description: crop window start - byte_offset: 32 - fieldset: CWSTRT - - name: CWSIZE - description: crop window size - byte_offset: 36 - fieldset: CWSIZE - - name: DR - description: data register - byte_offset: 40 - access: Read - fieldset: DR + - name: CR + description: control register 1 + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + access: Read + fieldset: SR + - name: RIS + description: raw interrupt status register + byte_offset: 8 + access: Read + fieldset: RIS + - name: IER + description: interrupt enable register + byte_offset: 12 + fieldset: IER + - name: MIS + description: masked interrupt status register + byte_offset: 16 + access: Read + fieldset: MIS + - name: ICR + description: interrupt clear register + byte_offset: 20 + access: Write + fieldset: ICR + - name: ESCR + description: embedded synchronization code register + byte_offset: 24 + fieldset: ESCR + - name: ESUR + description: embedded synchronization unmask register + byte_offset: 28 + fieldset: ESUR + - name: CWSTRT + description: crop window start + byte_offset: 32 + fieldset: CWSTRT + - name: CWSIZE + description: crop window size + byte_offset: 36 + fieldset: CWSIZE + - name: DR + description: data register + byte_offset: 40 + access: Read + fieldset: DR fieldset/CR: description: control register 1 fields: - - name: CAPTURE - description: Capture enable - bit_offset: 0 - bit_size: 1 - - name: CM - description: Capture mode - bit_offset: 1 - bit_size: 1 - - name: CROP - description: Crop feature - bit_offset: 2 - bit_size: 1 - - name: JPEG - description: JPEG format - bit_offset: 3 - bit_size: 1 - - name: ESS - description: Embedded synchronization select - bit_offset: 4 - bit_size: 1 - - name: PCKPOL - description: Pixel clock polarity - bit_offset: 5 - bit_size: 1 - - name: HSPOL - description: Horizontal synchronization polarity - bit_offset: 6 - bit_size: 1 - - name: VSPOL - description: Vertical synchronization polarity - bit_offset: 7 - bit_size: 1 - - name: FCRC - description: Frame capture rate control - bit_offset: 8 - bit_size: 2 - - name: EDM - description: Extended data mode - bit_offset: 10 - bit_size: 2 - - name: ENABLE - description: DCMI enable - bit_offset: 14 - bit_size: 1 + - name: CAPTURE + description: Capture enable + bit_offset: 0 + bit_size: 1 + - name: CM + description: Capture mode + bit_offset: 1 + bit_size: 1 + - name: CROP + description: Crop feature + bit_offset: 2 + bit_size: 1 + - name: JPEG + description: JPEG format + bit_offset: 3 + bit_size: 1 + - name: ESS + description: Embedded synchronization select + bit_offset: 4 + bit_size: 1 + - name: PCKPOL + description: Pixel clock polarity + bit_offset: 5 + bit_size: 1 + - name: HSPOL + description: Horizontal synchronization polarity + bit_offset: 6 + bit_size: 1 + - name: VSPOL + description: Vertical synchronization polarity + bit_offset: 7 + bit_size: 1 + - name: FCRC + description: Frame capture rate control + bit_offset: 8 + bit_size: 2 + - name: EDM + description: Extended data mode + bit_offset: 10 + bit_size: 2 + - name: ENABLE + description: DCMI enable + bit_offset: 14 + bit_size: 1 fieldset/CWSIZE: description: crop window size fields: - - name: CAPCNT - description: Capture count - bit_offset: 0 - bit_size: 14 - - name: VLINE - description: Vertical line count - bit_offset: 16 - bit_size: 14 + - name: CAPCNT + description: Capture count + bit_offset: 0 + bit_size: 14 + - name: VLINE + description: Vertical line count + bit_offset: 16 + bit_size: 14 fieldset/CWSTRT: description: crop window start fields: - - name: HOFFCNT - description: Horizontal offset count - bit_offset: 0 - bit_size: 14 - - name: VST - description: Vertical start line count - bit_offset: 16 - bit_size: 13 + - name: HOFFCNT + description: Horizontal offset count + bit_offset: 0 + bit_size: 14 + - name: VST + description: Vertical start line count + bit_offset: 16 + bit_size: 13 fieldset/DR: description: data register fields: - - name: Byte0 - description: Data byte 0 - bit_offset: 0 - bit_size: 8 - - name: Byte1 - description: Data byte 1 - bit_offset: 8 - bit_size: 8 - - name: Byte2 - description: Data byte 2 - bit_offset: 16 - bit_size: 8 - - name: Byte3 - description: Data byte 3 - bit_offset: 24 - bit_size: 8 + - name: Byte0 + description: Data byte 0 + bit_offset: 0 + bit_size: 8 + - name: Byte1 + description: Data byte 1 + bit_offset: 8 + bit_size: 8 + - name: Byte2 + description: Data byte 2 + bit_offset: 16 + bit_size: 8 + - name: Byte3 + description: Data byte 3 + bit_offset: 24 + bit_size: 8 fieldset/ESCR: description: embedded synchronization code register fields: - - name: FSC - description: Frame start delimiter code - bit_offset: 0 - bit_size: 8 - - name: LSC - description: Line start delimiter code - bit_offset: 8 - bit_size: 8 - - name: LEC - description: Line end delimiter code - bit_offset: 16 - bit_size: 8 - - name: FEC - description: Frame end delimiter code - bit_offset: 24 - bit_size: 8 + - name: FSC + description: Frame start delimiter code + bit_offset: 0 + bit_size: 8 + - name: LSC + description: Line start delimiter code + bit_offset: 8 + bit_size: 8 + - name: LEC + description: Line end delimiter code + bit_offset: 16 + bit_size: 8 + - name: FEC + description: Frame end delimiter code + bit_offset: 24 + bit_size: 8 fieldset/ESUR: description: embedded synchronization unmask register fields: - - name: FSU - description: Frame start delimiter unmask - bit_offset: 0 - bit_size: 8 - - name: LSU - description: Line start delimiter unmask - bit_offset: 8 - bit_size: 8 - - name: LEU - description: Line end delimiter unmask - bit_offset: 16 - bit_size: 8 - - name: FEU - description: Frame end delimiter unmask - bit_offset: 24 - bit_size: 8 + - name: FSU + description: Frame start delimiter unmask + bit_offset: 0 + bit_size: 8 + - name: LSU + description: Line start delimiter unmask + bit_offset: 8 + bit_size: 8 + - name: LEU + description: Line end delimiter unmask + bit_offset: 16 + bit_size: 8 + - name: FEU + description: Frame end delimiter unmask + bit_offset: 24 + bit_size: 8 fieldset/ICR: description: interrupt clear register fields: - - name: FRAME_ISC - description: Capture complete interrupt status clear - bit_offset: 0 - bit_size: 1 - - name: OVR_ISC - description: Overrun interrupt status clear - bit_offset: 1 - bit_size: 1 - - name: ERR_ISC - description: Synchronization error interrupt status clear - bit_offset: 2 - bit_size: 1 - - name: VSYNC_ISC - description: Vertical synch interrupt status clear - bit_offset: 3 - bit_size: 1 - - name: LINE_ISC - description: line interrupt status clear - bit_offset: 4 - bit_size: 1 + - name: FRAME_ISC + description: Capture complete interrupt status clear + bit_offset: 0 + bit_size: 1 + - name: OVR_ISC + description: Overrun interrupt status clear + bit_offset: 1 + bit_size: 1 + - name: ERR_ISC + description: Synchronization error interrupt status clear + bit_offset: 2 + bit_size: 1 + - name: VSYNC_ISC + description: Vertical synch interrupt status clear + bit_offset: 3 + bit_size: 1 + - name: LINE_ISC + description: line interrupt status clear + bit_offset: 4 + bit_size: 1 fieldset/IER: description: interrupt enable register fields: - - name: FRAME_IE - description: Capture complete interrupt enable - bit_offset: 0 - bit_size: 1 - - name: OVR_IE - description: Overrun interrupt enable - bit_offset: 1 - bit_size: 1 - - name: ERR_IE - description: Synchronization error interrupt enable - bit_offset: 2 - bit_size: 1 - - name: VSYNC_IE - description: VSYNC interrupt enable - bit_offset: 3 - bit_size: 1 - - name: LINE_IE - description: Line interrupt enable - bit_offset: 4 - bit_size: 1 + - name: FRAME_IE + description: Capture complete interrupt enable + bit_offset: 0 + bit_size: 1 + - name: OVR_IE + description: Overrun interrupt enable + bit_offset: 1 + bit_size: 1 + - name: ERR_IE + description: Synchronization error interrupt enable + bit_offset: 2 + bit_size: 1 + - name: VSYNC_IE + description: VSYNC interrupt enable + bit_offset: 3 + bit_size: 1 + - name: LINE_IE + description: Line interrupt enable + bit_offset: 4 + bit_size: 1 fieldset/MIS: description: masked interrupt status register fields: - - name: FRAME_MIS - description: Capture complete masked interrupt status - bit_offset: 0 - bit_size: 1 - - name: OVR_MIS - description: Overrun masked interrupt status - bit_offset: 1 - bit_size: 1 - - name: ERR_MIS - description: Synchronization error masked interrupt status - bit_offset: 2 - bit_size: 1 - - name: VSYNC_MIS - description: VSYNC masked interrupt status - bit_offset: 3 - bit_size: 1 - - name: LINE_MIS - description: Line masked interrupt status - bit_offset: 4 - bit_size: 1 + - name: FRAME_MIS + description: Capture complete masked interrupt status + bit_offset: 0 + bit_size: 1 + - name: OVR_MIS + description: Overrun masked interrupt status + bit_offset: 1 + bit_size: 1 + - name: ERR_MIS + description: Synchronization error masked interrupt status + bit_offset: 2 + bit_size: 1 + - name: VSYNC_MIS + description: VSYNC masked interrupt status + bit_offset: 3 + bit_size: 1 + - name: LINE_MIS + description: Line masked interrupt status + bit_offset: 4 + bit_size: 1 fieldset/RIS: description: raw interrupt status register fields: - - name: FRAME_RIS - description: Capture complete raw interrupt status - bit_offset: 0 - bit_size: 1 - - name: OVR_RIS - description: Overrun raw interrupt status - bit_offset: 1 - bit_size: 1 - - name: ERR_RIS - description: Synchronization error raw interrupt status - bit_offset: 2 - bit_size: 1 - - name: VSYNC_RIS - description: VSYNC raw interrupt status - bit_offset: 3 - bit_size: 1 - - name: LINE_RIS - description: Line raw interrupt status - bit_offset: 4 - bit_size: 1 + - name: FRAME_RIS + description: Capture complete raw interrupt status + bit_offset: 0 + bit_size: 1 + - name: OVR_RIS + description: Overrun raw interrupt status + bit_offset: 1 + bit_size: 1 + - name: ERR_RIS + description: Synchronization error raw interrupt status + bit_offset: 2 + bit_size: 1 + - name: VSYNC_RIS + description: VSYNC raw interrupt status + bit_offset: 3 + bit_size: 1 + - name: LINE_RIS + description: Line raw interrupt status + bit_offset: 4 + bit_size: 1 fieldset/SR: description: status register fields: - - name: HSYNC - description: HSYNC - bit_offset: 0 - bit_size: 1 - - name: VSYNC - description: VSYNC - bit_offset: 1 - bit_size: 1 - - name: FNE - description: FIFO not empty - bit_offset: 2 - bit_size: 1 + - name: HSYNC + description: HSYNC + bit_offset: 0 + bit_size: 1 + - name: VSYNC + description: VSYNC + bit_offset: 1 + bit_size: 1 + - name: FNE + description: FIFO not empty + bit_offset: 2 + bit_size: 1 diff --git a/data/registers/dma2d_v1.yaml b/data/registers/dma2d_v1.yaml index 5e778ac..831d544 100644 --- a/data/registers/dma2d_v1.yaml +++ b/data/registers/dma2d_v1.yaml @@ -1,728 +1,727 @@ ---- block/DMA2D: description: DMA2D controller items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: ISR - description: Interrupt Status Register - byte_offset: 4 - access: Read - fieldset: ISR - - name: IFCR - description: interrupt flag clear register - byte_offset: 8 - fieldset: IFCR - - name: FGMAR - description: foreground memory address register - byte_offset: 12 - fieldset: FGMAR - - name: FGOR - description: foreground offset register - byte_offset: 16 - fieldset: FGOR - - name: BGMAR - description: background memory address register - byte_offset: 20 - fieldset: BGMAR - - name: BGOR - description: background offset register - byte_offset: 24 - fieldset: BGOR - - name: FGPFCCR - description: foreground PFC control register - byte_offset: 28 - fieldset: FGPFCCR - - name: FGCOLR - description: foreground color register - byte_offset: 32 - fieldset: FGCOLR - - name: BGPFCCR - description: background PFC control register - byte_offset: 36 - fieldset: BGPFCCR - - name: BGCOLR - description: background color register - byte_offset: 40 - fieldset: BGCOLR - - name: FGCMAR - description: foreground CLUT memory address register - byte_offset: 44 - fieldset: FGCMAR - - name: BGCMAR - description: background CLUT memory address register - byte_offset: 48 - fieldset: BGCMAR - - name: OPFCCR - description: output PFC control register - byte_offset: 52 - fieldset: OPFCCR - - name: OCOLR - description: output color register - byte_offset: 56 - fieldset: OCOLR - - name: OMAR - description: output memory address register - byte_offset: 60 - fieldset: OMAR - - name: OOR - description: output offset register - byte_offset: 64 - fieldset: OOR - - name: NLR - description: number of line register - byte_offset: 68 - fieldset: NLR - - name: LWR - description: line watermark register - byte_offset: 72 - fieldset: LWR - - name: AMTCR - description: AHB master timer configuration register - byte_offset: 76 - fieldset: AMTCR - - name: FGCLUT - description: FGCLUT - byte_offset: 1024 - fieldset: FGCLUT - - name: BGCLUT - description: BGCLUT - byte_offset: 2048 - fieldset: BGCLUT + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: ISR + description: Interrupt Status Register + byte_offset: 4 + access: Read + fieldset: ISR + - name: IFCR + description: interrupt flag clear register + byte_offset: 8 + fieldset: IFCR + - name: FGMAR + description: foreground memory address register + byte_offset: 12 + fieldset: FGMAR + - name: FGOR + description: foreground offset register + byte_offset: 16 + fieldset: FGOR + - name: BGMAR + description: background memory address register + byte_offset: 20 + fieldset: BGMAR + - name: BGOR + description: background offset register + byte_offset: 24 + fieldset: BGOR + - name: FGPFCCR + description: foreground PFC control register + byte_offset: 28 + fieldset: FGPFCCR + - name: FGCOLR + description: foreground color register + byte_offset: 32 + fieldset: FGCOLR + - name: BGPFCCR + description: background PFC control register + byte_offset: 36 + fieldset: BGPFCCR + - name: BGCOLR + description: background color register + byte_offset: 40 + fieldset: BGCOLR + - name: FGCMAR + description: foreground CLUT memory address register + byte_offset: 44 + fieldset: FGCMAR + - name: BGCMAR + description: background CLUT memory address register + byte_offset: 48 + fieldset: BGCMAR + - name: OPFCCR + description: output PFC control register + byte_offset: 52 + fieldset: OPFCCR + - name: OCOLR + description: output color register + byte_offset: 56 + fieldset: OCOLR + - name: OMAR + description: output memory address register + byte_offset: 60 + fieldset: OMAR + - name: OOR + description: output offset register + byte_offset: 64 + fieldset: OOR + - name: NLR + description: number of line register + byte_offset: 68 + fieldset: NLR + - name: LWR + description: line watermark register + byte_offset: 72 + fieldset: LWR + - name: AMTCR + description: AHB master timer configuration register + byte_offset: 76 + fieldset: AMTCR + - name: FGCLUT + description: FGCLUT + byte_offset: 1024 + fieldset: FGCLUT + - name: BGCLUT + description: BGCLUT + byte_offset: 2048 + fieldset: BGCLUT fieldset/AMTCR: description: AHB master timer configuration register fields: - - name: EN - description: Enable - bit_offset: 0 - bit_size: 1 - enum: EN - - name: DT - description: Dead Time - bit_offset: 8 - bit_size: 8 + - name: EN + description: Enable + bit_offset: 0 + bit_size: 1 + enum: EN + - name: DT + description: Dead Time + bit_offset: 8 + bit_size: 8 fieldset/BGCLUT: description: BGCLUT fields: - - name: BLUE - description: BLUE - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: GREEN - bit_offset: 8 - bit_size: 8 - - name: RED - description: RED - bit_offset: 16 - bit_size: 8 - - name: APLHA - description: APLHA - bit_offset: 24 - bit_size: 8 + - name: BLUE + description: BLUE + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: GREEN + bit_offset: 8 + bit_size: 8 + - name: RED + description: RED + bit_offset: 16 + bit_size: 8 + - name: APLHA + description: APLHA + bit_offset: 24 + bit_size: 8 fieldset/BGCMAR: description: background CLUT memory address register fields: - - name: MA - description: Memory address - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory address + bit_offset: 0 + bit_size: 32 fieldset/BGCOLR: description: background color register fields: - - name: BLUE - description: Blue Value - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: Green Value - bit_offset: 8 - bit_size: 8 - - name: RED - description: Red Value - bit_offset: 16 - bit_size: 8 + - name: BLUE + description: Blue Value + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green Value + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red Value + bit_offset: 16 + bit_size: 8 fieldset/BGMAR: description: background memory address register fields: - - name: MA - description: Memory address - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory address + bit_offset: 0 + bit_size: 32 fieldset/BGOR: description: background offset register fields: - - name: LO - description: Line offset - bit_offset: 0 - bit_size: 14 + - name: LO + description: Line offset + bit_offset: 0 + bit_size: 14 fieldset/BGPFCCR: description: background PFC control register fields: - - name: CM - description: Color mode - bit_offset: 0 - bit_size: 4 - enum: BGPFCCR_CM - - name: CCM - description: CLUT Color mode - bit_offset: 4 - bit_size: 1 - enum: BGPFCCR_CCM - - name: START - description: Start - bit_offset: 5 - bit_size: 1 - enum: BGPFCCR_START - - name: CS - description: CLUT size - bit_offset: 8 - bit_size: 8 - - name: AM - description: Alpha mode - bit_offset: 16 - bit_size: 2 - enum: BGPFCCR_AM - - name: ALPHA - description: Alpha value - bit_offset: 24 - bit_size: 8 + - name: CM + description: Color mode + bit_offset: 0 + bit_size: 4 + enum: BGPFCCR_CM + - name: CCM + description: CLUT Color mode + bit_offset: 4 + bit_size: 1 + enum: BGPFCCR_CCM + - name: START + description: Start + bit_offset: 5 + bit_size: 1 + enum: BGPFCCR_START + - name: CS + description: CLUT size + bit_offset: 8 + bit_size: 8 + - name: AM + description: Alpha mode + bit_offset: 16 + bit_size: 2 + enum: BGPFCCR_AM + - name: ALPHA + description: Alpha value + bit_offset: 24 + bit_size: 8 fieldset/CR: description: control register fields: - - name: START - description: Start - bit_offset: 0 - bit_size: 1 - enum: CR_START - - name: SUSP - description: Suspend - bit_offset: 1 - bit_size: 1 - enum: SUSP - - name: ABORT - description: Abort - bit_offset: 2 - bit_size: 1 - enum: ABORT - - name: TEIE - description: Transfer error interrupt enable - bit_offset: 8 - bit_size: 1 - enum: TEIE - - name: TCIE - description: Transfer complete interrupt enable - bit_offset: 9 - bit_size: 1 - enum: TCIE - - name: TWIE - description: Transfer watermark interrupt enable - bit_offset: 10 - bit_size: 1 - enum: TWIE - - name: CAEIE - description: CLUT access error interrupt enable - bit_offset: 11 - bit_size: 1 - enum: CAEIE - - name: CTCIE - description: CLUT transfer complete interrupt enable - bit_offset: 12 - bit_size: 1 - enum: CTCIE - - name: CEIE - description: Configuration Error Interrupt Enable - bit_offset: 13 - bit_size: 1 - enum: CEIE - - name: MODE - description: DMA2D mode - bit_offset: 16 - bit_size: 2 - enum: MODE + - name: START + description: Start + bit_offset: 0 + bit_size: 1 + enum: CR_START + - name: SUSP + description: Suspend + bit_offset: 1 + bit_size: 1 + enum: SUSP + - name: ABORT + description: Abort + bit_offset: 2 + bit_size: 1 + enum: ABORT + - name: TEIE + description: Transfer error interrupt enable + bit_offset: 8 + bit_size: 1 + enum: TEIE + - name: TCIE + description: Transfer complete interrupt enable + bit_offset: 9 + bit_size: 1 + enum: TCIE + - name: TWIE + description: Transfer watermark interrupt enable + bit_offset: 10 + bit_size: 1 + enum: TWIE + - name: CAEIE + description: CLUT access error interrupt enable + bit_offset: 11 + bit_size: 1 + enum: CAEIE + - name: CTCIE + description: CLUT transfer complete interrupt enable + bit_offset: 12 + bit_size: 1 + enum: CTCIE + - name: CEIE + description: Configuration Error Interrupt Enable + bit_offset: 13 + bit_size: 1 + enum: CEIE + - name: MODE + description: DMA2D mode + bit_offset: 16 + bit_size: 2 + enum: MODE fieldset/FGCLUT: description: FGCLUT fields: - - name: BLUE - description: BLUE - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: GREEN - bit_offset: 8 - bit_size: 8 - - name: RED - description: RED - bit_offset: 16 - bit_size: 8 - - name: APLHA - description: APLHA - bit_offset: 24 - bit_size: 8 + - name: BLUE + description: BLUE + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: GREEN + bit_offset: 8 + bit_size: 8 + - name: RED + description: RED + bit_offset: 16 + bit_size: 8 + - name: APLHA + description: APLHA + bit_offset: 24 + bit_size: 8 fieldset/FGCMAR: description: foreground CLUT memory address register fields: - - name: MA - description: Memory Address - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory Address + bit_offset: 0 + bit_size: 32 fieldset/FGCOLR: description: foreground color register fields: - - name: BLUE - description: Blue Value - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: Green Value - bit_offset: 8 - bit_size: 8 - - name: RED - description: Red Value - bit_offset: 16 - bit_size: 8 + - name: BLUE + description: Blue Value + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green Value + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red Value + bit_offset: 16 + bit_size: 8 fieldset/FGMAR: description: foreground memory address register fields: - - name: MA - description: Memory address - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory address + bit_offset: 0 + bit_size: 32 fieldset/FGOR: description: foreground offset register fields: - - name: LO - description: Line offset - bit_offset: 0 - bit_size: 14 + - name: LO + description: Line offset + bit_offset: 0 + bit_size: 14 fieldset/FGPFCCR: description: foreground PFC control register fields: - - name: CM - description: Color mode - bit_offset: 0 - bit_size: 4 - enum: FGPFCCR_CM - - name: CCM - description: CLUT color mode - bit_offset: 4 - bit_size: 1 - enum: FGPFCCR_CCM - - name: START - description: Start - bit_offset: 5 - bit_size: 1 - enum: FGPFCCR_START - - name: CS - description: CLUT size - bit_offset: 8 - bit_size: 8 - - name: AM - description: Alpha mode - bit_offset: 16 - bit_size: 2 - enum: FGPFCCR_AM - - name: ALPHA - description: Alpha value - bit_offset: 24 - bit_size: 8 + - name: CM + description: Color mode + bit_offset: 0 + bit_size: 4 + enum: FGPFCCR_CM + - name: CCM + description: CLUT color mode + bit_offset: 4 + bit_size: 1 + enum: FGPFCCR_CCM + - name: START + description: Start + bit_offset: 5 + bit_size: 1 + enum: FGPFCCR_START + - name: CS + description: CLUT size + bit_offset: 8 + bit_size: 8 + - name: AM + description: Alpha mode + bit_offset: 16 + bit_size: 2 + enum: FGPFCCR_AM + - name: ALPHA + description: Alpha value + bit_offset: 24 + bit_size: 8 fieldset/IFCR: description: interrupt flag clear register fields: - - name: CTEIF - description: Clear Transfer error interrupt flag - bit_offset: 0 - bit_size: 1 - enum: CTEIF - - name: CTCIF - description: Clear transfer complete interrupt flag - bit_offset: 1 - bit_size: 1 - enum: CTCIF - - name: CTWIF - description: Clear transfer watermark interrupt flag - bit_offset: 2 - bit_size: 1 - enum: CTWIF - - name: CAECIF - description: Clear CLUT access error interrupt flag - bit_offset: 3 - bit_size: 1 - enum: CAECIF - - name: CCTCIF - description: Clear CLUT transfer complete interrupt flag - bit_offset: 4 - bit_size: 1 - enum: CCTCIF - - name: CCEIF - description: Clear configuration error interrupt flag - bit_offset: 5 - bit_size: 1 - enum: CCEIF + - name: CTEIF + description: Clear Transfer error interrupt flag + bit_offset: 0 + bit_size: 1 + enum: CTEIF + - name: CTCIF + description: Clear transfer complete interrupt flag + bit_offset: 1 + bit_size: 1 + enum: CTCIF + - name: CTWIF + description: Clear transfer watermark interrupt flag + bit_offset: 2 + bit_size: 1 + enum: CTWIF + - name: CAECIF + description: Clear CLUT access error interrupt flag + bit_offset: 3 + bit_size: 1 + enum: CAECIF + - name: CCTCIF + description: Clear CLUT transfer complete interrupt flag + bit_offset: 4 + bit_size: 1 + enum: CCTCIF + - name: CCEIF + description: Clear configuration error interrupt flag + bit_offset: 5 + bit_size: 1 + enum: CCEIF fieldset/ISR: description: Interrupt Status Register fields: - - name: TEIF - description: Transfer error interrupt flag - bit_offset: 0 - bit_size: 1 - - name: TCIF - description: Transfer complete interrupt flag - bit_offset: 1 - bit_size: 1 - - name: TWIF - description: Transfer watermark interrupt flag - bit_offset: 2 - bit_size: 1 - - name: CAEIF - description: CLUT access error interrupt flag - bit_offset: 3 - bit_size: 1 - - name: CTCIF - description: CLUT transfer complete interrupt flag - bit_offset: 4 - bit_size: 1 - - name: CEIF - description: Configuration error interrupt flag - bit_offset: 5 - bit_size: 1 + - name: TEIF + description: Transfer error interrupt flag + bit_offset: 0 + bit_size: 1 + - name: TCIF + description: Transfer complete interrupt flag + bit_offset: 1 + bit_size: 1 + - name: TWIF + description: Transfer watermark interrupt flag + bit_offset: 2 + bit_size: 1 + - name: CAEIF + description: CLUT access error interrupt flag + bit_offset: 3 + bit_size: 1 + - name: CTCIF + description: CLUT transfer complete interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CEIF + description: Configuration error interrupt flag + bit_offset: 5 + bit_size: 1 fieldset/LWR: description: line watermark register fields: - - name: LW - description: Line watermark - bit_offset: 0 - bit_size: 16 + - name: LW + description: Line watermark + bit_offset: 0 + bit_size: 16 fieldset/NLR: description: number of line register fields: - - name: NL - description: Number of lines - bit_offset: 0 - bit_size: 16 - - name: PL - description: Pixel per lines - bit_offset: 16 - bit_size: 14 + - name: NL + description: Number of lines + bit_offset: 0 + bit_size: 16 + - name: PL + description: Pixel per lines + bit_offset: 16 + bit_size: 14 fieldset/OCOLR: description: output color register fields: - - name: BLUE - description: Blue Value - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: Green Value - bit_offset: 8 - bit_size: 8 - - name: RED - description: Red Value - bit_offset: 16 - bit_size: 8 - - name: APLHA - description: Alpha Channel Value - bit_offset: 24 - bit_size: 8 + - name: BLUE + description: Blue Value + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green Value + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red Value + bit_offset: 16 + bit_size: 8 + - name: APLHA + description: Alpha Channel Value + bit_offset: 24 + bit_size: 8 fieldset/OMAR: description: output memory address register fields: - - name: MA - description: Memory Address - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory Address + bit_offset: 0 + bit_size: 32 fieldset/OOR: description: output offset register fields: - - name: LO - description: Line Offset - bit_offset: 0 - bit_size: 14 + - name: LO + description: Line Offset + bit_offset: 0 + bit_size: 14 fieldset/OPFCCR: description: output PFC control register fields: - - name: CM - description: Color mode - bit_offset: 0 - bit_size: 3 - enum: OPFCCR_CM + - name: CM + description: Color mode + bit_offset: 0 + bit_size: 3 + enum: OPFCCR_CM enum/ABORT: bit_size: 1 variants: - - name: AbortRequest - description: Transfer abort requested - value: 1 + - name: AbortRequest + description: Transfer abort requested + value: 1 enum/BGPFCCR_AM: bit_size: 2 variants: - - name: NoModify - description: No modification of alpha channel - value: 0 - - name: Replace - description: "Replace with value in ALPHA[7:0]" - value: 1 - - name: Multiply - description: "Multiply with value in ALPHA[7:0]" - value: 2 + - name: NoModify + description: No modification of alpha channel + value: 0 + - name: Replace + description: Replace with value in ALPHA[7:0] + value: 1 + - name: Multiply + description: Multiply with value in ALPHA[7:0] + value: 2 enum/BGPFCCR_CCM: bit_size: 1 variants: - - name: ARGB8888 - description: CLUT color format ARGB8888 - value: 0 - - name: RGB888 - description: CLUT color format RGB888 - value: 1 + - name: ARGB8888 + description: CLUT color format ARGB8888 + value: 0 + - name: RGB888 + description: CLUT color format RGB888 + value: 1 enum/BGPFCCR_CM: bit_size: 4 variants: - - name: ARGB8888 - description: Color mode ARGB8888 - value: 0 - - name: RGB888 - description: Color mode RGB888 - value: 1 - - name: RGB565 - description: Color mode RGB565 - value: 2 - - name: ARGB1555 - description: Color mode ARGB1555 - value: 3 - - name: ARGB4444 - description: Color mode ARGB4444 - value: 4 - - name: L8 - description: Color mode L8 - value: 5 - - name: AL44 - description: Color mode AL44 - value: 6 - - name: AL88 - description: Color mode AL88 - value: 7 - - name: L4 - description: Color mode L4 - value: 8 - - name: A8 - description: Color mode A8 - value: 9 - - name: A4 - description: Color mode A4 - value: 10 + - name: ARGB8888 + description: Color mode ARGB8888 + value: 0 + - name: RGB888 + description: Color mode RGB888 + value: 1 + - name: RGB565 + description: Color mode RGB565 + value: 2 + - name: ARGB1555 + description: Color mode ARGB1555 + value: 3 + - name: ARGB4444 + description: Color mode ARGB4444 + value: 4 + - name: L8 + description: Color mode L8 + value: 5 + - name: AL44 + description: Color mode AL44 + value: 6 + - name: AL88 + description: Color mode AL88 + value: 7 + - name: L4 + description: Color mode L4 + value: 8 + - name: A8 + description: Color mode A8 + value: 9 + - name: A4 + description: Color mode A4 + value: 10 enum/BGPFCCR_START: bit_size: 1 variants: - - name: Start - description: Start the automatic loading of the CLUT - value: 1 + - name: Start + description: Start the automatic loading of the CLUT + value: 1 enum/CAECIF: bit_size: 1 variants: - - name: Clear - description: Clear the CAEIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the CAEIF flag in the ISR register + value: 1 enum/CAEIE: bit_size: 1 variants: - - name: Disabled - description: CAE interrupt disabled - value: 0 - - name: Enabled - description: CAE interrupt enabled - value: 1 + - name: Disabled + description: CAE interrupt disabled + value: 0 + - name: Enabled + description: CAE interrupt enabled + value: 1 enum/CCEIF: bit_size: 1 variants: - - name: Clear - description: Clear the CEIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the CEIF flag in the ISR register + value: 1 enum/CCTCIF: bit_size: 1 variants: - - name: Clear - description: Clear the CTCIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the CTCIF flag in the ISR register + value: 1 enum/CEIE: bit_size: 1 variants: - - name: Disabled - description: CE interrupt disabled - value: 0 - - name: Enabled - description: CE interrupt enabled - value: 1 + - name: Disabled + description: CE interrupt disabled + value: 0 + - name: Enabled + description: CE interrupt enabled + value: 1 enum/CR_START: bit_size: 1 variants: - - name: Start - description: Launch the DMA2D - value: 1 + - name: Start + description: Launch the DMA2D + value: 1 enum/CTCIE: bit_size: 1 variants: - - name: Disabled - description: CTC interrupt disabled - value: 0 - - name: Enabled - description: CTC interrupt enabled - value: 1 + - name: Disabled + description: CTC interrupt disabled + value: 0 + - name: Enabled + description: CTC interrupt enabled + value: 1 enum/CTCIF: bit_size: 1 variants: - - name: Clear - description: Clear the TCIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the TCIF flag in the ISR register + value: 1 enum/CTEIF: bit_size: 1 variants: - - name: Clear - description: Clear the TEIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the TEIF flag in the ISR register + value: 1 enum/CTWIF: bit_size: 1 variants: - - name: Clear - description: Clear the TWIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the TWIF flag in the ISR register + value: 1 enum/EN: bit_size: 1 variants: - - name: Disabled - description: Disabled AHB/AXI dead-time functionality - value: 0 - - name: Enabled - description: Enabled AHB/AXI dead-time functionality - value: 1 + - name: Disabled + description: Disabled AHB/AXI dead-time functionality + value: 0 + - name: Enabled + description: Enabled AHB/AXI dead-time functionality + value: 1 enum/FGPFCCR_AM: bit_size: 2 variants: - - name: NoModify - description: No modification of alpha channel - value: 0 - - name: Replace - description: "Replace with value in ALPHA[7:0]" - value: 1 - - name: Multiply - description: "Multiply with value in ALPHA[7:0]" - value: 2 + - name: NoModify + description: No modification of alpha channel + value: 0 + - name: Replace + description: Replace with value in ALPHA[7:0] + value: 1 + - name: Multiply + description: Multiply with value in ALPHA[7:0] + value: 2 enum/FGPFCCR_CCM: bit_size: 1 variants: - - name: ARGB8888 - description: CLUT color format ARGB8888 - value: 0 - - name: RGB888 - description: CLUT color format RGB888 - value: 1 + - name: ARGB8888 + description: CLUT color format ARGB8888 + value: 0 + - name: RGB888 + description: CLUT color format RGB888 + value: 1 enum/FGPFCCR_CM: bit_size: 4 variants: - - name: ARGB8888 - description: Color mode ARGB8888 - value: 0 - - name: RGB888 - description: Color mode RGB888 - value: 1 - - name: RGB565 - description: Color mode RGB565 - value: 2 - - name: ARGB1555 - description: Color mode ARGB1555 - value: 3 - - name: ARGB4444 - description: Color mode ARGB4444 - value: 4 - - name: L8 - description: Color mode L8 - value: 5 - - name: AL44 - description: Color mode AL44 - value: 6 - - name: AL88 - description: Color mode AL88 - value: 7 - - name: L4 - description: Color mode L4 - value: 8 - - name: A8 - description: Color mode A8 - value: 9 - - name: A4 - description: Color mode A4 - value: 10 + - name: ARGB8888 + description: Color mode ARGB8888 + value: 0 + - name: RGB888 + description: Color mode RGB888 + value: 1 + - name: RGB565 + description: Color mode RGB565 + value: 2 + - name: ARGB1555 + description: Color mode ARGB1555 + value: 3 + - name: ARGB4444 + description: Color mode ARGB4444 + value: 4 + - name: L8 + description: Color mode L8 + value: 5 + - name: AL44 + description: Color mode AL44 + value: 6 + - name: AL88 + description: Color mode AL88 + value: 7 + - name: L4 + description: Color mode L4 + value: 8 + - name: A8 + description: Color mode A8 + value: 9 + - name: A4 + description: Color mode A4 + value: 10 enum/FGPFCCR_START: bit_size: 1 variants: - - name: Start - description: Start the automatic loading of the CLUT - value: 1 + - name: Start + description: Start the automatic loading of the CLUT + value: 1 enum/MODE: bit_size: 2 variants: - - name: MemoryToMemory - description: Memory-to-memory (FG fetch only) - value: 0 - - name: MemoryToMemoryPFC - description: Memory-to-memory with PFC (FG fetch only with FG PFC active) - value: 1 - - name: MemoryToMemoryPFCBlending - description: Memory-to-memory with blending (FG and BG fetch with PFC and blending) - value: 2 - - name: RegisterToMemory - description: Register-to-memory - value: 3 + - name: MemoryToMemory + description: Memory-to-memory (FG fetch only) + value: 0 + - name: MemoryToMemoryPFC + description: Memory-to-memory with PFC (FG fetch only with FG PFC active) + value: 1 + - name: MemoryToMemoryPFCBlending + description: Memory-to-memory with blending (FG and BG fetch with PFC and blending) + value: 2 + - name: RegisterToMemory + description: Register-to-memory + value: 3 enum/OPFCCR_CM: bit_size: 3 variants: - - name: ARGB8888 - description: ARGB8888 - value: 0 - - name: RGB888 - description: RGB888 - value: 1 - - name: RGB565 - description: RGB565 - value: 2 - - name: ARGB1555 - description: ARGB1555 - value: 3 - - name: ARGB4444 - description: ARGB4444 - value: 4 + - name: ARGB8888 + description: ARGB8888 + value: 0 + - name: RGB888 + description: RGB888 + value: 1 + - name: RGB565 + description: RGB565 + value: 2 + - name: ARGB1555 + description: ARGB1555 + value: 3 + - name: ARGB4444 + description: ARGB4444 + value: 4 enum/SUSP: bit_size: 1 variants: - - name: NotSuspended - description: Transfer not suspended - value: 0 - - name: Suspended - description: Transfer suspended - value: 1 + - name: NotSuspended + description: Transfer not suspended + value: 0 + - name: Suspended + description: Transfer suspended + value: 1 enum/TCIE: bit_size: 1 variants: - - name: Disabled - description: TC interrupt disabled - value: 0 - - name: Enabled - description: TC interrupt enabled - value: 1 + - name: Disabled + description: TC interrupt disabled + value: 0 + - name: Enabled + description: TC interrupt enabled + value: 1 enum/TEIE: bit_size: 1 variants: - - name: Disabled - description: TE interrupt disabled - value: 0 - - name: Enabled - description: TE interrupt enabled - value: 1 + - name: Disabled + description: TE interrupt disabled + value: 0 + - name: Enabled + description: TE interrupt enabled + value: 1 enum/TWIE: bit_size: 1 variants: - - name: Disabled - description: TW interrupt disabled - value: 0 - - name: Enabled - description: TW interrupt enabled - value: 1 + - name: Disabled + description: TW interrupt disabled + value: 0 + - name: Enabled + description: TW interrupt enabled + value: 1 diff --git a/data/registers/dma2d_v2.yaml b/data/registers/dma2d_v2.yaml index 2c55e6e..6ef13eb 100644 --- a/data/registers/dma2d_v2.yaml +++ b/data/registers/dma2d_v2.yaml @@ -1,787 +1,786 @@ ---- block/DMA2D: description: DMA2D items: - - name: CR - description: DMA2D control register - byte_offset: 0 - fieldset: CR - - name: ISR - description: DMA2D Interrupt Status Register - byte_offset: 4 - access: Read - fieldset: ISR - - name: IFCR - description: DMA2D interrupt flag clear register - byte_offset: 8 - fieldset: IFCR - - name: FGMAR - description: DMA2D foreground memory address register - byte_offset: 12 - fieldset: FGMAR - - name: FGOR - description: DMA2D foreground offset register - byte_offset: 16 - fieldset: FGOR - - name: BGMAR - description: DMA2D background memory address register - byte_offset: 20 - fieldset: BGMAR - - name: BGOR - description: DMA2D background offset register - byte_offset: 24 - fieldset: BGOR - - name: FGPFCCR - description: DMA2D foreground PFC control register - byte_offset: 28 - fieldset: FGPFCCR - - name: FGCOLR - description: DMA2D foreground color register - byte_offset: 32 - fieldset: FGCOLR - - name: BGPFCCR - description: DMA2D background PFC control register - byte_offset: 36 - fieldset: BGPFCCR - - name: BGCOLR - description: DMA2D background color register - byte_offset: 40 - fieldset: BGCOLR - - name: FGCMAR - description: DMA2D foreground CLUT memory address register - byte_offset: 44 - fieldset: FGCMAR - - name: BGCMAR - description: DMA2D background CLUT memory address register - byte_offset: 48 - fieldset: BGCMAR - - name: OPFCCR - description: DMA2D output PFC control register - byte_offset: 52 - fieldset: OPFCCR - - name: OCOLR - description: DMA2D output color register - byte_offset: 56 - fieldset: OCOLR - - name: OMAR - description: DMA2D output memory address register - byte_offset: 60 - fieldset: OMAR - - name: OOR - description: DMA2D output offset register - byte_offset: 64 - fieldset: OOR - - name: NLR - description: DMA2D number of line register - byte_offset: 68 - fieldset: NLR - - name: LWR - description: DMA2D line watermark register - byte_offset: 72 - fieldset: LWR - - name: AMTCR - description: DMA2D AXI master timer configuration register - byte_offset: 76 - fieldset: AMTCR + - name: CR + description: DMA2D control register + byte_offset: 0 + fieldset: CR + - name: ISR + description: DMA2D Interrupt Status Register + byte_offset: 4 + access: Read + fieldset: ISR + - name: IFCR + description: DMA2D interrupt flag clear register + byte_offset: 8 + fieldset: IFCR + - name: FGMAR + description: DMA2D foreground memory address register + byte_offset: 12 + fieldset: FGMAR + - name: FGOR + description: DMA2D foreground offset register + byte_offset: 16 + fieldset: FGOR + - name: BGMAR + description: DMA2D background memory address register + byte_offset: 20 + fieldset: BGMAR + - name: BGOR + description: DMA2D background offset register + byte_offset: 24 + fieldset: BGOR + - name: FGPFCCR + description: DMA2D foreground PFC control register + byte_offset: 28 + fieldset: FGPFCCR + - name: FGCOLR + description: DMA2D foreground color register + byte_offset: 32 + fieldset: FGCOLR + - name: BGPFCCR + description: DMA2D background PFC control register + byte_offset: 36 + fieldset: BGPFCCR + - name: BGCOLR + description: DMA2D background color register + byte_offset: 40 + fieldset: BGCOLR + - name: FGCMAR + description: DMA2D foreground CLUT memory address register + byte_offset: 44 + fieldset: FGCMAR + - name: BGCMAR + description: DMA2D background CLUT memory address register + byte_offset: 48 + fieldset: BGCMAR + - name: OPFCCR + description: DMA2D output PFC control register + byte_offset: 52 + fieldset: OPFCCR + - name: OCOLR + description: DMA2D output color register + byte_offset: 56 + fieldset: OCOLR + - name: OMAR + description: DMA2D output memory address register + byte_offset: 60 + fieldset: OMAR + - name: OOR + description: DMA2D output offset register + byte_offset: 64 + fieldset: OOR + - name: NLR + description: DMA2D number of line register + byte_offset: 68 + fieldset: NLR + - name: LWR + description: DMA2D line watermark register + byte_offset: 72 + fieldset: LWR + - name: AMTCR + description: DMA2D AXI master timer configuration register + byte_offset: 76 + fieldset: AMTCR fieldset/AMTCR: description: DMA2D AXI master timer configuration register fields: - - name: EN - description: Enable Enables the dead time functionality. - bit_offset: 0 - bit_size: 1 - enum: EN - - name: DT - description: Dead Time Dead time value in the AXI clock cycle inserted between two consecutive accesses on the AXI master port. These bits represent the minimum guaranteed number of cycles between two consecutive AXI accesses. - bit_offset: 8 - bit_size: 8 + - name: EN + description: Enable Enables the dead time functionality. + bit_offset: 0 + bit_size: 1 + enum: EN + - name: DT + description: Dead Time Dead time value in the AXI clock cycle inserted between two consecutive accesses on the AXI master port. These bits represent the minimum guaranteed number of cycles between two consecutive AXI accesses. + bit_offset: 8 + bit_size: 8 fieldset/BGCMAR: description: DMA2D background CLUT memory address register fields: - - name: MA - description: "Memory address Address of the data used for the CLUT address dedicated to the background image. This register can only be written when no transfer is on going. Once the CLUT transfer has started, this register is read-only. If the background CLUT format is 32-bit, the address must be 32-bit aligned." - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory address Address of the data used for the CLUT address dedicated to the background image. This register can only be written when no transfer is on going. Once the CLUT transfer has started, this register is read-only. If the background CLUT format is 32-bit, the address must be 32-bit aligned. + bit_offset: 0 + bit_size: 32 fieldset/BGCOLR: description: DMA2D background color register fields: - - name: BLUE - description: "Blue Value These bits define the blue value for the A4 or A8 mode of the background. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: "Green Value These bits define the green value for the A4 or A8 mode of the background. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 8 - bit_size: 8 - - name: RED - description: "Red Value These bits define the red value for the A4 or A8 mode of the background. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 16 - bit_size: 8 + - name: BLUE + description: Blue Value These bits define the blue value for the A4 or A8 mode of the background. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green Value These bits define the green value for the A4 or A8 mode of the background. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red Value These bits define the red value for the A4 or A8 mode of the background. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 16 + bit_size: 8 fieldset/BGMAR: description: DMA2D background memory address register fields: - - name: MA - description: "Memory address Address of the data used for the background image. This register can only be written when data transfers are disabled. Once a data transfer has started, this register is read-only. The address alignment must match the image format selected e.g. a 32-bit per pixel format must be 32-bit aligned, a 16-bit per pixel format must be 16-bit aligned and a 4-bit per pixel format must be 8-bit aligned." - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory address Address of the data used for the background image. This register can only be written when data transfers are disabled. Once a data transfer has started, this register is read-only. The address alignment must match the image format selected e.g. a 32-bit per pixel format must be 32-bit aligned, a 16-bit per pixel format must be 16-bit aligned and a 4-bit per pixel format must be 8-bit aligned. + bit_offset: 0 + bit_size: 32 fieldset/BGOR: description: DMA2D background offset register fields: - - name: LO - description: "Line offset Line offset used for the background image (expressed in pixel). This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. These bits can only be written when data transfers are disabled. Once data transfer has started, they become read-only. If the image format is 4-bit per pixel, the line offset must be even." - bit_offset: 0 - bit_size: 16 + - name: LO + description: Line offset Line offset used for the background image (expressed in pixel). This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. These bits can only be written when data transfers are disabled. Once data transfer has started, they become read-only. If the image format is 4-bit per pixel, the line offset must be even. + bit_offset: 0 + bit_size: 16 fieldset/BGPFCCR: description: DMA2D background PFC control register fields: - - name: CM - description: "Color mode These bits define the color format of the foreground image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless" - bit_offset: 0 - bit_size: 4 - enum: BGPFCCR_CM - - name: CCM - description: "CLUT Color mode These bits define the color format of the CLUT. This register can only be written when the transfer is disabled. Once the CLUT transfer has started, this bit is read-only." - bit_offset: 4 - bit_size: 1 - enum: BGPFCCR_CCM - - name: START - description: "Start This bit is set to start the automatic loading of the CLUT. This bit is automatically reset: ** at the end of the transfer ** when the transfer is aborted by the user application by setting the ABORT bit in the DMA2D_CR ** when a transfer error occurs ** when the transfer has not started due to a configuration error or another transfer operation already on going (data transfer or automatic BackGround CLUT transfer)." - bit_offset: 5 - bit_size: 1 - enum: BGPFCCR_START - - name: CS - description: "CLUT size These bits define the size of the CLUT used for the BG. Once the CLUT transfer has started, this field is read-only. The number of CLUT entries is equal to CS[7:0] + 1." - bit_offset: 8 - bit_size: 8 - - name: AM - description: "Alpha mode These bits define which alpha channel value to be used for the background image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless" - bit_offset: 16 - bit_size: 2 - enum: BGPFCCR_AM - - name: AI - description: "Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only." - bit_offset: 20 - bit_size: 1 - enum: BGPFCCR_AI - - name: RBS - description: "Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only." - bit_offset: 21 - bit_size: 1 - enum: BGPFCCR_RBS - - name: ALPHA - description: "Alpha value These bits define a fixed alpha channel value which can replace the original alpha value or be multiplied with the original alpha value according to the alpha mode selected with bits AM[1: 0]. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 24 - bit_size: 8 + - name: CM + description: 'Color mode These bits define the color format of the foreground image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless' + bit_offset: 0 + bit_size: 4 + enum: BGPFCCR_CM + - name: CCM + description: CLUT Color mode These bits define the color format of the CLUT. This register can only be written when the transfer is disabled. Once the CLUT transfer has started, this bit is read-only. + bit_offset: 4 + bit_size: 1 + enum: BGPFCCR_CCM + - name: START + description: 'Start This bit is set to start the automatic loading of the CLUT. This bit is automatically reset: ** at the end of the transfer ** when the transfer is aborted by the user application by setting the ABORT bit in the DMA2D_CR ** when a transfer error occurs ** when the transfer has not started due to a configuration error or another transfer operation already on going (data transfer or automatic BackGround CLUT transfer).' + bit_offset: 5 + bit_size: 1 + enum: BGPFCCR_START + - name: CS + description: CLUT size These bits define the size of the CLUT used for the BG. Once the CLUT transfer has started, this field is read-only. The number of CLUT entries is equal to CS[7:0] + 1. + bit_offset: 8 + bit_size: 8 + - name: AM + description: 'Alpha mode These bits define which alpha channel value to be used for the background image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless' + bit_offset: 16 + bit_size: 2 + enum: BGPFCCR_AM + - name: AI + description: Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only. + bit_offset: 20 + bit_size: 1 + enum: BGPFCCR_AI + - name: RBS + description: Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only. + bit_offset: 21 + bit_size: 1 + enum: BGPFCCR_RBS + - name: ALPHA + description: 'Alpha value These bits define a fixed alpha channel value which can replace the original alpha value or be multiplied with the original alpha value according to the alpha mode selected with bits AM[1: 0]. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.' + bit_offset: 24 + bit_size: 8 fieldset/CR: description: DMA2D control register fields: - - name: START - description: Start This bit can be used to launch the DMA2D according to the parameters loaded in the various configuration registers - bit_offset: 0 - bit_size: 1 - enum: CR_START - - name: SUSP - description: Suspend This bit can be used to suspend the current transfer. This bit is set and reset by software. It is automatically reset by hardware when the START bit is reset. - bit_offset: 1 - bit_size: 1 - enum: SUSP - - name: ABORT - description: Abort This bit can be used to abort the current transfer. This bit is set by software and is automatically reset by hardware when the START bit is reset. - bit_offset: 2 - bit_size: 1 - enum: ABORT - - name: TEIE - description: Transfer error interrupt enable This bit is set and cleared by software. - bit_offset: 8 - bit_size: 1 - enum: TEIE - - name: TCIE - description: Transfer complete interrupt enable This bit is set and cleared by software. - bit_offset: 9 - bit_size: 1 - enum: TCIE - - name: TWIE - description: Transfer watermark interrupt enable This bit is set and cleared by software. - bit_offset: 10 - bit_size: 1 - enum: TWIE - - name: CAEIE - description: CLUT access error interrupt enable This bit is set and cleared by software. - bit_offset: 11 - bit_size: 1 - enum: CAEIE - - name: CTCIE - description: CLUT transfer complete interrupt enable This bit is set and cleared by software. - bit_offset: 12 - bit_size: 1 - enum: CTCIE - - name: CEIE - description: Configuration Error Interrupt Enable This bit is set and cleared by software. - bit_offset: 13 - bit_size: 1 - enum: CEIE - - name: MODE - description: DMA2D mode This bit is set and cleared by software. It cannot be modified while a transfer is ongoing. - bit_offset: 16 - bit_size: 2 - enum: MODE + - name: START + description: Start This bit can be used to launch the DMA2D according to the parameters loaded in the various configuration registers + bit_offset: 0 + bit_size: 1 + enum: CR_START + - name: SUSP + description: Suspend This bit can be used to suspend the current transfer. This bit is set and reset by software. It is automatically reset by hardware when the START bit is reset. + bit_offset: 1 + bit_size: 1 + enum: SUSP + - name: ABORT + description: Abort This bit can be used to abort the current transfer. This bit is set by software and is automatically reset by hardware when the START bit is reset. + bit_offset: 2 + bit_size: 1 + enum: ABORT + - name: TEIE + description: Transfer error interrupt enable This bit is set and cleared by software. + bit_offset: 8 + bit_size: 1 + enum: TEIE + - name: TCIE + description: Transfer complete interrupt enable This bit is set and cleared by software. + bit_offset: 9 + bit_size: 1 + enum: TCIE + - name: TWIE + description: Transfer watermark interrupt enable This bit is set and cleared by software. + bit_offset: 10 + bit_size: 1 + enum: TWIE + - name: CAEIE + description: CLUT access error interrupt enable This bit is set and cleared by software. + bit_offset: 11 + bit_size: 1 + enum: CAEIE + - name: CTCIE + description: CLUT transfer complete interrupt enable This bit is set and cleared by software. + bit_offset: 12 + bit_size: 1 + enum: CTCIE + - name: CEIE + description: Configuration Error Interrupt Enable This bit is set and cleared by software. + bit_offset: 13 + bit_size: 1 + enum: CEIE + - name: MODE + description: DMA2D mode This bit is set and cleared by software. It cannot be modified while a transfer is ongoing. + bit_offset: 16 + bit_size: 2 + enum: MODE fieldset/FGCMAR: description: DMA2D foreground CLUT memory address register fields: - - name: MA - description: "Memory Address Address of the data used for the CLUT address dedicated to the foreground image. This register can only be written when no transfer is ongoing. Once the CLUT transfer has started, this register is read-only. If the foreground CLUT format is 32-bit, the address must be 32-bit aligned." - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory Address Address of the data used for the CLUT address dedicated to the foreground image. This register can only be written when no transfer is ongoing. Once the CLUT transfer has started, this register is read-only. If the foreground CLUT format is 32-bit, the address must be 32-bit aligned. + bit_offset: 0 + bit_size: 32 fieldset/FGCOLR: description: DMA2D foreground color register fields: - - name: BLUE - description: "Blue Value These bits defines the blue value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, They are read-only." - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: "Green Value These bits defines the green value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, They are read-only." - bit_offset: 8 - bit_size: 8 - - name: RED - description: "Red Value These bits defines the red value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 16 - bit_size: 8 + - name: BLUE + description: Blue Value These bits defines the blue value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, They are read-only. + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green Value These bits defines the green value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, They are read-only. + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red Value These bits defines the red value for the A4 or A8 mode of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 16 + bit_size: 8 fieldset/FGMAR: description: DMA2D foreground memory address register fields: - - name: MA - description: "Memory address Address of the data used for the foreground image. This register can only be written when data transfers are disabled. Once the data transfer has started, this register is read-only. The address alignment must match the image format selected e.g. a 32-bit per pixel format must be 32-bit aligned, a 16-bit per pixel format must be 16-bit aligned and a 4-bit per pixel format must be 8-bit aligned." - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory address Address of the data used for the foreground image. This register can only be written when data transfers are disabled. Once the data transfer has started, this register is read-only. The address alignment must match the image format selected e.g. a 32-bit per pixel format must be 32-bit aligned, a 16-bit per pixel format must be 16-bit aligned and a 4-bit per pixel format must be 8-bit aligned. + bit_offset: 0 + bit_size: 32 fieldset/FGOR: description: DMA2D foreground offset register fields: - - name: LO - description: "Line offset Line offset used for the foreground expressed in pixel. This value is used to generate the address. It is added at the end of each line to determine the starting address of the next line. These bits can only be written when data transfers are disabled. Once a data transfer has started, they become read-only. If the image format is 4-bit per pixel, the line offset must be even." - bit_offset: 0 - bit_size: 16 + - name: LO + description: Line offset Line offset used for the foreground expressed in pixel. This value is used to generate the address. It is added at the end of each line to determine the starting address of the next line. These bits can only be written when data transfers are disabled. Once a data transfer has started, they become read-only. If the image format is 4-bit per pixel, the line offset must be even. + bit_offset: 0 + bit_size: 16 fieldset/FGPFCCR: description: DMA2D foreground PFC control register fields: - - name: CM - description: "Color mode These bits defines the color format of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless" - bit_offset: 0 - bit_size: 4 - enum: FGPFCCR_CM - - name: CCM - description: "CLUT color mode This bit defines the color format of the CLUT. It can only be written when the transfer is disabled. Once the CLUT transfer has started, this bit is read-only." - bit_offset: 4 - bit_size: 1 - enum: FGPFCCR_CCM - - name: START - description: "Start This bit can be set to start the automatic loading of the CLUT. It is automatically reset: ** at the end of the transfer ** when the transfer is aborted by the user application by setting the ABORT bit in DMA2D_CR ** when a transfer error occurs ** when the transfer has not started due to a configuration error or another transfer operation already ongoing (data transfer or automatic background CLUT transfer)." - bit_offset: 5 - bit_size: 1 - enum: FGPFCCR_START - - name: CS - description: "CLUT size These bits define the size of the CLUT used for the foreground image. Once the CLUT transfer has started, this field is read-only. The number of CLUT entries is equal to CS[7:0] + 1." - bit_offset: 8 - bit_size: 8 - - name: AM - description: "Alpha mode These bits select the alpha channel value to be used for the foreground image. They can only be written data the transfer are disabled. Once the transfer has started, they become read-only. other configurations are meaningless" - bit_offset: 16 - bit_size: 2 - enum: FGPFCCR_AM - - name: CSS - description: "Chroma Sub-Sampling These bits define the chroma sub-sampling mode for YCbCr color mode. Once the transfer has started, these bits are read-only. others: meaningless" - bit_offset: 18 - bit_size: 2 - - name: AI - description: "Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only." - bit_offset: 20 - bit_size: 1 - enum: FGPFCCR_AI - - name: RBS - description: "Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only." - bit_offset: 21 - bit_size: 1 - enum: FGPFCCR_RBS - - name: ALPHA - description: "Alpha value These bits define a fixed alpha channel value which can replace the original alpha value or be multiplied by the original alpha value according to the alpha mode selected through the AM[1:0] bits. These bits can only be written when data transfers are disabled. Once a transfer has started, they become read-only." - bit_offset: 24 - bit_size: 8 + - name: CM + description: 'Color mode These bits defines the color format of the foreground image. They can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless' + bit_offset: 0 + bit_size: 4 + enum: FGPFCCR_CM + - name: CCM + description: CLUT color mode This bit defines the color format of the CLUT. It can only be written when the transfer is disabled. Once the CLUT transfer has started, this bit is read-only. + bit_offset: 4 + bit_size: 1 + enum: FGPFCCR_CCM + - name: START + description: 'Start This bit can be set to start the automatic loading of the CLUT. It is automatically reset: ** at the end of the transfer ** when the transfer is aborted by the user application by setting the ABORT bit in DMA2D_CR ** when a transfer error occurs ** when the transfer has not started due to a configuration error or another transfer operation already ongoing (data transfer or automatic background CLUT transfer).' + bit_offset: 5 + bit_size: 1 + enum: FGPFCCR_START + - name: CS + description: CLUT size These bits define the size of the CLUT used for the foreground image. Once the CLUT transfer has started, this field is read-only. The number of CLUT entries is equal to CS[7:0] + 1. + bit_offset: 8 + bit_size: 8 + - name: AM + description: Alpha mode These bits select the alpha channel value to be used for the foreground image. They can only be written data the transfer are disabled. Once the transfer has started, they become read-only. other configurations are meaningless + bit_offset: 16 + bit_size: 2 + enum: FGPFCCR_AM + - name: CSS + description: 'Chroma Sub-Sampling These bits define the chroma sub-sampling mode for YCbCr color mode. Once the transfer has started, these bits are read-only. others: meaningless' + bit_offset: 18 + bit_size: 2 + - name: AI + description: Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only. + bit_offset: 20 + bit_size: 1 + enum: FGPFCCR_AI + - name: RBS + description: Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only. + bit_offset: 21 + bit_size: 1 + enum: FGPFCCR_RBS + - name: ALPHA + description: Alpha value These bits define a fixed alpha channel value which can replace the original alpha value or be multiplied by the original alpha value according to the alpha mode selected through the AM[1:0] bits. These bits can only be written when data transfers are disabled. Once a transfer has started, they become read-only. + bit_offset: 24 + bit_size: 8 fieldset/IFCR: description: DMA2D interrupt flag clear register fields: - - name: CTEIF - description: Clear Transfer error interrupt flag Programming this bit to 1 clears the TEIF flag in the DMA2D_ISR register - bit_offset: 0 - bit_size: 1 - enum: CTEIF - - name: CTCIF - description: Clear transfer complete interrupt flag Programming this bit to 1 clears the TCIF flag in the DMA2D_ISR register - bit_offset: 1 - bit_size: 1 - enum: CTCIF - - name: CTWIF - description: Clear transfer watermark interrupt flag Programming this bit to 1 clears the TWIF flag in the DMA2D_ISR register - bit_offset: 2 - bit_size: 1 - enum: CTWIF - - name: CAECIF - description: Clear CLUT access error interrupt flag Programming this bit to 1 clears the CAEIF flag in the DMA2D_ISR register - bit_offset: 3 - bit_size: 1 - enum: CAECIF - - name: CCTCIF - description: Clear CLUT transfer complete interrupt flag Programming this bit to 1 clears the CTCIF flag in the DMA2D_ISR register - bit_offset: 4 - bit_size: 1 - enum: CCTCIF - - name: CCEIF - description: Clear configuration error interrupt flag Programming this bit to 1 clears the CEIF flag in the DMA2D_ISR register - bit_offset: 5 - bit_size: 1 - enum: CCEIF + - name: CTEIF + description: Clear Transfer error interrupt flag Programming this bit to 1 clears the TEIF flag in the DMA2D_ISR register + bit_offset: 0 + bit_size: 1 + enum: CTEIF + - name: CTCIF + description: Clear transfer complete interrupt flag Programming this bit to 1 clears the TCIF flag in the DMA2D_ISR register + bit_offset: 1 + bit_size: 1 + enum: CTCIF + - name: CTWIF + description: Clear transfer watermark interrupt flag Programming this bit to 1 clears the TWIF flag in the DMA2D_ISR register + bit_offset: 2 + bit_size: 1 + enum: CTWIF + - name: CAECIF + description: Clear CLUT access error interrupt flag Programming this bit to 1 clears the CAEIF flag in the DMA2D_ISR register + bit_offset: 3 + bit_size: 1 + enum: CAECIF + - name: CCTCIF + description: Clear CLUT transfer complete interrupt flag Programming this bit to 1 clears the CTCIF flag in the DMA2D_ISR register + bit_offset: 4 + bit_size: 1 + enum: CCTCIF + - name: CCEIF + description: Clear configuration error interrupt flag Programming this bit to 1 clears the CEIF flag in the DMA2D_ISR register + bit_offset: 5 + bit_size: 1 + enum: CCEIF fieldset/ISR: description: DMA2D Interrupt Status Register fields: - - name: TEIF - description: Transfer error interrupt flag This bit is set when an error occurs during a DMA transfer (data transfer or automatic CLUT loading). - bit_offset: 0 - bit_size: 1 - - name: TCIF - description: Transfer complete interrupt flag This bit is set when a DMA2D transfer operation is complete (data transfer only). - bit_offset: 1 - bit_size: 1 - - name: TWIF - description: Transfer watermark interrupt flag This bit is set when the last pixel of the watermarked line has been transferred. - bit_offset: 2 - bit_size: 1 - - name: CAEIF - description: CLUT access error interrupt flag This bit is set when the CPU accesses the CLUT while the CLUT is being automatically copied from a system memory to the internal DMA2D. - bit_offset: 3 - bit_size: 1 - - name: CTCIF - description: CLUT transfer complete interrupt flag This bit is set when the CLUT copy from a system memory area to the internal DMA2D memory is complete. - bit_offset: 4 - bit_size: 1 - - name: CEIF - description: "Configuration error interrupt flag This bit is set when the START bit of DMA2D_CR, DMA2DFGPFCCR or DMA2D_BGPFCCR is set and a wrong configuration has been programmed." - bit_offset: 5 - bit_size: 1 + - name: TEIF + description: Transfer error interrupt flag This bit is set when an error occurs during a DMA transfer (data transfer or automatic CLUT loading). + bit_offset: 0 + bit_size: 1 + - name: TCIF + description: Transfer complete interrupt flag This bit is set when a DMA2D transfer operation is complete (data transfer only). + bit_offset: 1 + bit_size: 1 + - name: TWIF + description: Transfer watermark interrupt flag This bit is set when the last pixel of the watermarked line has been transferred. + bit_offset: 2 + bit_size: 1 + - name: CAEIF + description: CLUT access error interrupt flag This bit is set when the CPU accesses the CLUT while the CLUT is being automatically copied from a system memory to the internal DMA2D. + bit_offset: 3 + bit_size: 1 + - name: CTCIF + description: CLUT transfer complete interrupt flag This bit is set when the CLUT copy from a system memory area to the internal DMA2D memory is complete. + bit_offset: 4 + bit_size: 1 + - name: CEIF + description: Configuration error interrupt flag This bit is set when the START bit of DMA2D_CR, DMA2DFGPFCCR or DMA2D_BGPFCCR is set and a wrong configuration has been programmed. + bit_offset: 5 + bit_size: 1 fieldset/LWR: description: DMA2D line watermark register fields: - - name: LW - description: "Line watermark These bits allow to configure the line watermark for interrupt generation. An interrupt is raised when the last pixel of the watermarked line has been transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 0 - bit_size: 16 + - name: LW + description: Line watermark These bits allow to configure the line watermark for interrupt generation. An interrupt is raised when the last pixel of the watermarked line has been transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 0 + bit_size: 16 fieldset/NLR: description: DMA2D number of line register fields: - - name: NL - description: "Number of lines Number of lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 0 - bit_size: 16 - - name: PL - description: "Pixel per lines Number of pixels per lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. If any of the input image format is 4-bit per pixel, pixel per lines must be even." - bit_offset: 16 - bit_size: 14 + - name: NL + description: Number of lines Number of lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 0 + bit_size: 16 + - name: PL + description: Pixel per lines Number of pixels per lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. If any of the input image format is 4-bit per pixel, pixel per lines must be even. + bit_offset: 16 + bit_size: 14 fieldset/OCOLR: description: DMA2D output color register fields: - - name: BLUE - description: "Blue Value These bits define the blue value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: "Green Value These bits define the green value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 8 - bit_size: 8 - - name: RED - description: "Red Value These bits define the red value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 16 - bit_size: 8 - - name: ALPHA - description: "Alpha Channel Value These bits define the alpha channel of the output color. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 24 - bit_size: 8 + - name: BLUE + description: Blue Value These bits define the blue value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green Value These bits define the green value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red Value These bits define the red value of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 16 + bit_size: 8 + - name: ALPHA + description: Alpha Channel Value These bits define the alpha channel of the output color. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 24 + bit_size: 8 fieldset/OMAR: description: DMA2D output memory address register fields: - - name: MA - description: "Memory Address Address of the data used for the output FIFO. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. The address alignment must match the image format selected e.g. a 32-bit per pixel format must be 32-bit aligned and a 16-bit per pixel format must be 16-bit aligned." - bit_offset: 0 - bit_size: 32 + - name: MA + description: Memory Address Address of the data used for the output FIFO. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. The address alignment must match the image format selected e.g. a 32-bit per pixel format must be 32-bit aligned and a 16-bit per pixel format must be 16-bit aligned. + bit_offset: 0 + bit_size: 32 fieldset/OOR: description: DMA2D output offset register fields: - - name: LO - description: "Line Offset Line offset used for the output (expressed in pixels). This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only." - bit_offset: 0 - bit_size: 16 + - name: LO + description: Line Offset Line offset used for the output (expressed in pixels). This value is used for the address generation. It is added at the end of each line to determine the starting address of the next line. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. + bit_offset: 0 + bit_size: 16 fieldset/OPFCCR: description: DMA2D output PFC control register fields: - - name: CM - description: "Color mode These bits define the color format of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless" - bit_offset: 0 - bit_size: 3 - enum: OPFCCR_CM - - name: SB - description: Swap Bytes - bit_offset: 8 - bit_size: 1 - enum: SB - - name: AI - description: "Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only." - bit_offset: 20 - bit_size: 1 - enum: OPFCCR_AI - - name: RBS - description: "Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only." - bit_offset: 21 - bit_size: 1 - enum: OPFCCR_RBS + - name: CM + description: 'Color mode These bits define the color format of the output image. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. others: meaningless' + bit_offset: 0 + bit_size: 3 + enum: OPFCCR_CM + - name: SB + description: Swap Bytes + bit_offset: 8 + bit_size: 1 + enum: SB + - name: AI + description: Alpha Inverted This bit inverts the alpha value. Once the transfer has started, this bit is read-only. + bit_offset: 20 + bit_size: 1 + enum: OPFCCR_AI + - name: RBS + description: Red Blue Swap This bit allows to swap the R & B to support BGR or ABGR color formats. Once the transfer has started, this bit is read-only. + bit_offset: 21 + bit_size: 1 + enum: OPFCCR_RBS enum/ABORT: bit_size: 1 variants: - - name: AbortRequest - description: Transfer abort requested - value: 1 + - name: AbortRequest + description: Transfer abort requested + value: 1 enum/BGPFCCR_AI: bit_size: 1 variants: - - name: RegularAlpha - description: Regular alpha - value: 0 - - name: InvertedAlpha - description: Inverted alpha - value: 1 + - name: RegularAlpha + description: Regular alpha + value: 0 + - name: InvertedAlpha + description: Inverted alpha + value: 1 enum/BGPFCCR_AM: bit_size: 2 variants: - - name: NoModify - description: No modification of alpha channel - value: 0 - - name: Replace - description: "Replace with value in ALPHA[7:0]" - value: 1 - - name: Multiply - description: "Multiply with value in ALPHA[7:0]" - value: 2 + - name: NoModify + description: No modification of alpha channel + value: 0 + - name: Replace + description: Replace with value in ALPHA[7:0] + value: 1 + - name: Multiply + description: Multiply with value in ALPHA[7:0] + value: 2 enum/BGPFCCR_CCM: bit_size: 1 variants: - - name: ARGB8888 - description: CLUT color format ARGB8888 - value: 0 - - name: RGB888 - description: CLUT color format RGB888 - value: 1 + - name: ARGB8888 + description: CLUT color format ARGB8888 + value: 0 + - name: RGB888 + description: CLUT color format RGB888 + value: 1 enum/BGPFCCR_CM: bit_size: 4 variants: - - name: ARGB8888 - description: Color mode ARGB8888 - value: 0 - - name: RGB888 - description: Color mode RGB888 - value: 1 - - name: RGB565 - description: Color mode RGB565 - value: 2 - - name: ARGB1555 - description: Color mode ARGB1555 - value: 3 - - name: ARGB4444 - description: Color mode ARGB4444 - value: 4 - - name: L8 - description: Color mode L8 - value: 5 - - name: AL44 - description: Color mode AL44 - value: 6 - - name: AL88 - description: Color mode AL88 - value: 7 - - name: L4 - description: Color mode L4 - value: 8 - - name: A8 - description: Color mode A8 - value: 9 - - name: A4 - description: Color mode A4 - value: 10 + - name: ARGB8888 + description: Color mode ARGB8888 + value: 0 + - name: RGB888 + description: Color mode RGB888 + value: 1 + - name: RGB565 + description: Color mode RGB565 + value: 2 + - name: ARGB1555 + description: Color mode ARGB1555 + value: 3 + - name: ARGB4444 + description: Color mode ARGB4444 + value: 4 + - name: L8 + description: Color mode L8 + value: 5 + - name: AL44 + description: Color mode AL44 + value: 6 + - name: AL88 + description: Color mode AL88 + value: 7 + - name: L4 + description: Color mode L4 + value: 8 + - name: A8 + description: Color mode A8 + value: 9 + - name: A4 + description: Color mode A4 + value: 10 enum/BGPFCCR_RBS: bit_size: 1 variants: - - name: Regular - description: No Red Blue Swap (RGB or ARGB) - value: 0 - - name: Swap - description: Red Blue Swap (BGR or ABGR) - value: 1 + - name: Regular + description: No Red Blue Swap (RGB or ARGB) + value: 0 + - name: Swap + description: Red Blue Swap (BGR or ABGR) + value: 1 enum/BGPFCCR_START: bit_size: 1 variants: - - name: Start - description: Start the automatic loading of the CLUT - value: 1 + - name: Start + description: Start the automatic loading of the CLUT + value: 1 enum/CAECIF: bit_size: 1 variants: - - name: Clear - description: Clear the CAEIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the CAEIF flag in the ISR register + value: 1 enum/CAEIE: bit_size: 1 variants: - - name: Disabled - description: CAE interrupt disabled - value: 0 - - name: Enabled - description: CAE interrupt enabled - value: 1 + - name: Disabled + description: CAE interrupt disabled + value: 0 + - name: Enabled + description: CAE interrupt enabled + value: 1 enum/CCEIF: bit_size: 1 variants: - - name: Clear - description: Clear the CEIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the CEIF flag in the ISR register + value: 1 enum/CCTCIF: bit_size: 1 variants: - - name: Clear - description: Clear the CTCIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the CTCIF flag in the ISR register + value: 1 enum/CEIE: bit_size: 1 variants: - - name: Disabled - description: CE interrupt disabled - value: 0 - - name: Enabled - description: CE interrupt enabled - value: 1 + - name: Disabled + description: CE interrupt disabled + value: 0 + - name: Enabled + description: CE interrupt enabled + value: 1 enum/CR_START: bit_size: 1 variants: - - name: Start - description: Launch the DMA2D - value: 1 + - name: Start + description: Launch the DMA2D + value: 1 enum/CTCIE: bit_size: 1 variants: - - name: Disabled - description: CTC interrupt disabled - value: 0 - - name: Enabled - description: CTC interrupt enabled - value: 1 + - name: Disabled + description: CTC interrupt disabled + value: 0 + - name: Enabled + description: CTC interrupt enabled + value: 1 enum/CTCIF: bit_size: 1 variants: - - name: Clear - description: Clear the TCIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the TCIF flag in the ISR register + value: 1 enum/CTEIF: bit_size: 1 variants: - - name: Clear - description: Clear the TEIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the TEIF flag in the ISR register + value: 1 enum/CTWIF: bit_size: 1 variants: - - name: Clear - description: Clear the TWIF flag in the ISR register - value: 1 + - name: Clear + description: Clear the TWIF flag in the ISR register + value: 1 enum/EN: bit_size: 1 variants: - - name: Disabled - description: Disabled AHB/AXI dead-time functionality - value: 0 - - name: Enabled - description: Enabled AHB/AXI dead-time functionality - value: 1 + - name: Disabled + description: Disabled AHB/AXI dead-time functionality + value: 0 + - name: Enabled + description: Enabled AHB/AXI dead-time functionality + value: 1 enum/FGPFCCR_AI: bit_size: 1 variants: - - name: RegularAlpha - description: Regular alpha - value: 0 - - name: InvertedAlpha - description: Inverted alpha - value: 1 + - name: RegularAlpha + description: Regular alpha + value: 0 + - name: InvertedAlpha + description: Inverted alpha + value: 1 enum/FGPFCCR_AM: bit_size: 2 variants: - - name: NoModify - description: No modification of alpha channel - value: 0 - - name: Replace - description: "Replace with value in ALPHA[7:0]" - value: 1 - - name: Multiply - description: "Multiply with value in ALPHA[7:0]" - value: 2 + - name: NoModify + description: No modification of alpha channel + value: 0 + - name: Replace + description: Replace with value in ALPHA[7:0] + value: 1 + - name: Multiply + description: Multiply with value in ALPHA[7:0] + value: 2 enum/FGPFCCR_CCM: bit_size: 1 variants: - - name: ARGB8888 - description: CLUT color format ARGB8888 - value: 0 - - name: RGB888 - description: CLUT color format RGB888 - value: 1 + - name: ARGB8888 + description: CLUT color format ARGB8888 + value: 0 + - name: RGB888 + description: CLUT color format RGB888 + value: 1 enum/FGPFCCR_CM: bit_size: 4 variants: - - name: ARGB8888 - description: Color mode ARGB8888 - value: 0 - - name: RGB888 - description: Color mode RGB888 - value: 1 - - name: RGB565 - description: Color mode RGB565 - value: 2 - - name: ARGB1555 - description: Color mode ARGB1555 - value: 3 - - name: ARGB4444 - description: Color mode ARGB4444 - value: 4 - - name: L8 - description: Color mode L8 - value: 5 - - name: AL44 - description: Color mode AL44 - value: 6 - - name: AL88 - description: Color mode AL88 - value: 7 - - name: L4 - description: Color mode L4 - value: 8 - - name: A8 - description: Color mode A8 - value: 9 - - name: A4 - description: Color mode A4 - value: 10 - - name: YCbCr - description: Color mode YCbCr - value: 11 + - name: ARGB8888 + description: Color mode ARGB8888 + value: 0 + - name: RGB888 + description: Color mode RGB888 + value: 1 + - name: RGB565 + description: Color mode RGB565 + value: 2 + - name: ARGB1555 + description: Color mode ARGB1555 + value: 3 + - name: ARGB4444 + description: Color mode ARGB4444 + value: 4 + - name: L8 + description: Color mode L8 + value: 5 + - name: AL44 + description: Color mode AL44 + value: 6 + - name: AL88 + description: Color mode AL88 + value: 7 + - name: L4 + description: Color mode L4 + value: 8 + - name: A8 + description: Color mode A8 + value: 9 + - name: A4 + description: Color mode A4 + value: 10 + - name: YCbCr + description: Color mode YCbCr + value: 11 enum/FGPFCCR_RBS: bit_size: 1 variants: - - name: Regular - description: No Red Blue Swap (RGB or ARGB) - value: 0 - - name: Swap - description: Red Blue Swap (BGR or ABGR) - value: 1 + - name: Regular + description: No Red Blue Swap (RGB or ARGB) + value: 0 + - name: Swap + description: Red Blue Swap (BGR or ABGR) + value: 1 enum/FGPFCCR_START: bit_size: 1 variants: - - name: Start - description: Start the automatic loading of the CLUT - value: 1 + - name: Start + description: Start the automatic loading of the CLUT + value: 1 enum/MODE: bit_size: 2 variants: - - name: MemoryToMemory - description: Memory-to-memory (FG fetch only) - value: 0 - - name: MemoryToMemoryPFC - description: Memory-to-memory with PFC (FG fetch only with FG PFC active) - value: 1 - - name: MemoryToMemoryPFCBlending - description: Memory-to-memory with blending (FG and BG fetch with PFC and blending) - value: 2 - - name: RegisterToMemory - description: Register-to-memory - value: 3 + - name: MemoryToMemory + description: Memory-to-memory (FG fetch only) + value: 0 + - name: MemoryToMemoryPFC + description: Memory-to-memory with PFC (FG fetch only with FG PFC active) + value: 1 + - name: MemoryToMemoryPFCBlending + description: Memory-to-memory with blending (FG and BG fetch with PFC and blending) + value: 2 + - name: RegisterToMemory + description: Register-to-memory + value: 3 enum/OPFCCR_AI: bit_size: 1 variants: - - name: RegularAlpha - description: Regular alpha - value: 0 - - name: InvertedAlpha - description: Inverted alpha - value: 1 + - name: RegularAlpha + description: Regular alpha + value: 0 + - name: InvertedAlpha + description: Inverted alpha + value: 1 enum/OPFCCR_CM: bit_size: 3 variants: - - name: ARGB8888 - description: ARGB8888 - value: 0 - - name: RGB888 - description: RGB888 - value: 1 - - name: RGB565 - description: RGB565 - value: 2 - - name: ARGB1555 - description: ARGB1555 - value: 3 - - name: ARGB4444 - description: ARGB4444 - value: 4 + - name: ARGB8888 + description: ARGB8888 + value: 0 + - name: RGB888 + description: RGB888 + value: 1 + - name: RGB565 + description: RGB565 + value: 2 + - name: ARGB1555 + description: ARGB1555 + value: 3 + - name: ARGB4444 + description: ARGB4444 + value: 4 enum/OPFCCR_RBS: bit_size: 1 variants: - - name: Regular - description: No Red Blue Swap (RGB or ARGB) - value: 0 - - name: Swap - description: Red Blue Swap (BGR or ABGR) - value: 1 + - name: Regular + description: No Red Blue Swap (RGB or ARGB) + value: 0 + - name: Swap + description: Red Blue Swap (BGR or ABGR) + value: 1 enum/SB: bit_size: 1 variants: - - name: Regular - description: Regular byte order - value: 0 - - name: SwapBytes - description: Bytes are swapped two by two - value: 1 + - name: Regular + description: Regular byte order + value: 0 + - name: SwapBytes + description: Bytes are swapped two by two + value: 1 enum/SUSP: bit_size: 1 variants: - - name: NotSuspended - description: Transfer not suspended - value: 0 - - name: Suspended - description: Transfer suspended - value: 1 + - name: NotSuspended + description: Transfer not suspended + value: 0 + - name: Suspended + description: Transfer suspended + value: 1 enum/TCIE: bit_size: 1 variants: - - name: Disabled - description: TC interrupt disabled - value: 0 - - name: Enabled - description: TC interrupt enabled - value: 1 + - name: Disabled + description: TC interrupt disabled + value: 0 + - name: Enabled + description: TC interrupt enabled + value: 1 enum/TEIE: bit_size: 1 variants: - - name: Disabled - description: TE interrupt disabled - value: 0 - - name: Enabled - description: TE interrupt enabled - value: 1 + - name: Disabled + description: TE interrupt disabled + value: 0 + - name: Enabled + description: TE interrupt enabled + value: 1 enum/TWIE: bit_size: 1 variants: - - name: Disabled - description: TW interrupt disabled - value: 0 - - name: Enabled - description: TW interrupt enabled - value: 1 + - name: Disabled + description: TW interrupt disabled + value: 0 + - name: Enabled + description: TW interrupt enabled + value: 1 diff --git a/data/registers/dma_v1.yaml b/data/registers/dma_v1.yaml index b714785..8cfe41d 100644 --- a/data/registers/dma_v1.yaml +++ b/data/registers/dma_v1.yaml @@ -1,378 +1,377 @@ ---- block/DMA: description: DMA controller items: - - name: ISR - description: low interrupt status register - array: - len: 2 - stride: 4 - byte_offset: 0 - access: Read - fieldset: IXR - - name: IFCR - description: low interrupt flag clear register - array: - len: 2 - stride: 4 - byte_offset: 8 - access: Write - fieldset: IXR - - name: ST - description: "Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers" - array: - len: 8 - stride: 24 - byte_offset: 16 - block: ST + - name: ISR + description: low interrupt status register + array: + len: 2 + stride: 4 + byte_offset: 0 + access: Read + fieldset: IXR + - name: IFCR + description: low interrupt flag clear register + array: + len: 2 + stride: 4 + byte_offset: 8 + access: Write + fieldset: IXR + - name: ST + description: 'Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers' + array: + len: 8 + stride: 24 + byte_offset: 16 + block: ST block/ST: - description: "Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers" + description: 'Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers' items: - - name: CR - description: stream x configuration register - byte_offset: 0 - fieldset: CR - - name: NDTR - description: stream x number of data register - byte_offset: 4 - fieldset: NDTR - - name: PAR - description: stream x peripheral address register - byte_offset: 8 - - name: M0AR - description: stream x memory 0 address register - byte_offset: 12 - - name: M1AR - description: stream x memory 1 address register - byte_offset: 16 - - name: FCR - description: stream x FIFO control register - byte_offset: 20 - fieldset: FCR + - name: CR + description: stream x configuration register + byte_offset: 0 + fieldset: CR + - name: NDTR + description: stream x number of data register + byte_offset: 4 + fieldset: NDTR + - name: PAR + description: stream x peripheral address register + byte_offset: 8 + - name: M0AR + description: stream x memory 0 address register + byte_offset: 12 + - name: M1AR + description: stream x memory 1 address register + byte_offset: 16 + - name: FCR + description: stream x FIFO control register + byte_offset: 20 + fieldset: FCR fieldset/CR: description: stream x configuration register fields: - - name: EN - description: Stream enable / flag stream ready when read low - bit_offset: 0 - bit_size: 1 - - name: DMEIE - description: Direct mode error interrupt enable - bit_offset: 1 - bit_size: 1 - - name: TEIE - description: Transfer error interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HTIE - description: Half transfer interrupt enable - bit_offset: 3 - bit_size: 1 - - name: TCIE - description: Transfer complete interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PFCTRL - description: Peripheral flow controller - bit_offset: 5 - bit_size: 1 - enum: PFCTRL - - name: DIR - description: Data transfer direction - bit_offset: 6 - bit_size: 2 - enum: DIR - - name: CIRC - description: Circular mode - bit_offset: 8 - bit_size: 1 - enum: CIRC - - name: PINC - description: Peripheral increment mode - bit_offset: 9 - bit_size: 1 - enum: INC - - name: MINC - description: Memory increment mode - bit_offset: 10 - bit_size: 1 - enum: INC - - name: PSIZE - description: Peripheral data size - bit_offset: 11 - bit_size: 2 - enum: SIZE - - name: MSIZE - description: Memory data size - bit_offset: 13 - bit_size: 2 - enum: SIZE - - name: PINCOS - description: Peripheral increment offset size - bit_offset: 15 - bit_size: 1 - enum: PINCOS - - name: PL - description: Priority level - bit_offset: 16 - bit_size: 2 - enum: PL - - name: DBM - description: Double buffer mode - bit_offset: 18 - bit_size: 1 - enum: DBM - - name: CT - description: Current target (only in double buffer mode) - bit_offset: 19 - bit_size: 1 - enum: CT - - name: TRBUFF - description: Enable bufferable transfers - bit_offset: 20 - bit_size: 1 - - name: PBURST - description: Peripheral burst transfer configuration - bit_offset: 21 - bit_size: 2 - enum: BURST - - name: MBURST - description: Memory burst transfer configuration - bit_offset: 23 - bit_size: 2 - enum: BURST + - name: EN + description: Stream enable / flag stream ready when read low + bit_offset: 0 + bit_size: 1 + - name: DMEIE + description: Direct mode error interrupt enable + bit_offset: 1 + bit_size: 1 + - name: TEIE + description: Transfer error interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HTIE + description: Half transfer interrupt enable + bit_offset: 3 + bit_size: 1 + - name: TCIE + description: Transfer complete interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PFCTRL + description: Peripheral flow controller + bit_offset: 5 + bit_size: 1 + enum: PFCTRL + - name: DIR + description: Data transfer direction + bit_offset: 6 + bit_size: 2 + enum: DIR + - name: CIRC + description: Circular mode + bit_offset: 8 + bit_size: 1 + enum: CIRC + - name: PINC + description: Peripheral increment mode + bit_offset: 9 + bit_size: 1 + enum: INC + - name: MINC + description: Memory increment mode + bit_offset: 10 + bit_size: 1 + enum: INC + - name: PSIZE + description: Peripheral data size + bit_offset: 11 + bit_size: 2 + enum: SIZE + - name: MSIZE + description: Memory data size + bit_offset: 13 + bit_size: 2 + enum: SIZE + - name: PINCOS + description: Peripheral increment offset size + bit_offset: 15 + bit_size: 1 + enum: PINCOS + - name: PL + description: Priority level + bit_offset: 16 + bit_size: 2 + enum: PL + - name: DBM + description: Double buffer mode + bit_offset: 18 + bit_size: 1 + enum: DBM + - name: CT + description: Current target (only in double buffer mode) + bit_offset: 19 + bit_size: 1 + enum: CT + - name: TRBUFF + description: Enable bufferable transfers + bit_offset: 20 + bit_size: 1 + - name: PBURST + description: Peripheral burst transfer configuration + bit_offset: 21 + bit_size: 2 + enum: BURST + - name: MBURST + description: Memory burst transfer configuration + bit_offset: 23 + bit_size: 2 + enum: BURST fieldset/FCR: description: stream x FIFO control register fields: - - name: FTH - description: FIFO threshold selection - bit_offset: 0 - bit_size: 2 - enum: FTH - - name: DMDIS - description: Direct mode disable - bit_offset: 2 - bit_size: 1 - enum: DMDIS - - name: FS - description: FIFO status - bit_offset: 3 - bit_size: 3 - enum: FS - - name: FEIE - description: FIFO error interrupt enable - bit_offset: 7 - bit_size: 1 + - name: FTH + description: FIFO threshold selection + bit_offset: 0 + bit_size: 2 + enum: FTH + - name: DMDIS + description: Direct mode disable + bit_offset: 2 + bit_size: 1 + enum: DMDIS + - name: FS + description: FIFO status + bit_offset: 3 + bit_size: 3 + enum: FS + - name: FEIE + description: FIFO error interrupt enable + bit_offset: 7 + bit_size: 1 fieldset/IXR: description: interrupt register fields: - - name: FEIF - description: Stream x FIFO error interrupt flag (x=3..0) - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: DMEIF - description: Stream x direct mode error interrupt flag (x=3..0) - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: TEIF - description: Stream x transfer error interrupt flag (x=3..0) - bit_offset: 3 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: HTIF - description: Stream x half transfer interrupt flag (x=3..0) - bit_offset: 4 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: TCIF - description: Stream x transfer complete interrupt flag (x = 3..0) - bit_offset: 5 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 + - name: FEIF + description: Stream x FIFO error interrupt flag (x=3..0) + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: DMEIF + description: Stream x direct mode error interrupt flag (x=3..0) + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: TEIF + description: Stream x transfer error interrupt flag (x=3..0) + bit_offset: 3 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: HTIF + description: Stream x half transfer interrupt flag (x=3..0) + bit_offset: 4 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: TCIF + description: Stream x transfer complete interrupt flag (x = 3..0) + bit_offset: 5 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 fieldset/NDTR: description: stream x number of data register fields: - - name: NDT - description: Number of data items to transfer - bit_offset: 0 - bit_size: 16 + - name: NDT + description: Number of data items to transfer + bit_offset: 0 + bit_size: 16 enum/BURST: bit_size: 2 variants: - - name: Single - description: Single transfer - value: 0 - - name: INCR4 - description: Incremental burst of 4 beats - value: 1 - - name: INCR8 - description: Incremental burst of 8 beats - value: 2 - - name: INCR16 - description: Incremental burst of 16 beats - value: 3 + - name: Single + description: Single transfer + value: 0 + - name: INCR4 + description: Incremental burst of 4 beats + value: 1 + - name: INCR8 + description: Incremental burst of 8 beats + value: 2 + - name: INCR16 + description: Incremental burst of 16 beats + value: 3 enum/CIRC: bit_size: 1 variants: - - name: Disabled - description: Circular mode disabled - value: 0 - - name: Enabled - description: Circular mode enabled - value: 1 + - name: Disabled + description: Circular mode disabled + value: 0 + - name: Enabled + description: Circular mode enabled + value: 1 enum/CT: bit_size: 1 variants: - - name: Memory0 - description: The current target memory is Memory 0 - value: 0 - - name: Memory1 - description: The current target memory is Memory 1 - value: 1 + - name: Memory0 + description: The current target memory is Memory 0 + value: 0 + - name: Memory1 + description: The current target memory is Memory 1 + value: 1 enum/DBM: bit_size: 1 variants: - - name: Disabled - description: No buffer switching at the end of transfer - value: 0 - - name: Enabled - description: Memory target switched at the end of the DMA transfer - value: 1 + - name: Disabled + description: No buffer switching at the end of transfer + value: 0 + - name: Enabled + description: Memory target switched at the end of the DMA transfer + value: 1 enum/DIR: bit_size: 2 variants: - - name: PeripheralToMemory - description: Peripheral-to-memory - value: 0 - - name: MemoryToPeripheral - description: Memory-to-peripheral - value: 1 - - name: MemoryToMemory - description: Memory-to-memory - value: 2 + - name: PeripheralToMemory + description: Peripheral-to-memory + value: 0 + - name: MemoryToPeripheral + description: Memory-to-peripheral + value: 1 + - name: MemoryToMemory + description: Memory-to-memory + value: 2 enum/DMDIS: bit_size: 1 variants: - - name: Enabled - description: Direct mode is enabled - value: 0 - - name: Disabled - description: Direct mode is disabled - value: 1 + - name: Enabled + description: Direct mode is enabled + value: 0 + - name: Disabled + description: Direct mode is disabled + value: 1 enum/FS: bit_size: 3 variants: - - name: Quarter1 - description: 0 < fifo_level < 1/4 - value: 0 - - name: Quarter2 - description: 1/4 <= fifo_level < 1/2 - value: 1 - - name: Quarter3 - description: 1/2 <= fifo_level < 3/4 - value: 2 - - name: Quarter4 - description: 3/4 <= fifo_level < full - value: 3 - - name: Empty - description: FIFO is empty - value: 4 - - name: Full - description: FIFO is full - value: 5 + - name: Quarter1 + description: 0 < fifo_level < 1/4 + value: 0 + - name: Quarter2 + description: 1/4 <= fifo_level < 1/2 + value: 1 + - name: Quarter3 + description: 1/2 <= fifo_level < 3/4 + value: 2 + - name: Quarter4 + description: 3/4 <= fifo_level < full + value: 3 + - name: Empty + description: FIFO is empty + value: 4 + - name: Full + description: FIFO is full + value: 5 enum/FTH: bit_size: 2 variants: - - name: Quarter - description: 1/4 full FIFO - value: 0 - - name: Half - description: 1/2 full FIFO - value: 1 - - name: ThreeQuarters - description: 3/4 full FIFO - value: 2 - - name: Full - description: Full FIFO - value: 3 + - name: Quarter + description: 1/4 full FIFO + value: 0 + - name: Half + description: 1/2 full FIFO + value: 1 + - name: ThreeQuarters + description: 3/4 full FIFO + value: 2 + - name: Full + description: Full FIFO + value: 3 enum/INC: bit_size: 1 variants: - - name: Fixed - description: Address pointer is fixed - value: 0 - - name: Incremented - description: Address pointer is incremented after each data transfer - value: 1 + - name: Fixed + description: Address pointer is fixed + value: 0 + - name: Incremented + description: Address pointer is incremented after each data transfer + value: 1 enum/PFCTRL: bit_size: 1 variants: - - name: DMA - description: The DMA is the flow controller - value: 0 - - name: Peripheral - description: The peripheral is the flow controller - value: 1 + - name: DMA + description: The DMA is the flow controller + value: 0 + - name: Peripheral + description: The peripheral is the flow controller + value: 1 enum/PINCOS: bit_size: 1 variants: - - name: PSIZE - description: The offset size for the peripheral address calculation is linked to the PSIZE - value: 0 - - name: Fixed4 - description: The offset size for the peripheral address calculation is fixed to 4 (32-bit alignment) - value: 1 + - name: PSIZE + description: The offset size for the peripheral address calculation is linked to the PSIZE + value: 0 + - name: Fixed4 + description: The offset size for the peripheral address calculation is fixed to 4 (32-bit alignment) + value: 1 enum/PL: bit_size: 2 variants: - - name: Low - description: Low - value: 0 - - name: Medium - description: Medium - value: 1 - - name: High - description: High - value: 2 - - name: VeryHigh - description: Very high - value: 3 + - name: Low + description: Low + value: 0 + - name: Medium + description: Medium + value: 1 + - name: High + description: High + value: 2 + - name: VeryHigh + description: Very high + value: 3 enum/SIZE: bit_size: 2 variants: - - name: Bits8 - description: Byte (8-bit) - value: 0 - - name: Bits16 - description: Half-word (16-bit) - value: 1 - - name: Bits32 - description: Word (32-bit) - value: 2 + - name: Bits8 + description: Byte (8-bit) + value: 0 + - name: Bits16 + description: Half-word (16-bit) + value: 1 + - name: Bits32 + description: Word (32-bit) + value: 2 diff --git a/data/registers/dma_v2.yaml b/data/registers/dma_v2.yaml index e13e370..4117575 100644 --- a/data/registers/dma_v2.yaml +++ b/data/registers/dma_v2.yaml @@ -1,378 +1,377 @@ ---- block/DMA: description: DMA controller items: - - name: ISR - description: low interrupt status register - array: - len: 2 - stride: 4 - byte_offset: 0 - access: Read - fieldset: IXR - - name: IFCR - description: low interrupt flag clear register - array: - len: 2 - stride: 4 - byte_offset: 8 - access: Write - fieldset: IXR - - name: ST - description: "Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers" - array: - len: 8 - stride: 24 - byte_offset: 16 - block: ST + - name: ISR + description: low interrupt status register + array: + len: 2 + stride: 4 + byte_offset: 0 + access: Read + fieldset: IXR + - name: IFCR + description: low interrupt flag clear register + array: + len: 2 + stride: 4 + byte_offset: 8 + access: Write + fieldset: IXR + - name: ST + description: 'Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers' + array: + len: 8 + stride: 24 + byte_offset: 16 + block: ST block/ST: - description: "Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers" + description: 'Stream cluster: S?CR, S?NDTR, S?M0AR, S?M1AR and S?FCR registers' items: - - name: CR - description: stream x configuration register - byte_offset: 0 - fieldset: CR - - name: NDTR - description: stream x number of data register - byte_offset: 4 - fieldset: NDTR - - name: PAR - description: stream x peripheral address register - byte_offset: 8 - - name: M0AR - description: stream x memory 0 address register - byte_offset: 12 - - name: M1AR - description: stream x memory 1 address register - byte_offset: 16 - - name: FCR - description: stream x FIFO control register - byte_offset: 20 - fieldset: FCR + - name: CR + description: stream x configuration register + byte_offset: 0 + fieldset: CR + - name: NDTR + description: stream x number of data register + byte_offset: 4 + fieldset: NDTR + - name: PAR + description: stream x peripheral address register + byte_offset: 8 + - name: M0AR + description: stream x memory 0 address register + byte_offset: 12 + - name: M1AR + description: stream x memory 1 address register + byte_offset: 16 + - name: FCR + description: stream x FIFO control register + byte_offset: 20 + fieldset: FCR fieldset/CR: description: stream x configuration register fields: - - name: EN - description: Stream enable / flag stream ready when read low - bit_offset: 0 - bit_size: 1 - - name: DMEIE - description: Direct mode error interrupt enable - bit_offset: 1 - bit_size: 1 - - name: TEIE - description: Transfer error interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HTIE - description: Half transfer interrupt enable - bit_offset: 3 - bit_size: 1 - - name: TCIE - description: Transfer complete interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PFCTRL - description: Peripheral flow controller - bit_offset: 5 - bit_size: 1 - enum: PFCTRL - - name: DIR - description: Data transfer direction - bit_offset: 6 - bit_size: 2 - enum: DIR - - name: CIRC - description: Circular mode - bit_offset: 8 - bit_size: 1 - enum: CIRC - - name: PINC - description: Peripheral increment mode - bit_offset: 9 - bit_size: 1 - enum: INC - - name: MINC - description: Memory increment mode - bit_offset: 10 - bit_size: 1 - enum: INC - - name: PSIZE - description: Peripheral data size - bit_offset: 11 - bit_size: 2 - enum: SIZE - - name: MSIZE - description: Memory data size - bit_offset: 13 - bit_size: 2 - enum: SIZE - - name: PINCOS - description: Peripheral increment offset size - bit_offset: 15 - bit_size: 1 - enum: PINCOS - - name: PL - description: Priority level - bit_offset: 16 - bit_size: 2 - enum: PL - - name: DBM - description: Double buffer mode - bit_offset: 18 - bit_size: 1 - enum: DBM - - name: CT - description: Current target (only in double buffer mode) - bit_offset: 19 - bit_size: 1 - enum: CT - - name: PBURST - description: Peripheral burst transfer configuration - bit_offset: 21 - bit_size: 2 - enum: BURST - - name: MBURST - description: Memory burst transfer configuration - bit_offset: 23 - bit_size: 2 - enum: BURST - - name: CHSEL - description: Channel selection - bit_offset: 25 - bit_size: 4 + - name: EN + description: Stream enable / flag stream ready when read low + bit_offset: 0 + bit_size: 1 + - name: DMEIE + description: Direct mode error interrupt enable + bit_offset: 1 + bit_size: 1 + - name: TEIE + description: Transfer error interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HTIE + description: Half transfer interrupt enable + bit_offset: 3 + bit_size: 1 + - name: TCIE + description: Transfer complete interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PFCTRL + description: Peripheral flow controller + bit_offset: 5 + bit_size: 1 + enum: PFCTRL + - name: DIR + description: Data transfer direction + bit_offset: 6 + bit_size: 2 + enum: DIR + - name: CIRC + description: Circular mode + bit_offset: 8 + bit_size: 1 + enum: CIRC + - name: PINC + description: Peripheral increment mode + bit_offset: 9 + bit_size: 1 + enum: INC + - name: MINC + description: Memory increment mode + bit_offset: 10 + bit_size: 1 + enum: INC + - name: PSIZE + description: Peripheral data size + bit_offset: 11 + bit_size: 2 + enum: SIZE + - name: MSIZE + description: Memory data size + bit_offset: 13 + bit_size: 2 + enum: SIZE + - name: PINCOS + description: Peripheral increment offset size + bit_offset: 15 + bit_size: 1 + enum: PINCOS + - name: PL + description: Priority level + bit_offset: 16 + bit_size: 2 + enum: PL + - name: DBM + description: Double buffer mode + bit_offset: 18 + bit_size: 1 + enum: DBM + - name: CT + description: Current target (only in double buffer mode) + bit_offset: 19 + bit_size: 1 + enum: CT + - name: PBURST + description: Peripheral burst transfer configuration + bit_offset: 21 + bit_size: 2 + enum: BURST + - name: MBURST + description: Memory burst transfer configuration + bit_offset: 23 + bit_size: 2 + enum: BURST + - name: CHSEL + description: Channel selection + bit_offset: 25 + bit_size: 4 fieldset/FCR: description: stream x FIFO control register fields: - - name: FTH - description: FIFO threshold selection - bit_offset: 0 - bit_size: 2 - enum: FTH - - name: DMDIS - description: Direct mode disable - bit_offset: 2 - bit_size: 1 - enum: DMDIS - - name: FS - description: FIFO status - bit_offset: 3 - bit_size: 3 - enum: FS - - name: FEIE - description: FIFO error interrupt enable - bit_offset: 7 - bit_size: 1 + - name: FTH + description: FIFO threshold selection + bit_offset: 0 + bit_size: 2 + enum: FTH + - name: DMDIS + description: Direct mode disable + bit_offset: 2 + bit_size: 1 + enum: DMDIS + - name: FS + description: FIFO status + bit_offset: 3 + bit_size: 3 + enum: FS + - name: FEIE + description: FIFO error interrupt enable + bit_offset: 7 + bit_size: 1 fieldset/IXR: description: interrupt register fields: - - name: FEIF - description: Stream x FIFO error interrupt flag (x=3..0) - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: DMEIF - description: Stream x direct mode error interrupt flag (x=3..0) - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: TEIF - description: Stream x transfer error interrupt flag (x=3..0) - bit_offset: 3 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: HTIF - description: Stream x half transfer interrupt flag (x=3..0) - bit_offset: 4 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 - - name: TCIF - description: Stream x transfer complete interrupt flag (x = 3..0) - bit_offset: 5 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 16 - - 22 + - name: FEIF + description: Stream x FIFO error interrupt flag (x=3..0) + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: DMEIF + description: Stream x direct mode error interrupt flag (x=3..0) + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: TEIF + description: Stream x transfer error interrupt flag (x=3..0) + bit_offset: 3 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: HTIF + description: Stream x half transfer interrupt flag (x=3..0) + bit_offset: 4 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 + - name: TCIF + description: Stream x transfer complete interrupt flag (x = 3..0) + bit_offset: 5 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 16 + - 22 fieldset/NDTR: description: stream x number of data register fields: - - name: NDT - description: Number of data items to transfer - bit_offset: 0 - bit_size: 16 + - name: NDT + description: Number of data items to transfer + bit_offset: 0 + bit_size: 16 enum/BURST: bit_size: 2 variants: - - name: Single - description: Single transfer - value: 0 - - name: INCR4 - description: Incremental burst of 4 beats - value: 1 - - name: INCR8 - description: Incremental burst of 8 beats - value: 2 - - name: INCR16 - description: Incremental burst of 16 beats - value: 3 + - name: Single + description: Single transfer + value: 0 + - name: INCR4 + description: Incremental burst of 4 beats + value: 1 + - name: INCR8 + description: Incremental burst of 8 beats + value: 2 + - name: INCR16 + description: Incremental burst of 16 beats + value: 3 enum/CIRC: bit_size: 1 variants: - - name: Disabled - description: Circular mode disabled - value: 0 - - name: Enabled - description: Circular mode enabled - value: 1 + - name: Disabled + description: Circular mode disabled + value: 0 + - name: Enabled + description: Circular mode enabled + value: 1 enum/CT: bit_size: 1 variants: - - name: Memory0 - description: The current target memory is Memory 0 - value: 0 - - name: Memory1 - description: The current target memory is Memory 1 - value: 1 + - name: Memory0 + description: The current target memory is Memory 0 + value: 0 + - name: Memory1 + description: The current target memory is Memory 1 + value: 1 enum/DBM: bit_size: 1 variants: - - name: Disabled - description: No buffer switching at the end of transfer - value: 0 - - name: Enabled - description: Memory target switched at the end of the DMA transfer - value: 1 + - name: Disabled + description: No buffer switching at the end of transfer + value: 0 + - name: Enabled + description: Memory target switched at the end of the DMA transfer + value: 1 enum/DIR: bit_size: 2 variants: - - name: PeripheralToMemory - description: Peripheral-to-memory - value: 0 - - name: MemoryToPeripheral - description: Memory-to-peripheral - value: 1 - - name: MemoryToMemory - description: Memory-to-memory - value: 2 + - name: PeripheralToMemory + description: Peripheral-to-memory + value: 0 + - name: MemoryToPeripheral + description: Memory-to-peripheral + value: 1 + - name: MemoryToMemory + description: Memory-to-memory + value: 2 enum/DMDIS: bit_size: 1 variants: - - name: Enabled - description: Direct mode is enabled - value: 0 - - name: Disabled - description: Direct mode is disabled - value: 1 + - name: Enabled + description: Direct mode is enabled + value: 0 + - name: Disabled + description: Direct mode is disabled + value: 1 enum/FS: bit_size: 3 variants: - - name: Quarter1 - description: 0 < fifo_level < 1/4 - value: 0 - - name: Quarter2 - description: 1/4 <= fifo_level < 1/2 - value: 1 - - name: Quarter3 - description: 1/2 <= fifo_level < 3/4 - value: 2 - - name: Quarter4 - description: 3/4 <= fifo_level < full - value: 3 - - name: Empty - description: FIFO is empty - value: 4 - - name: Full - description: FIFO is full - value: 5 + - name: Quarter1 + description: 0 < fifo_level < 1/4 + value: 0 + - name: Quarter2 + description: 1/4 <= fifo_level < 1/2 + value: 1 + - name: Quarter3 + description: 1/2 <= fifo_level < 3/4 + value: 2 + - name: Quarter4 + description: 3/4 <= fifo_level < full + value: 3 + - name: Empty + description: FIFO is empty + value: 4 + - name: Full + description: FIFO is full + value: 5 enum/FTH: bit_size: 2 variants: - - name: Quarter - description: 1/4 full FIFO - value: 0 - - name: Half - description: 1/2 full FIFO - value: 1 - - name: ThreeQuarters - description: 3/4 full FIFO - value: 2 - - name: Full - description: Full FIFO - value: 3 + - name: Quarter + description: 1/4 full FIFO + value: 0 + - name: Half + description: 1/2 full FIFO + value: 1 + - name: ThreeQuarters + description: 3/4 full FIFO + value: 2 + - name: Full + description: Full FIFO + value: 3 enum/INC: bit_size: 1 variants: - - name: Fixed - description: Address pointer is fixed - value: 0 - - name: Incremented - description: Address pointer is incremented after each data transfer - value: 1 + - name: Fixed + description: Address pointer is fixed + value: 0 + - name: Incremented + description: Address pointer is incremented after each data transfer + value: 1 enum/PFCTRL: bit_size: 1 variants: - - name: DMA - description: The DMA is the flow controller - value: 0 - - name: Peripheral - description: The peripheral is the flow controller - value: 1 + - name: DMA + description: The DMA is the flow controller + value: 0 + - name: Peripheral + description: The peripheral is the flow controller + value: 1 enum/PINCOS: bit_size: 1 variants: - - name: PSIZE - description: The offset size for the peripheral address calculation is linked to the PSIZE - value: 0 - - name: Fixed4 - description: The offset size for the peripheral address calculation is fixed to 4 (32-bit alignment) - value: 1 + - name: PSIZE + description: The offset size for the peripheral address calculation is linked to the PSIZE + value: 0 + - name: Fixed4 + description: The offset size for the peripheral address calculation is fixed to 4 (32-bit alignment) + value: 1 enum/PL: bit_size: 2 variants: - - name: Low - description: Low - value: 0 - - name: Medium - description: Medium - value: 1 - - name: High - description: High - value: 2 - - name: VeryHigh - description: Very high - value: 3 + - name: Low + description: Low + value: 0 + - name: Medium + description: Medium + value: 1 + - name: High + description: High + value: 2 + - name: VeryHigh + description: Very high + value: 3 enum/SIZE: bit_size: 2 variants: - - name: Bits8 - description: Byte (8-bit) - value: 0 - - name: Bits16 - description: Half-word (16-bit) - value: 1 - - name: Bits32 - description: Word (32-bit) - value: 2 + - name: Bits8 + description: Byte (8-bit) + value: 0 + - name: Bits16 + description: Half-word (16-bit) + value: 1 + - name: Bits32 + description: Word (32-bit) + value: 2 diff --git a/data/registers/dmamux_v1.yaml b/data/registers/dmamux_v1.yaml index bd3be27..334bccf 100644 --- a/data/registers/dmamux_v1.yaml +++ b/data/registers/dmamux_v1.yaml @@ -1,129 +1,128 @@ ---- block/DMAMUX: description: DMAMUX items: - - name: CCR - description: DMAMux - DMA request line multiplexer channel x control register - array: - len: 16 - stride: 4 - byte_offset: 0 - fieldset: CCR - - name: CSR - description: DMAMUX request line multiplexer interrupt channel status register - byte_offset: 128 - access: Read - fieldset: CSR - - name: CFR - description: DMAMUX request line multiplexer interrupt clear flag register - byte_offset: 132 - access: Write - fieldset: CSR - - name: RGCR - description: DMAMux - DMA request generator channel x control register - array: - len: 8 - stride: 4 - byte_offset: 256 - fieldset: RGCR - - name: RGSR - description: DMAMux - DMA request generator status register - byte_offset: 320 - access: Read - fieldset: RGSR - - name: RGCFR - description: DMAMux - DMA request generator clear flag register - byte_offset: 324 - access: Write - fieldset: RGSR + - name: CCR + description: DMAMux - DMA request line multiplexer channel x control register + array: + len: 16 + stride: 4 + byte_offset: 0 + fieldset: CCR + - name: CSR + description: DMAMUX request line multiplexer interrupt channel status register + byte_offset: 128 + access: Read + fieldset: CSR + - name: CFR + description: DMAMUX request line multiplexer interrupt clear flag register + byte_offset: 132 + access: Write + fieldset: CSR + - name: RGCR + description: DMAMux - DMA request generator channel x control register + array: + len: 8 + stride: 4 + byte_offset: 256 + fieldset: RGCR + - name: RGSR + description: DMAMux - DMA request generator status register + byte_offset: 320 + access: Read + fieldset: RGSR + - name: RGCFR + description: DMAMux - DMA request generator clear flag register + byte_offset: 324 + access: Write + fieldset: RGSR fieldset/CCR: description: DMAMux - DMA request line multiplexer channel x control register fields: - - name: DMAREQ_ID - description: Input DMA request line selected - bit_offset: 0 - bit_size: 8 - - name: SOIE - description: Interrupt enable at synchronization event overrun - bit_offset: 8 - bit_size: 1 - - name: EGE - description: Event generation enable/disable - bit_offset: 9 - bit_size: 1 - - name: SE - description: Synchronous operating mode enable/disable - bit_offset: 16 - bit_size: 1 - - name: SPOL - description: "Synchronization event type selector Defines the synchronization event on the selected synchronization input:" - bit_offset: 17 - bit_size: 2 - enum: POL - - name: NBREQ - description: "Number of DMA requests to forward Defines the number of DMA requests forwarded before output event is generated. In synchronous mode, it also defines the number of DMA requests to forward after a synchronization event, then stop forwarding. The actual number of DMA requests forwarded is NBREQ+1. Note: This field can only be written when both SE and EGE bits are reset." - bit_offset: 19 - bit_size: 5 - - name: SYNC_ID - description: Synchronization input selected - bit_offset: 24 - bit_size: 5 + - name: DMAREQ_ID + description: Input DMA request line selected + bit_offset: 0 + bit_size: 8 + - name: SOIE + description: Interrupt enable at synchronization event overrun + bit_offset: 8 + bit_size: 1 + - name: EGE + description: Event generation enable/disable + bit_offset: 9 + bit_size: 1 + - name: SE + description: Synchronous operating mode enable/disable + bit_offset: 16 + bit_size: 1 + - name: SPOL + description: 'Synchronization event type selector Defines the synchronization event on the selected synchronization input:' + bit_offset: 17 + bit_size: 2 + enum: POL + - name: NBREQ + description: 'Number of DMA requests to forward Defines the number of DMA requests forwarded before output event is generated. In synchronous mode, it also defines the number of DMA requests to forward after a synchronization event, then stop forwarding. The actual number of DMA requests forwarded is NBREQ+1. Note: This field can only be written when both SE and EGE bits are reset.' + bit_offset: 19 + bit_size: 5 + - name: SYNC_ID + description: Synchronization input selected + bit_offset: 24 + bit_size: 5 fieldset/CSR: description: DMAMUX request line multiplexer interrupt channel status register fields: - - name: SOF - description: Synchronization overrun event flag - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: SOF + description: Synchronization overrun event flag + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/RGCR: description: DMAMux - DMA request generator channel x control register fields: - - name: SIG_ID - description: DMA request trigger input selected - bit_offset: 0 - bit_size: 5 - - name: OIE - description: Interrupt enable at trigger event overrun - bit_offset: 8 - bit_size: 1 - - name: GE - description: DMA request generator channel enable/disable - bit_offset: 16 - bit_size: 1 - - name: GPOL - description: DMA request generator trigger event type selection Defines the trigger event on the selected DMA request trigger input - bit_offset: 17 - bit_size: 2 - enum: POL - - name: GNBREQ - description: "Number of DMA requests to generate Defines the number of DMA requests generated after a trigger event, then stop generating. The actual number of generated DMA requests is GNBREQ+1. Note: This field can only be written when GE bit is reset." - bit_offset: 19 - bit_size: 5 + - name: SIG_ID + description: DMA request trigger input selected + bit_offset: 0 + bit_size: 5 + - name: OIE + description: Interrupt enable at trigger event overrun + bit_offset: 8 + bit_size: 1 + - name: GE + description: DMA request generator channel enable/disable + bit_offset: 16 + bit_size: 1 + - name: GPOL + description: DMA request generator trigger event type selection Defines the trigger event on the selected DMA request trigger input + bit_offset: 17 + bit_size: 2 + enum: POL + - name: GNBREQ + description: 'Number of DMA requests to generate Defines the number of DMA requests generated after a trigger event, then stop generating. The actual number of generated DMA requests is GNBREQ+1. Note: This field can only be written when GE bit is reset.' + bit_offset: 19 + bit_size: 5 fieldset/RGSR: description: DMAMux - DMA request generator status register fields: - - name: OF - description: "Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register." - bit_offset: 0 - bit_size: 1 - array: - len: 8 - stride: 1 + - name: OF + description: Trigger event overrun flag The flag is set when a trigger event occurs on DMA request generator channel x, while the DMA request generator counter value is lower than GNBREQ. The flag is cleared by writing 1 to the corresponding COFx bit in DMAMUX_RGCFR register. + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 enum/POL: bit_size: 2 variants: - - name: NoEdge - description: "No event, i.e. no synchronization nor detection" - value: 0 - - name: RisingEdge - description: Rising edge - value: 1 - - name: FallingEdge - description: Falling edge - value: 2 - - name: BothEdges - description: Rising and falling edges - value: 3 + - name: NoEdge + description: No event, i.e. no synchronization nor detection + value: 0 + - name: RisingEdge + description: Rising edge + value: 1 + - name: FallingEdge + description: Falling edge + value: 2 + - name: BothEdges + description: Rising and falling edges + value: 3 diff --git a/data/registers/eth_v1a.yaml b/data/registers/eth_v1a.yaml index 7977977..e27e65b 100644 --- a/data/registers/eth_v1a.yaml +++ b/data/registers/eth_v1a.yaml @@ -1,2118 +1,2117 @@ ---- block/ETH: description: Ethernet Peripheral items: - - name: ETHERNET_MAC - description: "Ethernet: media access control (MAC)" - byte_offset: 0 - block: ETHERNET_MAC - - name: ETHERNET_PTP - description: "Ethernet: Precision Time Protocol (PTP)" - byte_offset: 1792 - block: ETHERNET_PTP - - name: ETHERNET_DMA - description: "Ethernet: DMA mode register (DMA)" - byte_offset: 4096 - block: ETHERNET_DMA + - name: ETHERNET_MAC + description: 'Ethernet: media access control (MAC)' + byte_offset: 0 + block: ETHERNET_MAC + - name: ETHERNET_PTP + description: 'Ethernet: Precision Time Protocol (PTP)' + byte_offset: 1792 + block: ETHERNET_PTP + - name: ETHERNET_DMA + description: 'Ethernet: DMA mode register (DMA)' + byte_offset: 4096 + block: ETHERNET_DMA block/ETHERNET_DMA: - description: "Ethernet: DMA controller operation" + description: 'Ethernet: DMA controller operation' items: - - name: DMABMR - description: Ethernet DMA bus mode register - byte_offset: 0 - fieldset: DMABMR - - name: DMATPDR - description: Ethernet DMA transmit poll demand register - byte_offset: 4 - fieldset: DMATPDR - - name: DMARPDR - description: EHERNET DMA receive poll demand register - byte_offset: 8 - fieldset: DMARPDR - - name: DMARDLAR - description: Ethernet DMA receive descriptor list address register - byte_offset: 12 - fieldset: DMARDLAR - - name: DMATDLAR - description: Ethernet DMA transmit descriptor list address register - byte_offset: 16 - fieldset: DMATDLAR - - name: DMASR - description: Ethernet DMA status register - byte_offset: 20 - fieldset: DMASR - - name: DMAOMR - description: Ethernet DMA operation mode register - byte_offset: 24 - fieldset: DMAOMR - - name: DMAIER - description: Ethernet DMA interrupt enable register - byte_offset: 28 - fieldset: DMAIER - - name: DMAMFBOCR - description: Ethernet DMA missed frame and buffer overflow counter register - byte_offset: 32 - fieldset: DMAMFBOCR - - name: DMACHTDR - description: Ethernet DMA current host transmit descriptor register - byte_offset: 72 - access: Read - fieldset: DMACHTDR - - name: DMACHRDR - description: Ethernet DMA current host receive descriptor register - byte_offset: 76 - access: Read - fieldset: DMACHRDR - - name: DMACHTBAR - description: Ethernet DMA current host transmit buffer address register - byte_offset: 80 - access: Read - fieldset: DMACHTBAR - - name: DMACHRBAR - description: Ethernet DMA current host receive buffer address register - byte_offset: 84 - access: Read - fieldset: DMACHRBAR + - name: DMABMR + description: Ethernet DMA bus mode register + byte_offset: 0 + fieldset: DMABMR + - name: DMATPDR + description: Ethernet DMA transmit poll demand register + byte_offset: 4 + fieldset: DMATPDR + - name: DMARPDR + description: EHERNET DMA receive poll demand register + byte_offset: 8 + fieldset: DMARPDR + - name: DMARDLAR + description: Ethernet DMA receive descriptor list address register + byte_offset: 12 + fieldset: DMARDLAR + - name: DMATDLAR + description: Ethernet DMA transmit descriptor list address register + byte_offset: 16 + fieldset: DMATDLAR + - name: DMASR + description: Ethernet DMA status register + byte_offset: 20 + fieldset: DMASR + - name: DMAOMR + description: Ethernet DMA operation mode register + byte_offset: 24 + fieldset: DMAOMR + - name: DMAIER + description: Ethernet DMA interrupt enable register + byte_offset: 28 + fieldset: DMAIER + - name: DMAMFBOCR + description: Ethernet DMA missed frame and buffer overflow counter register + byte_offset: 32 + fieldset: DMAMFBOCR + - name: DMACHTDR + description: Ethernet DMA current host transmit descriptor register + byte_offset: 72 + access: Read + fieldset: DMACHTDR + - name: DMACHRDR + description: Ethernet DMA current host receive descriptor register + byte_offset: 76 + access: Read + fieldset: DMACHRDR + - name: DMACHTBAR + description: Ethernet DMA current host transmit buffer address register + byte_offset: 80 + access: Read + fieldset: DMACHTBAR + - name: DMACHRBAR + description: Ethernet DMA current host receive buffer address register + byte_offset: 84 + access: Read + fieldset: DMACHRBAR block/ETHERNET_MAC: - description: "Ethernet: media access control (MAC)" + description: 'Ethernet: media access control (MAC)' items: - - name: MACCR - description: Ethernet MAC configuration register - byte_offset: 0 - fieldset: MACCR - - name: MACFFR - description: Ethernet MAC frame filter register - byte_offset: 4 - fieldset: MACFFR - - name: MACHTHR - description: Ethernet MAC hash table high register - byte_offset: 8 - fieldset: MACHTHR - - name: MACHTLR - description: Ethernet MAC hash table low register - byte_offset: 12 - fieldset: MACHTLR - - name: MACMIIAR - description: Ethernet MAC MII address register - byte_offset: 16 - fieldset: MACMIIAR - - name: MACMIIDR - description: Ethernet MAC MII data register - byte_offset: 20 - fieldset: MACMIIDR - - name: MACFCR - description: Ethernet MAC flow control register - byte_offset: 24 - fieldset: MACFCR - - name: MACVLANTR - description: Ethernet MAC VLAN tag register - byte_offset: 28 - fieldset: MACVLANTR - - name: MACRWUFFR - description: Ethernet MAC remote wakeup frame filter register - byte_offset: 40 - - name: MACPMTCSR - description: Ethernet MAC PMT control and status register - byte_offset: 44 - fieldset: MACPMTCSR - - name: MACDBGR - description: Ethernet MAC debug register - byte_offset: 52 - access: Read - fieldset: MACDBGR - - name: MACSR - description: Ethernet MAC interrupt status register - byte_offset: 56 - fieldset: MACSR - - name: MACIMR - description: Ethernet MAC interrupt mask register - byte_offset: 60 - fieldset: MACIMR - - name: MACA0HR - description: Ethernet MAC address 0 high register - byte_offset: 64 - fieldset: MACA0HR - - name: MACA0LR - description: Ethernet MAC address 0 low register - byte_offset: 68 - fieldset: MACA0LR - - name: MACA1HR - description: Ethernet MAC address 1 high register - byte_offset: 72 - fieldset: MACA1HR - - name: MACA1LR - description: Ethernet MAC address1 low register - byte_offset: 76 - fieldset: MACA1LR - - name: MACA2HR - description: Ethernet MAC address 2 high register - byte_offset: 80 - fieldset: MACA2HR - - name: MACA2LR - description: Ethernet MAC address 2 low register - byte_offset: 84 - fieldset: MACA2LR - - name: MACA3HR - description: Ethernet MAC address 3 high register - byte_offset: 88 - fieldset: MACA3HR - - name: MACA3LR - description: Ethernet MAC address 3 low register - byte_offset: 92 - fieldset: MACA3LR - - name: MMCCR - description: Ethernet MMC control register - byte_offset: 256 - fieldset: MMCCR - - name: MMCRIR - description: Ethernet MMC receive interrupt register - byte_offset: 260 - fieldset: MMCRIR - - name: MMCTIR - description: Ethernet MMC transmit interrupt register - byte_offset: 264 - access: Read - fieldset: MMCTIR - - name: MMCRIMR - description: Ethernet MMC receive interrupt mask register - byte_offset: 268 - fieldset: MMCRIMR - - name: MMCTIMR - description: Ethernet MMC transmit interrupt mask register - byte_offset: 272 - fieldset: MMCTIMR - - name: MMCTGFSCCR - description: Ethernet MMC transmitted good frames after a single collision counter - byte_offset: 332 - access: Read - fieldset: MMCTGFSCCR - - name: MMCTGFMSCCR - description: Ethernet MMC transmitted good frames after more than a single collision - byte_offset: 336 - access: Read - fieldset: MMCTGFMSCCR - - name: MMCTGFCR - description: Ethernet MMC transmitted good frames counter register - byte_offset: 360 - access: Read - fieldset: MMCTGFCR - - name: MMCRFCECR - description: Ethernet MMC received frames with CRC error counter register - byte_offset: 404 - access: Read - fieldset: MMCRFCECR - - name: MMCRFAECR - description: Ethernet MMC received frames with alignment error counter register - byte_offset: 408 - access: Read - fieldset: MMCRFAECR - - name: MMCRGUFCR - description: MMC received good unicast frames counter register - byte_offset: 452 - access: Read - fieldset: MMCRGUFCR + - name: MACCR + description: Ethernet MAC configuration register + byte_offset: 0 + fieldset: MACCR + - name: MACFFR + description: Ethernet MAC frame filter register + byte_offset: 4 + fieldset: MACFFR + - name: MACHTHR + description: Ethernet MAC hash table high register + byte_offset: 8 + fieldset: MACHTHR + - name: MACHTLR + description: Ethernet MAC hash table low register + byte_offset: 12 + fieldset: MACHTLR + - name: MACMIIAR + description: Ethernet MAC MII address register + byte_offset: 16 + fieldset: MACMIIAR + - name: MACMIIDR + description: Ethernet MAC MII data register + byte_offset: 20 + fieldset: MACMIIDR + - name: MACFCR + description: Ethernet MAC flow control register + byte_offset: 24 + fieldset: MACFCR + - name: MACVLANTR + description: Ethernet MAC VLAN tag register + byte_offset: 28 + fieldset: MACVLANTR + - name: MACRWUFFR + description: Ethernet MAC remote wakeup frame filter register + byte_offset: 40 + - name: MACPMTCSR + description: Ethernet MAC PMT control and status register + byte_offset: 44 + fieldset: MACPMTCSR + - name: MACDBGR + description: Ethernet MAC debug register + byte_offset: 52 + access: Read + fieldset: MACDBGR + - name: MACSR + description: Ethernet MAC interrupt status register + byte_offset: 56 + fieldset: MACSR + - name: MACIMR + description: Ethernet MAC interrupt mask register + byte_offset: 60 + fieldset: MACIMR + - name: MACA0HR + description: Ethernet MAC address 0 high register + byte_offset: 64 + fieldset: MACA0HR + - name: MACA0LR + description: Ethernet MAC address 0 low register + byte_offset: 68 + fieldset: MACA0LR + - name: MACA1HR + description: Ethernet MAC address 1 high register + byte_offset: 72 + fieldset: MACA1HR + - name: MACA1LR + description: Ethernet MAC address1 low register + byte_offset: 76 + fieldset: MACA1LR + - name: MACA2HR + description: Ethernet MAC address 2 high register + byte_offset: 80 + fieldset: MACA2HR + - name: MACA2LR + description: Ethernet MAC address 2 low register + byte_offset: 84 + fieldset: MACA2LR + - name: MACA3HR + description: Ethernet MAC address 3 high register + byte_offset: 88 + fieldset: MACA3HR + - name: MACA3LR + description: Ethernet MAC address 3 low register + byte_offset: 92 + fieldset: MACA3LR + - name: MMCCR + description: Ethernet MMC control register + byte_offset: 256 + fieldset: MMCCR + - name: MMCRIR + description: Ethernet MMC receive interrupt register + byte_offset: 260 + fieldset: MMCRIR + - name: MMCTIR + description: Ethernet MMC transmit interrupt register + byte_offset: 264 + access: Read + fieldset: MMCTIR + - name: MMCRIMR + description: Ethernet MMC receive interrupt mask register + byte_offset: 268 + fieldset: MMCRIMR + - name: MMCTIMR + description: Ethernet MMC transmit interrupt mask register + byte_offset: 272 + fieldset: MMCTIMR + - name: MMCTGFSCCR + description: Ethernet MMC transmitted good frames after a single collision counter + byte_offset: 332 + access: Read + fieldset: MMCTGFSCCR + - name: MMCTGFMSCCR + description: Ethernet MMC transmitted good frames after more than a single collision + byte_offset: 336 + access: Read + fieldset: MMCTGFMSCCR + - name: MMCTGFCR + description: Ethernet MMC transmitted good frames counter register + byte_offset: 360 + access: Read + fieldset: MMCTGFCR + - name: MMCRFCECR + description: Ethernet MMC received frames with CRC error counter register + byte_offset: 404 + access: Read + fieldset: MMCRFCECR + - name: MMCRFAECR + description: Ethernet MMC received frames with alignment error counter register + byte_offset: 408 + access: Read + fieldset: MMCRFAECR + - name: MMCRGUFCR + description: MMC received good unicast frames counter register + byte_offset: 452 + access: Read + fieldset: MMCRGUFCR block/ETHERNET_PTP: - description: "Ethernet: Precision time protocol" + description: 'Ethernet: Precision time protocol' items: - - name: PTPTSCR - description: Ethernet PTP time stamp control register - byte_offset: 0 - fieldset: PTPTSCR - - name: PTPSSIR - description: Ethernet PTP subsecond increment register - byte_offset: 4 - fieldset: PTPSSIR - - name: PTPTSHR - description: Ethernet PTP time stamp high register - byte_offset: 8 - access: Read - fieldset: PTPTSHR - - name: PTPTSLR - description: Ethernet PTP time stamp low register - byte_offset: 12 - access: Read - fieldset: PTPTSLR - - name: PTPTSHUR - description: Ethernet PTP time stamp high update register - byte_offset: 16 - fieldset: PTPTSHUR - - name: PTPTSLUR - description: Ethernet PTP time stamp low update register - byte_offset: 20 - fieldset: PTPTSLUR - - name: PTPTSAR - description: Ethernet PTP time stamp addend register - byte_offset: 24 - fieldset: PTPTSAR - - name: PTPTTHR - description: Ethernet PTP target time high register - byte_offset: 28 - fieldset: PTPTTHR - - name: PTPTTLR - description: Ethernet PTP target time low register - byte_offset: 32 - fieldset: PTPTTLR - - name: PTPTSSR - description: Ethernet PTP time stamp status register - byte_offset: 40 - access: Read - fieldset: PTPTSSR - - name: PTPPPSCR - description: Ethernet PTP PPS control register - byte_offset: 44 - access: Read - fieldset: PTPPPSCR + - name: PTPTSCR + description: Ethernet PTP time stamp control register + byte_offset: 0 + fieldset: PTPTSCR + - name: PTPSSIR + description: Ethernet PTP subsecond increment register + byte_offset: 4 + fieldset: PTPSSIR + - name: PTPTSHR + description: Ethernet PTP time stamp high register + byte_offset: 8 + access: Read + fieldset: PTPTSHR + - name: PTPTSLR + description: Ethernet PTP time stamp low register + byte_offset: 12 + access: Read + fieldset: PTPTSLR + - name: PTPTSHUR + description: Ethernet PTP time stamp high update register + byte_offset: 16 + fieldset: PTPTSHUR + - name: PTPTSLUR + description: Ethernet PTP time stamp low update register + byte_offset: 20 + fieldset: PTPTSLUR + - name: PTPTSAR + description: Ethernet PTP time stamp addend register + byte_offset: 24 + fieldset: PTPTSAR + - name: PTPTTHR + description: Ethernet PTP target time high register + byte_offset: 28 + fieldset: PTPTTHR + - name: PTPTTLR + description: Ethernet PTP target time low register + byte_offset: 32 + fieldset: PTPTTLR + - name: PTPTSSR + description: Ethernet PTP time stamp status register + byte_offset: 40 + access: Read + fieldset: PTPTSSR + - name: PTPPPSCR + description: Ethernet PTP PPS control register + byte_offset: 44 + access: Read + fieldset: PTPPPSCR fieldset/DMABMR: description: Ethernet DMA bus mode register fields: - - name: SR - description: Software reset - bit_offset: 0 - bit_size: 1 - - name: DA - description: DMA arbitration - bit_offset: 1 - bit_size: 1 - enum: DA - - name: DSL - description: Descriptor skip length - bit_offset: 2 - bit_size: 5 - - name: PBL - description: Programmable burst length - bit_offset: 8 - bit_size: 6 - enum: PBL - - name: PM - description: Rx-Tx priority ratio - bit_offset: 14 - bit_size: 2 - enum: PriorityRxOverTx - - name: FB - description: Fixed burst - bit_offset: 16 - bit_size: 1 - enum: FB - - name: RDP - description: Rx DMA PBL - bit_offset: 17 - bit_size: 6 - enum: RDP - - name: USP - description: Use separate PBL - bit_offset: 23 - bit_size: 1 - enum: USP - - name: FPM - description: 4xPBL mode - bit_offset: 24 - bit_size: 1 - enum: FPM - - name: AAB - description: Address-aligned beats - bit_offset: 25 - bit_size: 1 - enum: AAB + - name: SR + description: Software reset + bit_offset: 0 + bit_size: 1 + - name: DA + description: DMA arbitration + bit_offset: 1 + bit_size: 1 + enum: DA + - name: DSL + description: Descriptor skip length + bit_offset: 2 + bit_size: 5 + - name: PBL + description: Programmable burst length + bit_offset: 8 + bit_size: 6 + enum: PBL + - name: PM + description: Rx-Tx priority ratio + bit_offset: 14 + bit_size: 2 + enum: PriorityRxOverTx + - name: FB + description: Fixed burst + bit_offset: 16 + bit_size: 1 + enum: FB + - name: RDP + description: Rx DMA PBL + bit_offset: 17 + bit_size: 6 + enum: RDP + - name: USP + description: Use separate PBL + bit_offset: 23 + bit_size: 1 + enum: USP + - name: FPM + description: 4xPBL mode + bit_offset: 24 + bit_size: 1 + enum: FPM + - name: AAB + description: Address-aligned beats + bit_offset: 25 + bit_size: 1 + enum: AAB fieldset/DMACHRBAR: description: Ethernet DMA current host receive buffer address register fields: - - name: HRBAP - description: Host receive buffer address pointer - bit_offset: 0 - bit_size: 32 + - name: HRBAP + description: Host receive buffer address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHRDR: description: Ethernet DMA current host receive descriptor register fields: - - name: HRDAP - description: Host receive descriptor address pointer - bit_offset: 0 - bit_size: 32 + - name: HRDAP + description: Host receive descriptor address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHTBAR: description: Ethernet DMA current host transmit buffer address register fields: - - name: HTBAP - description: Host transmit buffer address pointer - bit_offset: 0 - bit_size: 32 + - name: HTBAP + description: Host transmit buffer address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHTDR: description: Ethernet DMA current host transmit descriptor register fields: - - name: HTDAP - description: Host transmit descriptor address pointer - bit_offset: 0 - bit_size: 32 + - name: HTDAP + description: Host transmit descriptor address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMAIER: description: Ethernet DMA interrupt enable register fields: - - name: TIE - description: Transmit interrupt enable - bit_offset: 0 - bit_size: 1 - - name: TPSIE - description: Transmit process stopped interrupt enable - bit_offset: 1 - bit_size: 1 - - name: TBUIE - description: Transmit buffer unavailable interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TJTIE - description: Transmit jabber timeout interrupt enable - bit_offset: 3 - bit_size: 1 - - name: ROIE - description: Receive overflow interrupt enable - bit_offset: 4 - bit_size: 1 - - name: TUIE - description: Transmit underflow interrupt enable - bit_offset: 5 - bit_size: 1 - - name: RIE - description: Receive interrupt enable - bit_offset: 6 - bit_size: 1 - - name: RBUIE - description: Receive buffer unavailable interrupt enable - bit_offset: 7 - bit_size: 1 - - name: RPSIE - description: Receive process stopped interrupt enable - bit_offset: 8 - bit_size: 1 - - name: RWTIE - description: Receive watchdog timeout interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ETIE - description: Early transmit interrupt enable - bit_offset: 10 - bit_size: 1 - - name: FBEIE - description: Fatal bus error interrupt enable - bit_offset: 13 - bit_size: 1 - - name: ERIE - description: Early receive interrupt enable - bit_offset: 14 - bit_size: 1 - - name: AISE - description: Abnormal interrupt summary enable - bit_offset: 15 - bit_size: 1 - - name: NISE - description: Normal interrupt summary enable - bit_offset: 16 - bit_size: 1 + - name: TIE + description: Transmit interrupt enable + bit_offset: 0 + bit_size: 1 + - name: TPSIE + description: Transmit process stopped interrupt enable + bit_offset: 1 + bit_size: 1 + - name: TBUIE + description: Transmit buffer unavailable interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TJTIE + description: Transmit jabber timeout interrupt enable + bit_offset: 3 + bit_size: 1 + - name: ROIE + description: Receive overflow interrupt enable + bit_offset: 4 + bit_size: 1 + - name: TUIE + description: Transmit underflow interrupt enable + bit_offset: 5 + bit_size: 1 + - name: RIE + description: Receive interrupt enable + bit_offset: 6 + bit_size: 1 + - name: RBUIE + description: Receive buffer unavailable interrupt enable + bit_offset: 7 + bit_size: 1 + - name: RPSIE + description: Receive process stopped interrupt enable + bit_offset: 8 + bit_size: 1 + - name: RWTIE + description: Receive watchdog timeout interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ETIE + description: Early transmit interrupt enable + bit_offset: 10 + bit_size: 1 + - name: FBEIE + description: Fatal bus error interrupt enable + bit_offset: 13 + bit_size: 1 + - name: ERIE + description: Early receive interrupt enable + bit_offset: 14 + bit_size: 1 + - name: AISE + description: Abnormal interrupt summary enable + bit_offset: 15 + bit_size: 1 + - name: NISE + description: Normal interrupt summary enable + bit_offset: 16 + bit_size: 1 fieldset/DMAMFBOCR: description: Ethernet DMA missed frame and buffer overflow counter register fields: - - name: MFC - description: Missed frames by the controller - bit_offset: 0 - bit_size: 16 - - name: OMFC - description: Overflow bit for missed frame counter - bit_offset: 16 - bit_size: 1 - - name: MFA - description: Missed frames by the application - bit_offset: 17 - bit_size: 11 - - name: OFOC - description: Overflow bit for FIFO overflow counter - bit_offset: 28 - bit_size: 1 + - name: MFC + description: Missed frames by the controller + bit_offset: 0 + bit_size: 16 + - name: OMFC + description: Overflow bit for missed frame counter + bit_offset: 16 + bit_size: 1 + - name: MFA + description: Missed frames by the application + bit_offset: 17 + bit_size: 11 + - name: OFOC + description: Overflow bit for FIFO overflow counter + bit_offset: 28 + bit_size: 1 fieldset/DMAOMR: description: Ethernet DMA operation mode register fields: - - name: SR - description: Start/stop receive - bit_offset: 1 - bit_size: 1 - enum: DMAOMR_SR - - name: OSF - description: Operate on second frame - bit_offset: 2 - bit_size: 1 - - name: RTC - description: Receive threshold control - bit_offset: 3 - bit_size: 2 - enum: RTC - - name: FUGF - description: Forward undersized good frames - bit_offset: 6 - bit_size: 1 - enum: FUGF - - name: FEF - description: Forward error frames - bit_offset: 7 - bit_size: 1 - enum: FEF - - name: ST - description: Start/stop transmission - bit_offset: 13 - bit_size: 1 - enum: ST - - name: TTC - description: Transmit threshold control - bit_offset: 14 - bit_size: 3 - enum: TTC - - name: FTF - description: Flush transmit FIFO - bit_offset: 20 - bit_size: 1 - enum: FTF - - name: TSF - description: Transmit store and forward - bit_offset: 21 - bit_size: 1 - enum: TSF - - name: DFRF - description: Disable flushing of received frames - bit_offset: 24 - bit_size: 1 - - name: RSF - description: Receive store and forward - bit_offset: 25 - bit_size: 1 - enum: RSF - - name: DTCEFD - description: Dropping of TCP/IP checksum error frames disable - bit_offset: 26 - bit_size: 1 - enum: DTCEFD + - name: SR + description: Start/stop receive + bit_offset: 1 + bit_size: 1 + enum: DMAOMR_SR + - name: OSF + description: Operate on second frame + bit_offset: 2 + bit_size: 1 + - name: RTC + description: Receive threshold control + bit_offset: 3 + bit_size: 2 + enum: RTC + - name: FUGF + description: Forward undersized good frames + bit_offset: 6 + bit_size: 1 + enum: FUGF + - name: FEF + description: Forward error frames + bit_offset: 7 + bit_size: 1 + enum: FEF + - name: ST + description: Start/stop transmission + bit_offset: 13 + bit_size: 1 + enum: ST + - name: TTC + description: Transmit threshold control + bit_offset: 14 + bit_size: 3 + enum: TTC + - name: FTF + description: Flush transmit FIFO + bit_offset: 20 + bit_size: 1 + enum: FTF + - name: TSF + description: Transmit store and forward + bit_offset: 21 + bit_size: 1 + enum: TSF + - name: DFRF + description: Disable flushing of received frames + bit_offset: 24 + bit_size: 1 + - name: RSF + description: Receive store and forward + bit_offset: 25 + bit_size: 1 + enum: RSF + - name: DTCEFD + description: Dropping of TCP/IP checksum error frames disable + bit_offset: 26 + bit_size: 1 + enum: DTCEFD fieldset/DMARDLAR: description: Ethernet DMA receive descriptor list address register fields: - - name: SRL - description: Start of receive list - bit_offset: 0 - bit_size: 32 + - name: SRL + description: Start of receive list + bit_offset: 0 + bit_size: 32 fieldset/DMARPDR: description: EHERNET DMA receive poll demand register fields: - - name: RPD - description: Receive poll demand - bit_offset: 0 - bit_size: 32 - enum: RPD + - name: RPD + description: Receive poll demand + bit_offset: 0 + bit_size: 32 + enum: RPD fieldset/DMASR: description: Ethernet DMA status register fields: - - name: TS - description: Transmit status - bit_offset: 0 - bit_size: 1 - - name: TPSS - description: Transmit process stopped status - bit_offset: 1 - bit_size: 1 - - name: TBUS - description: Transmit buffer unavailable status - bit_offset: 2 - bit_size: 1 - - name: TJTS - description: Transmit jabber timeout status - bit_offset: 3 - bit_size: 1 - - name: ROS - description: Receive overflow status - bit_offset: 4 - bit_size: 1 - - name: TUS - description: Transmit underflow status - bit_offset: 5 - bit_size: 1 - - name: RS - description: Receive status - bit_offset: 6 - bit_size: 1 - - name: RBUS - description: Receive buffer unavailable status - bit_offset: 7 - bit_size: 1 - - name: RPSS - description: Receive process stopped status - bit_offset: 8 - bit_size: 1 - - name: PWTS - description: PWTS - bit_offset: 9 - bit_size: 1 - - name: ETS - description: Early transmit status - bit_offset: 10 - bit_size: 1 - - name: FBES - description: Fatal bus error status - bit_offset: 13 - bit_size: 1 - - name: ERS - description: Early receive status - bit_offset: 14 - bit_size: 1 - - name: AIS - description: Abnormal interrupt summary - bit_offset: 15 - bit_size: 1 - - name: NIS - description: Normal interrupt summary - bit_offset: 16 - bit_size: 1 - - name: RPS - description: Receive process state - bit_offset: 17 - bit_size: 3 - enum: RPS - - name: TPS - description: Transmit process state - bit_offset: 20 - bit_size: 3 - enum: TPS - - name: EBS - description: Error bits status - bit_offset: 23 - bit_size: 3 - - name: MMCS - description: MMC status - bit_offset: 27 - bit_size: 1 - - name: PMTS - description: PMT status - bit_offset: 28 - bit_size: 1 - - name: TSTS - description: Time stamp trigger status - bit_offset: 29 - bit_size: 1 + - name: TS + description: Transmit status + bit_offset: 0 + bit_size: 1 + - name: TPSS + description: Transmit process stopped status + bit_offset: 1 + bit_size: 1 + - name: TBUS + description: Transmit buffer unavailable status + bit_offset: 2 + bit_size: 1 + - name: TJTS + description: Transmit jabber timeout status + bit_offset: 3 + bit_size: 1 + - name: ROS + description: Receive overflow status + bit_offset: 4 + bit_size: 1 + - name: TUS + description: Transmit underflow status + bit_offset: 5 + bit_size: 1 + - name: RS + description: Receive status + bit_offset: 6 + bit_size: 1 + - name: RBUS + description: Receive buffer unavailable status + bit_offset: 7 + bit_size: 1 + - name: RPSS + description: Receive process stopped status + bit_offset: 8 + bit_size: 1 + - name: PWTS + description: PWTS + bit_offset: 9 + bit_size: 1 + - name: ETS + description: Early transmit status + bit_offset: 10 + bit_size: 1 + - name: FBES + description: Fatal bus error status + bit_offset: 13 + bit_size: 1 + - name: ERS + description: Early receive status + bit_offset: 14 + bit_size: 1 + - name: AIS + description: Abnormal interrupt summary + bit_offset: 15 + bit_size: 1 + - name: NIS + description: Normal interrupt summary + bit_offset: 16 + bit_size: 1 + - name: RPS + description: Receive process state + bit_offset: 17 + bit_size: 3 + enum: RPS + - name: TPS + description: Transmit process state + bit_offset: 20 + bit_size: 3 + enum: TPS + - name: EBS + description: Error bits status + bit_offset: 23 + bit_size: 3 + - name: MMCS + description: MMC status + bit_offset: 27 + bit_size: 1 + - name: PMTS + description: PMT status + bit_offset: 28 + bit_size: 1 + - name: TSTS + description: Time stamp trigger status + bit_offset: 29 + bit_size: 1 fieldset/DMATDLAR: description: Ethernet DMA transmit descriptor list address register fields: - - name: STL - description: Start of transmit list - bit_offset: 0 - bit_size: 32 + - name: STL + description: Start of transmit list + bit_offset: 0 + bit_size: 32 fieldset/DMATPDR: description: Ethernet DMA transmit poll demand register fields: - - name: TPD - description: Transmit poll demand - bit_offset: 0 - bit_size: 32 - enum: TPD + - name: TPD + description: Transmit poll demand + bit_offset: 0 + bit_size: 32 + enum: TPD fieldset/MACA0HR: description: Ethernet MAC address 0 high register fields: - - name: MACA0H - description: MAC address0 high - bit_offset: 0 - bit_size: 16 - - name: MO - description: Always 1 - bit_offset: 31 - bit_size: 1 + - name: MACA0H + description: MAC address0 high + bit_offset: 0 + bit_size: 16 + - name: MO + description: Always 1 + bit_offset: 31 + bit_size: 1 fieldset/MACA0LR: description: Ethernet MAC address 0 low register fields: - - name: MACA0L - description: "0" - bit_offset: 0 - bit_size: 32 + - name: MACA0L + description: '0' + bit_offset: 0 + bit_size: 32 fieldset/MACA1HR: description: Ethernet MAC address 1 high register fields: - - name: MACA1H - description: MACA1H - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA1H + description: MACA1H + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA1LR: description: Ethernet MAC address1 low register fields: - - name: MACA1L - description: MACA1LR - bit_offset: 0 - bit_size: 32 + - name: MACA1L + description: MACA1LR + bit_offset: 0 + bit_size: 32 fieldset/MACA2HR: description: Ethernet MAC address 2 high register fields: - - name: MACA2H - description: MAC2AH - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA2H + description: MAC2AH + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA2LR: description: Ethernet MAC address 2 low register fields: - - name: MACA2L - description: MACA2L - bit_offset: 0 - bit_size: 32 + - name: MACA2L + description: MACA2L + bit_offset: 0 + bit_size: 32 fieldset/MACA3HR: description: Ethernet MAC address 3 high register fields: - - name: MACA3H - description: MACA3H - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA3H + description: MACA3H + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA3LR: description: Ethernet MAC address 3 low register fields: - - name: MACA3L - description: MBCA3L - bit_offset: 0 - bit_size: 32 + - name: MACA3L + description: MBCA3L + bit_offset: 0 + bit_size: 32 fieldset/MACCR: description: Ethernet MAC configuration register fields: - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: DC - description: Deferral check - bit_offset: 4 - bit_size: 1 - enum: DC - - name: BL - description: Back-off limit - bit_offset: 5 - bit_size: 2 - enum: BL - - name: APCS - description: Automatic pad/CRC stripping - bit_offset: 7 - bit_size: 1 - enum: APCS - - name: RD - description: Retry disable - bit_offset: 9 - bit_size: 1 - enum: RD - - name: IPCO - description: IPv4 checksum offload - bit_offset: 10 - bit_size: 1 - enum: IPCO - - name: DM - description: Duplex mode - bit_offset: 11 - bit_size: 1 - enum: DM - - name: LM - description: Loopback mode - bit_offset: 12 - bit_size: 1 - enum: LM - - name: ROD - description: Receive own disable - bit_offset: 13 - bit_size: 1 - enum: ROD - - name: FES - description: Fast Ethernet speed - bit_offset: 14 - bit_size: 1 - enum: FES - - name: CSD - description: Carrier sense disable - bit_offset: 16 - bit_size: 1 - enum: CSD - - name: IFG - description: Interframe gap - bit_offset: 17 - bit_size: 3 - enum: IFG - - name: JD - description: Jabber disable - bit_offset: 22 - bit_size: 1 - enum: JD - - name: WD - description: Watchdog disable - bit_offset: 23 - bit_size: 1 - enum: WD + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: DC + description: Deferral check + bit_offset: 4 + bit_size: 1 + enum: DC + - name: BL + description: Back-off limit + bit_offset: 5 + bit_size: 2 + enum: BL + - name: APCS + description: Automatic pad/CRC stripping + bit_offset: 7 + bit_size: 1 + enum: APCS + - name: RD + description: Retry disable + bit_offset: 9 + bit_size: 1 + enum: RD + - name: IPCO + description: IPv4 checksum offload + bit_offset: 10 + bit_size: 1 + enum: IPCO + - name: DM + description: Duplex mode + bit_offset: 11 + bit_size: 1 + enum: DM + - name: LM + description: Loopback mode + bit_offset: 12 + bit_size: 1 + enum: LM + - name: ROD + description: Receive own disable + bit_offset: 13 + bit_size: 1 + enum: ROD + - name: FES + description: Fast Ethernet speed + bit_offset: 14 + bit_size: 1 + enum: FES + - name: CSD + description: Carrier sense disable + bit_offset: 16 + bit_size: 1 + enum: CSD + - name: IFG + description: Interframe gap + bit_offset: 17 + bit_size: 3 + enum: IFG + - name: JD + description: Jabber disable + bit_offset: 22 + bit_size: 1 + enum: JD + - name: WD + description: Watchdog disable + bit_offset: 23 + bit_size: 1 + enum: WD fieldset/MACDBGR: description: Ethernet MAC debug register fields: - - name: MMRPEA - description: MAC MII receive protocol engine active - bit_offset: 0 - bit_size: 1 - - name: MSFRWCS - description: MAC small FIFO read/write controllers status - bit_offset: 1 - bit_size: 2 - - name: RFWRA - description: Rx FIFO write controller active - bit_offset: 4 - bit_size: 1 - - name: RFRCS - description: Rx FIFO read controller status - bit_offset: 5 - bit_size: 2 - - name: RFFL - description: Rx FIFO fill level - bit_offset: 8 - bit_size: 2 - - name: MMTEA - description: MAC MII transmit engine active - bit_offset: 16 - bit_size: 1 - - name: MTFCS - description: MAC transmit frame controller status - bit_offset: 17 - bit_size: 2 - - name: MTP - description: MAC transmitter in pause - bit_offset: 19 - bit_size: 1 - - name: TFRS - description: Tx FIFO read status - bit_offset: 20 - bit_size: 2 - - name: TFWA - description: Tx FIFO write active - bit_offset: 22 - bit_size: 1 - - name: TFNE - description: Tx FIFO not empty - bit_offset: 24 - bit_size: 1 - - name: TFF - description: Tx FIFO full - bit_offset: 25 - bit_size: 1 + - name: MMRPEA + description: MAC MII receive protocol engine active + bit_offset: 0 + bit_size: 1 + - name: MSFRWCS + description: MAC small FIFO read/write controllers status + bit_offset: 1 + bit_size: 2 + - name: RFWRA + description: Rx FIFO write controller active + bit_offset: 4 + bit_size: 1 + - name: RFRCS + description: Rx FIFO read controller status + bit_offset: 5 + bit_size: 2 + - name: RFFL + description: Rx FIFO fill level + bit_offset: 8 + bit_size: 2 + - name: MMTEA + description: MAC MII transmit engine active + bit_offset: 16 + bit_size: 1 + - name: MTFCS + description: MAC transmit frame controller status + bit_offset: 17 + bit_size: 2 + - name: MTP + description: MAC transmitter in pause + bit_offset: 19 + bit_size: 1 + - name: TFRS + description: Tx FIFO read status + bit_offset: 20 + bit_size: 2 + - name: TFWA + description: Tx FIFO write active + bit_offset: 22 + bit_size: 1 + - name: TFNE + description: Tx FIFO not empty + bit_offset: 24 + bit_size: 1 + - name: TFF + description: Tx FIFO full + bit_offset: 25 + bit_size: 1 fieldset/MACFCR: description: Ethernet MAC flow control register fields: - - name: FCB - description: Flow control busy/back pressure activate - bit_offset: 0 - bit_size: 1 - enum: FCB - - name: TFCE - description: Transmit flow control enable - bit_offset: 1 - bit_size: 1 - enum: TFCE - - name: RFCE - description: Receive flow control enable - bit_offset: 2 - bit_size: 1 - enum: RFCE - - name: UPFD - description: Unicast pause frame detect - bit_offset: 3 - bit_size: 1 - enum: UPFD - - name: PLT - description: Pause low threshold - bit_offset: 4 - bit_size: 2 - enum: PLT - - name: ZQPD - description: Zero-quanta pause disable - bit_offset: 7 - bit_size: 1 - enum: ZQPD - - name: PT - description: Pause time - bit_offset: 16 - bit_size: 16 + - name: FCB + description: Flow control busy/back pressure activate + bit_offset: 0 + bit_size: 1 + enum: FCB + - name: TFCE + description: Transmit flow control enable + bit_offset: 1 + bit_size: 1 + enum: TFCE + - name: RFCE + description: Receive flow control enable + bit_offset: 2 + bit_size: 1 + enum: RFCE + - name: UPFD + description: Unicast pause frame detect + bit_offset: 3 + bit_size: 1 + enum: UPFD + - name: PLT + description: Pause low threshold + bit_offset: 4 + bit_size: 2 + enum: PLT + - name: ZQPD + description: Zero-quanta pause disable + bit_offset: 7 + bit_size: 1 + enum: ZQPD + - name: PT + description: Pause time + bit_offset: 16 + bit_size: 16 fieldset/MACFFR: description: Ethernet MAC frame filter register fields: - - name: PM - description: Promiscuous mode - bit_offset: 0 - bit_size: 1 - enum: PM - - name: HU - description: Hash unicast - bit_offset: 1 - bit_size: 1 - enum: HU - - name: HM - description: Hash multicast - bit_offset: 2 - bit_size: 1 - enum: HM - - name: DAIF - description: Destination address unique filtering - bit_offset: 3 - bit_size: 1 - enum: DAIF - - name: PAM - description: Pass all multicast - bit_offset: 4 - bit_size: 1 - enum: PAM - - name: BFD - description: Broadcast frames disable - bit_offset: 5 - bit_size: 1 - enum: BFD - - name: PCF - description: Pass control frames - bit_offset: 6 - bit_size: 2 - enum: PCF - - name: SAIF - description: Source address inverse filtering - bit_offset: 7 - bit_size: 1 - enum: SAIF - - name: SAF - description: Source address filter - bit_offset: 8 - bit_size: 1 - enum: SAF - - name: HPF - description: Hash or perfect filter - bit_offset: 9 - bit_size: 1 - enum: HPF - - name: RA - description: Receive all - bit_offset: 31 - bit_size: 1 - enum: RA + - name: PM + description: Promiscuous mode + bit_offset: 0 + bit_size: 1 + enum: PM + - name: HU + description: Hash unicast + bit_offset: 1 + bit_size: 1 + enum: HU + - name: HM + description: Hash multicast + bit_offset: 2 + bit_size: 1 + enum: HM + - name: DAIF + description: Destination address unique filtering + bit_offset: 3 + bit_size: 1 + enum: DAIF + - name: PAM + description: Pass all multicast + bit_offset: 4 + bit_size: 1 + enum: PAM + - name: BFD + description: Broadcast frames disable + bit_offset: 5 + bit_size: 1 + enum: BFD + - name: PCF + description: Pass control frames + bit_offset: 6 + bit_size: 2 + enum: PCF + - name: SAIF + description: Source address inverse filtering + bit_offset: 7 + bit_size: 1 + enum: SAIF + - name: SAF + description: Source address filter + bit_offset: 8 + bit_size: 1 + enum: SAF + - name: HPF + description: Hash or perfect filter + bit_offset: 9 + bit_size: 1 + enum: HPF + - name: RA + description: Receive all + bit_offset: 31 + bit_size: 1 + enum: RA fieldset/MACHTHR: description: Ethernet MAC hash table high register fields: - - name: HTH - description: Upper 32 bits of hash table - bit_offset: 0 - bit_size: 32 + - name: HTH + description: Upper 32 bits of hash table + bit_offset: 0 + bit_size: 32 fieldset/MACHTLR: description: Ethernet MAC hash table low register fields: - - name: HTL - description: Lower 32 bits of hash table - bit_offset: 0 - bit_size: 32 + - name: HTL + description: Lower 32 bits of hash table + bit_offset: 0 + bit_size: 32 fieldset/MACIMR: description: Ethernet MAC interrupt mask register fields: - - name: PMTIM - description: PMT interrupt mask - bit_offset: 3 - bit_size: 1 - enum: PMTIM - - name: TSTIM - description: Time stamp trigger interrupt mask - bit_offset: 9 - bit_size: 1 - enum: TSTIM + - name: PMTIM + description: PMT interrupt mask + bit_offset: 3 + bit_size: 1 + enum: PMTIM + - name: TSTIM + description: Time stamp trigger interrupt mask + bit_offset: 9 + bit_size: 1 + enum: TSTIM fieldset/MACMIIAR: description: Ethernet MAC MII address register fields: - - name: MB - description: MII busy - bit_offset: 0 - bit_size: 1 - enum: MB_progress - - name: MW - description: MII write - bit_offset: 1 - bit_size: 1 - enum: MW - - name: CR - description: Clock range - bit_offset: 2 - bit_size: 3 - enum: CR - - name: MR - description: MII register - select the desired MII register in the PHY device - bit_offset: 6 - bit_size: 5 - - name: PA - description: PHY address - select which of possible 32 PHYs is being accessed - bit_offset: 11 - bit_size: 5 + - name: MB + description: MII busy + bit_offset: 0 + bit_size: 1 + enum: MB_progress + - name: MW + description: MII write + bit_offset: 1 + bit_size: 1 + enum: MW + - name: CR + description: Clock range + bit_offset: 2 + bit_size: 3 + enum: CR + - name: MR + description: MII register - select the desired MII register in the PHY device + bit_offset: 6 + bit_size: 5 + - name: PA + description: PHY address - select which of possible 32 PHYs is being accessed + bit_offset: 11 + bit_size: 5 fieldset/MACMIIDR: description: Ethernet MAC MII data register fields: - - name: MD - description: MII data read from/written to the PHY - bit_offset: 0 - bit_size: 16 + - name: MD + description: MII data read from/written to the PHY + bit_offset: 0 + bit_size: 16 fieldset/MACPMTCSR: description: Ethernet MAC PMT control and status register fields: - - name: PD - description: Power down - bit_offset: 0 - bit_size: 1 - enum: PD - - name: MPE - description: Magic packet enable - bit_offset: 1 - bit_size: 1 - enum: MPE - - name: WFE - description: Wakeup frame enable - bit_offset: 2 - bit_size: 1 - enum: WFE - - name: MPR - description: Magic packet received - bit_offset: 5 - bit_size: 1 - - name: WFR - description: Wakeup frame received - bit_offset: 6 - bit_size: 1 - - name: GU - description: Global unicast - bit_offset: 9 - bit_size: 1 - enum: GU - - name: WFFRPR - description: Wakeup frame filter register pointer reset - bit_offset: 31 - bit_size: 1 - enum: WFFRPR + - name: PD + description: Power down + bit_offset: 0 + bit_size: 1 + enum: PD + - name: MPE + description: Magic packet enable + bit_offset: 1 + bit_size: 1 + enum: MPE + - name: WFE + description: Wakeup frame enable + bit_offset: 2 + bit_size: 1 + enum: WFE + - name: MPR + description: Magic packet received + bit_offset: 5 + bit_size: 1 + - name: WFR + description: Wakeup frame received + bit_offset: 6 + bit_size: 1 + - name: GU + description: Global unicast + bit_offset: 9 + bit_size: 1 + enum: GU + - name: WFFRPR + description: Wakeup frame filter register pointer reset + bit_offset: 31 + bit_size: 1 + enum: WFFRPR fieldset/MACSR: description: Ethernet MAC interrupt status register fields: - - name: PMTS - description: PMT status - bit_offset: 3 - bit_size: 1 - - name: MMCS - description: MMC status - bit_offset: 4 - bit_size: 1 - - name: MMCRS - description: MMC receive status - bit_offset: 5 - bit_size: 1 - - name: MMCTS - description: MMC transmit status - bit_offset: 6 - bit_size: 1 - - name: TSTS - description: Time stamp trigger status - bit_offset: 9 - bit_size: 1 + - name: PMTS + description: PMT status + bit_offset: 3 + bit_size: 1 + - name: MMCS + description: MMC status + bit_offset: 4 + bit_size: 1 + - name: MMCRS + description: MMC receive status + bit_offset: 5 + bit_size: 1 + - name: MMCTS + description: MMC transmit status + bit_offset: 6 + bit_size: 1 + - name: TSTS + description: Time stamp trigger status + bit_offset: 9 + bit_size: 1 fieldset/MACVLANTR: description: Ethernet MAC VLAN tag register fields: - - name: VLANTI - description: VLAN tag identifier (for receive frames) - bit_offset: 0 - bit_size: 16 - - name: VLANTC - description: 12-bit VLAN tag comparison - bit_offset: 16 - bit_size: 1 - enum: VLANTC + - name: VLANTI + description: VLAN tag identifier (for receive frames) + bit_offset: 0 + bit_size: 16 + - name: VLANTC + description: 12-bit VLAN tag comparison + bit_offset: 16 + bit_size: 1 + enum: VLANTC fieldset/MMCCR: description: Ethernet MMC control register fields: - - name: CR - description: Counter reset - bit_offset: 0 - bit_size: 1 - enum: CounterReset - - name: CSR - description: Counter stop rollover - bit_offset: 1 - bit_size: 1 - enum: CSR - - name: ROR - description: Reset on read - bit_offset: 2 - bit_size: 1 - enum: ROR - - name: MCF - description: MMC counter freeze - bit_offset: 3 - bit_size: 1 - enum: MCF + - name: CR + description: Counter reset + bit_offset: 0 + bit_size: 1 + enum: CounterReset + - name: CSR + description: Counter stop rollover + bit_offset: 1 + bit_size: 1 + enum: CSR + - name: ROR + description: Reset on read + bit_offset: 2 + bit_size: 1 + enum: ROR + - name: MCF + description: MMC counter freeze + bit_offset: 3 + bit_size: 1 + enum: MCF fieldset/MMCRFAECR: description: Ethernet MMC received frames with alignment error counter register fields: - - name: RFAEC - description: RFAEC - bit_offset: 0 - bit_size: 32 + - name: RFAEC + description: RFAEC + bit_offset: 0 + bit_size: 32 fieldset/MMCRFCECR: description: Ethernet MMC received frames with CRC error counter register fields: - - name: RFCFC - description: RFCFC - bit_offset: 0 - bit_size: 32 + - name: RFCFC + description: RFCFC + bit_offset: 0 + bit_size: 32 fieldset/MMCRGUFCR: description: MMC received good unicast frames counter register fields: - - name: RGUFC - description: RGUFC - bit_offset: 0 - bit_size: 32 + - name: RGUFC + description: RGUFC + bit_offset: 0 + bit_size: 32 fieldset/MMCRIMR: description: Ethernet MMC receive interrupt mask register fields: - - name: RFCEM - description: Received frame CRC error mask - bit_offset: 5 - bit_size: 1 - enum: RFCEM - - name: RFAEM - description: Received frames alignment error mask - bit_offset: 6 - bit_size: 1 - enum: RFAEM - - name: RGUFM - description: Received good Unicast frames mask - bit_offset: 17 - bit_size: 1 - enum: RGUFM + - name: RFCEM + description: Received frame CRC error mask + bit_offset: 5 + bit_size: 1 + enum: RFCEM + - name: RFAEM + description: Received frames alignment error mask + bit_offset: 6 + bit_size: 1 + enum: RFAEM + - name: RGUFM + description: Received good Unicast frames mask + bit_offset: 17 + bit_size: 1 + enum: RGUFM fieldset/MMCRIR: description: Ethernet MMC receive interrupt register fields: - - name: RFCES - description: Received frames CRC error status - bit_offset: 5 - bit_size: 1 - - name: RFAES - description: Received frames alignment error status - bit_offset: 6 - bit_size: 1 - - name: RGUFS - description: Received good Unicast frames status - bit_offset: 17 - bit_size: 1 + - name: RFCES + description: Received frames CRC error status + bit_offset: 5 + bit_size: 1 + - name: RFAES + description: Received frames alignment error status + bit_offset: 6 + bit_size: 1 + - name: RGUFS + description: Received good Unicast frames status + bit_offset: 17 + bit_size: 1 fieldset/MMCTGFCR: description: Ethernet MMC transmitted good frames counter register fields: - - name: TGFC - description: HTL - bit_offset: 0 - bit_size: 32 + - name: TGFC + description: HTL + bit_offset: 0 + bit_size: 32 fieldset/MMCTGFMSCCR: description: Ethernet MMC transmitted good frames after more than a single collision fields: - - name: TGFMSCC - description: TGFMSCC - bit_offset: 0 - bit_size: 32 + - name: TGFMSCC + description: TGFMSCC + bit_offset: 0 + bit_size: 32 fieldset/MMCTGFSCCR: description: Ethernet MMC transmitted good frames after a single collision counter fields: - - name: TGFSCC - description: Transmitted good frames single collision counter - bit_offset: 0 - bit_size: 32 + - name: TGFSCC + description: Transmitted good frames single collision counter + bit_offset: 0 + bit_size: 32 fieldset/MMCTIMR: description: Ethernet MMC transmit interrupt mask register fields: - - name: TGFSCM - description: Transmitted good frames single collision mask - bit_offset: 14 - bit_size: 1 - enum: TGFSCM - - name: TGFMSCM - description: Transmitted good frames more than single collision mask - bit_offset: 15 - bit_size: 1 - enum: TGFMSCM - - name: TGFM - description: Transmitted good frames mask - bit_offset: 16 - bit_size: 1 - enum: TGFM + - name: TGFSCM + description: Transmitted good frames single collision mask + bit_offset: 14 + bit_size: 1 + enum: TGFSCM + - name: TGFMSCM + description: Transmitted good frames more than single collision mask + bit_offset: 15 + bit_size: 1 + enum: TGFMSCM + - name: TGFM + description: Transmitted good frames mask + bit_offset: 16 + bit_size: 1 + enum: TGFM fieldset/MMCTIR: description: Ethernet MMC transmit interrupt register fields: - - name: TGFSCS - description: Transmitted good frames single collision status - bit_offset: 14 - bit_size: 1 - - name: TGFMSCS - description: Transmitted good frames more than single collision status - bit_offset: 15 - bit_size: 1 - - name: TGFS - description: Transmitted good frames status - bit_offset: 21 - bit_size: 1 + - name: TGFSCS + description: Transmitted good frames single collision status + bit_offset: 14 + bit_size: 1 + - name: TGFMSCS + description: Transmitted good frames more than single collision status + bit_offset: 15 + bit_size: 1 + - name: TGFS + description: Transmitted good frames status + bit_offset: 21 + bit_size: 1 fieldset/PTPPPSCR: description: Ethernet PTP PPS control register fields: - - name: TSSO - description: TSSO - bit_offset: 0 - bit_size: 1 - - name: TSTTR - description: TSTTR - bit_offset: 1 - bit_size: 1 + - name: TSSO + description: TSSO + bit_offset: 0 + bit_size: 1 + - name: TSTTR + description: TSTTR + bit_offset: 1 + bit_size: 1 fieldset/PTPSSIR: description: Ethernet PTP subsecond increment register fields: - - name: STSSI - description: STSSI - bit_offset: 0 - bit_size: 8 + - name: STSSI + description: STSSI + bit_offset: 0 + bit_size: 8 fieldset/PTPTSAR: description: Ethernet PTP time stamp addend register fields: - - name: TSA - description: TSA - bit_offset: 0 - bit_size: 32 + - name: TSA + description: TSA + bit_offset: 0 + bit_size: 32 fieldset/PTPTSCR: description: Ethernet PTP time stamp control register fields: - - name: TSE - description: TSE - bit_offset: 0 - bit_size: 1 - - name: TSFCU - description: TSFCU - bit_offset: 1 - bit_size: 1 - - name: TSSTI - description: TSSTI - bit_offset: 2 - bit_size: 1 - - name: TSSTU - description: TSSTU - bit_offset: 3 - bit_size: 1 - - name: TSITE - description: TSITE - bit_offset: 4 - bit_size: 1 - - name: TTSARU - description: TTSARU - bit_offset: 5 - bit_size: 1 - - name: TSSARFE - description: TSSARFE - bit_offset: 8 - bit_size: 1 - - name: TSSSR - description: TSSSR - bit_offset: 9 - bit_size: 1 - - name: TSPTPPSV2E - description: TSPTPPSV2E - bit_offset: 10 - bit_size: 1 - - name: TSSPTPOEFE - description: TSSPTPOEFE - bit_offset: 11 - bit_size: 1 - - name: TSSIPV6FE - description: TSSIPV6FE - bit_offset: 12 - bit_size: 1 - - name: TSSIPV4FE - description: TSSIPV4FE - bit_offset: 13 - bit_size: 1 - - name: TSSEME - description: TSSEME - bit_offset: 14 - bit_size: 1 - - name: TSSMRME - description: TSSMRME - bit_offset: 15 - bit_size: 1 - - name: TSCNT - description: TSCNT - bit_offset: 16 - bit_size: 2 - - name: TSPFFMAE - description: TSPFFMAE - bit_offset: 18 - bit_size: 1 + - name: TSE + description: TSE + bit_offset: 0 + bit_size: 1 + - name: TSFCU + description: TSFCU + bit_offset: 1 + bit_size: 1 + - name: TSSTI + description: TSSTI + bit_offset: 2 + bit_size: 1 + - name: TSSTU + description: TSSTU + bit_offset: 3 + bit_size: 1 + - name: TSITE + description: TSITE + bit_offset: 4 + bit_size: 1 + - name: TTSARU + description: TTSARU + bit_offset: 5 + bit_size: 1 + - name: TSSARFE + description: TSSARFE + bit_offset: 8 + bit_size: 1 + - name: TSSSR + description: TSSSR + bit_offset: 9 + bit_size: 1 + - name: TSPTPPSV2E + description: TSPTPPSV2E + bit_offset: 10 + bit_size: 1 + - name: TSSPTPOEFE + description: TSSPTPOEFE + bit_offset: 11 + bit_size: 1 + - name: TSSIPV6FE + description: TSSIPV6FE + bit_offset: 12 + bit_size: 1 + - name: TSSIPV4FE + description: TSSIPV4FE + bit_offset: 13 + bit_size: 1 + - name: TSSEME + description: TSSEME + bit_offset: 14 + bit_size: 1 + - name: TSSMRME + description: TSSMRME + bit_offset: 15 + bit_size: 1 + - name: TSCNT + description: TSCNT + bit_offset: 16 + bit_size: 2 + - name: TSPFFMAE + description: TSPFFMAE + bit_offset: 18 + bit_size: 1 fieldset/PTPTSHR: description: Ethernet PTP time stamp high register fields: - - name: STS - description: STS - bit_offset: 0 - bit_size: 32 + - name: STS + description: STS + bit_offset: 0 + bit_size: 32 fieldset/PTPTSHUR: description: Ethernet PTP time stamp high update register fields: - - name: TSUS - description: TSUS - bit_offset: 0 - bit_size: 32 + - name: TSUS + description: TSUS + bit_offset: 0 + bit_size: 32 fieldset/PTPTSLR: description: Ethernet PTP time stamp low register fields: - - name: STSS - description: STSS - bit_offset: 0 - bit_size: 31 - - name: STPNS - description: STPNS - bit_offset: 31 - bit_size: 1 + - name: STSS + description: STSS + bit_offset: 0 + bit_size: 31 + - name: STPNS + description: STPNS + bit_offset: 31 + bit_size: 1 fieldset/PTPTSLUR: description: Ethernet PTP time stamp low update register fields: - - name: TSUSS - description: TSUSS - bit_offset: 0 - bit_size: 31 - - name: TSUPNS - description: TSUPNS - bit_offset: 31 - bit_size: 1 + - name: TSUSS + description: TSUSS + bit_offset: 0 + bit_size: 31 + - name: TSUPNS + description: TSUPNS + bit_offset: 31 + bit_size: 1 fieldset/PTPTSSR: description: Ethernet PTP time stamp status register fields: - - name: TSSO - description: TSSO - bit_offset: 0 - bit_size: 1 - - name: TSTTR - description: TSSO - bit_offset: 1 - bit_size: 1 + - name: TSSO + description: TSSO + bit_offset: 0 + bit_size: 1 + - name: TSTTR + description: TSSO + bit_offset: 1 + bit_size: 1 fieldset/PTPTTHR: description: Ethernet PTP target time high register fields: - - name: TTSH - description: "0" - bit_offset: 0 - bit_size: 32 + - name: TTSH + description: '0' + bit_offset: 0 + bit_size: 32 fieldset/PTPTTLR: description: Ethernet PTP target time low register fields: - - name: TTSL - description: TTSL - bit_offset: 0 - bit_size: 32 + - name: TTSL + description: TTSL + bit_offset: 0 + bit_size: 32 enum/AAB: bit_size: 1 variants: - - name: Unaligned - description: Bursts are not aligned - value: 0 - - name: Aligned - description: Align bursts to start address LS bits. First burst alignment depends on FB bit - value: 1 + - name: Unaligned + description: Bursts are not aligned + value: 0 + - name: Aligned + description: Align bursts to start address LS bits. First burst alignment depends on FB bit + value: 1 enum/APCS: bit_size: 1 variants: - - name: Disabled - description: MAC passes all incoming frames unmodified - value: 0 - - name: Strip - description: MAC strips the Pad/FCS field on incoming frames only for lengths less than or equal to 1500 bytes - value: 1 + - name: Disabled + description: MAC passes all incoming frames unmodified + value: 0 + - name: Strip + description: MAC strips the Pad/FCS field on incoming frames only for lengths less than or equal to 1500 bytes + value: 1 enum/BFD: bit_size: 1 variants: - - name: Enabled - description: Address filters pass all received broadcast frames - value: 0 - - name: Disabled - description: Address filters filter all incoming broadcast frames - value: 1 + - name: Enabled + description: Address filters pass all received broadcast frames + value: 0 + - name: Disabled + description: Address filters filter all incoming broadcast frames + value: 1 enum/BL: bit_size: 2 variants: - - name: BL10 - description: "For retransmission n, wait up to 2^min(n, 10) time slots" - value: 0 - - name: BL8 - description: "For retransmission n, wait up to 2^min(n, 8) time slots" - value: 1 - - name: BL4 - description: "For retransmission n, wait up to 2^min(n, 4) time slots" - value: 2 - - name: BL1 - description: "For retransmission n, wait up to 2^min(n, 1) time slots" - value: 3 + - name: BL10 + description: For retransmission n, wait up to 2^min(n, 10) time slots + value: 0 + - name: BL8 + description: For retransmission n, wait up to 2^min(n, 8) time slots + value: 1 + - name: BL4 + description: For retransmission n, wait up to 2^min(n, 4) time slots + value: 2 + - name: BL1 + description: For retransmission n, wait up to 2^min(n, 1) time slots + value: 3 enum/CR: bit_size: 3 variants: - - name: CR_60_100 - description: 60-100MHz HCLK/42 - value: 0 - - name: CR_100_150 - description: 100-150 MHz HCLK/62 - value: 1 - - name: CR_20_35 - description: 20-35MHz HCLK/16 - value: 2 - - name: CR_35_60 - description: 35-60MHz HCLK/16 - value: 3 - - name: CR_150_168 - description: 150-168MHz HCLK/102 - value: 4 + - name: CR_60_100 + description: 60-100MHz HCLK/42 + value: 0 + - name: CR_100_150 + description: 100-150 MHz HCLK/62 + value: 1 + - name: CR_20_35 + description: 20-35MHz HCLK/16 + value: 2 + - name: CR_35_60 + description: 35-60MHz HCLK/16 + value: 3 + - name: CR_150_168 + description: 150-168MHz HCLK/102 + value: 4 enum/CSD: bit_size: 1 variants: - - name: Enabled - description: Errors generated due to loss of carrier - value: 0 - - name: Disabled - description: No error generated due to loss of carrier - value: 1 + - name: Enabled + description: Errors generated due to loss of carrier + value: 0 + - name: Disabled + description: No error generated due to loss of carrier + value: 1 enum/CSR: bit_size: 1 variants: - - name: Disabled - description: Counters roll over to zero after reaching the maximum value - value: 0 - - name: Enabled - description: Counters do not roll over to zero after reaching the maximum value - value: 1 + - name: Disabled + description: Counters roll over to zero after reaching the maximum value + value: 0 + - name: Enabled + description: Counters do not roll over to zero after reaching the maximum value + value: 1 enum/CounterReset: bit_size: 1 variants: - - name: Reset - description: Reset all counters. Cleared automatically - value: 1 + - name: Reset + description: Reset all counters. Cleared automatically + value: 1 enum/DA: bit_size: 1 variants: - - name: RoundRobin - description: "Round-robin with Rx:Tx priority given by PM" - value: 0 - - name: RxPriority - description: Rx has priority over Tx - value: 1 + - name: RoundRobin + description: Round-robin with Rx:Tx priority given by PM + value: 0 + - name: RxPriority + description: Rx has priority over Tx + value: 1 enum/DAIF: bit_size: 1 variants: - - name: Normal - description: Normal filtering of frames - value: 0 - - name: Invert - description: Address check block operates in inverse filtering mode for the DA address comparison - value: 1 + - name: Normal + description: Normal filtering of frames + value: 0 + - name: Invert + description: Address check block operates in inverse filtering mode for the DA address comparison + value: 1 enum/DC: bit_size: 1 variants: - - name: Disabled - description: MAC defers until CRS signal goes inactive - value: 0 - - name: Enabled - description: Deferral check function enabled - value: 1 + - name: Disabled + description: MAC defers until CRS signal goes inactive + value: 0 + - name: Enabled + description: Deferral check function enabled + value: 1 enum/DM: bit_size: 1 variants: - - name: HalfDuplex - description: MAC operates in half-duplex mode - value: 0 - - name: FullDuplex - description: MAC operates in full-duplex mode - value: 1 + - name: HalfDuplex + description: MAC operates in half-duplex mode + value: 0 + - name: FullDuplex + description: MAC operates in full-duplex mode + value: 1 enum/DMAOMR_SR: bit_size: 1 variants: - - name: Stopped - description: Reception is stopped after transfer of the current frame - value: 0 - - name: Started - description: Reception is placed in the Running state - value: 1 + - name: Stopped + description: Reception is stopped after transfer of the current frame + value: 0 + - name: Started + description: Reception is placed in the Running state + value: 1 enum/DTCEFD: bit_size: 1 variants: - - name: Enabled - description: Drop frames with errors only in the receive checksum offload engine - value: 0 - - name: Disabled - description: Do not drop frames that only have errors in the receive checksum offload engine - value: 1 + - name: Enabled + description: Drop frames with errors only in the receive checksum offload engine + value: 0 + - name: Disabled + description: Do not drop frames that only have errors in the receive checksum offload engine + value: 1 enum/FB: bit_size: 1 variants: - - name: Variable - description: AHB uses SINGLE and INCR burst transfers - value: 0 - - name: Fixed - description: AHB uses only fixed burst transfers - value: 1 + - name: Variable + description: AHB uses SINGLE and INCR burst transfers + value: 0 + - name: Fixed + description: AHB uses only fixed burst transfers + value: 1 enum/FCB: bit_size: 1 variants: - - name: DisableBackPressure - description: "In half duplex only, deasserts back pressure" - value: 0 - - name: PauseOrBackPressure - description: "In full duplex, initiate a Pause control frame. In half duplex, assert back pressure" - value: 1 + - name: DisableBackPressure + description: In half duplex only, deasserts back pressure + value: 0 + - name: PauseOrBackPressure + description: In full duplex, initiate a Pause control frame. In half duplex, assert back pressure + value: 1 enum/FEF: bit_size: 1 variants: - - name: Drop - description: Rx FIFO drops frames with error status - value: 0 - - name: Forward - description: All frames except runt error frames are forwarded to the DMA - value: 1 + - name: Drop + description: Rx FIFO drops frames with error status + value: 0 + - name: Forward + description: All frames except runt error frames are forwarded to the DMA + value: 1 enum/FES: bit_size: 1 variants: - - name: FES10 - description: 10 Mbit/s - value: 0 - - name: FES100 - description: 100 Mbit/s - value: 1 + - name: FES10 + description: 10 Mbit/s + value: 0 + - name: FES100 + description: 100 Mbit/s + value: 1 enum/FPM: bit_size: 1 variants: - - name: x1 - description: PBL values used as-is - value: 0 - - name: x4 - description: PBL values multiplied by 4 - value: 1 + - name: x1 + description: PBL values used as-is + value: 0 + - name: x4 + description: PBL values multiplied by 4 + value: 1 enum/FTF: bit_size: 1 variants: - - name: Flush - description: Transmit FIFO controller logic is reset to its default values. Cleared automatically - value: 1 + - name: Flush + description: Transmit FIFO controller logic is reset to its default values. Cleared automatically + value: 1 enum/FUGF: bit_size: 1 variants: - - name: Drop - description: Rx FIFO drops all frames of less than 64 bytes - value: 0 - - name: Forward - description: Rx FIFO forwards undersized frames - value: 1 + - name: Drop + description: Rx FIFO drops all frames of less than 64 bytes + value: 0 + - name: Forward + description: Rx FIFO forwards undersized frames + value: 1 enum/GU: bit_size: 1 variants: - - name: Disabled - description: Normal operation - value: 0 - - name: Enabled - description: Any unicast packet filtered by the MAC address recognition may be a wakeup frame - value: 1 + - name: Disabled + description: Normal operation + value: 0 + - name: Enabled + description: Any unicast packet filtered by the MAC address recognition may be a wakeup frame + value: 1 enum/HM: bit_size: 1 variants: - - name: Perfect - description: MAC performs a perfect destination address filtering for multicast frames - value: 0 - - name: Hash - description: MAC performs destination address filtering of received multicast frames according to the hash table - value: 1 + - name: Perfect + description: MAC performs a perfect destination address filtering for multicast frames + value: 0 + - name: Hash + description: MAC performs destination address filtering of received multicast frames according to the hash table + value: 1 enum/HPF: bit_size: 1 variants: - - name: HashOnly - description: "If HM or HU is set, only frames that match the Hash filter are passed" - value: 0 - - name: HashOrPerfect - description: "If HM or HU is set, frames that match either the perfect filter or the hash filter are passed" - value: 1 + - name: HashOnly + description: If HM or HU is set, only frames that match the Hash filter are passed + value: 0 + - name: HashOrPerfect + description: If HM or HU is set, frames that match either the perfect filter or the hash filter are passed + value: 1 enum/HU: bit_size: 1 variants: - - name: Perfect - description: MAC performs a perfect destination address filtering for unicast frames - value: 0 - - name: Hash - description: MAC performs destination address filtering of received unicast frames according to the hash table - value: 1 + - name: Perfect + description: MAC performs a perfect destination address filtering for unicast frames + value: 0 + - name: Hash + description: MAC performs destination address filtering of received unicast frames according to the hash table + value: 1 enum/IFG: bit_size: 3 variants: - - name: IFG96 - description: 96 bit times - value: 0 - - name: IFG88 - description: 88 bit times - value: 1 - - name: IFG80 - description: 80 bit times - value: 2 - - name: IFG72 - description: 72 bit times - value: 3 - - name: IFG64 - description: 64 bit times - value: 4 - - name: IFG56 - description: 56 bit times - value: 5 - - name: IFG48 - description: 48 bit times - value: 6 - - name: IFG40 - description: 40 bit times - value: 7 + - name: IFG96 + description: 96 bit times + value: 0 + - name: IFG88 + description: 88 bit times + value: 1 + - name: IFG80 + description: 80 bit times + value: 2 + - name: IFG72 + description: 72 bit times + value: 3 + - name: IFG64 + description: 64 bit times + value: 4 + - name: IFG56 + description: 56 bit times + value: 5 + - name: IFG48 + description: 48 bit times + value: 6 + - name: IFG40 + description: 40 bit times + value: 7 enum/IPCO: bit_size: 1 variants: - - name: Disabled - description: IPv4 checksum offload disabled - value: 0 - - name: Offload - description: IPv4 checksums are checked in received frames - value: 1 + - name: Disabled + description: IPv4 checksum offload disabled + value: 0 + - name: Offload + description: IPv4 checksums are checked in received frames + value: 1 enum/JD: bit_size: 1 variants: - - name: Enabled - description: "Jabber enabled, transmit frames up to 2048 bytes" - value: 0 - - name: Disabled - description: "Jabber disabled, transmit frames up to 16384 bytes" - value: 1 + - name: Enabled + description: Jabber enabled, transmit frames up to 2048 bytes + value: 0 + - name: Disabled + description: Jabber disabled, transmit frames up to 16384 bytes + value: 1 enum/LM: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: Loopback - description: MAC operates in loopback mode at the MII - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: Loopback + description: MAC operates in loopback mode at the MII + value: 1 enum/MACAHR_AE: bit_size: 1 variants: - - name: Disabled - description: Address filters ignore this address - value: 0 - - name: Enabled - description: Address filters use this address - value: 1 + - name: Disabled + description: Address filters ignore this address + value: 0 + - name: Enabled + description: Address filters use this address + value: 1 enum/MACAHR_SA: bit_size: 1 variants: - - name: Destination - description: This address is used for comparison with DA fields of the received frame - value: 0 - - name: Source - description: This address is used for comparison with SA fields of received frames - value: 1 + - name: Destination + description: This address is used for comparison with DA fields of the received frame + value: 0 + - name: Source + description: This address is used for comparison with SA fields of received frames + value: 1 enum/MB_progress: bit_size: 1 variants: - - name: Busy - description: This bit is set to 1 by the application to indicate that a read or write access is in progress - value: 1 + - name: Busy + description: This bit is set to 1 by the application to indicate that a read or write access is in progress + value: 1 enum/MCF: bit_size: 1 variants: - - name: Unfrozen - description: All MMC counters update normally - value: 0 - - name: Frozen - description: All MMC counters frozen to their current value - value: 1 + - name: Unfrozen + description: All MMC counters update normally + value: 0 + - name: Frozen + description: All MMC counters frozen to their current value + value: 1 enum/MPE: bit_size: 1 variants: - - name: Disabled - description: No power management event generated due to Magic Packet reception - value: 0 - - name: Enabled - description: Enable generation of a power management event due to Magic Packet reception - value: 1 + - name: Disabled + description: No power management event generated due to Magic Packet reception + value: 0 + - name: Enabled + description: Enable generation of a power management event due to Magic Packet reception + value: 1 enum/MW: bit_size: 1 variants: - - name: Read - description: Read operation - value: 0 - - name: Write - description: Write operation - value: 1 + - name: Read + description: Read operation + value: 0 + - name: Write + description: Write operation + value: 1 enum/PAM: bit_size: 1 variants: - - name: Disabled - description: Filtering of multicast frames depends on HM - value: 0 - - name: Enabled - description: All received frames with a multicast destination address are passed - value: 1 + - name: Disabled + description: Filtering of multicast frames depends on HM + value: 0 + - name: Enabled + description: All received frames with a multicast destination address are passed + value: 1 enum/PBL: bit_size: 6 variants: - - name: PBL1 - description: Maximum of 1 beat per DMA transaction - value: 1 - - name: PBL2 - description: Maximum of 2 beats per DMA transaction - value: 2 - - name: PBL4 - description: Maximum of 4 beats per DMA transaction - value: 4 - - name: PBL8 - description: Maximum of 8 beats per DMA transaction - value: 8 - - name: PBL16 - description: Maximum of 16 beats per DMA transaction - value: 16 - - name: PBL32 - description: Maximum of 32 beats per DMA transaction - value: 32 + - name: PBL1 + description: Maximum of 1 beat per DMA transaction + value: 1 + - name: PBL2 + description: Maximum of 2 beats per DMA transaction + value: 2 + - name: PBL4 + description: Maximum of 4 beats per DMA transaction + value: 4 + - name: PBL8 + description: Maximum of 8 beats per DMA transaction + value: 8 + - name: PBL16 + description: Maximum of 16 beats per DMA transaction + value: 16 + - name: PBL32 + description: Maximum of 32 beats per DMA transaction + value: 32 enum/PCF: bit_size: 2 variants: - - name: PreventAll - description: MAC prevents all control frames from reaching the application - value: 0 - - name: ForwardAllExceptPause - description: MAC forwards all control frames to application except Pause - value: 1 - - name: ForwardAll - description: MAC forwards all control frames to application even if they fail the address filter - value: 2 - - name: ForwardAllFiltered - description: MAC forwards control frames that pass the address filter - value: 3 + - name: PreventAll + description: MAC prevents all control frames from reaching the application + value: 0 + - name: ForwardAllExceptPause + description: MAC forwards all control frames to application except Pause + value: 1 + - name: ForwardAll + description: MAC forwards all control frames to application even if they fail the address filter + value: 2 + - name: ForwardAllFiltered + description: MAC forwards control frames that pass the address filter + value: 3 enum/PD: bit_size: 1 variants: - - name: Enabled - description: All received frames will be dropped. Cleared automatically when a magic packet or wakeup frame is received - value: 1 + - name: Enabled + description: All received frames will be dropped. Cleared automatically when a magic packet or wakeup frame is received + value: 1 enum/PLT: bit_size: 2 variants: - - name: PLT4 - description: Pause time minus 4 slot times - value: 0 - - name: PLT28 - description: Pause time minus 28 slot times - value: 1 - - name: PLT144 - description: Pause time minus 144 slot times - value: 2 - - name: PLT256 - description: Pause time minus 256 slot times - value: 3 + - name: PLT4 + description: Pause time minus 4 slot times + value: 0 + - name: PLT28 + description: Pause time minus 28 slot times + value: 1 + - name: PLT144 + description: Pause time minus 144 slot times + value: 2 + - name: PLT256 + description: Pause time minus 256 slot times + value: 3 enum/PM: bit_size: 1 variants: - - name: Disabled - description: Normal address filtering - value: 0 - - name: Enabled - description: Address filters pass all incoming frames regardless of their destination or source address - value: 1 + - name: Disabled + description: Normal address filtering + value: 0 + - name: Enabled + description: Address filters pass all incoming frames regardless of their destination or source address + value: 1 enum/PMTIM: bit_size: 1 variants: - - name: Unmasked - description: PMT Status interrupt generation enabled - value: 0 - - name: Masked - description: PMT Status interrupt generation disabled - value: 1 + - name: Unmasked + description: PMT Status interrupt generation enabled + value: 0 + - name: Masked + description: PMT Status interrupt generation disabled + value: 1 enum/PriorityRxOverTx: bit_size: 2 variants: - - name: OneToOne - description: "RxDMA priority over TxDMA is 1:1" - value: 0 - - name: TwoToOne - description: "RxDMA priority over TxDMA is 2:1" - value: 1 - - name: ThreeToOne - description: "RxDMA priority over TxDMA is 3:1" - value: 2 - - name: FourToOne - description: "RxDMA priority over TxDMA is 4:1" - value: 3 + - name: OneToOne + description: RxDMA priority over TxDMA is 1:1 + value: 0 + - name: TwoToOne + description: RxDMA priority over TxDMA is 2:1 + value: 1 + - name: ThreeToOne + description: RxDMA priority over TxDMA is 3:1 + value: 2 + - name: FourToOne + description: RxDMA priority over TxDMA is 4:1 + value: 3 enum/RA: bit_size: 1 variants: - - name: Disabled - description: MAC receiver passes on to the application only those frames that have passed the SA/DA address file - value: 0 - - name: Enabled - description: MAC receiver passes oll received frames on to the application - value: 1 + - name: Disabled + description: MAC receiver passes on to the application only those frames that have passed the SA/DA address file + value: 0 + - name: Enabled + description: MAC receiver passes oll received frames on to the application + value: 1 enum/RD: bit_size: 1 variants: - - name: Enabled - description: MAC attempts retries based on the settings of BL - value: 0 - - name: Disabled - description: MAC attempts only 1 transmission - value: 1 + - name: Enabled + description: MAC attempts retries based on the settings of BL + value: 0 + - name: Disabled + description: MAC attempts only 1 transmission + value: 1 enum/RDP: bit_size: 6 variants: - - name: RDP1 - description: 1 beat per RxDMA transaction - value: 1 - - name: RDP2 - description: 2 beats per RxDMA transaction - value: 2 - - name: RDP4 - description: 4 beats per RxDMA transaction - value: 4 - - name: RDP8 - description: 8 beats per RxDMA transaction - value: 8 - - name: RDP16 - description: 16 beats per RxDMA transaction - value: 16 - - name: RDP32 - description: 32 beats per RxDMA transaction - value: 32 + - name: RDP1 + description: 1 beat per RxDMA transaction + value: 1 + - name: RDP2 + description: 2 beats per RxDMA transaction + value: 2 + - name: RDP4 + description: 4 beats per RxDMA transaction + value: 4 + - name: RDP8 + description: 8 beats per RxDMA transaction + value: 8 + - name: RDP16 + description: 16 beats per RxDMA transaction + value: 16 + - name: RDP32 + description: 32 beats per RxDMA transaction + value: 32 enum/RFAEM: bit_size: 1 variants: - - name: Unmasked - description: Received-alignment-error counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-alignment-error counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-alignment-error counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-alignment-error counter half-full interrupt disabled + value: 1 enum/RFCE: bit_size: 1 variants: - - name: Disabled - description: Pause frames are not decoded - value: 0 - - name: Enabled - description: MAC decodes received Pause frames and disables its transmitted for a specified time - value: 1 + - name: Disabled + description: Pause frames are not decoded + value: 0 + - name: Enabled + description: MAC decodes received Pause frames and disables its transmitted for a specified time + value: 1 enum/RFCEM: bit_size: 1 variants: - - name: Unmasked - description: Received-crc-error counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-crc-error counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-crc-error counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-crc-error counter half-full interrupt disabled + value: 1 enum/RGUFM: bit_size: 1 variants: - - name: Unmasked - description: Received-good-unicast counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-good-unicast counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-good-unicast counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-good-unicast counter half-full interrupt disabled + value: 1 enum/ROD: bit_size: 1 variants: - - name: Enabled - description: MAC receives all packets from PHY while transmitting - value: 0 - - name: Disabled - description: MAC disables reception of frames in half-duplex mode - value: 1 + - name: Enabled + description: MAC receives all packets from PHY while transmitting + value: 0 + - name: Disabled + description: MAC disables reception of frames in half-duplex mode + value: 1 enum/ROR: bit_size: 1 variants: - - name: Disabled - description: MMC counters do not reset on read - value: 0 - - name: Enabled - description: MMC counters reset to zero after read - value: 1 + - name: Disabled + description: MMC counters do not reset on read + value: 0 + - name: Enabled + description: MMC counters reset to zero after read + value: 1 enum/RPD: bit_size: 32 variants: - - name: Poll - description: Poll the receive descriptor list - value: 0 + - name: Poll + description: Poll the receive descriptor list + value: 0 enum/RPS: bit_size: 3 variants: - - name: Stopped - description: "Stopped, reset or Stop Receive command issued" - value: 0 - - name: RunningFetching - description: "Running, fetching receive transfer descriptor" - value: 1 - - name: RunningWaiting - description: "Running, waiting for receive packet" - value: 3 - - name: Suspended - description: "Suspended, receive descriptor unavailable" - value: 4 - - name: RunningWriting - description: "Running, writing data to host memory buffer" - value: 7 + - name: Stopped + description: Stopped, reset or Stop Receive command issued + value: 0 + - name: RunningFetching + description: Running, fetching receive transfer descriptor + value: 1 + - name: RunningWaiting + description: Running, waiting for receive packet + value: 3 + - name: Suspended + description: Suspended, receive descriptor unavailable + value: 4 + - name: RunningWriting + description: Running, writing data to host memory buffer + value: 7 enum/RSF: bit_size: 1 variants: - - name: CutThrough - description: "Rx FIFO operates in cut-through mode, subject to RTC bits" - value: 0 - - name: StoreForward - description: Frames are read from Rx FIFO after complete frame has been written - value: 1 + - name: CutThrough + description: Rx FIFO operates in cut-through mode, subject to RTC bits + value: 0 + - name: StoreForward + description: Frames are read from Rx FIFO after complete frame has been written + value: 1 enum/RTC: bit_size: 2 variants: - - name: RTC64 - description: 64 bytes - value: 0 - - name: RTC32 - description: 32 bytes - value: 1 - - name: RTC96 - description: 96 bytes - value: 2 - - name: RTC128 - description: 128 bytes - value: 3 + - name: RTC64 + description: 64 bytes + value: 0 + - name: RTC32 + description: 32 bytes + value: 1 + - name: RTC96 + description: 96 bytes + value: 2 + - name: RTC128 + description: 128 bytes + value: 3 enum/SAF: bit_size: 1 variants: - - name: Disabled - description: Source address ignored - value: 0 - - name: Enabled - description: MAC drops frames that fail the source address filter - value: 1 + - name: Disabled + description: Source address ignored + value: 0 + - name: Enabled + description: MAC drops frames that fail the source address filter + value: 1 enum/SAIF: bit_size: 1 variants: - - name: Normal - description: Source address filter operates normally - value: 0 - - name: Invert - description: Source address filter operation inverted - value: 1 + - name: Normal + description: Source address filter operates normally + value: 0 + - name: Invert + description: Source address filter operation inverted + value: 1 enum/ST: bit_size: 1 variants: - - name: Stopped - description: Transmission is placed in the Stopped state - value: 0 - - name: Started - description: Transmission is placed in Running state - value: 1 + - name: Stopped + description: Transmission is placed in the Stopped state + value: 0 + - name: Started + description: Transmission is placed in Running state + value: 1 enum/TFCE: bit_size: 1 variants: - - name: Disabled - description: "In full duplex, flow control is disabled. In half duplex, back pressure is disabled" - value: 0 - - name: Enabled - description: "In full duplex, flow control is enabled. In half duplex, back pressure is enabled" - value: 1 + - name: Disabled + description: In full duplex, flow control is disabled. In half duplex, back pressure is disabled + value: 0 + - name: Enabled + description: In full duplex, flow control is enabled. In half duplex, back pressure is enabled + value: 1 enum/TGFM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good counter half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good counter half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good counter half-full interrupt disabled + value: 1 enum/TGFMSCM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good-multiple-collision half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good-multiple-collision half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good-multiple-collision half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good-multiple-collision half-full interrupt disabled + value: 1 enum/TGFSCM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good-single-collision half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good-single-collision half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good-single-collision half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good-single-collision half-full interrupt disabled + value: 1 enum/TPD: bit_size: 32 variants: - - name: Poll - description: Poll the transmit descriptor list - value: 0 + - name: Poll + description: Poll the transmit descriptor list + value: 0 enum/TPS: bit_size: 3 variants: - - name: Stopped - description: "Stopped, Reset or Stop Transmit command issued" - value: 0 - - name: RunningFetching - description: "Running, fetching transmit transfer descriptor" - value: 1 - - name: RunningWaiting - description: "Running, waiting for status" - value: 2 - - name: RunningReading - description: "Running, reading data from host memory buffer" - value: 3 - - name: Suspended - description: "Suspended, transmit descriptor unavailable or transmit buffer underflow" - value: 6 - - name: Running - description: "Running, closing transmit descriptor" - value: 7 + - name: Stopped + description: Stopped, Reset or Stop Transmit command issued + value: 0 + - name: RunningFetching + description: Running, fetching transmit transfer descriptor + value: 1 + - name: RunningWaiting + description: Running, waiting for status + value: 2 + - name: RunningReading + description: Running, reading data from host memory buffer + value: 3 + - name: Suspended + description: Suspended, transmit descriptor unavailable or transmit buffer underflow + value: 6 + - name: Running + description: Running, closing transmit descriptor + value: 7 enum/TSF: bit_size: 1 variants: - - name: CutThrough - description: Transmission starts when the frame size in the Tx FIFO exceeds TTC threshold - value: 0 - - name: StoreForward - description: Transmission starts when a full frame is in the Tx FIFO - value: 1 + - name: CutThrough + description: Transmission starts when the frame size in the Tx FIFO exceeds TTC threshold + value: 0 + - name: StoreForward + description: Transmission starts when a full frame is in the Tx FIFO + value: 1 enum/TSTIM: bit_size: 1 variants: - - name: Unmasked - description: Time stamp interrupt generation enabled - value: 0 - - name: Masked - description: Time stamp interrupt generation disabled - value: 1 + - name: Unmasked + description: Time stamp interrupt generation enabled + value: 0 + - name: Masked + description: Time stamp interrupt generation disabled + value: 1 enum/TTC: bit_size: 3 variants: - - name: TTC64 - description: 64 bytes - value: 0 - - name: TTC128 - description: 128 bytes - value: 1 - - name: TTC192 - description: 192 bytes - value: 2 - - name: TTC256 - description: 256 bytes - value: 3 - - name: TTC40 - description: 40 bytes - value: 4 - - name: TTC32 - description: 32 bytes - value: 5 - - name: TTC24 - description: 24 bytes - value: 6 - - name: TTC16 - description: 16 bytes - value: 7 + - name: TTC64 + description: 64 bytes + value: 0 + - name: TTC128 + description: 128 bytes + value: 1 + - name: TTC192 + description: 192 bytes + value: 2 + - name: TTC256 + description: 256 bytes + value: 3 + - name: TTC40 + description: 40 bytes + value: 4 + - name: TTC32 + description: 32 bytes + value: 5 + - name: TTC24 + description: 24 bytes + value: 6 + - name: TTC16 + description: 16 bytes + value: 7 enum/UPFD: bit_size: 1 variants: - - name: Disabled - description: MAC detects only a Pause frame with the multicast address specified in the 802.3x standard - value: 0 - - name: Enabled - description: "MAC additionally detects Pause frames with the station's unicast address" - value: 1 + - name: Disabled + description: MAC detects only a Pause frame with the multicast address specified in the 802.3x standard + value: 0 + - name: Enabled + description: MAC additionally detects Pause frames with the station's unicast address + value: 1 enum/USP: bit_size: 1 variants: - - name: Combined - description: PBL value used for both Rx and Tx DMA - value: 0 - - name: Separate - description: "RxDMA uses RDP value, TxDMA uses PBL value" - value: 1 + - name: Combined + description: PBL value used for both Rx and Tx DMA + value: 0 + - name: Separate + description: RxDMA uses RDP value, TxDMA uses PBL value + value: 1 enum/VLANTC: bit_size: 1 variants: - - name: VLANTC16 - description: Full 16 bit VLAN identifiers are used for comparison and filtering - value: 0 - - name: VLANTC12 - description: 12 bit VLAN identifies are used for comparison and filtering - value: 1 + - name: VLANTC16 + description: Full 16 bit VLAN identifiers are used for comparison and filtering + value: 0 + - name: VLANTC12 + description: 12 bit VLAN identifies are used for comparison and filtering + value: 1 enum/WD: bit_size: 1 variants: - - name: Enabled - description: "Watchdog enabled, receive frames limited to 2048 bytes" - value: 0 - - name: Disabled - description: "Watchdog disabled, receive frames may be up to to 16384 bytes" - value: 1 + - name: Enabled + description: Watchdog enabled, receive frames limited to 2048 bytes + value: 0 + - name: Disabled + description: Watchdog disabled, receive frames may be up to to 16384 bytes + value: 1 enum/WFE: bit_size: 1 variants: - - name: Disabled - description: No power management event generated due to wakeup frame reception - value: 0 - - name: Enabled - description: Enable generation of a power management event due to wakeup frame reception - value: 1 + - name: Disabled + description: No power management event generated due to wakeup frame reception + value: 0 + - name: Enabled + description: Enable generation of a power management event due to wakeup frame reception + value: 1 enum/WFFRPR: bit_size: 1 variants: - - name: Reset - description: Reset wakeup frame filter register point to 0b000. Automatically cleared - value: 1 + - name: Reset + description: Reset wakeup frame filter register point to 0b000. Automatically cleared + value: 1 enum/ZQPD: bit_size: 1 variants: - - name: Enabled - description: Normal operation with automatic zero-quanta pause control frame generation - value: 0 - - name: Disabled - description: Automatic generation of zero-quanta pause control frames is disabled - value: 1 + - name: Enabled + description: Normal operation with automatic zero-quanta pause control frame generation + value: 0 + - name: Disabled + description: Automatic generation of zero-quanta pause control frames is disabled + value: 1 diff --git a/data/registers/eth_v1b.yaml b/data/registers/eth_v1b.yaml index 3eda175..6267b0e 100644 --- a/data/registers/eth_v1b.yaml +++ b/data/registers/eth_v1b.yaml @@ -1,2196 +1,2195 @@ ---- block/ETH: description: Ethernet Peripheral items: - - name: ETHERNET_MAC - description: "Ethernet: media access control (MAC)" - byte_offset: 0 - block: ETHERNET_MAC - - name: ETHERNET_PTP - description: "Ethernet: Precision Time Protocol (PTP)" - byte_offset: 1792 - block: ETHERNET_PTP - - name: ETHERNET_DMA - description: "Ethernet: DMA mode register (DMA)" - byte_offset: 4096 - block: ETHERNET_DMA + - name: ETHERNET_MAC + description: 'Ethernet: media access control (MAC)' + byte_offset: 0 + block: ETHERNET_MAC + - name: ETHERNET_PTP + description: 'Ethernet: Precision Time Protocol (PTP)' + byte_offset: 1792 + block: ETHERNET_PTP + - name: ETHERNET_DMA + description: 'Ethernet: DMA mode register (DMA)' + byte_offset: 4096 + block: ETHERNET_DMA block/ETHERNET_DMA: - description: "Ethernet: DMA controller operation" + description: 'Ethernet: DMA controller operation' items: - - name: DMABMR - description: Ethernet DMA bus mode register - byte_offset: 0 - fieldset: DMABMR - - name: DMATPDR - description: Ethernet DMA transmit poll demand register - byte_offset: 4 - fieldset: DMATPDR - - name: DMARPDR - description: EHERNET DMA receive poll demand register - byte_offset: 8 - fieldset: DMARPDR - - name: DMARDLAR - description: Ethernet DMA receive descriptor list address register - byte_offset: 12 - fieldset: DMARDLAR - - name: DMATDLAR - description: Ethernet DMA transmit descriptor list address register - byte_offset: 16 - fieldset: DMATDLAR - - name: DMASR - description: Ethernet DMA status register - byte_offset: 20 - fieldset: DMASR - - name: DMAOMR - description: Ethernet DMA operation mode register - byte_offset: 24 - fieldset: DMAOMR - - name: DMAIER - description: Ethernet DMA interrupt enable register - byte_offset: 28 - fieldset: DMAIER - - name: DMAMFBOCR - description: Ethernet DMA missed frame and buffer overflow counter register - byte_offset: 32 - fieldset: DMAMFBOCR - - name: DMARSWTR - description: Ethernet DMA receive status watchdog timer register - byte_offset: 36 - fieldset: DMARSWTR - - name: DMACHTDR - description: Ethernet DMA current host transmit descriptor register - byte_offset: 72 - access: Read - fieldset: DMACHTDR - - name: DMACHRDR - description: Ethernet DMA current host receive descriptor register - byte_offset: 76 - access: Read - fieldset: DMACHRDR - - name: DMACHTBAR - description: Ethernet DMA current host transmit buffer address register - byte_offset: 80 - access: Read - fieldset: DMACHTBAR - - name: DMACHRBAR - description: Ethernet DMA current host receive buffer address register - byte_offset: 84 - access: Read - fieldset: DMACHRBAR + - name: DMABMR + description: Ethernet DMA bus mode register + byte_offset: 0 + fieldset: DMABMR + - name: DMATPDR + description: Ethernet DMA transmit poll demand register + byte_offset: 4 + fieldset: DMATPDR + - name: DMARPDR + description: EHERNET DMA receive poll demand register + byte_offset: 8 + fieldset: DMARPDR + - name: DMARDLAR + description: Ethernet DMA receive descriptor list address register + byte_offset: 12 + fieldset: DMARDLAR + - name: DMATDLAR + description: Ethernet DMA transmit descriptor list address register + byte_offset: 16 + fieldset: DMATDLAR + - name: DMASR + description: Ethernet DMA status register + byte_offset: 20 + fieldset: DMASR + - name: DMAOMR + description: Ethernet DMA operation mode register + byte_offset: 24 + fieldset: DMAOMR + - name: DMAIER + description: Ethernet DMA interrupt enable register + byte_offset: 28 + fieldset: DMAIER + - name: DMAMFBOCR + description: Ethernet DMA missed frame and buffer overflow counter register + byte_offset: 32 + fieldset: DMAMFBOCR + - name: DMARSWTR + description: Ethernet DMA receive status watchdog timer register + byte_offset: 36 + fieldset: DMARSWTR + - name: DMACHTDR + description: Ethernet DMA current host transmit descriptor register + byte_offset: 72 + access: Read + fieldset: DMACHTDR + - name: DMACHRDR + description: Ethernet DMA current host receive descriptor register + byte_offset: 76 + access: Read + fieldset: DMACHRDR + - name: DMACHTBAR + description: Ethernet DMA current host transmit buffer address register + byte_offset: 80 + access: Read + fieldset: DMACHTBAR + - name: DMACHRBAR + description: Ethernet DMA current host receive buffer address register + byte_offset: 84 + access: Read + fieldset: DMACHRBAR block/ETHERNET_MAC: - description: "Ethernet: media access control (MAC)" + description: 'Ethernet: media access control (MAC)' items: - - name: MACCR - description: Ethernet MAC configuration register - byte_offset: 0 - fieldset: MACCR - - name: MACFFR - description: Ethernet MAC frame filter register - byte_offset: 4 - fieldset: MACFFR - - name: MACHTHR - description: Ethernet MAC hash table high register - byte_offset: 8 - fieldset: MACHTHR - - name: MACHTLR - description: Ethernet MAC hash table low register - byte_offset: 12 - fieldset: MACHTLR - - name: MACMIIAR - description: Ethernet MAC MII address register - byte_offset: 16 - fieldset: MACMIIAR - - name: MACMIIDR - description: Ethernet MAC MII data register - byte_offset: 20 - fieldset: MACMIIDR - - name: MACFCR - description: Ethernet MAC flow control register - byte_offset: 24 - fieldset: MACFCR - - name: MACVLANTR - description: Ethernet MAC VLAN tag register - byte_offset: 28 - fieldset: MACVLANTR - - name: MACRWUFFR - description: Ethernet MAC remote wakeup frame filter register - byte_offset: 40 - - name: MACPMTCSR - description: Ethernet MAC PMT control and status register - byte_offset: 44 - fieldset: MACPMTCSR - - name: MACDBGR - description: Ethernet MAC debug register - byte_offset: 52 - access: Read - fieldset: MACDBGR - - name: MACSR - description: Ethernet MAC interrupt status register - byte_offset: 56 - fieldset: MACSR - - name: MACIMR - description: Ethernet MAC interrupt mask register - byte_offset: 60 - fieldset: MACIMR - - name: MACA0HR - description: Ethernet MAC address 0 high register - byte_offset: 64 - fieldset: MACA0HR - - name: MACA0LR - description: Ethernet MAC address 0 low register - byte_offset: 68 - fieldset: MACA0LR - - name: MACA1HR - description: Ethernet MAC address 1 high register - byte_offset: 72 - fieldset: MACA1HR - - name: MACA1LR - description: Ethernet MAC address1 low register - byte_offset: 76 - fieldset: MACA1LR - - name: MACA2HR - description: Ethernet MAC address 2 high register - byte_offset: 80 - fieldset: MACA2HR - - name: MACA2LR - description: Ethernet MAC address 2 low register - byte_offset: 84 - fieldset: MACA2LR - - name: MACA3HR - description: Ethernet MAC address 3 high register - byte_offset: 88 - fieldset: MACA3HR - - name: MACA3LR - description: Ethernet MAC address 3 low register - byte_offset: 92 - fieldset: MACA3LR - - name: MMCCR - description: Ethernet MMC control register - byte_offset: 256 - fieldset: MMCCR - - name: MMCRIR - description: Ethernet MMC receive interrupt register - byte_offset: 260 - fieldset: MMCRIR - - name: MMCTIR - description: Ethernet MMC transmit interrupt register - byte_offset: 264 - access: Read - fieldset: MMCTIR - - name: MMCRIMR - description: Ethernet MMC receive interrupt mask register - byte_offset: 268 - fieldset: MMCRIMR - - name: MMCTIMR - description: Ethernet MMC transmit interrupt mask register - byte_offset: 272 - fieldset: MMCTIMR - - name: MMCTGFSCCR - description: Ethernet MMC transmitted good frames after a single collision counter - byte_offset: 332 - access: Read - fieldset: MMCTGFSCCR - - name: MMCTGFMSCCR - description: Ethernet MMC transmitted good frames after more than a single collision - byte_offset: 336 - access: Read - fieldset: MMCTGFMSCCR - - name: MMCTGFCR - description: Ethernet MMC transmitted good frames counter register - byte_offset: 360 - access: Read - fieldset: MMCTGFCR - - name: MMCRFCECR - description: Ethernet MMC received frames with CRC error counter register - byte_offset: 404 - access: Read - fieldset: MMCRFCECR - - name: MMCRFAECR - description: Ethernet MMC received frames with alignment error counter register - byte_offset: 408 - access: Read - fieldset: MMCRFAECR - - name: MMCRGUFCR - description: MMC received good unicast frames counter register - byte_offset: 452 - access: Read - fieldset: MMCRGUFCR + - name: MACCR + description: Ethernet MAC configuration register + byte_offset: 0 + fieldset: MACCR + - name: MACFFR + description: Ethernet MAC frame filter register + byte_offset: 4 + fieldset: MACFFR + - name: MACHTHR + description: Ethernet MAC hash table high register + byte_offset: 8 + fieldset: MACHTHR + - name: MACHTLR + description: Ethernet MAC hash table low register + byte_offset: 12 + fieldset: MACHTLR + - name: MACMIIAR + description: Ethernet MAC MII address register + byte_offset: 16 + fieldset: MACMIIAR + - name: MACMIIDR + description: Ethernet MAC MII data register + byte_offset: 20 + fieldset: MACMIIDR + - name: MACFCR + description: Ethernet MAC flow control register + byte_offset: 24 + fieldset: MACFCR + - name: MACVLANTR + description: Ethernet MAC VLAN tag register + byte_offset: 28 + fieldset: MACVLANTR + - name: MACRWUFFR + description: Ethernet MAC remote wakeup frame filter register + byte_offset: 40 + - name: MACPMTCSR + description: Ethernet MAC PMT control and status register + byte_offset: 44 + fieldset: MACPMTCSR + - name: MACDBGR + description: Ethernet MAC debug register + byte_offset: 52 + access: Read + fieldset: MACDBGR + - name: MACSR + description: Ethernet MAC interrupt status register + byte_offset: 56 + fieldset: MACSR + - name: MACIMR + description: Ethernet MAC interrupt mask register + byte_offset: 60 + fieldset: MACIMR + - name: MACA0HR + description: Ethernet MAC address 0 high register + byte_offset: 64 + fieldset: MACA0HR + - name: MACA0LR + description: Ethernet MAC address 0 low register + byte_offset: 68 + fieldset: MACA0LR + - name: MACA1HR + description: Ethernet MAC address 1 high register + byte_offset: 72 + fieldset: MACA1HR + - name: MACA1LR + description: Ethernet MAC address1 low register + byte_offset: 76 + fieldset: MACA1LR + - name: MACA2HR + description: Ethernet MAC address 2 high register + byte_offset: 80 + fieldset: MACA2HR + - name: MACA2LR + description: Ethernet MAC address 2 low register + byte_offset: 84 + fieldset: MACA2LR + - name: MACA3HR + description: Ethernet MAC address 3 high register + byte_offset: 88 + fieldset: MACA3HR + - name: MACA3LR + description: Ethernet MAC address 3 low register + byte_offset: 92 + fieldset: MACA3LR + - name: MMCCR + description: Ethernet MMC control register + byte_offset: 256 + fieldset: MMCCR + - name: MMCRIR + description: Ethernet MMC receive interrupt register + byte_offset: 260 + fieldset: MMCRIR + - name: MMCTIR + description: Ethernet MMC transmit interrupt register + byte_offset: 264 + access: Read + fieldset: MMCTIR + - name: MMCRIMR + description: Ethernet MMC receive interrupt mask register + byte_offset: 268 + fieldset: MMCRIMR + - name: MMCTIMR + description: Ethernet MMC transmit interrupt mask register + byte_offset: 272 + fieldset: MMCTIMR + - name: MMCTGFSCCR + description: Ethernet MMC transmitted good frames after a single collision counter + byte_offset: 332 + access: Read + fieldset: MMCTGFSCCR + - name: MMCTGFMSCCR + description: Ethernet MMC transmitted good frames after more than a single collision + byte_offset: 336 + access: Read + fieldset: MMCTGFMSCCR + - name: MMCTGFCR + description: Ethernet MMC transmitted good frames counter register + byte_offset: 360 + access: Read + fieldset: MMCTGFCR + - name: MMCRFCECR + description: Ethernet MMC received frames with CRC error counter register + byte_offset: 404 + access: Read + fieldset: MMCRFCECR + - name: MMCRFAECR + description: Ethernet MMC received frames with alignment error counter register + byte_offset: 408 + access: Read + fieldset: MMCRFAECR + - name: MMCRGUFCR + description: MMC received good unicast frames counter register + byte_offset: 452 + access: Read + fieldset: MMCRGUFCR block/ETHERNET_PTP: - description: "Ethernet: Precision time protocol" + description: 'Ethernet: Precision time protocol' items: - - name: PTPTSCR - description: Ethernet PTP time stamp control register - byte_offset: 0 - fieldset: PTPTSCR - - name: PTPSSIR - description: Ethernet PTP subsecond increment register - byte_offset: 4 - fieldset: PTPSSIR - - name: PTPTSHR - description: Ethernet PTP time stamp high register - byte_offset: 8 - access: Read - fieldset: PTPTSHR - - name: PTPTSLR - description: Ethernet PTP time stamp low register - byte_offset: 12 - access: Read - fieldset: PTPTSLR - - name: PTPTSHUR - description: Ethernet PTP time stamp high update register - byte_offset: 16 - fieldset: PTPTSHUR - - name: PTPTSLUR - description: Ethernet PTP time stamp low update register - byte_offset: 20 - fieldset: PTPTSLUR - - name: PTPTSAR - description: Ethernet PTP time stamp addend register - byte_offset: 24 - fieldset: PTPTSAR - - name: PTPTTHR - description: Ethernet PTP target time high register - byte_offset: 28 - fieldset: PTPTTHR - - name: PTPTTLR - description: Ethernet PTP target time low register - byte_offset: 32 - fieldset: PTPTTLR - - name: PTPTSSR - description: Ethernet PTP time stamp status register - byte_offset: 40 - access: Read - fieldset: PTPTSSR - - name: PTPPPSCR - description: Ethernet PTP PPS control register - byte_offset: 44 - access: Read - fieldset: PTPPPSCR + - name: PTPTSCR + description: Ethernet PTP time stamp control register + byte_offset: 0 + fieldset: PTPTSCR + - name: PTPSSIR + description: Ethernet PTP subsecond increment register + byte_offset: 4 + fieldset: PTPSSIR + - name: PTPTSHR + description: Ethernet PTP time stamp high register + byte_offset: 8 + access: Read + fieldset: PTPTSHR + - name: PTPTSLR + description: Ethernet PTP time stamp low register + byte_offset: 12 + access: Read + fieldset: PTPTSLR + - name: PTPTSHUR + description: Ethernet PTP time stamp high update register + byte_offset: 16 + fieldset: PTPTSHUR + - name: PTPTSLUR + description: Ethernet PTP time stamp low update register + byte_offset: 20 + fieldset: PTPTSLUR + - name: PTPTSAR + description: Ethernet PTP time stamp addend register + byte_offset: 24 + fieldset: PTPTSAR + - name: PTPTTHR + description: Ethernet PTP target time high register + byte_offset: 28 + fieldset: PTPTTHR + - name: PTPTTLR + description: Ethernet PTP target time low register + byte_offset: 32 + fieldset: PTPTTLR + - name: PTPTSSR + description: Ethernet PTP time stamp status register + byte_offset: 40 + access: Read + fieldset: PTPTSSR + - name: PTPPPSCR + description: Ethernet PTP PPS control register + byte_offset: 44 + access: Read + fieldset: PTPPPSCR fieldset/DMABMR: description: Ethernet DMA bus mode register fields: - - name: SR - description: Software reset - bit_offset: 0 - bit_size: 1 - - name: DA - description: DMA arbitration - bit_offset: 1 - bit_size: 1 - enum: DA - - name: DSL - description: Descriptor skip length - bit_offset: 2 - bit_size: 5 - - name: EDFE - description: Enhanced descriptor format enable - bit_offset: 7 - bit_size: 1 - enum: EDFE - - name: PBL - description: Programmable burst length - bit_offset: 8 - bit_size: 6 - enum: PBL - - name: PM - description: Rx-Tx priority ratio - bit_offset: 14 - bit_size: 2 - enum: PriorityRxOverTx - - name: FB - description: Fixed burst - bit_offset: 16 - bit_size: 1 - enum: FB - - name: RDP - description: Rx DMA PBL - bit_offset: 17 - bit_size: 6 - enum: RDP - - name: USP - description: Use separate PBL - bit_offset: 23 - bit_size: 1 - enum: USP - - name: FPM - description: 4xPBL mode - bit_offset: 24 - bit_size: 1 - enum: FPM - - name: AAB - description: Address-aligned beats - bit_offset: 25 - bit_size: 1 - enum: AAB - - name: MB - description: Mixed burst - bit_offset: 26 - bit_size: 1 - enum: MB + - name: SR + description: Software reset + bit_offset: 0 + bit_size: 1 + - name: DA + description: DMA arbitration + bit_offset: 1 + bit_size: 1 + enum: DA + - name: DSL + description: Descriptor skip length + bit_offset: 2 + bit_size: 5 + - name: EDFE + description: Enhanced descriptor format enable + bit_offset: 7 + bit_size: 1 + enum: EDFE + - name: PBL + description: Programmable burst length + bit_offset: 8 + bit_size: 6 + enum: PBL + - name: PM + description: Rx-Tx priority ratio + bit_offset: 14 + bit_size: 2 + enum: PriorityRxOverTx + - name: FB + description: Fixed burst + bit_offset: 16 + bit_size: 1 + enum: FB + - name: RDP + description: Rx DMA PBL + bit_offset: 17 + bit_size: 6 + enum: RDP + - name: USP + description: Use separate PBL + bit_offset: 23 + bit_size: 1 + enum: USP + - name: FPM + description: 4xPBL mode + bit_offset: 24 + bit_size: 1 + enum: FPM + - name: AAB + description: Address-aligned beats + bit_offset: 25 + bit_size: 1 + enum: AAB + - name: MB + description: Mixed burst + bit_offset: 26 + bit_size: 1 + enum: MB fieldset/DMACHRBAR: description: Ethernet DMA current host receive buffer address register fields: - - name: HRBAP - description: Host receive buffer address pointer - bit_offset: 0 - bit_size: 32 + - name: HRBAP + description: Host receive buffer address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHRDR: description: Ethernet DMA current host receive descriptor register fields: - - name: HRDAP - description: Host receive descriptor address pointer - bit_offset: 0 - bit_size: 32 + - name: HRDAP + description: Host receive descriptor address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHTBAR: description: Ethernet DMA current host transmit buffer address register fields: - - name: HTBAP - description: Host transmit buffer address pointer - bit_offset: 0 - bit_size: 32 + - name: HTBAP + description: Host transmit buffer address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHTDR: description: Ethernet DMA current host transmit descriptor register fields: - - name: HTDAP - description: Host transmit descriptor address pointer - bit_offset: 0 - bit_size: 32 + - name: HTDAP + description: Host transmit descriptor address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMAIER: description: Ethernet DMA interrupt enable register fields: - - name: TIE - description: Transmit interrupt enable - bit_offset: 0 - bit_size: 1 - - name: TPSIE - description: Transmit process stopped interrupt enable - bit_offset: 1 - bit_size: 1 - - name: TBUIE - description: Transmit buffer unavailable interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TJTIE - description: Transmit jabber timeout interrupt enable - bit_offset: 3 - bit_size: 1 - - name: ROIE - description: Receive overflow interrupt enable - bit_offset: 4 - bit_size: 1 - - name: TUIE - description: Transmit underflow interrupt enable - bit_offset: 5 - bit_size: 1 - - name: RIE - description: Receive interrupt enable - bit_offset: 6 - bit_size: 1 - - name: RBUIE - description: Receive buffer unavailable interrupt enable - bit_offset: 7 - bit_size: 1 - - name: RPSIE - description: Receive process stopped interrupt enable - bit_offset: 8 - bit_size: 1 - - name: RWTIE - description: Receive watchdog timeout interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ETIE - description: Early transmit interrupt enable - bit_offset: 10 - bit_size: 1 - - name: FBEIE - description: Fatal bus error interrupt enable - bit_offset: 13 - bit_size: 1 - - name: ERIE - description: Early receive interrupt enable - bit_offset: 14 - bit_size: 1 - - name: AISE - description: Abnormal interrupt summary enable - bit_offset: 15 - bit_size: 1 - - name: NISE - description: Normal interrupt summary enable - bit_offset: 16 - bit_size: 1 + - name: TIE + description: Transmit interrupt enable + bit_offset: 0 + bit_size: 1 + - name: TPSIE + description: Transmit process stopped interrupt enable + bit_offset: 1 + bit_size: 1 + - name: TBUIE + description: Transmit buffer unavailable interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TJTIE + description: Transmit jabber timeout interrupt enable + bit_offset: 3 + bit_size: 1 + - name: ROIE + description: Receive overflow interrupt enable + bit_offset: 4 + bit_size: 1 + - name: TUIE + description: Transmit underflow interrupt enable + bit_offset: 5 + bit_size: 1 + - name: RIE + description: Receive interrupt enable + bit_offset: 6 + bit_size: 1 + - name: RBUIE + description: Receive buffer unavailable interrupt enable + bit_offset: 7 + bit_size: 1 + - name: RPSIE + description: Receive process stopped interrupt enable + bit_offset: 8 + bit_size: 1 + - name: RWTIE + description: Receive watchdog timeout interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ETIE + description: Early transmit interrupt enable + bit_offset: 10 + bit_size: 1 + - name: FBEIE + description: Fatal bus error interrupt enable + bit_offset: 13 + bit_size: 1 + - name: ERIE + description: Early receive interrupt enable + bit_offset: 14 + bit_size: 1 + - name: AISE + description: Abnormal interrupt summary enable + bit_offset: 15 + bit_size: 1 + - name: NISE + description: Normal interrupt summary enable + bit_offset: 16 + bit_size: 1 fieldset/DMAMFBOCR: description: Ethernet DMA missed frame and buffer overflow counter register fields: - - name: MFC - description: Missed frames by the controller - bit_offset: 0 - bit_size: 16 - - name: OMFC - description: Overflow bit for missed frame counter - bit_offset: 16 - bit_size: 1 - - name: MFA - description: Missed frames by the application - bit_offset: 17 - bit_size: 11 - - name: OFOC - description: Overflow bit for FIFO overflow counter - bit_offset: 28 - bit_size: 1 + - name: MFC + description: Missed frames by the controller + bit_offset: 0 + bit_size: 16 + - name: OMFC + description: Overflow bit for missed frame counter + bit_offset: 16 + bit_size: 1 + - name: MFA + description: Missed frames by the application + bit_offset: 17 + bit_size: 11 + - name: OFOC + description: Overflow bit for FIFO overflow counter + bit_offset: 28 + bit_size: 1 fieldset/DMAOMR: description: Ethernet DMA operation mode register fields: - - name: SR - description: Start/stop receive - bit_offset: 1 - bit_size: 1 - enum: DMAOMR_SR - - name: OSF - description: Operate on second frame - bit_offset: 2 - bit_size: 1 - - name: RTC - description: Receive threshold control - bit_offset: 3 - bit_size: 2 - enum: RTC - - name: FUGF - description: Forward undersized good frames - bit_offset: 6 - bit_size: 1 - enum: FUGF - - name: FEF - description: Forward error frames - bit_offset: 7 - bit_size: 1 - enum: FEF - - name: ST - description: Start/stop transmission - bit_offset: 13 - bit_size: 1 - enum: ST - - name: TTC - description: Transmit threshold control - bit_offset: 14 - bit_size: 3 - enum: TTC - - name: FTF - description: Flush transmit FIFO - bit_offset: 20 - bit_size: 1 - enum: FTF - - name: TSF - description: Transmit store and forward - bit_offset: 21 - bit_size: 1 - enum: TSF - - name: DFRF - description: Disable flushing of received frames - bit_offset: 24 - bit_size: 1 - - name: RSF - description: Receive store and forward - bit_offset: 25 - bit_size: 1 - enum: RSF - - name: DTCEFD - description: Dropping of TCP/IP checksum error frames disable - bit_offset: 26 - bit_size: 1 - enum: DTCEFD + - name: SR + description: Start/stop receive + bit_offset: 1 + bit_size: 1 + enum: DMAOMR_SR + - name: OSF + description: Operate on second frame + bit_offset: 2 + bit_size: 1 + - name: RTC + description: Receive threshold control + bit_offset: 3 + bit_size: 2 + enum: RTC + - name: FUGF + description: Forward undersized good frames + bit_offset: 6 + bit_size: 1 + enum: FUGF + - name: FEF + description: Forward error frames + bit_offset: 7 + bit_size: 1 + enum: FEF + - name: ST + description: Start/stop transmission + bit_offset: 13 + bit_size: 1 + enum: ST + - name: TTC + description: Transmit threshold control + bit_offset: 14 + bit_size: 3 + enum: TTC + - name: FTF + description: Flush transmit FIFO + bit_offset: 20 + bit_size: 1 + enum: FTF + - name: TSF + description: Transmit store and forward + bit_offset: 21 + bit_size: 1 + enum: TSF + - name: DFRF + description: Disable flushing of received frames + bit_offset: 24 + bit_size: 1 + - name: RSF + description: Receive store and forward + bit_offset: 25 + bit_size: 1 + enum: RSF + - name: DTCEFD + description: Dropping of TCP/IP checksum error frames disable + bit_offset: 26 + bit_size: 1 + enum: DTCEFD fieldset/DMARDLAR: description: Ethernet DMA receive descriptor list address register fields: - - name: SRL - description: Start of receive list - bit_offset: 0 - bit_size: 32 + - name: SRL + description: Start of receive list + bit_offset: 0 + bit_size: 32 fieldset/DMARPDR: description: EHERNET DMA receive poll demand register fields: - - name: RPD - description: Receive poll demand - bit_offset: 0 - bit_size: 32 - enum: RPD + - name: RPD + description: Receive poll demand + bit_offset: 0 + bit_size: 32 + enum: RPD fieldset/DMARSWTR: description: Ethernet DMA receive status watchdog timer register fields: - - name: RSWTC - description: Receive status watchdog timer count - bit_offset: 0 - bit_size: 8 + - name: RSWTC + description: Receive status watchdog timer count + bit_offset: 0 + bit_size: 8 fieldset/DMASR: description: Ethernet DMA status register fields: - - name: TS - description: Transmit status - bit_offset: 0 - bit_size: 1 - - name: TPSS - description: Transmit process stopped status - bit_offset: 1 - bit_size: 1 - - name: TBUS - description: Transmit buffer unavailable status - bit_offset: 2 - bit_size: 1 - - name: TJTS - description: Transmit jabber timeout status - bit_offset: 3 - bit_size: 1 - - name: ROS - description: Receive overflow status - bit_offset: 4 - bit_size: 1 - - name: TUS - description: Transmit underflow status - bit_offset: 5 - bit_size: 1 - - name: RS - description: Receive status - bit_offset: 6 - bit_size: 1 - - name: RBUS - description: Receive buffer unavailable status - bit_offset: 7 - bit_size: 1 - - name: RPSS - description: Receive process stopped status - bit_offset: 8 - bit_size: 1 - - name: PWTS - description: PWTS - bit_offset: 9 - bit_size: 1 - - name: ETS - description: Early transmit status - bit_offset: 10 - bit_size: 1 - - name: FBES - description: Fatal bus error status - bit_offset: 13 - bit_size: 1 - - name: ERS - description: Early receive status - bit_offset: 14 - bit_size: 1 - - name: AIS - description: Abnormal interrupt summary - bit_offset: 15 - bit_size: 1 - - name: NIS - description: Normal interrupt summary - bit_offset: 16 - bit_size: 1 - - name: RPS - description: Receive process state - bit_offset: 17 - bit_size: 3 - enum: RPS - - name: TPS - description: Transmit process state - bit_offset: 20 - bit_size: 3 - enum: TPS - - name: EBS - description: Error bits status - bit_offset: 23 - bit_size: 3 - - name: MMCS - description: MMC status - bit_offset: 27 - bit_size: 1 - - name: PMTS - description: PMT status - bit_offset: 28 - bit_size: 1 - - name: TSTS - description: Time stamp trigger status - bit_offset: 29 - bit_size: 1 + - name: TS + description: Transmit status + bit_offset: 0 + bit_size: 1 + - name: TPSS + description: Transmit process stopped status + bit_offset: 1 + bit_size: 1 + - name: TBUS + description: Transmit buffer unavailable status + bit_offset: 2 + bit_size: 1 + - name: TJTS + description: Transmit jabber timeout status + bit_offset: 3 + bit_size: 1 + - name: ROS + description: Receive overflow status + bit_offset: 4 + bit_size: 1 + - name: TUS + description: Transmit underflow status + bit_offset: 5 + bit_size: 1 + - name: RS + description: Receive status + bit_offset: 6 + bit_size: 1 + - name: RBUS + description: Receive buffer unavailable status + bit_offset: 7 + bit_size: 1 + - name: RPSS + description: Receive process stopped status + bit_offset: 8 + bit_size: 1 + - name: PWTS + description: PWTS + bit_offset: 9 + bit_size: 1 + - name: ETS + description: Early transmit status + bit_offset: 10 + bit_size: 1 + - name: FBES + description: Fatal bus error status + bit_offset: 13 + bit_size: 1 + - name: ERS + description: Early receive status + bit_offset: 14 + bit_size: 1 + - name: AIS + description: Abnormal interrupt summary + bit_offset: 15 + bit_size: 1 + - name: NIS + description: Normal interrupt summary + bit_offset: 16 + bit_size: 1 + - name: RPS + description: Receive process state + bit_offset: 17 + bit_size: 3 + enum: RPS + - name: TPS + description: Transmit process state + bit_offset: 20 + bit_size: 3 + enum: TPS + - name: EBS + description: Error bits status + bit_offset: 23 + bit_size: 3 + - name: MMCS + description: MMC status + bit_offset: 27 + bit_size: 1 + - name: PMTS + description: PMT status + bit_offset: 28 + bit_size: 1 + - name: TSTS + description: Time stamp trigger status + bit_offset: 29 + bit_size: 1 fieldset/DMATDLAR: description: Ethernet DMA transmit descriptor list address register fields: - - name: STL - description: Start of transmit list - bit_offset: 0 - bit_size: 32 + - name: STL + description: Start of transmit list + bit_offset: 0 + bit_size: 32 fieldset/DMATPDR: description: Ethernet DMA transmit poll demand register fields: - - name: TPD - description: Transmit poll demand - bit_offset: 0 - bit_size: 32 - enum: TPD + - name: TPD + description: Transmit poll demand + bit_offset: 0 + bit_size: 32 + enum: TPD fieldset/MACA0HR: description: Ethernet MAC address 0 high register fields: - - name: MACA0H - description: MAC address0 high - bit_offset: 0 - bit_size: 16 - - name: MO - description: Always 1 - bit_offset: 31 - bit_size: 1 + - name: MACA0H + description: MAC address0 high + bit_offset: 0 + bit_size: 16 + - name: MO + description: Always 1 + bit_offset: 31 + bit_size: 1 fieldset/MACA0LR: description: Ethernet MAC address 0 low register fields: - - name: MACA0L - description: "0" - bit_offset: 0 - bit_size: 32 + - name: MACA0L + description: '0' + bit_offset: 0 + bit_size: 32 fieldset/MACA1HR: description: Ethernet MAC address 1 high register fields: - - name: MACA1H - description: MACA1H - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA1H + description: MACA1H + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA1LR: description: Ethernet MAC address1 low register fields: - - name: MACA1L - description: MACA1LR - bit_offset: 0 - bit_size: 32 + - name: MACA1L + description: MACA1LR + bit_offset: 0 + bit_size: 32 fieldset/MACA2HR: description: Ethernet MAC address 2 high register fields: - - name: MACA2H - description: MAC2AH - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA2H + description: MAC2AH + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA2LR: description: Ethernet MAC address 2 low register fields: - - name: MACA2L - description: MACA2L - bit_offset: 0 - bit_size: 32 + - name: MACA2L + description: MACA2L + bit_offset: 0 + bit_size: 32 fieldset/MACA3HR: description: Ethernet MAC address 3 high register fields: - - name: MACA3H - description: MACA3H - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA3H + description: MACA3H + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA3LR: description: Ethernet MAC address 3 low register fields: - - name: MACA3L - description: MBCA3L - bit_offset: 0 - bit_size: 32 + - name: MACA3L + description: MBCA3L + bit_offset: 0 + bit_size: 32 fieldset/MACCR: description: Ethernet MAC configuration register fields: - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: DC - description: Deferral check - bit_offset: 4 - bit_size: 1 - enum: DC - - name: BL - description: Back-off limit - bit_offset: 5 - bit_size: 2 - enum: BL - - name: APCS - description: Automatic pad/CRC stripping - bit_offset: 7 - bit_size: 1 - enum: APCS - - name: RD - description: Retry disable - bit_offset: 9 - bit_size: 1 - enum: RD - - name: IPCO - description: IPv4 checksum offload - bit_offset: 10 - bit_size: 1 - enum: IPCO - - name: DM - description: Duplex mode - bit_offset: 11 - bit_size: 1 - enum: DM - - name: LM - description: Loopback mode - bit_offset: 12 - bit_size: 1 - enum: LM - - name: ROD - description: Receive own disable - bit_offset: 13 - bit_size: 1 - enum: ROD - - name: FES - description: Fast Ethernet speed - bit_offset: 14 - bit_size: 1 - enum: FES - - name: CSD - description: Carrier sense disable - bit_offset: 16 - bit_size: 1 - enum: CSD - - name: IFG - description: Interframe gap - bit_offset: 17 - bit_size: 3 - enum: IFG - - name: JD - description: Jabber disable - bit_offset: 22 - bit_size: 1 - enum: JD - - name: WD - description: Watchdog disable - bit_offset: 23 - bit_size: 1 - enum: WD - - name: CSTF - description: CRC stripping for type frames - bit_offset: 25 - bit_size: 1 - enum: CSTF + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: DC + description: Deferral check + bit_offset: 4 + bit_size: 1 + enum: DC + - name: BL + description: Back-off limit + bit_offset: 5 + bit_size: 2 + enum: BL + - name: APCS + description: Automatic pad/CRC stripping + bit_offset: 7 + bit_size: 1 + enum: APCS + - name: RD + description: Retry disable + bit_offset: 9 + bit_size: 1 + enum: RD + - name: IPCO + description: IPv4 checksum offload + bit_offset: 10 + bit_size: 1 + enum: IPCO + - name: DM + description: Duplex mode + bit_offset: 11 + bit_size: 1 + enum: DM + - name: LM + description: Loopback mode + bit_offset: 12 + bit_size: 1 + enum: LM + - name: ROD + description: Receive own disable + bit_offset: 13 + bit_size: 1 + enum: ROD + - name: FES + description: Fast Ethernet speed + bit_offset: 14 + bit_size: 1 + enum: FES + - name: CSD + description: Carrier sense disable + bit_offset: 16 + bit_size: 1 + enum: CSD + - name: IFG + description: Interframe gap + bit_offset: 17 + bit_size: 3 + enum: IFG + - name: JD + description: Jabber disable + bit_offset: 22 + bit_size: 1 + enum: JD + - name: WD + description: Watchdog disable + bit_offset: 23 + bit_size: 1 + enum: WD + - name: CSTF + description: CRC stripping for type frames + bit_offset: 25 + bit_size: 1 + enum: CSTF fieldset/MACDBGR: description: Ethernet MAC debug register fields: - - name: MMRPEA - description: MAC MII receive protocol engine active - bit_offset: 0 - bit_size: 1 - - name: MSFRWCS - description: MAC small FIFO read/write controllers status - bit_offset: 1 - bit_size: 2 - - name: RFWRA - description: Rx FIFO write controller active - bit_offset: 4 - bit_size: 1 - - name: RFRCS - description: Rx FIFO read controller status - bit_offset: 5 - bit_size: 2 - - name: RFFL - description: Rx FIFO fill level - bit_offset: 8 - bit_size: 2 - - name: MMTEA - description: MAC MII transmit engine active - bit_offset: 16 - bit_size: 1 - - name: MTFCS - description: MAC transmit frame controller status - bit_offset: 17 - bit_size: 2 - - name: MTP - description: MAC transmitter in pause - bit_offset: 19 - bit_size: 1 - - name: TFRS - description: Tx FIFO read status - bit_offset: 20 - bit_size: 2 - - name: TFWA - description: Tx FIFO write active - bit_offset: 22 - bit_size: 1 - - name: TFNE - description: Tx FIFO not empty - bit_offset: 24 - bit_size: 1 - - name: TFF - description: Tx FIFO full - bit_offset: 25 - bit_size: 1 + - name: MMRPEA + description: MAC MII receive protocol engine active + bit_offset: 0 + bit_size: 1 + - name: MSFRWCS + description: MAC small FIFO read/write controllers status + bit_offset: 1 + bit_size: 2 + - name: RFWRA + description: Rx FIFO write controller active + bit_offset: 4 + bit_size: 1 + - name: RFRCS + description: Rx FIFO read controller status + bit_offset: 5 + bit_size: 2 + - name: RFFL + description: Rx FIFO fill level + bit_offset: 8 + bit_size: 2 + - name: MMTEA + description: MAC MII transmit engine active + bit_offset: 16 + bit_size: 1 + - name: MTFCS + description: MAC transmit frame controller status + bit_offset: 17 + bit_size: 2 + - name: MTP + description: MAC transmitter in pause + bit_offset: 19 + bit_size: 1 + - name: TFRS + description: Tx FIFO read status + bit_offset: 20 + bit_size: 2 + - name: TFWA + description: Tx FIFO write active + bit_offset: 22 + bit_size: 1 + - name: TFNE + description: Tx FIFO not empty + bit_offset: 24 + bit_size: 1 + - name: TFF + description: Tx FIFO full + bit_offset: 25 + bit_size: 1 fieldset/MACFCR: description: Ethernet MAC flow control register fields: - - name: FCB - description: Flow control busy/back pressure activate - bit_offset: 0 - bit_size: 1 - enum: FCB - - name: TFCE - description: Transmit flow control enable - bit_offset: 1 - bit_size: 1 - enum: TFCE - - name: RFCE - description: Receive flow control enable - bit_offset: 2 - bit_size: 1 - enum: RFCE - - name: UPFD - description: Unicast pause frame detect - bit_offset: 3 - bit_size: 1 - enum: UPFD - - name: PLT - description: Pause low threshold - bit_offset: 4 - bit_size: 2 - enum: PLT - - name: ZQPD - description: Zero-quanta pause disable - bit_offset: 7 - bit_size: 1 - enum: ZQPD - - name: PT - description: Pause time - bit_offset: 16 - bit_size: 16 + - name: FCB + description: Flow control busy/back pressure activate + bit_offset: 0 + bit_size: 1 + enum: FCB + - name: TFCE + description: Transmit flow control enable + bit_offset: 1 + bit_size: 1 + enum: TFCE + - name: RFCE + description: Receive flow control enable + bit_offset: 2 + bit_size: 1 + enum: RFCE + - name: UPFD + description: Unicast pause frame detect + bit_offset: 3 + bit_size: 1 + enum: UPFD + - name: PLT + description: Pause low threshold + bit_offset: 4 + bit_size: 2 + enum: PLT + - name: ZQPD + description: Zero-quanta pause disable + bit_offset: 7 + bit_size: 1 + enum: ZQPD + - name: PT + description: Pause time + bit_offset: 16 + bit_size: 16 fieldset/MACFFR: description: Ethernet MAC frame filter register fields: - - name: PM - description: Promiscuous mode - bit_offset: 0 - bit_size: 1 - enum: PM - - name: HU - description: Hash unicast - bit_offset: 1 - bit_size: 1 - enum: HU - - name: HM - description: Hash multicast - bit_offset: 2 - bit_size: 1 - enum: HM - - name: DAIF - description: Destination address unique filtering - bit_offset: 3 - bit_size: 1 - enum: DAIF - - name: PAM - description: Pass all multicast - bit_offset: 4 - bit_size: 1 - enum: PAM - - name: BFD - description: Broadcast frames disable - bit_offset: 5 - bit_size: 1 - enum: BFD - - name: PCF - description: Pass control frames - bit_offset: 6 - bit_size: 2 - enum: PCF - - name: SAIF - description: Source address inverse filtering - bit_offset: 7 - bit_size: 1 - enum: SAIF - - name: SAF - description: Source address filter - bit_offset: 8 - bit_size: 1 - enum: SAF - - name: HPF - description: Hash or perfect filter - bit_offset: 9 - bit_size: 1 - enum: HPF - - name: RA - description: Receive all - bit_offset: 31 - bit_size: 1 - enum: RA + - name: PM + description: Promiscuous mode + bit_offset: 0 + bit_size: 1 + enum: PM + - name: HU + description: Hash unicast + bit_offset: 1 + bit_size: 1 + enum: HU + - name: HM + description: Hash multicast + bit_offset: 2 + bit_size: 1 + enum: HM + - name: DAIF + description: Destination address unique filtering + bit_offset: 3 + bit_size: 1 + enum: DAIF + - name: PAM + description: Pass all multicast + bit_offset: 4 + bit_size: 1 + enum: PAM + - name: BFD + description: Broadcast frames disable + bit_offset: 5 + bit_size: 1 + enum: BFD + - name: PCF + description: Pass control frames + bit_offset: 6 + bit_size: 2 + enum: PCF + - name: SAIF + description: Source address inverse filtering + bit_offset: 7 + bit_size: 1 + enum: SAIF + - name: SAF + description: Source address filter + bit_offset: 8 + bit_size: 1 + enum: SAF + - name: HPF + description: Hash or perfect filter + bit_offset: 9 + bit_size: 1 + enum: HPF + - name: RA + description: Receive all + bit_offset: 31 + bit_size: 1 + enum: RA fieldset/MACHTHR: description: Ethernet MAC hash table high register fields: - - name: HTH - description: Upper 32 bits of hash table - bit_offset: 0 - bit_size: 32 + - name: HTH + description: Upper 32 bits of hash table + bit_offset: 0 + bit_size: 32 fieldset/MACHTLR: description: Ethernet MAC hash table low register fields: - - name: HTL - description: Lower 32 bits of hash table - bit_offset: 0 - bit_size: 32 + - name: HTL + description: Lower 32 bits of hash table + bit_offset: 0 + bit_size: 32 fieldset/MACIMR: description: Ethernet MAC interrupt mask register fields: - - name: PMTIM - description: PMT interrupt mask - bit_offset: 3 - bit_size: 1 - enum: PMTIM - - name: TSTIM - description: Time stamp trigger interrupt mask - bit_offset: 9 - bit_size: 1 - enum: TSTIM + - name: PMTIM + description: PMT interrupt mask + bit_offset: 3 + bit_size: 1 + enum: PMTIM + - name: TSTIM + description: Time stamp trigger interrupt mask + bit_offset: 9 + bit_size: 1 + enum: TSTIM fieldset/MACMIIAR: description: Ethernet MAC MII address register fields: - - name: MB - description: MII busy - bit_offset: 0 - bit_size: 1 - enum: MB_progress - - name: MW - description: MII write - bit_offset: 1 - bit_size: 1 - enum: MW - - name: CR - description: Clock range - bit_offset: 2 - bit_size: 3 - enum: CR - - name: MR - description: MII register - select the desired MII register in the PHY device - bit_offset: 6 - bit_size: 5 - - name: PA - description: PHY address - select which of possible 32 PHYs is being accessed - bit_offset: 11 - bit_size: 5 + - name: MB + description: MII busy + bit_offset: 0 + bit_size: 1 + enum: MB_progress + - name: MW + description: MII write + bit_offset: 1 + bit_size: 1 + enum: MW + - name: CR + description: Clock range + bit_offset: 2 + bit_size: 3 + enum: CR + - name: MR + description: MII register - select the desired MII register in the PHY device + bit_offset: 6 + bit_size: 5 + - name: PA + description: PHY address - select which of possible 32 PHYs is being accessed + bit_offset: 11 + bit_size: 5 fieldset/MACMIIDR: description: Ethernet MAC MII data register fields: - - name: MD - description: MII data read from/written to the PHY - bit_offset: 0 - bit_size: 16 + - name: MD + description: MII data read from/written to the PHY + bit_offset: 0 + bit_size: 16 fieldset/MACPMTCSR: description: Ethernet MAC PMT control and status register fields: - - name: PD - description: Power down - bit_offset: 0 - bit_size: 1 - enum: PD - - name: MPE - description: Magic packet enable - bit_offset: 1 - bit_size: 1 - enum: MPE - - name: WFE - description: Wakeup frame enable - bit_offset: 2 - bit_size: 1 - enum: WFE - - name: MPR - description: Magic packet received - bit_offset: 5 - bit_size: 1 - - name: WFR - description: Wakeup frame received - bit_offset: 6 - bit_size: 1 - - name: GU - description: Global unicast - bit_offset: 9 - bit_size: 1 - enum: GU - - name: WFFRPR - description: Wakeup frame filter register pointer reset - bit_offset: 31 - bit_size: 1 - enum: WFFRPR + - name: PD + description: Power down + bit_offset: 0 + bit_size: 1 + enum: PD + - name: MPE + description: Magic packet enable + bit_offset: 1 + bit_size: 1 + enum: MPE + - name: WFE + description: Wakeup frame enable + bit_offset: 2 + bit_size: 1 + enum: WFE + - name: MPR + description: Magic packet received + bit_offset: 5 + bit_size: 1 + - name: WFR + description: Wakeup frame received + bit_offset: 6 + bit_size: 1 + - name: GU + description: Global unicast + bit_offset: 9 + bit_size: 1 + enum: GU + - name: WFFRPR + description: Wakeup frame filter register pointer reset + bit_offset: 31 + bit_size: 1 + enum: WFFRPR fieldset/MACSR: description: Ethernet MAC interrupt status register fields: - - name: PMTS - description: PMT status - bit_offset: 3 - bit_size: 1 - - name: MMCS - description: MMC status - bit_offset: 4 - bit_size: 1 - - name: MMCRS - description: MMC receive status - bit_offset: 5 - bit_size: 1 - - name: MMCTS - description: MMC transmit status - bit_offset: 6 - bit_size: 1 - - name: TSTS - description: Time stamp trigger status - bit_offset: 9 - bit_size: 1 + - name: PMTS + description: PMT status + bit_offset: 3 + bit_size: 1 + - name: MMCS + description: MMC status + bit_offset: 4 + bit_size: 1 + - name: MMCRS + description: MMC receive status + bit_offset: 5 + bit_size: 1 + - name: MMCTS + description: MMC transmit status + bit_offset: 6 + bit_size: 1 + - name: TSTS + description: Time stamp trigger status + bit_offset: 9 + bit_size: 1 fieldset/MACVLANTR: description: Ethernet MAC VLAN tag register fields: - - name: VLANTI - description: VLAN tag identifier (for receive frames) - bit_offset: 0 - bit_size: 16 - - name: VLANTC - description: 12-bit VLAN tag comparison - bit_offset: 16 - bit_size: 1 - enum: VLANTC + - name: VLANTI + description: VLAN tag identifier (for receive frames) + bit_offset: 0 + bit_size: 16 + - name: VLANTC + description: 12-bit VLAN tag comparison + bit_offset: 16 + bit_size: 1 + enum: VLANTC fieldset/MMCCR: description: Ethernet MMC control register fields: - - name: CR - description: Counter reset - bit_offset: 0 - bit_size: 1 - enum: CounterReset - - name: CSR - description: Counter stop rollover - bit_offset: 1 - bit_size: 1 - enum: CSR - - name: ROR - description: Reset on read - bit_offset: 2 - bit_size: 1 - enum: ROR - - name: MCF - description: MMC counter freeze - bit_offset: 3 - bit_size: 1 - enum: MCF - - name: MCP - description: MMC counter preset - bit_offset: 4 - bit_size: 1 - enum: MCP - - name: MCFHP - description: MMC counter Full-Half preset - bit_offset: 5 - bit_size: 1 - enum: MCFHP + - name: CR + description: Counter reset + bit_offset: 0 + bit_size: 1 + enum: CounterReset + - name: CSR + description: Counter stop rollover + bit_offset: 1 + bit_size: 1 + enum: CSR + - name: ROR + description: Reset on read + bit_offset: 2 + bit_size: 1 + enum: ROR + - name: MCF + description: MMC counter freeze + bit_offset: 3 + bit_size: 1 + enum: MCF + - name: MCP + description: MMC counter preset + bit_offset: 4 + bit_size: 1 + enum: MCP + - name: MCFHP + description: MMC counter Full-Half preset + bit_offset: 5 + bit_size: 1 + enum: MCFHP fieldset/MMCRFAECR: description: Ethernet MMC received frames with alignment error counter register fields: - - name: RFAEC - description: RFAEC - bit_offset: 0 - bit_size: 32 + - name: RFAEC + description: RFAEC + bit_offset: 0 + bit_size: 32 fieldset/MMCRFCECR: description: Ethernet MMC received frames with CRC error counter register fields: - - name: RFCFC - description: RFCFC - bit_offset: 0 - bit_size: 32 + - name: RFCFC + description: RFCFC + bit_offset: 0 + bit_size: 32 fieldset/MMCRGUFCR: description: MMC received good unicast frames counter register fields: - - name: RGUFC - description: RGUFC - bit_offset: 0 - bit_size: 32 + - name: RGUFC + description: RGUFC + bit_offset: 0 + bit_size: 32 fieldset/MMCRIMR: description: Ethernet MMC receive interrupt mask register fields: - - name: RFCEM - description: Received frame CRC error mask - bit_offset: 5 - bit_size: 1 - enum: RFCEM - - name: RFAEM - description: Received frames alignment error mask - bit_offset: 6 - bit_size: 1 - enum: RFAEM - - name: RGUFM - description: Received good Unicast frames mask - bit_offset: 17 - bit_size: 1 - enum: RGUFM + - name: RFCEM + description: Received frame CRC error mask + bit_offset: 5 + bit_size: 1 + enum: RFCEM + - name: RFAEM + description: Received frames alignment error mask + bit_offset: 6 + bit_size: 1 + enum: RFAEM + - name: RGUFM + description: Received good Unicast frames mask + bit_offset: 17 + bit_size: 1 + enum: RGUFM fieldset/MMCRIR: description: Ethernet MMC receive interrupt register fields: - - name: RFCES - description: Received frames CRC error status - bit_offset: 5 - bit_size: 1 - - name: RFAES - description: Received frames alignment error status - bit_offset: 6 - bit_size: 1 - - name: RGUFS - description: Received good Unicast frames status - bit_offset: 17 - bit_size: 1 + - name: RFCES + description: Received frames CRC error status + bit_offset: 5 + bit_size: 1 + - name: RFAES + description: Received frames alignment error status + bit_offset: 6 + bit_size: 1 + - name: RGUFS + description: Received good Unicast frames status + bit_offset: 17 + bit_size: 1 fieldset/MMCTGFCR: description: Ethernet MMC transmitted good frames counter register fields: - - name: TGFC - description: HTL - bit_offset: 0 - bit_size: 32 + - name: TGFC + description: HTL + bit_offset: 0 + bit_size: 32 fieldset/MMCTGFMSCCR: description: Ethernet MMC transmitted good frames after more than a single collision fields: - - name: TGFMSCC - description: TGFMSCC - bit_offset: 0 - bit_size: 32 + - name: TGFMSCC + description: TGFMSCC + bit_offset: 0 + bit_size: 32 fieldset/MMCTGFSCCR: description: Ethernet MMC transmitted good frames after a single collision counter fields: - - name: TGFSCC - description: Transmitted good frames single collision counter - bit_offset: 0 - bit_size: 32 + - name: TGFSCC + description: Transmitted good frames single collision counter + bit_offset: 0 + bit_size: 32 fieldset/MMCTIMR: description: Ethernet MMC transmit interrupt mask register fields: - - name: TGFSCM - description: Transmitted good frames single collision mask - bit_offset: 14 - bit_size: 1 - enum: TGFSCM - - name: TGFMSCM - description: Transmitted good frames more than single collision mask - bit_offset: 15 - bit_size: 1 - enum: TGFMSCM - - name: TGFM - description: Transmitted good frames mask - bit_offset: 16 - bit_size: 1 - enum: TGFM + - name: TGFSCM + description: Transmitted good frames single collision mask + bit_offset: 14 + bit_size: 1 + enum: TGFSCM + - name: TGFMSCM + description: Transmitted good frames more than single collision mask + bit_offset: 15 + bit_size: 1 + enum: TGFMSCM + - name: TGFM + description: Transmitted good frames mask + bit_offset: 16 + bit_size: 1 + enum: TGFM fieldset/MMCTIR: description: Ethernet MMC transmit interrupt register fields: - - name: TGFSCS - description: Transmitted good frames single collision status - bit_offset: 14 - bit_size: 1 - - name: TGFMSCS - description: Transmitted good frames more than single collision status - bit_offset: 15 - bit_size: 1 - - name: TGFS - description: Transmitted good frames status - bit_offset: 21 - bit_size: 1 + - name: TGFSCS + description: Transmitted good frames single collision status + bit_offset: 14 + bit_size: 1 + - name: TGFMSCS + description: Transmitted good frames more than single collision status + bit_offset: 15 + bit_size: 1 + - name: TGFS + description: Transmitted good frames status + bit_offset: 21 + bit_size: 1 fieldset/PTPPPSCR: description: Ethernet PTP PPS control register fields: - - name: TSSO - description: TSSO - bit_offset: 0 - bit_size: 1 - - name: TSTTR - description: TSTTR - bit_offset: 1 - bit_size: 1 + - name: TSSO + description: TSSO + bit_offset: 0 + bit_size: 1 + - name: TSTTR + description: TSTTR + bit_offset: 1 + bit_size: 1 fieldset/PTPSSIR: description: Ethernet PTP subsecond increment register fields: - - name: STSSI - description: STSSI - bit_offset: 0 - bit_size: 8 + - name: STSSI + description: STSSI + bit_offset: 0 + bit_size: 8 fieldset/PTPTSAR: description: Ethernet PTP time stamp addend register fields: - - name: TSA - description: TSA - bit_offset: 0 - bit_size: 32 + - name: TSA + description: TSA + bit_offset: 0 + bit_size: 32 fieldset/PTPTSCR: description: Ethernet PTP time stamp control register fields: - - name: TSE - description: TSE - bit_offset: 0 - bit_size: 1 - - name: TSFCU - description: TSFCU - bit_offset: 1 - bit_size: 1 - - name: TSSTI - description: TSSTI - bit_offset: 2 - bit_size: 1 - - name: TSSTU - description: TSSTU - bit_offset: 3 - bit_size: 1 - - name: TSITE - description: TSITE - bit_offset: 4 - bit_size: 1 - - name: TTSARU - description: TTSARU - bit_offset: 5 - bit_size: 1 - - name: TSSARFE - description: TSSARFE - bit_offset: 8 - bit_size: 1 - - name: TSSSR - description: TSSSR - bit_offset: 9 - bit_size: 1 - - name: TSPTPPSV2E - description: TSPTPPSV2E - bit_offset: 10 - bit_size: 1 - - name: TSSPTPOEFE - description: TSSPTPOEFE - bit_offset: 11 - bit_size: 1 - - name: TSSIPV6FE - description: TSSIPV6FE - bit_offset: 12 - bit_size: 1 - - name: TSSIPV4FE - description: TSSIPV4FE - bit_offset: 13 - bit_size: 1 - - name: TSSEME - description: TSSEME - bit_offset: 14 - bit_size: 1 - - name: TSSMRME - description: TSSMRME - bit_offset: 15 - bit_size: 1 - - name: TSCNT - description: TSCNT - bit_offset: 16 - bit_size: 2 - - name: TSPFFMAE - description: TSPFFMAE - bit_offset: 18 - bit_size: 1 + - name: TSE + description: TSE + bit_offset: 0 + bit_size: 1 + - name: TSFCU + description: TSFCU + bit_offset: 1 + bit_size: 1 + - name: TSSTI + description: TSSTI + bit_offset: 2 + bit_size: 1 + - name: TSSTU + description: TSSTU + bit_offset: 3 + bit_size: 1 + - name: TSITE + description: TSITE + bit_offset: 4 + bit_size: 1 + - name: TTSARU + description: TTSARU + bit_offset: 5 + bit_size: 1 + - name: TSSARFE + description: TSSARFE + bit_offset: 8 + bit_size: 1 + - name: TSSSR + description: TSSSR + bit_offset: 9 + bit_size: 1 + - name: TSPTPPSV2E + description: TSPTPPSV2E + bit_offset: 10 + bit_size: 1 + - name: TSSPTPOEFE + description: TSSPTPOEFE + bit_offset: 11 + bit_size: 1 + - name: TSSIPV6FE + description: TSSIPV6FE + bit_offset: 12 + bit_size: 1 + - name: TSSIPV4FE + description: TSSIPV4FE + bit_offset: 13 + bit_size: 1 + - name: TSSEME + description: TSSEME + bit_offset: 14 + bit_size: 1 + - name: TSSMRME + description: TSSMRME + bit_offset: 15 + bit_size: 1 + - name: TSCNT + description: TSCNT + bit_offset: 16 + bit_size: 2 + - name: TSPFFMAE + description: TSPFFMAE + bit_offset: 18 + bit_size: 1 fieldset/PTPTSHR: description: Ethernet PTP time stamp high register fields: - - name: STS - description: STS - bit_offset: 0 - bit_size: 32 + - name: STS + description: STS + bit_offset: 0 + bit_size: 32 fieldset/PTPTSHUR: description: Ethernet PTP time stamp high update register fields: - - name: TSUS - description: TSUS - bit_offset: 0 - bit_size: 32 + - name: TSUS + description: TSUS + bit_offset: 0 + bit_size: 32 fieldset/PTPTSLR: description: Ethernet PTP time stamp low register fields: - - name: STSS - description: STSS - bit_offset: 0 - bit_size: 31 - - name: STPNS - description: STPNS - bit_offset: 31 - bit_size: 1 + - name: STSS + description: STSS + bit_offset: 0 + bit_size: 31 + - name: STPNS + description: STPNS + bit_offset: 31 + bit_size: 1 fieldset/PTPTSLUR: description: Ethernet PTP time stamp low update register fields: - - name: TSUSS - description: TSUSS - bit_offset: 0 - bit_size: 31 - - name: TSUPNS - description: TSUPNS - bit_offset: 31 - bit_size: 1 + - name: TSUSS + description: TSUSS + bit_offset: 0 + bit_size: 31 + - name: TSUPNS + description: TSUPNS + bit_offset: 31 + bit_size: 1 fieldset/PTPTSSR: description: Ethernet PTP time stamp status register fields: - - name: TSSO - description: TSSO - bit_offset: 0 - bit_size: 1 - - name: TSTTR - description: TSSO - bit_offset: 1 - bit_size: 1 + - name: TSSO + description: TSSO + bit_offset: 0 + bit_size: 1 + - name: TSTTR + description: TSSO + bit_offset: 1 + bit_size: 1 fieldset/PTPTTHR: description: Ethernet PTP target time high register fields: - - name: TTSH - description: "0" - bit_offset: 0 - bit_size: 32 + - name: TTSH + description: '0' + bit_offset: 0 + bit_size: 32 fieldset/PTPTTLR: description: Ethernet PTP target time low register fields: - - name: TTSL - description: TTSL - bit_offset: 0 - bit_size: 32 + - name: TTSL + description: TTSL + bit_offset: 0 + bit_size: 32 enum/AAB: bit_size: 1 variants: - - name: Unaligned - description: Bursts are not aligned - value: 0 - - name: Aligned - description: Align bursts to start address LS bits. First burst alignment depends on FB bit - value: 1 + - name: Unaligned + description: Bursts are not aligned + value: 0 + - name: Aligned + description: Align bursts to start address LS bits. First burst alignment depends on FB bit + value: 1 enum/APCS: bit_size: 1 variants: - - name: Disabled - description: MAC passes all incoming frames unmodified - value: 0 - - name: Strip - description: MAC strips the Pad/FCS field on incoming frames only for lengths less than or equal to 1500 bytes - value: 1 + - name: Disabled + description: MAC passes all incoming frames unmodified + value: 0 + - name: Strip + description: MAC strips the Pad/FCS field on incoming frames only for lengths less than or equal to 1500 bytes + value: 1 enum/BFD: bit_size: 1 variants: - - name: Enabled - description: Address filters pass all received broadcast frames - value: 0 - - name: Disabled - description: Address filters filter all incoming broadcast frames - value: 1 + - name: Enabled + description: Address filters pass all received broadcast frames + value: 0 + - name: Disabled + description: Address filters filter all incoming broadcast frames + value: 1 enum/BL: bit_size: 2 variants: - - name: BL10 - description: "For retransmission n, wait up to 2^min(n, 10) time slots" - value: 0 - - name: BL8 - description: "For retransmission n, wait up to 2^min(n, 8) time slots" - value: 1 - - name: BL4 - description: "For retransmission n, wait up to 2^min(n, 4) time slots" - value: 2 - - name: BL1 - description: "For retransmission n, wait up to 2^min(n, 1) time slots" - value: 3 + - name: BL10 + description: For retransmission n, wait up to 2^min(n, 10) time slots + value: 0 + - name: BL8 + description: For retransmission n, wait up to 2^min(n, 8) time slots + value: 1 + - name: BL4 + description: For retransmission n, wait up to 2^min(n, 4) time slots + value: 2 + - name: BL1 + description: For retransmission n, wait up to 2^min(n, 1) time slots + value: 3 enum/CR: bit_size: 3 variants: - - name: CR_60_100 - description: 60-100MHz HCLK/42 - value: 0 - - name: CR_100_150 - description: 100-150 MHz HCLK/62 - value: 1 - - name: CR_20_35 - description: 20-35MHz HCLK/16 - value: 2 - - name: CR_35_60 - description: 35-60MHz HCLK/16 - value: 3 - - name: CR_150_168 - description: 150-168MHz HCLK/102 - value: 4 + - name: CR_60_100 + description: 60-100MHz HCLK/42 + value: 0 + - name: CR_100_150 + description: 100-150 MHz HCLK/62 + value: 1 + - name: CR_20_35 + description: 20-35MHz HCLK/16 + value: 2 + - name: CR_35_60 + description: 35-60MHz HCLK/16 + value: 3 + - name: CR_150_168 + description: 150-168MHz HCLK/102 + value: 4 enum/CSD: bit_size: 1 variants: - - name: Enabled - description: Errors generated due to loss of carrier - value: 0 - - name: Disabled - description: No error generated due to loss of carrier - value: 1 + - name: Enabled + description: Errors generated due to loss of carrier + value: 0 + - name: Disabled + description: No error generated due to loss of carrier + value: 1 enum/CSR: bit_size: 1 variants: - - name: Disabled - description: Counters roll over to zero after reaching the maximum value - value: 0 - - name: Enabled - description: Counters do not roll over to zero after reaching the maximum value - value: 1 + - name: Disabled + description: Counters roll over to zero after reaching the maximum value + value: 0 + - name: Enabled + description: Counters do not roll over to zero after reaching the maximum value + value: 1 enum/CSTF: bit_size: 1 variants: - - name: Disabled - description: CRC not stripped - value: 0 - - name: Enabled - description: CRC stripped - value: 1 + - name: Disabled + description: CRC not stripped + value: 0 + - name: Enabled + description: CRC stripped + value: 1 enum/CounterReset: bit_size: 1 variants: - - name: Reset - description: Reset all counters. Cleared automatically - value: 1 + - name: Reset + description: Reset all counters. Cleared automatically + value: 1 enum/DA: bit_size: 1 variants: - - name: RoundRobin - description: "Round-robin with Rx:Tx priority given by PM" - value: 0 - - name: RxPriority - description: Rx has priority over Tx - value: 1 + - name: RoundRobin + description: Round-robin with Rx:Tx priority given by PM + value: 0 + - name: RxPriority + description: Rx has priority over Tx + value: 1 enum/DAIF: bit_size: 1 variants: - - name: Normal - description: Normal filtering of frames - value: 0 - - name: Invert - description: Address check block operates in inverse filtering mode for the DA address comparison - value: 1 + - name: Normal + description: Normal filtering of frames + value: 0 + - name: Invert + description: Address check block operates in inverse filtering mode for the DA address comparison + value: 1 enum/DC: bit_size: 1 variants: - - name: Disabled - description: MAC defers until CRS signal goes inactive - value: 0 - - name: Enabled - description: Deferral check function enabled - value: 1 + - name: Disabled + description: MAC defers until CRS signal goes inactive + value: 0 + - name: Enabled + description: Deferral check function enabled + value: 1 enum/DM: bit_size: 1 variants: - - name: HalfDuplex - description: MAC operates in half-duplex mode - value: 0 - - name: FullDuplex - description: MAC operates in full-duplex mode - value: 1 + - name: HalfDuplex + description: MAC operates in half-duplex mode + value: 0 + - name: FullDuplex + description: MAC operates in full-duplex mode + value: 1 enum/DMAOMR_SR: bit_size: 1 variants: - - name: Stopped - description: Reception is stopped after transfer of the current frame - value: 0 - - name: Started - description: Reception is placed in the Running state - value: 1 + - name: Stopped + description: Reception is stopped after transfer of the current frame + value: 0 + - name: Started + description: Reception is placed in the Running state + value: 1 enum/DTCEFD: bit_size: 1 variants: - - name: Enabled - description: Drop frames with errors only in the receive checksum offload engine - value: 0 - - name: Disabled - description: Do not drop frames that only have errors in the receive checksum offload engine - value: 1 + - name: Enabled + description: Drop frames with errors only in the receive checksum offload engine + value: 0 + - name: Disabled + description: Do not drop frames that only have errors in the receive checksum offload engine + value: 1 enum/EDFE: bit_size: 1 variants: - - name: Disabled - description: Normal descriptor format - value: 0 - - name: Enabled - description: "Enhanced 32-byte descriptor format, required for timestamping and IPv4 checksum offload" - value: 1 + - name: Disabled + description: Normal descriptor format + value: 0 + - name: Enabled + description: Enhanced 32-byte descriptor format, required for timestamping and IPv4 checksum offload + value: 1 enum/FB: bit_size: 1 variants: - - name: Variable - description: AHB uses SINGLE and INCR burst transfers - value: 0 - - name: Fixed - description: AHB uses only fixed burst transfers - value: 1 + - name: Variable + description: AHB uses SINGLE and INCR burst transfers + value: 0 + - name: Fixed + description: AHB uses only fixed burst transfers + value: 1 enum/FCB: bit_size: 1 variants: - - name: DisableBackPressure - description: "In half duplex only, deasserts back pressure" - value: 0 - - name: PauseOrBackPressure - description: "In full duplex, initiate a Pause control frame. In half duplex, assert back pressure" - value: 1 + - name: DisableBackPressure + description: In half duplex only, deasserts back pressure + value: 0 + - name: PauseOrBackPressure + description: In full duplex, initiate a Pause control frame. In half duplex, assert back pressure + value: 1 enum/FEF: bit_size: 1 variants: - - name: Drop - description: Rx FIFO drops frames with error status - value: 0 - - name: Forward - description: All frames except runt error frames are forwarded to the DMA - value: 1 + - name: Drop + description: Rx FIFO drops frames with error status + value: 0 + - name: Forward + description: All frames except runt error frames are forwarded to the DMA + value: 1 enum/FES: bit_size: 1 variants: - - name: FES10 - description: 10 Mbit/s - value: 0 - - name: FES100 - description: 100 Mbit/s - value: 1 + - name: FES10 + description: 10 Mbit/s + value: 0 + - name: FES100 + description: 100 Mbit/s + value: 1 enum/FPM: bit_size: 1 variants: - - name: x1 - description: PBL values used as-is - value: 0 - - name: x4 - description: PBL values multiplied by 4 - value: 1 + - name: x1 + description: PBL values used as-is + value: 0 + - name: x4 + description: PBL values multiplied by 4 + value: 1 enum/FTF: bit_size: 1 variants: - - name: Flush - description: Transmit FIFO controller logic is reset to its default values. Cleared automatically - value: 1 + - name: Flush + description: Transmit FIFO controller logic is reset to its default values. Cleared automatically + value: 1 enum/FUGF: bit_size: 1 variants: - - name: Drop - description: Rx FIFO drops all frames of less than 64 bytes - value: 0 - - name: Forward - description: Rx FIFO forwards undersized frames - value: 1 + - name: Drop + description: Rx FIFO drops all frames of less than 64 bytes + value: 0 + - name: Forward + description: Rx FIFO forwards undersized frames + value: 1 enum/GU: bit_size: 1 variants: - - name: Disabled - description: Normal operation - value: 0 - - name: Enabled - description: Any unicast packet filtered by the MAC address recognition may be a wakeup frame - value: 1 + - name: Disabled + description: Normal operation + value: 0 + - name: Enabled + description: Any unicast packet filtered by the MAC address recognition may be a wakeup frame + value: 1 enum/HM: bit_size: 1 variants: - - name: Perfect - description: MAC performs a perfect destination address filtering for multicast frames - value: 0 - - name: Hash - description: MAC performs destination address filtering of received multicast frames according to the hash table - value: 1 + - name: Perfect + description: MAC performs a perfect destination address filtering for multicast frames + value: 0 + - name: Hash + description: MAC performs destination address filtering of received multicast frames according to the hash table + value: 1 enum/HPF: bit_size: 1 variants: - - name: HashOnly - description: "If HM or HU is set, only frames that match the Hash filter are passed" - value: 0 - - name: HashOrPerfect - description: "If HM or HU is set, frames that match either the perfect filter or the hash filter are passed" - value: 1 + - name: HashOnly + description: If HM or HU is set, only frames that match the Hash filter are passed + value: 0 + - name: HashOrPerfect + description: If HM or HU is set, frames that match either the perfect filter or the hash filter are passed + value: 1 enum/HU: bit_size: 1 variants: - - name: Perfect - description: MAC performs a perfect destination address filtering for unicast frames - value: 0 - - name: Hash - description: MAC performs destination address filtering of received unicast frames according to the hash table - value: 1 + - name: Perfect + description: MAC performs a perfect destination address filtering for unicast frames + value: 0 + - name: Hash + description: MAC performs destination address filtering of received unicast frames according to the hash table + value: 1 enum/IFG: bit_size: 3 variants: - - name: IFG96 - description: 96 bit times - value: 0 - - name: IFG88 - description: 88 bit times - value: 1 - - name: IFG80 - description: 80 bit times - value: 2 - - name: IFG72 - description: 72 bit times - value: 3 - - name: IFG64 - description: 64 bit times - value: 4 - - name: IFG56 - description: 56 bit times - value: 5 - - name: IFG48 - description: 48 bit times - value: 6 - - name: IFG40 - description: 40 bit times - value: 7 + - name: IFG96 + description: 96 bit times + value: 0 + - name: IFG88 + description: 88 bit times + value: 1 + - name: IFG80 + description: 80 bit times + value: 2 + - name: IFG72 + description: 72 bit times + value: 3 + - name: IFG64 + description: 64 bit times + value: 4 + - name: IFG56 + description: 56 bit times + value: 5 + - name: IFG48 + description: 48 bit times + value: 6 + - name: IFG40 + description: 40 bit times + value: 7 enum/IPCO: bit_size: 1 variants: - - name: Disabled - description: IPv4 checksum offload disabled - value: 0 - - name: Offload - description: IPv4 checksums are checked in received frames - value: 1 + - name: Disabled + description: IPv4 checksum offload disabled + value: 0 + - name: Offload + description: IPv4 checksums are checked in received frames + value: 1 enum/JD: bit_size: 1 variants: - - name: Enabled - description: "Jabber enabled, transmit frames up to 2048 bytes" - value: 0 - - name: Disabled - description: "Jabber disabled, transmit frames up to 16384 bytes" - value: 1 + - name: Enabled + description: Jabber enabled, transmit frames up to 2048 bytes + value: 0 + - name: Disabled + description: Jabber disabled, transmit frames up to 16384 bytes + value: 1 enum/LM: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: Loopback - description: MAC operates in loopback mode at the MII - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: Loopback + description: MAC operates in loopback mode at the MII + value: 1 enum/MACAHR_AE: bit_size: 1 variants: - - name: Disabled - description: Address filters ignore this address - value: 0 - - name: Enabled - description: Address filters use this address - value: 1 + - name: Disabled + description: Address filters ignore this address + value: 0 + - name: Enabled + description: Address filters use this address + value: 1 enum/MACAHR_SA: bit_size: 1 variants: - - name: Destination - description: This address is used for comparison with DA fields of the received frame - value: 0 - - name: Source - description: This address is used for comparison with SA fields of received frames - value: 1 + - name: Destination + description: This address is used for comparison with DA fields of the received frame + value: 0 + - name: Source + description: This address is used for comparison with SA fields of received frames + value: 1 enum/MB: bit_size: 1 variants: - - name: Normal - description: Fixed burst transfers (INCRx and SINGLE) for burst lengths of 16 and below - value: 0 - - name: Mixed - description: "If FB is low, start all bursts greater than 16 with INCR (undefined burst)" - value: 1 + - name: Normal + description: Fixed burst transfers (INCRx and SINGLE) for burst lengths of 16 and below + value: 0 + - name: Mixed + description: If FB is low, start all bursts greater than 16 with INCR (undefined burst) + value: 1 enum/MB_progress: bit_size: 1 variants: - - name: Busy - description: This bit is set to 1 by the application to indicate that a read or write access is in progress - value: 1 + - name: Busy + description: This bit is set to 1 by the application to indicate that a read or write access is in progress + value: 1 enum/MCF: bit_size: 1 variants: - - name: Unfrozen - description: All MMC counters update normally - value: 0 - - name: Frozen - description: All MMC counters frozen to their current value - value: 1 + - name: Unfrozen + description: All MMC counters update normally + value: 0 + - name: Frozen + description: All MMC counters frozen to their current value + value: 1 enum/MCFHP: bit_size: 1 variants: - - name: AlmostHalf - description: "When MCP is set, MMC counters are preset to almost-half value 0x7FFF_FFF0" - value: 0 - - name: AlmostFull - description: "When MCP is set, MMC counters are preset to almost-full value 0xFFFF_FFF0" - value: 1 + - name: AlmostHalf + description: When MCP is set, MMC counters are preset to almost-half value 0x7FFF_FFF0 + value: 0 + - name: AlmostFull + description: When MCP is set, MMC counters are preset to almost-full value 0xFFFF_FFF0 + value: 1 enum/MCP: bit_size: 1 variants: - - name: Preset - description: MMC counters will be preset to almost full or almost half. Cleared automatically - value: 1 + - name: Preset + description: MMC counters will be preset to almost full or almost half. Cleared automatically + value: 1 enum/MPE: bit_size: 1 variants: - - name: Disabled - description: No power management event generated due to Magic Packet reception - value: 0 - - name: Enabled - description: Enable generation of a power management event due to Magic Packet reception - value: 1 + - name: Disabled + description: No power management event generated due to Magic Packet reception + value: 0 + - name: Enabled + description: Enable generation of a power management event due to Magic Packet reception + value: 1 enum/MW: bit_size: 1 variants: - - name: Read - description: Read operation - value: 0 - - name: Write - description: Write operation - value: 1 + - name: Read + description: Read operation + value: 0 + - name: Write + description: Write operation + value: 1 enum/PAM: bit_size: 1 variants: - - name: Disabled - description: Filtering of multicast frames depends on HM - value: 0 - - name: Enabled - description: All received frames with a multicast destination address are passed - value: 1 + - name: Disabled + description: Filtering of multicast frames depends on HM + value: 0 + - name: Enabled + description: All received frames with a multicast destination address are passed + value: 1 enum/PBL: bit_size: 6 variants: - - name: PBL1 - description: Maximum of 1 beat per DMA transaction - value: 1 - - name: PBL2 - description: Maximum of 2 beats per DMA transaction - value: 2 - - name: PBL4 - description: Maximum of 4 beats per DMA transaction - value: 4 - - name: PBL8 - description: Maximum of 8 beats per DMA transaction - value: 8 - - name: PBL16 - description: Maximum of 16 beats per DMA transaction - value: 16 - - name: PBL32 - description: Maximum of 32 beats per DMA transaction - value: 32 + - name: PBL1 + description: Maximum of 1 beat per DMA transaction + value: 1 + - name: PBL2 + description: Maximum of 2 beats per DMA transaction + value: 2 + - name: PBL4 + description: Maximum of 4 beats per DMA transaction + value: 4 + - name: PBL8 + description: Maximum of 8 beats per DMA transaction + value: 8 + - name: PBL16 + description: Maximum of 16 beats per DMA transaction + value: 16 + - name: PBL32 + description: Maximum of 32 beats per DMA transaction + value: 32 enum/PCF: bit_size: 2 variants: - - name: PreventAll - description: MAC prevents all control frames from reaching the application - value: 0 - - name: ForwardAllExceptPause - description: MAC forwards all control frames to application except Pause - value: 1 - - name: ForwardAll - description: MAC forwards all control frames to application even if they fail the address filter - value: 2 - - name: ForwardAllFiltered - description: MAC forwards control frames that pass the address filter - value: 3 + - name: PreventAll + description: MAC prevents all control frames from reaching the application + value: 0 + - name: ForwardAllExceptPause + description: MAC forwards all control frames to application except Pause + value: 1 + - name: ForwardAll + description: MAC forwards all control frames to application even if they fail the address filter + value: 2 + - name: ForwardAllFiltered + description: MAC forwards control frames that pass the address filter + value: 3 enum/PD: bit_size: 1 variants: - - name: Enabled - description: All received frames will be dropped. Cleared automatically when a magic packet or wakeup frame is received - value: 1 + - name: Enabled + description: All received frames will be dropped. Cleared automatically when a magic packet or wakeup frame is received + value: 1 enum/PLT: bit_size: 2 variants: - - name: PLT4 - description: Pause time minus 4 slot times - value: 0 - - name: PLT28 - description: Pause time minus 28 slot times - value: 1 - - name: PLT144 - description: Pause time minus 144 slot times - value: 2 - - name: PLT256 - description: Pause time minus 256 slot times - value: 3 + - name: PLT4 + description: Pause time minus 4 slot times + value: 0 + - name: PLT28 + description: Pause time minus 28 slot times + value: 1 + - name: PLT144 + description: Pause time minus 144 slot times + value: 2 + - name: PLT256 + description: Pause time minus 256 slot times + value: 3 enum/PM: bit_size: 1 variants: - - name: Disabled - description: Normal address filtering - value: 0 - - name: Enabled - description: Address filters pass all incoming frames regardless of their destination or source address - value: 1 + - name: Disabled + description: Normal address filtering + value: 0 + - name: Enabled + description: Address filters pass all incoming frames regardless of their destination or source address + value: 1 enum/PMTIM: bit_size: 1 variants: - - name: Unmasked - description: PMT Status interrupt generation enabled - value: 0 - - name: Masked - description: PMT Status interrupt generation disabled - value: 1 + - name: Unmasked + description: PMT Status interrupt generation enabled + value: 0 + - name: Masked + description: PMT Status interrupt generation disabled + value: 1 enum/PriorityRxOverTx: bit_size: 2 variants: - - name: OneToOne - description: "RxDMA priority over TxDMA is 1:1" - value: 0 - - name: TwoToOne - description: "RxDMA priority over TxDMA is 2:1" - value: 1 - - name: ThreeToOne - description: "RxDMA priority over TxDMA is 3:1" - value: 2 - - name: FourToOne - description: "RxDMA priority over TxDMA is 4:1" - value: 3 + - name: OneToOne + description: RxDMA priority over TxDMA is 1:1 + value: 0 + - name: TwoToOne + description: RxDMA priority over TxDMA is 2:1 + value: 1 + - name: ThreeToOne + description: RxDMA priority over TxDMA is 3:1 + value: 2 + - name: FourToOne + description: RxDMA priority over TxDMA is 4:1 + value: 3 enum/RA: bit_size: 1 variants: - - name: Disabled - description: MAC receiver passes on to the application only those frames that have passed the SA/DA address file - value: 0 - - name: Enabled - description: MAC receiver passes oll received frames on to the application - value: 1 + - name: Disabled + description: MAC receiver passes on to the application only those frames that have passed the SA/DA address file + value: 0 + - name: Enabled + description: MAC receiver passes oll received frames on to the application + value: 1 enum/RD: bit_size: 1 variants: - - name: Enabled - description: MAC attempts retries based on the settings of BL - value: 0 - - name: Disabled - description: MAC attempts only 1 transmission - value: 1 + - name: Enabled + description: MAC attempts retries based on the settings of BL + value: 0 + - name: Disabled + description: MAC attempts only 1 transmission + value: 1 enum/RDP: bit_size: 6 variants: - - name: RDP1 - description: 1 beat per RxDMA transaction - value: 1 - - name: RDP2 - description: 2 beats per RxDMA transaction - value: 2 - - name: RDP4 - description: 4 beats per RxDMA transaction - value: 4 - - name: RDP8 - description: 8 beats per RxDMA transaction - value: 8 - - name: RDP16 - description: 16 beats per RxDMA transaction - value: 16 - - name: RDP32 - description: 32 beats per RxDMA transaction - value: 32 + - name: RDP1 + description: 1 beat per RxDMA transaction + value: 1 + - name: RDP2 + description: 2 beats per RxDMA transaction + value: 2 + - name: RDP4 + description: 4 beats per RxDMA transaction + value: 4 + - name: RDP8 + description: 8 beats per RxDMA transaction + value: 8 + - name: RDP16 + description: 16 beats per RxDMA transaction + value: 16 + - name: RDP32 + description: 32 beats per RxDMA transaction + value: 32 enum/RFAEM: bit_size: 1 variants: - - name: Unmasked - description: Received-alignment-error counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-alignment-error counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-alignment-error counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-alignment-error counter half-full interrupt disabled + value: 1 enum/RFCE: bit_size: 1 variants: - - name: Disabled - description: Pause frames are not decoded - value: 0 - - name: Enabled - description: MAC decodes received Pause frames and disables its transmitted for a specified time - value: 1 + - name: Disabled + description: Pause frames are not decoded + value: 0 + - name: Enabled + description: MAC decodes received Pause frames and disables its transmitted for a specified time + value: 1 enum/RFCEM: bit_size: 1 variants: - - name: Unmasked - description: Received-crc-error counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-crc-error counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-crc-error counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-crc-error counter half-full interrupt disabled + value: 1 enum/RGUFM: bit_size: 1 variants: - - name: Unmasked - description: Received-good-unicast counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-good-unicast counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-good-unicast counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-good-unicast counter half-full interrupt disabled + value: 1 enum/ROD: bit_size: 1 variants: - - name: Enabled - description: MAC receives all packets from PHY while transmitting - value: 0 - - name: Disabled - description: MAC disables reception of frames in half-duplex mode - value: 1 + - name: Enabled + description: MAC receives all packets from PHY while transmitting + value: 0 + - name: Disabled + description: MAC disables reception of frames in half-duplex mode + value: 1 enum/ROR: bit_size: 1 variants: - - name: Disabled - description: MMC counters do not reset on read - value: 0 - - name: Enabled - description: MMC counters reset to zero after read - value: 1 + - name: Disabled + description: MMC counters do not reset on read + value: 0 + - name: Enabled + description: MMC counters reset to zero after read + value: 1 enum/RPD: bit_size: 32 variants: - - name: Poll - description: Poll the receive descriptor list - value: 0 + - name: Poll + description: Poll the receive descriptor list + value: 0 enum/RPS: bit_size: 3 variants: - - name: Stopped - description: "Stopped, reset or Stop Receive command issued" - value: 0 - - name: RunningFetching - description: "Running, fetching receive transfer descriptor" - value: 1 - - name: RunningWaiting - description: "Running, waiting for receive packet" - value: 3 - - name: Suspended - description: "Suspended, receive descriptor unavailable" - value: 4 - - name: RunningWriting - description: "Running, writing data to host memory buffer" - value: 7 + - name: Stopped + description: Stopped, reset or Stop Receive command issued + value: 0 + - name: RunningFetching + description: Running, fetching receive transfer descriptor + value: 1 + - name: RunningWaiting + description: Running, waiting for receive packet + value: 3 + - name: Suspended + description: Suspended, receive descriptor unavailable + value: 4 + - name: RunningWriting + description: Running, writing data to host memory buffer + value: 7 enum/RSF: bit_size: 1 variants: - - name: CutThrough - description: "Rx FIFO operates in cut-through mode, subject to RTC bits" - value: 0 - - name: StoreForward - description: Frames are read from Rx FIFO after complete frame has been written - value: 1 + - name: CutThrough + description: Rx FIFO operates in cut-through mode, subject to RTC bits + value: 0 + - name: StoreForward + description: Frames are read from Rx FIFO after complete frame has been written + value: 1 enum/RTC: bit_size: 2 variants: - - name: RTC64 - description: 64 bytes - value: 0 - - name: RTC32 - description: 32 bytes - value: 1 - - name: RTC96 - description: 96 bytes - value: 2 - - name: RTC128 - description: 128 bytes - value: 3 + - name: RTC64 + description: 64 bytes + value: 0 + - name: RTC32 + description: 32 bytes + value: 1 + - name: RTC96 + description: 96 bytes + value: 2 + - name: RTC128 + description: 128 bytes + value: 3 enum/SAF: bit_size: 1 variants: - - name: Disabled - description: Source address ignored - value: 0 - - name: Enabled - description: MAC drops frames that fail the source address filter - value: 1 + - name: Disabled + description: Source address ignored + value: 0 + - name: Enabled + description: MAC drops frames that fail the source address filter + value: 1 enum/SAIF: bit_size: 1 variants: - - name: Normal - description: Source address filter operates normally - value: 0 - - name: Invert - description: Source address filter operation inverted - value: 1 + - name: Normal + description: Source address filter operates normally + value: 0 + - name: Invert + description: Source address filter operation inverted + value: 1 enum/ST: bit_size: 1 variants: - - name: Stopped - description: Transmission is placed in the Stopped state - value: 0 - - name: Started - description: Transmission is placed in Running state - value: 1 + - name: Stopped + description: Transmission is placed in the Stopped state + value: 0 + - name: Started + description: Transmission is placed in Running state + value: 1 enum/TFCE: bit_size: 1 variants: - - name: Disabled - description: "In full duplex, flow control is disabled. In half duplex, back pressure is disabled" - value: 0 - - name: Enabled - description: "In full duplex, flow control is enabled. In half duplex, back pressure is enabled" - value: 1 + - name: Disabled + description: In full duplex, flow control is disabled. In half duplex, back pressure is disabled + value: 0 + - name: Enabled + description: In full duplex, flow control is enabled. In half duplex, back pressure is enabled + value: 1 enum/TGFM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good counter half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good counter half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good counter half-full interrupt disabled + value: 1 enum/TGFMSCM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good-multiple-collision half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good-multiple-collision half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good-multiple-collision half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good-multiple-collision half-full interrupt disabled + value: 1 enum/TGFSCM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good-single-collision half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good-single-collision half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good-single-collision half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good-single-collision half-full interrupt disabled + value: 1 enum/TPD: bit_size: 32 variants: - - name: Poll - description: Poll the transmit descriptor list - value: 0 + - name: Poll + description: Poll the transmit descriptor list + value: 0 enum/TPS: bit_size: 3 variants: - - name: Stopped - description: "Stopped, Reset or Stop Transmit command issued" - value: 0 - - name: RunningFetching - description: "Running, fetching transmit transfer descriptor" - value: 1 - - name: RunningWaiting - description: "Running, waiting for status" - value: 2 - - name: RunningReading - description: "Running, reading data from host memory buffer" - value: 3 - - name: Suspended - description: "Suspended, transmit descriptor unavailable or transmit buffer underflow" - value: 6 - - name: Running - description: "Running, closing transmit descriptor" - value: 7 + - name: Stopped + description: Stopped, Reset or Stop Transmit command issued + value: 0 + - name: RunningFetching + description: Running, fetching transmit transfer descriptor + value: 1 + - name: RunningWaiting + description: Running, waiting for status + value: 2 + - name: RunningReading + description: Running, reading data from host memory buffer + value: 3 + - name: Suspended + description: Suspended, transmit descriptor unavailable or transmit buffer underflow + value: 6 + - name: Running + description: Running, closing transmit descriptor + value: 7 enum/TSF: bit_size: 1 variants: - - name: CutThrough - description: Transmission starts when the frame size in the Tx FIFO exceeds TTC threshold - value: 0 - - name: StoreForward - description: Transmission starts when a full frame is in the Tx FIFO - value: 1 + - name: CutThrough + description: Transmission starts when the frame size in the Tx FIFO exceeds TTC threshold + value: 0 + - name: StoreForward + description: Transmission starts when a full frame is in the Tx FIFO + value: 1 enum/TSTIM: bit_size: 1 variants: - - name: Unmasked - description: Time stamp interrupt generation enabled - value: 0 - - name: Masked - description: Time stamp interrupt generation disabled - value: 1 + - name: Unmasked + description: Time stamp interrupt generation enabled + value: 0 + - name: Masked + description: Time stamp interrupt generation disabled + value: 1 enum/TTC: bit_size: 3 variants: - - name: TTC64 - description: 64 bytes - value: 0 - - name: TTC128 - description: 128 bytes - value: 1 - - name: TTC192 - description: 192 bytes - value: 2 - - name: TTC256 - description: 256 bytes - value: 3 - - name: TTC40 - description: 40 bytes - value: 4 - - name: TTC32 - description: 32 bytes - value: 5 - - name: TTC24 - description: 24 bytes - value: 6 - - name: TTC16 - description: 16 bytes - value: 7 + - name: TTC64 + description: 64 bytes + value: 0 + - name: TTC128 + description: 128 bytes + value: 1 + - name: TTC192 + description: 192 bytes + value: 2 + - name: TTC256 + description: 256 bytes + value: 3 + - name: TTC40 + description: 40 bytes + value: 4 + - name: TTC32 + description: 32 bytes + value: 5 + - name: TTC24 + description: 24 bytes + value: 6 + - name: TTC16 + description: 16 bytes + value: 7 enum/UPFD: bit_size: 1 variants: - - name: Disabled - description: MAC detects only a Pause frame with the multicast address specified in the 802.3x standard - value: 0 - - name: Enabled - description: "MAC additionally detects Pause frames with the station's unicast address" - value: 1 + - name: Disabled + description: MAC detects only a Pause frame with the multicast address specified in the 802.3x standard + value: 0 + - name: Enabled + description: MAC additionally detects Pause frames with the station's unicast address + value: 1 enum/USP: bit_size: 1 variants: - - name: Combined - description: PBL value used for both Rx and Tx DMA - value: 0 - - name: Separate - description: "RxDMA uses RDP value, TxDMA uses PBL value" - value: 1 + - name: Combined + description: PBL value used for both Rx and Tx DMA + value: 0 + - name: Separate + description: RxDMA uses RDP value, TxDMA uses PBL value + value: 1 enum/VLANTC: bit_size: 1 variants: - - name: VLANTC16 - description: Full 16 bit VLAN identifiers are used for comparison and filtering - value: 0 - - name: VLANTC12 - description: 12 bit VLAN identifies are used for comparison and filtering - value: 1 + - name: VLANTC16 + description: Full 16 bit VLAN identifiers are used for comparison and filtering + value: 0 + - name: VLANTC12 + description: 12 bit VLAN identifies are used for comparison and filtering + value: 1 enum/WD: bit_size: 1 variants: - - name: Enabled - description: "Watchdog enabled, receive frames limited to 2048 bytes" - value: 0 - - name: Disabled - description: "Watchdog disabled, receive frames may be up to to 16384 bytes" - value: 1 + - name: Enabled + description: Watchdog enabled, receive frames limited to 2048 bytes + value: 0 + - name: Disabled + description: Watchdog disabled, receive frames may be up to to 16384 bytes + value: 1 enum/WFE: bit_size: 1 variants: - - name: Disabled - description: No power management event generated due to wakeup frame reception - value: 0 - - name: Enabled - description: Enable generation of a power management event due to wakeup frame reception - value: 1 + - name: Disabled + description: No power management event generated due to wakeup frame reception + value: 0 + - name: Enabled + description: Enable generation of a power management event due to wakeup frame reception + value: 1 enum/WFFRPR: bit_size: 1 variants: - - name: Reset - description: Reset wakeup frame filter register point to 0b000. Automatically cleared - value: 1 + - name: Reset + description: Reset wakeup frame filter register point to 0b000. Automatically cleared + value: 1 enum/ZQPD: bit_size: 1 variants: - - name: Enabled - description: Normal operation with automatic zero-quanta pause control frame generation - value: 0 - - name: Disabled - description: Automatic generation of zero-quanta pause control frames is disabled - value: 1 + - name: Enabled + description: Normal operation with automatic zero-quanta pause control frame generation + value: 0 + - name: Disabled + description: Automatic generation of zero-quanta pause control frames is disabled + value: 1 diff --git a/data/registers/eth_v1c.yaml b/data/registers/eth_v1c.yaml index 3eda175..6267b0e 100644 --- a/data/registers/eth_v1c.yaml +++ b/data/registers/eth_v1c.yaml @@ -1,2196 +1,2195 @@ ---- block/ETH: description: Ethernet Peripheral items: - - name: ETHERNET_MAC - description: "Ethernet: media access control (MAC)" - byte_offset: 0 - block: ETHERNET_MAC - - name: ETHERNET_PTP - description: "Ethernet: Precision Time Protocol (PTP)" - byte_offset: 1792 - block: ETHERNET_PTP - - name: ETHERNET_DMA - description: "Ethernet: DMA mode register (DMA)" - byte_offset: 4096 - block: ETHERNET_DMA + - name: ETHERNET_MAC + description: 'Ethernet: media access control (MAC)' + byte_offset: 0 + block: ETHERNET_MAC + - name: ETHERNET_PTP + description: 'Ethernet: Precision Time Protocol (PTP)' + byte_offset: 1792 + block: ETHERNET_PTP + - name: ETHERNET_DMA + description: 'Ethernet: DMA mode register (DMA)' + byte_offset: 4096 + block: ETHERNET_DMA block/ETHERNET_DMA: - description: "Ethernet: DMA controller operation" + description: 'Ethernet: DMA controller operation' items: - - name: DMABMR - description: Ethernet DMA bus mode register - byte_offset: 0 - fieldset: DMABMR - - name: DMATPDR - description: Ethernet DMA transmit poll demand register - byte_offset: 4 - fieldset: DMATPDR - - name: DMARPDR - description: EHERNET DMA receive poll demand register - byte_offset: 8 - fieldset: DMARPDR - - name: DMARDLAR - description: Ethernet DMA receive descriptor list address register - byte_offset: 12 - fieldset: DMARDLAR - - name: DMATDLAR - description: Ethernet DMA transmit descriptor list address register - byte_offset: 16 - fieldset: DMATDLAR - - name: DMASR - description: Ethernet DMA status register - byte_offset: 20 - fieldset: DMASR - - name: DMAOMR - description: Ethernet DMA operation mode register - byte_offset: 24 - fieldset: DMAOMR - - name: DMAIER - description: Ethernet DMA interrupt enable register - byte_offset: 28 - fieldset: DMAIER - - name: DMAMFBOCR - description: Ethernet DMA missed frame and buffer overflow counter register - byte_offset: 32 - fieldset: DMAMFBOCR - - name: DMARSWTR - description: Ethernet DMA receive status watchdog timer register - byte_offset: 36 - fieldset: DMARSWTR - - name: DMACHTDR - description: Ethernet DMA current host transmit descriptor register - byte_offset: 72 - access: Read - fieldset: DMACHTDR - - name: DMACHRDR - description: Ethernet DMA current host receive descriptor register - byte_offset: 76 - access: Read - fieldset: DMACHRDR - - name: DMACHTBAR - description: Ethernet DMA current host transmit buffer address register - byte_offset: 80 - access: Read - fieldset: DMACHTBAR - - name: DMACHRBAR - description: Ethernet DMA current host receive buffer address register - byte_offset: 84 - access: Read - fieldset: DMACHRBAR + - name: DMABMR + description: Ethernet DMA bus mode register + byte_offset: 0 + fieldset: DMABMR + - name: DMATPDR + description: Ethernet DMA transmit poll demand register + byte_offset: 4 + fieldset: DMATPDR + - name: DMARPDR + description: EHERNET DMA receive poll demand register + byte_offset: 8 + fieldset: DMARPDR + - name: DMARDLAR + description: Ethernet DMA receive descriptor list address register + byte_offset: 12 + fieldset: DMARDLAR + - name: DMATDLAR + description: Ethernet DMA transmit descriptor list address register + byte_offset: 16 + fieldset: DMATDLAR + - name: DMASR + description: Ethernet DMA status register + byte_offset: 20 + fieldset: DMASR + - name: DMAOMR + description: Ethernet DMA operation mode register + byte_offset: 24 + fieldset: DMAOMR + - name: DMAIER + description: Ethernet DMA interrupt enable register + byte_offset: 28 + fieldset: DMAIER + - name: DMAMFBOCR + description: Ethernet DMA missed frame and buffer overflow counter register + byte_offset: 32 + fieldset: DMAMFBOCR + - name: DMARSWTR + description: Ethernet DMA receive status watchdog timer register + byte_offset: 36 + fieldset: DMARSWTR + - name: DMACHTDR + description: Ethernet DMA current host transmit descriptor register + byte_offset: 72 + access: Read + fieldset: DMACHTDR + - name: DMACHRDR + description: Ethernet DMA current host receive descriptor register + byte_offset: 76 + access: Read + fieldset: DMACHRDR + - name: DMACHTBAR + description: Ethernet DMA current host transmit buffer address register + byte_offset: 80 + access: Read + fieldset: DMACHTBAR + - name: DMACHRBAR + description: Ethernet DMA current host receive buffer address register + byte_offset: 84 + access: Read + fieldset: DMACHRBAR block/ETHERNET_MAC: - description: "Ethernet: media access control (MAC)" + description: 'Ethernet: media access control (MAC)' items: - - name: MACCR - description: Ethernet MAC configuration register - byte_offset: 0 - fieldset: MACCR - - name: MACFFR - description: Ethernet MAC frame filter register - byte_offset: 4 - fieldset: MACFFR - - name: MACHTHR - description: Ethernet MAC hash table high register - byte_offset: 8 - fieldset: MACHTHR - - name: MACHTLR - description: Ethernet MAC hash table low register - byte_offset: 12 - fieldset: MACHTLR - - name: MACMIIAR - description: Ethernet MAC MII address register - byte_offset: 16 - fieldset: MACMIIAR - - name: MACMIIDR - description: Ethernet MAC MII data register - byte_offset: 20 - fieldset: MACMIIDR - - name: MACFCR - description: Ethernet MAC flow control register - byte_offset: 24 - fieldset: MACFCR - - name: MACVLANTR - description: Ethernet MAC VLAN tag register - byte_offset: 28 - fieldset: MACVLANTR - - name: MACRWUFFR - description: Ethernet MAC remote wakeup frame filter register - byte_offset: 40 - - name: MACPMTCSR - description: Ethernet MAC PMT control and status register - byte_offset: 44 - fieldset: MACPMTCSR - - name: MACDBGR - description: Ethernet MAC debug register - byte_offset: 52 - access: Read - fieldset: MACDBGR - - name: MACSR - description: Ethernet MAC interrupt status register - byte_offset: 56 - fieldset: MACSR - - name: MACIMR - description: Ethernet MAC interrupt mask register - byte_offset: 60 - fieldset: MACIMR - - name: MACA0HR - description: Ethernet MAC address 0 high register - byte_offset: 64 - fieldset: MACA0HR - - name: MACA0LR - description: Ethernet MAC address 0 low register - byte_offset: 68 - fieldset: MACA0LR - - name: MACA1HR - description: Ethernet MAC address 1 high register - byte_offset: 72 - fieldset: MACA1HR - - name: MACA1LR - description: Ethernet MAC address1 low register - byte_offset: 76 - fieldset: MACA1LR - - name: MACA2HR - description: Ethernet MAC address 2 high register - byte_offset: 80 - fieldset: MACA2HR - - name: MACA2LR - description: Ethernet MAC address 2 low register - byte_offset: 84 - fieldset: MACA2LR - - name: MACA3HR - description: Ethernet MAC address 3 high register - byte_offset: 88 - fieldset: MACA3HR - - name: MACA3LR - description: Ethernet MAC address 3 low register - byte_offset: 92 - fieldset: MACA3LR - - name: MMCCR - description: Ethernet MMC control register - byte_offset: 256 - fieldset: MMCCR - - name: MMCRIR - description: Ethernet MMC receive interrupt register - byte_offset: 260 - fieldset: MMCRIR - - name: MMCTIR - description: Ethernet MMC transmit interrupt register - byte_offset: 264 - access: Read - fieldset: MMCTIR - - name: MMCRIMR - description: Ethernet MMC receive interrupt mask register - byte_offset: 268 - fieldset: MMCRIMR - - name: MMCTIMR - description: Ethernet MMC transmit interrupt mask register - byte_offset: 272 - fieldset: MMCTIMR - - name: MMCTGFSCCR - description: Ethernet MMC transmitted good frames after a single collision counter - byte_offset: 332 - access: Read - fieldset: MMCTGFSCCR - - name: MMCTGFMSCCR - description: Ethernet MMC transmitted good frames after more than a single collision - byte_offset: 336 - access: Read - fieldset: MMCTGFMSCCR - - name: MMCTGFCR - description: Ethernet MMC transmitted good frames counter register - byte_offset: 360 - access: Read - fieldset: MMCTGFCR - - name: MMCRFCECR - description: Ethernet MMC received frames with CRC error counter register - byte_offset: 404 - access: Read - fieldset: MMCRFCECR - - name: MMCRFAECR - description: Ethernet MMC received frames with alignment error counter register - byte_offset: 408 - access: Read - fieldset: MMCRFAECR - - name: MMCRGUFCR - description: MMC received good unicast frames counter register - byte_offset: 452 - access: Read - fieldset: MMCRGUFCR + - name: MACCR + description: Ethernet MAC configuration register + byte_offset: 0 + fieldset: MACCR + - name: MACFFR + description: Ethernet MAC frame filter register + byte_offset: 4 + fieldset: MACFFR + - name: MACHTHR + description: Ethernet MAC hash table high register + byte_offset: 8 + fieldset: MACHTHR + - name: MACHTLR + description: Ethernet MAC hash table low register + byte_offset: 12 + fieldset: MACHTLR + - name: MACMIIAR + description: Ethernet MAC MII address register + byte_offset: 16 + fieldset: MACMIIAR + - name: MACMIIDR + description: Ethernet MAC MII data register + byte_offset: 20 + fieldset: MACMIIDR + - name: MACFCR + description: Ethernet MAC flow control register + byte_offset: 24 + fieldset: MACFCR + - name: MACVLANTR + description: Ethernet MAC VLAN tag register + byte_offset: 28 + fieldset: MACVLANTR + - name: MACRWUFFR + description: Ethernet MAC remote wakeup frame filter register + byte_offset: 40 + - name: MACPMTCSR + description: Ethernet MAC PMT control and status register + byte_offset: 44 + fieldset: MACPMTCSR + - name: MACDBGR + description: Ethernet MAC debug register + byte_offset: 52 + access: Read + fieldset: MACDBGR + - name: MACSR + description: Ethernet MAC interrupt status register + byte_offset: 56 + fieldset: MACSR + - name: MACIMR + description: Ethernet MAC interrupt mask register + byte_offset: 60 + fieldset: MACIMR + - name: MACA0HR + description: Ethernet MAC address 0 high register + byte_offset: 64 + fieldset: MACA0HR + - name: MACA0LR + description: Ethernet MAC address 0 low register + byte_offset: 68 + fieldset: MACA0LR + - name: MACA1HR + description: Ethernet MAC address 1 high register + byte_offset: 72 + fieldset: MACA1HR + - name: MACA1LR + description: Ethernet MAC address1 low register + byte_offset: 76 + fieldset: MACA1LR + - name: MACA2HR + description: Ethernet MAC address 2 high register + byte_offset: 80 + fieldset: MACA2HR + - name: MACA2LR + description: Ethernet MAC address 2 low register + byte_offset: 84 + fieldset: MACA2LR + - name: MACA3HR + description: Ethernet MAC address 3 high register + byte_offset: 88 + fieldset: MACA3HR + - name: MACA3LR + description: Ethernet MAC address 3 low register + byte_offset: 92 + fieldset: MACA3LR + - name: MMCCR + description: Ethernet MMC control register + byte_offset: 256 + fieldset: MMCCR + - name: MMCRIR + description: Ethernet MMC receive interrupt register + byte_offset: 260 + fieldset: MMCRIR + - name: MMCTIR + description: Ethernet MMC transmit interrupt register + byte_offset: 264 + access: Read + fieldset: MMCTIR + - name: MMCRIMR + description: Ethernet MMC receive interrupt mask register + byte_offset: 268 + fieldset: MMCRIMR + - name: MMCTIMR + description: Ethernet MMC transmit interrupt mask register + byte_offset: 272 + fieldset: MMCTIMR + - name: MMCTGFSCCR + description: Ethernet MMC transmitted good frames after a single collision counter + byte_offset: 332 + access: Read + fieldset: MMCTGFSCCR + - name: MMCTGFMSCCR + description: Ethernet MMC transmitted good frames after more than a single collision + byte_offset: 336 + access: Read + fieldset: MMCTGFMSCCR + - name: MMCTGFCR + description: Ethernet MMC transmitted good frames counter register + byte_offset: 360 + access: Read + fieldset: MMCTGFCR + - name: MMCRFCECR + description: Ethernet MMC received frames with CRC error counter register + byte_offset: 404 + access: Read + fieldset: MMCRFCECR + - name: MMCRFAECR + description: Ethernet MMC received frames with alignment error counter register + byte_offset: 408 + access: Read + fieldset: MMCRFAECR + - name: MMCRGUFCR + description: MMC received good unicast frames counter register + byte_offset: 452 + access: Read + fieldset: MMCRGUFCR block/ETHERNET_PTP: - description: "Ethernet: Precision time protocol" + description: 'Ethernet: Precision time protocol' items: - - name: PTPTSCR - description: Ethernet PTP time stamp control register - byte_offset: 0 - fieldset: PTPTSCR - - name: PTPSSIR - description: Ethernet PTP subsecond increment register - byte_offset: 4 - fieldset: PTPSSIR - - name: PTPTSHR - description: Ethernet PTP time stamp high register - byte_offset: 8 - access: Read - fieldset: PTPTSHR - - name: PTPTSLR - description: Ethernet PTP time stamp low register - byte_offset: 12 - access: Read - fieldset: PTPTSLR - - name: PTPTSHUR - description: Ethernet PTP time stamp high update register - byte_offset: 16 - fieldset: PTPTSHUR - - name: PTPTSLUR - description: Ethernet PTP time stamp low update register - byte_offset: 20 - fieldset: PTPTSLUR - - name: PTPTSAR - description: Ethernet PTP time stamp addend register - byte_offset: 24 - fieldset: PTPTSAR - - name: PTPTTHR - description: Ethernet PTP target time high register - byte_offset: 28 - fieldset: PTPTTHR - - name: PTPTTLR - description: Ethernet PTP target time low register - byte_offset: 32 - fieldset: PTPTTLR - - name: PTPTSSR - description: Ethernet PTP time stamp status register - byte_offset: 40 - access: Read - fieldset: PTPTSSR - - name: PTPPPSCR - description: Ethernet PTP PPS control register - byte_offset: 44 - access: Read - fieldset: PTPPPSCR + - name: PTPTSCR + description: Ethernet PTP time stamp control register + byte_offset: 0 + fieldset: PTPTSCR + - name: PTPSSIR + description: Ethernet PTP subsecond increment register + byte_offset: 4 + fieldset: PTPSSIR + - name: PTPTSHR + description: Ethernet PTP time stamp high register + byte_offset: 8 + access: Read + fieldset: PTPTSHR + - name: PTPTSLR + description: Ethernet PTP time stamp low register + byte_offset: 12 + access: Read + fieldset: PTPTSLR + - name: PTPTSHUR + description: Ethernet PTP time stamp high update register + byte_offset: 16 + fieldset: PTPTSHUR + - name: PTPTSLUR + description: Ethernet PTP time stamp low update register + byte_offset: 20 + fieldset: PTPTSLUR + - name: PTPTSAR + description: Ethernet PTP time stamp addend register + byte_offset: 24 + fieldset: PTPTSAR + - name: PTPTTHR + description: Ethernet PTP target time high register + byte_offset: 28 + fieldset: PTPTTHR + - name: PTPTTLR + description: Ethernet PTP target time low register + byte_offset: 32 + fieldset: PTPTTLR + - name: PTPTSSR + description: Ethernet PTP time stamp status register + byte_offset: 40 + access: Read + fieldset: PTPTSSR + - name: PTPPPSCR + description: Ethernet PTP PPS control register + byte_offset: 44 + access: Read + fieldset: PTPPPSCR fieldset/DMABMR: description: Ethernet DMA bus mode register fields: - - name: SR - description: Software reset - bit_offset: 0 - bit_size: 1 - - name: DA - description: DMA arbitration - bit_offset: 1 - bit_size: 1 - enum: DA - - name: DSL - description: Descriptor skip length - bit_offset: 2 - bit_size: 5 - - name: EDFE - description: Enhanced descriptor format enable - bit_offset: 7 - bit_size: 1 - enum: EDFE - - name: PBL - description: Programmable burst length - bit_offset: 8 - bit_size: 6 - enum: PBL - - name: PM - description: Rx-Tx priority ratio - bit_offset: 14 - bit_size: 2 - enum: PriorityRxOverTx - - name: FB - description: Fixed burst - bit_offset: 16 - bit_size: 1 - enum: FB - - name: RDP - description: Rx DMA PBL - bit_offset: 17 - bit_size: 6 - enum: RDP - - name: USP - description: Use separate PBL - bit_offset: 23 - bit_size: 1 - enum: USP - - name: FPM - description: 4xPBL mode - bit_offset: 24 - bit_size: 1 - enum: FPM - - name: AAB - description: Address-aligned beats - bit_offset: 25 - bit_size: 1 - enum: AAB - - name: MB - description: Mixed burst - bit_offset: 26 - bit_size: 1 - enum: MB + - name: SR + description: Software reset + bit_offset: 0 + bit_size: 1 + - name: DA + description: DMA arbitration + bit_offset: 1 + bit_size: 1 + enum: DA + - name: DSL + description: Descriptor skip length + bit_offset: 2 + bit_size: 5 + - name: EDFE + description: Enhanced descriptor format enable + bit_offset: 7 + bit_size: 1 + enum: EDFE + - name: PBL + description: Programmable burst length + bit_offset: 8 + bit_size: 6 + enum: PBL + - name: PM + description: Rx-Tx priority ratio + bit_offset: 14 + bit_size: 2 + enum: PriorityRxOverTx + - name: FB + description: Fixed burst + bit_offset: 16 + bit_size: 1 + enum: FB + - name: RDP + description: Rx DMA PBL + bit_offset: 17 + bit_size: 6 + enum: RDP + - name: USP + description: Use separate PBL + bit_offset: 23 + bit_size: 1 + enum: USP + - name: FPM + description: 4xPBL mode + bit_offset: 24 + bit_size: 1 + enum: FPM + - name: AAB + description: Address-aligned beats + bit_offset: 25 + bit_size: 1 + enum: AAB + - name: MB + description: Mixed burst + bit_offset: 26 + bit_size: 1 + enum: MB fieldset/DMACHRBAR: description: Ethernet DMA current host receive buffer address register fields: - - name: HRBAP - description: Host receive buffer address pointer - bit_offset: 0 - bit_size: 32 + - name: HRBAP + description: Host receive buffer address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHRDR: description: Ethernet DMA current host receive descriptor register fields: - - name: HRDAP - description: Host receive descriptor address pointer - bit_offset: 0 - bit_size: 32 + - name: HRDAP + description: Host receive descriptor address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHTBAR: description: Ethernet DMA current host transmit buffer address register fields: - - name: HTBAP - description: Host transmit buffer address pointer - bit_offset: 0 - bit_size: 32 + - name: HTBAP + description: Host transmit buffer address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACHTDR: description: Ethernet DMA current host transmit descriptor register fields: - - name: HTDAP - description: Host transmit descriptor address pointer - bit_offset: 0 - bit_size: 32 + - name: HTDAP + description: Host transmit descriptor address pointer + bit_offset: 0 + bit_size: 32 fieldset/DMAIER: description: Ethernet DMA interrupt enable register fields: - - name: TIE - description: Transmit interrupt enable - bit_offset: 0 - bit_size: 1 - - name: TPSIE - description: Transmit process stopped interrupt enable - bit_offset: 1 - bit_size: 1 - - name: TBUIE - description: Transmit buffer unavailable interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TJTIE - description: Transmit jabber timeout interrupt enable - bit_offset: 3 - bit_size: 1 - - name: ROIE - description: Receive overflow interrupt enable - bit_offset: 4 - bit_size: 1 - - name: TUIE - description: Transmit underflow interrupt enable - bit_offset: 5 - bit_size: 1 - - name: RIE - description: Receive interrupt enable - bit_offset: 6 - bit_size: 1 - - name: RBUIE - description: Receive buffer unavailable interrupt enable - bit_offset: 7 - bit_size: 1 - - name: RPSIE - description: Receive process stopped interrupt enable - bit_offset: 8 - bit_size: 1 - - name: RWTIE - description: Receive watchdog timeout interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ETIE - description: Early transmit interrupt enable - bit_offset: 10 - bit_size: 1 - - name: FBEIE - description: Fatal bus error interrupt enable - bit_offset: 13 - bit_size: 1 - - name: ERIE - description: Early receive interrupt enable - bit_offset: 14 - bit_size: 1 - - name: AISE - description: Abnormal interrupt summary enable - bit_offset: 15 - bit_size: 1 - - name: NISE - description: Normal interrupt summary enable - bit_offset: 16 - bit_size: 1 + - name: TIE + description: Transmit interrupt enable + bit_offset: 0 + bit_size: 1 + - name: TPSIE + description: Transmit process stopped interrupt enable + bit_offset: 1 + bit_size: 1 + - name: TBUIE + description: Transmit buffer unavailable interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TJTIE + description: Transmit jabber timeout interrupt enable + bit_offset: 3 + bit_size: 1 + - name: ROIE + description: Receive overflow interrupt enable + bit_offset: 4 + bit_size: 1 + - name: TUIE + description: Transmit underflow interrupt enable + bit_offset: 5 + bit_size: 1 + - name: RIE + description: Receive interrupt enable + bit_offset: 6 + bit_size: 1 + - name: RBUIE + description: Receive buffer unavailable interrupt enable + bit_offset: 7 + bit_size: 1 + - name: RPSIE + description: Receive process stopped interrupt enable + bit_offset: 8 + bit_size: 1 + - name: RWTIE + description: Receive watchdog timeout interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ETIE + description: Early transmit interrupt enable + bit_offset: 10 + bit_size: 1 + - name: FBEIE + description: Fatal bus error interrupt enable + bit_offset: 13 + bit_size: 1 + - name: ERIE + description: Early receive interrupt enable + bit_offset: 14 + bit_size: 1 + - name: AISE + description: Abnormal interrupt summary enable + bit_offset: 15 + bit_size: 1 + - name: NISE + description: Normal interrupt summary enable + bit_offset: 16 + bit_size: 1 fieldset/DMAMFBOCR: description: Ethernet DMA missed frame and buffer overflow counter register fields: - - name: MFC - description: Missed frames by the controller - bit_offset: 0 - bit_size: 16 - - name: OMFC - description: Overflow bit for missed frame counter - bit_offset: 16 - bit_size: 1 - - name: MFA - description: Missed frames by the application - bit_offset: 17 - bit_size: 11 - - name: OFOC - description: Overflow bit for FIFO overflow counter - bit_offset: 28 - bit_size: 1 + - name: MFC + description: Missed frames by the controller + bit_offset: 0 + bit_size: 16 + - name: OMFC + description: Overflow bit for missed frame counter + bit_offset: 16 + bit_size: 1 + - name: MFA + description: Missed frames by the application + bit_offset: 17 + bit_size: 11 + - name: OFOC + description: Overflow bit for FIFO overflow counter + bit_offset: 28 + bit_size: 1 fieldset/DMAOMR: description: Ethernet DMA operation mode register fields: - - name: SR - description: Start/stop receive - bit_offset: 1 - bit_size: 1 - enum: DMAOMR_SR - - name: OSF - description: Operate on second frame - bit_offset: 2 - bit_size: 1 - - name: RTC - description: Receive threshold control - bit_offset: 3 - bit_size: 2 - enum: RTC - - name: FUGF - description: Forward undersized good frames - bit_offset: 6 - bit_size: 1 - enum: FUGF - - name: FEF - description: Forward error frames - bit_offset: 7 - bit_size: 1 - enum: FEF - - name: ST - description: Start/stop transmission - bit_offset: 13 - bit_size: 1 - enum: ST - - name: TTC - description: Transmit threshold control - bit_offset: 14 - bit_size: 3 - enum: TTC - - name: FTF - description: Flush transmit FIFO - bit_offset: 20 - bit_size: 1 - enum: FTF - - name: TSF - description: Transmit store and forward - bit_offset: 21 - bit_size: 1 - enum: TSF - - name: DFRF - description: Disable flushing of received frames - bit_offset: 24 - bit_size: 1 - - name: RSF - description: Receive store and forward - bit_offset: 25 - bit_size: 1 - enum: RSF - - name: DTCEFD - description: Dropping of TCP/IP checksum error frames disable - bit_offset: 26 - bit_size: 1 - enum: DTCEFD + - name: SR + description: Start/stop receive + bit_offset: 1 + bit_size: 1 + enum: DMAOMR_SR + - name: OSF + description: Operate on second frame + bit_offset: 2 + bit_size: 1 + - name: RTC + description: Receive threshold control + bit_offset: 3 + bit_size: 2 + enum: RTC + - name: FUGF + description: Forward undersized good frames + bit_offset: 6 + bit_size: 1 + enum: FUGF + - name: FEF + description: Forward error frames + bit_offset: 7 + bit_size: 1 + enum: FEF + - name: ST + description: Start/stop transmission + bit_offset: 13 + bit_size: 1 + enum: ST + - name: TTC + description: Transmit threshold control + bit_offset: 14 + bit_size: 3 + enum: TTC + - name: FTF + description: Flush transmit FIFO + bit_offset: 20 + bit_size: 1 + enum: FTF + - name: TSF + description: Transmit store and forward + bit_offset: 21 + bit_size: 1 + enum: TSF + - name: DFRF + description: Disable flushing of received frames + bit_offset: 24 + bit_size: 1 + - name: RSF + description: Receive store and forward + bit_offset: 25 + bit_size: 1 + enum: RSF + - name: DTCEFD + description: Dropping of TCP/IP checksum error frames disable + bit_offset: 26 + bit_size: 1 + enum: DTCEFD fieldset/DMARDLAR: description: Ethernet DMA receive descriptor list address register fields: - - name: SRL - description: Start of receive list - bit_offset: 0 - bit_size: 32 + - name: SRL + description: Start of receive list + bit_offset: 0 + bit_size: 32 fieldset/DMARPDR: description: EHERNET DMA receive poll demand register fields: - - name: RPD - description: Receive poll demand - bit_offset: 0 - bit_size: 32 - enum: RPD + - name: RPD + description: Receive poll demand + bit_offset: 0 + bit_size: 32 + enum: RPD fieldset/DMARSWTR: description: Ethernet DMA receive status watchdog timer register fields: - - name: RSWTC - description: Receive status watchdog timer count - bit_offset: 0 - bit_size: 8 + - name: RSWTC + description: Receive status watchdog timer count + bit_offset: 0 + bit_size: 8 fieldset/DMASR: description: Ethernet DMA status register fields: - - name: TS - description: Transmit status - bit_offset: 0 - bit_size: 1 - - name: TPSS - description: Transmit process stopped status - bit_offset: 1 - bit_size: 1 - - name: TBUS - description: Transmit buffer unavailable status - bit_offset: 2 - bit_size: 1 - - name: TJTS - description: Transmit jabber timeout status - bit_offset: 3 - bit_size: 1 - - name: ROS - description: Receive overflow status - bit_offset: 4 - bit_size: 1 - - name: TUS - description: Transmit underflow status - bit_offset: 5 - bit_size: 1 - - name: RS - description: Receive status - bit_offset: 6 - bit_size: 1 - - name: RBUS - description: Receive buffer unavailable status - bit_offset: 7 - bit_size: 1 - - name: RPSS - description: Receive process stopped status - bit_offset: 8 - bit_size: 1 - - name: PWTS - description: PWTS - bit_offset: 9 - bit_size: 1 - - name: ETS - description: Early transmit status - bit_offset: 10 - bit_size: 1 - - name: FBES - description: Fatal bus error status - bit_offset: 13 - bit_size: 1 - - name: ERS - description: Early receive status - bit_offset: 14 - bit_size: 1 - - name: AIS - description: Abnormal interrupt summary - bit_offset: 15 - bit_size: 1 - - name: NIS - description: Normal interrupt summary - bit_offset: 16 - bit_size: 1 - - name: RPS - description: Receive process state - bit_offset: 17 - bit_size: 3 - enum: RPS - - name: TPS - description: Transmit process state - bit_offset: 20 - bit_size: 3 - enum: TPS - - name: EBS - description: Error bits status - bit_offset: 23 - bit_size: 3 - - name: MMCS - description: MMC status - bit_offset: 27 - bit_size: 1 - - name: PMTS - description: PMT status - bit_offset: 28 - bit_size: 1 - - name: TSTS - description: Time stamp trigger status - bit_offset: 29 - bit_size: 1 + - name: TS + description: Transmit status + bit_offset: 0 + bit_size: 1 + - name: TPSS + description: Transmit process stopped status + bit_offset: 1 + bit_size: 1 + - name: TBUS + description: Transmit buffer unavailable status + bit_offset: 2 + bit_size: 1 + - name: TJTS + description: Transmit jabber timeout status + bit_offset: 3 + bit_size: 1 + - name: ROS + description: Receive overflow status + bit_offset: 4 + bit_size: 1 + - name: TUS + description: Transmit underflow status + bit_offset: 5 + bit_size: 1 + - name: RS + description: Receive status + bit_offset: 6 + bit_size: 1 + - name: RBUS + description: Receive buffer unavailable status + bit_offset: 7 + bit_size: 1 + - name: RPSS + description: Receive process stopped status + bit_offset: 8 + bit_size: 1 + - name: PWTS + description: PWTS + bit_offset: 9 + bit_size: 1 + - name: ETS + description: Early transmit status + bit_offset: 10 + bit_size: 1 + - name: FBES + description: Fatal bus error status + bit_offset: 13 + bit_size: 1 + - name: ERS + description: Early receive status + bit_offset: 14 + bit_size: 1 + - name: AIS + description: Abnormal interrupt summary + bit_offset: 15 + bit_size: 1 + - name: NIS + description: Normal interrupt summary + bit_offset: 16 + bit_size: 1 + - name: RPS + description: Receive process state + bit_offset: 17 + bit_size: 3 + enum: RPS + - name: TPS + description: Transmit process state + bit_offset: 20 + bit_size: 3 + enum: TPS + - name: EBS + description: Error bits status + bit_offset: 23 + bit_size: 3 + - name: MMCS + description: MMC status + bit_offset: 27 + bit_size: 1 + - name: PMTS + description: PMT status + bit_offset: 28 + bit_size: 1 + - name: TSTS + description: Time stamp trigger status + bit_offset: 29 + bit_size: 1 fieldset/DMATDLAR: description: Ethernet DMA transmit descriptor list address register fields: - - name: STL - description: Start of transmit list - bit_offset: 0 - bit_size: 32 + - name: STL + description: Start of transmit list + bit_offset: 0 + bit_size: 32 fieldset/DMATPDR: description: Ethernet DMA transmit poll demand register fields: - - name: TPD - description: Transmit poll demand - bit_offset: 0 - bit_size: 32 - enum: TPD + - name: TPD + description: Transmit poll demand + bit_offset: 0 + bit_size: 32 + enum: TPD fieldset/MACA0HR: description: Ethernet MAC address 0 high register fields: - - name: MACA0H - description: MAC address0 high - bit_offset: 0 - bit_size: 16 - - name: MO - description: Always 1 - bit_offset: 31 - bit_size: 1 + - name: MACA0H + description: MAC address0 high + bit_offset: 0 + bit_size: 16 + - name: MO + description: Always 1 + bit_offset: 31 + bit_size: 1 fieldset/MACA0LR: description: Ethernet MAC address 0 low register fields: - - name: MACA0L - description: "0" - bit_offset: 0 - bit_size: 32 + - name: MACA0L + description: '0' + bit_offset: 0 + bit_size: 32 fieldset/MACA1HR: description: Ethernet MAC address 1 high register fields: - - name: MACA1H - description: MACA1H - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA1H + description: MACA1H + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA1LR: description: Ethernet MAC address1 low register fields: - - name: MACA1L - description: MACA1LR - bit_offset: 0 - bit_size: 32 + - name: MACA1L + description: MACA1LR + bit_offset: 0 + bit_size: 32 fieldset/MACA2HR: description: Ethernet MAC address 2 high register fields: - - name: MACA2H - description: MAC2AH - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA2H + description: MAC2AH + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA2LR: description: Ethernet MAC address 2 low register fields: - - name: MACA2L - description: MACA2L - bit_offset: 0 - bit_size: 32 + - name: MACA2L + description: MACA2L + bit_offset: 0 + bit_size: 32 fieldset/MACA3HR: description: Ethernet MAC address 3 high register fields: - - name: MACA3H - description: MACA3H - bit_offset: 0 - bit_size: 16 - - name: MBC - description: MBC - bit_offset: 24 - bit_size: 6 - - name: SA - description: SA - bit_offset: 30 - bit_size: 1 - enum: MACAHR_SA - - name: AE - description: AE - bit_offset: 31 - bit_size: 1 - enum: MACAHR_AE + - name: MACA3H + description: MACA3H + bit_offset: 0 + bit_size: 16 + - name: MBC + description: MBC + bit_offset: 24 + bit_size: 6 + - name: SA + description: SA + bit_offset: 30 + bit_size: 1 + enum: MACAHR_SA + - name: AE + description: AE + bit_offset: 31 + bit_size: 1 + enum: MACAHR_AE fieldset/MACA3LR: description: Ethernet MAC address 3 low register fields: - - name: MACA3L - description: MBCA3L - bit_offset: 0 - bit_size: 32 + - name: MACA3L + description: MBCA3L + bit_offset: 0 + bit_size: 32 fieldset/MACCR: description: Ethernet MAC configuration register fields: - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: DC - description: Deferral check - bit_offset: 4 - bit_size: 1 - enum: DC - - name: BL - description: Back-off limit - bit_offset: 5 - bit_size: 2 - enum: BL - - name: APCS - description: Automatic pad/CRC stripping - bit_offset: 7 - bit_size: 1 - enum: APCS - - name: RD - description: Retry disable - bit_offset: 9 - bit_size: 1 - enum: RD - - name: IPCO - description: IPv4 checksum offload - bit_offset: 10 - bit_size: 1 - enum: IPCO - - name: DM - description: Duplex mode - bit_offset: 11 - bit_size: 1 - enum: DM - - name: LM - description: Loopback mode - bit_offset: 12 - bit_size: 1 - enum: LM - - name: ROD - description: Receive own disable - bit_offset: 13 - bit_size: 1 - enum: ROD - - name: FES - description: Fast Ethernet speed - bit_offset: 14 - bit_size: 1 - enum: FES - - name: CSD - description: Carrier sense disable - bit_offset: 16 - bit_size: 1 - enum: CSD - - name: IFG - description: Interframe gap - bit_offset: 17 - bit_size: 3 - enum: IFG - - name: JD - description: Jabber disable - bit_offset: 22 - bit_size: 1 - enum: JD - - name: WD - description: Watchdog disable - bit_offset: 23 - bit_size: 1 - enum: WD - - name: CSTF - description: CRC stripping for type frames - bit_offset: 25 - bit_size: 1 - enum: CSTF + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: DC + description: Deferral check + bit_offset: 4 + bit_size: 1 + enum: DC + - name: BL + description: Back-off limit + bit_offset: 5 + bit_size: 2 + enum: BL + - name: APCS + description: Automatic pad/CRC stripping + bit_offset: 7 + bit_size: 1 + enum: APCS + - name: RD + description: Retry disable + bit_offset: 9 + bit_size: 1 + enum: RD + - name: IPCO + description: IPv4 checksum offload + bit_offset: 10 + bit_size: 1 + enum: IPCO + - name: DM + description: Duplex mode + bit_offset: 11 + bit_size: 1 + enum: DM + - name: LM + description: Loopback mode + bit_offset: 12 + bit_size: 1 + enum: LM + - name: ROD + description: Receive own disable + bit_offset: 13 + bit_size: 1 + enum: ROD + - name: FES + description: Fast Ethernet speed + bit_offset: 14 + bit_size: 1 + enum: FES + - name: CSD + description: Carrier sense disable + bit_offset: 16 + bit_size: 1 + enum: CSD + - name: IFG + description: Interframe gap + bit_offset: 17 + bit_size: 3 + enum: IFG + - name: JD + description: Jabber disable + bit_offset: 22 + bit_size: 1 + enum: JD + - name: WD + description: Watchdog disable + bit_offset: 23 + bit_size: 1 + enum: WD + - name: CSTF + description: CRC stripping for type frames + bit_offset: 25 + bit_size: 1 + enum: CSTF fieldset/MACDBGR: description: Ethernet MAC debug register fields: - - name: MMRPEA - description: MAC MII receive protocol engine active - bit_offset: 0 - bit_size: 1 - - name: MSFRWCS - description: MAC small FIFO read/write controllers status - bit_offset: 1 - bit_size: 2 - - name: RFWRA - description: Rx FIFO write controller active - bit_offset: 4 - bit_size: 1 - - name: RFRCS - description: Rx FIFO read controller status - bit_offset: 5 - bit_size: 2 - - name: RFFL - description: Rx FIFO fill level - bit_offset: 8 - bit_size: 2 - - name: MMTEA - description: MAC MII transmit engine active - bit_offset: 16 - bit_size: 1 - - name: MTFCS - description: MAC transmit frame controller status - bit_offset: 17 - bit_size: 2 - - name: MTP - description: MAC transmitter in pause - bit_offset: 19 - bit_size: 1 - - name: TFRS - description: Tx FIFO read status - bit_offset: 20 - bit_size: 2 - - name: TFWA - description: Tx FIFO write active - bit_offset: 22 - bit_size: 1 - - name: TFNE - description: Tx FIFO not empty - bit_offset: 24 - bit_size: 1 - - name: TFF - description: Tx FIFO full - bit_offset: 25 - bit_size: 1 + - name: MMRPEA + description: MAC MII receive protocol engine active + bit_offset: 0 + bit_size: 1 + - name: MSFRWCS + description: MAC small FIFO read/write controllers status + bit_offset: 1 + bit_size: 2 + - name: RFWRA + description: Rx FIFO write controller active + bit_offset: 4 + bit_size: 1 + - name: RFRCS + description: Rx FIFO read controller status + bit_offset: 5 + bit_size: 2 + - name: RFFL + description: Rx FIFO fill level + bit_offset: 8 + bit_size: 2 + - name: MMTEA + description: MAC MII transmit engine active + bit_offset: 16 + bit_size: 1 + - name: MTFCS + description: MAC transmit frame controller status + bit_offset: 17 + bit_size: 2 + - name: MTP + description: MAC transmitter in pause + bit_offset: 19 + bit_size: 1 + - name: TFRS + description: Tx FIFO read status + bit_offset: 20 + bit_size: 2 + - name: TFWA + description: Tx FIFO write active + bit_offset: 22 + bit_size: 1 + - name: TFNE + description: Tx FIFO not empty + bit_offset: 24 + bit_size: 1 + - name: TFF + description: Tx FIFO full + bit_offset: 25 + bit_size: 1 fieldset/MACFCR: description: Ethernet MAC flow control register fields: - - name: FCB - description: Flow control busy/back pressure activate - bit_offset: 0 - bit_size: 1 - enum: FCB - - name: TFCE - description: Transmit flow control enable - bit_offset: 1 - bit_size: 1 - enum: TFCE - - name: RFCE - description: Receive flow control enable - bit_offset: 2 - bit_size: 1 - enum: RFCE - - name: UPFD - description: Unicast pause frame detect - bit_offset: 3 - bit_size: 1 - enum: UPFD - - name: PLT - description: Pause low threshold - bit_offset: 4 - bit_size: 2 - enum: PLT - - name: ZQPD - description: Zero-quanta pause disable - bit_offset: 7 - bit_size: 1 - enum: ZQPD - - name: PT - description: Pause time - bit_offset: 16 - bit_size: 16 + - name: FCB + description: Flow control busy/back pressure activate + bit_offset: 0 + bit_size: 1 + enum: FCB + - name: TFCE + description: Transmit flow control enable + bit_offset: 1 + bit_size: 1 + enum: TFCE + - name: RFCE + description: Receive flow control enable + bit_offset: 2 + bit_size: 1 + enum: RFCE + - name: UPFD + description: Unicast pause frame detect + bit_offset: 3 + bit_size: 1 + enum: UPFD + - name: PLT + description: Pause low threshold + bit_offset: 4 + bit_size: 2 + enum: PLT + - name: ZQPD + description: Zero-quanta pause disable + bit_offset: 7 + bit_size: 1 + enum: ZQPD + - name: PT + description: Pause time + bit_offset: 16 + bit_size: 16 fieldset/MACFFR: description: Ethernet MAC frame filter register fields: - - name: PM - description: Promiscuous mode - bit_offset: 0 - bit_size: 1 - enum: PM - - name: HU - description: Hash unicast - bit_offset: 1 - bit_size: 1 - enum: HU - - name: HM - description: Hash multicast - bit_offset: 2 - bit_size: 1 - enum: HM - - name: DAIF - description: Destination address unique filtering - bit_offset: 3 - bit_size: 1 - enum: DAIF - - name: PAM - description: Pass all multicast - bit_offset: 4 - bit_size: 1 - enum: PAM - - name: BFD - description: Broadcast frames disable - bit_offset: 5 - bit_size: 1 - enum: BFD - - name: PCF - description: Pass control frames - bit_offset: 6 - bit_size: 2 - enum: PCF - - name: SAIF - description: Source address inverse filtering - bit_offset: 7 - bit_size: 1 - enum: SAIF - - name: SAF - description: Source address filter - bit_offset: 8 - bit_size: 1 - enum: SAF - - name: HPF - description: Hash or perfect filter - bit_offset: 9 - bit_size: 1 - enum: HPF - - name: RA - description: Receive all - bit_offset: 31 - bit_size: 1 - enum: RA + - name: PM + description: Promiscuous mode + bit_offset: 0 + bit_size: 1 + enum: PM + - name: HU + description: Hash unicast + bit_offset: 1 + bit_size: 1 + enum: HU + - name: HM + description: Hash multicast + bit_offset: 2 + bit_size: 1 + enum: HM + - name: DAIF + description: Destination address unique filtering + bit_offset: 3 + bit_size: 1 + enum: DAIF + - name: PAM + description: Pass all multicast + bit_offset: 4 + bit_size: 1 + enum: PAM + - name: BFD + description: Broadcast frames disable + bit_offset: 5 + bit_size: 1 + enum: BFD + - name: PCF + description: Pass control frames + bit_offset: 6 + bit_size: 2 + enum: PCF + - name: SAIF + description: Source address inverse filtering + bit_offset: 7 + bit_size: 1 + enum: SAIF + - name: SAF + description: Source address filter + bit_offset: 8 + bit_size: 1 + enum: SAF + - name: HPF + description: Hash or perfect filter + bit_offset: 9 + bit_size: 1 + enum: HPF + - name: RA + description: Receive all + bit_offset: 31 + bit_size: 1 + enum: RA fieldset/MACHTHR: description: Ethernet MAC hash table high register fields: - - name: HTH - description: Upper 32 bits of hash table - bit_offset: 0 - bit_size: 32 + - name: HTH + description: Upper 32 bits of hash table + bit_offset: 0 + bit_size: 32 fieldset/MACHTLR: description: Ethernet MAC hash table low register fields: - - name: HTL - description: Lower 32 bits of hash table - bit_offset: 0 - bit_size: 32 + - name: HTL + description: Lower 32 bits of hash table + bit_offset: 0 + bit_size: 32 fieldset/MACIMR: description: Ethernet MAC interrupt mask register fields: - - name: PMTIM - description: PMT interrupt mask - bit_offset: 3 - bit_size: 1 - enum: PMTIM - - name: TSTIM - description: Time stamp trigger interrupt mask - bit_offset: 9 - bit_size: 1 - enum: TSTIM + - name: PMTIM + description: PMT interrupt mask + bit_offset: 3 + bit_size: 1 + enum: PMTIM + - name: TSTIM + description: Time stamp trigger interrupt mask + bit_offset: 9 + bit_size: 1 + enum: TSTIM fieldset/MACMIIAR: description: Ethernet MAC MII address register fields: - - name: MB - description: MII busy - bit_offset: 0 - bit_size: 1 - enum: MB_progress - - name: MW - description: MII write - bit_offset: 1 - bit_size: 1 - enum: MW - - name: CR - description: Clock range - bit_offset: 2 - bit_size: 3 - enum: CR - - name: MR - description: MII register - select the desired MII register in the PHY device - bit_offset: 6 - bit_size: 5 - - name: PA - description: PHY address - select which of possible 32 PHYs is being accessed - bit_offset: 11 - bit_size: 5 + - name: MB + description: MII busy + bit_offset: 0 + bit_size: 1 + enum: MB_progress + - name: MW + description: MII write + bit_offset: 1 + bit_size: 1 + enum: MW + - name: CR + description: Clock range + bit_offset: 2 + bit_size: 3 + enum: CR + - name: MR + description: MII register - select the desired MII register in the PHY device + bit_offset: 6 + bit_size: 5 + - name: PA + description: PHY address - select which of possible 32 PHYs is being accessed + bit_offset: 11 + bit_size: 5 fieldset/MACMIIDR: description: Ethernet MAC MII data register fields: - - name: MD - description: MII data read from/written to the PHY - bit_offset: 0 - bit_size: 16 + - name: MD + description: MII data read from/written to the PHY + bit_offset: 0 + bit_size: 16 fieldset/MACPMTCSR: description: Ethernet MAC PMT control and status register fields: - - name: PD - description: Power down - bit_offset: 0 - bit_size: 1 - enum: PD - - name: MPE - description: Magic packet enable - bit_offset: 1 - bit_size: 1 - enum: MPE - - name: WFE - description: Wakeup frame enable - bit_offset: 2 - bit_size: 1 - enum: WFE - - name: MPR - description: Magic packet received - bit_offset: 5 - bit_size: 1 - - name: WFR - description: Wakeup frame received - bit_offset: 6 - bit_size: 1 - - name: GU - description: Global unicast - bit_offset: 9 - bit_size: 1 - enum: GU - - name: WFFRPR - description: Wakeup frame filter register pointer reset - bit_offset: 31 - bit_size: 1 - enum: WFFRPR + - name: PD + description: Power down + bit_offset: 0 + bit_size: 1 + enum: PD + - name: MPE + description: Magic packet enable + bit_offset: 1 + bit_size: 1 + enum: MPE + - name: WFE + description: Wakeup frame enable + bit_offset: 2 + bit_size: 1 + enum: WFE + - name: MPR + description: Magic packet received + bit_offset: 5 + bit_size: 1 + - name: WFR + description: Wakeup frame received + bit_offset: 6 + bit_size: 1 + - name: GU + description: Global unicast + bit_offset: 9 + bit_size: 1 + enum: GU + - name: WFFRPR + description: Wakeup frame filter register pointer reset + bit_offset: 31 + bit_size: 1 + enum: WFFRPR fieldset/MACSR: description: Ethernet MAC interrupt status register fields: - - name: PMTS - description: PMT status - bit_offset: 3 - bit_size: 1 - - name: MMCS - description: MMC status - bit_offset: 4 - bit_size: 1 - - name: MMCRS - description: MMC receive status - bit_offset: 5 - bit_size: 1 - - name: MMCTS - description: MMC transmit status - bit_offset: 6 - bit_size: 1 - - name: TSTS - description: Time stamp trigger status - bit_offset: 9 - bit_size: 1 + - name: PMTS + description: PMT status + bit_offset: 3 + bit_size: 1 + - name: MMCS + description: MMC status + bit_offset: 4 + bit_size: 1 + - name: MMCRS + description: MMC receive status + bit_offset: 5 + bit_size: 1 + - name: MMCTS + description: MMC transmit status + bit_offset: 6 + bit_size: 1 + - name: TSTS + description: Time stamp trigger status + bit_offset: 9 + bit_size: 1 fieldset/MACVLANTR: description: Ethernet MAC VLAN tag register fields: - - name: VLANTI - description: VLAN tag identifier (for receive frames) - bit_offset: 0 - bit_size: 16 - - name: VLANTC - description: 12-bit VLAN tag comparison - bit_offset: 16 - bit_size: 1 - enum: VLANTC + - name: VLANTI + description: VLAN tag identifier (for receive frames) + bit_offset: 0 + bit_size: 16 + - name: VLANTC + description: 12-bit VLAN tag comparison + bit_offset: 16 + bit_size: 1 + enum: VLANTC fieldset/MMCCR: description: Ethernet MMC control register fields: - - name: CR - description: Counter reset - bit_offset: 0 - bit_size: 1 - enum: CounterReset - - name: CSR - description: Counter stop rollover - bit_offset: 1 - bit_size: 1 - enum: CSR - - name: ROR - description: Reset on read - bit_offset: 2 - bit_size: 1 - enum: ROR - - name: MCF - description: MMC counter freeze - bit_offset: 3 - bit_size: 1 - enum: MCF - - name: MCP - description: MMC counter preset - bit_offset: 4 - bit_size: 1 - enum: MCP - - name: MCFHP - description: MMC counter Full-Half preset - bit_offset: 5 - bit_size: 1 - enum: MCFHP + - name: CR + description: Counter reset + bit_offset: 0 + bit_size: 1 + enum: CounterReset + - name: CSR + description: Counter stop rollover + bit_offset: 1 + bit_size: 1 + enum: CSR + - name: ROR + description: Reset on read + bit_offset: 2 + bit_size: 1 + enum: ROR + - name: MCF + description: MMC counter freeze + bit_offset: 3 + bit_size: 1 + enum: MCF + - name: MCP + description: MMC counter preset + bit_offset: 4 + bit_size: 1 + enum: MCP + - name: MCFHP + description: MMC counter Full-Half preset + bit_offset: 5 + bit_size: 1 + enum: MCFHP fieldset/MMCRFAECR: description: Ethernet MMC received frames with alignment error counter register fields: - - name: RFAEC - description: RFAEC - bit_offset: 0 - bit_size: 32 + - name: RFAEC + description: RFAEC + bit_offset: 0 + bit_size: 32 fieldset/MMCRFCECR: description: Ethernet MMC received frames with CRC error counter register fields: - - name: RFCFC - description: RFCFC - bit_offset: 0 - bit_size: 32 + - name: RFCFC + description: RFCFC + bit_offset: 0 + bit_size: 32 fieldset/MMCRGUFCR: description: MMC received good unicast frames counter register fields: - - name: RGUFC - description: RGUFC - bit_offset: 0 - bit_size: 32 + - name: RGUFC + description: RGUFC + bit_offset: 0 + bit_size: 32 fieldset/MMCRIMR: description: Ethernet MMC receive interrupt mask register fields: - - name: RFCEM - description: Received frame CRC error mask - bit_offset: 5 - bit_size: 1 - enum: RFCEM - - name: RFAEM - description: Received frames alignment error mask - bit_offset: 6 - bit_size: 1 - enum: RFAEM - - name: RGUFM - description: Received good Unicast frames mask - bit_offset: 17 - bit_size: 1 - enum: RGUFM + - name: RFCEM + description: Received frame CRC error mask + bit_offset: 5 + bit_size: 1 + enum: RFCEM + - name: RFAEM + description: Received frames alignment error mask + bit_offset: 6 + bit_size: 1 + enum: RFAEM + - name: RGUFM + description: Received good Unicast frames mask + bit_offset: 17 + bit_size: 1 + enum: RGUFM fieldset/MMCRIR: description: Ethernet MMC receive interrupt register fields: - - name: RFCES - description: Received frames CRC error status - bit_offset: 5 - bit_size: 1 - - name: RFAES - description: Received frames alignment error status - bit_offset: 6 - bit_size: 1 - - name: RGUFS - description: Received good Unicast frames status - bit_offset: 17 - bit_size: 1 + - name: RFCES + description: Received frames CRC error status + bit_offset: 5 + bit_size: 1 + - name: RFAES + description: Received frames alignment error status + bit_offset: 6 + bit_size: 1 + - name: RGUFS + description: Received good Unicast frames status + bit_offset: 17 + bit_size: 1 fieldset/MMCTGFCR: description: Ethernet MMC transmitted good frames counter register fields: - - name: TGFC - description: HTL - bit_offset: 0 - bit_size: 32 + - name: TGFC + description: HTL + bit_offset: 0 + bit_size: 32 fieldset/MMCTGFMSCCR: description: Ethernet MMC transmitted good frames after more than a single collision fields: - - name: TGFMSCC - description: TGFMSCC - bit_offset: 0 - bit_size: 32 + - name: TGFMSCC + description: TGFMSCC + bit_offset: 0 + bit_size: 32 fieldset/MMCTGFSCCR: description: Ethernet MMC transmitted good frames after a single collision counter fields: - - name: TGFSCC - description: Transmitted good frames single collision counter - bit_offset: 0 - bit_size: 32 + - name: TGFSCC + description: Transmitted good frames single collision counter + bit_offset: 0 + bit_size: 32 fieldset/MMCTIMR: description: Ethernet MMC transmit interrupt mask register fields: - - name: TGFSCM - description: Transmitted good frames single collision mask - bit_offset: 14 - bit_size: 1 - enum: TGFSCM - - name: TGFMSCM - description: Transmitted good frames more than single collision mask - bit_offset: 15 - bit_size: 1 - enum: TGFMSCM - - name: TGFM - description: Transmitted good frames mask - bit_offset: 16 - bit_size: 1 - enum: TGFM + - name: TGFSCM + description: Transmitted good frames single collision mask + bit_offset: 14 + bit_size: 1 + enum: TGFSCM + - name: TGFMSCM + description: Transmitted good frames more than single collision mask + bit_offset: 15 + bit_size: 1 + enum: TGFMSCM + - name: TGFM + description: Transmitted good frames mask + bit_offset: 16 + bit_size: 1 + enum: TGFM fieldset/MMCTIR: description: Ethernet MMC transmit interrupt register fields: - - name: TGFSCS - description: Transmitted good frames single collision status - bit_offset: 14 - bit_size: 1 - - name: TGFMSCS - description: Transmitted good frames more than single collision status - bit_offset: 15 - bit_size: 1 - - name: TGFS - description: Transmitted good frames status - bit_offset: 21 - bit_size: 1 + - name: TGFSCS + description: Transmitted good frames single collision status + bit_offset: 14 + bit_size: 1 + - name: TGFMSCS + description: Transmitted good frames more than single collision status + bit_offset: 15 + bit_size: 1 + - name: TGFS + description: Transmitted good frames status + bit_offset: 21 + bit_size: 1 fieldset/PTPPPSCR: description: Ethernet PTP PPS control register fields: - - name: TSSO - description: TSSO - bit_offset: 0 - bit_size: 1 - - name: TSTTR - description: TSTTR - bit_offset: 1 - bit_size: 1 + - name: TSSO + description: TSSO + bit_offset: 0 + bit_size: 1 + - name: TSTTR + description: TSTTR + bit_offset: 1 + bit_size: 1 fieldset/PTPSSIR: description: Ethernet PTP subsecond increment register fields: - - name: STSSI - description: STSSI - bit_offset: 0 - bit_size: 8 + - name: STSSI + description: STSSI + bit_offset: 0 + bit_size: 8 fieldset/PTPTSAR: description: Ethernet PTP time stamp addend register fields: - - name: TSA - description: TSA - bit_offset: 0 - bit_size: 32 + - name: TSA + description: TSA + bit_offset: 0 + bit_size: 32 fieldset/PTPTSCR: description: Ethernet PTP time stamp control register fields: - - name: TSE - description: TSE - bit_offset: 0 - bit_size: 1 - - name: TSFCU - description: TSFCU - bit_offset: 1 - bit_size: 1 - - name: TSSTI - description: TSSTI - bit_offset: 2 - bit_size: 1 - - name: TSSTU - description: TSSTU - bit_offset: 3 - bit_size: 1 - - name: TSITE - description: TSITE - bit_offset: 4 - bit_size: 1 - - name: TTSARU - description: TTSARU - bit_offset: 5 - bit_size: 1 - - name: TSSARFE - description: TSSARFE - bit_offset: 8 - bit_size: 1 - - name: TSSSR - description: TSSSR - bit_offset: 9 - bit_size: 1 - - name: TSPTPPSV2E - description: TSPTPPSV2E - bit_offset: 10 - bit_size: 1 - - name: TSSPTPOEFE - description: TSSPTPOEFE - bit_offset: 11 - bit_size: 1 - - name: TSSIPV6FE - description: TSSIPV6FE - bit_offset: 12 - bit_size: 1 - - name: TSSIPV4FE - description: TSSIPV4FE - bit_offset: 13 - bit_size: 1 - - name: TSSEME - description: TSSEME - bit_offset: 14 - bit_size: 1 - - name: TSSMRME - description: TSSMRME - bit_offset: 15 - bit_size: 1 - - name: TSCNT - description: TSCNT - bit_offset: 16 - bit_size: 2 - - name: TSPFFMAE - description: TSPFFMAE - bit_offset: 18 - bit_size: 1 + - name: TSE + description: TSE + bit_offset: 0 + bit_size: 1 + - name: TSFCU + description: TSFCU + bit_offset: 1 + bit_size: 1 + - name: TSSTI + description: TSSTI + bit_offset: 2 + bit_size: 1 + - name: TSSTU + description: TSSTU + bit_offset: 3 + bit_size: 1 + - name: TSITE + description: TSITE + bit_offset: 4 + bit_size: 1 + - name: TTSARU + description: TTSARU + bit_offset: 5 + bit_size: 1 + - name: TSSARFE + description: TSSARFE + bit_offset: 8 + bit_size: 1 + - name: TSSSR + description: TSSSR + bit_offset: 9 + bit_size: 1 + - name: TSPTPPSV2E + description: TSPTPPSV2E + bit_offset: 10 + bit_size: 1 + - name: TSSPTPOEFE + description: TSSPTPOEFE + bit_offset: 11 + bit_size: 1 + - name: TSSIPV6FE + description: TSSIPV6FE + bit_offset: 12 + bit_size: 1 + - name: TSSIPV4FE + description: TSSIPV4FE + bit_offset: 13 + bit_size: 1 + - name: TSSEME + description: TSSEME + bit_offset: 14 + bit_size: 1 + - name: TSSMRME + description: TSSMRME + bit_offset: 15 + bit_size: 1 + - name: TSCNT + description: TSCNT + bit_offset: 16 + bit_size: 2 + - name: TSPFFMAE + description: TSPFFMAE + bit_offset: 18 + bit_size: 1 fieldset/PTPTSHR: description: Ethernet PTP time stamp high register fields: - - name: STS - description: STS - bit_offset: 0 - bit_size: 32 + - name: STS + description: STS + bit_offset: 0 + bit_size: 32 fieldset/PTPTSHUR: description: Ethernet PTP time stamp high update register fields: - - name: TSUS - description: TSUS - bit_offset: 0 - bit_size: 32 + - name: TSUS + description: TSUS + bit_offset: 0 + bit_size: 32 fieldset/PTPTSLR: description: Ethernet PTP time stamp low register fields: - - name: STSS - description: STSS - bit_offset: 0 - bit_size: 31 - - name: STPNS - description: STPNS - bit_offset: 31 - bit_size: 1 + - name: STSS + description: STSS + bit_offset: 0 + bit_size: 31 + - name: STPNS + description: STPNS + bit_offset: 31 + bit_size: 1 fieldset/PTPTSLUR: description: Ethernet PTP time stamp low update register fields: - - name: TSUSS - description: TSUSS - bit_offset: 0 - bit_size: 31 - - name: TSUPNS - description: TSUPNS - bit_offset: 31 - bit_size: 1 + - name: TSUSS + description: TSUSS + bit_offset: 0 + bit_size: 31 + - name: TSUPNS + description: TSUPNS + bit_offset: 31 + bit_size: 1 fieldset/PTPTSSR: description: Ethernet PTP time stamp status register fields: - - name: TSSO - description: TSSO - bit_offset: 0 - bit_size: 1 - - name: TSTTR - description: TSSO - bit_offset: 1 - bit_size: 1 + - name: TSSO + description: TSSO + bit_offset: 0 + bit_size: 1 + - name: TSTTR + description: TSSO + bit_offset: 1 + bit_size: 1 fieldset/PTPTTHR: description: Ethernet PTP target time high register fields: - - name: TTSH - description: "0" - bit_offset: 0 - bit_size: 32 + - name: TTSH + description: '0' + bit_offset: 0 + bit_size: 32 fieldset/PTPTTLR: description: Ethernet PTP target time low register fields: - - name: TTSL - description: TTSL - bit_offset: 0 - bit_size: 32 + - name: TTSL + description: TTSL + bit_offset: 0 + bit_size: 32 enum/AAB: bit_size: 1 variants: - - name: Unaligned - description: Bursts are not aligned - value: 0 - - name: Aligned - description: Align bursts to start address LS bits. First burst alignment depends on FB bit - value: 1 + - name: Unaligned + description: Bursts are not aligned + value: 0 + - name: Aligned + description: Align bursts to start address LS bits. First burst alignment depends on FB bit + value: 1 enum/APCS: bit_size: 1 variants: - - name: Disabled - description: MAC passes all incoming frames unmodified - value: 0 - - name: Strip - description: MAC strips the Pad/FCS field on incoming frames only for lengths less than or equal to 1500 bytes - value: 1 + - name: Disabled + description: MAC passes all incoming frames unmodified + value: 0 + - name: Strip + description: MAC strips the Pad/FCS field on incoming frames only for lengths less than or equal to 1500 bytes + value: 1 enum/BFD: bit_size: 1 variants: - - name: Enabled - description: Address filters pass all received broadcast frames - value: 0 - - name: Disabled - description: Address filters filter all incoming broadcast frames - value: 1 + - name: Enabled + description: Address filters pass all received broadcast frames + value: 0 + - name: Disabled + description: Address filters filter all incoming broadcast frames + value: 1 enum/BL: bit_size: 2 variants: - - name: BL10 - description: "For retransmission n, wait up to 2^min(n, 10) time slots" - value: 0 - - name: BL8 - description: "For retransmission n, wait up to 2^min(n, 8) time slots" - value: 1 - - name: BL4 - description: "For retransmission n, wait up to 2^min(n, 4) time slots" - value: 2 - - name: BL1 - description: "For retransmission n, wait up to 2^min(n, 1) time slots" - value: 3 + - name: BL10 + description: For retransmission n, wait up to 2^min(n, 10) time slots + value: 0 + - name: BL8 + description: For retransmission n, wait up to 2^min(n, 8) time slots + value: 1 + - name: BL4 + description: For retransmission n, wait up to 2^min(n, 4) time slots + value: 2 + - name: BL1 + description: For retransmission n, wait up to 2^min(n, 1) time slots + value: 3 enum/CR: bit_size: 3 variants: - - name: CR_60_100 - description: 60-100MHz HCLK/42 - value: 0 - - name: CR_100_150 - description: 100-150 MHz HCLK/62 - value: 1 - - name: CR_20_35 - description: 20-35MHz HCLK/16 - value: 2 - - name: CR_35_60 - description: 35-60MHz HCLK/16 - value: 3 - - name: CR_150_168 - description: 150-168MHz HCLK/102 - value: 4 + - name: CR_60_100 + description: 60-100MHz HCLK/42 + value: 0 + - name: CR_100_150 + description: 100-150 MHz HCLK/62 + value: 1 + - name: CR_20_35 + description: 20-35MHz HCLK/16 + value: 2 + - name: CR_35_60 + description: 35-60MHz HCLK/16 + value: 3 + - name: CR_150_168 + description: 150-168MHz HCLK/102 + value: 4 enum/CSD: bit_size: 1 variants: - - name: Enabled - description: Errors generated due to loss of carrier - value: 0 - - name: Disabled - description: No error generated due to loss of carrier - value: 1 + - name: Enabled + description: Errors generated due to loss of carrier + value: 0 + - name: Disabled + description: No error generated due to loss of carrier + value: 1 enum/CSR: bit_size: 1 variants: - - name: Disabled - description: Counters roll over to zero after reaching the maximum value - value: 0 - - name: Enabled - description: Counters do not roll over to zero after reaching the maximum value - value: 1 + - name: Disabled + description: Counters roll over to zero after reaching the maximum value + value: 0 + - name: Enabled + description: Counters do not roll over to zero after reaching the maximum value + value: 1 enum/CSTF: bit_size: 1 variants: - - name: Disabled - description: CRC not stripped - value: 0 - - name: Enabled - description: CRC stripped - value: 1 + - name: Disabled + description: CRC not stripped + value: 0 + - name: Enabled + description: CRC stripped + value: 1 enum/CounterReset: bit_size: 1 variants: - - name: Reset - description: Reset all counters. Cleared automatically - value: 1 + - name: Reset + description: Reset all counters. Cleared automatically + value: 1 enum/DA: bit_size: 1 variants: - - name: RoundRobin - description: "Round-robin with Rx:Tx priority given by PM" - value: 0 - - name: RxPriority - description: Rx has priority over Tx - value: 1 + - name: RoundRobin + description: Round-robin with Rx:Tx priority given by PM + value: 0 + - name: RxPriority + description: Rx has priority over Tx + value: 1 enum/DAIF: bit_size: 1 variants: - - name: Normal - description: Normal filtering of frames - value: 0 - - name: Invert - description: Address check block operates in inverse filtering mode for the DA address comparison - value: 1 + - name: Normal + description: Normal filtering of frames + value: 0 + - name: Invert + description: Address check block operates in inverse filtering mode for the DA address comparison + value: 1 enum/DC: bit_size: 1 variants: - - name: Disabled - description: MAC defers until CRS signal goes inactive - value: 0 - - name: Enabled - description: Deferral check function enabled - value: 1 + - name: Disabled + description: MAC defers until CRS signal goes inactive + value: 0 + - name: Enabled + description: Deferral check function enabled + value: 1 enum/DM: bit_size: 1 variants: - - name: HalfDuplex - description: MAC operates in half-duplex mode - value: 0 - - name: FullDuplex - description: MAC operates in full-duplex mode - value: 1 + - name: HalfDuplex + description: MAC operates in half-duplex mode + value: 0 + - name: FullDuplex + description: MAC operates in full-duplex mode + value: 1 enum/DMAOMR_SR: bit_size: 1 variants: - - name: Stopped - description: Reception is stopped after transfer of the current frame - value: 0 - - name: Started - description: Reception is placed in the Running state - value: 1 + - name: Stopped + description: Reception is stopped after transfer of the current frame + value: 0 + - name: Started + description: Reception is placed in the Running state + value: 1 enum/DTCEFD: bit_size: 1 variants: - - name: Enabled - description: Drop frames with errors only in the receive checksum offload engine - value: 0 - - name: Disabled - description: Do not drop frames that only have errors in the receive checksum offload engine - value: 1 + - name: Enabled + description: Drop frames with errors only in the receive checksum offload engine + value: 0 + - name: Disabled + description: Do not drop frames that only have errors in the receive checksum offload engine + value: 1 enum/EDFE: bit_size: 1 variants: - - name: Disabled - description: Normal descriptor format - value: 0 - - name: Enabled - description: "Enhanced 32-byte descriptor format, required for timestamping and IPv4 checksum offload" - value: 1 + - name: Disabled + description: Normal descriptor format + value: 0 + - name: Enabled + description: Enhanced 32-byte descriptor format, required for timestamping and IPv4 checksum offload + value: 1 enum/FB: bit_size: 1 variants: - - name: Variable - description: AHB uses SINGLE and INCR burst transfers - value: 0 - - name: Fixed - description: AHB uses only fixed burst transfers - value: 1 + - name: Variable + description: AHB uses SINGLE and INCR burst transfers + value: 0 + - name: Fixed + description: AHB uses only fixed burst transfers + value: 1 enum/FCB: bit_size: 1 variants: - - name: DisableBackPressure - description: "In half duplex only, deasserts back pressure" - value: 0 - - name: PauseOrBackPressure - description: "In full duplex, initiate a Pause control frame. In half duplex, assert back pressure" - value: 1 + - name: DisableBackPressure + description: In half duplex only, deasserts back pressure + value: 0 + - name: PauseOrBackPressure + description: In full duplex, initiate a Pause control frame. In half duplex, assert back pressure + value: 1 enum/FEF: bit_size: 1 variants: - - name: Drop - description: Rx FIFO drops frames with error status - value: 0 - - name: Forward - description: All frames except runt error frames are forwarded to the DMA - value: 1 + - name: Drop + description: Rx FIFO drops frames with error status + value: 0 + - name: Forward + description: All frames except runt error frames are forwarded to the DMA + value: 1 enum/FES: bit_size: 1 variants: - - name: FES10 - description: 10 Mbit/s - value: 0 - - name: FES100 - description: 100 Mbit/s - value: 1 + - name: FES10 + description: 10 Mbit/s + value: 0 + - name: FES100 + description: 100 Mbit/s + value: 1 enum/FPM: bit_size: 1 variants: - - name: x1 - description: PBL values used as-is - value: 0 - - name: x4 - description: PBL values multiplied by 4 - value: 1 + - name: x1 + description: PBL values used as-is + value: 0 + - name: x4 + description: PBL values multiplied by 4 + value: 1 enum/FTF: bit_size: 1 variants: - - name: Flush - description: Transmit FIFO controller logic is reset to its default values. Cleared automatically - value: 1 + - name: Flush + description: Transmit FIFO controller logic is reset to its default values. Cleared automatically + value: 1 enum/FUGF: bit_size: 1 variants: - - name: Drop - description: Rx FIFO drops all frames of less than 64 bytes - value: 0 - - name: Forward - description: Rx FIFO forwards undersized frames - value: 1 + - name: Drop + description: Rx FIFO drops all frames of less than 64 bytes + value: 0 + - name: Forward + description: Rx FIFO forwards undersized frames + value: 1 enum/GU: bit_size: 1 variants: - - name: Disabled - description: Normal operation - value: 0 - - name: Enabled - description: Any unicast packet filtered by the MAC address recognition may be a wakeup frame - value: 1 + - name: Disabled + description: Normal operation + value: 0 + - name: Enabled + description: Any unicast packet filtered by the MAC address recognition may be a wakeup frame + value: 1 enum/HM: bit_size: 1 variants: - - name: Perfect - description: MAC performs a perfect destination address filtering for multicast frames - value: 0 - - name: Hash - description: MAC performs destination address filtering of received multicast frames according to the hash table - value: 1 + - name: Perfect + description: MAC performs a perfect destination address filtering for multicast frames + value: 0 + - name: Hash + description: MAC performs destination address filtering of received multicast frames according to the hash table + value: 1 enum/HPF: bit_size: 1 variants: - - name: HashOnly - description: "If HM or HU is set, only frames that match the Hash filter are passed" - value: 0 - - name: HashOrPerfect - description: "If HM or HU is set, frames that match either the perfect filter or the hash filter are passed" - value: 1 + - name: HashOnly + description: If HM or HU is set, only frames that match the Hash filter are passed + value: 0 + - name: HashOrPerfect + description: If HM or HU is set, frames that match either the perfect filter or the hash filter are passed + value: 1 enum/HU: bit_size: 1 variants: - - name: Perfect - description: MAC performs a perfect destination address filtering for unicast frames - value: 0 - - name: Hash - description: MAC performs destination address filtering of received unicast frames according to the hash table - value: 1 + - name: Perfect + description: MAC performs a perfect destination address filtering for unicast frames + value: 0 + - name: Hash + description: MAC performs destination address filtering of received unicast frames according to the hash table + value: 1 enum/IFG: bit_size: 3 variants: - - name: IFG96 - description: 96 bit times - value: 0 - - name: IFG88 - description: 88 bit times - value: 1 - - name: IFG80 - description: 80 bit times - value: 2 - - name: IFG72 - description: 72 bit times - value: 3 - - name: IFG64 - description: 64 bit times - value: 4 - - name: IFG56 - description: 56 bit times - value: 5 - - name: IFG48 - description: 48 bit times - value: 6 - - name: IFG40 - description: 40 bit times - value: 7 + - name: IFG96 + description: 96 bit times + value: 0 + - name: IFG88 + description: 88 bit times + value: 1 + - name: IFG80 + description: 80 bit times + value: 2 + - name: IFG72 + description: 72 bit times + value: 3 + - name: IFG64 + description: 64 bit times + value: 4 + - name: IFG56 + description: 56 bit times + value: 5 + - name: IFG48 + description: 48 bit times + value: 6 + - name: IFG40 + description: 40 bit times + value: 7 enum/IPCO: bit_size: 1 variants: - - name: Disabled - description: IPv4 checksum offload disabled - value: 0 - - name: Offload - description: IPv4 checksums are checked in received frames - value: 1 + - name: Disabled + description: IPv4 checksum offload disabled + value: 0 + - name: Offload + description: IPv4 checksums are checked in received frames + value: 1 enum/JD: bit_size: 1 variants: - - name: Enabled - description: "Jabber enabled, transmit frames up to 2048 bytes" - value: 0 - - name: Disabled - description: "Jabber disabled, transmit frames up to 16384 bytes" - value: 1 + - name: Enabled + description: Jabber enabled, transmit frames up to 2048 bytes + value: 0 + - name: Disabled + description: Jabber disabled, transmit frames up to 16384 bytes + value: 1 enum/LM: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: Loopback - description: MAC operates in loopback mode at the MII - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: Loopback + description: MAC operates in loopback mode at the MII + value: 1 enum/MACAHR_AE: bit_size: 1 variants: - - name: Disabled - description: Address filters ignore this address - value: 0 - - name: Enabled - description: Address filters use this address - value: 1 + - name: Disabled + description: Address filters ignore this address + value: 0 + - name: Enabled + description: Address filters use this address + value: 1 enum/MACAHR_SA: bit_size: 1 variants: - - name: Destination - description: This address is used for comparison with DA fields of the received frame - value: 0 - - name: Source - description: This address is used for comparison with SA fields of received frames - value: 1 + - name: Destination + description: This address is used for comparison with DA fields of the received frame + value: 0 + - name: Source + description: This address is used for comparison with SA fields of received frames + value: 1 enum/MB: bit_size: 1 variants: - - name: Normal - description: Fixed burst transfers (INCRx and SINGLE) for burst lengths of 16 and below - value: 0 - - name: Mixed - description: "If FB is low, start all bursts greater than 16 with INCR (undefined burst)" - value: 1 + - name: Normal + description: Fixed burst transfers (INCRx and SINGLE) for burst lengths of 16 and below + value: 0 + - name: Mixed + description: If FB is low, start all bursts greater than 16 with INCR (undefined burst) + value: 1 enum/MB_progress: bit_size: 1 variants: - - name: Busy - description: This bit is set to 1 by the application to indicate that a read or write access is in progress - value: 1 + - name: Busy + description: This bit is set to 1 by the application to indicate that a read or write access is in progress + value: 1 enum/MCF: bit_size: 1 variants: - - name: Unfrozen - description: All MMC counters update normally - value: 0 - - name: Frozen - description: All MMC counters frozen to their current value - value: 1 + - name: Unfrozen + description: All MMC counters update normally + value: 0 + - name: Frozen + description: All MMC counters frozen to their current value + value: 1 enum/MCFHP: bit_size: 1 variants: - - name: AlmostHalf - description: "When MCP is set, MMC counters are preset to almost-half value 0x7FFF_FFF0" - value: 0 - - name: AlmostFull - description: "When MCP is set, MMC counters are preset to almost-full value 0xFFFF_FFF0" - value: 1 + - name: AlmostHalf + description: When MCP is set, MMC counters are preset to almost-half value 0x7FFF_FFF0 + value: 0 + - name: AlmostFull + description: When MCP is set, MMC counters are preset to almost-full value 0xFFFF_FFF0 + value: 1 enum/MCP: bit_size: 1 variants: - - name: Preset - description: MMC counters will be preset to almost full or almost half. Cleared automatically - value: 1 + - name: Preset + description: MMC counters will be preset to almost full or almost half. Cleared automatically + value: 1 enum/MPE: bit_size: 1 variants: - - name: Disabled - description: No power management event generated due to Magic Packet reception - value: 0 - - name: Enabled - description: Enable generation of a power management event due to Magic Packet reception - value: 1 + - name: Disabled + description: No power management event generated due to Magic Packet reception + value: 0 + - name: Enabled + description: Enable generation of a power management event due to Magic Packet reception + value: 1 enum/MW: bit_size: 1 variants: - - name: Read - description: Read operation - value: 0 - - name: Write - description: Write operation - value: 1 + - name: Read + description: Read operation + value: 0 + - name: Write + description: Write operation + value: 1 enum/PAM: bit_size: 1 variants: - - name: Disabled - description: Filtering of multicast frames depends on HM - value: 0 - - name: Enabled - description: All received frames with a multicast destination address are passed - value: 1 + - name: Disabled + description: Filtering of multicast frames depends on HM + value: 0 + - name: Enabled + description: All received frames with a multicast destination address are passed + value: 1 enum/PBL: bit_size: 6 variants: - - name: PBL1 - description: Maximum of 1 beat per DMA transaction - value: 1 - - name: PBL2 - description: Maximum of 2 beats per DMA transaction - value: 2 - - name: PBL4 - description: Maximum of 4 beats per DMA transaction - value: 4 - - name: PBL8 - description: Maximum of 8 beats per DMA transaction - value: 8 - - name: PBL16 - description: Maximum of 16 beats per DMA transaction - value: 16 - - name: PBL32 - description: Maximum of 32 beats per DMA transaction - value: 32 + - name: PBL1 + description: Maximum of 1 beat per DMA transaction + value: 1 + - name: PBL2 + description: Maximum of 2 beats per DMA transaction + value: 2 + - name: PBL4 + description: Maximum of 4 beats per DMA transaction + value: 4 + - name: PBL8 + description: Maximum of 8 beats per DMA transaction + value: 8 + - name: PBL16 + description: Maximum of 16 beats per DMA transaction + value: 16 + - name: PBL32 + description: Maximum of 32 beats per DMA transaction + value: 32 enum/PCF: bit_size: 2 variants: - - name: PreventAll - description: MAC prevents all control frames from reaching the application - value: 0 - - name: ForwardAllExceptPause - description: MAC forwards all control frames to application except Pause - value: 1 - - name: ForwardAll - description: MAC forwards all control frames to application even if they fail the address filter - value: 2 - - name: ForwardAllFiltered - description: MAC forwards control frames that pass the address filter - value: 3 + - name: PreventAll + description: MAC prevents all control frames from reaching the application + value: 0 + - name: ForwardAllExceptPause + description: MAC forwards all control frames to application except Pause + value: 1 + - name: ForwardAll + description: MAC forwards all control frames to application even if they fail the address filter + value: 2 + - name: ForwardAllFiltered + description: MAC forwards control frames that pass the address filter + value: 3 enum/PD: bit_size: 1 variants: - - name: Enabled - description: All received frames will be dropped. Cleared automatically when a magic packet or wakeup frame is received - value: 1 + - name: Enabled + description: All received frames will be dropped. Cleared automatically when a magic packet or wakeup frame is received + value: 1 enum/PLT: bit_size: 2 variants: - - name: PLT4 - description: Pause time minus 4 slot times - value: 0 - - name: PLT28 - description: Pause time minus 28 slot times - value: 1 - - name: PLT144 - description: Pause time minus 144 slot times - value: 2 - - name: PLT256 - description: Pause time minus 256 slot times - value: 3 + - name: PLT4 + description: Pause time minus 4 slot times + value: 0 + - name: PLT28 + description: Pause time minus 28 slot times + value: 1 + - name: PLT144 + description: Pause time minus 144 slot times + value: 2 + - name: PLT256 + description: Pause time minus 256 slot times + value: 3 enum/PM: bit_size: 1 variants: - - name: Disabled - description: Normal address filtering - value: 0 - - name: Enabled - description: Address filters pass all incoming frames regardless of their destination or source address - value: 1 + - name: Disabled + description: Normal address filtering + value: 0 + - name: Enabled + description: Address filters pass all incoming frames regardless of their destination or source address + value: 1 enum/PMTIM: bit_size: 1 variants: - - name: Unmasked - description: PMT Status interrupt generation enabled - value: 0 - - name: Masked - description: PMT Status interrupt generation disabled - value: 1 + - name: Unmasked + description: PMT Status interrupt generation enabled + value: 0 + - name: Masked + description: PMT Status interrupt generation disabled + value: 1 enum/PriorityRxOverTx: bit_size: 2 variants: - - name: OneToOne - description: "RxDMA priority over TxDMA is 1:1" - value: 0 - - name: TwoToOne - description: "RxDMA priority over TxDMA is 2:1" - value: 1 - - name: ThreeToOne - description: "RxDMA priority over TxDMA is 3:1" - value: 2 - - name: FourToOne - description: "RxDMA priority over TxDMA is 4:1" - value: 3 + - name: OneToOne + description: RxDMA priority over TxDMA is 1:1 + value: 0 + - name: TwoToOne + description: RxDMA priority over TxDMA is 2:1 + value: 1 + - name: ThreeToOne + description: RxDMA priority over TxDMA is 3:1 + value: 2 + - name: FourToOne + description: RxDMA priority over TxDMA is 4:1 + value: 3 enum/RA: bit_size: 1 variants: - - name: Disabled - description: MAC receiver passes on to the application only those frames that have passed the SA/DA address file - value: 0 - - name: Enabled - description: MAC receiver passes oll received frames on to the application - value: 1 + - name: Disabled + description: MAC receiver passes on to the application only those frames that have passed the SA/DA address file + value: 0 + - name: Enabled + description: MAC receiver passes oll received frames on to the application + value: 1 enum/RD: bit_size: 1 variants: - - name: Enabled - description: MAC attempts retries based on the settings of BL - value: 0 - - name: Disabled - description: MAC attempts only 1 transmission - value: 1 + - name: Enabled + description: MAC attempts retries based on the settings of BL + value: 0 + - name: Disabled + description: MAC attempts only 1 transmission + value: 1 enum/RDP: bit_size: 6 variants: - - name: RDP1 - description: 1 beat per RxDMA transaction - value: 1 - - name: RDP2 - description: 2 beats per RxDMA transaction - value: 2 - - name: RDP4 - description: 4 beats per RxDMA transaction - value: 4 - - name: RDP8 - description: 8 beats per RxDMA transaction - value: 8 - - name: RDP16 - description: 16 beats per RxDMA transaction - value: 16 - - name: RDP32 - description: 32 beats per RxDMA transaction - value: 32 + - name: RDP1 + description: 1 beat per RxDMA transaction + value: 1 + - name: RDP2 + description: 2 beats per RxDMA transaction + value: 2 + - name: RDP4 + description: 4 beats per RxDMA transaction + value: 4 + - name: RDP8 + description: 8 beats per RxDMA transaction + value: 8 + - name: RDP16 + description: 16 beats per RxDMA transaction + value: 16 + - name: RDP32 + description: 32 beats per RxDMA transaction + value: 32 enum/RFAEM: bit_size: 1 variants: - - name: Unmasked - description: Received-alignment-error counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-alignment-error counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-alignment-error counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-alignment-error counter half-full interrupt disabled + value: 1 enum/RFCE: bit_size: 1 variants: - - name: Disabled - description: Pause frames are not decoded - value: 0 - - name: Enabled - description: MAC decodes received Pause frames and disables its transmitted for a specified time - value: 1 + - name: Disabled + description: Pause frames are not decoded + value: 0 + - name: Enabled + description: MAC decodes received Pause frames and disables its transmitted for a specified time + value: 1 enum/RFCEM: bit_size: 1 variants: - - name: Unmasked - description: Received-crc-error counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-crc-error counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-crc-error counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-crc-error counter half-full interrupt disabled + value: 1 enum/RGUFM: bit_size: 1 variants: - - name: Unmasked - description: Received-good-unicast counter half-full interrupt enabled - value: 0 - - name: Masked - description: Received-good-unicast counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Received-good-unicast counter half-full interrupt enabled + value: 0 + - name: Masked + description: Received-good-unicast counter half-full interrupt disabled + value: 1 enum/ROD: bit_size: 1 variants: - - name: Enabled - description: MAC receives all packets from PHY while transmitting - value: 0 - - name: Disabled - description: MAC disables reception of frames in half-duplex mode - value: 1 + - name: Enabled + description: MAC receives all packets from PHY while transmitting + value: 0 + - name: Disabled + description: MAC disables reception of frames in half-duplex mode + value: 1 enum/ROR: bit_size: 1 variants: - - name: Disabled - description: MMC counters do not reset on read - value: 0 - - name: Enabled - description: MMC counters reset to zero after read - value: 1 + - name: Disabled + description: MMC counters do not reset on read + value: 0 + - name: Enabled + description: MMC counters reset to zero after read + value: 1 enum/RPD: bit_size: 32 variants: - - name: Poll - description: Poll the receive descriptor list - value: 0 + - name: Poll + description: Poll the receive descriptor list + value: 0 enum/RPS: bit_size: 3 variants: - - name: Stopped - description: "Stopped, reset or Stop Receive command issued" - value: 0 - - name: RunningFetching - description: "Running, fetching receive transfer descriptor" - value: 1 - - name: RunningWaiting - description: "Running, waiting for receive packet" - value: 3 - - name: Suspended - description: "Suspended, receive descriptor unavailable" - value: 4 - - name: RunningWriting - description: "Running, writing data to host memory buffer" - value: 7 + - name: Stopped + description: Stopped, reset or Stop Receive command issued + value: 0 + - name: RunningFetching + description: Running, fetching receive transfer descriptor + value: 1 + - name: RunningWaiting + description: Running, waiting for receive packet + value: 3 + - name: Suspended + description: Suspended, receive descriptor unavailable + value: 4 + - name: RunningWriting + description: Running, writing data to host memory buffer + value: 7 enum/RSF: bit_size: 1 variants: - - name: CutThrough - description: "Rx FIFO operates in cut-through mode, subject to RTC bits" - value: 0 - - name: StoreForward - description: Frames are read from Rx FIFO after complete frame has been written - value: 1 + - name: CutThrough + description: Rx FIFO operates in cut-through mode, subject to RTC bits + value: 0 + - name: StoreForward + description: Frames are read from Rx FIFO after complete frame has been written + value: 1 enum/RTC: bit_size: 2 variants: - - name: RTC64 - description: 64 bytes - value: 0 - - name: RTC32 - description: 32 bytes - value: 1 - - name: RTC96 - description: 96 bytes - value: 2 - - name: RTC128 - description: 128 bytes - value: 3 + - name: RTC64 + description: 64 bytes + value: 0 + - name: RTC32 + description: 32 bytes + value: 1 + - name: RTC96 + description: 96 bytes + value: 2 + - name: RTC128 + description: 128 bytes + value: 3 enum/SAF: bit_size: 1 variants: - - name: Disabled - description: Source address ignored - value: 0 - - name: Enabled - description: MAC drops frames that fail the source address filter - value: 1 + - name: Disabled + description: Source address ignored + value: 0 + - name: Enabled + description: MAC drops frames that fail the source address filter + value: 1 enum/SAIF: bit_size: 1 variants: - - name: Normal - description: Source address filter operates normally - value: 0 - - name: Invert - description: Source address filter operation inverted - value: 1 + - name: Normal + description: Source address filter operates normally + value: 0 + - name: Invert + description: Source address filter operation inverted + value: 1 enum/ST: bit_size: 1 variants: - - name: Stopped - description: Transmission is placed in the Stopped state - value: 0 - - name: Started - description: Transmission is placed in Running state - value: 1 + - name: Stopped + description: Transmission is placed in the Stopped state + value: 0 + - name: Started + description: Transmission is placed in Running state + value: 1 enum/TFCE: bit_size: 1 variants: - - name: Disabled - description: "In full duplex, flow control is disabled. In half duplex, back pressure is disabled" - value: 0 - - name: Enabled - description: "In full duplex, flow control is enabled. In half duplex, back pressure is enabled" - value: 1 + - name: Disabled + description: In full duplex, flow control is disabled. In half duplex, back pressure is disabled + value: 0 + - name: Enabled + description: In full duplex, flow control is enabled. In half duplex, back pressure is enabled + value: 1 enum/TGFM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good counter half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good counter half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good counter half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good counter half-full interrupt disabled + value: 1 enum/TGFMSCM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good-multiple-collision half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good-multiple-collision half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good-multiple-collision half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good-multiple-collision half-full interrupt disabled + value: 1 enum/TGFSCM: bit_size: 1 variants: - - name: Unmasked - description: Transmitted-good-single-collision half-full interrupt enabled - value: 0 - - name: Masked - description: Transmitted-good-single-collision half-full interrupt disabled - value: 1 + - name: Unmasked + description: Transmitted-good-single-collision half-full interrupt enabled + value: 0 + - name: Masked + description: Transmitted-good-single-collision half-full interrupt disabled + value: 1 enum/TPD: bit_size: 32 variants: - - name: Poll - description: Poll the transmit descriptor list - value: 0 + - name: Poll + description: Poll the transmit descriptor list + value: 0 enum/TPS: bit_size: 3 variants: - - name: Stopped - description: "Stopped, Reset or Stop Transmit command issued" - value: 0 - - name: RunningFetching - description: "Running, fetching transmit transfer descriptor" - value: 1 - - name: RunningWaiting - description: "Running, waiting for status" - value: 2 - - name: RunningReading - description: "Running, reading data from host memory buffer" - value: 3 - - name: Suspended - description: "Suspended, transmit descriptor unavailable or transmit buffer underflow" - value: 6 - - name: Running - description: "Running, closing transmit descriptor" - value: 7 + - name: Stopped + description: Stopped, Reset or Stop Transmit command issued + value: 0 + - name: RunningFetching + description: Running, fetching transmit transfer descriptor + value: 1 + - name: RunningWaiting + description: Running, waiting for status + value: 2 + - name: RunningReading + description: Running, reading data from host memory buffer + value: 3 + - name: Suspended + description: Suspended, transmit descriptor unavailable or transmit buffer underflow + value: 6 + - name: Running + description: Running, closing transmit descriptor + value: 7 enum/TSF: bit_size: 1 variants: - - name: CutThrough - description: Transmission starts when the frame size in the Tx FIFO exceeds TTC threshold - value: 0 - - name: StoreForward - description: Transmission starts when a full frame is in the Tx FIFO - value: 1 + - name: CutThrough + description: Transmission starts when the frame size in the Tx FIFO exceeds TTC threshold + value: 0 + - name: StoreForward + description: Transmission starts when a full frame is in the Tx FIFO + value: 1 enum/TSTIM: bit_size: 1 variants: - - name: Unmasked - description: Time stamp interrupt generation enabled - value: 0 - - name: Masked - description: Time stamp interrupt generation disabled - value: 1 + - name: Unmasked + description: Time stamp interrupt generation enabled + value: 0 + - name: Masked + description: Time stamp interrupt generation disabled + value: 1 enum/TTC: bit_size: 3 variants: - - name: TTC64 - description: 64 bytes - value: 0 - - name: TTC128 - description: 128 bytes - value: 1 - - name: TTC192 - description: 192 bytes - value: 2 - - name: TTC256 - description: 256 bytes - value: 3 - - name: TTC40 - description: 40 bytes - value: 4 - - name: TTC32 - description: 32 bytes - value: 5 - - name: TTC24 - description: 24 bytes - value: 6 - - name: TTC16 - description: 16 bytes - value: 7 + - name: TTC64 + description: 64 bytes + value: 0 + - name: TTC128 + description: 128 bytes + value: 1 + - name: TTC192 + description: 192 bytes + value: 2 + - name: TTC256 + description: 256 bytes + value: 3 + - name: TTC40 + description: 40 bytes + value: 4 + - name: TTC32 + description: 32 bytes + value: 5 + - name: TTC24 + description: 24 bytes + value: 6 + - name: TTC16 + description: 16 bytes + value: 7 enum/UPFD: bit_size: 1 variants: - - name: Disabled - description: MAC detects only a Pause frame with the multicast address specified in the 802.3x standard - value: 0 - - name: Enabled - description: "MAC additionally detects Pause frames with the station's unicast address" - value: 1 + - name: Disabled + description: MAC detects only a Pause frame with the multicast address specified in the 802.3x standard + value: 0 + - name: Enabled + description: MAC additionally detects Pause frames with the station's unicast address + value: 1 enum/USP: bit_size: 1 variants: - - name: Combined - description: PBL value used for both Rx and Tx DMA - value: 0 - - name: Separate - description: "RxDMA uses RDP value, TxDMA uses PBL value" - value: 1 + - name: Combined + description: PBL value used for both Rx and Tx DMA + value: 0 + - name: Separate + description: RxDMA uses RDP value, TxDMA uses PBL value + value: 1 enum/VLANTC: bit_size: 1 variants: - - name: VLANTC16 - description: Full 16 bit VLAN identifiers are used for comparison and filtering - value: 0 - - name: VLANTC12 - description: 12 bit VLAN identifies are used for comparison and filtering - value: 1 + - name: VLANTC16 + description: Full 16 bit VLAN identifiers are used for comparison and filtering + value: 0 + - name: VLANTC12 + description: 12 bit VLAN identifies are used for comparison and filtering + value: 1 enum/WD: bit_size: 1 variants: - - name: Enabled - description: "Watchdog enabled, receive frames limited to 2048 bytes" - value: 0 - - name: Disabled - description: "Watchdog disabled, receive frames may be up to to 16384 bytes" - value: 1 + - name: Enabled + description: Watchdog enabled, receive frames limited to 2048 bytes + value: 0 + - name: Disabled + description: Watchdog disabled, receive frames may be up to to 16384 bytes + value: 1 enum/WFE: bit_size: 1 variants: - - name: Disabled - description: No power management event generated due to wakeup frame reception - value: 0 - - name: Enabled - description: Enable generation of a power management event due to wakeup frame reception - value: 1 + - name: Disabled + description: No power management event generated due to wakeup frame reception + value: 0 + - name: Enabled + description: Enable generation of a power management event due to wakeup frame reception + value: 1 enum/WFFRPR: bit_size: 1 variants: - - name: Reset - description: Reset wakeup frame filter register point to 0b000. Automatically cleared - value: 1 + - name: Reset + description: Reset wakeup frame filter register point to 0b000. Automatically cleared + value: 1 enum/ZQPD: bit_size: 1 variants: - - name: Enabled - description: Normal operation with automatic zero-quanta pause control frame generation - value: 0 - - name: Disabled - description: Automatic generation of zero-quanta pause control frames is disabled - value: 1 + - name: Enabled + description: Normal operation with automatic zero-quanta pause control frame generation + value: 0 + - name: Disabled + description: Automatic generation of zero-quanta pause control frames is disabled + value: 1 diff --git a/data/registers/eth_v2.yaml b/data/registers/eth_v2.yaml index 017fe62..d6d600e 100644 --- a/data/registers/eth_v2.yaml +++ b/data/registers/eth_v2.yaml @@ -1,2614 +1,2613 @@ ---- block/ETH: description: Ethernet Peripheral items: - - name: ETHERNET_MAC - description: "Ethernet: media access control (MAC)" - byte_offset: 0 - block: ETHERNET_MAC - - name: ETHERNET_MTL - description: "Ethernet: MTL mode register (MTL)" - byte_offset: 3072 - block: ETHERNET_MTL - - name: ETHERNET_DMA - description: "Ethernet: DMA mode register (DMA)" - byte_offset: 4096 - block: ETHERNET_DMA + - name: ETHERNET_MAC + description: 'Ethernet: media access control (MAC)' + byte_offset: 0 + block: ETHERNET_MAC + - name: ETHERNET_MTL + description: 'Ethernet: MTL mode register (MTL)' + byte_offset: 3072 + block: ETHERNET_MTL + - name: ETHERNET_DMA + description: 'Ethernet: DMA mode register (DMA)' + byte_offset: 4096 + block: ETHERNET_DMA block/ETHERNET_DMA: - description: "Ethernet: DMA mode register (DMA)" + description: 'Ethernet: DMA mode register (DMA)' items: - - name: DMAMR - description: DMA mode register - byte_offset: 0 - fieldset: DMAMR - - name: DMASBMR - description: System bus mode register - byte_offset: 4 - fieldset: DMASBMR - - name: DMAISR - description: Interrupt status register - byte_offset: 8 - access: Read - fieldset: DMAISR - - name: DMADSR - description: Debug status register - byte_offset: 12 - access: Read - fieldset: DMADSR - - name: DMACCR - description: Channel control register - byte_offset: 256 - fieldset: DMACCR - - name: DMACTxCR - description: Channel transmit control register - byte_offset: 260 - fieldset: DMACTxCR - - name: DMACRxCR - description: Channel receive control register - byte_offset: 264 - fieldset: DMACRxCR - - name: DMACTxDLAR - description: Channel Tx descriptor list address register - byte_offset: 276 - fieldset: DMACTxDLAR - - name: DMACRxDLAR - description: Channel Rx descriptor list address register - byte_offset: 284 - fieldset: DMACRxDLAR - - name: DMACTxDTPR - description: Channel Tx descriptor tail pointer register - byte_offset: 288 - fieldset: DMACTxDTPR - - name: DMACRxDTPR - description: Channel Rx descriptor tail pointer register - byte_offset: 296 - fieldset: DMACRxDTPR - - name: DMACTxRLR - description: Channel Tx descriptor ring length register - byte_offset: 300 - fieldset: DMACTxRLR - - name: DMACRxRLR - description: Channel Rx descriptor ring length register - byte_offset: 304 - fieldset: DMACRxRLR - - name: DMACIER - description: Channel interrupt enable register - byte_offset: 308 - fieldset: DMACIER - - name: DMACRxIWTR - description: Channel Rx interrupt watchdog timer register - byte_offset: 312 - fieldset: DMACRxIWTR - - name: DMACCATxDR - description: Channel current application transmit descriptor register - byte_offset: 324 - access: Read - fieldset: DMACCATxDR - - name: DMACCARxDR - description: Channel current application receive descriptor register - byte_offset: 332 - access: Read - fieldset: DMACCARxDR - - name: DMACCATxBR - description: Channel current application transmit buffer register - byte_offset: 340 - access: Read - fieldset: DMACCATxBR - - name: DMACCARxBR - description: Channel current application receive buffer register - byte_offset: 348 - access: Read - fieldset: DMACCARxBR - - name: DMACSR - description: Channel status register - byte_offset: 352 - fieldset: DMACSR - - name: DMACMFCR - description: Channel missed frame count register - byte_offset: 364 - access: Read - fieldset: DMACMFCR + - name: DMAMR + description: DMA mode register + byte_offset: 0 + fieldset: DMAMR + - name: DMASBMR + description: System bus mode register + byte_offset: 4 + fieldset: DMASBMR + - name: DMAISR + description: Interrupt status register + byte_offset: 8 + access: Read + fieldset: DMAISR + - name: DMADSR + description: Debug status register + byte_offset: 12 + access: Read + fieldset: DMADSR + - name: DMACCR + description: Channel control register + byte_offset: 256 + fieldset: DMACCR + - name: DMACTxCR + description: Channel transmit control register + byte_offset: 260 + fieldset: DMACTxCR + - name: DMACRxCR + description: Channel receive control register + byte_offset: 264 + fieldset: DMACRxCR + - name: DMACTxDLAR + description: Channel Tx descriptor list address register + byte_offset: 276 + fieldset: DMACTxDLAR + - name: DMACRxDLAR + description: Channel Rx descriptor list address register + byte_offset: 284 + fieldset: DMACRxDLAR + - name: DMACTxDTPR + description: Channel Tx descriptor tail pointer register + byte_offset: 288 + fieldset: DMACTxDTPR + - name: DMACRxDTPR + description: Channel Rx descriptor tail pointer register + byte_offset: 296 + fieldset: DMACRxDTPR + - name: DMACTxRLR + description: Channel Tx descriptor ring length register + byte_offset: 300 + fieldset: DMACTxRLR + - name: DMACRxRLR + description: Channel Rx descriptor ring length register + byte_offset: 304 + fieldset: DMACRxRLR + - name: DMACIER + description: Channel interrupt enable register + byte_offset: 308 + fieldset: DMACIER + - name: DMACRxIWTR + description: Channel Rx interrupt watchdog timer register + byte_offset: 312 + fieldset: DMACRxIWTR + - name: DMACCATxDR + description: Channel current application transmit descriptor register + byte_offset: 324 + access: Read + fieldset: DMACCATxDR + - name: DMACCARxDR + description: Channel current application receive descriptor register + byte_offset: 332 + access: Read + fieldset: DMACCARxDR + - name: DMACCATxBR + description: Channel current application transmit buffer register + byte_offset: 340 + access: Read + fieldset: DMACCATxBR + - name: DMACCARxBR + description: Channel current application receive buffer register + byte_offset: 348 + access: Read + fieldset: DMACCARxBR + - name: DMACSR + description: Channel status register + byte_offset: 352 + fieldset: DMACSR + - name: DMACMFCR + description: Channel missed frame count register + byte_offset: 364 + access: Read + fieldset: DMACMFCR block/ETHERNET_MAC: - description: "Ethernet: media access control (MAC)" + description: 'Ethernet: media access control (MAC)' items: - - name: MACCR - description: Operating mode configuration register - byte_offset: 0 - fieldset: MACCR - - name: MACECR - description: Extended operating mode configuration register - byte_offset: 4 - fieldset: MACECR - - name: MACPFR - description: Packet filtering control register - byte_offset: 8 - fieldset: MACPFR - - name: MACWTR - description: Watchdog timeout register - byte_offset: 12 - fieldset: MACWTR - - name: MACHT0R - description: Hash Table 0 register - byte_offset: 16 - fieldset: MACHT0R - - name: MACHT1R - description: Hash Table 1 register - byte_offset: 20 - fieldset: MACHT1R - - name: MACVTR - description: VLAN tag register - byte_offset: 80 - fieldset: MACVTR - - name: MACVHTR - description: VLAN Hash table register - byte_offset: 88 - fieldset: MACVHTR - - name: MACVIR - description: VLAN inclusion register - byte_offset: 96 - fieldset: MACVIR - - name: MACIVIR - description: Inner VLAN inclusion register - byte_offset: 100 - fieldset: MACIVIR - - name: MACQTxFCR - description: Tx Queue flow control register - byte_offset: 112 - fieldset: MACQTxFCR - - name: MACRxFCR - description: Rx flow control register - byte_offset: 144 - fieldset: MACRxFCR - - name: MACISR - description: Interrupt status register - byte_offset: 176 - access: Read - fieldset: MACISR - - name: MACIER - description: Interrupt enable register - byte_offset: 180 - fieldset: MACIER - - name: MACRxTxSR - description: Rx Tx status register - byte_offset: 184 - access: Read - fieldset: MACRxTxSR - - name: MACPCSR - description: PMT control status register - byte_offset: 192 - fieldset: MACPCSR - - name: MACRWKPFR - description: Remove wakeup packet filter register - byte_offset: 196 - fieldset: MACRWKPFR - - name: MACLCSR - description: LPI control status register - byte_offset: 208 - fieldset: MACLCSR - - name: MACLTCR - description: LPI timers control register - byte_offset: 212 - fieldset: MACLTCR - - name: MACLETR - description: LPI entry timer register - byte_offset: 216 - fieldset: MACLETR - - name: MAC1USTCR - description: 1-microsecond-tick counter register - byte_offset: 220 - fieldset: MAC1USTCR - - name: MACVR - description: Version register - byte_offset: 272 - access: Read - fieldset: MACVR - - name: MACDR - description: Debug register - byte_offset: 276 - access: Read - fieldset: MACDR - - name: MACHWF1R - description: HW feature 1 register - byte_offset: 288 - access: Read - fieldset: MACHWF1R - - name: MACHWF2R - description: HW feature 2 register - byte_offset: 292 - access: Read - fieldset: MACHWF2R - - name: MACMDIOAR - description: MDIO address register - byte_offset: 512 - fieldset: MACMDIOAR - - name: MACMDIODR - description: MDIO data register - byte_offset: 516 - fieldset: MACMDIODR - - name: MACA0HR - description: Address 0 high register - byte_offset: 768 - fieldset: MACA0HR - - name: MACA0LR - description: Address 0 low register - byte_offset: 772 - fieldset: MACA0LR - - name: MACA1HR - description: Address 1 high register - byte_offset: 776 - fieldset: MACA1HR - - name: MACA1LR - description: Address 1 low register - byte_offset: 780 - fieldset: MACA1LR - - name: MACA2HR - description: Address 2 high register - byte_offset: 784 - fieldset: MACA2HR - - name: MACA2LR - description: Address 2 low register - byte_offset: 788 - fieldset: MACA2LR - - name: MACA3HR - description: Address 3 high register - byte_offset: 792 - fieldset: MACA3HR - - name: MACA3LR - description: Address 3 low register - byte_offset: 796 - fieldset: MACA3LR - - name: MMC_CONTROL - description: MMC control register - byte_offset: 1792 - fieldset: MMC_CONTROL - - name: MMC_RX_INTERRUPT - description: MMC Rx interrupt register - byte_offset: 1796 - access: Read - fieldset: MMC_RX_INTERRUPT - - name: MMC_TX_INTERRUPT - description: MMC Tx interrupt register - byte_offset: 1800 - access: Read - fieldset: MMC_TX_INTERRUPT - - name: MMC_RX_INTERRUPT_MASK - description: MMC Rx interrupt mask register - byte_offset: 1804 - fieldset: MMC_RX_INTERRUPT_MASK - - name: MMC_TX_INTERRUPT_MASK - description: MMC Tx interrupt mask register - byte_offset: 1808 - fieldset: MMC_TX_INTERRUPT_MASK - - name: TX_SINGLE_COLLISION_GOOD_PACKETS - description: Tx single collision good packets register - byte_offset: 1868 - access: Read - fieldset: TX_SINGLE_COLLISION_GOOD_PACKETS - - name: TX_MULTIPLE_COLLISION_GOOD_PACKETS - description: Tx multiple collision good packets register - byte_offset: 1872 - access: Read - fieldset: TX_MULTIPLE_COLLISION_GOOD_PACKETS - - name: TX_PACKET_COUNT_GOOD - description: Tx packet count good register - byte_offset: 1896 - access: Read - fieldset: TX_PACKET_COUNT_GOOD - - name: RX_CRC_ERROR_PACKETS - description: Rx CRC error packets register - byte_offset: 1940 - access: Read - fieldset: RX_CRC_ERROR_PACKETS - - name: RX_ALIGNMENT_ERROR_PACKETS - description: Rx alignment error packets register - byte_offset: 1944 - access: Read - fieldset: RX_ALIGNMENT_ERROR_PACKETS - - name: RX_UNICAST_PACKETS_GOOD - description: Rx unicast packets good register - byte_offset: 1988 - access: Read - fieldset: RX_UNICAST_PACKETS_GOOD - - name: TX_LPI_USEC_CNTR - description: Tx LPI microsecond timer register - byte_offset: 2028 - access: Read - fieldset: TX_LPI_USEC_CNTR - - name: TX_LPI_TRAN_CNTR - description: Tx LPI transition counter register - byte_offset: 2032 - access: Read - fieldset: TX_LPI_TRAN_CNTR - - name: RX_LPI_USEC_CNTR - description: Rx LPI microsecond counter register - byte_offset: 2036 - access: Read - fieldset: RX_LPI_USEC_CNTR - - name: RX_LPI_TRAN_CNTR - description: Rx LPI transition counter register - byte_offset: 2040 - access: Read - fieldset: RX_LPI_TRAN_CNTR - - name: MACL3L4C0R - description: L3 and L4 control 0 register - byte_offset: 2304 - fieldset: MACL3L4C0R - - name: MACL4A0R - description: Layer4 address filter 0 register - byte_offset: 2308 - fieldset: MACL4A0R - - name: MACL3A00R - description: MACL3A00R - byte_offset: 2320 - fieldset: MACL3A00R - - name: MACL3A10R - description: Layer3 address 1 filter 0 register - byte_offset: 2324 - fieldset: MACL3A10R - - name: MACL3A20 - description: Layer3 Address 2 filter 0 register - byte_offset: 2328 - fieldset: MACL3A20 - - name: MACL3A30 - description: Layer3 Address 3 filter 0 register - byte_offset: 2332 - fieldset: MACL3A30 - - name: MACL3L4C1R - description: L3 and L4 control 1 register - byte_offset: 2352 - fieldset: MACL3L4C1R - - name: MACL4A1R - description: Layer 4 address filter 1 register - byte_offset: 2356 - fieldset: MACL4A1R - - name: MACL3A01R - description: Layer3 address 0 filter 1 Register - byte_offset: 2368 - fieldset: MACL3A01R - - name: MACL3A11R - description: Layer3 address 1 filter 1 register - byte_offset: 2372 - fieldset: MACL3A11R - - name: MACL3A21R - description: Layer3 address 2 filter 1 Register - byte_offset: 2376 - fieldset: MACL3A21R - - name: MACL3A31R - description: Layer3 address 3 filter 1 register - byte_offset: 2380 - fieldset: MACL3A31R - - name: MACARPAR - description: ARP address register - byte_offset: 2784 - fieldset: MACARPAR - - name: MACTSCR - description: Timestamp control Register - byte_offset: 2816 - fieldset: MACTSCR - - name: MACSSIR - description: Sub-second increment register - byte_offset: 2820 - fieldset: MACSSIR - - name: MACSTSR - description: System time seconds register - byte_offset: 2824 - access: Read - fieldset: MACSTSR - - name: MACSTNR - description: System time nanoseconds register - byte_offset: 2828 - access: Read - fieldset: MACSTNR - - name: MACSTSUR - description: System time seconds update register - byte_offset: 2832 - fieldset: MACSTSUR - - name: MACSTNUR - description: System time nanoseconds update register - byte_offset: 2836 - fieldset: MACSTNUR - - name: MACTSAR - description: Timestamp addend register - byte_offset: 2840 - fieldset: MACTSAR - - name: MACTSSR - description: Timestamp status register - byte_offset: 2848 - access: Read - fieldset: MACTSSR - - name: MACTxTSSNR - description: Tx timestamp status nanoseconds register - byte_offset: 2864 - access: Read - fieldset: MACTxTSSNR - - name: MACTxTSSSR - description: Tx timestamp status seconds register - byte_offset: 2868 - access: Read - fieldset: MACTxTSSSR - - name: MACACR - description: Auxiliary control register - byte_offset: 2880 - fieldset: MACACR - - name: MACATSNR - description: Auxiliary timestamp nanoseconds register - byte_offset: 2888 - access: Read - fieldset: MACATSNR - - name: MACATSSR - description: Auxiliary timestamp seconds register - byte_offset: 2892 - access: Read - fieldset: MACATSSR - - name: MACTSIACR - description: Timestamp Ingress asymmetric correction register - byte_offset: 2896 - fieldset: MACTSIACR - - name: MACTSEACR - description: Timestamp Egress asymmetric correction register - byte_offset: 2900 - fieldset: MACTSEACR - - name: MACTSICNR - description: Timestamp Ingress correction nanosecond register - byte_offset: 2904 - fieldset: MACTSICNR - - name: MACTSECNR - description: Timestamp Egress correction nanosecond register - byte_offset: 2908 - fieldset: MACTSECNR - - name: MACPPSCR - description: PPS control register - byte_offset: 2928 - fieldset: MACPPSCR - - name: MACPPSTTSR - description: PPS target time seconds register - byte_offset: 2944 - fieldset: MACPPSTTSR - - name: MACPPSTTNR - description: PPS target time nanoseconds register - byte_offset: 2948 - fieldset: MACPPSTTNR - - name: MACPPSIR - description: PPS interval register - byte_offset: 2952 - fieldset: MACPPSIR - - name: MACPPSWR - description: PPS width register - byte_offset: 2956 - fieldset: MACPPSWR - - name: MACPOCR - description: PTP Offload control register - byte_offset: 3008 - fieldset: MACPOCR - - name: MACSPI0R - description: PTP Source Port Identity 0 Register - byte_offset: 3012 - fieldset: MACSPI0R - - name: MACSPI1R - description: PTP Source port identity 1 register - byte_offset: 3016 - fieldset: MACSPI1R - - name: MACSPI2R - description: PTP Source port identity 2 register - byte_offset: 3020 - fieldset: MACSPI2R - - name: MACLMIR - description: Log message interval register - byte_offset: 3024 - fieldset: MACLMIR + - name: MACCR + description: Operating mode configuration register + byte_offset: 0 + fieldset: MACCR + - name: MACECR + description: Extended operating mode configuration register + byte_offset: 4 + fieldset: MACECR + - name: MACPFR + description: Packet filtering control register + byte_offset: 8 + fieldset: MACPFR + - name: MACWTR + description: Watchdog timeout register + byte_offset: 12 + fieldset: MACWTR + - name: MACHT0R + description: Hash Table 0 register + byte_offset: 16 + fieldset: MACHT0R + - name: MACHT1R + description: Hash Table 1 register + byte_offset: 20 + fieldset: MACHT1R + - name: MACVTR + description: VLAN tag register + byte_offset: 80 + fieldset: MACVTR + - name: MACVHTR + description: VLAN Hash table register + byte_offset: 88 + fieldset: MACVHTR + - name: MACVIR + description: VLAN inclusion register + byte_offset: 96 + fieldset: MACVIR + - name: MACIVIR + description: Inner VLAN inclusion register + byte_offset: 100 + fieldset: MACIVIR + - name: MACQTxFCR + description: Tx Queue flow control register + byte_offset: 112 + fieldset: MACQTxFCR + - name: MACRxFCR + description: Rx flow control register + byte_offset: 144 + fieldset: MACRxFCR + - name: MACISR + description: Interrupt status register + byte_offset: 176 + access: Read + fieldset: MACISR + - name: MACIER + description: Interrupt enable register + byte_offset: 180 + fieldset: MACIER + - name: MACRxTxSR + description: Rx Tx status register + byte_offset: 184 + access: Read + fieldset: MACRxTxSR + - name: MACPCSR + description: PMT control status register + byte_offset: 192 + fieldset: MACPCSR + - name: MACRWKPFR + description: Remove wakeup packet filter register + byte_offset: 196 + fieldset: MACRWKPFR + - name: MACLCSR + description: LPI control status register + byte_offset: 208 + fieldset: MACLCSR + - name: MACLTCR + description: LPI timers control register + byte_offset: 212 + fieldset: MACLTCR + - name: MACLETR + description: LPI entry timer register + byte_offset: 216 + fieldset: MACLETR + - name: MAC1USTCR + description: 1-microsecond-tick counter register + byte_offset: 220 + fieldset: MAC1USTCR + - name: MACVR + description: Version register + byte_offset: 272 + access: Read + fieldset: MACVR + - name: MACDR + description: Debug register + byte_offset: 276 + access: Read + fieldset: MACDR + - name: MACHWF1R + description: HW feature 1 register + byte_offset: 288 + access: Read + fieldset: MACHWF1R + - name: MACHWF2R + description: HW feature 2 register + byte_offset: 292 + access: Read + fieldset: MACHWF2R + - name: MACMDIOAR + description: MDIO address register + byte_offset: 512 + fieldset: MACMDIOAR + - name: MACMDIODR + description: MDIO data register + byte_offset: 516 + fieldset: MACMDIODR + - name: MACA0HR + description: Address 0 high register + byte_offset: 768 + fieldset: MACA0HR + - name: MACA0LR + description: Address 0 low register + byte_offset: 772 + fieldset: MACA0LR + - name: MACA1HR + description: Address 1 high register + byte_offset: 776 + fieldset: MACA1HR + - name: MACA1LR + description: Address 1 low register + byte_offset: 780 + fieldset: MACA1LR + - name: MACA2HR + description: Address 2 high register + byte_offset: 784 + fieldset: MACA2HR + - name: MACA2LR + description: Address 2 low register + byte_offset: 788 + fieldset: MACA2LR + - name: MACA3HR + description: Address 3 high register + byte_offset: 792 + fieldset: MACA3HR + - name: MACA3LR + description: Address 3 low register + byte_offset: 796 + fieldset: MACA3LR + - name: MMC_CONTROL + description: MMC control register + byte_offset: 1792 + fieldset: MMC_CONTROL + - name: MMC_RX_INTERRUPT + description: MMC Rx interrupt register + byte_offset: 1796 + access: Read + fieldset: MMC_RX_INTERRUPT + - name: MMC_TX_INTERRUPT + description: MMC Tx interrupt register + byte_offset: 1800 + access: Read + fieldset: MMC_TX_INTERRUPT + - name: MMC_RX_INTERRUPT_MASK + description: MMC Rx interrupt mask register + byte_offset: 1804 + fieldset: MMC_RX_INTERRUPT_MASK + - name: MMC_TX_INTERRUPT_MASK + description: MMC Tx interrupt mask register + byte_offset: 1808 + fieldset: MMC_TX_INTERRUPT_MASK + - name: TX_SINGLE_COLLISION_GOOD_PACKETS + description: Tx single collision good packets register + byte_offset: 1868 + access: Read + fieldset: TX_SINGLE_COLLISION_GOOD_PACKETS + - name: TX_MULTIPLE_COLLISION_GOOD_PACKETS + description: Tx multiple collision good packets register + byte_offset: 1872 + access: Read + fieldset: TX_MULTIPLE_COLLISION_GOOD_PACKETS + - name: TX_PACKET_COUNT_GOOD + description: Tx packet count good register + byte_offset: 1896 + access: Read + fieldset: TX_PACKET_COUNT_GOOD + - name: RX_CRC_ERROR_PACKETS + description: Rx CRC error packets register + byte_offset: 1940 + access: Read + fieldset: RX_CRC_ERROR_PACKETS + - name: RX_ALIGNMENT_ERROR_PACKETS + description: Rx alignment error packets register + byte_offset: 1944 + access: Read + fieldset: RX_ALIGNMENT_ERROR_PACKETS + - name: RX_UNICAST_PACKETS_GOOD + description: Rx unicast packets good register + byte_offset: 1988 + access: Read + fieldset: RX_UNICAST_PACKETS_GOOD + - name: TX_LPI_USEC_CNTR + description: Tx LPI microsecond timer register + byte_offset: 2028 + access: Read + fieldset: TX_LPI_USEC_CNTR + - name: TX_LPI_TRAN_CNTR + description: Tx LPI transition counter register + byte_offset: 2032 + access: Read + fieldset: TX_LPI_TRAN_CNTR + - name: RX_LPI_USEC_CNTR + description: Rx LPI microsecond counter register + byte_offset: 2036 + access: Read + fieldset: RX_LPI_USEC_CNTR + - name: RX_LPI_TRAN_CNTR + description: Rx LPI transition counter register + byte_offset: 2040 + access: Read + fieldset: RX_LPI_TRAN_CNTR + - name: MACL3L4C0R + description: L3 and L4 control 0 register + byte_offset: 2304 + fieldset: MACL3L4C0R + - name: MACL4A0R + description: Layer4 address filter 0 register + byte_offset: 2308 + fieldset: MACL4A0R + - name: MACL3A00R + description: MACL3A00R + byte_offset: 2320 + fieldset: MACL3A00R + - name: MACL3A10R + description: Layer3 address 1 filter 0 register + byte_offset: 2324 + fieldset: MACL3A10R + - name: MACL3A20 + description: Layer3 Address 2 filter 0 register + byte_offset: 2328 + fieldset: MACL3A20 + - name: MACL3A30 + description: Layer3 Address 3 filter 0 register + byte_offset: 2332 + fieldset: MACL3A30 + - name: MACL3L4C1R + description: L3 and L4 control 1 register + byte_offset: 2352 + fieldset: MACL3L4C1R + - name: MACL4A1R + description: Layer 4 address filter 1 register + byte_offset: 2356 + fieldset: MACL4A1R + - name: MACL3A01R + description: Layer3 address 0 filter 1 Register + byte_offset: 2368 + fieldset: MACL3A01R + - name: MACL3A11R + description: Layer3 address 1 filter 1 register + byte_offset: 2372 + fieldset: MACL3A11R + - name: MACL3A21R + description: Layer3 address 2 filter 1 Register + byte_offset: 2376 + fieldset: MACL3A21R + - name: MACL3A31R + description: Layer3 address 3 filter 1 register + byte_offset: 2380 + fieldset: MACL3A31R + - name: MACARPAR + description: ARP address register + byte_offset: 2784 + fieldset: MACARPAR + - name: MACTSCR + description: Timestamp control Register + byte_offset: 2816 + fieldset: MACTSCR + - name: MACSSIR + description: Sub-second increment register + byte_offset: 2820 + fieldset: MACSSIR + - name: MACSTSR + description: System time seconds register + byte_offset: 2824 + access: Read + fieldset: MACSTSR + - name: MACSTNR + description: System time nanoseconds register + byte_offset: 2828 + access: Read + fieldset: MACSTNR + - name: MACSTSUR + description: System time seconds update register + byte_offset: 2832 + fieldset: MACSTSUR + - name: MACSTNUR + description: System time nanoseconds update register + byte_offset: 2836 + fieldset: MACSTNUR + - name: MACTSAR + description: Timestamp addend register + byte_offset: 2840 + fieldset: MACTSAR + - name: MACTSSR + description: Timestamp status register + byte_offset: 2848 + access: Read + fieldset: MACTSSR + - name: MACTxTSSNR + description: Tx timestamp status nanoseconds register + byte_offset: 2864 + access: Read + fieldset: MACTxTSSNR + - name: MACTxTSSSR + description: Tx timestamp status seconds register + byte_offset: 2868 + access: Read + fieldset: MACTxTSSSR + - name: MACACR + description: Auxiliary control register + byte_offset: 2880 + fieldset: MACACR + - name: MACATSNR + description: Auxiliary timestamp nanoseconds register + byte_offset: 2888 + access: Read + fieldset: MACATSNR + - name: MACATSSR + description: Auxiliary timestamp seconds register + byte_offset: 2892 + access: Read + fieldset: MACATSSR + - name: MACTSIACR + description: Timestamp Ingress asymmetric correction register + byte_offset: 2896 + fieldset: MACTSIACR + - name: MACTSEACR + description: Timestamp Egress asymmetric correction register + byte_offset: 2900 + fieldset: MACTSEACR + - name: MACTSICNR + description: Timestamp Ingress correction nanosecond register + byte_offset: 2904 + fieldset: MACTSICNR + - name: MACTSECNR + description: Timestamp Egress correction nanosecond register + byte_offset: 2908 + fieldset: MACTSECNR + - name: MACPPSCR + description: PPS control register + byte_offset: 2928 + fieldset: MACPPSCR + - name: MACPPSTTSR + description: PPS target time seconds register + byte_offset: 2944 + fieldset: MACPPSTTSR + - name: MACPPSTTNR + description: PPS target time nanoseconds register + byte_offset: 2948 + fieldset: MACPPSTTNR + - name: MACPPSIR + description: PPS interval register + byte_offset: 2952 + fieldset: MACPPSIR + - name: MACPPSWR + description: PPS width register + byte_offset: 2956 + fieldset: MACPPSWR + - name: MACPOCR + description: PTP Offload control register + byte_offset: 3008 + fieldset: MACPOCR + - name: MACSPI0R + description: PTP Source Port Identity 0 Register + byte_offset: 3012 + fieldset: MACSPI0R + - name: MACSPI1R + description: PTP Source port identity 1 register + byte_offset: 3016 + fieldset: MACSPI1R + - name: MACSPI2R + description: PTP Source port identity 2 register + byte_offset: 3020 + fieldset: MACSPI2R + - name: MACLMIR + description: Log message interval register + byte_offset: 3024 + fieldset: MACLMIR block/ETHERNET_MTL: - description: "Ethernet: MTL mode register (MTL)" + description: 'Ethernet: MTL mode register (MTL)' items: - - name: MTLOMR - description: Operating mode Register - byte_offset: 0 - fieldset: MTLOMR - - name: MTLISR - description: Interrupt status Register - byte_offset: 32 - access: Read - fieldset: MTLISR - - name: MTLTxQOMR - description: Tx queue operating mode Register - byte_offset: 256 - fieldset: MTLTxQOMR - - name: MTLTxQUR - description: Tx queue underflow register - byte_offset: 260 - access: Read - fieldset: MTLTxQUR - - name: MTLTxQDR - description: Tx queue debug Register - byte_offset: 264 - access: Read - fieldset: MTLTxQDR - - name: MTLQICSR - description: Queue interrupt control status Register - byte_offset: 300 - fieldset: MTLQICSR - - name: MTLRxQOMR - description: Rx queue operating mode register - byte_offset: 304 - fieldset: MTLRxQOMR - - name: MTLRxQMPOCR - description: Rx queue missed packet and overflow counter register - byte_offset: 308 - access: Read - fieldset: MTLRxQMPOCR - - name: MTLRxQDR - description: Rx queue debug register - byte_offset: 312 - access: Read - fieldset: MTLRxQDR + - name: MTLOMR + description: Operating mode Register + byte_offset: 0 + fieldset: MTLOMR + - name: MTLISR + description: Interrupt status Register + byte_offset: 32 + access: Read + fieldset: MTLISR + - name: MTLTxQOMR + description: Tx queue operating mode Register + byte_offset: 256 + fieldset: MTLTxQOMR + - name: MTLTxQUR + description: Tx queue underflow register + byte_offset: 260 + access: Read + fieldset: MTLTxQUR + - name: MTLTxQDR + description: Tx queue debug Register + byte_offset: 264 + access: Read + fieldset: MTLTxQDR + - name: MTLQICSR + description: Queue interrupt control status Register + byte_offset: 300 + fieldset: MTLQICSR + - name: MTLRxQOMR + description: Rx queue operating mode register + byte_offset: 304 + fieldset: MTLRxQOMR + - name: MTLRxQMPOCR + description: Rx queue missed packet and overflow counter register + byte_offset: 308 + access: Read + fieldset: MTLRxQMPOCR + - name: MTLRxQDR + description: Rx queue debug register + byte_offset: 312 + access: Read + fieldset: MTLRxQDR fieldset/DMACCARxBR: description: Channel current application receive buffer register fields: - - name: CURRBUFAPTR - description: Application Receive Buffer Address Pointer - bit_offset: 0 - bit_size: 32 + - name: CURRBUFAPTR + description: Application Receive Buffer Address Pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACCARxDR: description: Channel current application receive descriptor register fields: - - name: CURRDESAPTR - description: Application Receive Descriptor Address Pointer - bit_offset: 0 - bit_size: 32 + - name: CURRDESAPTR + description: Application Receive Descriptor Address Pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACCATxBR: description: Channel current application transmit buffer register fields: - - name: CURTBUFAPTR - description: Application Transmit Buffer Address Pointer - bit_offset: 0 - bit_size: 32 + - name: CURTBUFAPTR + description: Application Transmit Buffer Address Pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACCATxDR: description: Channel current application transmit descriptor register fields: - - name: CURTDESAPTR - description: Application Transmit Descriptor Address Pointer - bit_offset: 0 - bit_size: 32 + - name: CURTDESAPTR + description: Application Transmit Descriptor Address Pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACCR: description: Channel control register fields: - - name: MSS - description: Maximum Segment Size - bit_offset: 0 - bit_size: 14 - - name: PBLX8 - description: 8xPBL mode - bit_offset: 16 - bit_size: 1 - - name: DSL - description: Descriptor Skip Length - bit_offset: 18 - bit_size: 3 + - name: MSS + description: Maximum Segment Size + bit_offset: 0 + bit_size: 14 + - name: PBLX8 + description: 8xPBL mode + bit_offset: 16 + bit_size: 1 + - name: DSL + description: Descriptor Skip Length + bit_offset: 18 + bit_size: 3 fieldset/DMACIER: description: Channel interrupt enable register fields: - - name: TIE - description: Transmit Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: TXSE - description: Transmit Stopped Enable - bit_offset: 1 - bit_size: 1 - - name: TBUE - description: Transmit Buffer Unavailable Enable - bit_offset: 2 - bit_size: 1 - - name: RIE - description: Receive Interrupt Enable - bit_offset: 6 - bit_size: 1 - - name: RBUE - description: Receive Buffer Unavailable Enable - bit_offset: 7 - bit_size: 1 - - name: RSE - description: Receive Stopped Enable - bit_offset: 8 - bit_size: 1 - - name: RWTE - description: Receive Watchdog Timeout Enable - bit_offset: 9 - bit_size: 1 - - name: ETIE - description: Early Transmit Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: ERIE - description: Early Receive Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: FBEE - description: Fatal Bus Error Enable - bit_offset: 12 - bit_size: 1 - - name: CDEE - description: Context Descriptor Error Enable - bit_offset: 13 - bit_size: 1 - - name: AIE - description: Abnormal Interrupt Summary Enable - bit_offset: 14 - bit_size: 1 - - name: NIE - description: Normal Interrupt Summary Enable - bit_offset: 15 - bit_size: 1 + - name: TIE + description: Transmit Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: TXSE + description: Transmit Stopped Enable + bit_offset: 1 + bit_size: 1 + - name: TBUE + description: Transmit Buffer Unavailable Enable + bit_offset: 2 + bit_size: 1 + - name: RIE + description: Receive Interrupt Enable + bit_offset: 6 + bit_size: 1 + - name: RBUE + description: Receive Buffer Unavailable Enable + bit_offset: 7 + bit_size: 1 + - name: RSE + description: Receive Stopped Enable + bit_offset: 8 + bit_size: 1 + - name: RWTE + description: Receive Watchdog Timeout Enable + bit_offset: 9 + bit_size: 1 + - name: ETIE + description: Early Transmit Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: ERIE + description: Early Receive Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: FBEE + description: Fatal Bus Error Enable + bit_offset: 12 + bit_size: 1 + - name: CDEE + description: Context Descriptor Error Enable + bit_offset: 13 + bit_size: 1 + - name: AIE + description: Abnormal Interrupt Summary Enable + bit_offset: 14 + bit_size: 1 + - name: NIE + description: Normal Interrupt Summary Enable + bit_offset: 15 + bit_size: 1 fieldset/DMACMFCR: description: Channel missed frame count register fields: - - name: MFC - description: Dropped Packet Counters - bit_offset: 0 - bit_size: 11 - - name: MFCO - description: Overflow status of the MFC Counter - bit_offset: 15 - bit_size: 1 + - name: MFC + description: Dropped Packet Counters + bit_offset: 0 + bit_size: 11 + - name: MFCO + description: Overflow status of the MFC Counter + bit_offset: 15 + bit_size: 1 fieldset/DMACRxCR: description: Channel receive control register fields: - - name: SR - description: Start or Stop Receive Command - bit_offset: 0 - bit_size: 1 - - name: RBSZ - description: Receive Buffer size - bit_offset: 1 - bit_size: 14 - - name: RXPBL - description: RXPBL - bit_offset: 16 - bit_size: 6 - - name: RPF - description: DMA Rx Channel Packet Flush - bit_offset: 31 - bit_size: 1 + - name: SR + description: Start or Stop Receive Command + bit_offset: 0 + bit_size: 1 + - name: RBSZ + description: Receive Buffer size + bit_offset: 1 + bit_size: 14 + - name: RXPBL + description: RXPBL + bit_offset: 16 + bit_size: 6 + - name: RPF + description: DMA Rx Channel Packet Flush + bit_offset: 31 + bit_size: 1 fieldset/DMACRxDLAR: description: Channel Rx descriptor list address register fields: - - name: RDESLA - description: Start of Receive List - bit_offset: 0 - bit_size: 32 + - name: RDESLA + description: Start of Receive List + bit_offset: 0 + bit_size: 32 fieldset/DMACRxDTPR: description: Channel Rx descriptor tail pointer register fields: - - name: RDT - description: Receive Descriptor Tail Pointer - bit_offset: 0 - bit_size: 32 + - name: RDT + description: Receive Descriptor Tail Pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACRxIWTR: description: Channel Rx interrupt watchdog timer register fields: - - name: RWT - description: Receive Interrupt Watchdog Timer Count - bit_offset: 0 - bit_size: 8 + - name: RWT + description: Receive Interrupt Watchdog Timer Count + bit_offset: 0 + bit_size: 8 fieldset/DMACRxRLR: description: Channel Rx descriptor ring length register fields: - - name: RDRL - description: Receive Descriptor Ring Length - bit_offset: 0 - bit_size: 10 + - name: RDRL + description: Receive Descriptor Ring Length + bit_offset: 0 + bit_size: 10 fieldset/DMACSR: description: Channel status register fields: - - name: TI - description: Transmit Interrupt - bit_offset: 0 - bit_size: 1 - - name: TPS - description: Transmit Process Stopped - bit_offset: 1 - bit_size: 1 - - name: TBU - description: Transmit Buffer Unavailable - bit_offset: 2 - bit_size: 1 - - name: RI - description: Receive Interrupt - bit_offset: 6 - bit_size: 1 - - name: RBU - description: Receive Buffer Unavailable - bit_offset: 7 - bit_size: 1 - - name: RPS - description: Receive Process Stopped - bit_offset: 8 - bit_size: 1 - - name: RWT - description: Receive Watchdog Timeout - bit_offset: 9 - bit_size: 1 - - name: ET - description: Early Transmit Interrupt - bit_offset: 10 - bit_size: 1 - - name: ER - description: Early Receive Interrupt - bit_offset: 11 - bit_size: 1 - - name: FBE - description: Fatal Bus Error - bit_offset: 12 - bit_size: 1 - - name: CDE - description: Context Descriptor Error - bit_offset: 13 - bit_size: 1 - - name: AIS - description: Abnormal Interrupt Summary - bit_offset: 14 - bit_size: 1 - - name: NIS - description: Normal Interrupt Summary - bit_offset: 15 - bit_size: 1 - - name: TEB - description: Tx DMA Error Bits - bit_offset: 16 - bit_size: 3 - - name: REB - description: Rx DMA Error Bits - bit_offset: 19 - bit_size: 3 + - name: TI + description: Transmit Interrupt + bit_offset: 0 + bit_size: 1 + - name: TPS + description: Transmit Process Stopped + bit_offset: 1 + bit_size: 1 + - name: TBU + description: Transmit Buffer Unavailable + bit_offset: 2 + bit_size: 1 + - name: RI + description: Receive Interrupt + bit_offset: 6 + bit_size: 1 + - name: RBU + description: Receive Buffer Unavailable + bit_offset: 7 + bit_size: 1 + - name: RPS + description: Receive Process Stopped + bit_offset: 8 + bit_size: 1 + - name: RWT + description: Receive Watchdog Timeout + bit_offset: 9 + bit_size: 1 + - name: ET + description: Early Transmit Interrupt + bit_offset: 10 + bit_size: 1 + - name: ER + description: Early Receive Interrupt + bit_offset: 11 + bit_size: 1 + - name: FBE + description: Fatal Bus Error + bit_offset: 12 + bit_size: 1 + - name: CDE + description: Context Descriptor Error + bit_offset: 13 + bit_size: 1 + - name: AIS + description: Abnormal Interrupt Summary + bit_offset: 14 + bit_size: 1 + - name: NIS + description: Normal Interrupt Summary + bit_offset: 15 + bit_size: 1 + - name: TEB + description: Tx DMA Error Bits + bit_offset: 16 + bit_size: 3 + - name: REB + description: Rx DMA Error Bits + bit_offset: 19 + bit_size: 3 fieldset/DMACTxCR: description: Channel transmit control register fields: - - name: ST - description: Start or Stop Transmission Command - bit_offset: 0 - bit_size: 1 - - name: OSF - description: Operate on Second Packet - bit_offset: 4 - bit_size: 1 - - name: TSE - description: TCP Segmentation Enabled - bit_offset: 12 - bit_size: 1 - - name: TXPBL - description: Transmit Programmable Burst Length - bit_offset: 16 - bit_size: 6 + - name: ST + description: Start or Stop Transmission Command + bit_offset: 0 + bit_size: 1 + - name: OSF + description: Operate on Second Packet + bit_offset: 4 + bit_size: 1 + - name: TSE + description: TCP Segmentation Enabled + bit_offset: 12 + bit_size: 1 + - name: TXPBL + description: Transmit Programmable Burst Length + bit_offset: 16 + bit_size: 6 fieldset/DMACTxDLAR: description: Channel Tx descriptor list address register fields: - - name: TDESLA - description: Start of Transmit List - bit_offset: 0 - bit_size: 32 + - name: TDESLA + description: Start of Transmit List + bit_offset: 0 + bit_size: 32 fieldset/DMACTxDTPR: description: Channel Tx descriptor tail pointer register fields: - - name: TDT - description: Transmit Descriptor Tail Pointer - bit_offset: 0 - bit_size: 32 + - name: TDT + description: Transmit Descriptor Tail Pointer + bit_offset: 0 + bit_size: 32 fieldset/DMACTxRLR: description: Channel Tx descriptor ring length register fields: - - name: TDRL - description: Transmit Descriptor Ring Length - bit_offset: 0 - bit_size: 10 + - name: TDRL + description: Transmit Descriptor Ring Length + bit_offset: 0 + bit_size: 10 fieldset/DMADSR: description: Debug status register fields: - - name: AXWHSTS - description: AHB Master Write Channel - bit_offset: 0 - bit_size: 1 - - name: RPS0 - description: DMA Channel Receive Process State - bit_offset: 8 - bit_size: 4 - - name: TPS0 - description: DMA Channel Transmit Process State - bit_offset: 12 - bit_size: 4 + - name: AXWHSTS + description: AHB Master Write Channel + bit_offset: 0 + bit_size: 1 + - name: RPS0 + description: DMA Channel Receive Process State + bit_offset: 8 + bit_size: 4 + - name: TPS0 + description: DMA Channel Transmit Process State + bit_offset: 12 + bit_size: 4 fieldset/DMAISR: description: Interrupt status register fields: - - name: DC0IS - description: DMA Channel Interrupt Status - bit_offset: 0 - bit_size: 1 - - name: MTLIS - description: MTL Interrupt Status - bit_offset: 16 - bit_size: 1 - - name: MACIS - description: MAC Interrupt Status - bit_offset: 17 - bit_size: 1 + - name: DC0IS + description: DMA Channel Interrupt Status + bit_offset: 0 + bit_size: 1 + - name: MTLIS + description: MTL Interrupt Status + bit_offset: 16 + bit_size: 1 + - name: MACIS + description: MAC Interrupt Status + bit_offset: 17 + bit_size: 1 fieldset/DMAMR: description: DMA mode register fields: - - name: SWR - description: Software Reset - bit_offset: 0 - bit_size: 1 - - name: DA - description: DMA Tx or Rx Arbitration Scheme - bit_offset: 1 - bit_size: 1 - - name: TXPR - description: Transmit priority - bit_offset: 11 - bit_size: 1 - - name: PR - description: Priority ratio - bit_offset: 12 - bit_size: 3 - - name: INTM - description: Interrupt Mode - bit_offset: 16 - bit_size: 2 + - name: SWR + description: Software Reset + bit_offset: 0 + bit_size: 1 + - name: DA + description: DMA Tx or Rx Arbitration Scheme + bit_offset: 1 + bit_size: 1 + - name: TXPR + description: Transmit priority + bit_offset: 11 + bit_size: 1 + - name: PR + description: Priority ratio + bit_offset: 12 + bit_size: 3 + - name: INTM + description: Interrupt Mode + bit_offset: 16 + bit_size: 2 fieldset/DMASBMR: description: System bus mode register fields: - - name: FB - description: Fixed Burst Length - bit_offset: 0 - bit_size: 1 - - name: AAL - description: Address-Aligned Beats - bit_offset: 12 - bit_size: 1 - - name: MB - description: Mixed Burst - bit_offset: 14 - bit_size: 1 - - name: RB - description: Rebuild INCRx Burst - bit_offset: 15 - bit_size: 1 + - name: FB + description: Fixed Burst Length + bit_offset: 0 + bit_size: 1 + - name: AAL + description: Address-Aligned Beats + bit_offset: 12 + bit_size: 1 + - name: MB + description: Mixed Burst + bit_offset: 14 + bit_size: 1 + - name: RB + description: Rebuild INCRx Burst + bit_offset: 15 + bit_size: 1 fieldset/MAC1USTCR: description: 1-microsecond-tick counter register fields: - - name: TIC_1US_CNTR - description: 1 µs tick Counter - bit_offset: 0 - bit_size: 12 + - name: TIC_1US_CNTR + description: 1 µs tick Counter + bit_offset: 0 + bit_size: 12 fieldset/MACA0HR: description: Address 0 high register fields: - - name: ADDRHI - description: "MAC Address0[47:32]" - bit_offset: 0 - bit_size: 16 - - name: AE - description: Address Enable - bit_offset: 31 - bit_size: 1 + - name: ADDRHI + description: MAC Address0[47:32] + bit_offset: 0 + bit_size: 16 + - name: AE + description: Address Enable + bit_offset: 31 + bit_size: 1 fieldset/MACA0LR: description: Address 0 low register fields: - - name: ADDRLO - description: "MAC Address 0 [31:0]" - bit_offset: 0 - bit_size: 32 + - name: ADDRLO + description: MAC Address 0 [31:0] + bit_offset: 0 + bit_size: 32 fieldset/MACA1HR: description: Address 1 high register fields: - - name: ADDRHI - description: "MAC Address1 [47:32]" - bit_offset: 0 - bit_size: 16 - - name: MBC - description: Mask Byte Control - bit_offset: 24 - bit_size: 6 - - name: SA - description: Source Address - bit_offset: 30 - bit_size: 1 - - name: AE - description: Address Enable - bit_offset: 31 - bit_size: 1 + - name: ADDRHI + description: MAC Address1 [47:32] + bit_offset: 0 + bit_size: 16 + - name: MBC + description: Mask Byte Control + bit_offset: 24 + bit_size: 6 + - name: SA + description: Source Address + bit_offset: 30 + bit_size: 1 + - name: AE + description: Address Enable + bit_offset: 31 + bit_size: 1 fieldset/MACA1LR: description: Address 1 low register fields: - - name: ADDRLO - description: "MAC Address 1 [31:0]" - bit_offset: 0 - bit_size: 32 + - name: ADDRLO + description: MAC Address 1 [31:0] + bit_offset: 0 + bit_size: 32 fieldset/MACA2HR: description: Address 2 high register fields: - - name: ADDRHI - description: "MAC Address2 [47:32]" - bit_offset: 0 - bit_size: 16 - - name: MBC - description: Mask Byte Control - bit_offset: 24 - bit_size: 6 - - name: SA - description: Source Address - bit_offset: 30 - bit_size: 1 - - name: AE - description: Address Enable - bit_offset: 31 - bit_size: 1 + - name: ADDRHI + description: MAC Address2 [47:32] + bit_offset: 0 + bit_size: 16 + - name: MBC + description: Mask Byte Control + bit_offset: 24 + bit_size: 6 + - name: SA + description: Source Address + bit_offset: 30 + bit_size: 1 + - name: AE + description: Address Enable + bit_offset: 31 + bit_size: 1 fieldset/MACA2LR: description: Address 2 low register fields: - - name: ADDRLO - description: "MAC Address 2 [31:0]" - bit_offset: 0 - bit_size: 32 + - name: ADDRLO + description: MAC Address 2 [31:0] + bit_offset: 0 + bit_size: 32 fieldset/MACA3HR: description: Address 3 high register fields: - - name: ADDRHI - description: "MAC Address3 [47:32]" - bit_offset: 0 - bit_size: 16 - - name: MBC - description: Mask Byte Control - bit_offset: 24 - bit_size: 6 - - name: SA - description: Source Address - bit_offset: 30 - bit_size: 1 - - name: AE - description: Address Enable - bit_offset: 31 - bit_size: 1 + - name: ADDRHI + description: MAC Address3 [47:32] + bit_offset: 0 + bit_size: 16 + - name: MBC + description: Mask Byte Control + bit_offset: 24 + bit_size: 6 + - name: SA + description: Source Address + bit_offset: 30 + bit_size: 1 + - name: AE + description: Address Enable + bit_offset: 31 + bit_size: 1 fieldset/MACA3LR: description: Address 3 low register fields: - - name: ADDRLO - description: "MAC Address 3 [31:0]" - bit_offset: 0 - bit_size: 32 + - name: ADDRLO + description: MAC Address 3 [31:0] + bit_offset: 0 + bit_size: 32 fieldset/MACACR: description: Auxiliary control register fields: - - name: ATSFC - description: Auxiliary Snapshot FIFO Clear - bit_offset: 0 - bit_size: 1 - - name: ATSEN0 - description: Auxiliary Snapshot 0 Enable - bit_offset: 4 - bit_size: 1 - - name: ATSEN1 - description: Auxiliary Snapshot 1 Enable - bit_offset: 5 - bit_size: 1 - - name: ATSEN2 - description: Auxiliary Snapshot 2 Enable - bit_offset: 6 - bit_size: 1 - - name: ATSEN3 - description: Auxiliary Snapshot 3 Enable - bit_offset: 7 - bit_size: 1 + - name: ATSFC + description: Auxiliary Snapshot FIFO Clear + bit_offset: 0 + bit_size: 1 + - name: ATSEN0 + description: Auxiliary Snapshot 0 Enable + bit_offset: 4 + bit_size: 1 + - name: ATSEN1 + description: Auxiliary Snapshot 1 Enable + bit_offset: 5 + bit_size: 1 + - name: ATSEN2 + description: Auxiliary Snapshot 2 Enable + bit_offset: 6 + bit_size: 1 + - name: ATSEN3 + description: Auxiliary Snapshot 3 Enable + bit_offset: 7 + bit_size: 1 fieldset/MACARPAR: description: ARP address register fields: - - name: ARPPA - description: ARP Protocol Address - bit_offset: 0 - bit_size: 32 + - name: ARPPA + description: ARP Protocol Address + bit_offset: 0 + bit_size: 32 fieldset/MACATSNR: description: Auxiliary timestamp nanoseconds register fields: - - name: AUXTSLO - description: Auxiliary Timestamp - bit_offset: 0 - bit_size: 31 + - name: AUXTSLO + description: Auxiliary Timestamp + bit_offset: 0 + bit_size: 31 fieldset/MACATSSR: description: Auxiliary timestamp seconds register fields: - - name: AUXTSHI - description: Auxiliary Timestamp - bit_offset: 0 - bit_size: 32 + - name: AUXTSHI + description: Auxiliary Timestamp + bit_offset: 0 + bit_size: 32 fieldset/MACCR: description: Operating mode configuration register fields: - - name: RE - description: Receiver Enable - bit_offset: 0 - bit_size: 1 - - name: TE - description: Transmitter Enable - bit_offset: 1 - bit_size: 1 - - name: PRELEN - description: Preamble Length for Transmit Packets - bit_offset: 2 - bit_size: 2 - - name: DC - description: Deferral Check - bit_offset: 4 - bit_size: 1 - - name: BL - description: Back-Off Limit - bit_offset: 5 - bit_size: 2 - - name: DR - description: Disable Retry - bit_offset: 8 - bit_size: 1 - - name: DCRS - description: Disable Carrier Sense During Transmission - bit_offset: 9 - bit_size: 1 - - name: DO - description: Disable Receive Own - bit_offset: 10 - bit_size: 1 - - name: ECRSFD - description: Enable Carrier Sense Before Transmission in Full-Duplex Mode - bit_offset: 11 - bit_size: 1 - - name: LM - description: Loopback Mode - bit_offset: 12 - bit_size: 1 - - name: DM - description: Duplex Mode - bit_offset: 13 - bit_size: 1 - - name: FES - description: MAC Speed - bit_offset: 14 - bit_size: 1 - - name: JE - description: Jumbo Packet Enable - bit_offset: 16 - bit_size: 1 - - name: JD - description: Jabber Disable - bit_offset: 17 - bit_size: 1 - - name: WD - description: Watchdog Disable - bit_offset: 19 - bit_size: 1 - - name: ACS - description: Automatic Pad or CRC Stripping - bit_offset: 20 - bit_size: 1 - - name: CST - description: CRC stripping for Type packets - bit_offset: 21 - bit_size: 1 - - name: S2KP - description: IEEE 802.3as Support for 2K Packets - bit_offset: 22 - bit_size: 1 - - name: GPSLCE - description: Giant Packet Size Limit Control Enable - bit_offset: 23 - bit_size: 1 - - name: IPG - description: Inter-Packet Gap - bit_offset: 24 - bit_size: 3 - - name: IPC - description: Checksum Offload - bit_offset: 27 - bit_size: 1 - - name: SARC - description: Source Address Insertion or Replacement Control - bit_offset: 28 - bit_size: 3 - - name: ARPEN - description: ARP Offload Enable - bit_offset: 31 - bit_size: 1 + - name: RE + description: Receiver Enable + bit_offset: 0 + bit_size: 1 + - name: TE + description: Transmitter Enable + bit_offset: 1 + bit_size: 1 + - name: PRELEN + description: Preamble Length for Transmit Packets + bit_offset: 2 + bit_size: 2 + - name: DC + description: Deferral Check + bit_offset: 4 + bit_size: 1 + - name: BL + description: Back-Off Limit + bit_offset: 5 + bit_size: 2 + - name: DR + description: Disable Retry + bit_offset: 8 + bit_size: 1 + - name: DCRS + description: Disable Carrier Sense During Transmission + bit_offset: 9 + bit_size: 1 + - name: DO + description: Disable Receive Own + bit_offset: 10 + bit_size: 1 + - name: ECRSFD + description: Enable Carrier Sense Before Transmission in Full-Duplex Mode + bit_offset: 11 + bit_size: 1 + - name: LM + description: Loopback Mode + bit_offset: 12 + bit_size: 1 + - name: DM + description: Duplex Mode + bit_offset: 13 + bit_size: 1 + - name: FES + description: MAC Speed + bit_offset: 14 + bit_size: 1 + - name: JE + description: Jumbo Packet Enable + bit_offset: 16 + bit_size: 1 + - name: JD + description: Jabber Disable + bit_offset: 17 + bit_size: 1 + - name: WD + description: Watchdog Disable + bit_offset: 19 + bit_size: 1 + - name: ACS + description: Automatic Pad or CRC Stripping + bit_offset: 20 + bit_size: 1 + - name: CST + description: CRC stripping for Type packets + bit_offset: 21 + bit_size: 1 + - name: S2KP + description: IEEE 802.3as Support for 2K Packets + bit_offset: 22 + bit_size: 1 + - name: GPSLCE + description: Giant Packet Size Limit Control Enable + bit_offset: 23 + bit_size: 1 + - name: IPG + description: Inter-Packet Gap + bit_offset: 24 + bit_size: 3 + - name: IPC + description: Checksum Offload + bit_offset: 27 + bit_size: 1 + - name: SARC + description: Source Address Insertion or Replacement Control + bit_offset: 28 + bit_size: 3 + - name: ARPEN + description: ARP Offload Enable + bit_offset: 31 + bit_size: 1 fieldset/MACDR: description: Debug register fields: - - name: RPESTS - description: MAC MII Receive Protocol Engine Status - bit_offset: 0 - bit_size: 1 - - name: RFCFCSTS - description: MAC Receive Packet Controller FIFO Status - bit_offset: 1 - bit_size: 2 - - name: TPESTS - description: MAC MII Transmit Protocol Engine Status - bit_offset: 16 - bit_size: 1 - - name: TFCSTS - description: MAC Transmit Packet Controller Status - bit_offset: 17 - bit_size: 2 + - name: RPESTS + description: MAC MII Receive Protocol Engine Status + bit_offset: 0 + bit_size: 1 + - name: RFCFCSTS + description: MAC Receive Packet Controller FIFO Status + bit_offset: 1 + bit_size: 2 + - name: TPESTS + description: MAC MII Transmit Protocol Engine Status + bit_offset: 16 + bit_size: 1 + - name: TFCSTS + description: MAC Transmit Packet Controller Status + bit_offset: 17 + bit_size: 2 fieldset/MACECR: description: Extended operating mode configuration register fields: - - name: GPSL - description: Giant Packet Size Limit - bit_offset: 0 - bit_size: 14 - - name: DCRCC - description: Disable CRC Checking for Received Packets - bit_offset: 16 - bit_size: 1 - - name: SPEN - description: Slow Protocol Detection Enable - bit_offset: 17 - bit_size: 1 - - name: USP - description: Unicast Slow Protocol Packet Detect - bit_offset: 18 - bit_size: 1 - - name: EIPGEN - description: Extended Inter-Packet Gap Enable - bit_offset: 24 - bit_size: 1 - - name: EIPG - description: Extended Inter-Packet Gap - bit_offset: 25 - bit_size: 5 + - name: GPSL + description: Giant Packet Size Limit + bit_offset: 0 + bit_size: 14 + - name: DCRCC + description: Disable CRC Checking for Received Packets + bit_offset: 16 + bit_size: 1 + - name: SPEN + description: Slow Protocol Detection Enable + bit_offset: 17 + bit_size: 1 + - name: USP + description: Unicast Slow Protocol Packet Detect + bit_offset: 18 + bit_size: 1 + - name: EIPGEN + description: Extended Inter-Packet Gap Enable + bit_offset: 24 + bit_size: 1 + - name: EIPG + description: Extended Inter-Packet Gap + bit_offset: 25 + bit_size: 5 fieldset/MACHT0R: description: Hash Table 0 register fields: - - name: HT31T0 - description: MAC Hash Table First 32 Bits - bit_offset: 0 - bit_size: 32 + - name: HT31T0 + description: MAC Hash Table First 32 Bits + bit_offset: 0 + bit_size: 32 fieldset/MACHT1R: description: Hash Table 1 register fields: - - name: HT63T32 - description: MAC Hash Table Second 32 Bits - bit_offset: 0 - bit_size: 32 + - name: HT63T32 + description: MAC Hash Table Second 32 Bits + bit_offset: 0 + bit_size: 32 fieldset/MACHWF1R: description: HW feature 1 register fields: - - name: RXFIFOSIZE - description: MTL Receive FIFO Size - bit_offset: 0 - bit_size: 5 - - name: TXFIFOSIZE - description: MTL Transmit FIFO Size - bit_offset: 6 - bit_size: 5 - - name: OSTEN - description: One-Step Timestamping Enable - bit_offset: 11 - bit_size: 1 - - name: PTOEN - description: PTP Offload Enable - bit_offset: 12 - bit_size: 1 - - name: ADVTHWORD - description: IEEE 1588 High Word Register Enable - bit_offset: 13 - bit_size: 1 - - name: ADDR64 - description: Address width - bit_offset: 14 - bit_size: 2 - - name: DCBEN - description: DCB Feature Enable - bit_offset: 16 - bit_size: 1 - - name: SPHEN - description: Split Header Feature Enable - bit_offset: 17 - bit_size: 1 - - name: TSOEN - description: TCP Segmentation Offload Enable - bit_offset: 18 - bit_size: 1 - - name: DBGMEMA - description: DMA Debug Registers Enable - bit_offset: 19 - bit_size: 1 - - name: AVSEL - description: AV Feature Enable - bit_offset: 20 - bit_size: 1 - - name: HASHTBLSZ - description: Hash Table Size - bit_offset: 24 - bit_size: 2 - - name: L3L4FNUM - description: Total number of L3 or L4 Filters - bit_offset: 27 - bit_size: 4 + - name: RXFIFOSIZE + description: MTL Receive FIFO Size + bit_offset: 0 + bit_size: 5 + - name: TXFIFOSIZE + description: MTL Transmit FIFO Size + bit_offset: 6 + bit_size: 5 + - name: OSTEN + description: One-Step Timestamping Enable + bit_offset: 11 + bit_size: 1 + - name: PTOEN + description: PTP Offload Enable + bit_offset: 12 + bit_size: 1 + - name: ADVTHWORD + description: IEEE 1588 High Word Register Enable + bit_offset: 13 + bit_size: 1 + - name: ADDR64 + description: Address width + bit_offset: 14 + bit_size: 2 + - name: DCBEN + description: DCB Feature Enable + bit_offset: 16 + bit_size: 1 + - name: SPHEN + description: Split Header Feature Enable + bit_offset: 17 + bit_size: 1 + - name: TSOEN + description: TCP Segmentation Offload Enable + bit_offset: 18 + bit_size: 1 + - name: DBGMEMA + description: DMA Debug Registers Enable + bit_offset: 19 + bit_size: 1 + - name: AVSEL + description: AV Feature Enable + bit_offset: 20 + bit_size: 1 + - name: HASHTBLSZ + description: Hash Table Size + bit_offset: 24 + bit_size: 2 + - name: L3L4FNUM + description: Total number of L3 or L4 Filters + bit_offset: 27 + bit_size: 4 fieldset/MACHWF2R: description: HW feature 2 register fields: - - name: RXQCNT - description: Number of MTL Receive Queues - bit_offset: 0 - bit_size: 4 - - name: TXQCNT - description: Number of MTL Transmit Queues - bit_offset: 6 - bit_size: 4 - - name: RXCHCNT - description: Number of DMA Receive Channels - bit_offset: 12 - bit_size: 4 - - name: TXCHCNT - description: Number of DMA Transmit Channels - bit_offset: 18 - bit_size: 4 - - name: PPSOUTNUM - description: Number of PPS Outputs - bit_offset: 24 - bit_size: 3 - - name: AUXSNAPNUM - description: Number of Auxiliary Snapshot Inputs - bit_offset: 28 - bit_size: 3 + - name: RXQCNT + description: Number of MTL Receive Queues + bit_offset: 0 + bit_size: 4 + - name: TXQCNT + description: Number of MTL Transmit Queues + bit_offset: 6 + bit_size: 4 + - name: RXCHCNT + description: Number of DMA Receive Channels + bit_offset: 12 + bit_size: 4 + - name: TXCHCNT + description: Number of DMA Transmit Channels + bit_offset: 18 + bit_size: 4 + - name: PPSOUTNUM + description: Number of PPS Outputs + bit_offset: 24 + bit_size: 3 + - name: AUXSNAPNUM + description: Number of Auxiliary Snapshot Inputs + bit_offset: 28 + bit_size: 3 fieldset/MACIER: description: Interrupt enable register fields: - - name: PHYIE - description: PHY Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: PMTIE - description: PMT Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: LPIIE - description: LPI Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: TSIE - description: Timestamp Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: TXSTSIE - description: Transmit Status Interrupt Enable - bit_offset: 13 - bit_size: 1 - - name: RXSTSIE - description: Receive Status Interrupt Enable - bit_offset: 14 - bit_size: 1 + - name: PHYIE + description: PHY Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: PMTIE + description: PMT Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: LPIIE + description: LPI Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: TSIE + description: Timestamp Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: TXSTSIE + description: Transmit Status Interrupt Enable + bit_offset: 13 + bit_size: 1 + - name: RXSTSIE + description: Receive Status Interrupt Enable + bit_offset: 14 + bit_size: 1 fieldset/MACISR: description: Interrupt status register fields: - - name: PHYIS - description: PHY Interrupt - bit_offset: 3 - bit_size: 1 - - name: PMTIS - description: PMT Interrupt Status - bit_offset: 4 - bit_size: 1 - - name: LPIIS - description: LPI Interrupt Status - bit_offset: 5 - bit_size: 1 - - name: MMCIS - description: MMC Interrupt Status - bit_offset: 8 - bit_size: 1 - - name: MMCRXIS - description: MMC Receive Interrupt Status - bit_offset: 9 - bit_size: 1 - - name: MMCTXIS - description: MMC Transmit Interrupt Status - bit_offset: 10 - bit_size: 1 - - name: TSIS - description: Timestamp Interrupt Status - bit_offset: 12 - bit_size: 1 - - name: TXSTSIS - description: Transmit Status Interrupt - bit_offset: 13 - bit_size: 1 - - name: RXSTSIS - description: Receive Status Interrupt - bit_offset: 14 - bit_size: 1 + - name: PHYIS + description: PHY Interrupt + bit_offset: 3 + bit_size: 1 + - name: PMTIS + description: PMT Interrupt Status + bit_offset: 4 + bit_size: 1 + - name: LPIIS + description: LPI Interrupt Status + bit_offset: 5 + bit_size: 1 + - name: MMCIS + description: MMC Interrupt Status + bit_offset: 8 + bit_size: 1 + - name: MMCRXIS + description: MMC Receive Interrupt Status + bit_offset: 9 + bit_size: 1 + - name: MMCTXIS + description: MMC Transmit Interrupt Status + bit_offset: 10 + bit_size: 1 + - name: TSIS + description: Timestamp Interrupt Status + bit_offset: 12 + bit_size: 1 + - name: TXSTSIS + description: Transmit Status Interrupt + bit_offset: 13 + bit_size: 1 + - name: RXSTSIS + description: Receive Status Interrupt + bit_offset: 14 + bit_size: 1 fieldset/MACIVIR: description: Inner VLAN inclusion register fields: - - name: VLT - description: VLAN Tag for Transmit Packets - bit_offset: 0 - bit_size: 16 - - name: VLC - description: VLAN Tag Control in Transmit Packets - bit_offset: 16 - bit_size: 2 - - name: VLP - description: VLAN Priority Control - bit_offset: 18 - bit_size: 1 - - name: CSVL - description: C-VLAN or S-VLAN - bit_offset: 19 - bit_size: 1 - - name: VLTI - description: VLAN Tag Input - bit_offset: 20 - bit_size: 1 + - name: VLT + description: VLAN Tag for Transmit Packets + bit_offset: 0 + bit_size: 16 + - name: VLC + description: VLAN Tag Control in Transmit Packets + bit_offset: 16 + bit_size: 2 + - name: VLP + description: VLAN Priority Control + bit_offset: 18 + bit_size: 1 + - name: CSVL + description: C-VLAN or S-VLAN + bit_offset: 19 + bit_size: 1 + - name: VLTI + description: VLAN Tag Input + bit_offset: 20 + bit_size: 1 fieldset/MACL3A00R: description: MACL3A00R fields: - - name: L3A00 - description: Layer 3 Address 0 Field - bit_offset: 0 - bit_size: 32 + - name: L3A00 + description: Layer 3 Address 0 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A01R: description: Layer3 address 0 filter 1 Register fields: - - name: L3A01 - description: Layer 3 Address 0 Field - bit_offset: 0 - bit_size: 32 + - name: L3A01 + description: Layer 3 Address 0 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A10R: description: Layer3 address 1 filter 0 register fields: - - name: L3A10 - description: Layer 3 Address 1 Field - bit_offset: 0 - bit_size: 32 + - name: L3A10 + description: Layer 3 Address 1 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A11R: description: Layer3 address 1 filter 1 register fields: - - name: L3A11 - description: Layer 3 Address 1 Field - bit_offset: 0 - bit_size: 32 + - name: L3A11 + description: Layer 3 Address 1 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A20: description: Layer3 Address 2 filter 0 register fields: - - name: L3A20 - description: Layer 3 Address 2 Field - bit_offset: 0 - bit_size: 32 + - name: L3A20 + description: Layer 3 Address 2 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A21R: description: Layer3 address 2 filter 1 Register fields: - - name: L3A21 - description: Layer 3 Address 2 Field - bit_offset: 0 - bit_size: 32 + - name: L3A21 + description: Layer 3 Address 2 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A30: description: Layer3 Address 3 filter 0 register fields: - - name: L3A30 - description: Layer 3 Address 3 Field - bit_offset: 0 - bit_size: 32 + - name: L3A30 + description: Layer 3 Address 3 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3A31R: description: Layer3 address 3 filter 1 register fields: - - name: L3A31 - description: Layer 3 Address 3 Field - bit_offset: 0 - bit_size: 32 + - name: L3A31 + description: Layer 3 Address 3 Field + bit_offset: 0 + bit_size: 32 fieldset/MACL3L4C0R: description: L3 and L4 control 0 register fields: - - name: L3PEN0 - description: Layer 3 Protocol Enable - bit_offset: 0 - bit_size: 1 - - name: L3SAM0 - description: Layer 3 IP SA Match Enable - bit_offset: 2 - bit_size: 1 - - name: L3SAIM0 - description: Layer 3 IP SA Inverse Match Enable - bit_offset: 3 - bit_size: 1 - - name: L3DAM0 - description: Layer 3 IP DA Match Enable - bit_offset: 4 - bit_size: 1 - - name: L3DAIM0 - description: Layer 3 IP DA Inverse Match Enable - bit_offset: 5 - bit_size: 1 - - name: L3HSBM0 - description: Layer 3 IP SA Higher Bits Match - bit_offset: 6 - bit_size: 5 - - name: L3HDBM0 - description: Layer 3 IP DA Higher Bits Match - bit_offset: 11 - bit_size: 5 - - name: L4PEN0 - description: Layer 4 Protocol Enable - bit_offset: 16 - bit_size: 1 - - name: L4SPM0 - description: Layer 4 Source Port Match Enable - bit_offset: 18 - bit_size: 1 - - name: L4SPIM0 - description: Layer 4 Source Port Inverse Match Enable - bit_offset: 19 - bit_size: 1 - - name: L4DPM0 - description: Layer 4 Destination Port Match Enable - bit_offset: 20 - bit_size: 1 - - name: L4DPIM0 - description: Layer 4 Destination Port Inverse Match Enable - bit_offset: 21 - bit_size: 1 + - name: L3PEN0 + description: Layer 3 Protocol Enable + bit_offset: 0 + bit_size: 1 + - name: L3SAM0 + description: Layer 3 IP SA Match Enable + bit_offset: 2 + bit_size: 1 + - name: L3SAIM0 + description: Layer 3 IP SA Inverse Match Enable + bit_offset: 3 + bit_size: 1 + - name: L3DAM0 + description: Layer 3 IP DA Match Enable + bit_offset: 4 + bit_size: 1 + - name: L3DAIM0 + description: Layer 3 IP DA Inverse Match Enable + bit_offset: 5 + bit_size: 1 + - name: L3HSBM0 + description: Layer 3 IP SA Higher Bits Match + bit_offset: 6 + bit_size: 5 + - name: L3HDBM0 + description: Layer 3 IP DA Higher Bits Match + bit_offset: 11 + bit_size: 5 + - name: L4PEN0 + description: Layer 4 Protocol Enable + bit_offset: 16 + bit_size: 1 + - name: L4SPM0 + description: Layer 4 Source Port Match Enable + bit_offset: 18 + bit_size: 1 + - name: L4SPIM0 + description: Layer 4 Source Port Inverse Match Enable + bit_offset: 19 + bit_size: 1 + - name: L4DPM0 + description: Layer 4 Destination Port Match Enable + bit_offset: 20 + bit_size: 1 + - name: L4DPIM0 + description: Layer 4 Destination Port Inverse Match Enable + bit_offset: 21 + bit_size: 1 fieldset/MACL3L4C1R: description: L3 and L4 control 1 register fields: - - name: L3PEN1 - description: Layer 3 Protocol Enable - bit_offset: 0 - bit_size: 1 - - name: L3SAM1 - description: Layer 3 IP SA Match Enable - bit_offset: 2 - bit_size: 1 - - name: L3SAIM1 - description: Layer 3 IP SA Inverse Match Enable - bit_offset: 3 - bit_size: 1 - - name: L3DAM1 - description: Layer 3 IP DA Match Enable - bit_offset: 4 - bit_size: 1 - - name: L3DAIM1 - description: Layer 3 IP DA Inverse Match Enable - bit_offset: 5 - bit_size: 1 - - name: L3HSBM1 - description: Layer 3 IP SA Higher Bits Match - bit_offset: 6 - bit_size: 5 - - name: L3HDBM1 - description: Layer 3 IP DA Higher Bits Match - bit_offset: 11 - bit_size: 5 - - name: L4PEN1 - description: Layer 4 Protocol Enable - bit_offset: 16 - bit_size: 1 - - name: L4SPM1 - description: Layer 4 Source Port Match Enable - bit_offset: 18 - bit_size: 1 - - name: L4SPIM1 - description: Layer 4 Source Port Inverse Match Enable - bit_offset: 19 - bit_size: 1 - - name: L4DPM1 - description: Layer 4 Destination Port Match Enable - bit_offset: 20 - bit_size: 1 - - name: L4DPIM1 - description: Layer 4 Destination Port Inverse Match Enable - bit_offset: 21 - bit_size: 1 + - name: L3PEN1 + description: Layer 3 Protocol Enable + bit_offset: 0 + bit_size: 1 + - name: L3SAM1 + description: Layer 3 IP SA Match Enable + bit_offset: 2 + bit_size: 1 + - name: L3SAIM1 + description: Layer 3 IP SA Inverse Match Enable + bit_offset: 3 + bit_size: 1 + - name: L3DAM1 + description: Layer 3 IP DA Match Enable + bit_offset: 4 + bit_size: 1 + - name: L3DAIM1 + description: Layer 3 IP DA Inverse Match Enable + bit_offset: 5 + bit_size: 1 + - name: L3HSBM1 + description: Layer 3 IP SA Higher Bits Match + bit_offset: 6 + bit_size: 5 + - name: L3HDBM1 + description: Layer 3 IP DA Higher Bits Match + bit_offset: 11 + bit_size: 5 + - name: L4PEN1 + description: Layer 4 Protocol Enable + bit_offset: 16 + bit_size: 1 + - name: L4SPM1 + description: Layer 4 Source Port Match Enable + bit_offset: 18 + bit_size: 1 + - name: L4SPIM1 + description: Layer 4 Source Port Inverse Match Enable + bit_offset: 19 + bit_size: 1 + - name: L4DPM1 + description: Layer 4 Destination Port Match Enable + bit_offset: 20 + bit_size: 1 + - name: L4DPIM1 + description: Layer 4 Destination Port Inverse Match Enable + bit_offset: 21 + bit_size: 1 fieldset/MACL4A0R: description: Layer4 address filter 0 register fields: - - name: L4SP0 - description: Layer 4 Source Port Number Field - bit_offset: 0 - bit_size: 16 - - name: L4DP0 - description: Layer 4 Destination Port Number Field - bit_offset: 16 - bit_size: 16 + - name: L4SP0 + description: Layer 4 Source Port Number Field + bit_offset: 0 + bit_size: 16 + - name: L4DP0 + description: Layer 4 Destination Port Number Field + bit_offset: 16 + bit_size: 16 fieldset/MACL4A1R: description: Layer 4 address filter 1 register fields: - - name: L4SP1 - description: Layer 4 Source Port Number Field - bit_offset: 0 - bit_size: 16 - - name: L4DP1 - description: Layer 4 Destination Port Number Field - bit_offset: 16 - bit_size: 16 + - name: L4SP1 + description: Layer 4 Source Port Number Field + bit_offset: 0 + bit_size: 16 + - name: L4DP1 + description: Layer 4 Destination Port Number Field + bit_offset: 16 + bit_size: 16 fieldset/MACLCSR: description: LPI control status register fields: - - name: TLPIEN - description: Transmit LPI Entry - bit_offset: 0 - bit_size: 1 - - name: TLPIEX - description: Transmit LPI Exit - bit_offset: 1 - bit_size: 1 - - name: RLPIEN - description: Receive LPI Entry - bit_offset: 2 - bit_size: 1 - - name: RLPIEX - description: Receive LPI Exit - bit_offset: 3 - bit_size: 1 - - name: TLPIST - description: Transmit LPI State - bit_offset: 8 - bit_size: 1 - - name: RLPIST - description: Receive LPI State - bit_offset: 9 - bit_size: 1 - - name: LPIEN - description: LPI Enable - bit_offset: 16 - bit_size: 1 - - name: PLS - description: PHY Link Status - bit_offset: 17 - bit_size: 1 - - name: PLSEN - description: PHY Link Status Enable - bit_offset: 18 - bit_size: 1 - - name: LPITXA - description: LPI Tx Automate - bit_offset: 19 - bit_size: 1 - - name: LPITE - description: LPI Timer Enable - bit_offset: 20 - bit_size: 1 + - name: TLPIEN + description: Transmit LPI Entry + bit_offset: 0 + bit_size: 1 + - name: TLPIEX + description: Transmit LPI Exit + bit_offset: 1 + bit_size: 1 + - name: RLPIEN + description: Receive LPI Entry + bit_offset: 2 + bit_size: 1 + - name: RLPIEX + description: Receive LPI Exit + bit_offset: 3 + bit_size: 1 + - name: TLPIST + description: Transmit LPI State + bit_offset: 8 + bit_size: 1 + - name: RLPIST + description: Receive LPI State + bit_offset: 9 + bit_size: 1 + - name: LPIEN + description: LPI Enable + bit_offset: 16 + bit_size: 1 + - name: PLS + description: PHY Link Status + bit_offset: 17 + bit_size: 1 + - name: PLSEN + description: PHY Link Status Enable + bit_offset: 18 + bit_size: 1 + - name: LPITXA + description: LPI Tx Automate + bit_offset: 19 + bit_size: 1 + - name: LPITE + description: LPI Timer Enable + bit_offset: 20 + bit_size: 1 fieldset/MACLETR: description: LPI entry timer register fields: - - name: LPIET - description: LPI Entry Timer - bit_offset: 3 - bit_size: 17 + - name: LPIET + description: LPI Entry Timer + bit_offset: 3 + bit_size: 17 fieldset/MACLMIR: description: Log message interval register fields: - - name: LSI - description: Log Sync Interval - bit_offset: 0 - bit_size: 8 - - name: DRSYNCR - description: Delay_Req to SYNC Ratio - bit_offset: 8 - bit_size: 3 - - name: LMPDRI - description: Log Min Pdelay_Req Interval - bit_offset: 24 - bit_size: 8 + - name: LSI + description: Log Sync Interval + bit_offset: 0 + bit_size: 8 + - name: DRSYNCR + description: Delay_Req to SYNC Ratio + bit_offset: 8 + bit_size: 3 + - name: LMPDRI + description: Log Min Pdelay_Req Interval + bit_offset: 24 + bit_size: 8 fieldset/MACLTCR: description: LPI timers control register fields: - - name: TWT - description: LPI TW Timer - bit_offset: 0 - bit_size: 16 - - name: LST - description: LPI LS Timer - bit_offset: 16 - bit_size: 10 + - name: TWT + description: LPI TW Timer + bit_offset: 0 + bit_size: 16 + - name: LST + description: LPI LS Timer + bit_offset: 16 + bit_size: 10 fieldset/MACMDIOAR: description: MDIO address register fields: - - name: MB - description: MII Busy - bit_offset: 0 - bit_size: 1 - - name: C45E - description: Clause 45 PHY Enable - bit_offset: 1 - bit_size: 1 - - name: GOC - description: MII Operation Command - bit_offset: 2 - bit_size: 2 - - name: SKAP - description: Skip Address Packet - bit_offset: 4 - bit_size: 1 - - name: CR - description: CSR Clock Range - bit_offset: 8 - bit_size: 4 - - name: NTC - description: Number of Training Clocks - bit_offset: 12 - bit_size: 3 - - name: RDA - description: Register/Device Address - bit_offset: 16 - bit_size: 5 - - name: PA - description: Physical Layer Address - bit_offset: 21 - bit_size: 5 - - name: BTB - description: Back to Back transactions - bit_offset: 26 - bit_size: 1 - - name: PSE - description: Preamble Suppression Enable - bit_offset: 27 - bit_size: 1 + - name: MB + description: MII Busy + bit_offset: 0 + bit_size: 1 + - name: C45E + description: Clause 45 PHY Enable + bit_offset: 1 + bit_size: 1 + - name: GOC + description: MII Operation Command + bit_offset: 2 + bit_size: 2 + - name: SKAP + description: Skip Address Packet + bit_offset: 4 + bit_size: 1 + - name: CR + description: CSR Clock Range + bit_offset: 8 + bit_size: 4 + - name: NTC + description: Number of Training Clocks + bit_offset: 12 + bit_size: 3 + - name: RDA + description: Register/Device Address + bit_offset: 16 + bit_size: 5 + - name: PA + description: Physical Layer Address + bit_offset: 21 + bit_size: 5 + - name: BTB + description: Back to Back transactions + bit_offset: 26 + bit_size: 1 + - name: PSE + description: Preamble Suppression Enable + bit_offset: 27 + bit_size: 1 fieldset/MACMDIODR: description: MDIO data register fields: - - name: MD - description: MII Data - bit_offset: 0 - bit_size: 16 - - name: RA - description: Register Address - bit_offset: 16 - bit_size: 16 + - name: MD + description: MII Data + bit_offset: 0 + bit_size: 16 + - name: RA + description: Register Address + bit_offset: 16 + bit_size: 16 fieldset/MACPCSR: description: PMT control status register fields: - - name: PWRDWN - description: Power Down - bit_offset: 0 - bit_size: 1 - - name: MGKPKTEN - description: Magic Packet Enable - bit_offset: 1 - bit_size: 1 - - name: RWKPKTEN - description: Remote wakeup Packet Enable - bit_offset: 2 - bit_size: 1 - - name: MGKPRCVD - description: Magic Packet Received - bit_offset: 5 - bit_size: 1 - - name: RWKPRCVD - description: Remote wakeup Packet Received - bit_offset: 6 - bit_size: 1 - - name: GLBLUCAST - description: Global Unicast - bit_offset: 9 - bit_size: 1 - - name: RWKPFE - description: Remote wakeup Packet Forwarding Enable - bit_offset: 10 - bit_size: 1 - - name: RWKPTR - description: Remote wakeup FIFO Pointer - bit_offset: 24 - bit_size: 5 - - name: RWKFILTRST - description: Remote wakeup Packet Filter Register Pointer Reset - bit_offset: 31 - bit_size: 1 + - name: PWRDWN + description: Power Down + bit_offset: 0 + bit_size: 1 + - name: MGKPKTEN + description: Magic Packet Enable + bit_offset: 1 + bit_size: 1 + - name: RWKPKTEN + description: Remote wakeup Packet Enable + bit_offset: 2 + bit_size: 1 + - name: MGKPRCVD + description: Magic Packet Received + bit_offset: 5 + bit_size: 1 + - name: RWKPRCVD + description: Remote wakeup Packet Received + bit_offset: 6 + bit_size: 1 + - name: GLBLUCAST + description: Global Unicast + bit_offset: 9 + bit_size: 1 + - name: RWKPFE + description: Remote wakeup Packet Forwarding Enable + bit_offset: 10 + bit_size: 1 + - name: RWKPTR + description: Remote wakeup FIFO Pointer + bit_offset: 24 + bit_size: 5 + - name: RWKFILTRST + description: Remote wakeup Packet Filter Register Pointer Reset + bit_offset: 31 + bit_size: 1 fieldset/MACPFR: description: Packet filtering control register fields: - - name: PR - description: Promiscuous Mode - bit_offset: 0 - bit_size: 1 - - name: HUC - description: Hash Unicast - bit_offset: 1 - bit_size: 1 - - name: HMC - description: Hash Multicast - bit_offset: 2 - bit_size: 1 - - name: DAIF - description: DA Inverse Filtering - bit_offset: 3 - bit_size: 1 - - name: PM - description: Pass All Multicast - bit_offset: 4 - bit_size: 1 - - name: DBF - description: Disable Broadcast Packets - bit_offset: 5 - bit_size: 1 - - name: PCF - description: Pass Control Packets - bit_offset: 6 - bit_size: 2 - - name: SAIF - description: SA Inverse Filtering - bit_offset: 8 - bit_size: 1 - - name: SAF - description: Source Address Filter Enable - bit_offset: 9 - bit_size: 1 - - name: HPF - description: Hash or Perfect Filter - bit_offset: 10 - bit_size: 1 - - name: VTFE - description: VLAN Tag Filter Enable - bit_offset: 16 - bit_size: 1 - - name: IPFE - description: Layer 3 and Layer 4 Filter Enable - bit_offset: 20 - bit_size: 1 - - name: DNTU - description: Drop Non-TCP/UDP over IP Packets - bit_offset: 21 - bit_size: 1 - - name: RA - description: Receive All - bit_offset: 31 - bit_size: 1 + - name: PR + description: Promiscuous Mode + bit_offset: 0 + bit_size: 1 + - name: HUC + description: Hash Unicast + bit_offset: 1 + bit_size: 1 + - name: HMC + description: Hash Multicast + bit_offset: 2 + bit_size: 1 + - name: DAIF + description: DA Inverse Filtering + bit_offset: 3 + bit_size: 1 + - name: PM + description: Pass All Multicast + bit_offset: 4 + bit_size: 1 + - name: DBF + description: Disable Broadcast Packets + bit_offset: 5 + bit_size: 1 + - name: PCF + description: Pass Control Packets + bit_offset: 6 + bit_size: 2 + - name: SAIF + description: SA Inverse Filtering + bit_offset: 8 + bit_size: 1 + - name: SAF + description: Source Address Filter Enable + bit_offset: 9 + bit_size: 1 + - name: HPF + description: Hash or Perfect Filter + bit_offset: 10 + bit_size: 1 + - name: VTFE + description: VLAN Tag Filter Enable + bit_offset: 16 + bit_size: 1 + - name: IPFE + description: Layer 3 and Layer 4 Filter Enable + bit_offset: 20 + bit_size: 1 + - name: DNTU + description: Drop Non-TCP/UDP over IP Packets + bit_offset: 21 + bit_size: 1 + - name: RA + description: Receive All + bit_offset: 31 + bit_size: 1 fieldset/MACPOCR: description: PTP Offload control register fields: - - name: PTOEN - description: PTP Offload Enable - bit_offset: 0 - bit_size: 1 - - name: ASYNCEN - description: Automatic PTP SYNC message Enable - bit_offset: 1 - bit_size: 1 - - name: APDREQEN - description: Automatic PTP Pdelay_Req message Enable - bit_offset: 2 - bit_size: 1 - - name: ASYNCTRIG - description: Automatic PTP SYNC message Trigger - bit_offset: 4 - bit_size: 1 - - name: APDREQTRIG - description: Automatic PTP Pdelay_Req message Trigger - bit_offset: 5 - bit_size: 1 - - name: DRRDIS - description: Disable PTO Delay Request/Response response generation - bit_offset: 6 - bit_size: 1 - - name: DN - description: Domain Number - bit_offset: 8 - bit_size: 8 + - name: PTOEN + description: PTP Offload Enable + bit_offset: 0 + bit_size: 1 + - name: ASYNCEN + description: Automatic PTP SYNC message Enable + bit_offset: 1 + bit_size: 1 + - name: APDREQEN + description: Automatic PTP Pdelay_Req message Enable + bit_offset: 2 + bit_size: 1 + - name: ASYNCTRIG + description: Automatic PTP SYNC message Trigger + bit_offset: 4 + bit_size: 1 + - name: APDREQTRIG + description: Automatic PTP Pdelay_Req message Trigger + bit_offset: 5 + bit_size: 1 + - name: DRRDIS + description: Disable PTO Delay Request/Response response generation + bit_offset: 6 + bit_size: 1 + - name: DN + description: Domain Number + bit_offset: 8 + bit_size: 8 fieldset/MACPPSCR: description: PPS control register fields: - - name: PPSCTRL - description: "Flexible PPS Output (ptp_pps_o[0]) Control or PPSCTRL PPS Output Frequency Control if PPSEN0 is cleared" - bit_offset: 0 - bit_size: 4 - - name: PPSEN0 - description: Flexible PPS Output Mode Enable - bit_offset: 4 - bit_size: 1 - - name: TRGTMODSEL0 - description: Target Time Register Mode for PPS Output - bit_offset: 5 - bit_size: 2 + - name: PPSCTRL + description: Flexible PPS Output (ptp_pps_o[0]) Control or PPSCTRL PPS Output Frequency Control if PPSEN0 is cleared + bit_offset: 0 + bit_size: 4 + - name: PPSEN0 + description: Flexible PPS Output Mode Enable + bit_offset: 4 + bit_size: 1 + - name: TRGTMODSEL0 + description: Target Time Register Mode for PPS Output + bit_offset: 5 + bit_size: 2 fieldset/MACPPSIR: description: PPS interval register fields: - - name: PPSINT0 - description: PPS Output Signal Interval - bit_offset: 0 - bit_size: 32 + - name: PPSINT0 + description: PPS Output Signal Interval + bit_offset: 0 + bit_size: 32 fieldset/MACPPSTTNR: description: PPS target time nanoseconds register fields: - - name: TTSL0 - description: Target Time Low for PPS Register - bit_offset: 0 - bit_size: 31 - - name: TRGTBUSY0 - description: PPS Target Time Register Busy - bit_offset: 31 - bit_size: 1 + - name: TTSL0 + description: Target Time Low for PPS Register + bit_offset: 0 + bit_size: 31 + - name: TRGTBUSY0 + description: PPS Target Time Register Busy + bit_offset: 31 + bit_size: 1 fieldset/MACPPSTTSR: description: PPS target time seconds register fields: - - name: TSTRH0 - description: PPS Target Time Seconds Register - bit_offset: 0 - bit_size: 31 + - name: TSTRH0 + description: PPS Target Time Seconds Register + bit_offset: 0 + bit_size: 31 fieldset/MACPPSWR: description: PPS width register fields: - - name: PPSWIDTH0 - description: PPS Output Signal Width - bit_offset: 0 - bit_size: 32 + - name: PPSWIDTH0 + description: PPS Output Signal Width + bit_offset: 0 + bit_size: 32 fieldset/MACQTxFCR: description: Tx Queue flow control register fields: - - name: FCB_BPA - description: Flow Control Busy or Backpressure Activate - bit_offset: 0 - bit_size: 1 - - name: TFE - description: Transmit Flow Control Enable - bit_offset: 1 - bit_size: 1 - - name: PLT - description: Pause Low Threshold - bit_offset: 4 - bit_size: 3 - - name: DZPQ - description: Disable Zero-Quanta Pause - bit_offset: 7 - bit_size: 1 - - name: PT - description: Pause Time - bit_offset: 16 - bit_size: 16 + - name: FCB_BPA + description: Flow Control Busy or Backpressure Activate + bit_offset: 0 + bit_size: 1 + - name: TFE + description: Transmit Flow Control Enable + bit_offset: 1 + bit_size: 1 + - name: PLT + description: Pause Low Threshold + bit_offset: 4 + bit_size: 3 + - name: DZPQ + description: Disable Zero-Quanta Pause + bit_offset: 7 + bit_size: 1 + - name: PT + description: Pause Time + bit_offset: 16 + bit_size: 16 fieldset/MACRWKPFR: description: Remove wakeup packet filter register fields: - - name: MACRWKPFR - description: Remote wakeup packet filter - bit_offset: 0 - bit_size: 32 + - name: MACRWKPFR + description: Remote wakeup packet filter + bit_offset: 0 + bit_size: 32 fieldset/MACRxFCR: description: Rx flow control register fields: - - name: RFE - description: Receive Flow Control Enable - bit_offset: 0 - bit_size: 1 - - name: UP - description: Unicast Pause Packet Detect - bit_offset: 1 - bit_size: 1 + - name: RFE + description: Receive Flow Control Enable + bit_offset: 0 + bit_size: 1 + - name: UP + description: Unicast Pause Packet Detect + bit_offset: 1 + bit_size: 1 fieldset/MACRxTxSR: description: Rx Tx status register fields: - - name: TJT - description: Transmit Jabber Timeout - bit_offset: 0 - bit_size: 1 - - name: NCARR - description: No Carrier - bit_offset: 1 - bit_size: 1 - - name: LCARR - description: Loss of Carrier - bit_offset: 2 - bit_size: 1 - - name: EXDEF - description: Excessive Deferral - bit_offset: 3 - bit_size: 1 - - name: LCOL - description: Late Collision - bit_offset: 4 - bit_size: 1 - - name: EXCOL - description: Excessive Collisions - bit_offset: 5 - bit_size: 1 - - name: RWT - description: Receive Watchdog Timeout - bit_offset: 8 - bit_size: 1 + - name: TJT + description: Transmit Jabber Timeout + bit_offset: 0 + bit_size: 1 + - name: NCARR + description: No Carrier + bit_offset: 1 + bit_size: 1 + - name: LCARR + description: Loss of Carrier + bit_offset: 2 + bit_size: 1 + - name: EXDEF + description: Excessive Deferral + bit_offset: 3 + bit_size: 1 + - name: LCOL + description: Late Collision + bit_offset: 4 + bit_size: 1 + - name: EXCOL + description: Excessive Collisions + bit_offset: 5 + bit_size: 1 + - name: RWT + description: Receive Watchdog Timeout + bit_offset: 8 + bit_size: 1 fieldset/MACSPI0R: description: PTP Source Port Identity 0 Register fields: - - name: SPI0 - description: Source Port Identity 0 - bit_offset: 0 - bit_size: 32 + - name: SPI0 + description: Source Port Identity 0 + bit_offset: 0 + bit_size: 32 fieldset/MACSPI1R: description: PTP Source port identity 1 register fields: - - name: SPI1 - description: Source Port Identity 1 - bit_offset: 0 - bit_size: 32 + - name: SPI1 + description: Source Port Identity 1 + bit_offset: 0 + bit_size: 32 fieldset/MACSPI2R: description: PTP Source port identity 2 register fields: - - name: SPI2 - description: Source Port Identity 2 - bit_offset: 0 - bit_size: 16 + - name: SPI2 + description: Source Port Identity 2 + bit_offset: 0 + bit_size: 16 fieldset/MACSSIR: description: Sub-second increment register fields: - - name: SNSINC - description: Sub-nanosecond Increment Value - bit_offset: 8 - bit_size: 8 - - name: SSINC - description: Sub-second Increment Value - bit_offset: 16 - bit_size: 8 + - name: SNSINC + description: Sub-nanosecond Increment Value + bit_offset: 8 + bit_size: 8 + - name: SSINC + description: Sub-second Increment Value + bit_offset: 16 + bit_size: 8 fieldset/MACSTNR: description: System time nanoseconds register fields: - - name: TSSS - description: Timestamp Sub-seconds - bit_offset: 0 - bit_size: 31 + - name: TSSS + description: Timestamp Sub-seconds + bit_offset: 0 + bit_size: 31 fieldset/MACSTNUR: description: System time nanoseconds update register fields: - - name: TSSS - description: Timestamp Sub-seconds - bit_offset: 0 - bit_size: 31 - - name: ADDSUB - description: Add or Subtract Time - bit_offset: 31 - bit_size: 1 + - name: TSSS + description: Timestamp Sub-seconds + bit_offset: 0 + bit_size: 31 + - name: ADDSUB + description: Add or Subtract Time + bit_offset: 31 + bit_size: 1 fieldset/MACSTSR: description: System time seconds register fields: - - name: TSS - description: Timestamp Second - bit_offset: 0 - bit_size: 32 + - name: TSS + description: Timestamp Second + bit_offset: 0 + bit_size: 32 fieldset/MACSTSUR: description: System time seconds update register fields: - - name: TSS - description: Timestamp Seconds - bit_offset: 0 - bit_size: 32 + - name: TSS + description: Timestamp Seconds + bit_offset: 0 + bit_size: 32 fieldset/MACTSAR: description: Timestamp addend register fields: - - name: TSAR - description: Timestamp Addend Register - bit_offset: 0 - bit_size: 32 + - name: TSAR + description: Timestamp Addend Register + bit_offset: 0 + bit_size: 32 fieldset/MACTSCR: description: Timestamp control Register fields: - - name: TSENA - description: Enable Timestamp - bit_offset: 0 - bit_size: 1 - - name: TSCFUPDT - description: Fine or Coarse Timestamp Update - bit_offset: 1 - bit_size: 1 - - name: TSINIT - description: Initialize Timestamp - bit_offset: 2 - bit_size: 1 - - name: TSUPDT - description: Update Timestamp - bit_offset: 3 - bit_size: 1 - - name: TSADDREG - description: Update Addend Register - bit_offset: 5 - bit_size: 1 - - name: TSENALL - description: Enable Timestamp for All Packets - bit_offset: 8 - bit_size: 1 - - name: TSCTRLSSR - description: Timestamp Digital or Binary Rollover Control - bit_offset: 9 - bit_size: 1 - - name: TSVER2ENA - description: Enable PTP Packet Processing for Version 2 Format - bit_offset: 10 - bit_size: 1 - - name: TSIPENA - description: Enable Processing of PTP over Ethernet Packets - bit_offset: 11 - bit_size: 1 - - name: TSIPV6ENA - description: Enable Processing of PTP Packets Sent over IPv6-UDP - bit_offset: 12 - bit_size: 1 - - name: TSIPV4ENA - description: Enable Processing of PTP Packets Sent over IPv4-UDP - bit_offset: 13 - bit_size: 1 - - name: TSEVNTENA - description: Enable Timestamp Snapshot for Event Messages - bit_offset: 14 - bit_size: 1 - - name: TSMSTRENA - description: Enable Snapshot for Messages Relevant to Master - bit_offset: 15 - bit_size: 1 - - name: SNAPTYPSEL - description: Select PTP packets for Taking Snapshots - bit_offset: 16 - bit_size: 2 - - name: TSENMACADDR - description: Enable MAC Address for PTP Packet Filtering - bit_offset: 18 - bit_size: 1 - - name: CSC - description: Enable checksum correction during OST for PTP over UDP/IPv4 packets - bit_offset: 19 - bit_size: 1 - - name: TXTSSTSM - description: Transmit Timestamp Status Mode - bit_offset: 24 - bit_size: 1 + - name: TSENA + description: Enable Timestamp + bit_offset: 0 + bit_size: 1 + - name: TSCFUPDT + description: Fine or Coarse Timestamp Update + bit_offset: 1 + bit_size: 1 + - name: TSINIT + description: Initialize Timestamp + bit_offset: 2 + bit_size: 1 + - name: TSUPDT + description: Update Timestamp + bit_offset: 3 + bit_size: 1 + - name: TSADDREG + description: Update Addend Register + bit_offset: 5 + bit_size: 1 + - name: TSENALL + description: Enable Timestamp for All Packets + bit_offset: 8 + bit_size: 1 + - name: TSCTRLSSR + description: Timestamp Digital or Binary Rollover Control + bit_offset: 9 + bit_size: 1 + - name: TSVER2ENA + description: Enable PTP Packet Processing for Version 2 Format + bit_offset: 10 + bit_size: 1 + - name: TSIPENA + description: Enable Processing of PTP over Ethernet Packets + bit_offset: 11 + bit_size: 1 + - name: TSIPV6ENA + description: Enable Processing of PTP Packets Sent over IPv6-UDP + bit_offset: 12 + bit_size: 1 + - name: TSIPV4ENA + description: Enable Processing of PTP Packets Sent over IPv4-UDP + bit_offset: 13 + bit_size: 1 + - name: TSEVNTENA + description: Enable Timestamp Snapshot for Event Messages + bit_offset: 14 + bit_size: 1 + - name: TSMSTRENA + description: Enable Snapshot for Messages Relevant to Master + bit_offset: 15 + bit_size: 1 + - name: SNAPTYPSEL + description: Select PTP packets for Taking Snapshots + bit_offset: 16 + bit_size: 2 + - name: TSENMACADDR + description: Enable MAC Address for PTP Packet Filtering + bit_offset: 18 + bit_size: 1 + - name: CSC + description: Enable checksum correction during OST for PTP over UDP/IPv4 packets + bit_offset: 19 + bit_size: 1 + - name: TXTSSTSM + description: Transmit Timestamp Status Mode + bit_offset: 24 + bit_size: 1 fieldset/MACTSEACR: description: Timestamp Egress asymmetric correction register fields: - - name: OSTEAC - description: One-Step Timestamp Egress Asymmetry Correction - bit_offset: 0 - bit_size: 32 + - name: OSTEAC + description: One-Step Timestamp Egress Asymmetry Correction + bit_offset: 0 + bit_size: 32 fieldset/MACTSECNR: description: Timestamp Egress correction nanosecond register fields: - - name: TSEC - description: Timestamp Egress Correction - bit_offset: 0 - bit_size: 32 + - name: TSEC + description: Timestamp Egress Correction + bit_offset: 0 + bit_size: 32 fieldset/MACTSIACR: description: Timestamp Ingress asymmetric correction register fields: - - name: OSTIAC - description: One-Step Timestamp Ingress Asymmetry Correction - bit_offset: 0 - bit_size: 32 + - name: OSTIAC + description: One-Step Timestamp Ingress Asymmetry Correction + bit_offset: 0 + bit_size: 32 fieldset/MACTSICNR: description: Timestamp Ingress correction nanosecond register fields: - - name: TSIC - description: Timestamp Ingress Correction - bit_offset: 0 - bit_size: 32 + - name: TSIC + description: Timestamp Ingress Correction + bit_offset: 0 + bit_size: 32 fieldset/MACTSSR: description: Timestamp status register fields: - - name: TSSOVF - description: Timestamp Seconds Overflow - bit_offset: 0 - bit_size: 1 - - name: TSTARGT0 - description: Timestamp Target Time Reached - bit_offset: 1 - bit_size: 1 - - name: AUXTSTRIG - description: Auxiliary Timestamp Trigger Snapshot - bit_offset: 2 - bit_size: 1 - - name: TSTRGTERR0 - description: Timestamp Target Time Error - bit_offset: 3 - bit_size: 1 - - name: TXTSSIS - description: Tx Timestamp Status Interrupt Status - bit_offset: 15 - bit_size: 1 - - name: ATSSTN - description: Auxiliary Timestamp Snapshot Trigger Identifier - bit_offset: 16 - bit_size: 4 - - name: ATSSTM - description: Auxiliary Timestamp Snapshot Trigger Missed - bit_offset: 24 - bit_size: 1 - - name: ATSNS - description: Number of Auxiliary Timestamp Snapshots - bit_offset: 25 - bit_size: 5 + - name: TSSOVF + description: Timestamp Seconds Overflow + bit_offset: 0 + bit_size: 1 + - name: TSTARGT0 + description: Timestamp Target Time Reached + bit_offset: 1 + bit_size: 1 + - name: AUXTSTRIG + description: Auxiliary Timestamp Trigger Snapshot + bit_offset: 2 + bit_size: 1 + - name: TSTRGTERR0 + description: Timestamp Target Time Error + bit_offset: 3 + bit_size: 1 + - name: TXTSSIS + description: Tx Timestamp Status Interrupt Status + bit_offset: 15 + bit_size: 1 + - name: ATSSTN + description: Auxiliary Timestamp Snapshot Trigger Identifier + bit_offset: 16 + bit_size: 4 + - name: ATSSTM + description: Auxiliary Timestamp Snapshot Trigger Missed + bit_offset: 24 + bit_size: 1 + - name: ATSNS + description: Number of Auxiliary Timestamp Snapshots + bit_offset: 25 + bit_size: 5 fieldset/MACTxTSSNR: description: Tx timestamp status nanoseconds register fields: - - name: TXTSSLO - description: Transmit Timestamp Status Low - bit_offset: 0 - bit_size: 31 - - name: TXTSSMIS - description: Transmit Timestamp Status Missed - bit_offset: 31 - bit_size: 1 + - name: TXTSSLO + description: Transmit Timestamp Status Low + bit_offset: 0 + bit_size: 31 + - name: TXTSSMIS + description: Transmit Timestamp Status Missed + bit_offset: 31 + bit_size: 1 fieldset/MACTxTSSSR: description: Tx timestamp status seconds register fields: - - name: TXTSSHI - description: Transmit Timestamp Status High - bit_offset: 0 - bit_size: 32 + - name: TXTSSHI + description: Transmit Timestamp Status High + bit_offset: 0 + bit_size: 32 fieldset/MACVHTR: description: VLAN Hash table register fields: - - name: VLHT - description: VLAN Hash Table - bit_offset: 0 - bit_size: 16 + - name: VLHT + description: VLAN Hash Table + bit_offset: 0 + bit_size: 16 fieldset/MACVIR: description: VLAN inclusion register fields: - - name: VLT - description: VLAN Tag for Transmit Packets - bit_offset: 0 - bit_size: 16 - - name: VLC - description: VLAN Tag Control in Transmit Packets - bit_offset: 16 - bit_size: 2 - - name: VLP - description: VLAN Priority Control - bit_offset: 18 - bit_size: 1 - - name: CSVL - description: C-VLAN or S-VLAN - bit_offset: 19 - bit_size: 1 - - name: VLTI - description: VLAN Tag Input - bit_offset: 20 - bit_size: 1 + - name: VLT + description: VLAN Tag for Transmit Packets + bit_offset: 0 + bit_size: 16 + - name: VLC + description: VLAN Tag Control in Transmit Packets + bit_offset: 16 + bit_size: 2 + - name: VLP + description: VLAN Priority Control + bit_offset: 18 + bit_size: 1 + - name: CSVL + description: C-VLAN or S-VLAN + bit_offset: 19 + bit_size: 1 + - name: VLTI + description: VLAN Tag Input + bit_offset: 20 + bit_size: 1 fieldset/MACVR: description: Version register fields: - - name: SNPSVER - description: IP version - bit_offset: 0 - bit_size: 8 - - name: USERVER - description: ST-defined version - bit_offset: 8 - bit_size: 8 + - name: SNPSVER + description: IP version + bit_offset: 0 + bit_size: 8 + - name: USERVER + description: ST-defined version + bit_offset: 8 + bit_size: 8 fieldset/MACVTR: description: VLAN tag register fields: - - name: VL - description: VLAN Tag Identifier for Receive Packets - bit_offset: 0 - bit_size: 16 - - name: ETV - description: Enable 12-Bit VLAN Tag Comparison - bit_offset: 16 - bit_size: 1 - - name: VTIM - description: VLAN Tag Inverse Match Enable - bit_offset: 17 - bit_size: 1 - - name: ESVL - description: Enable S-VLAN - bit_offset: 18 - bit_size: 1 - - name: ERSVLM - description: Enable Receive S-VLAN Match - bit_offset: 19 - bit_size: 1 - - name: DOVLTC - description: Disable VLAN Type Check - bit_offset: 20 - bit_size: 1 - - name: EVLS - description: Enable VLAN Tag Stripping on Receive - bit_offset: 21 - bit_size: 2 - - name: EVLRXS - description: Enable VLAN Tag in Rx status - bit_offset: 24 - bit_size: 1 - - name: VTHM - description: VLAN Tag Hash Table Match Enable - bit_offset: 25 - bit_size: 1 - - name: EDVLP - description: Enable Double VLAN Processing - bit_offset: 26 - bit_size: 1 - - name: ERIVLT - description: Enable Inner VLAN Tag - bit_offset: 27 - bit_size: 1 - - name: EIVLS - description: Enable Inner VLAN Tag Stripping on Receive - bit_offset: 28 - bit_size: 2 - - name: EIVLRXS - description: Enable Inner VLAN Tag in Rx Status - bit_offset: 31 - bit_size: 1 + - name: VL + description: VLAN Tag Identifier for Receive Packets + bit_offset: 0 + bit_size: 16 + - name: ETV + description: Enable 12-Bit VLAN Tag Comparison + bit_offset: 16 + bit_size: 1 + - name: VTIM + description: VLAN Tag Inverse Match Enable + bit_offset: 17 + bit_size: 1 + - name: ESVL + description: Enable S-VLAN + bit_offset: 18 + bit_size: 1 + - name: ERSVLM + description: Enable Receive S-VLAN Match + bit_offset: 19 + bit_size: 1 + - name: DOVLTC + description: Disable VLAN Type Check + bit_offset: 20 + bit_size: 1 + - name: EVLS + description: Enable VLAN Tag Stripping on Receive + bit_offset: 21 + bit_size: 2 + - name: EVLRXS + description: Enable VLAN Tag in Rx status + bit_offset: 24 + bit_size: 1 + - name: VTHM + description: VLAN Tag Hash Table Match Enable + bit_offset: 25 + bit_size: 1 + - name: EDVLP + description: Enable Double VLAN Processing + bit_offset: 26 + bit_size: 1 + - name: ERIVLT + description: Enable Inner VLAN Tag + bit_offset: 27 + bit_size: 1 + - name: EIVLS + description: Enable Inner VLAN Tag Stripping on Receive + bit_offset: 28 + bit_size: 2 + - name: EIVLRXS + description: Enable Inner VLAN Tag in Rx Status + bit_offset: 31 + bit_size: 1 fieldset/MACWTR: description: Watchdog timeout register fields: - - name: WTO - description: Watchdog Timeout - bit_offset: 0 - bit_size: 4 - - name: PWE - description: Programmable Watchdog Enable - bit_offset: 8 - bit_size: 1 + - name: WTO + description: Watchdog Timeout + bit_offset: 0 + bit_size: 4 + - name: PWE + description: Programmable Watchdog Enable + bit_offset: 8 + bit_size: 1 fieldset/MMC_CONTROL: description: MMC control register fields: - - name: CNTRST - description: Counters Reset - bit_offset: 0 - bit_size: 1 - - name: CNTSTOPRO - description: Counter Stop Rollover - bit_offset: 1 - bit_size: 1 - - name: RSTONRD - description: Reset on Read - bit_offset: 2 - bit_size: 1 - - name: CNTFREEZ - description: MMC Counter Freeze - bit_offset: 3 - bit_size: 1 - - name: CNTPRST - description: Counters Preset - bit_offset: 4 - bit_size: 1 - - name: CNTPRSTLVL - description: Full-Half Preset - bit_offset: 5 - bit_size: 1 - - name: UCDBC - description: Update MMC Counters for Dropped Broadcast Packets - bit_offset: 8 - bit_size: 1 + - name: CNTRST + description: Counters Reset + bit_offset: 0 + bit_size: 1 + - name: CNTSTOPRO + description: Counter Stop Rollover + bit_offset: 1 + bit_size: 1 + - name: RSTONRD + description: Reset on Read + bit_offset: 2 + bit_size: 1 + - name: CNTFREEZ + description: MMC Counter Freeze + bit_offset: 3 + bit_size: 1 + - name: CNTPRST + description: Counters Preset + bit_offset: 4 + bit_size: 1 + - name: CNTPRSTLVL + description: Full-Half Preset + bit_offset: 5 + bit_size: 1 + - name: UCDBC + description: Update MMC Counters for Dropped Broadcast Packets + bit_offset: 8 + bit_size: 1 fieldset/MMC_RX_INTERRUPT: description: MMC Rx interrupt register fields: - - name: RXCRCERPIS - description: MMC Receive CRC Error Packet Counter Interrupt Status - bit_offset: 5 - bit_size: 1 - - name: RXALGNERPIS - description: MMC Receive Alignment Error Packet Counter Interrupt Status - bit_offset: 6 - bit_size: 1 - - name: RXUCGPIS - description: MMC Receive Unicast Good Packet Counter Interrupt Status - bit_offset: 17 - bit_size: 1 - - name: RXLPIUSCIS - description: MMC Receive LPI microsecond counter interrupt status - bit_offset: 26 - bit_size: 1 - - name: RXLPITRCIS - description: MMC Receive LPI transition counter interrupt status - bit_offset: 27 - bit_size: 1 + - name: RXCRCERPIS + description: MMC Receive CRC Error Packet Counter Interrupt Status + bit_offset: 5 + bit_size: 1 + - name: RXALGNERPIS + description: MMC Receive Alignment Error Packet Counter Interrupt Status + bit_offset: 6 + bit_size: 1 + - name: RXUCGPIS + description: MMC Receive Unicast Good Packet Counter Interrupt Status + bit_offset: 17 + bit_size: 1 + - name: RXLPIUSCIS + description: MMC Receive LPI microsecond counter interrupt status + bit_offset: 26 + bit_size: 1 + - name: RXLPITRCIS + description: MMC Receive LPI transition counter interrupt status + bit_offset: 27 + bit_size: 1 fieldset/MMC_RX_INTERRUPT_MASK: description: MMC Rx interrupt mask register fields: - - name: RXCRCERPIM - description: MMC Receive CRC Error Packet Counter Interrupt Mask - bit_offset: 5 - bit_size: 1 - - name: RXALGNERPIM - description: MMC Receive Alignment Error Packet Counter Interrupt Mask - bit_offset: 6 - bit_size: 1 - - name: RXUCGPIM - description: MMC Receive Unicast Good Packet Counter Interrupt Mask - bit_offset: 17 - bit_size: 1 - - name: RXLPIUSCIM - description: MMC Receive LPI microsecond counter interrupt Mask - bit_offset: 26 - bit_size: 1 - - name: RXLPITRCIM - description: MMC Receive LPI transition counter interrupt Mask - bit_offset: 27 - bit_size: 1 + - name: RXCRCERPIM + description: MMC Receive CRC Error Packet Counter Interrupt Mask + bit_offset: 5 + bit_size: 1 + - name: RXALGNERPIM + description: MMC Receive Alignment Error Packet Counter Interrupt Mask + bit_offset: 6 + bit_size: 1 + - name: RXUCGPIM + description: MMC Receive Unicast Good Packet Counter Interrupt Mask + bit_offset: 17 + bit_size: 1 + - name: RXLPIUSCIM + description: MMC Receive LPI microsecond counter interrupt Mask + bit_offset: 26 + bit_size: 1 + - name: RXLPITRCIM + description: MMC Receive LPI transition counter interrupt Mask + bit_offset: 27 + bit_size: 1 fieldset/MMC_TX_INTERRUPT: description: MMC Tx interrupt register fields: - - name: TXSCOLGPIS - description: MMC Transmit Single Collision Good Packet Counter Interrupt Status - bit_offset: 14 - bit_size: 1 - - name: TXMCOLGPIS - description: MMC Transmit Multiple Collision Good Packet Counter Interrupt Status - bit_offset: 15 - bit_size: 1 - - name: TXGPKTIS - description: MMC Transmit Good Packet Counter Interrupt Status - bit_offset: 21 - bit_size: 1 - - name: TXLPIUSCIS - description: MMC Transmit LPI microsecond counter interrupt status - bit_offset: 26 - bit_size: 1 - - name: TXLPITRCIS - description: MMC Transmit LPI transition counter interrupt status - bit_offset: 27 - bit_size: 1 + - name: TXSCOLGPIS + description: MMC Transmit Single Collision Good Packet Counter Interrupt Status + bit_offset: 14 + bit_size: 1 + - name: TXMCOLGPIS + description: MMC Transmit Multiple Collision Good Packet Counter Interrupt Status + bit_offset: 15 + bit_size: 1 + - name: TXGPKTIS + description: MMC Transmit Good Packet Counter Interrupt Status + bit_offset: 21 + bit_size: 1 + - name: TXLPIUSCIS + description: MMC Transmit LPI microsecond counter interrupt status + bit_offset: 26 + bit_size: 1 + - name: TXLPITRCIS + description: MMC Transmit LPI transition counter interrupt status + bit_offset: 27 + bit_size: 1 fieldset/MMC_TX_INTERRUPT_MASK: description: MMC Tx interrupt mask register fields: - - name: TXSCOLGPIM - description: MMC Transmit Single Collision Good Packet Counter Interrupt Mask - bit_offset: 14 - bit_size: 1 - - name: TXMCOLGPIM - description: MMC Transmit Multiple Collision Good Packet Counter Interrupt Mask - bit_offset: 15 - bit_size: 1 - - name: TXGPKTIM - description: MMC Transmit Good Packet Counter Interrupt Mask - bit_offset: 21 - bit_size: 1 - - name: TXLPIUSCIM - description: MMC Transmit LPI microsecond counter interrupt Mask - bit_offset: 26 - bit_size: 1 - - name: TXLPITRCIM - description: MMC Transmit LPI transition counter interrupt Mask - bit_offset: 27 - bit_size: 1 + - name: TXSCOLGPIM + description: MMC Transmit Single Collision Good Packet Counter Interrupt Mask + bit_offset: 14 + bit_size: 1 + - name: TXMCOLGPIM + description: MMC Transmit Multiple Collision Good Packet Counter Interrupt Mask + bit_offset: 15 + bit_size: 1 + - name: TXGPKTIM + description: MMC Transmit Good Packet Counter Interrupt Mask + bit_offset: 21 + bit_size: 1 + - name: TXLPIUSCIM + description: MMC Transmit LPI microsecond counter interrupt Mask + bit_offset: 26 + bit_size: 1 + - name: TXLPITRCIM + description: MMC Transmit LPI transition counter interrupt Mask + bit_offset: 27 + bit_size: 1 fieldset/MTLISR: description: Interrupt status Register fields: - - name: Q0IS - description: Queue interrupt status - bit_offset: 0 - bit_size: 1 + - name: Q0IS + description: Queue interrupt status + bit_offset: 0 + bit_size: 1 fieldset/MTLOMR: description: Operating mode Register fields: - - name: DTXSTS - description: Drop Transmit Status - bit_offset: 1 - bit_size: 1 - - name: CNTPRST - description: Counters Preset - bit_offset: 8 - bit_size: 1 - - name: CNTCLR - description: Counters Reset - bit_offset: 9 - bit_size: 1 + - name: DTXSTS + description: Drop Transmit Status + bit_offset: 1 + bit_size: 1 + - name: CNTPRST + description: Counters Preset + bit_offset: 8 + bit_size: 1 + - name: CNTCLR + description: Counters Reset + bit_offset: 9 + bit_size: 1 fieldset/MTLQICSR: description: Queue interrupt control status Register fields: - - name: TXUNFIS - description: Transmit Queue Underflow Interrupt Status - bit_offset: 0 - bit_size: 1 - - name: TXUIE - description: Transmit Queue Underflow Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: RXOVFIS - description: Receive Queue Overflow Interrupt Status - bit_offset: 16 - bit_size: 1 - - name: RXOIE - description: Receive Queue Overflow Interrupt Enable - bit_offset: 24 - bit_size: 1 + - name: TXUNFIS + description: Transmit Queue Underflow Interrupt Status + bit_offset: 0 + bit_size: 1 + - name: TXUIE + description: Transmit Queue Underflow Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: RXOVFIS + description: Receive Queue Overflow Interrupt Status + bit_offset: 16 + bit_size: 1 + - name: RXOIE + description: Receive Queue Overflow Interrupt Enable + bit_offset: 24 + bit_size: 1 fieldset/MTLRxQDR: description: Rx queue debug register fields: - - name: RWCSTS - description: MTL Rx Queue Write Controller Active Status - bit_offset: 0 - bit_size: 1 - - name: RRCSTS - description: MTL Rx Queue Read Controller State - bit_offset: 1 - bit_size: 2 - - name: RXQSTS - description: MTL Rx Queue Fill-Level Status - bit_offset: 4 - bit_size: 2 - - name: PRXQ - description: Number of Packets in Receive Queue - bit_offset: 16 - bit_size: 14 + - name: RWCSTS + description: MTL Rx Queue Write Controller Active Status + bit_offset: 0 + bit_size: 1 + - name: RRCSTS + description: MTL Rx Queue Read Controller State + bit_offset: 1 + bit_size: 2 + - name: RXQSTS + description: MTL Rx Queue Fill-Level Status + bit_offset: 4 + bit_size: 2 + - name: PRXQ + description: Number of Packets in Receive Queue + bit_offset: 16 + bit_size: 14 fieldset/MTLRxQMPOCR: description: Rx queue missed packet and overflow counter register fields: - - name: OVFPKTCNT - description: Overflow Packet Counter - bit_offset: 0 - bit_size: 11 - - name: OVFCNTOVF - description: Overflow Counter Overflow Bit - bit_offset: 11 - bit_size: 1 - - name: MISPKTCNT - description: Missed Packet Counter - bit_offset: 16 - bit_size: 11 - - name: MISCNTOVF - description: Missed Packet Counter Overflow Bit - bit_offset: 27 - bit_size: 1 + - name: OVFPKTCNT + description: Overflow Packet Counter + bit_offset: 0 + bit_size: 11 + - name: OVFCNTOVF + description: Overflow Counter Overflow Bit + bit_offset: 11 + bit_size: 1 + - name: MISPKTCNT + description: Missed Packet Counter + bit_offset: 16 + bit_size: 11 + - name: MISCNTOVF + description: Missed Packet Counter Overflow Bit + bit_offset: 27 + bit_size: 1 fieldset/MTLRxQOMR: description: Rx queue operating mode register fields: - - name: RTC - description: Receive Queue Threshold Control - bit_offset: 0 - bit_size: 2 - - name: FUP - description: Forward Undersized Good Packets - bit_offset: 3 - bit_size: 1 - - name: FEP - description: Forward Error Packets - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Receive Queue Store and Forward - bit_offset: 5 - bit_size: 1 - - name: DIS_TCP_EF - description: Disable Dropping of TCP/IP Checksum Error Packets - bit_offset: 6 - bit_size: 1 - - name: EHFC - description: Enable Hardware Flow Control - bit_offset: 7 - bit_size: 1 - - name: RFA - description: Threshold for Activating Flow Control (in half-duplex and full-duplex modes) - bit_offset: 8 - bit_size: 3 - - name: RFD - description: Threshold for Deactivating Flow Control (in half-duplex and full-duplex modes) - bit_offset: 14 - bit_size: 3 - - name: RQS - description: Receive Queue Size - bit_offset: 20 - bit_size: 3 + - name: RTC + description: Receive Queue Threshold Control + bit_offset: 0 + bit_size: 2 + - name: FUP + description: Forward Undersized Good Packets + bit_offset: 3 + bit_size: 1 + - name: FEP + description: Forward Error Packets + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Receive Queue Store and Forward + bit_offset: 5 + bit_size: 1 + - name: DIS_TCP_EF + description: Disable Dropping of TCP/IP Checksum Error Packets + bit_offset: 6 + bit_size: 1 + - name: EHFC + description: Enable Hardware Flow Control + bit_offset: 7 + bit_size: 1 + - name: RFA + description: Threshold for Activating Flow Control (in half-duplex and full-duplex modes) + bit_offset: 8 + bit_size: 3 + - name: RFD + description: Threshold for Deactivating Flow Control (in half-duplex and full-duplex modes) + bit_offset: 14 + bit_size: 3 + - name: RQS + description: Receive Queue Size + bit_offset: 20 + bit_size: 3 fieldset/MTLTxQDR: description: Tx queue debug Register fields: - - name: TXQPAUSED - description: Transmit Queue in Pause - bit_offset: 0 - bit_size: 1 - - name: TRCSTS - description: MTL Tx Queue Read Controller Status - bit_offset: 1 - bit_size: 2 - - name: TWCSTS - description: MTL Tx Queue Write Controller Status - bit_offset: 3 - bit_size: 1 - - name: TXQSTS - description: MTL Tx Queue Not Empty Status - bit_offset: 4 - bit_size: 1 - - name: TXSTSFSTS - description: MTL Tx Status FIFO Full Status - bit_offset: 5 - bit_size: 1 - - name: PTXQ - description: Number of Packets in the Transmit Queue - bit_offset: 16 - bit_size: 3 - - name: STXSTSF - description: Number of Status Words in Tx Status FIFO of Queue - bit_offset: 20 - bit_size: 3 + - name: TXQPAUSED + description: Transmit Queue in Pause + bit_offset: 0 + bit_size: 1 + - name: TRCSTS + description: MTL Tx Queue Read Controller Status + bit_offset: 1 + bit_size: 2 + - name: TWCSTS + description: MTL Tx Queue Write Controller Status + bit_offset: 3 + bit_size: 1 + - name: TXQSTS + description: MTL Tx Queue Not Empty Status + bit_offset: 4 + bit_size: 1 + - name: TXSTSFSTS + description: MTL Tx Status FIFO Full Status + bit_offset: 5 + bit_size: 1 + - name: PTXQ + description: Number of Packets in the Transmit Queue + bit_offset: 16 + bit_size: 3 + - name: STXSTSF + description: Number of Status Words in Tx Status FIFO of Queue + bit_offset: 20 + bit_size: 3 fieldset/MTLTxQOMR: description: Tx queue operating mode Register fields: - - name: FTQ - description: Flush Transmit Queue - bit_offset: 0 - bit_size: 1 - - name: TSF - description: Transmit Store and Forward - bit_offset: 1 - bit_size: 1 - - name: TXQEN - description: Transmit Queue Enable - bit_offset: 2 - bit_size: 2 - - name: TTC - description: Transmit Threshold Control - bit_offset: 4 - bit_size: 3 - - name: TQS - description: Transmit Queue Size - bit_offset: 16 - bit_size: 3 + - name: FTQ + description: Flush Transmit Queue + bit_offset: 0 + bit_size: 1 + - name: TSF + description: Transmit Store and Forward + bit_offset: 1 + bit_size: 1 + - name: TXQEN + description: Transmit Queue Enable + bit_offset: 2 + bit_size: 2 + - name: TTC + description: Transmit Threshold Control + bit_offset: 4 + bit_size: 3 + - name: TQS + description: Transmit Queue Size + bit_offset: 16 + bit_size: 3 fieldset/MTLTxQUR: description: Tx queue underflow register fields: - - name: UFFRMCNT - description: Underflow Packet Counter - bit_offset: 0 - bit_size: 11 - - name: UFCNTOVF - description: Overflow Bit for Underflow Packet Counter - bit_offset: 11 - bit_size: 1 + - name: UFFRMCNT + description: Underflow Packet Counter + bit_offset: 0 + bit_size: 11 + - name: UFCNTOVF + description: Overflow Bit for Underflow Packet Counter + bit_offset: 11 + bit_size: 1 fieldset/RX_ALIGNMENT_ERROR_PACKETS: description: Rx alignment error packets register fields: - - name: RXALGNERR - description: Rx Alignment Error Packets - bit_offset: 0 - bit_size: 32 + - name: RXALGNERR + description: Rx Alignment Error Packets + bit_offset: 0 + bit_size: 32 fieldset/RX_CRC_ERROR_PACKETS: description: Rx CRC error packets register fields: - - name: RXCRCERR - description: Rx CRC Error Packets - bit_offset: 0 - bit_size: 32 + - name: RXCRCERR + description: Rx CRC Error Packets + bit_offset: 0 + bit_size: 32 fieldset/RX_LPI_TRAN_CNTR: description: Rx LPI transition counter register fields: - - name: RXLPITRC - description: Rx LPI Transition counter - bit_offset: 0 - bit_size: 32 + - name: RXLPITRC + description: Rx LPI Transition counter + bit_offset: 0 + bit_size: 32 fieldset/RX_LPI_USEC_CNTR: description: Rx LPI microsecond counter register fields: - - name: RXLPIUSC - description: Rx LPI Microseconds Counter - bit_offset: 0 - bit_size: 32 + - name: RXLPIUSC + description: Rx LPI Microseconds Counter + bit_offset: 0 + bit_size: 32 fieldset/RX_UNICAST_PACKETS_GOOD: description: Rx unicast packets good register fields: - - name: RXUCASTG - description: Rx Unicast Packets Good - bit_offset: 0 - bit_size: 32 + - name: RXUCASTG + description: Rx Unicast Packets Good + bit_offset: 0 + bit_size: 32 fieldset/TX_LPI_TRAN_CNTR: description: Tx LPI transition counter register fields: - - name: TXLPITRC - description: Tx LPI Transition counter - bit_offset: 0 - bit_size: 32 + - name: TXLPITRC + description: Tx LPI Transition counter + bit_offset: 0 + bit_size: 32 fieldset/TX_LPI_USEC_CNTR: description: Tx LPI microsecond timer register fields: - - name: TXLPIUSC - description: Tx LPI Microseconds Counter - bit_offset: 0 - bit_size: 32 + - name: TXLPIUSC + description: Tx LPI Microseconds Counter + bit_offset: 0 + bit_size: 32 fieldset/TX_MULTIPLE_COLLISION_GOOD_PACKETS: description: Tx multiple collision good packets register fields: - - name: TXMULTCOLG - description: Tx Multiple Collision Good Packets - bit_offset: 0 - bit_size: 32 + - name: TXMULTCOLG + description: Tx Multiple Collision Good Packets + bit_offset: 0 + bit_size: 32 fieldset/TX_PACKET_COUNT_GOOD: description: Tx packet count good register fields: - - name: TXPKTG - description: Tx Packet Count Good - bit_offset: 0 - bit_size: 32 + - name: TXPKTG + description: Tx Packet Count Good + bit_offset: 0 + bit_size: 32 fieldset/TX_SINGLE_COLLISION_GOOD_PACKETS: description: Tx single collision good packets register fields: - - name: TXSNGLCOLG - description: Tx Single Collision Good Packets - bit_offset: 0 - bit_size: 32 + - name: TXSNGLCOLG + description: Tx Single Collision Good Packets + bit_offset: 0 + bit_size: 32 diff --git a/data/registers/exti_c0.yaml b/data/registers/exti_c0.yaml index 8ab29ae..4a69716 100644 --- a/data/registers/exti_c0.yaml +++ b/data/registers/exti_c0.yaml @@ -1,80 +1,79 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: Rising Trigger selection register - array: - len: 1 - stride: 40 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 1 - stride: 40 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 1 - stride: 40 - byte_offset: 8 - fieldset: LINES - - name: RPR - description: Rising pending register - array: - len: 1 - stride: 40 - byte_offset: 12 - fieldset: LINES - - name: FPR - description: Falling pending register - array: - len: 1 - stride: 40 - byte_offset: 16 - fieldset: LINES - - name: EXTICR - description: Configuration register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: EXTICR - - name: IMR - description: Interrupt mask register - array: - len: 1 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: Event mask register - array: - len: 1 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 1 + stride: 40 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 1 + stride: 40 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 1 + stride: 40 + byte_offset: 8 + fieldset: LINES + - name: RPR + description: Rising pending register + array: + len: 1 + stride: 40 + byte_offset: 12 + fieldset: LINES + - name: FPR + description: Falling pending register + array: + len: 1 + stride: 40 + byte_offset: 16 + fieldset: LINES + - name: EXTICR + description: Configuration register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: EXTICR + - name: IMR + description: Interrupt mask register + array: + len: 1 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: Event mask register + array: + len: 1 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI configuration bits - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: EXTI + description: EXTI configuration bits + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_g0.yaml b/data/registers/exti_g0.yaml index 22d9c2a..2407bb8 100644 --- a/data/registers/exti_g0.yaml +++ b/data/registers/exti_g0.yaml @@ -1,80 +1,79 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: Rising Trigger selection register - array: - len: 2 - stride: 40 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 2 - stride: 40 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 2 - stride: 40 - byte_offset: 8 - fieldset: LINES - - name: RPR - description: Rising pending register - array: - len: 2 - stride: 40 - byte_offset: 12 - fieldset: LINES - - name: FPR - description: Falling pending register - array: - len: 2 - stride: 40 - byte_offset: 16 - fieldset: LINES - - name: EXTICR - description: Configuration register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: EXTICR - - name: IMR - description: Interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: Event mask register - array: - len: 2 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 2 + stride: 40 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 2 + stride: 40 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 2 + stride: 40 + byte_offset: 8 + fieldset: LINES + - name: RPR + description: Rising pending register + array: + len: 2 + stride: 40 + byte_offset: 12 + fieldset: LINES + - name: FPR + description: Falling pending register + array: + len: 2 + stride: 40 + byte_offset: 16 + fieldset: LINES + - name: EXTICR + description: Configuration register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: EXTICR + - name: IMR + description: Interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: Event mask register + array: + len: 2 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI configuration bits - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: EXTI + description: EXTI configuration bits + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_h5.yaml b/data/registers/exti_h5.yaml index 939979f..aa2c064 100644 --- a/data/registers/exti_h5.yaml +++ b/data/registers/exti_h5.yaml @@ -1,145 +1,144 @@ ---- block/EXTI: description: Extended interrupt and event controller items: - - name: RTSR - description: rising trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: falling trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: RPR - description: rising edge pending register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: FPR - description: falling edge pending register - array: - len: 2 - stride: 32 - byte_offset: 16 - fieldset: LINES - - name: SECCFGR - description: security configuration register - array: - len: 2 - stride: 32 - byte_offset: 20 - fieldset: SEC - - name: PRIVCFGR - description: privilege configuration register - array: - len: 2 - stride: 32 - byte_offset: 24 - fieldset: PRIV - - name: EXTICR - description: external interrupt selection register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: EXTI - - name: LOCKR - description: lock register - byte_offset: 112 - fieldset: LOCKR - - name: IMR - description: CPU wakeup with interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: CPU wakeup with event mask register - array: - len: 2 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: rising trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: falling trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: RPR + description: rising edge pending register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: FPR + description: falling edge pending register + array: + len: 2 + stride: 32 + byte_offset: 16 + fieldset: LINES + - name: SECCFGR + description: security configuration register + array: + len: 2 + stride: 32 + byte_offset: 20 + fieldset: SEC + - name: PRIVCFGR + description: privilege configuration register + array: + len: 2 + stride: 32 + byte_offset: 24 + fieldset: PRIV + - name: EXTICR + description: external interrupt selection register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: EXTI + - name: LOCKR + description: lock register + byte_offset: 112 + fieldset: LOCKR + - name: IMR + description: CPU wakeup with interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: CPU wakeup with event mask register + array: + len: 2 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/EXTI: description: EXTI external interrupt selection register fields: - - name: EXTI - description: "EXTI12 GPIO port selection\r These bits are written by software to select the source input for EXTI12 external interrupt.\r When EXTI_PRIVCFGR.PRIV12 is disabled, EXTI12 can be accessed with privileged and unprivileged access.\r When EXTI_PRIVCFGR.PRIV12 is enabled, EXTI12 can only be accessed with privileged access. Unprivileged write to this bit is discarded.\r Others: reserved" - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: EXTI + description: "EXTI12 GPIO port selection\r These bits are written by software to select the source input for EXTI12 external interrupt.\r When EXTI_PRIVCFGR.PRIV12 is disabled, EXTI12 can be accessed with privileged and unprivileged access.\r When EXTI_PRIVCFGR.PRIV12 is enabled, EXTI12 can only be accessed with privileged access. Unprivileged write to this bit is discarded.\r Others: reserved" + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/LOCKR: description: lock register fields: - - name: LOCK - description: "Global security and privilege configuration registers (EXTI_SECCFGR and EXTI_PRIVCFGR) lock \r This bit is written once after reset." - bit_offset: 0 - bit_size: 1 + - name: LOCK + description: "Global security and privilege configuration registers (EXTI_SECCFGR and EXTI_PRIVCFGR) lock \r This bit is written once after reset." + bit_offset: 0 + bit_size: 1 fieldset/PRIV: description: privilege configuration register fields: - - name: PRIV - description: "Security enable on event input x\r When EXTI_SECCFGR.SECx is disabled, PRIVx can be accessed with secure and non-secure access.\r When EXTI_SECCFGR.SECx is enabled, PRIVx can only be written with secure access. Non-secure write to this PRIVx is discarded." - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 - enum: PRIV + - name: PRIV + description: "Security enable on event input x\r When EXTI_SECCFGR.SECx is disabled, PRIVx can be accessed with secure and non-secure access.\r When EXTI_SECCFGR.SECx is enabled, PRIVx can only be written with secure access. Non-secure write to this PRIVx is discarded." + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 + enum: PRIV fieldset/SEC: description: security configuration register fields: - - name: SEC - description: "Security enable on event input x\r When EXTI_PRIVCFGR.PRIVx is disabled, SECx can be accessed with privileged and unprivileged access.\r When EXTI_PRIVCFGR.PRIVx is enabled, SECx can only be written with privileged access. Unprivileged write to this SECx is discarded." - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 - enum: SEC + - name: SEC + description: "Security enable on event input x\r When EXTI_PRIVCFGR.PRIVx is disabled, SECx can be accessed with privileged and unprivileged access.\r When EXTI_PRIVCFGR.PRIVx is enabled, SECx can only be written with privileged access. Unprivileged write to this SECx is discarded." + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 + enum: SEC enum/PRIV: bit_size: 1 variants: - - name: Unprivileged - description: Event privilege disabled (unprivileged) - value: 0 - - name: Privileged - description: Event privilege enabled (privileged) - value: 1 + - name: Unprivileged + description: Event privilege disabled (unprivileged) + value: 0 + - name: Privileged + description: Event privilege enabled (privileged) + value: 1 enum/SEC: bit_size: 1 variants: - - name: NonSecure - description: Event security disabled (non-secure) - value: 0 - - name: Secure - description: Event security enabled (secure) - value: 1 + - name: NonSecure + description: Event security disabled (non-secure) + value: 0 + - name: Secure + description: Event security enabled (secure) + value: 1 diff --git a/data/registers/exti_h50.yaml b/data/registers/exti_h50.yaml index 265902d..0e52419 100644 --- a/data/registers/exti_h50.yaml +++ b/data/registers/exti_h50.yaml @@ -1,107 +1,106 @@ ---- block/EXTI: description: Extended interrupt and event controller items: - - name: RTSR - description: rising trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: falling trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: RPR - description: rising edge pending register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: FPR - description: falling edge pending register - array: - len: 2 - stride: 32 - byte_offset: 16 - fieldset: LINES - - name: PRIVCFGR - description: privilege configuration register - array: - len: 2 - stride: 32 - byte_offset: 24 - fieldset: PRIV - - name: EXTICR - description: external interrupt selection register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: EXTI - - name: IMR - description: CPU wakeup with interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: CPU wakeup with event mask register - array: - len: 2 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: rising trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: falling trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: RPR + description: rising edge pending register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: FPR + description: falling edge pending register + array: + len: 2 + stride: 32 + byte_offset: 16 + fieldset: LINES + - name: PRIVCFGR + description: privilege configuration register + array: + len: 2 + stride: 32 + byte_offset: 24 + fieldset: PRIV + - name: EXTICR + description: external interrupt selection register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: EXTI + - name: IMR + description: CPU wakeup with interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: CPU wakeup with event mask register + array: + len: 2 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/EXTI: description: EXTI external interrupt selection register fields: - - name: EXTI - description: "EXTI12 GPIO port selection\r These bits are written by software to select the source input for EXTI12 external interrupt.\r When EXTI_PRIVCFGR.PRIV12 is disabled, EXTI12 can be accessed with privileged and unprivileged access.\r When EXTI_PRIVCFGR.PRIV12 is enabled, EXTI12 can only be accessed with privileged access. Unprivileged write to this bit is discarded.\r Others: reserved" - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: EXTI + description: "EXTI12 GPIO port selection\r These bits are written by software to select the source input for EXTI12 external interrupt.\r When EXTI_PRIVCFGR.PRIV12 is disabled, EXTI12 can be accessed with privileged and unprivileged access.\r When EXTI_PRIVCFGR.PRIV12 is enabled, EXTI12 can only be accessed with privileged access. Unprivileged write to this bit is discarded.\r Others: reserved" + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/PRIV: description: privilege configuration register fields: - - name: PRIV - description: "Security enable on event input x\r When EXTI_SECCFGR.SECx is disabled, PRIVx can be accessed with secure and non-secure access.\r When EXTI_SECCFGR.SECx is enabled, PRIVx can only be written with secure access. Non-secure write to this PRIVx is discarded." - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 - enum: PRIV + - name: PRIV + description: "Security enable on event input x\r When EXTI_SECCFGR.SECx is disabled, PRIVx can be accessed with secure and non-secure access.\r When EXTI_SECCFGR.SECx is enabled, PRIVx can only be written with secure access. Non-secure write to this PRIVx is discarded." + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 + enum: PRIV enum/PRIV: bit_size: 1 variants: - - name: Unprivileged - description: Event privilege disabled (unprivileged) - value: 0 - - name: Privileged - description: Event privilege enabled (privileged) - value: 1 + - name: Unprivileged + description: Event privilege disabled (unprivileged) + value: 0 + - name: Privileged + description: Event privilege enabled (privileged) + value: 1 diff --git a/data/registers/exti_h7.yaml b/data/registers/exti_h7.yaml index d6276dd..f3be667 100644 --- a/data/registers/exti_h7.yaml +++ b/data/registers/exti_h7.yaml @@ -1,56 +1,55 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: Rising Trigger selection register - array: - len: 1 - stride: 0 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 1 - stride: 0 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 1 - stride: 0 - byte_offset: 8 - fieldset: LINES - - name: IMR - description: Interrupt mask register - array: - len: 1 - stride: 0 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: Event mask register - array: - len: 1 - stride: 0 - byte_offset: 132 - fieldset: LINES - - name: PR - description: Pending register - array: - len: 1 - stride: 0 - byte_offset: 136 - fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 1 + stride: 0 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 1 + stride: 0 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 1 + stride: 0 + byte_offset: 8 + fieldset: LINES + - name: IMR + description: Interrupt mask register + array: + len: 1 + stride: 0 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: Event mask register + array: + len: 1 + stride: 0 + byte_offset: 132 + fieldset: LINES + - name: PR + description: Pending register + array: + len: 1 + stride: 0 + byte_offset: 136 + fieldset: LINES fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_l5.yaml b/data/registers/exti_l5.yaml index f8a7a14..f7ff59b 100644 --- a/data/registers/exti_l5.yaml +++ b/data/registers/exti_l5.yaml @@ -1,125 +1,124 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: Rising Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: RPR - description: Rising pending register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: FPR - description: Falling pending register - array: - len: 2 - stride: 32 - byte_offset: 16 - fieldset: LINES - - name: SECCFGR - description: Security configuration register - array: - len: 2 - stride: 36 - byte_offset: 20 - fieldset: SECCFGR - - name: PRIVCFGR - description: Privilege configuration register - array: - len: 2 - stride: 28 - byte_offset: 24 - fieldset: PRIVCFGR - - name: EXTICR - description: Configuration register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: EXTICR - - name: LOCKRG - description: EXTI lock register - byte_offset: 112 - fieldset: LOCKRG - - name: IMR - description: Interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: Event mask register - array: - len: 2 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: RPR + description: Rising pending register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: FPR + description: Falling pending register + array: + len: 2 + stride: 32 + byte_offset: 16 + fieldset: LINES + - name: SECCFGR + description: Security configuration register + array: + len: 2 + stride: 36 + byte_offset: 20 + fieldset: SECCFGR + - name: PRIVCFGR + description: Privilege configuration register + array: + len: 2 + stride: 28 + byte_offset: 24 + fieldset: PRIVCFGR + - name: EXTICR + description: Configuration register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: EXTICR + - name: LOCKRG + description: EXTI lock register + byte_offset: 112 + fieldset: LOCKRG + - name: IMR + description: Interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: Event mask register + array: + len: 2 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI configuration bits - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: EXTI + description: EXTI configuration bits + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/LOCKRG: description: EXTI lock register fields: - - name: LOCK - description: LOCK - bit_offset: 0 - bit_size: 1 + - name: LOCK + description: LOCK + bit_offset: 0 + bit_size: 1 fieldset/PRIVCFGR: description: Privilege configuration register fields: - - name: PRIV - description: Security enable on event input x - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PRIV + description: Security enable on event input x + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/SECCFGR: description: Security configuration register fields: - - name: SEC - description: Security enable on event input x - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: SEC + description: Security enable on event input x + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_u5.yaml b/data/registers/exti_u5.yaml index f8a7a14..f7ff59b 100644 --- a/data/registers/exti_u5.yaml +++ b/data/registers/exti_u5.yaml @@ -1,125 +1,124 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: Rising Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: RPR - description: Rising pending register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: FPR - description: Falling pending register - array: - len: 2 - stride: 32 - byte_offset: 16 - fieldset: LINES - - name: SECCFGR - description: Security configuration register - array: - len: 2 - stride: 36 - byte_offset: 20 - fieldset: SECCFGR - - name: PRIVCFGR - description: Privilege configuration register - array: - len: 2 - stride: 28 - byte_offset: 24 - fieldset: PRIVCFGR - - name: EXTICR - description: Configuration register - array: - len: 4 - stride: 4 - byte_offset: 96 - fieldset: EXTICR - - name: LOCKRG - description: EXTI lock register - byte_offset: 112 - fieldset: LOCKRG - - name: IMR - description: Interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: Event mask register - array: - len: 2 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: RPR + description: Rising pending register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: FPR + description: Falling pending register + array: + len: 2 + stride: 32 + byte_offset: 16 + fieldset: LINES + - name: SECCFGR + description: Security configuration register + array: + len: 2 + stride: 36 + byte_offset: 20 + fieldset: SECCFGR + - name: PRIVCFGR + description: Privilege configuration register + array: + len: 2 + stride: 28 + byte_offset: 24 + fieldset: PRIVCFGR + - name: EXTICR + description: Configuration register + array: + len: 4 + stride: 4 + byte_offset: 96 + fieldset: EXTICR + - name: LOCKRG + description: EXTI lock register + byte_offset: 112 + fieldset: LOCKRG + - name: IMR + description: Interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: Event mask register + array: + len: 2 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI configuration bits - bit_offset: 0 - bit_size: 8 - array: - len: 4 - stride: 8 + - name: EXTI + description: EXTI configuration bits + bit_offset: 0 + bit_size: 8 + array: + len: 4 + stride: 8 fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/LOCKRG: description: EXTI lock register fields: - - name: LOCK - description: LOCK - bit_offset: 0 - bit_size: 1 + - name: LOCK + description: LOCK + bit_offset: 0 + bit_size: 1 fieldset/PRIVCFGR: description: Privilege configuration register fields: - - name: PRIV - description: Security enable on event input x - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PRIV + description: Security enable on event input x + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/SECCFGR: description: Security configuration register fields: - - name: SEC - description: Security enable on event input x - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: SEC + description: Security enable on event input x + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_v1.yaml b/data/registers/exti_v1.yaml index ec0f62e..44eea42 100644 --- a/data/registers/exti_v1.yaml +++ b/data/registers/exti_v1.yaml @@ -1,56 +1,55 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: IMR - description: Interrupt mask register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: EMR - description: Interrupt mask register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: RTSR - description: Rising Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 16 - fieldset: LINES - - name: PR - description: Pending register - array: - len: 2 - stride: 32 - byte_offset: 20 - fieldset: LINES + - name: IMR + description: Interrupt mask register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: EMR + description: Interrupt mask register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 16 + fieldset: LINES + - name: PR + description: Pending register + array: + len: 2 + stride: 32 + byte_offset: 20 + fieldset: LINES fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_w.yaml b/data/registers/exti_w.yaml index e9f9e6b..ec88821 100644 --- a/data/registers/exti_w.yaml +++ b/data/registers/exti_w.yaml @@ -1,66 +1,65 @@ ---- block/CPU: description: CPU-specific registers items: - - name: IMR - description: CPU x interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 0 - fieldset: LINES - - name: EMR - description: CPU x event mask register - array: - len: 2 - stride: 16 - byte_offset: 4 - fieldset: LINES + - name: IMR + description: CPU x interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 0 + fieldset: LINES + - name: EMR + description: CPU x event mask register + array: + len: 2 + stride: 16 + byte_offset: 4 + fieldset: LINES block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: rising trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: falling trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: PR - description: EXTI pending register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: CPU - description: CPU specific registers - array: - len: 2 - stride: 64 - byte_offset: 128 - block: CPU + - name: RTSR + description: rising trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: falling trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: PR + description: EXTI pending register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: CPU + description: CPU specific registers + array: + len: 2 + stride: 64 + byte_offset: 128 + block: CPU fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/exti_wle.yaml b/data/registers/exti_wle.yaml index 3bdaff5..56fa860 100644 --- a/data/registers/exti_wle.yaml +++ b/data/registers/exti_wle.yaml @@ -1,56 +1,55 @@ ---- block/EXTI: description: External interrupt/event controller items: - - name: RTSR - description: Rising Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 0 - fieldset: LINES - - name: FTSR - description: Falling Trigger selection register - array: - len: 2 - stride: 32 - byte_offset: 4 - fieldset: LINES - - name: SWIER - description: Software interrupt event register - array: - len: 2 - stride: 32 - byte_offset: 8 - fieldset: LINES - - name: PR - description: Pending register - array: - len: 2 - stride: 32 - byte_offset: 12 - fieldset: LINES - - name: IMR - description: Interrupt mask register - array: - len: 2 - stride: 16 - byte_offset: 128 - fieldset: LINES - - name: EMR - description: Event mask register - array: - len: 2 - stride: 16 - byte_offset: 132 - fieldset: LINES + - name: RTSR + description: Rising Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 0 + fieldset: LINES + - name: FTSR + description: Falling Trigger selection register + array: + len: 2 + stride: 32 + byte_offset: 4 + fieldset: LINES + - name: SWIER + description: Software interrupt event register + array: + len: 2 + stride: 32 + byte_offset: 8 + fieldset: LINES + - name: PR + description: Pending register + array: + len: 2 + stride: 32 + byte_offset: 12 + fieldset: LINES + - name: IMR + description: Interrupt mask register + array: + len: 2 + stride: 16 + byte_offset: 128 + fieldset: LINES + - name: EMR + description: Event mask register + array: + len: 2 + stride: 16 + byte_offset: 132 + fieldset: LINES fieldset/LINES: - description: "EXTI lines register, 1 bit per line" + description: EXTI lines register, 1 bit per line fields: - - name: LINE - description: EXTI line - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: LINE + description: EXTI line + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/flash_c0.yaml b/data/registers/flash_c0.yaml index 1babeb4..1b62a22 100644 --- a/data/registers/flash_c0.yaml +++ b/data/registers/flash_c0.yaml @@ -1,424 +1,423 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 8 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 12 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 16 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 20 - fieldset: CR - - name: OPTR - description: Flash option register - byte_offset: 32 - fieldset: OPTR - - name: PCROP1ASR - description: Flash PCROP zone A Start address register - byte_offset: 36 - access: Read - fieldset: PCROP1ASR - - name: PCROP1AER - description: Flash PCROP zone A End address register - byte_offset: 40 - access: Read - fieldset: PCROP1AER - - name: WRP1AR - description: Flash WRP area A address register - byte_offset: 44 - access: Read - fieldset: WRP1AR - - name: WRP1BR - description: Flash WRP area B address register - byte_offset: 48 - access: Read - fieldset: WRP1BR - - name: PCROP1BSR - description: Flash PCROP zone B Start address register - byte_offset: 52 - access: Read - fieldset: PCROP1BSR - - name: PCROP1BER - description: Flash PCROP zone B End address register - byte_offset: 56 - access: Read - fieldset: PCROP1BER - - name: SECR - description: Flash Security register - byte_offset: 128 - access: Read - fieldset: SECR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 8 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 12 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 16 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 20 + fieldset: CR + - name: OPTR + description: Flash option register + byte_offset: 32 + fieldset: OPTR + - name: PCROP1ASR + description: Flash PCROP zone A Start address register + byte_offset: 36 + access: Read + fieldset: PCROP1ASR + - name: PCROP1AER + description: Flash PCROP zone A End address register + byte_offset: 40 + access: Read + fieldset: PCROP1AER + - name: WRP1AR + description: Flash WRP area A address register + byte_offset: 44 + access: Read + fieldset: WRP1AR + - name: WRP1BR + description: Flash WRP area B address register + byte_offset: 48 + access: Read + fieldset: WRP1BR + - name: PCROP1BSR + description: Flash PCROP zone B Start address register + byte_offset: 52 + access: Read + fieldset: PCROP1BSR + - name: PCROP1BER + description: Flash PCROP zone B End address register + byte_offset: 56 + access: Read + fieldset: PCROP1BER + - name: SECR + description: Flash Security register + byte_offset: 128 + access: Read + fieldset: SECR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: EMPTY - description: Flash User area empty - bit_offset: 16 - bit_size: 1 - - name: DBG_SWEN - description: Debug access software enable - bit_offset: 18 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: EMPTY + description: Flash User area empty + bit_offset: 16 + bit_size: 1 + - name: DBG_SWEN + description: Debug access software enable + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass erase - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page number - bit_offset: 3 - bit_size: 4 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: SEC_PROT - description: Securable memory area protection enable - bit_offset: 28 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: FLASH_CR Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass erase + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page number + bit_offset: 3 + bit_size: 4 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: SEC_PROT + description: Securable memory area protection enable + bit_offset: 28 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: FLASH_CR Lock + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEYR - description: KEYR - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: KEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - enum: RDP - - name: BOREN - description: BOR reset Level - bit_offset: 8 - bit_size: 1 - - name: BORF_LEV - description: These bits contain the VDD supply level threshold that activates the reset - bit_offset: 9 - bit_size: 2 - enum: BORF_LEV - - name: BORR_LEV - description: These bits contain the VDD supply level threshold that releases the reset. - bit_offset: 11 - bit_size: 2 - enum: BORR_LEV - - name: nRST_STOP - description: nRST_STOP - bit_offset: 13 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 14 - bit_size: 1 - - name: nRSTS_HDW - description: nRSTS_HDW - bit_offset: 15 - bit_size: 1 - - name: IDWG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: RAM_PARITY_CHECK - description: SRAM parity check control - bit_offset: 22 - bit_size: 1 - - name: nBOOT_SEL - description: nBOOT_SEL - bit_offset: 24 - bit_size: 1 - - name: nBOOT1 - description: Boot configuration - bit_offset: 25 - bit_size: 1 - - name: nBOOT0 - description: nBOOT0 option bit - bit_offset: 26 - bit_size: 1 - - name: NRST_MODE - description: NRST_MODE - bit_offset: 27 - bit_size: 2 - enum: NRST_MODE - - name: IRHEN - description: Internal reset holder enable bit - bit_offset: 29 - bit_size: 1 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + enum: RDP + - name: BOREN + description: BOR reset Level + bit_offset: 8 + bit_size: 1 + - name: BORF_LEV + description: These bits contain the VDD supply level threshold that activates the reset + bit_offset: 9 + bit_size: 2 + enum: BORF_LEV + - name: BORR_LEV + description: These bits contain the VDD supply level threshold that releases the reset. + bit_offset: 11 + bit_size: 2 + enum: BORR_LEV + - name: nRST_STOP + description: nRST_STOP + bit_offset: 13 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 14 + bit_size: 1 + - name: nRSTS_HDW + description: nRSTS_HDW + bit_offset: 15 + bit_size: 1 + - name: IDWG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: RAM_PARITY_CHECK + description: SRAM parity check control + bit_offset: 22 + bit_size: 1 + - name: nBOOT_SEL + description: nBOOT_SEL + bit_offset: 24 + bit_size: 1 + - name: nBOOT1 + description: Boot configuration + bit_offset: 25 + bit_size: 1 + - name: nBOOT0 + description: nBOOT0 option bit + bit_offset: 26 + bit_size: 1 + - name: NRST_MODE + description: NRST_MODE + bit_offset: 27 + bit_size: 2 + enum: NRST_MODE + - name: IRHEN + description: Internal reset holder enable bit + bit_offset: 29 + bit_size: 1 fieldset/PCROP1AER: description: Flash PCROP zone A End address register fields: - - name: PCROP1A_END - description: PCROP1A area end offset - bit_offset: 0 - bit_size: 6 - - name: PCROP_RDP - description: PCROP area preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROP1A_END + description: PCROP1A area end offset + bit_offset: 0 + bit_size: 6 + - name: PCROP_RDP + description: PCROP area preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/PCROP1ASR: description: Flash PCROP zone A Start address register fields: - - name: PCROP1A_STRT - description: PCROP1A area start offset - bit_offset: 0 - bit_size: 6 + - name: PCROP1A_STRT + description: PCROP1A area start offset + bit_offset: 0 + bit_size: 6 fieldset/PCROP1BER: description: Flash PCROP zone B End address register fields: - - name: PCROP1B_END - description: PCROP1B area end offset - bit_offset: 0 - bit_size: 6 + - name: PCROP1B_END + description: PCROP1B area end offset + bit_offset: 0 + bit_size: 6 fieldset/PCROP1BSR: description: Flash PCROP zone B Start address register fields: - - name: PCROP1B_STRT - description: PCROP1B area start offset - bit_offset: 0 - bit_size: 6 + - name: PCROP1B_STRT + description: PCROP1B area start offset + bit_offset: 0 + bit_size: 6 fieldset/SECR: description: Flash Security register fields: - - name: SEC_SIZE - description: Securable memory area size - bit_offset: 0 - bit_size: 5 - - name: BOOT_LOCK - description: used to force boot from user area - bit_offset: 16 - bit_size: 1 + - name: SEC_SIZE + description: Securable memory area size + bit_offset: 0 + bit_size: 5 + - name: BOOT_LOCK + description: used to force boot from user area + bit_offset: 16 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: OPTVERR - description: Option and Engineering bits loading validity error - bit_offset: 15 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 - - name: CFGBSY - description: Programming or erase configuration busy. - bit_offset: 18 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: OPTVERR + description: Option and Engineering bits loading validity error + bit_offset: 15 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 + - name: CFGBSY + description: Programming or erase configuration busy. + bit_offset: 18 + bit_size: 1 fieldset/WRP1AR: description: Flash WRP area A address register fields: - - name: WRP1A_STRT - description: WRP area A start offset - bit_offset: 0 - bit_size: 6 - - name: WRP1A_END - description: WRP area A end offset - bit_offset: 16 - bit_size: 6 + - name: WRP1A_STRT + description: WRP area A start offset + bit_offset: 0 + bit_size: 6 + - name: WRP1A_END + description: WRP area A end offset + bit_offset: 16 + bit_size: 6 fieldset/WRP1BR: description: Flash WRP area B address register fields: - - name: WRP1B_STRT - description: WRP area B start offset - bit_offset: 0 - bit_size: 6 - - name: WRP1B_END - description: WRP area B end offset - bit_offset: 16 - bit_size: 6 + - name: WRP1B_STRT + description: WRP area B start offset + bit_offset: 0 + bit_size: 6 + - name: WRP1B_END + description: WRP area B end offset + bit_offset: 16 + bit_size: 6 enum/BORF_LEV: bit_size: 2 variants: - - name: FALLING_0 - description: BOR falling level 1 with threshold around 2.0V - value: 0 - - name: FALLING_1 - description: BOR falling level 2 with threshold around 2.2V - value: 1 - - name: FALLING_2 - description: BOR falling level 3 with threshold around 2.5V - value: 2 - - name: FALLING_3 - description: BOR falling level 4 with threshold around 2.8V - value: 3 + - name: FALLING_0 + description: BOR falling level 1 with threshold around 2.0V + value: 0 + - name: FALLING_1 + description: BOR falling level 2 with threshold around 2.2V + value: 1 + - name: FALLING_2 + description: BOR falling level 3 with threshold around 2.5V + value: 2 + - name: FALLING_3 + description: BOR falling level 4 with threshold around 2.8V + value: 3 enum/BORR_LEV: bit_size: 2 variants: - - name: RISING_0 - description: BOR rising level 1 with threshold around 2.1V - value: 0 - - name: RISING_1 - description: BOR rising level 2 with threshold around 2.3V - value: 1 - - name: RISING_2 - description: BOR rising level 3 with threshold around 2.6V - value: 2 - - name: RISING_3 - description: BOR rising level 4 with threshold around 2.9V - value: 3 + - name: RISING_0 + description: BOR rising level 1 with threshold around 2.1V + value: 0 + - name: RISING_1 + description: BOR rising level 2 with threshold around 2.3V + value: 1 + - name: RISING_2 + description: BOR rising level 3 with threshold around 2.6V + value: 2 + - name: RISING_3 + description: BOR rising level 4 with threshold around 2.9V + value: 3 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: Zero wait states - value: 0 - - name: WS1 - description: One wait state - value: 1 + - name: WS0 + description: Zero wait states + value: 0 + - name: WS1 + description: One wait state + value: 1 enum/NRST_MODE: bit_size: 2 variants: - - name: INPUT_ONLY - description: Reset pin is in reset input mode only - value: 1 - - name: GPIO - description: Reset pin is in GPIO mode only - value: 2 - - name: INPUT_OUTPUT - description: Reset pin is in resety input and output mode - value: 3 + - name: INPUT_ONLY + description: Reset pin is in reset input mode only + value: 1 + - name: GPIO + description: Reset pin is in GPIO mode only + value: 2 + - name: INPUT_OUTPUT + description: Reset pin is in resety input and output mode + value: 3 enum/RDP: bit_size: 8 variants: - - name: LEVEL_0 - description: Read protection not active - value: 170 - - name: LEVEL_1 - description: Memories read protection active - value: 187 - - name: LEVEL_2 - description: Chip read protection active - value: 204 + - name: LEVEL_0 + description: Read protection not active + value: 170 + - name: LEVEL_1 + description: Memories read protection active + value: 187 + - name: LEVEL_2 + description: Chip read protection active + value: 204 diff --git a/data/registers/flash_f0.yaml b/data/registers/flash_f0.yaml index fdf75e7..679a72e 100644 --- a/data/registers/flash_f0.yaml +++ b/data/registers/flash_f0.yaml @@ -1,304 +1,303 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Flash access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 4 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 8 - access: Write - fieldset: OPTKEYR - - name: SR - description: Flash status register - byte_offset: 12 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 16 - fieldset: CR - - name: AR - description: Flash address register - byte_offset: 20 - access: Write - fieldset: AR - - name: OBR - description: Option byte register - byte_offset: 28 - access: Read - fieldset: OBR - - name: WRPR - description: Write protection register - byte_offset: 32 - access: Read - fieldset: WRPR + - name: ACR + description: Flash access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 4 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 8 + access: Write + fieldset: OPTKEYR + - name: SR + description: Flash status register + byte_offset: 12 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 16 + fieldset: CR + - name: AR + description: Flash address register + byte_offset: 20 + access: Write + fieldset: AR + - name: OBR + description: Option byte register + byte_offset: 28 + access: Read + fieldset: OBR + - name: WRPR + description: Write protection register + byte_offset: 32 + access: Read + fieldset: WRPR fieldset/ACR: description: Flash access control register fields: - - name: LATENCY - description: LATENCY - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: PRFTBE - description: Prefetch buffer enable - bit_offset: 4 - bit_size: 1 - - name: PRFTBS - description: Prefetch buffer status - bit_offset: 5 - bit_size: 1 + - name: LATENCY + description: LATENCY + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: PRFTBE + description: Prefetch buffer enable + bit_offset: 4 + bit_size: 1 + - name: PRFTBS + description: Prefetch buffer status + bit_offset: 5 + bit_size: 1 fieldset/AR: description: Flash address register fields: - - name: FAR - description: Flash address - bit_offset: 0 - bit_size: 32 + - name: FAR + description: Flash address + bit_offset: 0 + bit_size: 32 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass erase - bit_offset: 2 - bit_size: 1 - - name: OPTPG - description: Option byte programming - bit_offset: 4 - bit_size: 1 - - name: OPTER - description: Option byte erase - bit_offset: 5 - bit_size: 1 - - name: STRT - description: Start - bit_offset: 6 - bit_size: 1 - - name: LOCK - description: Lock - bit_offset: 7 - bit_size: 1 - - name: OPTWRE - description: Option bytes write enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 12 - bit_size: 1 - - name: FORCE_OPTLOAD - description: Force option byte loading - bit_offset: 13 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass erase + bit_offset: 2 + bit_size: 1 + - name: OPTPG + description: Option byte programming + bit_offset: 4 + bit_size: 1 + - name: OPTER + description: Option byte erase + bit_offset: 5 + bit_size: 1 + - name: STRT + description: Start + bit_offset: 6 + bit_size: 1 + - name: LOCK + description: Lock + bit_offset: 7 + bit_size: 1 + - name: OPTWRE + description: Option bytes write enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 12 + bit_size: 1 + - name: FORCE_OPTLOAD + description: Force option byte loading + bit_offset: 13 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: FKEYR - description: Flash Key - bit_offset: 0 - bit_size: 32 + - name: FKEYR + description: Flash Key + bit_offset: 0 + bit_size: 32 fieldset/OBR: description: Option byte register fields: - - name: OPTERR - description: Option byte error - bit_offset: 0 - bit_size: 1 - - name: RDPRT - description: Read protection level status - bit_offset: 1 - bit_size: 2 - enum: RDPRT - - name: WDG_SW - description: WDG_SW - bit_offset: 8 - bit_size: 1 - enum: WDG_SW - - name: nRST_STOP - description: nRST_STOP - bit_offset: 9 - bit_size: 1 - enum: nRST_STOP - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 10 - bit_size: 1 - enum: nRST_STDBY - - name: nBOOT0 - description: nBOOT0 - bit_offset: 11 - bit_size: 1 - enum: nBOOT0 - - name: nBOOT1 - description: BOOT1 - bit_offset: 12 - bit_size: 1 - enum: nBOOT1 - - name: VDDA_MONITOR - description: VDDA_MONITOR - bit_offset: 13 - bit_size: 1 - enum: VDDA_MONITOR - - name: RAM_PARITY_CHECK - description: RAM_PARITY_CHECK - bit_offset: 14 - bit_size: 1 - enum: RAM_PARITY_CHECK - - name: BOOT_SEL - description: BOOT_SEL - bit_offset: 15 - bit_size: 1 - enum: BOOT_SEL - - name: Data0 - description: Data0 - bit_offset: 16 - bit_size: 8 - - name: Data1 - description: Data1 - bit_offset: 24 - bit_size: 8 + - name: OPTERR + description: Option byte error + bit_offset: 0 + bit_size: 1 + - name: RDPRT + description: Read protection level status + bit_offset: 1 + bit_size: 2 + enum: RDPRT + - name: WDG_SW + description: WDG_SW + bit_offset: 8 + bit_size: 1 + enum: WDG_SW + - name: nRST_STOP + description: nRST_STOP + bit_offset: 9 + bit_size: 1 + enum: nRST_STOP + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 10 + bit_size: 1 + enum: nRST_STDBY + - name: nBOOT0 + description: nBOOT0 + bit_offset: 11 + bit_size: 1 + enum: nBOOT0 + - name: nBOOT1 + description: BOOT1 + bit_offset: 12 + bit_size: 1 + enum: nBOOT1 + - name: VDDA_MONITOR + description: VDDA_MONITOR + bit_offset: 13 + bit_size: 1 + enum: VDDA_MONITOR + - name: RAM_PARITY_CHECK + description: RAM_PARITY_CHECK + bit_offset: 14 + bit_size: 1 + enum: RAM_PARITY_CHECK + - name: BOOT_SEL + description: BOOT_SEL + bit_offset: 15 + bit_size: 1 + enum: BOOT_SEL + - name: Data0 + description: Data0 + bit_offset: 16 + bit_size: 8 + - name: Data1 + description: Data1 + bit_offset: 24 + bit_size: 8 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Flash status register fields: - - name: BSY - description: Busy - bit_offset: 0 - bit_size: 1 - - name: PGERR - description: Programming error - bit_offset: 2 - bit_size: 1 - - name: WRPRT - description: Write protection error - bit_offset: 4 - bit_size: 1 - - name: EOP - description: End of operation - bit_offset: 5 - bit_size: 1 + - name: BSY + description: Busy + bit_offset: 0 + bit_size: 1 + - name: PGERR + description: Programming error + bit_offset: 2 + bit_size: 1 + - name: WRPRT + description: Write protection error + bit_offset: 4 + bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 5 + bit_size: 1 fieldset/WRPR: description: Write protection register fields: - - name: WRP - description: Write protect - bit_offset: 0 - bit_size: 32 + - name: WRP + description: Write protect + bit_offset: 0 + bit_size: 32 enum/BOOT_SEL: bit_size: 1 variants: - - name: nBOOT0 - description: BOOT0 signal is defined by nBOOT0 option bit - value: 0 - - name: BOOT0 - description: BOOT0 signal is defined by BOOT0 pin value (legacy mode) - value: 1 + - name: nBOOT0 + description: BOOT0 signal is defined by nBOOT0 option bit + value: 0 + - name: BOOT0 + description: BOOT0 signal is defined by BOOT0 pin value (legacy mode) + value: 1 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: 0 wait states - value: 0 - - name: WS1 - description: 1 wait state - value: 1 + - name: WS0 + description: 0 wait states + value: 0 + - name: WS1 + description: 1 wait state + value: 1 enum/RAM_PARITY_CHECK: bit_size: 1 variants: - - name: Enabled - description: RAM parity check enabled - value: 0 - - name: Disabled - description: RAM parity check disabled - value: 1 + - name: Enabled + description: RAM parity check enabled + value: 0 + - name: Disabled + description: RAM parity check disabled + value: 1 enum/RDPRT: bit_size: 2 variants: - - name: Level0 - description: Level 0 - value: 0 - - name: Level1 - description: Level 1 - value: 1 - - name: Level2 - description: Level 2 - value: 3 + - name: Level0 + description: Level 0 + value: 0 + - name: Level1 + description: Level 1 + value: 1 + - name: Level2 + description: Level 2 + value: 3 enum/VDDA_MONITOR: bit_size: 1 variants: - - name: Disabled - description: VDDA power supply supervisor disabled - value: 0 - - name: Enabled - description: VDDA power supply supervisor enabled - value: 1 + - name: Disabled + description: VDDA power supply supervisor disabled + value: 0 + - name: Enabled + description: VDDA power supply supervisor enabled + value: 1 enum/WDG_SW: bit_size: 1 variants: - - name: Hardware - description: Hardware watchdog - value: 0 - - name: Software - description: Software watchdog - value: 1 + - name: Hardware + description: Hardware watchdog + value: 0 + - name: Software + description: Software watchdog + value: 1 enum/nBOOT0: bit_size: 1 variants: - - name: Disabled - description: "When BOOT_SEL is cleared, select the device boot mode" - value: 0 - - name: Enabled - description: "When BOOT_SEL is cleared, select the device boot mode" - value: 1 + - name: Disabled + description: When BOOT_SEL is cleared, select the device boot mode + value: 0 + - name: Enabled + description: When BOOT_SEL is cleared, select the device boot mode + value: 1 enum/nBOOT1: bit_size: 1 variants: - - name: Disabled - description: "Together with BOOT0, select the device boot mode" - value: 0 - - name: Enabled - description: "Together with BOOT0, select the device boot mode" - value: 1 + - name: Disabled + description: Together with BOOT0, select the device boot mode + value: 0 + - name: Enabled + description: Together with BOOT0, select the device boot mode + value: 1 enum/nRST_STDBY: bit_size: 1 variants: - - name: Reset - description: Reset generated when entering Standby mode - value: 0 - - name: NoReset - description: No reset generated - value: 1 + - name: Reset + description: Reset generated when entering Standby mode + value: 0 + - name: NoReset + description: No reset generated + value: 1 enum/nRST_STOP: bit_size: 1 variants: - - name: Reset - description: Reset generated when entering Stop mode - value: 0 - - name: NoReset - description: No reset generated - value: 1 + - name: Reset + description: Reset generated when entering Stop mode + value: 0 + - name: NoReset + description: No reset generated + value: 1 diff --git a/data/registers/flash_f1.yaml b/data/registers/flash_f1.yaml index 4841a1c..24cca52 100644 --- a/data/registers/flash_f1.yaml +++ b/data/registers/flash_f1.yaml @@ -1,194 +1,193 @@ ---- block/FLASH: description: FLASH items: - - name: ACR - description: Flash access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 4 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 8 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 12 - fieldset: SR - - name: CR - description: Control register - byte_offset: 16 - fieldset: CR - - name: AR - description: Flash address register - byte_offset: 20 - access: Write - fieldset: AR - - name: OBR - description: Option byte register - byte_offset: 28 - access: Read - fieldset: OBR - - name: WRPR - description: Write protection register - byte_offset: 32 - access: Read - fieldset: WRPR + - name: ACR + description: Flash access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 4 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 8 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 12 + fieldset: SR + - name: CR + description: Control register + byte_offset: 16 + fieldset: CR + - name: AR + description: Flash address register + byte_offset: 20 + access: Write + fieldset: AR + - name: OBR + description: Option byte register + byte_offset: 28 + access: Read + fieldset: OBR + - name: WRPR + description: Write protection register + byte_offset: 32 + access: Read + fieldset: WRPR fieldset/ACR: description: Flash access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: HLFCYA - description: Flash half cycle access enable - bit_offset: 3 - bit_size: 1 - - name: PRFTBE - description: Prefetch buffer enable - bit_offset: 4 - bit_size: 1 - - name: PRFTBS - description: Prefetch buffer status - bit_offset: 5 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: HLFCYA + description: Flash half cycle access enable + bit_offset: 3 + bit_size: 1 + - name: PRFTBE + description: Prefetch buffer enable + bit_offset: 4 + bit_size: 1 + - name: PRFTBS + description: Prefetch buffer status + bit_offset: 5 + bit_size: 1 fieldset/AR: description: Flash address register fields: - - name: FAR - description: Flash Address - bit_offset: 0 - bit_size: 32 + - name: FAR + description: Flash Address + bit_offset: 0 + bit_size: 32 fieldset/CR: description: Control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page Erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass Erase - bit_offset: 2 - bit_size: 1 - - name: OPTPG - description: Option byte programming - bit_offset: 4 - bit_size: 1 - - name: OPTER - description: Option byte erase - bit_offset: 5 - bit_size: 1 - - name: STRT - description: Start - bit_offset: 6 - bit_size: 1 - - name: LOCK - description: Lock - bit_offset: 7 - bit_size: 1 - - name: OPTWRE - description: Option bytes write enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 12 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page Erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass Erase + bit_offset: 2 + bit_size: 1 + - name: OPTPG + description: Option byte programming + bit_offset: 4 + bit_size: 1 + - name: OPTER + description: Option byte erase + bit_offset: 5 + bit_size: 1 + - name: STRT + description: Start + bit_offset: 6 + bit_size: 1 + - name: LOCK + description: Lock + bit_offset: 7 + bit_size: 1 + - name: OPTWRE + description: Option bytes write enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 12 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEY - description: FPEC key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: FPEC key + bit_offset: 0 + bit_size: 32 fieldset/OBR: description: Option byte register fields: - - name: OPTERR - description: Option byte error - bit_offset: 0 - bit_size: 1 - - name: RDPRT - description: Read protection - bit_offset: 1 - bit_size: 1 - - name: WDG_SW - description: WDG_SW - bit_offset: 2 - bit_size: 1 - - name: nRST_STOP - description: nRST_STOP - bit_offset: 3 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 4 - bit_size: 1 - - name: Data0 - description: Data0 - bit_offset: 10 - bit_size: 8 - - name: Data1 - description: Data1 - bit_offset: 18 - bit_size: 8 + - name: OPTERR + description: Option byte error + bit_offset: 0 + bit_size: 1 + - name: RDPRT + description: Read protection + bit_offset: 1 + bit_size: 1 + - name: WDG_SW + description: WDG_SW + bit_offset: 2 + bit_size: 1 + - name: nRST_STOP + description: nRST_STOP + bit_offset: 3 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 4 + bit_size: 1 + - name: Data0 + description: Data0 + bit_offset: 10 + bit_size: 8 + - name: Data1 + description: Data1 + bit_offset: 18 + bit_size: 8 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEY - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEY + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: BSY - description: Busy - bit_offset: 0 - bit_size: 1 - - name: PGERR - description: Programming error - bit_offset: 2 - bit_size: 1 - - name: WRPRTERR - description: Write protection error - bit_offset: 4 - bit_size: 1 - - name: EOP - description: End of operation - bit_offset: 5 - bit_size: 1 + - name: BSY + description: Busy + bit_offset: 0 + bit_size: 1 + - name: PGERR + description: Programming error + bit_offset: 2 + bit_size: 1 + - name: WRPRTERR + description: Write protection error + bit_offset: 4 + bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 5 + bit_size: 1 fieldset/WRPR: description: Write protection register fields: - - name: WRP - description: Write protect - bit_offset: 0 - bit_size: 32 + - name: WRP + description: Write protect + bit_offset: 0 + bit_size: 32 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: "Zero wait state, if 0 < SYSCLK≤ 24 MHz" - value: 0 - - name: WS1 - description: "One wait state, if 24 MHz < SYSCLK ≤ 48 MHz" - value: 1 - - name: WS2 - description: "Two wait states, if 48 MHz < SYSCLK ≤ 72 MHz" - value: 2 + - name: WS0 + description: Zero wait state, if 0 < SYSCLK≤ 24 MHz + value: 0 + - name: WS1 + description: One wait state, if 24 MHz < SYSCLK ≤ 48 MHz + value: 1 + - name: WS2 + description: Two wait states, if 48 MHz < SYSCLK ≤ 72 MHz + value: 2 diff --git a/data/registers/flash_f2.yaml b/data/registers/flash_f2.yaml index fe4993b..c57abe1 100644 --- a/data/registers/flash_f2.yaml +++ b/data/registers/flash_f2.yaml @@ -1,220 +1,219 @@ ---- block/FLASH: description: FLASH items: - - name: ACR - description: Flash access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 4 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 8 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 12 - fieldset: SR - - name: CR - description: Control register - byte_offset: 16 - fieldset: CR - - name: OPTCR - description: Flash option control register - byte_offset: 20 - fieldset: OPTCR + - name: ACR + description: Flash access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 4 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 8 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 12 + fieldset: SR + - name: CR + description: Control register + byte_offset: 16 + fieldset: CR + - name: OPTCR + description: Flash option control register + byte_offset: 20 + fieldset: OPTCR fieldset/ACR: description: Flash access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: DCEN - description: Data cache enable - bit_offset: 10 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: DCRST - description: Data cache reset - bit_offset: 12 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: DCEN + description: Data cache enable + bit_offset: 10 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: DCRST + description: Data cache reset + bit_offset: 12 + bit_size: 1 fieldset/CR: description: Control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: SER - description: Sector Erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass Erase - bit_offset: 2 - bit_size: 1 - - name: SNB - description: Sector number - bit_offset: 3 - bit_size: 4 - - name: PSIZE - description: Program size - bit_offset: 8 - bit_size: 2 - enum: PSIZE - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: LOCK - description: Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: SER + description: Sector Erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass Erase + bit_offset: 2 + bit_size: 1 + - name: SNB + description: Sector number + bit_offset: 3 + bit_size: 4 + - name: PSIZE + description: Program size + bit_offset: 8 + bit_size: 2 + enum: PSIZE + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: LOCK + description: Lock + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEY - description: FPEC key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: FPEC key + bit_offset: 0 + bit_size: 32 fieldset/OPTCR: description: Flash option control register fields: - - name: OPTLOCK - description: Option lock - bit_offset: 0 - bit_size: 1 - - name: OPTSTRT - description: Option start - bit_offset: 1 - bit_size: 1 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 2 - bit_size: 2 - - name: WDG_SW - description: WDG_SW User option bytes - bit_offset: 5 - bit_size: 1 - - name: nRST_STOP - description: nRST_STOP User option bytes - bit_offset: 6 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY User option bytes - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Read protect - bit_offset: 8 - bit_size: 8 - - name: nWRP - description: Not write protect - bit_offset: 16 - bit_size: 12 + - name: OPTLOCK + description: Option lock + bit_offset: 0 + bit_size: 1 + - name: OPTSTRT + description: Option start + bit_offset: 1 + bit_size: 1 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 2 + bit_size: 2 + - name: WDG_SW + description: WDG_SW User option bytes + bit_offset: 5 + bit_size: 1 + - name: nRST_STOP + description: nRST_STOP User option bytes + bit_offset: 6 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY User option bytes + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Read protect + bit_offset: 8 + bit_size: 8 + - name: nWRP + description: Not write protect + bit_offset: 16 + bit_size: 12 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEY - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEY + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: WRPERR - description: Write protection error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: PGPERR - description: Programming parallelism error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: WRPERR + description: Write protection error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: PGPERR + description: Programming parallelism error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: 0 wait states - value: 0 - - name: WS1 - description: 1 wait states - value: 1 - - name: WS2 - description: 2 wait states - value: 2 - - name: WS3 - description: 3 wait states - value: 3 - - name: WS4 - description: 4 wait states - value: 4 - - name: WS5 - description: 5 wait states - value: 5 - - name: WS6 - description: 6 wait states - value: 6 - - name: WS7 - description: 7 wait states - value: 7 + - name: WS0 + description: 0 wait states + value: 0 + - name: WS1 + description: 1 wait states + value: 1 + - name: WS2 + description: 2 wait states + value: 2 + - name: WS3 + description: 3 wait states + value: 3 + - name: WS4 + description: 4 wait states + value: 4 + - name: WS5 + description: 5 wait states + value: 5 + - name: WS6 + description: 6 wait states + value: 6 + - name: WS7 + description: 7 wait states + value: 7 enum/PSIZE: bit_size: 2 variants: - - name: PSIZE8 - description: Program x8 - value: 0 - - name: PSIZE16 - description: Program x16 - value: 1 - - name: PSIZE32 - description: Program x32 - value: 2 - - name: PSIZE64 - description: Program x64 - value: 3 + - name: PSIZE8 + description: Program x8 + value: 0 + - name: PSIZE16 + description: Program x16 + value: 1 + - name: PSIZE32 + description: Program x32 + value: 2 + - name: PSIZE64 + description: Program x64 + value: 3 diff --git a/data/registers/flash_f3.yaml b/data/registers/flash_f3.yaml index e706456..b558100 100644 --- a/data/registers/flash_f3.yaml +++ b/data/registers/flash_f3.yaml @@ -1,257 +1,256 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Flash access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 4 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 8 - access: Write - fieldset: OPTKEYR - - name: SR - description: Flash status register - byte_offset: 12 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 16 - fieldset: CR - - name: AR - description: Flash address register - byte_offset: 20 - access: Write - fieldset: AR - - name: OBR - description: Option byte register - byte_offset: 28 - access: Read - fieldset: OBR - - name: WRPR - description: Write protection register - byte_offset: 32 - access: Read - fieldset: WRPR + - name: ACR + description: Flash access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 4 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 8 + access: Write + fieldset: OPTKEYR + - name: SR + description: Flash status register + byte_offset: 12 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 16 + fieldset: CR + - name: AR + description: Flash address register + byte_offset: 20 + access: Write + fieldset: AR + - name: OBR + description: Option byte register + byte_offset: 28 + access: Read + fieldset: OBR + - name: WRPR + description: Write protection register + byte_offset: 32 + access: Read + fieldset: WRPR fieldset/ACR: description: Flash access control register fields: - - name: LATENCY - description: LATENCY - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: HLFCYA - description: Flash half cycle access enable - bit_offset: 3 - bit_size: 1 - - name: PRFTBE - description: PRFTBE - bit_offset: 4 - bit_size: 1 - - name: PRFTBS - description: PRFTBS - bit_offset: 5 - bit_size: 1 + - name: LATENCY + description: LATENCY + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: HLFCYA + description: Flash half cycle access enable + bit_offset: 3 + bit_size: 1 + - name: PRFTBE + description: PRFTBE + bit_offset: 4 + bit_size: 1 + - name: PRFTBS + description: PRFTBS + bit_offset: 5 + bit_size: 1 fieldset/AR: description: Flash address register fields: - - name: FAR - description: Flash address - bit_offset: 0 - bit_size: 32 + - name: FAR + description: Flash address + bit_offset: 0 + bit_size: 32 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass erase - bit_offset: 2 - bit_size: 1 - - name: OPTPG - description: Option byte programming - bit_offset: 4 - bit_size: 1 - - name: OPTER - description: Option byte erase - bit_offset: 5 - bit_size: 1 - - name: STRT - description: Start - bit_offset: 6 - bit_size: 1 - - name: LOCK - description: Lock - bit_offset: 7 - bit_size: 1 - - name: OPTWRE - description: Option bytes write enable - bit_offset: 9 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 12 - bit_size: 1 - - name: OBL_LAUNCH - description: Force option byte loading - bit_offset: 13 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass erase + bit_offset: 2 + bit_size: 1 + - name: OPTPG + description: Option byte programming + bit_offset: 4 + bit_size: 1 + - name: OPTER + description: Option byte erase + bit_offset: 5 + bit_size: 1 + - name: STRT + description: Start + bit_offset: 6 + bit_size: 1 + - name: LOCK + description: Lock + bit_offset: 7 + bit_size: 1 + - name: OPTWRE + description: Option bytes write enable + bit_offset: 9 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 12 + bit_size: 1 + - name: OBL_LAUNCH + description: Force option byte loading + bit_offset: 13 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: FKEYR - description: Flash Key - bit_offset: 0 - bit_size: 32 + - name: FKEYR + description: Flash Key + bit_offset: 0 + bit_size: 32 fieldset/OBR: description: Option byte register fields: - - name: OPTERR - description: Option byte error - bit_offset: 0 - bit_size: 1 - - name: RDPRT - description: Read protection Level status - bit_offset: 1 - bit_size: 2 - enum: RDPRT - - name: WDG_SW - description: WDG_SW - bit_offset: 8 - bit_size: 1 - enum: WDG_SW - - name: nRST_STOP - description: nRST_STOP - bit_offset: 9 - bit_size: 1 - enum: nRST_STOP - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 10 - bit_size: 1 - enum: nRST_STDBY - - name: nBOOT1 - description: BOOT1 - bit_offset: 12 - bit_size: 1 - - name: VDDA_MONITOR - description: VDDA_MONITOR - bit_offset: 13 - bit_size: 1 - - name: SRAM_PARITY_CHECK - description: SRAM_PARITY_CHECK - bit_offset: 14 - bit_size: 1 - - name: SDADC12_VDD_MONITOR - description: SDADC12_VDD_MONITOR - bit_offset: 15 - bit_size: 1 - - name: Data0 - description: Data0 - bit_offset: 16 - bit_size: 8 - - name: Data1 - description: Data1 - bit_offset: 24 - bit_size: 8 + - name: OPTERR + description: Option byte error + bit_offset: 0 + bit_size: 1 + - name: RDPRT + description: Read protection Level status + bit_offset: 1 + bit_size: 2 + enum: RDPRT + - name: WDG_SW + description: WDG_SW + bit_offset: 8 + bit_size: 1 + enum: WDG_SW + - name: nRST_STOP + description: nRST_STOP + bit_offset: 9 + bit_size: 1 + enum: nRST_STOP + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 10 + bit_size: 1 + enum: nRST_STDBY + - name: nBOOT1 + description: BOOT1 + bit_offset: 12 + bit_size: 1 + - name: VDDA_MONITOR + description: VDDA_MONITOR + bit_offset: 13 + bit_size: 1 + - name: SRAM_PARITY_CHECK + description: SRAM_PARITY_CHECK + bit_offset: 14 + bit_size: 1 + - name: SDADC12_VDD_MONITOR + description: SDADC12_VDD_MONITOR + bit_offset: 15 + bit_size: 1 + - name: Data0 + description: Data0 + bit_offset: 16 + bit_size: 8 + - name: Data1 + description: Data1 + bit_offset: 24 + bit_size: 8 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Flash status register fields: - - name: BSY - description: Busy - bit_offset: 0 - bit_size: 1 - - name: PGERR - description: Programming error - bit_offset: 2 - bit_size: 1 - - name: WRPRTERR - description: Write protection error - bit_offset: 4 - bit_size: 1 - - name: EOP - description: End of operation - bit_offset: 5 - bit_size: 1 + - name: BSY + description: Busy + bit_offset: 0 + bit_size: 1 + - name: PGERR + description: Programming error + bit_offset: 2 + bit_size: 1 + - name: WRPRTERR + description: Write protection error + bit_offset: 4 + bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 5 + bit_size: 1 fieldset/WRPR: description: Write protection register fields: - - name: WRP - description: Write protect - bit_offset: 0 - bit_size: 32 + - name: WRP + description: Write protect + bit_offset: 0 + bit_size: 32 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: "0 wait states, if 0 < HCLK <= 24 MHz" - value: 0 - - name: WS1 - description: "1 wait state, if 24 < HCLK <= 48 MHz" - value: 1 - - name: WS2 - description: "2 wait states, if 48 < HCLK <= 72 MHz" - value: 2 + - name: WS0 + description: 0 wait states, if 0 < HCLK <= 24 MHz + value: 0 + - name: WS1 + description: 1 wait state, if 24 < HCLK <= 48 MHz + value: 1 + - name: WS2 + description: 2 wait states, if 48 < HCLK <= 72 MHz + value: 2 enum/RDPRT: bit_size: 2 variants: - - name: Level0 - description: Level 0 - value: 0 - - name: Level1 - description: Level 1 - value: 1 - - name: Level2 - description: Level 2 - value: 3 + - name: Level0 + description: Level 0 + value: 0 + - name: Level1 + description: Level 1 + value: 1 + - name: Level2 + description: Level 2 + value: 3 enum/WDG_SW: bit_size: 1 variants: - - name: Hardware - description: Hardware watchdog - value: 0 - - name: Software - description: Software watchdog - value: 1 + - name: Hardware + description: Hardware watchdog + value: 0 + - name: Software + description: Software watchdog + value: 1 enum/nRST_STDBY: bit_size: 1 variants: - - name: Reset - description: Reset generated when entering Standby mode - value: 0 - - name: NoReset - description: No reset generated - value: 1 + - name: Reset + description: Reset generated when entering Standby mode + value: 0 + - name: NoReset + description: No reset generated + value: 1 enum/nRST_STOP: bit_size: 1 variants: - - name: Reset - description: Reset generated when entering Stop mode - value: 0 - - name: NoReset - description: No reset generated - value: 1 + - name: Reset + description: Reset generated when entering Stop mode + value: 0 + - name: NoReset + description: No reset generated + value: 1 diff --git a/data/registers/flash_f4.yaml b/data/registers/flash_f4.yaml index 9836d6e..68e5b41 100644 --- a/data/registers/flash_f4.yaml +++ b/data/registers/flash_f4.yaml @@ -1,252 +1,251 @@ ---- block/FLASH: description: FLASH items: - - name: ACR - description: Flash access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 4 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 8 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 12 - fieldset: SR - - name: CR - description: Control register - byte_offset: 16 - fieldset: CR - - name: OPTCR - description: Flash option control register - byte_offset: 20 - fieldset: OPTCR + - name: ACR + description: Flash access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 4 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 8 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 12 + fieldset: SR + - name: CR + description: Control register + byte_offset: 16 + fieldset: CR + - name: OPTCR + description: Flash option control register + byte_offset: 20 + fieldset: OPTCR fieldset/ACR: description: Flash access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: DCEN - description: Data cache enable - bit_offset: 10 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: DCRST - description: Data cache reset - bit_offset: 12 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: DCEN + description: Data cache enable + bit_offset: 10 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: DCRST + description: Data cache reset + bit_offset: 12 + bit_size: 1 fieldset/CR: description: Control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: SER - description: Sector Erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass Erase - bit_offset: 2 - bit_size: 1 - - name: SNB - description: Sector number - bit_offset: 3 - bit_size: 5 - - name: PSIZE - description: Program size - bit_offset: 8 - bit_size: 2 - enum: PSIZE - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: LOCK - description: Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: SER + description: Sector Erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass Erase + bit_offset: 2 + bit_size: 1 + - name: SNB + description: Sector number + bit_offset: 3 + bit_size: 5 + - name: PSIZE + description: Program size + bit_offset: 8 + bit_size: 2 + enum: PSIZE + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: LOCK + description: Lock + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEY - description: FPEC key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: FPEC key + bit_offset: 0 + bit_size: 32 fieldset/OPTCR: description: Flash option control register fields: - - name: OPTLOCK - description: Option lock - bit_offset: 0 - bit_size: 1 - - name: OPTSTRT - description: Option start - bit_offset: 1 - bit_size: 1 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 2 - bit_size: 2 - - name: WDG_SW - description: WDG_SW User option bytes - bit_offset: 5 - bit_size: 1 - - name: nRST_STOP - description: nRST_STOP User option bytes - bit_offset: 6 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY User option bytes - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Read protect - bit_offset: 8 - bit_size: 8 - - name: nWRP - description: Not write protect - bit_offset: 16 - bit_size: 12 - - name: DB1M - description: Dual-bank enable on 1 Mbyte Flash memory devices - bit_offset: 30 - bit_size: 1 - - name: SPRMOD - description: Selection of protection mode for nWPRi bits - bit_offset: 31 - bit_size: 1 + - name: OPTLOCK + description: Option lock + bit_offset: 0 + bit_size: 1 + - name: OPTSTRT + description: Option start + bit_offset: 1 + bit_size: 1 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 2 + bit_size: 2 + - name: WDG_SW + description: WDG_SW User option bytes + bit_offset: 5 + bit_size: 1 + - name: nRST_STOP + description: nRST_STOP User option bytes + bit_offset: 6 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY User option bytes + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Read protect + bit_offset: 8 + bit_size: 8 + - name: nWRP + description: Not write protect + bit_offset: 16 + bit_size: 12 + - name: DB1M + description: Dual-bank enable on 1 Mbyte Flash memory devices + bit_offset: 30 + bit_size: 1 + - name: SPRMOD + description: Selection of protection mode for nWPRi bits + bit_offset: 31 + bit_size: 1 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEY - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEY + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: WRPERR - description: Write protection error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: PGPERR - description: Programming parallelism error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: WRPERR + description: Write protection error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: PGPERR + description: Programming parallelism error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: 0 wait states - value: 0 - - name: WS1 - description: 1 wait states - value: 1 - - name: WS2 - description: 2 wait states - value: 2 - - name: WS3 - description: 3 wait states - value: 3 - - name: WS4 - description: 4 wait states - value: 4 - - name: WS5 - description: 5 wait states - value: 5 - - name: WS6 - description: 6 wait states - value: 6 - - name: WS7 - description: 7 wait states - value: 7 - - name: WS8 - description: 8 wait states - value: 8 - - name: WS9 - description: 9 wait states - value: 9 - - name: WS10 - description: 10 wait states - value: 10 - - name: WS11 - description: 11 wait states - value: 11 - - name: WS12 - description: 12 wait states - value: 12 - - name: WS13 - description: 13 wait states - value: 13 - - name: WS14 - description: 14 wait states - value: 14 - - name: WS15 - description: 15 wait states - value: 15 + - name: WS0 + description: 0 wait states + value: 0 + - name: WS1 + description: 1 wait states + value: 1 + - name: WS2 + description: 2 wait states + value: 2 + - name: WS3 + description: 3 wait states + value: 3 + - name: WS4 + description: 4 wait states + value: 4 + - name: WS5 + description: 5 wait states + value: 5 + - name: WS6 + description: 6 wait states + value: 6 + - name: WS7 + description: 7 wait states + value: 7 + - name: WS8 + description: 8 wait states + value: 8 + - name: WS9 + description: 9 wait states + value: 9 + - name: WS10 + description: 10 wait states + value: 10 + - name: WS11 + description: 11 wait states + value: 11 + - name: WS12 + description: 12 wait states + value: 12 + - name: WS13 + description: 13 wait states + value: 13 + - name: WS14 + description: 14 wait states + value: 14 + - name: WS15 + description: 15 wait states + value: 15 enum/PSIZE: bit_size: 2 variants: - - name: PSIZE8 - description: Program x8 - value: 0 - - name: PSIZE16 - description: Program x16 - value: 1 - - name: PSIZE32 - description: Program x32 - value: 2 - - name: PSIZE64 - description: Program x64 - value: 3 + - name: PSIZE8 + description: Program x8 + value: 0 + - name: PSIZE16 + description: Program x16 + value: 1 + - name: PSIZE32 + description: Program x32 + value: 2 + - name: PSIZE64 + description: Program x64 + value: 3 diff --git a/data/registers/flash_f7.yaml b/data/registers/flash_f7.yaml index 103fe1a..961d41b 100644 --- a/data/registers/flash_f7.yaml +++ b/data/registers/flash_f7.yaml @@ -1,294 +1,293 @@ ---- block/FLASH: description: FLASH items: - - name: ACR - description: Flash access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 4 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 8 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 12 - fieldset: SR - - name: CR - description: Control register - byte_offset: 16 - fieldset: CR - - name: OPTCR - description: Flash option control register - byte_offset: 20 - fieldset: OPTCR - - name: OPTCR1 - description: Flash option control register 1 - byte_offset: 24 - fieldset: OPTCR1 - - name: OPTCR2 - description: Flash option control register - byte_offset: 28 - fieldset: OPTCR2 + - name: ACR + description: Flash access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 4 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 8 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 12 + fieldset: SR + - name: CR + description: Control register + byte_offset: 16 + fieldset: CR + - name: OPTCR + description: Flash option control register + byte_offset: 20 + fieldset: OPTCR + - name: OPTCR1 + description: Flash option control register 1 + byte_offset: 24 + fieldset: OPTCR1 + - name: OPTCR2 + description: Flash option control register + byte_offset: 28 + fieldset: OPTCR2 fieldset/ACR: description: Flash access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 4 - enum: LATENCY - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ARTEN - description: ART Accelerator Enable - bit_offset: 9 - bit_size: 1 - - name: ARTRST - description: ART Accelerator reset - bit_offset: 11 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 4 + enum: LATENCY + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ARTEN + description: ART Accelerator Enable + bit_offset: 9 + bit_size: 1 + - name: ARTRST + description: ART Accelerator reset + bit_offset: 11 + bit_size: 1 fieldset/CR: description: Control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: SER - description: Sector Erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass Erase of sectors 0 to 11 - bit_offset: 2 - bit_size: 1 - - name: SNB - description: Sector number - bit_offset: 3 - bit_size: 4 - - name: PSIZE - description: Program size - bit_offset: 8 - bit_size: 2 - enum: PSIZE - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: LOCK - description: Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: SER + description: Sector Erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass Erase of sectors 0 to 11 + bit_offset: 2 + bit_size: 1 + - name: SNB + description: Sector number + bit_offset: 3 + bit_size: 4 + - name: PSIZE + description: Program size + bit_offset: 8 + bit_size: 2 + enum: PSIZE + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: LOCK + description: Lock + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEY - description: FPEC key - bit_offset: 0 - bit_size: 32 + - name: KEY + description: FPEC key + bit_offset: 0 + bit_size: 32 fieldset/OPTCR: description: Flash option control register fields: - - name: OPTLOCK - description: Option lock - bit_offset: 0 - bit_size: 1 - - name: OPTSTRT - description: Option start - bit_offset: 1 - bit_size: 1 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 2 - bit_size: 2 - - name: WWDG_SW - description: User option bytes - bit_offset: 4 - bit_size: 1 - - name: IWDG_SW - description: WDG_SW User option bytes - bit_offset: 5 - bit_size: 1 - - name: nRST_STOP - description: nRST_STOP User option bytes - bit_offset: 6 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY User option bytes - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Read protect - bit_offset: 8 - bit_size: 8 - - name: nWRP - description: Not write protect - bit_offset: 16 - bit_size: 8 - - name: nDBOOT - description: Dual Boot mode (valid only when nDBANK=0) - bit_offset: 28 - bit_size: 1 - - name: nDBANK - description: Not dual bank mode - bit_offset: 29 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in standby mode - bit_offset: 30 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 31 - bit_size: 1 + - name: OPTLOCK + description: Option lock + bit_offset: 0 + bit_size: 1 + - name: OPTSTRT + description: Option start + bit_offset: 1 + bit_size: 1 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 2 + bit_size: 2 + - name: WWDG_SW + description: User option bytes + bit_offset: 4 + bit_size: 1 + - name: IWDG_SW + description: WDG_SW User option bytes + bit_offset: 5 + bit_size: 1 + - name: nRST_STOP + description: nRST_STOP User option bytes + bit_offset: 6 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY User option bytes + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Read protect + bit_offset: 8 + bit_size: 8 + - name: nWRP + description: Not write protect + bit_offset: 16 + bit_size: 8 + - name: nDBOOT + description: Dual Boot mode (valid only when nDBANK=0) + bit_offset: 28 + bit_size: 1 + - name: nDBANK + description: Not dual bank mode + bit_offset: 29 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in standby mode + bit_offset: 30 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 31 + bit_size: 1 fieldset/OPTCR1: description: Flash option control register 1 fields: - - name: BOOT_ADD0 - description: Boot base address when Boot pin =0 - bit_offset: 0 - bit_size: 16 - - name: BOOT_ADD1 - description: Boot base address when Boot pin =1 - bit_offset: 16 - bit_size: 16 + - name: BOOT_ADD0 + description: Boot base address when Boot pin =0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot base address when Boot pin =1 + bit_offset: 16 + bit_size: 16 fieldset/OPTCR2: description: Flash option control register fields: - - name: PCROPi - description: PCROP option byte - bit_offset: 0 - bit_size: 8 - - name: PCROP_RDP - description: PCROP zone preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROPi + description: PCROP option byte + bit_offset: 0 + bit_size: 8 + - name: PCROP_RDP + description: PCROP zone preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: WRPERR - description: Write protection error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: PGPERR - description: Programming parallelism error - bit_offset: 6 - bit_size: 1 - - name: ERSERR - description: Erase Sequence Error - bit_offset: 7 - bit_size: 1 - - name: RDERR - description: RDERR - bit_offset: 8 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: WRPERR + description: Write protection error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: PGPERR + description: Programming parallelism error + bit_offset: 6 + bit_size: 1 + - name: ERSERR + description: Erase Sequence Error + bit_offset: 7 + bit_size: 1 + - name: RDERR + description: RDERR + bit_offset: 8 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 enum/LATENCY: bit_size: 4 variants: - - name: WS0 - description: 0 wait states - value: 0 - - name: WS1 - description: 1 wait states - value: 1 - - name: WS2 - description: 2 wait states - value: 2 - - name: WS3 - description: 3 wait states - value: 3 - - name: WS4 - description: 4 wait states - value: 4 - - name: WS5 - description: 5 wait states - value: 5 - - name: WS6 - description: 6 wait states - value: 6 - - name: WS7 - description: 7 wait states - value: 7 - - name: WS8 - description: 8 wait states - value: 8 - - name: WS9 - description: 9 wait states - value: 9 - - name: WS10 - description: 10 wait states - value: 10 - - name: WS11 - description: 11 wait states - value: 11 - - name: WS12 - description: 12 wait states - value: 12 - - name: WS13 - description: 13 wait states - value: 13 - - name: WS14 - description: 14 wait states - value: 14 - - name: WS15 - description: 15 wait states - value: 15 + - name: WS0 + description: 0 wait states + value: 0 + - name: WS1 + description: 1 wait states + value: 1 + - name: WS2 + description: 2 wait states + value: 2 + - name: WS3 + description: 3 wait states + value: 3 + - name: WS4 + description: 4 wait states + value: 4 + - name: WS5 + description: 5 wait states + value: 5 + - name: WS6 + description: 6 wait states + value: 6 + - name: WS7 + description: 7 wait states + value: 7 + - name: WS8 + description: 8 wait states + value: 8 + - name: WS9 + description: 9 wait states + value: 9 + - name: WS10 + description: 10 wait states + value: 10 + - name: WS11 + description: 11 wait states + value: 11 + - name: WS12 + description: 12 wait states + value: 12 + - name: WS13 + description: 13 wait states + value: 13 + - name: WS14 + description: 14 wait states + value: 14 + - name: WS15 + description: 15 wait states + value: 15 enum/PSIZE: bit_size: 2 variants: - - name: PSIZE8 - description: Program x8 - value: 0 - - name: PSIZE16 - description: Program x16 - value: 1 - - name: PSIZE32 - description: Program x32 - value: 2 - - name: PSIZE64 - description: Program x64 - value: 3 + - name: PSIZE8 + description: Program x8 + value: 0 + - name: PSIZE16 + description: Program x16 + value: 1 + - name: PSIZE32 + description: Program x32 + value: 2 + - name: PSIZE64 + description: Program x64 + value: 3 diff --git a/data/registers/flash_g0.yaml b/data/registers/flash_g0.yaml index f95eafb..cc449e3 100644 --- a/data/registers/flash_g0.yaml +++ b/data/registers/flash_g0.yaml @@ -1,454 +1,453 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 8 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 12 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 16 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 20 - fieldset: CR - - name: ECCR - description: Flash ECC register - byte_offset: 24 - fieldset: ECCR - - name: OPTR - description: Flash option register - byte_offset: 32 - fieldset: OPTR - - name: PCROP1ASR - description: Flash PCROP zone A Start address register - byte_offset: 36 - access: Read - fieldset: PCROP1ASR - - name: PCROP1AER - description: Flash PCROP zone A End address register - byte_offset: 40 - access: Read - fieldset: PCROP1AER - - name: WRP1AR - description: Flash WRP area A address register - byte_offset: 44 - access: Read - fieldset: WRP1AR - - name: WRP1BR - description: Flash WRP area B address register - byte_offset: 48 - access: Read - fieldset: WRP1BR - - name: PCROP1BSR - description: Flash PCROP zone B Start address register - byte_offset: 52 - access: Read - fieldset: PCROP1BSR - - name: PCROP1BER - description: Flash PCROP zone B End address register - byte_offset: 56 - access: Read - fieldset: PCROP1BER - - name: SECR - description: Flash Security register - byte_offset: 128 - access: Read - fieldset: SECR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 8 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 12 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 16 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 20 + fieldset: CR + - name: ECCR + description: Flash ECC register + byte_offset: 24 + fieldset: ECCR + - name: OPTR + description: Flash option register + byte_offset: 32 + fieldset: OPTR + - name: PCROP1ASR + description: Flash PCROP zone A Start address register + byte_offset: 36 + access: Read + fieldset: PCROP1ASR + - name: PCROP1AER + description: Flash PCROP zone A End address register + byte_offset: 40 + access: Read + fieldset: PCROP1AER + - name: WRP1AR + description: Flash WRP area A address register + byte_offset: 44 + access: Read + fieldset: WRP1AR + - name: WRP1BR + description: Flash WRP area B address register + byte_offset: 48 + access: Read + fieldset: WRP1BR + - name: PCROP1BSR + description: Flash PCROP zone B Start address register + byte_offset: 52 + access: Read + fieldset: PCROP1BSR + - name: PCROP1BER + description: Flash PCROP zone B End address register + byte_offset: 56 + access: Read + fieldset: PCROP1BER + - name: SECR + description: Flash Security register + byte_offset: 128 + access: Read + fieldset: SECR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - enum: LATENCY - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: EMPTY - description: Flash User area empty - bit_offset: 16 - bit_size: 1 - - name: DBG_SWEN - description: Debug access software enable - bit_offset: 18 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + enum: LATENCY + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: EMPTY + description: Flash User area empty + bit_offset: 16 + bit_size: 1 + - name: DBG_SWEN + description: Debug access software enable + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Mass erase - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page number - bit_offset: 3 - bit_size: 6 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: SEC_PROT - description: Securable memory area protection enable - bit_offset: 28 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: FLASH_CR Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Mass erase + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page number + bit_offset: 3 + bit_size: 6 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: SEC_PROT + description: Securable memory area protection enable + bit_offset: 28 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: FLASH_CR Lock + bit_offset: 31 + bit_size: 1 fieldset/ECCR: description: Flash ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 14 - - name: SYSF_ECC - description: ECC fail for Corrected ECC Error or Double ECC Error in info block - bit_offset: 20 - bit_size: 1 - - name: ECCIE - description: ECC correction interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ECCC - description: ECC correction - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: ECC detection - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 14 + - name: SYSF_ECC + description: ECC fail for Corrected ECC Error or Double ECC Error in info block + bit_offset: 20 + bit_size: 1 + - name: ECCIE + description: ECC correction interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ECCC + description: ECC correction + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: ECC detection + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEYR - description: KEYR - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: KEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - enum: RDP - - name: BOREN - description: BOR reset Level - bit_offset: 8 - bit_size: 1 - - name: BORF_LEV - description: These bits contain the VDD supply level threshold that activates the reset - bit_offset: 9 - bit_size: 2 - enum: BORF_LEV - - name: BORR_LEV - description: These bits contain the VDD supply level threshold that releases the reset. - bit_offset: 11 - bit_size: 2 - enum: BORR_LEV - - name: nRST_STOP - description: nRST_STOP - bit_offset: 13 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 14 - bit_size: 1 - - name: nRSTS_HDW - description: nRSTS_HDW - bit_offset: 15 - bit_size: 1 - - name: IDWG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: RAM_PARITY_CHECK - description: SRAM parity check control - bit_offset: 22 - bit_size: 1 - - name: nBOOT_SEL - description: nBOOT_SEL - bit_offset: 24 - bit_size: 1 - - name: nBOOT1 - description: Boot configuration - bit_offset: 25 - bit_size: 1 - - name: nBOOT0 - description: nBOOT0 option bit - bit_offset: 26 - bit_size: 1 - - name: NRST_MODE - description: NRST_MODE - bit_offset: 27 - bit_size: 2 - enum: NRST_MODE - - name: IRHEN - description: Internal reset holder enable bit - bit_offset: 29 - bit_size: 1 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + enum: RDP + - name: BOREN + description: BOR reset Level + bit_offset: 8 + bit_size: 1 + - name: BORF_LEV + description: These bits contain the VDD supply level threshold that activates the reset + bit_offset: 9 + bit_size: 2 + enum: BORF_LEV + - name: BORR_LEV + description: These bits contain the VDD supply level threshold that releases the reset. + bit_offset: 11 + bit_size: 2 + enum: BORR_LEV + - name: nRST_STOP + description: nRST_STOP + bit_offset: 13 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 14 + bit_size: 1 + - name: nRSTS_HDW + description: nRSTS_HDW + bit_offset: 15 + bit_size: 1 + - name: IDWG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: RAM_PARITY_CHECK + description: SRAM parity check control + bit_offset: 22 + bit_size: 1 + - name: nBOOT_SEL + description: nBOOT_SEL + bit_offset: 24 + bit_size: 1 + - name: nBOOT1 + description: Boot configuration + bit_offset: 25 + bit_size: 1 + - name: nBOOT0 + description: nBOOT0 option bit + bit_offset: 26 + bit_size: 1 + - name: NRST_MODE + description: NRST_MODE + bit_offset: 27 + bit_size: 2 + enum: NRST_MODE + - name: IRHEN + description: Internal reset holder enable bit + bit_offset: 29 + bit_size: 1 fieldset/PCROP1AER: description: Flash PCROP zone A End address register fields: - - name: PCROP1A_END - description: PCROP1A area end offset - bit_offset: 0 - bit_size: 8 - - name: PCROP_RDP - description: PCROP area preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROP1A_END + description: PCROP1A area end offset + bit_offset: 0 + bit_size: 8 + - name: PCROP_RDP + description: PCROP area preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/PCROP1ASR: description: Flash PCROP zone A Start address register fields: - - name: PCROP1A_STRT - description: PCROP1A area start offset - bit_offset: 0 - bit_size: 8 + - name: PCROP1A_STRT + description: PCROP1A area start offset + bit_offset: 0 + bit_size: 8 fieldset/PCROP1BER: description: Flash PCROP zone B End address register fields: - - name: PCROP1B_END - description: PCROP1B area end offset - bit_offset: 0 - bit_size: 8 + - name: PCROP1B_END + description: PCROP1B area end offset + bit_offset: 0 + bit_size: 8 fieldset/PCROP1BSR: description: Flash PCROP zone B Start address register fields: - - name: PCROP1B_STRT - description: PCROP1B area start offset - bit_offset: 0 - bit_size: 8 + - name: PCROP1B_STRT + description: PCROP1B area start offset + bit_offset: 0 + bit_size: 8 fieldset/SECR: description: Flash Security register fields: - - name: SEC_SIZE - description: Securable memory area size - bit_offset: 0 - bit_size: 7 - - name: BOOT_LOCK - description: used to force boot from user area - bit_offset: 16 - bit_size: 1 + - name: SEC_SIZE + description: Securable memory area size + bit_offset: 0 + bit_size: 7 + - name: BOOT_LOCK + description: used to force boot from user area + bit_offset: 16 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: OPTVERR - description: Option and Engineering bits loading validity error - bit_offset: 15 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 - - name: CFGBSY - description: Programming or erase configuration busy. - bit_offset: 18 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: OPTVERR + description: Option and Engineering bits loading validity error + bit_offset: 15 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 + - name: CFGBSY + description: Programming or erase configuration busy. + bit_offset: 18 + bit_size: 1 fieldset/WRP1AR: description: Flash WRP area A address register fields: - - name: WRP1A_STRT - description: WRP area A start offset - bit_offset: 0 - bit_size: 6 - - name: WRP1A_END - description: WRP area A end offset - bit_offset: 16 - bit_size: 6 + - name: WRP1A_STRT + description: WRP area A start offset + bit_offset: 0 + bit_size: 6 + - name: WRP1A_END + description: WRP area A end offset + bit_offset: 16 + bit_size: 6 fieldset/WRP1BR: description: Flash WRP area B address register fields: - - name: WRP1B_STRT - description: WRP area B start offset - bit_offset: 0 - bit_size: 6 - - name: WRP1B_END - description: WRP area B end offset - bit_offset: 16 - bit_size: 6 + - name: WRP1B_STRT + description: WRP area B start offset + bit_offset: 0 + bit_size: 6 + - name: WRP1B_END + description: WRP area B end offset + bit_offset: 16 + bit_size: 6 enum/BORF_LEV: bit_size: 2 variants: - - name: FALLING_0 - description: BOR falling level 1 with threshold around 2.0V - value: 0 - - name: FALLING_1 - description: BOR falling level 2 with threshold around 2.2V - value: 1 - - name: FALLING_2 - description: BOR falling level 3 with threshold around 2.5V - value: 2 - - name: FALLING_3 - description: BOR falling level 4 with threshold around 2.8V - value: 3 + - name: FALLING_0 + description: BOR falling level 1 with threshold around 2.0V + value: 0 + - name: FALLING_1 + description: BOR falling level 2 with threshold around 2.2V + value: 1 + - name: FALLING_2 + description: BOR falling level 3 with threshold around 2.5V + value: 2 + - name: FALLING_3 + description: BOR falling level 4 with threshold around 2.8V + value: 3 enum/BORR_LEV: bit_size: 2 variants: - - name: RISING_0 - description: BOR rising level 1 with threshold around 2.1V - value: 0 - - name: RISING_1 - description: BOR rising level 2 with threshold around 2.3V - value: 1 - - name: RISING_2 - description: BOR rising level 3 with threshold around 2.6V - value: 2 - - name: RISING_3 - description: BOR rising level 4 with threshold around 2.9V - value: 3 + - name: RISING_0 + description: BOR rising level 1 with threshold around 2.1V + value: 0 + - name: RISING_1 + description: BOR rising level 2 with threshold around 2.3V + value: 1 + - name: RISING_2 + description: BOR rising level 3 with threshold around 2.6V + value: 2 + - name: RISING_3 + description: BOR rising level 4 with threshold around 2.9V + value: 3 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: Zero wait states - value: 0 - - name: WS1 - description: One wait state - value: 1 - - name: WS2 - description: Two wait states - value: 2 + - name: WS0 + description: Zero wait states + value: 0 + - name: WS1 + description: One wait state + value: 1 + - name: WS2 + description: Two wait states + value: 2 enum/NRST_MODE: bit_size: 2 variants: - - name: INPUT_ONLY - description: Reset pin is in reset input mode only - value: 1 - - name: GPIO - description: Reset pin is in GPIO mode only - value: 2 - - name: INPUT_OUTPUT - description: Reset pin is in resety input and output mode - value: 3 + - name: INPUT_ONLY + description: Reset pin is in reset input mode only + value: 1 + - name: GPIO + description: Reset pin is in GPIO mode only + value: 2 + - name: INPUT_OUTPUT + description: Reset pin is in resety input and output mode + value: 3 enum/RDP: bit_size: 8 variants: - - name: LEVEL_0 - description: Read protection not active - value: 170 - - name: LEVEL_1 - description: Memories read protection active - value: 187 - - name: LEVEL_2 - description: Chip read protection active - value: 204 + - name: LEVEL_0 + description: Read protection not active + value: 170 + - name: LEVEL_1 + description: Memories read protection active + value: 187 + - name: LEVEL_2 + description: Chip read protection active + value: 204 diff --git a/data/registers/flash_g4.yaml b/data/registers/flash_g4.yaml index e6cca6d..b5e9bf5 100644 --- a/data/registers/flash_g4.yaml +++ b/data/registers/flash_g4.yaml @@ -1,427 +1,426 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: PDKEYR - description: Power down key register - byte_offset: 4 - access: Write - fieldset: PDKEYR - - name: KEYR - description: Flash key register - byte_offset: 8 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 12 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 16 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 20 - fieldset: CR - - name: ECCR - description: Flash ECC register - byte_offset: 24 - fieldset: ECCR - - name: OPTR - description: Flash option register - byte_offset: 32 - fieldset: OPTR - - name: PCROP1SR - description: Flash Bank 1 PCROP Start address register - byte_offset: 36 - fieldset: PCROP1SR - - name: PCROP1ER - description: Flash Bank 1 PCROP End address register - byte_offset: 40 - fieldset: PCROP1ER - - name: WRP1AR - description: Flash Bank 1 WRP area A address register - byte_offset: 44 - fieldset: WRP1AR - - name: WRP1BR - description: Flash Bank 1 WRP area B address register - byte_offset: 48 - fieldset: WRP1BR - - name: SEC1R - description: securable area bank1 register - byte_offset: 112 - fieldset: SEC1R + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: PDKEYR + description: Power down key register + byte_offset: 4 + access: Write + fieldset: PDKEYR + - name: KEYR + description: Flash key register + byte_offset: 8 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 12 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 16 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 20 + fieldset: CR + - name: ECCR + description: Flash ECC register + byte_offset: 24 + fieldset: ECCR + - name: OPTR + description: Flash option register + byte_offset: 32 + fieldset: OPTR + - name: PCROP1SR + description: Flash Bank 1 PCROP Start address register + byte_offset: 36 + fieldset: PCROP1SR + - name: PCROP1ER + description: Flash Bank 1 PCROP End address register + byte_offset: 40 + fieldset: PCROP1ER + - name: WRP1AR + description: Flash Bank 1 WRP area A address register + byte_offset: 44 + fieldset: WRP1AR + - name: WRP1BR + description: Flash Bank 1 WRP area B address register + byte_offset: 48 + fieldset: WRP1BR + - name: SEC1R + description: securable area bank1 register + byte_offset: 112 + fieldset: SEC1R fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 4 - enum: LATENCY - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: DCEN - description: Data cache enable - bit_offset: 10 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: DCRST - description: Data cache reset - bit_offset: 12 - bit_size: 1 - - name: RUN_PD - description: Flash Power-down mode during Low-power run mode - bit_offset: 13 - bit_size: 1 - - name: SLEEP_PD - description: Flash Power-down mode during Low-power sleep mode - bit_offset: 14 - bit_size: 1 - - name: DBG_SWEN - description: Debug software enable - bit_offset: 18 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 4 + enum: LATENCY + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: DCEN + description: Data cache enable + bit_offset: 10 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: DCRST + description: Data cache reset + bit_offset: 12 + bit_size: 1 + - name: RUN_PD + description: Flash Power-down mode during Low-power run mode + bit_offset: 13 + bit_size: 1 + - name: SLEEP_PD + description: Flash Power-down mode during Low-power sleep mode + bit_offset: 14 + bit_size: 1 + - name: DBG_SWEN + description: Debug software enable + bit_offset: 18 + bit_size: 1 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER1 - description: Bank 1 Mass erase - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page number - bit_offset: 3 - bit_size: 7 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: SEC_PROT1 - description: Securable memory area protection enable - bit_offset: 28 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: FLASH_CR Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER1 + description: Bank 1 Mass erase + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page number + bit_offset: 3 + bit_size: 7 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: SEC_PROT1 + description: Securable memory area protection enable + bit_offset: 28 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: FLASH_CR Lock + bit_offset: 31 + bit_size: 1 fieldset/ECCR: description: Flash ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 19 - - name: BK_ECC - description: ECC fail for Corrected ECC Error or Double ECC Error in info block - bit_offset: 21 - bit_size: 1 - - name: SYSF_ECC - description: ECC fail for Corrected ECC Error or Double ECC Error in info block - bit_offset: 22 - bit_size: 1 - - name: ECCIE - description: ECC correction interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ECCC2 - description: ECC correction - bit_offset: 28 - bit_size: 1 - - name: ECCD2 - description: ECC2 detection - bit_offset: 29 - bit_size: 1 - - name: ECCC - description: ECC correction - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: ECC detection - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 19 + - name: BK_ECC + description: ECC fail for Corrected ECC Error or Double ECC Error in info block + bit_offset: 21 + bit_size: 1 + - name: SYSF_ECC + description: ECC fail for Corrected ECC Error or Double ECC Error in info block + bit_offset: 22 + bit_size: 1 + - name: ECCIE + description: ECC correction interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ECCC2 + description: ECC correction + bit_offset: 28 + bit_size: 1 + - name: ECCD2 + description: ECC2 detection + bit_offset: 29 + bit_size: 1 + - name: ECCC + description: ECC correction + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: ECC detection + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEYR - description: KEYR - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: KEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - enum: RDP - - name: BOR_LEV - description: BOR reset Level - bit_offset: 8 - bit_size: 3 - - name: nRST_STOP - description: nRST_STOP - bit_offset: 12 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 13 - bit_size: 1 - - name: nRST_SHDW - description: nRST_SHDW - bit_offset: 14 - bit_size: 1 - - name: IDWG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: nBOOT1 - description: Boot configuration - bit_offset: 23 - bit_size: 1 - - name: SRAM2_PE - description: SRAM2 parity check enable - bit_offset: 24 - bit_size: 1 - - name: SRAM2_RST - description: SRAM2 Erase when system reset - bit_offset: 25 - bit_size: 1 - - name: nSWBOOT0 - description: nSWBOOT0 - bit_offset: 26 - bit_size: 1 - - name: nBOOT0 - description: nBOOT0 option bit - bit_offset: 27 - bit_size: 1 - - name: NRST_MODE - description: NRST_MODE - bit_offset: 28 - bit_size: 2 - enum: NRST_MODE - - name: IRHEN - description: Internal reset holder enable bit - bit_offset: 30 - bit_size: 1 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + enum: RDP + - name: BOR_LEV + description: BOR reset Level + bit_offset: 8 + bit_size: 3 + - name: nRST_STOP + description: nRST_STOP + bit_offset: 12 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 13 + bit_size: 1 + - name: nRST_SHDW + description: nRST_SHDW + bit_offset: 14 + bit_size: 1 + - name: IDWG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: nBOOT1 + description: Boot configuration + bit_offset: 23 + bit_size: 1 + - name: SRAM2_PE + description: SRAM2 parity check enable + bit_offset: 24 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 Erase when system reset + bit_offset: 25 + bit_size: 1 + - name: nSWBOOT0 + description: nSWBOOT0 + bit_offset: 26 + bit_size: 1 + - name: nBOOT0 + description: nBOOT0 option bit + bit_offset: 27 + bit_size: 1 + - name: NRST_MODE + description: NRST_MODE + bit_offset: 28 + bit_size: 2 + enum: NRST_MODE + - name: IRHEN + description: Internal reset holder enable bit + bit_offset: 30 + bit_size: 1 fieldset/PCROP1ER: description: Flash Bank 1 PCROP End address register fields: - - name: PCROP1_END - description: Bank 1 PCROP area end offset - bit_offset: 0 - bit_size: 15 - - name: PCROP_RDP - description: PCROP area preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROP1_END + description: Bank 1 PCROP area end offset + bit_offset: 0 + bit_size: 15 + - name: PCROP_RDP + description: PCROP area preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/PCROP1SR: description: Flash Bank 1 PCROP Start address register fields: - - name: PCROP1_STRT - description: Bank 1 PCROP area start offset - bit_offset: 0 - bit_size: 15 + - name: PCROP1_STRT + description: Bank 1 PCROP area start offset + bit_offset: 0 + bit_size: 15 fieldset/PDKEYR: description: Power down key register fields: - - name: PDKEYR - description: RUN_PD in FLASH_ACR key - bit_offset: 0 - bit_size: 32 + - name: PDKEYR + description: RUN_PD in FLASH_ACR key + bit_offset: 0 + bit_size: 32 fieldset/SEC1R: description: securable area bank1 register fields: - - name: SEC_SIZE1 - description: SEC_SIZE1 - bit_offset: 0 - bit_size: 8 - - name: BOOT_LOCK - description: used to force boot from user area - bit_offset: 16 - bit_size: 1 + - name: SEC_SIZE1 + description: SEC_SIZE1 + bit_offset: 0 + bit_size: 8 + - name: BOOT_LOCK + description: used to force boot from user area + bit_offset: 16 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: OPTVERR - description: Option validity error - bit_offset: 15 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: OPTVERR + description: Option validity error + bit_offset: 15 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 fieldset/WRP1AR: description: Flash Bank 1 WRP area A address register fields: - - name: WRP1A_STRT - description: Bank 1 WRP first area start offset - bit_offset: 0 - bit_size: 7 - - name: WRP1A_END - description: Bank 1 WRP first area A end offset - bit_offset: 16 - bit_size: 7 + - name: WRP1A_STRT + description: Bank 1 WRP first area start offset + bit_offset: 0 + bit_size: 7 + - name: WRP1A_END + description: Bank 1 WRP first area A end offset + bit_offset: 16 + bit_size: 7 fieldset/WRP1BR: description: Flash Bank 1 WRP area B address register fields: - - name: WRP1B_STRT - description: Bank 1 WRP second area B end offset - bit_offset: 0 - bit_size: 7 - - name: WRP1B_END - description: Bank 1 WRP second area B start offset - bit_offset: 16 - bit_size: 7 + - name: WRP1B_STRT + description: Bank 1 WRP second area B end offset + bit_offset: 0 + bit_size: 7 + - name: WRP1B_END + description: Bank 1 WRP second area B start offset + bit_offset: 16 + bit_size: 7 enum/LATENCY: bit_size: 3 variants: - - name: WS0 - description: Zero wait states - value: 0 - - name: WS1 - description: One wait state - value: 1 - - name: WS2 - description: Two wait states - value: 2 - - name: WS3 - description: Three wait states - value: 3 - - name: WS4 - description: Four wait states - value: 4 + - name: WS0 + description: Zero wait states + value: 0 + - name: WS1 + description: One wait state + value: 1 + - name: WS2 + description: Two wait states + value: 2 + - name: WS3 + description: Three wait states + value: 3 + - name: WS4 + description: Four wait states + value: 4 enum/NRST_MODE: bit_size: 2 variants: - - name: INPUT_ONLY - description: Reset pin is in reset input mode only - value: 1 - - name: GPIO - description: Reset pin is in GPIO mode only - value: 2 - - name: INPUT_OUTPUT - description: Reset pin is in reset input and output mode - value: 3 + - name: INPUT_ONLY + description: Reset pin is in reset input mode only + value: 1 + - name: GPIO + description: Reset pin is in GPIO mode only + value: 2 + - name: INPUT_OUTPUT + description: Reset pin is in reset input and output mode + value: 3 enum/RDP: bit_size: 8 variants: - - name: LEVEL_0 - description: Read protection not active - value: 170 - - name: LEVEL_1 - description: Memories read protection active - value: 187 - - name: LEVEL_2 - description: Chip read protection active - value: 204 + - name: LEVEL_0 + description: Read protection not active + value: 170 + - name: LEVEL_1 + description: Memories read protection active + value: 187 + - name: LEVEL_2 + description: Chip read protection active + value: 204 diff --git a/data/registers/flash_h5.yaml b/data/registers/flash_h5.yaml index 06ac0e0..c44fce5 100644 --- a/data/registers/flash_h5.yaml +++ b/data/registers/flash_h5.yaml @@ -1,1280 +1,1279 @@ ---- block/FLASH: description: FLASH address block description items: - - name: ACR - description: FLASH access control register - byte_offset: 0 - fieldset: ACR - - name: NSKEYR - description: FLASH non-secure key register - byte_offset: 4 - fieldset: NSKEYR - - name: SECKEYR - description: FLASH secure key register - byte_offset: 8 - fieldset: SECKEYR - - name: OPTKEYR - description: FLASH option key register - byte_offset: 12 - fieldset: OPTKEYR - - name: NSOBKKEYR - description: FLASH non-secure OBK key register - byte_offset: 16 - fieldset: NSOBKKEYR - - name: SECOBKKEYR - description: FLASH secure OBK key register - byte_offset: 20 - fieldset: SECOBKKEYR - - name: OPSR - description: FLASH operation status register - byte_offset: 24 - fieldset: OPSR - - name: OPTCR - description: FLASH option control register - byte_offset: 28 - fieldset: OPTCR - - name: NSSR - description: FLASH non-secure status register - byte_offset: 32 - fieldset: NSSR - - name: SECSR - description: FLASH secure status register - byte_offset: 36 - fieldset: SECSR - - name: NSCR - description: FLASH non-secure control register - byte_offset: 40 - fieldset: NSCR - - name: SECCR - description: FLASH secure control register - byte_offset: 44 - fieldset: SECCR - - name: NSCCR - description: FLASH non-secure clear control register - byte_offset: 48 - fieldset: NSCCR - - name: SECCCR - description: FLASH secure clear control register - byte_offset: 52 - fieldset: SECCCR - - name: PRIVCFGR - description: FLASH privilege configuration register - byte_offset: 60 - fieldset: PRIVCFGR - - name: NSOBKCFGR - description: FLASH non-secure OBK configuration register - byte_offset: 64 - fieldset: NSOBKCFGR - - name: SECOBKCFGR - description: FLASH secure OBK configuration register - byte_offset: 68 - fieldset: SECOBKCFGR - - name: HDPEXTR - description: FLASH HDP extension register - byte_offset: 72 - fieldset: HDPEXTR - - name: OPTSR_CUR - description: FLASH option status register - byte_offset: 80 - fieldset: OPTSR - - name: OPTSR_PRG - description: FLASH option status register - byte_offset: 84 - fieldset: OPTSR - - name: NSEPOCHR_CUR - description: FLASH non-secure EPOCH register - byte_offset: 96 - fieldset: NSEPOCHR - - name: SECEPOCHR_CUR - description: FLASH secure EPOCH register - byte_offset: 104 - fieldset: SECEPOCHR - - name: OPTSR2_CUR - description: FLASH option status register 2 - byte_offset: 112 - fieldset: OPTSR2 - - name: OPTSR2_PRG - description: FLASH option status register 2 - byte_offset: 116 - fieldset: OPTSR2 - - name: NSBOOTR_CUR - description: FLASH non-secure boot register - byte_offset: 128 - fieldset: NSBOOTR - - name: NSBOOTR_PRG - description: FLASH non-secure boot register - byte_offset: 132 - fieldset: NSBOOTR - - name: SECBOOTR_CUR - description: FLASH secure boot register - byte_offset: 136 - fieldset: SECBOOTR - - name: BOOTR_PRG - description: FLASH secure boot register - byte_offset: 140 - fieldset: BOOTR - - name: OTPBLR_CUR - description: FLASH non-secure OTP block lock - byte_offset: 144 - fieldset: OTPBLR - - name: OTPBLR_PRG - description: FLASH non-secure OTP block lock - byte_offset: 148 - fieldset: OTPBLR - - name: SECBB1R1 - description: FLASH secure block based register for Bank 1 - byte_offset: 160 - fieldset: SECBB - - name: SECBB1R2 - description: FLASH secure block based register for Bank 1 - byte_offset: 164 - fieldset: SECBB - - name: SECBB1R3 - description: FLASH secure block based register for Bank 1 - byte_offset: 168 - fieldset: SECBB - - name: SECBB1R4 - description: FLASH secure block based register for Bank 1 - byte_offset: 172 - fieldset: SECBB - - name: PRIVBB1R1 - description: FLASH privilege block based register for Bank 1 - byte_offset: 192 - fieldset: PRIVBB - - name: PRIVBB1R2 - description: FLASH privilege block based register for Bank 1 - byte_offset: 196 - fieldset: PRIVBB - - name: PRIVBB1R3 - description: FLASH privilege block based register for Bank 1 - byte_offset: 200 - fieldset: PRIVBB - - name: PRIVBB1R4 - description: FLASH privilege block based register for Bank 1 - byte_offset: 204 - fieldset: PRIVBB - - name: SECWM1R_CUR - description: FLASH security watermark for Bank 1 - byte_offset: 224 - fieldset: SECWM - - name: SECWM1R_PRG - description: FLASH security watermark for Bank 1 - byte_offset: 228 - fieldset: SECWM - - name: WRP1R_CUR - description: FLASH write sector group protection for Bank 1 - byte_offset: 232 - fieldset: WRP - - name: WRP1R_PRG - description: FLASH write sector group protection for Bank 1 - byte_offset: 236 - fieldset: WRP - - name: EDATA1R_CUR - description: FLASH data sector configuration Bank 1 - byte_offset: 240 - fieldset: EDATA1R - - name: EDATA1R_PRG - description: FLASH data sector configuration Bank 1 - byte_offset: 244 - fieldset: EDATA1R - - name: HDP1R_CUR - description: FLASH HDP Bank 1 configuration - byte_offset: 248 - fieldset: HDP1R - - name: HDP1R_PRG - description: FLASH HDP Bank 1 configuration - byte_offset: 252 - fieldset: HDP1R - - name: ECCCORR - description: FLASH ECC correction register - byte_offset: 256 - fieldset: ECCCORR - - name: ECCDETR - description: FLASH ECC detection register - byte_offset: 260 - fieldset: ECCDETR - - name: ECCDR - description: FLASH ECC data - byte_offset: 264 - fieldset: ECCDR - - name: SECBB2R1 - description: FLASH secure block-based register for Bank 2 - byte_offset: 416 - fieldset: SECBB - - name: SECBB2R2 - description: FLASH secure block-based register for Bank 2 - byte_offset: 420 - fieldset: SECBB - - name: SECBB2R3 - description: FLASH secure block-based register for Bank 2 - byte_offset: 424 - fieldset: SECBB - - name: SECBB2R4 - description: FLASH secure block-based register for Bank 2 - byte_offset: 428 - fieldset: SECBB - - name: PRIVBB2R1 - description: FLASH privilege block-based register for Bank 2 - byte_offset: 448 - fieldset: PRIVBB - - name: PRIVBB2R2 - description: FLASH privilege block-based register for Bank 2 - byte_offset: 452 - fieldset: PRIVBB - - name: PRIVBB2R3 - description: FLASH privilege block-based register for Bank 2 - byte_offset: 456 - fieldset: PRIVBB - - name: PRIVBB2R4 - description: FLASH privilege block-based register for Bank 2 - byte_offset: 460 - fieldset: PRIVBB - - name: SECWM2R_CUR - description: FLASH security watermark for Bank 2 - byte_offset: 480 - fieldset: SECWM - - name: SECWM2R_PRG - description: FLASH security watermark for Bank 2 - byte_offset: 484 - fieldset: SECWM - - name: WRP2R_CUR - description: FLASH write sector group protection for Bank 2 - byte_offset: 488 - fieldset: WRP - - name: WRP2R_PRG - description: FLASH write sector group protection for Bank 2 - byte_offset: 492 - fieldset: WRP - - name: EDATA2R_CUR - description: FLASH data sectors configuration Bank 2 - byte_offset: 496 - fieldset: EDATA2R - - name: EDATA2R_PRG - description: FLASH data sector configuration Bank 2 - byte_offset: 500 - fieldset: EDATA2R - - name: HDP2R_CUR - description: FLASH HDP Bank 2 configuration - byte_offset: 504 - fieldset: HDP2R - - name: HDP2R_PRG - description: FLASH HDP Bank 2 configuration - byte_offset: 508 - fieldset: HDP2R + - name: ACR + description: FLASH access control register + byte_offset: 0 + fieldset: ACR + - name: NSKEYR + description: FLASH non-secure key register + byte_offset: 4 + fieldset: NSKEYR + - name: SECKEYR + description: FLASH secure key register + byte_offset: 8 + fieldset: SECKEYR + - name: OPTKEYR + description: FLASH option key register + byte_offset: 12 + fieldset: OPTKEYR + - name: NSOBKKEYR + description: FLASH non-secure OBK key register + byte_offset: 16 + fieldset: NSOBKKEYR + - name: SECOBKKEYR + description: FLASH secure OBK key register + byte_offset: 20 + fieldset: SECOBKKEYR + - name: OPSR + description: FLASH operation status register + byte_offset: 24 + fieldset: OPSR + - name: OPTCR + description: FLASH option control register + byte_offset: 28 + fieldset: OPTCR + - name: NSSR + description: FLASH non-secure status register + byte_offset: 32 + fieldset: NSSR + - name: SECSR + description: FLASH secure status register + byte_offset: 36 + fieldset: SECSR + - name: NSCR + description: FLASH non-secure control register + byte_offset: 40 + fieldset: NSCR + - name: SECCR + description: FLASH secure control register + byte_offset: 44 + fieldset: SECCR + - name: NSCCR + description: FLASH non-secure clear control register + byte_offset: 48 + fieldset: NSCCR + - name: SECCCR + description: FLASH secure clear control register + byte_offset: 52 + fieldset: SECCCR + - name: PRIVCFGR + description: FLASH privilege configuration register + byte_offset: 60 + fieldset: PRIVCFGR + - name: NSOBKCFGR + description: FLASH non-secure OBK configuration register + byte_offset: 64 + fieldset: NSOBKCFGR + - name: SECOBKCFGR + description: FLASH secure OBK configuration register + byte_offset: 68 + fieldset: SECOBKCFGR + - name: HDPEXTR + description: FLASH HDP extension register + byte_offset: 72 + fieldset: HDPEXTR + - name: OPTSR_CUR + description: FLASH option status register + byte_offset: 80 + fieldset: OPTSR + - name: OPTSR_PRG + description: FLASH option status register + byte_offset: 84 + fieldset: OPTSR + - name: NSEPOCHR_CUR + description: FLASH non-secure EPOCH register + byte_offset: 96 + fieldset: NSEPOCHR + - name: SECEPOCHR_CUR + description: FLASH secure EPOCH register + byte_offset: 104 + fieldset: SECEPOCHR + - name: OPTSR2_CUR + description: FLASH option status register 2 + byte_offset: 112 + fieldset: OPTSR2 + - name: OPTSR2_PRG + description: FLASH option status register 2 + byte_offset: 116 + fieldset: OPTSR2 + - name: NSBOOTR_CUR + description: FLASH non-secure boot register + byte_offset: 128 + fieldset: NSBOOTR + - name: NSBOOTR_PRG + description: FLASH non-secure boot register + byte_offset: 132 + fieldset: NSBOOTR + - name: SECBOOTR_CUR + description: FLASH secure boot register + byte_offset: 136 + fieldset: SECBOOTR + - name: BOOTR_PRG + description: FLASH secure boot register + byte_offset: 140 + fieldset: BOOTR + - name: OTPBLR_CUR + description: FLASH non-secure OTP block lock + byte_offset: 144 + fieldset: OTPBLR + - name: OTPBLR_PRG + description: FLASH non-secure OTP block lock + byte_offset: 148 + fieldset: OTPBLR + - name: SECBB1R1 + description: FLASH secure block based register for Bank 1 + byte_offset: 160 + fieldset: SECBB + - name: SECBB1R2 + description: FLASH secure block based register for Bank 1 + byte_offset: 164 + fieldset: SECBB + - name: SECBB1R3 + description: FLASH secure block based register for Bank 1 + byte_offset: 168 + fieldset: SECBB + - name: SECBB1R4 + description: FLASH secure block based register for Bank 1 + byte_offset: 172 + fieldset: SECBB + - name: PRIVBB1R1 + description: FLASH privilege block based register for Bank 1 + byte_offset: 192 + fieldset: PRIVBB + - name: PRIVBB1R2 + description: FLASH privilege block based register for Bank 1 + byte_offset: 196 + fieldset: PRIVBB + - name: PRIVBB1R3 + description: FLASH privilege block based register for Bank 1 + byte_offset: 200 + fieldset: PRIVBB + - name: PRIVBB1R4 + description: FLASH privilege block based register for Bank 1 + byte_offset: 204 + fieldset: PRIVBB + - name: SECWM1R_CUR + description: FLASH security watermark for Bank 1 + byte_offset: 224 + fieldset: SECWM + - name: SECWM1R_PRG + description: FLASH security watermark for Bank 1 + byte_offset: 228 + fieldset: SECWM + - name: WRP1R_CUR + description: FLASH write sector group protection for Bank 1 + byte_offset: 232 + fieldset: WRP + - name: WRP1R_PRG + description: FLASH write sector group protection for Bank 1 + byte_offset: 236 + fieldset: WRP + - name: EDATA1R_CUR + description: FLASH data sector configuration Bank 1 + byte_offset: 240 + fieldset: EDATA1R + - name: EDATA1R_PRG + description: FLASH data sector configuration Bank 1 + byte_offset: 244 + fieldset: EDATA1R + - name: HDP1R_CUR + description: FLASH HDP Bank 1 configuration + byte_offset: 248 + fieldset: HDP1R + - name: HDP1R_PRG + description: FLASH HDP Bank 1 configuration + byte_offset: 252 + fieldset: HDP1R + - name: ECCCORR + description: FLASH ECC correction register + byte_offset: 256 + fieldset: ECCCORR + - name: ECCDETR + description: FLASH ECC detection register + byte_offset: 260 + fieldset: ECCDETR + - name: ECCDR + description: FLASH ECC data + byte_offset: 264 + fieldset: ECCDR + - name: SECBB2R1 + description: FLASH secure block-based register for Bank 2 + byte_offset: 416 + fieldset: SECBB + - name: SECBB2R2 + description: FLASH secure block-based register for Bank 2 + byte_offset: 420 + fieldset: SECBB + - name: SECBB2R3 + description: FLASH secure block-based register for Bank 2 + byte_offset: 424 + fieldset: SECBB + - name: SECBB2R4 + description: FLASH secure block-based register for Bank 2 + byte_offset: 428 + fieldset: SECBB + - name: PRIVBB2R1 + description: FLASH privilege block-based register for Bank 2 + byte_offset: 448 + fieldset: PRIVBB + - name: PRIVBB2R2 + description: FLASH privilege block-based register for Bank 2 + byte_offset: 452 + fieldset: PRIVBB + - name: PRIVBB2R3 + description: FLASH privilege block-based register for Bank 2 + byte_offset: 456 + fieldset: PRIVBB + - name: PRIVBB2R4 + description: FLASH privilege block-based register for Bank 2 + byte_offset: 460 + fieldset: PRIVBB + - name: SECWM2R_CUR + description: FLASH security watermark for Bank 2 + byte_offset: 480 + fieldset: SECWM + - name: SECWM2R_PRG + description: FLASH security watermark for Bank 2 + byte_offset: 484 + fieldset: SECWM + - name: WRP2R_CUR + description: FLASH write sector group protection for Bank 2 + byte_offset: 488 + fieldset: WRP + - name: WRP2R_PRG + description: FLASH write sector group protection for Bank 2 + byte_offset: 492 + fieldset: WRP + - name: EDATA2R_CUR + description: FLASH data sectors configuration Bank 2 + byte_offset: 496 + fieldset: EDATA2R + - name: EDATA2R_PRG + description: FLASH data sector configuration Bank 2 + byte_offset: 500 + fieldset: EDATA2R + - name: HDP2R_CUR + description: FLASH HDP Bank 2 configuration + byte_offset: 504 + fieldset: HDP2R + - name: HDP2R_PRG + description: FLASH HDP Bank 2 configuration + byte_offset: 508 + fieldset: HDP2R fieldset/ACR: description: FLASH access control register fields: - - name: LATENCY - description: "Read latency\r These bits are used to control the number of wait states used during read operations on both nonvolatile memory banks. The application software has to program them to the correct value depending on the embedded flash memory interface frequency and voltage conditions.\r ...\r Note: No check is performed by hardware to verify that the configuration is correct." - bit_offset: 0 - bit_size: 4 - - name: WRHIGHFREQ - description: "Flash signal delay \r These bits are used to control the delay between nonvolatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded flash memory interface frequency. Please refer to Table�44 for details.\r Note: No check is performed to verify that the configuration is correct. \r Note: Two WRHIGHFREQ values can be selected for some frequencies." - bit_offset: 4 - bit_size: 2 - - name: PRFTEN - description: "Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account.\r Bits used to control the prefetch." - bit_offset: 8 - bit_size: 1 + - name: LATENCY + description: "Read latency\r These bits are used to control the number of wait states used during read operations on both nonvolatile memory banks. The application software has to program them to the correct value depending on the embedded flash memory interface frequency and voltage conditions.\r ...\r Note: No check is performed by hardware to verify that the configuration is correct." + bit_offset: 0 + bit_size: 4 + - name: WRHIGHFREQ + description: "Flash signal delay \r These bits are used to control the delay between nonvolatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded flash memory interface frequency. Please refer to Table�44 for details.\r Note: No check is performed to verify that the configuration is correct. \r Note: Two WRHIGHFREQ values can be selected for some frequencies." + bit_offset: 4 + bit_size: 2 + - name: PRFTEN + description: "Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account.\r Bits used to control the prefetch." + bit_offset: 8 + bit_size: 1 fieldset/BOOTR: description: FLASH secure boot register fields: - - name: SECBOOT_LOCK - description: "A field locking the values of UBE, SWAP_ BANK, and SECBOOTADD setting." - bit_offset: 0 - bit_size: 8 - enum: BOOTR_SECBOOT_LOCK - - name: SECBOOTADD - description: "Secure unique boot entry address.\r These bits allow configuring the secure UBE address." - bit_offset: 8 - bit_size: 24 + - name: SECBOOT_LOCK + description: A field locking the values of UBE, SWAP_ BANK, and SECBOOTADD setting. + bit_offset: 0 + bit_size: 8 + enum: BOOTR_SECBOOT_LOCK + - name: SECBOOTADD + description: "Secure unique boot entry address.\r These bits allow configuring the secure UBE address." + bit_offset: 8 + bit_size: 24 fieldset/ECCCORR: description: FLASH ECC correction register fields: - - name: ADDR_ECC - description: "ECC error address\r When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error. \r ADDR_ECC is reset when the flag error is reset. \r The flash interface programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved.\r The address in ADDR_ECC is relative to the flash memory area where the error occurred (user flash memory, system flash memory, data area, read-only/OTP area)." - bit_offset: 0 - bit_size: 16 - - name: OBK_ECC - description: Single ECC error corrected in flash OB Keys storage area. It indicates the OBK storage concerned by ECC error. - bit_offset: 20 - bit_size: 1 - - name: EDATA_ECC - description: "ECC fail for corrected ECC error in flash high-cycle data area\r It indicates if flash high-cycle data area is concerned by ECC error." - bit_offset: 21 - bit_size: 1 - - name: BK_ECC - description: "ECC fail bank for corrected ECC error\r It indicates which bank is concerned by ECC error" - bit_offset: 22 - bit_size: 1 - - name: SYSF_ECC - description: "ECC fail for corrected ECC error in system flash memory\r It indicates if system flash memory is concerned by ECC error." - bit_offset: 23 - bit_size: 1 - - name: OTP_ECC - description: "OTP ECC error bit\r This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." - bit_offset: 24 - bit_size: 1 - - name: ECCCIE - description: "ECC single correction error interrupt enable bit\r When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation." - bit_offset: 25 - bit_size: 1 - - name: ECCC - description: "ECC correction set by hardware when single ECC error has been detected and corrected.\r Cleared by writing 1." - bit_offset: 30 - bit_size: 1 + - name: ADDR_ECC + description: "ECC error address\r When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error. \r ADDR_ECC is reset when the flag error is reset. \r The flash interface programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved.\r The address in ADDR_ECC is relative to the flash memory area where the error occurred (user flash memory, system flash memory, data area, read-only/OTP area)." + bit_offset: 0 + bit_size: 16 + - name: OBK_ECC + description: Single ECC error corrected in flash OB Keys storage area. It indicates the OBK storage concerned by ECC error. + bit_offset: 20 + bit_size: 1 + - name: EDATA_ECC + description: "ECC fail for corrected ECC error in flash high-cycle data area\r It indicates if flash high-cycle data area is concerned by ECC error." + bit_offset: 21 + bit_size: 1 + - name: BK_ECC + description: "ECC fail bank for corrected ECC error\r It indicates which bank is concerned by ECC error" + bit_offset: 22 + bit_size: 1 + - name: SYSF_ECC + description: "ECC fail for corrected ECC error in system flash memory\r It indicates if system flash memory is concerned by ECC error." + bit_offset: 23 + bit_size: 1 + - name: OTP_ECC + description: "OTP ECC error bit\r This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." + bit_offset: 24 + bit_size: 1 + - name: ECCCIE + description: "ECC single correction error interrupt enable bit\r When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation." + bit_offset: 25 + bit_size: 1 + - name: ECCC + description: "ECC correction set by hardware when single ECC error has been detected and corrected.\r Cleared by writing 1." + bit_offset: 30 + bit_size: 1 fieldset/ECCDETR: description: FLASH ECC detection register fields: - - name: ADDR_ECC - description: "ECC error address\r When an ECC error occurs (double detection) during a read operation, the ADDR_ECC contains the address that generated the error. \r ADDR_ECC is reset when the flag error is reset. \r The flash interface programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an double ECC error is saved.\r The address in ADDR_ECC is relative to the flash memory area where the error occurred (user flash memory, system flash memory, data area, read-only/OTP area)." - bit_offset: 0 - bit_size: 16 - - name: OBK_ECC - description: ECC fail double ECC error in flash OB Keys storage area. It indicates the OBK storage concerned by ECC error. - bit_offset: 20 - bit_size: 1 - - name: EDATA_ECC - description: "ECC fail double ECC error in flash high-cycle data area\r It indicates if flash high-cycle data area is concerned by ECC error." - bit_offset: 21 - bit_size: 1 - - name: BK_ECC - description: "ECC fail bank for double ECC error\r It indicates which bank is concerned by ECC error" - bit_offset: 22 - bit_size: 1 - - name: SYSF_ECC - description: "ECC fail for double ECC error in system flash memory\r It indicates if system flash memory is concerned by ECC error." - bit_offset: 23 - bit_size: 1 - - name: OTP_ECC - description: "OTP ECC error bit\r This bit is set to 1 when double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." - bit_offset: 24 - bit_size: 1 - - name: ECCD - description: "ECC detection\r Set by hardware when two ECC error has been detected.\r When this bit is set, a NMI is generated.\r Cleared by writing 1. Needs to be cleared in order to detect subsequent double ECC errors." - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: "ECC error address\r When an ECC error occurs (double detection) during a read operation, the ADDR_ECC contains the address that generated the error. \r ADDR_ECC is reset when the flag error is reset. \r The flash interface programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an double ECC error is saved.\r The address in ADDR_ECC is relative to the flash memory area where the error occurred (user flash memory, system flash memory, data area, read-only/OTP area)." + bit_offset: 0 + bit_size: 16 + - name: OBK_ECC + description: ECC fail double ECC error in flash OB Keys storage area. It indicates the OBK storage concerned by ECC error. + bit_offset: 20 + bit_size: 1 + - name: EDATA_ECC + description: "ECC fail double ECC error in flash high-cycle data area\r It indicates if flash high-cycle data area is concerned by ECC error." + bit_offset: 21 + bit_size: 1 + - name: BK_ECC + description: "ECC fail bank for double ECC error\r It indicates which bank is concerned by ECC error" + bit_offset: 22 + bit_size: 1 + - name: SYSF_ECC + description: "ECC fail for double ECC error in system flash memory\r It indicates if system flash memory is concerned by ECC error." + bit_offset: 23 + bit_size: 1 + - name: OTP_ECC + description: "OTP ECC error bit\r This bit is set to 1 when double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." + bit_offset: 24 + bit_size: 1 + - name: ECCD + description: "ECC detection\r Set by hardware when two ECC error has been detected.\r When this bit is set, a NMI is generated.\r Cleared by writing 1. Needs to be cleared in order to detect subsequent double ECC errors." + bit_offset: 31 + bit_size: 1 fieldset/ECCDR: description: FLASH ECC data fields: - - name: DATA_ECC - description: "ECC error data\r When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit data (data area, read-only/OTP area), the failing data is read to this register.\r By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory." - bit_offset: 0 - bit_size: 16 + - name: DATA_ECC + description: "ECC error data\r When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit data (data area, read-only/OTP area), the failing data is read to this register.\r By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory." + bit_offset: 0 + bit_size: 16 fieldset/EDATA1R: description: FLASH data sector configuration Bank 1 fields: - - name: EDATA1_STRT - description: "EDATA1_STRT contains the start sectors of the flash high-cycle data area in Bank 1 There is no hardware effect to those bits. They shall be managed by ST tools in Flasher.\r ...\r Note: 111: The eight last sectors of the Bank 1 are reserved for flash high-cycle data" - bit_offset: 0 - bit_size: 3 - - name: EDATA1_EN - description: Bank 1 flash high-cycle data enable - bit_offset: 15 - bit_size: 1 + - name: EDATA1_STRT + description: "EDATA1_STRT contains the start sectors of the flash high-cycle data area in Bank 1 There is no hardware effect to those bits. They shall be managed by ST tools in Flasher.\r ...\r Note: 111: The eight last sectors of the Bank 1 are reserved for flash high-cycle data" + bit_offset: 0 + bit_size: 3 + - name: EDATA1_EN + description: Bank 1 flash high-cycle data enable + bit_offset: 15 + bit_size: 1 fieldset/EDATA2R: description: FLASH data sector configuration Bank 2 fields: - - name: EDATA2_STRT - description: "EDATA2_STRT contains the start sectors of the flash high-cycle data area in Bank 2 There is no hardware effect to those bits. They shall be managed by ST tools in Flasher.\r ...\r Note: 111: The eight last sectors of the Bank 2 are reserved for flash high-cycle data." - bit_offset: 0 - bit_size: 3 - - name: EDATA2_EN - description: Bank 2 flash high-cycle data enable - bit_offset: 15 - bit_size: 1 + - name: EDATA2_STRT + description: "EDATA2_STRT contains the start sectors of the flash high-cycle data area in Bank 2 There is no hardware effect to those bits. They shall be managed by ST tools in Flasher.\r ...\r Note: 111: The eight last sectors of the Bank 2 are reserved for flash high-cycle data." + bit_offset: 0 + bit_size: 3 + - name: EDATA2_EN + description: Bank 2 flash high-cycle data enable + bit_offset: 15 + bit_size: 1 fieldset/HDP1R: description: FLASH HDP Bank 1 configuration fields: - - name: HDP1_STRT - description: HDPL barrier start set in number of 8-Kbyte sectors - bit_offset: 0 - bit_size: 7 - - name: HDP1_END - description: HDPL barrier end set in number of 8-Kbyte sectors - bit_offset: 16 - bit_size: 7 + - name: HDP1_STRT + description: HDPL barrier start set in number of 8-Kbyte sectors + bit_offset: 0 + bit_size: 7 + - name: HDP1_END + description: HDPL barrier end set in number of 8-Kbyte sectors + bit_offset: 16 + bit_size: 7 fieldset/HDP2R: description: FLASH HDP Bank 2 configuration fields: - - name: HDP2_STRT - description: HDPL barrier start set in number of 8-Kbyte sectors - bit_offset: 0 - bit_size: 7 - - name: HDP2_END - description: HDPL barrier end set in number of 8-Kbyte sectors - bit_offset: 16 - bit_size: 7 + - name: HDP2_STRT + description: HDPL barrier start set in number of 8-Kbyte sectors + bit_offset: 0 + bit_size: 7 + - name: HDP2_END + description: HDPL barrier end set in number of 8-Kbyte sectors + bit_offset: 16 + bit_size: 7 fieldset/HDPEXTR: description: FLASH HDP extension register fields: - - name: HDP1_EXT - description: HDP area extension in 8�Kbytes sectors in Bank1. Extension is added after the HDP1_END sector (included). - bit_offset: 0 - bit_size: 7 - - name: HDP2_EXT - description: HDP area extension in 8�Kbytes sectors in bank 2. Extension is added after the HDP2_END sector (included). - bit_offset: 16 - bit_size: 7 + - name: HDP1_EXT + description: HDP area extension in 8�Kbytes sectors in Bank1. Extension is added after the HDP1_END sector (included). + bit_offset: 0 + bit_size: 7 + - name: HDP2_EXT + description: HDP area extension in 8�Kbytes sectors in bank 2. Extension is added after the HDP2_END sector (included). + bit_offset: 16 + bit_size: 7 fieldset/NSBOOTR: description: FLASH non-secure boot register fields: - - name: NSBOOT_LOCK - description: "A field locking the values of SWAP_ BANK, and NSBOOTADD settings." - bit_offset: 0 - bit_size: 8 - enum: NSBOOTR_NSBOOT_LOCK - - name: NSBOOTADD - description: "Non secure unique boot entry address \r These bits allow configuring the Non secure BOOT address" - bit_offset: 8 - bit_size: 24 + - name: NSBOOT_LOCK + description: A field locking the values of SWAP_ BANK, and NSBOOTADD settings. + bit_offset: 0 + bit_size: 8 + enum: NSBOOTR_NSBOOT_LOCK + - name: NSBOOTADD + description: "Non secure unique boot entry address \r These bits allow configuring the Non secure BOOT address" + bit_offset: 8 + bit_size: 24 fieldset/NSCCR: description: FLASH non-secure clear control register fields: - - name: CLR_EOP - description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_NSSR register." - bit_offset: 16 - bit_size: 1 - - name: CLR_WRPERR - description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_NSSR register." - bit_offset: 17 - bit_size: 1 - - name: CLR_PGSERR - description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_NSSR register." - bit_offset: 18 - bit_size: 1 - - name: CLR_STRBERR - description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_NSSR register." - bit_offset: 19 - bit_size: 1 - - name: CLR_INCERR - description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_NSSR register." - bit_offset: 20 - bit_size: 1 - - name: CLR_OBKERR - description: "OBKERR flag clear bit.\r Setting this bit to 1 resets to 0 OBKERR flag in FLASH_NSSR register." - bit_offset: 21 - bit_size: 1 - - name: CLR_OBKWERR - description: "OBKWERR flag clear bit.\r Setting this bit to 1 resets to 0 OBKWERR flag in FLASH_NSSR register." - bit_offset: 22 - bit_size: 1 - - name: CLR_OPTCHANGEERR - description: Clear the flag corresponding flag in FLASH_NSSR by writing this bit. - bit_offset: 23 - bit_size: 1 + - name: CLR_EOP + description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_NSSR register." + bit_offset: 16 + bit_size: 1 + - name: CLR_WRPERR + description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_NSSR register." + bit_offset: 17 + bit_size: 1 + - name: CLR_PGSERR + description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_NSSR register." + bit_offset: 18 + bit_size: 1 + - name: CLR_STRBERR + description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_NSSR register." + bit_offset: 19 + bit_size: 1 + - name: CLR_INCERR + description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_NSSR register." + bit_offset: 20 + bit_size: 1 + - name: CLR_OBKERR + description: "OBKERR flag clear bit.\r Setting this bit to 1 resets to 0 OBKERR flag in FLASH_NSSR register." + bit_offset: 21 + bit_size: 1 + - name: CLR_OBKWERR + description: "OBKWERR flag clear bit.\r Setting this bit to 1 resets to 0 OBKWERR flag in FLASH_NSSR register." + bit_offset: 22 + bit_size: 1 + - name: CLR_OPTCHANGEERR + description: Clear the flag corresponding flag in FLASH_NSSR by writing this bit. + bit_offset: 23 + bit_size: 1 fieldset/NSCR: description: FLASH non-secure control register fields: - - name: LOCK - description: "configuration lock bit\r This bit locks the FLASH_NSCR register. The correct write sequence to FLASH_NSKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset. \r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: PG - description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0. \r PG allows programming in Bank1 and Bank2." - bit_offset: 1 - bit_size: 1 - - name: SER - description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0. \r If MER and SER are also set, a PGSERR is raised." - bit_offset: 2 - bit_size: 1 - - name: BER - description: "erase request\r Setting BER bit to 1 requests a bank erase operation (user flash memory only). BER can be programmed only when LOCK is cleared to 0. \r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." - bit_offset: 3 - bit_size: 1 - - name: FW - description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0. \r The embedded flash memory resets FW when the corresponding operation has been acknowledged. \r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty and was filled by non-secure access (in particular, FW does not start several write operations when the force-write operations are performed consecutively). \r Since there is just one write buffer, FW can force a write in bank1 or bank2." - bit_offset: 4 - bit_size: 1 - - name: STRT - description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0. \r STRT is reset at the end of the operation or when an error occurs. It cannot be reseted by software." - bit_offset: 5 - bit_size: 1 - - name: SNB - description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r .." - bit_offset: 6 - bit_size: 7 - - name: MER - description: "Mass erase request\r Setting MER bit to 1 requests a mass erase operation (user flash memory only). MER can be programmed only when LOCK is cleared to 0. \r If BER or SER are both set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program or erase operation. EOPIE can be programmed only when LOCK is cleared to 0." - bit_offset: 16 - bit_size: 1 - - name: WRPERRIE - description: "write protection error interrupt enable bit\r When this bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 17 - bit_size: 1 - - name: PGSERRIE - description: "programming sequence error interrupt enable bit\r When this bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 18 - bit_size: 1 - - name: STRBERRIE - description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 19 - bit_size: 1 - - name: INCERRIE - description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 20 - bit_size: 1 - - name: OBKERRIE - description: "OBK general error interrupt enable bit\r OBKERRIE enables generating an interrupt in case of OBK specific access error. This bit can be programmed only when LOCK bit is cleared to 0." - bit_offset: 21 - bit_size: 1 - - name: OBKWERRIE - description: "OBK write error interrupt enable bit\r OBKWERRIE enables generation of interrupt in case of OBK specific write error. This bit can be programmed only when LOCK bit is cleared to 0." - bit_offset: 22 - bit_size: 1 - - name: OPTCHANGEERRIE - description: "Option byte change error interrupt enable bit\r This bit controls if an interrupt must be generated when an error occurs during an option byte change. It can be programmed only when LOCK bit is cleared to 0." - bit_offset: 23 - bit_size: 1 - - name: BKSEL - description: "Bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." - bit_offset: 31 - bit_size: 1 - enum: NSCR_BKSEL + - name: LOCK + description: "configuration lock bit\r This bit locks the FLASH_NSCR register. The correct write sequence to FLASH_NSKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset. \r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: PG + description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0. \r PG allows programming in Bank1 and Bank2." + bit_offset: 1 + bit_size: 1 + - name: SER + description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0. \r If MER and SER are also set, a PGSERR is raised." + bit_offset: 2 + bit_size: 1 + - name: BER + description: "erase request\r Setting BER bit to 1 requests a bank erase operation (user flash memory only). BER can be programmed only when LOCK is cleared to 0. \r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." + bit_offset: 3 + bit_size: 1 + - name: FW + description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0. \r The embedded flash memory resets FW when the corresponding operation has been acknowledged. \r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty and was filled by non-secure access (in particular, FW does not start several write operations when the force-write operations are performed consecutively). \r Since there is just one write buffer, FW can force a write in bank1 or bank2." + bit_offset: 4 + bit_size: 1 + - name: STRT + description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0. \r STRT is reset at the end of the operation or when an error occurs. It cannot be reseted by software." + bit_offset: 5 + bit_size: 1 + - name: SNB + description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r .." + bit_offset: 6 + bit_size: 7 + - name: MER + description: "Mass erase request\r Setting MER bit to 1 requests a mass erase operation (user flash memory only). MER can be programmed only when LOCK is cleared to 0. \r If BER or SER are both set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program or erase operation. EOPIE can be programmed only when LOCK is cleared to 0." + bit_offset: 16 + bit_size: 1 + - name: WRPERRIE + description: "write protection error interrupt enable bit\r When this bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 17 + bit_size: 1 + - name: PGSERRIE + description: "programming sequence error interrupt enable bit\r When this bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 18 + bit_size: 1 + - name: STRBERRIE + description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 19 + bit_size: 1 + - name: INCERRIE + description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 20 + bit_size: 1 + - name: OBKERRIE + description: "OBK general error interrupt enable bit\r OBKERRIE enables generating an interrupt in case of OBK specific access error. This bit can be programmed only when LOCK bit is cleared to 0." + bit_offset: 21 + bit_size: 1 + - name: OBKWERRIE + description: "OBK write error interrupt enable bit\r OBKWERRIE enables generation of interrupt in case of OBK specific write error. This bit can be programmed only when LOCK bit is cleared to 0." + bit_offset: 22 + bit_size: 1 + - name: OPTCHANGEERRIE + description: "Option byte change error interrupt enable bit\r This bit controls if an interrupt must be generated when an error occurs during an option byte change. It can be programmed only when LOCK bit is cleared to 0." + bit_offset: 23 + bit_size: 1 + - name: BKSEL + description: "Bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." + bit_offset: 31 + bit_size: 1 + enum: NSCR_BKSEL fieldset/NSEPOCHR: description: FLASH non-secure EPOCH register fields: - - name: NS_EPOCH - description: Non-volatile non-secure EPOCH counter - bit_offset: 0 - bit_size: 24 + - name: NS_EPOCH + description: Non-volatile non-secure EPOCH counter + bit_offset: 0 + bit_size: 24 fieldset/NSKEYR: description: FLASH non-secure key register fields: - - name: NSKEY - description: Non-volatile memory non-secure configuration access unlock key - bit_offset: 0 - bit_size: 32 + - name: NSKEY + description: Non-volatile memory non-secure configuration access unlock key + bit_offset: 0 + bit_size: 32 fieldset/NSOBKCFGR: description: FLASH non-secure OBK configuration register fields: - - name: LOCK - description: "OBKCFGR lock option configuration bit\r This bit locks the FLASH_NSOBKCFGR register. The correct write sequence to FLASH_NSOBKKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSOBKKEYR is performed twice, this bit remains locked until the next system reset. LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: SWAP_SECT_REQ - description: "OBK swap sector request bit\r When set, all the OBKs which have not been updated in the alternate sector is copied from current sector to alternate one.\r The SWAP_OFFSET value must be a certain minimum value in order for the swap to be launched in OBK-HDPL ≠ 0. Minimum value is 16 for OBK-HDPL = 1, 144 for OBK-HDPL = 2 and 192 for OBK-HDPL = 3." - bit_offset: 1 - bit_size: 1 - - name: ALT_SECT - description: "alternate sector bit\r This bit must not change while filling the write buffer, otherwise an error (OBKERR) is generated" - bit_offset: 2 - bit_size: 1 - - name: ALT_SECT_ERASE - description: "alternate sector erase bit\r When ALT_SECT bit is set, use this bit to generate an erase command for the OBK alternate sector. It is set only by Software and cleared when the OBK swap operation is completed or an error occurs (PGSERR). It is reseted at the same time as BUSY bit." - bit_offset: 3 - bit_size: 1 - - name: SWAP_OFFSET - description: "Key index (offset /16 bits) pointing for next swap.\r 0x01 means that only the first OBK data (128 bits) is copied from current to alternate OBK sector\r 0x02 means that the two first OBK data is copied …\r …" - bit_offset: 16 - bit_size: 9 + - name: LOCK + description: "OBKCFGR lock option configuration bit\r This bit locks the FLASH_NSOBKCFGR register. The correct write sequence to FLASH_NSOBKKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSOBKKEYR is performed twice, this bit remains locked until the next system reset. LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: SWAP_SECT_REQ + description: "OBK swap sector request bit\r When set, all the OBKs which have not been updated in the alternate sector is copied from current sector to alternate one.\r The SWAP_OFFSET value must be a certain minimum value in order for the swap to be launched in OBK-HDPL ≠ 0. Minimum value is 16 for OBK-HDPL = 1, 144 for OBK-HDPL = 2 and 192 for OBK-HDPL = 3." + bit_offset: 1 + bit_size: 1 + - name: ALT_SECT + description: "alternate sector bit\r This bit must not change while filling the write buffer, otherwise an error (OBKERR) is generated" + bit_offset: 2 + bit_size: 1 + - name: ALT_SECT_ERASE + description: "alternate sector erase bit\r When ALT_SECT bit is set, use this bit to generate an erase command for the OBK alternate sector. It is set only by Software and cleared when the OBK swap operation is completed or an error occurs (PGSERR). It is reseted at the same time as BUSY bit." + bit_offset: 3 + bit_size: 1 + - name: SWAP_OFFSET + description: "Key index (offset /16 bits) pointing for next swap.\r 0x01 means that only the first OBK data (128 bits) is copied from current to alternate OBK sector\r 0x02 means that the two first OBK data is copied …\r …" + bit_offset: 16 + bit_size: 9 fieldset/NSOBKKEYR: description: FLASH non-secure OBK key register fields: - - name: NSOBKKEY - description: FLASH non-secure option bytes keys control access unlock key - bit_offset: 0 - bit_size: 32 + - name: NSOBKKEY + description: FLASH non-secure option bytes keys control access unlock key + bit_offset: 0 + bit_size: 32 fieldset/NSSR: description: FLASH non-secure status register fields: - - name: BSY - description: "busy flag\r BSY flag indicates that a flash memory is busy by an operation (write, erase, option byte change, OBK operation). It is set at the beginning of a flash memory operation and cleared when the operation finishes, or an error occurs." - bit_offset: 0 - bit_size: 1 - - name: WBNE - description: "write buffer not empty flag \r WBNE flag is set when the flash interface is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_NSCR\r the embedded flash memory detects an error that involves data loss\r This bit cannot be reset by software writing 0 directly. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." - bit_offset: 1 - bit_size: 1 - - name: DBNE - description: "data buffer not empty flag \r DBNE flag is set when the flash interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." - bit_offset: 3 - bit_size: 1 - - name: EOP - description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to 1. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_NSCCR register." - bit_offset: 16 - bit_size: 1 - - name: WRPERR - description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_NSCCR register clears WRPERR." - bit_offset: 17 - bit_size: 1 - - name: PGSERR - description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_NSCCR register clears PGSERR." - bit_offset: 18 - bit_size: 1 - - name: STRBERR - description: "strobe error flag \r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_NSCCR register clears STRBERR." - bit_offset: 19 - bit_size: 1 - - name: INCERR - description: "inconsistency error flag\r NSINCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_NSCCR register clears NSINCERR." - bit_offset: 20 - bit_size: 1 - - name: OBKERR - description: "OBK general error flag\r OBKERR flag is raised when the OBK-HDPL signal from the SBS does not match the HDPL value associated with the key slot during access to the key location. Alternatively also when the ALT_SECT is unexpectedly changed while the write buffer is being filled." - bit_offset: 21 - bit_size: 1 - - name: OBKWERR - description: "OBK write error flag\r OBKWERR flag is raised when the address is not virgin on a write access to the OBK storage. Alternatively also when the OBK selector in the alternate sector is not virgin during a swap operation." - bit_offset: 22 - bit_size: 1 - - name: OPTCHANGEERR - description: "Option byte change error flag \r OPTCHANGEERR flag indicates that an error occurred during an option byte change operation. When OPTCHANGEERR is set to 1, the option byte change operation did not successfully complete. An interrupt is generated when this flag is raised if the OPTCHANGEERRIE bit of FLASH_NSCR register is set to 1. \r Writing 1 to CLR_OPTCHANGEERR of register FLASH_NSCCR clears OPTCHANGEERR.\r Note: The OPTSTRT bit in FLASH_OPTCR cannot be set while OPTCHANGEERR is set." - bit_offset: 23 - bit_size: 1 + - name: BSY + description: "busy flag\r BSY flag indicates that a flash memory is busy by an operation (write, erase, option byte change, OBK operation). It is set at the beginning of a flash memory operation and cleared when the operation finishes, or an error occurs." + bit_offset: 0 + bit_size: 1 + - name: WBNE + description: "write buffer not empty flag \r WBNE flag is set when the flash interface is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_NSCR\r the embedded flash memory detects an error that involves data loss\r This bit cannot be reset by software writing 0 directly. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." + bit_offset: 1 + bit_size: 1 + - name: DBNE + description: "data buffer not empty flag \r DBNE flag is set when the flash interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." + bit_offset: 3 + bit_size: 1 + - name: EOP + description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to 1. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_NSCCR register." + bit_offset: 16 + bit_size: 1 + - name: WRPERR + description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_NSCCR register clears WRPERR." + bit_offset: 17 + bit_size: 1 + - name: PGSERR + description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_NSCCR register clears PGSERR." + bit_offset: 18 + bit_size: 1 + - name: STRBERR + description: "strobe error flag \r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_NSCCR register clears STRBERR." + bit_offset: 19 + bit_size: 1 + - name: INCERR + description: "inconsistency error flag\r NSINCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_NSCCR register clears NSINCERR." + bit_offset: 20 + bit_size: 1 + - name: OBKERR + description: "OBK general error flag\r OBKERR flag is raised when the OBK-HDPL signal from the SBS does not match the HDPL value associated with the key slot during access to the key location. Alternatively also when the ALT_SECT is unexpectedly changed while the write buffer is being filled." + bit_offset: 21 + bit_size: 1 + - name: OBKWERR + description: "OBK write error flag\r OBKWERR flag is raised when the address is not virgin on a write access to the OBK storage. Alternatively also when the OBK selector in the alternate sector is not virgin during a swap operation." + bit_offset: 22 + bit_size: 1 + - name: OPTCHANGEERR + description: "Option byte change error flag \r OPTCHANGEERR flag indicates that an error occurred during an option byte change operation. When OPTCHANGEERR is set to 1, the option byte change operation did not successfully complete. An interrupt is generated when this flag is raised if the OPTCHANGEERRIE bit of FLASH_NSCR register is set to 1. \r Writing 1 to CLR_OPTCHANGEERR of register FLASH_NSCCR clears OPTCHANGEERR.\r Note: The OPTSTRT bit in FLASH_OPTCR cannot be set while OPTCHANGEERR is set." + bit_offset: 23 + bit_size: 1 fieldset/OPSR: description: FLASH operation status register fields: - - name: ADDR_OP - description: Interrupted operation address - bit_offset: 0 - bit_size: 20 - - name: DATA_OP - description: "Flash high-cycle data area operation interrupted\r It indicates if flash high-cycle data area is concerned by operation." - bit_offset: 21 - bit_size: 1 - - name: BK_OP - description: "Interrupted operation bank\r It indicates which bank was concerned by operation." - bit_offset: 22 - bit_size: 1 - - name: SYSF_OP - description: "Operation in system flash memory interrupted \r Indicates that reset interrupted an ongoing operation in system flash." - bit_offset: 23 - bit_size: 1 - - name: OTP_OP - description: "OTP operation interrupted\r Indicates that reset interrupted an ongoing operation in OTP area (or OBKeys area)." - bit_offset: 24 - bit_size: 1 - - name: CODE_OP - description: Flash memory operation code - bit_offset: 29 - bit_size: 3 - enum: CODE_OP + - name: ADDR_OP + description: Interrupted operation address + bit_offset: 0 + bit_size: 20 + - name: DATA_OP + description: "Flash high-cycle data area operation interrupted\r It indicates if flash high-cycle data area is concerned by operation." + bit_offset: 21 + bit_size: 1 + - name: BK_OP + description: "Interrupted operation bank\r It indicates which bank was concerned by operation." + bit_offset: 22 + bit_size: 1 + - name: SYSF_OP + description: "Operation in system flash memory interrupted \r Indicates that reset interrupted an ongoing operation in system flash." + bit_offset: 23 + bit_size: 1 + - name: OTP_OP + description: "OTP operation interrupted\r Indicates that reset interrupted an ongoing operation in OTP area (or OBKeys area)." + bit_offset: 24 + bit_size: 1 + - name: CODE_OP + description: Flash memory operation code + bit_offset: 29 + bit_size: 3 + enum: CODE_OP fieldset/OPTCR: description: FLASH option control register fields: - - name: OPTLOCK - description: "FLASH_OPTCR lock option configuration bit\r The OPTLOCK bit locks the FLASH_OPTCR register as well as all _PRG registers. The correct write sequence to FLASH_OPTKEYR register unlocks this bit. If a wrong sequence is executed, or the unlock sequence to FLASH_OPTKEYR is performed twice, this bit remains locked until next system reset. \r It is possible to set OPTLOCK by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When OPTLOCK changes from 0 to 1, the others bits of FLASH_OPTCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: OPTSTRT - description: "Option byte start change option configuration bit\r OPTSTRT triggers an option byte change operation. The user can set OPTSTRT only when the OPTLOCK bit is cleared to 0. It is set only by Software and cleared when the option byte change is completed or an error occurs (PGSERR or OPTCHANGEERR). It is reseted at the same time as BSY bit.\r The user application cannot modify any FLASH_XXX_PRG flash interface register until the option change operation has been completed.\r Before setting this bit, the user has to write the required values in the FLASH_XXX_PRG registers. The FLASH_XXX_PRG registers are locked until the option byte change operation has been executed in nonvolatile memory." - bit_offset: 1 - bit_size: 1 - - name: SWAP_BANK - description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR." - bit_offset: 31 - bit_size: 1 - enum: OPTCR_SWAP_BANK + - name: OPTLOCK + description: "FLASH_OPTCR lock option configuration bit\r The OPTLOCK bit locks the FLASH_OPTCR register as well as all _PRG registers. The correct write sequence to FLASH_OPTKEYR register unlocks this bit. If a wrong sequence is executed, or the unlock sequence to FLASH_OPTKEYR is performed twice, this bit remains locked until next system reset. \r It is possible to set OPTLOCK by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When OPTLOCK changes from 0 to 1, the others bits of FLASH_OPTCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: OPTSTRT + description: "Option byte start change option configuration bit\r OPTSTRT triggers an option byte change operation. The user can set OPTSTRT only when the OPTLOCK bit is cleared to 0. It is set only by Software and cleared when the option byte change is completed or an error occurs (PGSERR or OPTCHANGEERR). It is reseted at the same time as BSY bit.\r The user application cannot modify any FLASH_XXX_PRG flash interface register until the option change operation has been completed.\r Before setting this bit, the user has to write the required values in the FLASH_XXX_PRG registers. The FLASH_XXX_PRG registers are locked until the option byte change operation has been executed in nonvolatile memory." + bit_offset: 1 + bit_size: 1 + - name: SWAP_BANK + description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR." + bit_offset: 31 + bit_size: 1 + enum: OPTCR_SWAP_BANK fieldset/OPTKEYR: description: FLASH option key register fields: - - name: OPTKEY - description: FLASH option bytes control access unlock key - bit_offset: 0 - bit_size: 32 + - name: OPTKEY + description: FLASH option bytes control access unlock key + bit_offset: 0 + bit_size: 32 fieldset/OPTSR: description: FLASH option status register fields: - - name: BOR_LEV - description: "Brownout level option status bit\r These bits reflects the power level that generates a system reset.\r 00 or 11: BOR Level 1, the threshold level is low (around 2.1�V)" - bit_offset: 0 - bit_size: 2 - enum: OPTSR_BOR_LEV - - name: BORH_EN - description: Brownout high enable - bit_offset: 2 - bit_size: 1 - - name: IWDG_SW - description: IWDG control mode option status bit - bit_offset: 3 - bit_size: 1 - enum: OPTSR_IWDG_SW - - name: WWDG_SW - description: WWDG control mode option status bit - bit_offset: 4 - bit_size: 1 - enum: OPTSR_WWDG_SW - - name: NRST_STOP - description: Core domain Stop entry reset option status bit - bit_offset: 6 - bit_size: 1 - enum: OPTSR_NRST_STOP - - name: NRST_STDBY - description: Core domain Standby entry reset option status bit - bit_offset: 7 - bit_size: 1 - enum: OPTSR_NRST_STDBY - - name: PRODUCT_STATE - description: "Life state code (based on Hamming 8,4). More information in Section�7.6.11: Product state transitions." - bit_offset: 8 - bit_size: 8 - - name: IO_VDD_HSLV - description: "High-speed IO at low VDD voltage configuration bit.\r This bit can be set only with VDD below 2.7�V." - bit_offset: 16 - bit_size: 1 - enum: OPTSR_IO_VDD_HSLV - - name: IO_VDDIO2_HSLV - description: "High-speed IO at low VDDIO2 voltage configuration bit.\r This bit can be set only with VDDIO2 below 2.7�V." - bit_offset: 17 - bit_size: 1 - enum: OPTSR_IO_VDDIO_HSLV - - name: IWDG_STOP - description: "IWDG Stop mode freeze option status bit\r When set the independent watchdog IWDG is in system Stop mode." - bit_offset: 20 - bit_size: 1 - enum: OPTSR_IWDG_STOP - - name: IWDG_STDBY - description: "IWDG Standby mode freeze option status bit\r When set the independent watchdog IWDG is frozen in system Standby mode." - bit_offset: 21 - bit_size: 1 - enum: OPTSR_IWDG_STDBY - - name: BOOT_UBE - description: "Available only on cryptography enabled devices.\r Unique boot entry control, selects either ST or OEM iRoT for secure boot." - bit_offset: 22 - bit_size: 8 - enum: OPTSR_BOOT_UBE - - name: SWAP_BANK - description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not. \r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset." - bit_offset: 31 - bit_size: 1 - enum: OPTSR_SWAP_BANK + - name: BOR_LEV + description: "Brownout level option status bit\r These bits reflects the power level that generates a system reset.\r 00 or 11: BOR Level 1, the threshold level is low (around 2.1�V)" + bit_offset: 0 + bit_size: 2 + enum: OPTSR_BOR_LEV + - name: BORH_EN + description: Brownout high enable + bit_offset: 2 + bit_size: 1 + - name: IWDG_SW + description: IWDG control mode option status bit + bit_offset: 3 + bit_size: 1 + enum: OPTSR_IWDG_SW + - name: WWDG_SW + description: WWDG control mode option status bit + bit_offset: 4 + bit_size: 1 + enum: OPTSR_WWDG_SW + - name: NRST_STOP + description: Core domain Stop entry reset option status bit + bit_offset: 6 + bit_size: 1 + enum: OPTSR_NRST_STOP + - name: NRST_STDBY + description: Core domain Standby entry reset option status bit + bit_offset: 7 + bit_size: 1 + enum: OPTSR_NRST_STDBY + - name: PRODUCT_STATE + description: 'Life state code (based on Hamming 8,4). More information in Section�7.6.11: Product state transitions.' + bit_offset: 8 + bit_size: 8 + - name: IO_VDD_HSLV + description: "High-speed IO at low VDD voltage configuration bit.\r This bit can be set only with VDD below 2.7�V." + bit_offset: 16 + bit_size: 1 + enum: OPTSR_IO_VDD_HSLV + - name: IO_VDDIO2_HSLV + description: "High-speed IO at low VDDIO2 voltage configuration bit.\r This bit can be set only with VDDIO2 below 2.7�V." + bit_offset: 17 + bit_size: 1 + enum: OPTSR_IO_VDDIO_HSLV + - name: IWDG_STOP + description: "IWDG Stop mode freeze option status bit\r When set the independent watchdog IWDG is in system Stop mode." + bit_offset: 20 + bit_size: 1 + enum: OPTSR_IWDG_STOP + - name: IWDG_STDBY + description: "IWDG Standby mode freeze option status bit\r When set the independent watchdog IWDG is frozen in system Standby mode." + bit_offset: 21 + bit_size: 1 + enum: OPTSR_IWDG_STDBY + - name: BOOT_UBE + description: "Available only on cryptography enabled devices.\r Unique boot entry control, selects either ST or OEM iRoT for secure boot." + bit_offset: 22 + bit_size: 8 + enum: OPTSR_BOOT_UBE + - name: SWAP_BANK + description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not. \r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset." + bit_offset: 31 + bit_size: 1 + enum: OPTSR_SWAP_BANK fieldset/OPTSR2: description: FLASH option status register 2 fields: - - name: SRAM13_RST - description: SRAM1 and SRAM3 erase upon system reset - bit_offset: 2 - bit_size: 1 - - name: SRAM2_RST - description: SRAM2 erase when system reset - bit_offset: 3 - bit_size: 1 - - name: BKPRAM_ECC - description: Backup RAM ECC detection and correction disable - bit_offset: 4 - bit_size: 1 - enum: OPTSR_BKPRAM_ECC - - name: SRAM3_ECC - description: SRAM3 ECC detection and correction disable - bit_offset: 5 - bit_size: 1 - enum: OPTSR_SRAM_ECC - - name: SRAM2_ECC - description: SRAM2 ECC detection and correction disable - bit_offset: 6 - bit_size: 1 - enum: OPTSR_SRAM_ECC - - name: USBPD_DIS - description: USB power delivery configuration option bit - bit_offset: 8 - bit_size: 1 - - name: TZEN - description: "TrustZone enable configuration bits\r This bit enables the device is in TrustZone mode during an option byte change." - bit_offset: 24 - bit_size: 8 - enum: OPTSR_TZEN + - name: SRAM13_RST + description: SRAM1 and SRAM3 erase upon system reset + bit_offset: 2 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 erase when system reset + bit_offset: 3 + bit_size: 1 + - name: BKPRAM_ECC + description: Backup RAM ECC detection and correction disable + bit_offset: 4 + bit_size: 1 + enum: OPTSR_BKPRAM_ECC + - name: SRAM3_ECC + description: SRAM3 ECC detection and correction disable + bit_offset: 5 + bit_size: 1 + enum: OPTSR_SRAM_ECC + - name: SRAM2_ECC + description: SRAM2 ECC detection and correction disable + bit_offset: 6 + bit_size: 1 + enum: OPTSR_SRAM_ECC + - name: USBPD_DIS + description: USB power delivery configuration option bit + bit_offset: 8 + bit_size: 1 + - name: TZEN + description: "TrustZone enable configuration bits\r This bit enables the device is in TrustZone mode during an option byte change." + bit_offset: 24 + bit_size: 8 + enum: OPTSR_TZEN fieldset/OTPBLR: description: FLASH non-secure OTP block lock fields: - - name: LOCKBL - description: "OTP block lock \r Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31.\r LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR.\r LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked.\r When one block is locked, it’s not possible to remove the write protection.\r Also if not locked, it is not possible to erase OTP words." - bit_offset: 0 - bit_size: 32 + - name: LOCKBL + description: "OTP block lock \r Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31.\r LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR.\r LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked.\r When one block is locked, it’s not possible to remove the write protection.\r Also if not locked, it is not possible to erase OTP words." + bit_offset: 0 + bit_size: 32 fieldset/PRIVBB: description: FLASH privilege block-based register for Bank 2 fields: - - name: PRIVBB - description: Privileged / non-privileged 8-Kbyte flash Bank 2 sector attribute - bit_offset: 0 - bit_size: 32 - enum: PRIVBBR_PRIVBB + - name: PRIVBB + description: Privileged / non-privileged 8-Kbyte flash Bank 2 sector attribute + bit_offset: 0 + bit_size: 32 + enum: PRIVBBR_PRIVBB fieldset/PRIVCFGR: description: FLASH privilege configuration register fields: - - name: SPRIV - description: privilege attribute for secure registers - bit_offset: 0 - bit_size: 1 - enum: SPRIV - - name: NSPRIV - description: privilege attribute for non secure registers - bit_offset: 1 - bit_size: 1 - enum: NSPRIV + - name: SPRIV + description: privilege attribute for secure registers + bit_offset: 0 + bit_size: 1 + enum: SPRIV + - name: NSPRIV + description: privilege attribute for non secure registers + bit_offset: 1 + bit_size: 1 + enum: NSPRIV fieldset/SECBB: description: FLASH secure block-based register for Bank 2 fields: - - name: SECBB - description: Secure/non-secure flash Bank 2 sector attribute - bit_offset: 0 - bit_size: 32 - enum: SECBBR_SECBB + - name: SECBB + description: Secure/non-secure flash Bank 2 sector attribute + bit_offset: 0 + bit_size: 32 + enum: SECBBR_SECBB fieldset/SECBOOTR: description: FLASH secure boot register fields: - - name: SECBOOT_LOCK - description: "A field locking the values of UBE, SWAP_BANK, and SECBOOTADD settings." - bit_offset: 0 - bit_size: 8 - enum: SECBOOTR_SECBOOT_LOCK - - name: SECBOOTADD - description: "Unique boot entry secure address \r These bits reflect the Secure UBE address" - bit_offset: 8 - bit_size: 24 + - name: SECBOOT_LOCK + description: A field locking the values of UBE, SWAP_BANK, and SECBOOTADD settings. + bit_offset: 0 + bit_size: 8 + enum: SECBOOTR_SECBOOT_LOCK + - name: SECBOOTADD + description: "Unique boot entry secure address \r These bits reflect the Secure UBE address" + bit_offset: 8 + bit_size: 24 fieldset/SECCCR: description: FLASH secure clear control register fields: - - name: CLR_EOP - description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_SECSR register." - bit_offset: 16 - bit_size: 1 - - name: CLR_WRPERR - description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_SECSR register." - bit_offset: 17 - bit_size: 1 - - name: CLR_PGSERR - description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_SECSR register." - bit_offset: 18 - bit_size: 1 - - name: CLR_STRBERR - description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_SECSR register." - bit_offset: 19 - bit_size: 1 - - name: CLR_INCERR - description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_SECSR register." - bit_offset: 20 - bit_size: 1 - - name: CLR_OBKERR - description: "OBKWERR flag clear bit\r Setting this bit to 1 resets to 0 OBKWERR flag in FLASH_SECSR register." - bit_offset: 21 - bit_size: 1 - - name: CLR_OBKWERR - description: "OBKWERR flag clear bit\r Setting this bit to 1 resets to 0 OBKWERR flag in FLASH_SECSR register." - bit_offset: 22 - bit_size: 1 + - name: CLR_EOP + description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_SECSR register." + bit_offset: 16 + bit_size: 1 + - name: CLR_WRPERR + description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_SECSR register." + bit_offset: 17 + bit_size: 1 + - name: CLR_PGSERR + description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_SECSR register." + bit_offset: 18 + bit_size: 1 + - name: CLR_STRBERR + description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_SECSR register." + bit_offset: 19 + bit_size: 1 + - name: CLR_INCERR + description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_SECSR register." + bit_offset: 20 + bit_size: 1 + - name: CLR_OBKERR + description: "OBKWERR flag clear bit\r Setting this bit to 1 resets to 0 OBKWERR flag in FLASH_SECSR register." + bit_offset: 21 + bit_size: 1 + - name: CLR_OBKWERR + description: "OBKWERR flag clear bit\r Setting this bit to 1 resets to 0 OBKWERR flag in FLASH_SECSR register." + bit_offset: 22 + bit_size: 1 fieldset/SECCR: description: FLASH secure control register fields: - - name: LOCK - description: "configuration lock bit \r This bit locks the FLASH_SECCR register. The correct write sequence to FLASH_SECKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset. \r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_SECCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: PG - description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0. \r PG allows programming in Bank1 and Bank2." - bit_offset: 1 - bit_size: 1 - - name: SER - description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0. \r If BER and MER are also set, a PGSERR is raised." - bit_offset: 2 - bit_size: 1 - - name: BER - description: "erase request \r Setting BER bit to 1 requests a bank erase operation (user flash memory only). BER can be programmed only when LOCK is cleared to 0. \r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." - bit_offset: 3 - bit_size: 1 - - name: FW - description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0. \r The embedded flash memory resets FW when the corresponding operation has been acknowledged. \r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty and was filled by secure access (in particular, FW does not start several write operations when the force-write operations are performed consecutively). \r Since there is just one write buffer, FW can force a write in bank1 or bank2." - bit_offset: 4 - bit_size: 1 - - name: STRT - description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0. \r STRT is reseted at the end of the operation or when an error occurs. It cannot be reset by software." - bit_offset: 5 - bit_size: 1 - - name: SNB - description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r .." - bit_offset: 6 - bit_size: 7 - - name: MER - description: "mass erase request\r Setting MER bit to 1 requests a mass erase operation (user flash memory only). MER can be programmed only when LOCK is cleared to 0. \r If BER or SER are also set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program/erase operation. EOPIE can be programmed only when LOCK is cleared to 0." - bit_offset: 16 - bit_size: 1 - - name: WRPERRIE - description: "write protection error interrupt enable bit\r When WRPERRIE bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 17 - bit_size: 1 - - name: PGSERRIE - description: "programming sequence error interrupt enable bit\r When PGSERRIE bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 18 - bit_size: 1 - - name: STRBERRIE - description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 19 - bit_size: 1 - - name: INCERRIE - description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 20 - bit_size: 1 - - name: OBKERRIE - description: "OBK general error interrupt enable bit\r OBKERRIE enables generating an interrupt in case of OBK specific access error. OBKERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 21 - bit_size: 1 - - name: OBKWERRIE - description: "OBK write error interrupt enable bit\r OBKWERRIE enables generation of interrupt in case of OBK specific write error. OBKWERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 22 - bit_size: 1 - - name: INV - description: "Flash memory security state invert.\r This bit inverts the flash memory security state." - bit_offset: 29 - bit_size: 1 - - name: BKSEL - description: "bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." - bit_offset: 31 - bit_size: 1 - enum: SECCR_BKSEL + - name: LOCK + description: "configuration lock bit \r This bit locks the FLASH_SECCR register. The correct write sequence to FLASH_SECKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset. \r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_SECCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: PG + description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0. \r PG allows programming in Bank1 and Bank2." + bit_offset: 1 + bit_size: 1 + - name: SER + description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0. \r If BER and MER are also set, a PGSERR is raised." + bit_offset: 2 + bit_size: 1 + - name: BER + description: "erase request \r Setting BER bit to 1 requests a bank erase operation (user flash memory only). BER can be programmed only when LOCK is cleared to 0. \r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." + bit_offset: 3 + bit_size: 1 + - name: FW + description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0. \r The embedded flash memory resets FW when the corresponding operation has been acknowledged. \r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty and was filled by secure access (in particular, FW does not start several write operations when the force-write operations are performed consecutively). \r Since there is just one write buffer, FW can force a write in bank1 or bank2." + bit_offset: 4 + bit_size: 1 + - name: STRT + description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0. \r STRT is reseted at the end of the operation or when an error occurs. It cannot be reset by software." + bit_offset: 5 + bit_size: 1 + - name: SNB + description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r .." + bit_offset: 6 + bit_size: 7 + - name: MER + description: "mass erase request\r Setting MER bit to 1 requests a mass erase operation (user flash memory only). MER can be programmed only when LOCK is cleared to 0. \r If BER or SER are also set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program/erase operation. EOPIE can be programmed only when LOCK is cleared to 0." + bit_offset: 16 + bit_size: 1 + - name: WRPERRIE + description: "write protection error interrupt enable bit\r When WRPERRIE bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 17 + bit_size: 1 + - name: PGSERRIE + description: "programming sequence error interrupt enable bit\r When PGSERRIE bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 18 + bit_size: 1 + - name: STRBERRIE + description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 19 + bit_size: 1 + - name: INCERRIE + description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 20 + bit_size: 1 + - name: OBKERRIE + description: "OBK general error interrupt enable bit\r OBKERRIE enables generating an interrupt in case of OBK specific access error. OBKERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 21 + bit_size: 1 + - name: OBKWERRIE + description: "OBK write error interrupt enable bit\r OBKWERRIE enables generation of interrupt in case of OBK specific write error. OBKWERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 22 + bit_size: 1 + - name: INV + description: "Flash memory security state invert.\r This bit inverts the flash memory security state." + bit_offset: 29 + bit_size: 1 + - name: BKSEL + description: "bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." + bit_offset: 31 + bit_size: 1 + enum: SECCR_BKSEL fieldset/SECEPOCHR: description: FLASH secure EPOCH register fields: - - name: SEC_EPOCH - description: Non-volatile secure EPOCH counter - bit_offset: 0 - bit_size: 24 + - name: SEC_EPOCH + description: Non-volatile secure EPOCH counter + bit_offset: 0 + bit_size: 24 fieldset/SECKEYR: description: FLASH secure key register fields: - - name: SECKEY - description: Non-volatile memory secure configuration access unlock key - bit_offset: 0 - bit_size: 32 + - name: SECKEY + description: Non-volatile memory secure configuration access unlock key + bit_offset: 0 + bit_size: 32 fieldset/SECOBKCFGR: description: FLASH secure OBK configuration register fields: - - name: LOCK - description: "OBKCFGR lock option configuration bit\r This bit locks the FLASH_OBKCFGR register. The correct write sequence to FLASH_SECOBKKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_SECOBKKEYR is performed twice, this bit remains locked until the next system reset. LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: SWAP_SECT_REQ - description: "OBK swap sector request bit\r When set, all the OBKs which have not been updated in the alternate sector is copied from current sector to alternate one.\r The SWAP_OFFSET value must be a certain minimum value in order for the swap to be launched in OBK-HDPL ≠ 0. Minimum value is 16 for OBK-HDPL = 1, 144 for OBK-HDPL = 2 and 192 for OBK-HDPL = 3." - bit_offset: 1 - bit_size: 1 - - name: ALT_SECT - description: "alternate sector bit\r This bit must not change while filling the write buffer, otherwise an error is generated" - bit_offset: 2 - bit_size: 1 - - name: ALT_SECT_ERASE - description: "alternate sector erase bit\r When ALT_SECT bit is set, use this bit to generate an erase command for the OBK alternate sector. It is set only by Software and cleared when the OBK swap operation is completed or an error occurs (PGSERR). It is reseted at the same time as the BUSY bit." - bit_offset: 3 - bit_size: 1 - - name: SWAP_OFFSET - description: "key index (offset /16 bits) pointing for next swap.\r …" - bit_offset: 16 - bit_size: 9 + - name: LOCK + description: "OBKCFGR lock option configuration bit\r This bit locks the FLASH_OBKCFGR register. The correct write sequence to FLASH_SECOBKKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_SECOBKKEYR is performed twice, this bit remains locked until the next system reset. LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: SWAP_SECT_REQ + description: "OBK swap sector request bit\r When set, all the OBKs which have not been updated in the alternate sector is copied from current sector to alternate one.\r The SWAP_OFFSET value must be a certain minimum value in order for the swap to be launched in OBK-HDPL ≠ 0. Minimum value is 16 for OBK-HDPL = 1, 144 for OBK-HDPL = 2 and 192 for OBK-HDPL = 3." + bit_offset: 1 + bit_size: 1 + - name: ALT_SECT + description: "alternate sector bit\r This bit must not change while filling the write buffer, otherwise an error is generated" + bit_offset: 2 + bit_size: 1 + - name: ALT_SECT_ERASE + description: "alternate sector erase bit\r When ALT_SECT bit is set, use this bit to generate an erase command for the OBK alternate sector. It is set only by Software and cleared when the OBK swap operation is completed or an error occurs (PGSERR). It is reseted at the same time as the BUSY bit." + bit_offset: 3 + bit_size: 1 + - name: SWAP_OFFSET + description: "key index (offset /16 bits) pointing for next swap.\r …" + bit_offset: 16 + bit_size: 9 fieldset/SECOBKKEYR: description: FLASH secure OBK key register fields: - - name: SECOBKKEY - description: FLASH secure option bytes keys control access unlock key - bit_offset: 0 - bit_size: 32 + - name: SECOBKKEY + description: FLASH secure option bytes keys control access unlock key + bit_offset: 0 + bit_size: 32 fieldset/SECSR: description: FLASH secure status register fields: - - name: BSY - description: "busy flag\r BSY flag indicates that a FLASH memory is busy (write, erase, option byte change, OBK operations). It is set at the beginning of a flash memory operation and cleared when the operation finishes or an error occurs." - bit_offset: 0 - bit_size: 1 - - name: WBNE - description: "write buffer not empty flag \r WBNE flag is set when the flash interface is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_SECCR\r the flash interface detects an error that involves data loss\r This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." - bit_offset: 1 - bit_size: 1 - - name: DBNE - description: "data buffer not empty flag \r DBNE flag is set when the embedded flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." - bit_offset: 3 - bit_size: 1 - - name: EOP - description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register." - bit_offset: 16 - bit_size: 1 - - name: WRPERR - description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR." - bit_offset: 17 - bit_size: 1 - - name: PGSERR - description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR." - bit_offset: 18 - bit_size: 1 - - name: STRBERR - description: "strobe error flag \r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR." - bit_offset: 19 - bit_size: 1 - - name: INCERR - description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR." - bit_offset: 20 - bit_size: 1 - - name: OBKERR - description: "OBK general error flag\r OBKERR flag is raised when the OBK-HDPL signal from the SBS does not match the HDPL value associated with the key slot during access to the key location. Alternatively also when the ALT_SECT is unexpectedly changed while the write buffer is being filled." - bit_offset: 21 - bit_size: 1 - - name: OBKWERR - description: "OBK write error flag\r OBKWERR flag is raised when the address is not virgin on a write access to the OBK storage. Alternatively also when the OBK selector in the alternate sector is not virgin during a swap operation." - bit_offset: 22 - bit_size: 1 + - name: BSY + description: "busy flag\r BSY flag indicates that a FLASH memory is busy (write, erase, option byte change, OBK operations). It is set at the beginning of a flash memory operation and cleared when the operation finishes or an error occurs." + bit_offset: 0 + bit_size: 1 + - name: WBNE + description: "write buffer not empty flag \r WBNE flag is set when the flash interface is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_SECCR\r the flash interface detects an error that involves data loss\r This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." + bit_offset: 1 + bit_size: 1 + - name: DBNE + description: "data buffer not empty flag \r DBNE flag is set when the embedded flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." + bit_offset: 3 + bit_size: 1 + - name: EOP + description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register." + bit_offset: 16 + bit_size: 1 + - name: WRPERR + description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR." + bit_offset: 17 + bit_size: 1 + - name: PGSERR + description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR." + bit_offset: 18 + bit_size: 1 + - name: STRBERR + description: "strobe error flag \r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR." + bit_offset: 19 + bit_size: 1 + - name: INCERR + description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR." + bit_offset: 20 + bit_size: 1 + - name: OBKERR + description: "OBK general error flag\r OBKERR flag is raised when the OBK-HDPL signal from the SBS does not match the HDPL value associated with the key slot during access to the key location. Alternatively also when the ALT_SECT is unexpectedly changed while the write buffer is being filled." + bit_offset: 21 + bit_size: 1 + - name: OBKWERR + description: "OBK write error flag\r OBKWERR flag is raised when the address is not virgin on a write access to the OBK storage. Alternatively also when the OBK selector in the alternate sector is not virgin during a swap operation." + bit_offset: 22 + bit_size: 1 fieldset/SECWM: description: FLASH security watermark for Bank 2 fields: - - name: SECWMSTRT - description: Bank2 security WM area start sector - bit_offset: 0 - bit_size: 7 - - name: SECWMEND - description: Bank2 security WM end sector - bit_offset: 16 - bit_size: 7 + - name: SECWMSTRT + description: Bank2 security WM area start sector + bit_offset: 0 + bit_size: 7 + - name: SECWMEND + description: Bank2 security WM end sector + bit_offset: 16 + bit_size: 7 fieldset/WRP: description: FLASH write sector group protection for Bank 1 fields: - - name: WRPSG - description: "Bank1 sector group protection option status byte\r Setting WRPSG1 bits to 0 write protects the corresponding group of four consecutive sectors in bank 1 (0: the group is write protected; 1: the group is not write protected)\r Bit 0: Group embedding sectors 0 to 3\r Bit 1: Group embedding sectors 4 to 7\r Bit N: Group embedding sectors 4 x N to 4 x N + 3\r Bit 31: Group embedding sectors 124 to 127" - bit_offset: 0 - bit_size: 32 + - name: WRPSG + description: "Bank1 sector group protection option status byte\r Setting WRPSG1 bits to 0 write protects the corresponding group of four consecutive sectors in bank 1 (0: the group is write protected; 1: the group is not write protected)\r Bit 0: Group embedding sectors 0 to 3\r Bit 1: Group embedding sectors 4 to 7\r Bit N: Group embedding sectors 4 x N to 4 x N + 3\r Bit 31: Group embedding sectors 124 to 127" + bit_offset: 0 + bit_size: 32 enum/BOOTR_SECBOOT_LOCK: bit_size: 8 variants: - - name: B_0xB4 - description: The BOOT_UBE and SECBOOTADD are frozen. SWAP_BANK can only be modified with TZEN set to 0xC3 (disabled). - value: 180 - - name: B_0xC3 - description: "The BOOT_UBE, SWAP_ BANK and SECBOOTADD can still be modified following their individual rules." - value: 195 + - name: B_0xB4 + description: The BOOT_UBE and SECBOOTADD are frozen. SWAP_BANK can only be modified with TZEN set to 0xC3 (disabled). + value: 180 + - name: B_0xC3 + description: The BOOT_UBE, SWAP_ BANK and SECBOOTADD can still be modified following their individual rules. + value: 195 enum/CODE_OP: bit_size: 3 variants: - - name: B_0x0 - description: No flash operation on going during previous reset - value: 0 - - name: B_0x1 - description: Single write operation interrupted - value: 1 - - name: B_0x2 - description: OBK alternate sector erase - value: 2 - - name: B_0x3 - description: Sector erase operation interrupted - value: 3 - - name: B_0x4 - description: Bank erase operation interrupted - value: 4 - - name: B_0x5 - description: Mass erase operation interrupted - value: 5 - - name: B_0x6 - description: Option change operation interrupted - value: 6 - - name: B_0x7 - description: OBK swap sector request - value: 7 + - name: B_0x0 + description: No flash operation on going during previous reset + value: 0 + - name: B_0x1 + description: Single write operation interrupted + value: 1 + - name: B_0x2 + description: OBK alternate sector erase + value: 2 + - name: B_0x3 + description: Sector erase operation interrupted + value: 3 + - name: B_0x4 + description: Bank erase operation interrupted + value: 4 + - name: B_0x5 + description: Mass erase operation interrupted + value: 5 + - name: B_0x6 + description: Option change operation interrupted + value: 6 + - name: B_0x7 + description: OBK swap sector request + value: 7 enum/NSBOOTR_NSBOOT_LOCK: bit_size: 8 variants: - - name: B_0xB4 - description: The NSBOOTADD is frozen. SWAP_ BANK can only be modified with TZEN set to 0xB4 (enabled). - value: 180 - - name: B_0xC3 - description: The SWAP_ BANK and NSBOOTADD can still be modified following their individual rules. - value: 195 + - name: B_0xB4 + description: The NSBOOTADD is frozen. SWAP_ BANK can only be modified with TZEN set to 0xB4 (enabled). + value: 180 + - name: B_0xC3 + description: The SWAP_ BANK and NSBOOTADD can still be modified following their individual rules. + value: 195 enum/NSCR_BKSEL: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 is selected for Bank erase / sector erase / interrupt enable - value: 0 - - name: B_0x1 - description: Bank2 is selected for BER / SER - value: 1 + - name: B_0x0 + description: Bank1 is selected for Bank erase / sector erase / interrupt enable + value: 0 + - name: B_0x1 + description: Bank2 is selected for BER / SER + value: 1 enum/NSPRIV: bit_size: 1 variants: - - name: B_0x0 - description: access to non secure registers is always granted - value: 0 - - name: B_0x1 - description: access to non secure registers is denied in case of unprivileged access. - value: 1 + - name: B_0x0 + description: access to non secure registers is always granted + value: 0 + - name: B_0x1 + description: access to non secure registers is denied in case of unprivileged access. + value: 1 enum/OPTCR_SWAP_BANK: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 and Bank2 not swapped - value: 0 - - name: B_0x1 - description: Bank1 and Bank2 swapped - value: 1 + - name: B_0x0 + description: Bank1 and Bank2 not swapped + value: 0 + - name: B_0x1 + description: Bank1 and Bank2 swapped + value: 1 enum/OPTSR_BKPRAM_ECC: bit_size: 1 variants: - - name: B_0x0 - description: BKPRAM ECC check enabled - value: 0 - - name: B_0x1 - description: BKPRAM ECC check disabled - value: 1 + - name: B_0x0 + description: BKPRAM ECC check enabled + value: 0 + - name: B_0x1 + description: BKPRAM ECC check disabled + value: 1 enum/OPTSR_BOOT_UBE: bit_size: 8 variants: - - name: B_0xB4 - description: OEM-iRoT (user flash) selected. In Open PRODUCT_STATE this value selects bootloader. Defaut value. - value: 180 - - name: B_0xC3 - description: ST-iRoT (system flash) selected - value: 195 + - name: B_0xB4 + description: OEM-iRoT (user flash) selected. In Open PRODUCT_STATE this value selects bootloader. Defaut value. + value: 180 + - name: B_0xC3 + description: ST-iRoT (system flash) selected + value: 195 enum/OPTSR_BOR_LEV: bit_size: 2 variants: - - name: B_0x1 - description: "BOR Level 2, the threshold level is medium (around 2.4 V)" - value: 1 - - name: B_0x2 - description: "BOR Level 3, the threshold level is high (around 2.7 V)" - value: 2 + - name: B_0x1 + description: BOR Level 2, the threshold level is medium (around 2.4 V) + value: 1 + - name: B_0x2 + description: BOR Level 3, the threshold level is high (around 2.7 V) + value: 2 enum/OPTSR_IO_VDDIO_HSLV: bit_size: 1 variants: - - name: B_0x0 - description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.7�V) - value: 0 - - name: B_0x1 - description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.7�V) - value: 1 + - name: B_0x0 + description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.7�V) + value: 0 + - name: B_0x1 + description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.7�V) + value: 1 enum/OPTSR_IO_VDD_HSLV: bit_size: 1 variants: - - name: B_0x0 - description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.7�V) - value: 0 - - name: B_0x1 - description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.7�V) - value: 1 + - name: B_0x0 + description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.7�V) + value: 0 + - name: B_0x1 + description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.7�V) + value: 1 enum/OPTSR_IWDG_STDBY: bit_size: 1 variants: - - name: B_0x0 - description: Independent watchdog frozen in Standby mode - value: 0 - - name: B_0x1 - description: Independent watchdog keep running in Standby mode. - value: 1 + - name: B_0x0 + description: Independent watchdog frozen in Standby mode + value: 0 + - name: B_0x1 + description: Independent watchdog keep running in Standby mode. + value: 1 enum/OPTSR_IWDG_STOP: bit_size: 1 variants: - - name: B_0x0 - description: Independent watchdog frozen in system Stop mode - value: 0 - - name: B_0x1 - description: Independent watchdog keep running in system Stop mode. - value: 1 + - name: B_0x0 + description: Independent watchdog frozen in system Stop mode + value: 0 + - name: B_0x1 + description: Independent watchdog keep running in system Stop mode. + value: 1 enum/OPTSR_IWDG_SW: bit_size: 1 variants: - - name: B_0x0 - description: IWDG watchdog is controlled by hardware - value: 0 - - name: B_0x1 - description: IWDG watchdog is controlled by software - value: 1 + - name: B_0x0 + description: IWDG watchdog is controlled by hardware + value: 0 + - name: B_0x1 + description: IWDG watchdog is controlled by software + value: 1 enum/OPTSR_NRST_STDBY: bit_size: 1 variants: - - name: B_0x0 - description: a reset is generated when entering Standby mode on core domain - value: 0 - - name: B_0x1 - description: no reset generated when entering Standby mode on core domain. - value: 1 + - name: B_0x0 + description: a reset is generated when entering Standby mode on core domain + value: 0 + - name: B_0x1 + description: no reset generated when entering Standby mode on core domain. + value: 1 enum/OPTSR_NRST_STOP: bit_size: 1 variants: - - name: B_0x0 - description: a reset is generated when entering Stop mode on core domain - value: 0 - - name: B_0x1 - description: no reset generated when entering Stop mode on core domain. - value: 1 + - name: B_0x0 + description: a reset is generated when entering Stop mode on core domain + value: 0 + - name: B_0x1 + description: no reset generated when entering Stop mode on core domain. + value: 1 enum/OPTSR_SRAM_ECC: bit_size: 1 variants: - - name: B_0x0 - description: SRAM2 ECC check enabled - value: 0 - - name: B_0x1 - description: SRAM2 ECC check disabled - value: 1 + - name: B_0x0 + description: SRAM2 ECC check enabled + value: 0 + - name: B_0x1 + description: SRAM2 ECC check disabled + value: 1 enum/OPTSR_SWAP_BANK: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 and Bank2 not swapped - value: 0 - - name: B_0x1 - description: Bank1 and Bank2 swapped - value: 1 + - name: B_0x0 + description: Bank1 and Bank2 not swapped + value: 0 + - name: B_0x1 + description: Bank1 and Bank2 swapped + value: 1 enum/OPTSR_TZEN: bit_size: 8 variants: - - name: B_0xB4 - description: TrustZone enabled. - value: 180 - - name: B_0xC3 - description: TrustZone disabled - value: 195 + - name: B_0xB4 + description: TrustZone enabled. + value: 180 + - name: B_0xC3 + description: TrustZone disabled + value: 195 enum/OPTSR_WWDG_SW: bit_size: 1 variants: - - name: B_0x0 - description: WWDG watchdog is controlled by hardware - value: 0 - - name: B_0x1 - description: WWDG watchdog is controlled by software - value: 1 + - name: B_0x0 + description: WWDG watchdog is controlled by hardware + value: 0 + - name: B_0x1 + description: WWDG watchdog is controlled by software + value: 1 enum/PRIVBBR_PRIVBB: bit_size: 32 variants: - - name: B_0x0 - description: sectors (32 * (x-1) + y) in bank 2 is unprivileged - value: 0 - - name: B_0x1 - description: sector (32 * (x-1) + y) in bank 2 is privileged - value: 1 + - name: B_0x0 + description: sectors (32 * (x-1) + y) in bank 2 is unprivileged + value: 0 + - name: B_0x1 + description: sector (32 * (x-1) + y) in bank 2 is privileged + value: 1 enum/SECBBR_SECBB: bit_size: 32 variants: - - name: B_0x0 - description: sectors (32 * (x-1) + y) in bank 2 is non secure - value: 0 - - name: B_0x1 - description: sector (32 * (x-1) + y) in bank 2 is secure - value: 1 + - name: B_0x0 + description: sectors (32 * (x-1) + y) in bank 2 is non secure + value: 0 + - name: B_0x1 + description: sector (32 * (x-1) + y) in bank 2 is secure + value: 1 enum/SECBOOTR_SECBOOT_LOCK: bit_size: 8 variants: - - name: B_0xB4 - description: The BOOT_UBE and SECBOOTADD are frozen. SWAP_ BANK can only be modified with TZEN set to 0xC3 (disabled). - value: 180 - - name: B_0xC3 - description: "The BOOT_UBE, SWAP_BANK and SECBOOTADD can still be modified following their individual rules." - value: 195 + - name: B_0xB4 + description: The BOOT_UBE and SECBOOTADD are frozen. SWAP_ BANK can only be modified with TZEN set to 0xC3 (disabled). + value: 180 + - name: B_0xC3 + description: The BOOT_UBE, SWAP_BANK and SECBOOTADD can still be modified following their individual rules. + value: 195 enum/SECCR_BKSEL: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 is selected for Bank erase / sector erase / interrupt enable - value: 0 - - name: B_0x1 - description: Bank2 is selected for BER / SER - value: 1 + - name: B_0x0 + description: Bank1 is selected for Bank erase / sector erase / interrupt enable + value: 0 + - name: B_0x1 + description: Bank2 is selected for BER / SER + value: 1 enum/SPRIV: bit_size: 1 variants: - - name: B_0x0 - description: access to secure registers is always granted - value: 0 - - name: B_0x1 - description: access to secure registers is denied in case of unprivileged access. - value: 1 + - name: B_0x0 + description: access to secure registers is always granted + value: 0 + - name: B_0x1 + description: access to secure registers is denied in case of unprivileged access. + value: 1 diff --git a/data/registers/flash_h50.yaml b/data/registers/flash_h50.yaml index 1ff0580..fb487cc 100644 --- a/data/registers/flash_h50.yaml +++ b/data/registers/flash_h50.yaml @@ -1,779 +1,778 @@ ---- block/FLASH: description: FLASH address block description items: - - name: ACR - description: FLASH access control register - byte_offset: 0 - fieldset: ACR - - name: NSKEYR - description: FLASH key register - byte_offset: 4 - fieldset: NSKEYR - - name: OPTKEYR - description: FLASH option key register - byte_offset: 12 - fieldset: OPTKEYR - - name: OPSR - description: FLASH operation status register - byte_offset: 24 - fieldset: OPSR - - name: OPTCR - description: FLASH option control register - byte_offset: 28 - fieldset: OPTCR - - name: NSSR - description: FLASH non-secure status register - byte_offset: 32 - fieldset: NSSR - - name: SECSR - description: FLASH secure status register - byte_offset: 36 - fieldset: SECSR - - name: NSCR - description: FLASH Non Secure control register - byte_offset: 40 - fieldset: NSCR - - name: NSCCR - description: FLASH non-secure clear control register - byte_offset: 48 - fieldset: NSCCR - - name: PRIVCFGR - description: FLASH privilege configuration register - byte_offset: 60 - fieldset: PRIVCFGR - - name: HDPEXTR - description: FLASH HDP extension register - byte_offset: 72 - fieldset: HDPEXTR - - name: OPTSR_CUR - description: FLASH option status register - byte_offset: 80 - fieldset: OPTSR - - name: OPTSR_PRG - description: FLASH option status register - byte_offset: 84 - fieldset: OPTSR - - name: OPTSR2_CUR - description: FLASH option status register 2 - byte_offset: 112 - fieldset: OPTSR2 - - name: OPTSR2_PRG - description: FLASH option status register 2 - byte_offset: 116 - fieldset: OPTSR2 - - name: NSBOOTR_CUR - description: FLASH non-secure unique boot entry register - byte_offset: 128 - fieldset: NSBOOTR - - name: NSBOOTR_PRG - description: FLASH non-secure unique boot entry address - byte_offset: 132 - fieldset: NSBOOTR - - name: OTPBLR_CUR - description: FLASH non-secure OTP block lock - byte_offset: 144 - fieldset: OTPBLR - - name: OTPBLR_PRG - description: FLASH non-secure OTP block lock - byte_offset: 148 - fieldset: OTPBLR - - name: PRIVBB1R - description: FLASH privilege register for bank 1 - byte_offset: 192 - fieldset: PRIVBB - - name: WRPSGN1R_CUR - description: FLASH write sector protection for Bank1 - byte_offset: 232 - fieldset: WRP - - name: WRPSGN1R_PRG - description: FLASH write sector protection for Bank1 - byte_offset: 236 - fieldset: WRP - - name: HDP1R_CUR - description: FLASH HDP Bank1 register - byte_offset: 248 - fieldset: HDP1R - - name: HDP1R_PRG - description: FLASH HDP Bank1 register - byte_offset: 252 - fieldset: HDP1R - - name: ECCCORR - description: FLASH Flash ECC correction register - byte_offset: 256 - fieldset: ECCCORR - - name: ECCDETR - description: FLASH ECC detection register - byte_offset: 260 - fieldset: ECCDETR - - name: ECCDR - description: FLASH ECC data - byte_offset: 264 - fieldset: ECCDR - - name: WRPSGN2R_CUR - description: FLASH write sector protection for Bank2 - byte_offset: 488 - fieldset: WRP - - name: WRPSGN2R_PRG - description: FLASH write sector protection for Bank2 - byte_offset: 492 - fieldset: WRP - - name: HDP2R_CUR - description: FLASH HDP Bank2 register - byte_offset: 504 - fieldset: HDP2R - - name: HDP2R_PRG - description: FLASH HDP Bank2 register - byte_offset: 508 - fieldset: HDP2R + - name: ACR + description: FLASH access control register + byte_offset: 0 + fieldset: ACR + - name: NSKEYR + description: FLASH key register + byte_offset: 4 + fieldset: NSKEYR + - name: OPTKEYR + description: FLASH option key register + byte_offset: 12 + fieldset: OPTKEYR + - name: OPSR + description: FLASH operation status register + byte_offset: 24 + fieldset: OPSR + - name: OPTCR + description: FLASH option control register + byte_offset: 28 + fieldset: OPTCR + - name: NSSR + description: FLASH non-secure status register + byte_offset: 32 + fieldset: NSSR + - name: SECSR + description: FLASH secure status register + byte_offset: 36 + fieldset: SECSR + - name: NSCR + description: FLASH Non Secure control register + byte_offset: 40 + fieldset: NSCR + - name: NSCCR + description: FLASH non-secure clear control register + byte_offset: 48 + fieldset: NSCCR + - name: PRIVCFGR + description: FLASH privilege configuration register + byte_offset: 60 + fieldset: PRIVCFGR + - name: HDPEXTR + description: FLASH HDP extension register + byte_offset: 72 + fieldset: HDPEXTR + - name: OPTSR_CUR + description: FLASH option status register + byte_offset: 80 + fieldset: OPTSR + - name: OPTSR_PRG + description: FLASH option status register + byte_offset: 84 + fieldset: OPTSR + - name: OPTSR2_CUR + description: FLASH option status register 2 + byte_offset: 112 + fieldset: OPTSR2 + - name: OPTSR2_PRG + description: FLASH option status register 2 + byte_offset: 116 + fieldset: OPTSR2 + - name: NSBOOTR_CUR + description: FLASH non-secure unique boot entry register + byte_offset: 128 + fieldset: NSBOOTR + - name: NSBOOTR_PRG + description: FLASH non-secure unique boot entry address + byte_offset: 132 + fieldset: NSBOOTR + - name: OTPBLR_CUR + description: FLASH non-secure OTP block lock + byte_offset: 144 + fieldset: OTPBLR + - name: OTPBLR_PRG + description: FLASH non-secure OTP block lock + byte_offset: 148 + fieldset: OTPBLR + - name: PRIVBB1R + description: FLASH privilege register for bank 1 + byte_offset: 192 + fieldset: PRIVBB + - name: WRPSGN1R_CUR + description: FLASH write sector protection for Bank1 + byte_offset: 232 + fieldset: WRP + - name: WRPSGN1R_PRG + description: FLASH write sector protection for Bank1 + byte_offset: 236 + fieldset: WRP + - name: HDP1R_CUR + description: FLASH HDP Bank1 register + byte_offset: 248 + fieldset: HDP1R + - name: HDP1R_PRG + description: FLASH HDP Bank1 register + byte_offset: 252 + fieldset: HDP1R + - name: ECCCORR + description: FLASH Flash ECC correction register + byte_offset: 256 + fieldset: ECCCORR + - name: ECCDETR + description: FLASH ECC detection register + byte_offset: 260 + fieldset: ECCDETR + - name: ECCDR + description: FLASH ECC data + byte_offset: 264 + fieldset: ECCDR + - name: WRPSGN2R_CUR + description: FLASH write sector protection for Bank2 + byte_offset: 488 + fieldset: WRP + - name: WRPSGN2R_PRG + description: FLASH write sector protection for Bank2 + byte_offset: 492 + fieldset: WRP + - name: HDP2R_CUR + description: FLASH HDP Bank2 register + byte_offset: 504 + fieldset: HDP2R + - name: HDP2R_PRG + description: FLASH HDP Bank2 register + byte_offset: 508 + fieldset: HDP2R fieldset/ACR: description: FLASH access control register fields: - - name: LATENCY - description: "Read latency\r These bits are used to control the number of wait states used during read operations on both non-volatile memory banks. The application software has to program them to the correct value depending on the embedded Flash memory interface frequency and voltage conditions.\r ...\r Note: No check is performed by hardware to verify that the configuration is correct." - bit_offset: 0 - bit_size: 4 - - name: WRHIGHFREQ - description: "Flash signal delay\r These bits are used to control the delay between non-volatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded Flash memory interface frequency. Please refer to for details.\r Note: No check is performed to verify that the configuration is correct.\r Two WRHIGHFREQ values can be selected for some frequencies." - bit_offset: 4 - bit_size: 2 - - name: PRFTEN - description: "Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account.\r Bits used to control the prefetch." - bit_offset: 8 - bit_size: 1 - - name: S_PRFTEN - description: "Smart prefetch enable. When bit value is modified, user must read back ACR register to be sure S_PRFTEN has been taken into account.\r Bits used to control the prefetch functionality." - bit_offset: 9 - bit_size: 1 + - name: LATENCY + description: "Read latency\r These bits are used to control the number of wait states used during read operations on both non-volatile memory banks. The application software has to program them to the correct value depending on the embedded Flash memory interface frequency and voltage conditions.\r ...\r Note: No check is performed by hardware to verify that the configuration is correct." + bit_offset: 0 + bit_size: 4 + - name: WRHIGHFREQ + description: "Flash signal delay\r These bits are used to control the delay between non-volatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded Flash memory interface frequency. Please refer to for details.\r Note: No check is performed to verify that the configuration is correct.\r Two WRHIGHFREQ values can be selected for some frequencies." + bit_offset: 4 + bit_size: 2 + - name: PRFTEN + description: "Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account.\r Bits used to control the prefetch." + bit_offset: 8 + bit_size: 1 + - name: S_PRFTEN + description: "Smart prefetch enable. When bit value is modified, user must read back ACR register to be sure S_PRFTEN has been taken into account.\r Bits used to control the prefetch functionality." + bit_offset: 9 + bit_size: 1 fieldset/ECCCORR: description: FLASH Flash ECC correction register fields: - - name: ADDR_ECC - description: "ECC error address\r When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error.\r ADDR_ECC is reset when the flag error is reset.\r The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved.\r The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area)." - bit_offset: 0 - bit_size: 16 - - name: BK_ECC - description: "ECC bank flag for corrected ECC error\r It indicates which bank is concerned by ECC error" - bit_offset: 22 - bit_size: 1 - - name: SYSF_ECC - description: "ECC flag for corrected ECC error in system FLASH\r It indicates if system Flash memory is concerned by ECC error." - bit_offset: 23 - bit_size: 1 - - name: OTP_ECC - description: "OTP ECC error bit\r This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." - bit_offset: 24 - bit_size: 1 - - name: ECCCIE - description: "ECC single correction error interrupt enable bit When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation." - bit_offset: 25 - bit_size: 1 - - name: ECCC - description: "ECC correction set by hardware when single ECC error has been detected and corrected.\r Cleared by writing 1." - bit_offset: 30 - bit_size: 1 + - name: ADDR_ECC + description: "ECC error address\r When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error.\r ADDR_ECC is reset when the flag error is reset.\r The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved.\r The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area)." + bit_offset: 0 + bit_size: 16 + - name: BK_ECC + description: "ECC bank flag for corrected ECC error\r It indicates which bank is concerned by ECC error" + bit_offset: 22 + bit_size: 1 + - name: SYSF_ECC + description: "ECC flag for corrected ECC error in system FLASH\r It indicates if system Flash memory is concerned by ECC error." + bit_offset: 23 + bit_size: 1 + - name: OTP_ECC + description: "OTP ECC error bit\r This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." + bit_offset: 24 + bit_size: 1 + - name: ECCCIE + description: ECC single correction error interrupt enable bit When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation. + bit_offset: 25 + bit_size: 1 + - name: ECCC + description: "ECC correction set by hardware when single ECC error has been detected and corrected.\r Cleared by writing 1." + bit_offset: 30 + bit_size: 1 fieldset/ECCDETR: description: FLASH ECC detection register fields: - - name: ADDR_ECC - description: "ECC error address\r When an ECC error occurs (double detection) during a read operation, the ADDR_ECC contains the address that generated the error.\r ADDR_ECC is reset when the flag error is reset.\r The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an double ECC error is saved.\r The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area)." - bit_offset: 0 - bit_size: 16 - - name: BK_ECC - description: "ECC fail bank for double ECC Error\r It indicates which bank is concerned by ECC error" - bit_offset: 22 - bit_size: 1 - - name: SYSF_ECC - description: "ECC fail for double ECC error in system Flash memory\r It indicates if system Flash memory is concerned by ECC error." - bit_offset: 23 - bit_size: 1 - - name: OTP_ECC - description: "OTP ECC error bit\r This bit is set to 1 when double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bit field." - bit_offset: 24 - bit_size: 1 - - name: ECCD - description: "ECC detection set by hardware when two ECC error has been detected.\r When this bit is set, a NMI is generated.\r Cleared by writing 1. Needs to be cleared in order to detect subsequent double ECC errors." - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: "ECC error address\r When an ECC error occurs (double detection) during a read operation, the ADDR_ECC contains the address that generated the error.\r ADDR_ECC is reset when the flag error is reset.\r The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an double ECC error is saved.\r The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area)." + bit_offset: 0 + bit_size: 16 + - name: BK_ECC + description: "ECC fail bank for double ECC Error\r It indicates which bank is concerned by ECC error" + bit_offset: 22 + bit_size: 1 + - name: SYSF_ECC + description: "ECC fail for double ECC error in system Flash memory\r It indicates if system Flash memory is concerned by ECC error." + bit_offset: 23 + bit_size: 1 + - name: OTP_ECC + description: "OTP ECC error bit\r This bit is set to 1 when double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bit field." + bit_offset: 24 + bit_size: 1 + - name: ECCD + description: "ECC detection set by hardware when two ECC error has been detected.\r When this bit is set, a NMI is generated.\r Cleared by writing 1. Needs to be cleared in order to detect subsequent double ECC errors." + bit_offset: 31 + bit_size: 1 fieldset/ECCDR: description: FLASH ECC data fields: - - name: DATA_ECC - description: "ECC error data\r When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit of data (data area, read-only/OTP area), the failing data is read to this register.\r By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory." - bit_offset: 0 - bit_size: 16 + - name: DATA_ECC + description: "ECC error data\r When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit of data (data area, read-only/OTP area), the failing data is read to this register.\r By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory." + bit_offset: 0 + bit_size: 16 fieldset/HDP1R: description: FLASH HDP Bank1 register fields: - - name: HDP1_STRT - description: HDPL barrier start set in number of 8 Kbytes sectors - bit_offset: 0 - bit_size: 3 - - name: HDP1_END - description: HDPL barrier end set in number of 8 Kbytes sectors - bit_offset: 16 - bit_size: 3 + - name: HDP1_STRT + description: HDPL barrier start set in number of 8 Kbytes sectors + bit_offset: 0 + bit_size: 3 + - name: HDP1_END + description: HDPL barrier end set in number of 8 Kbytes sectors + bit_offset: 16 + bit_size: 3 fieldset/HDP2R: description: FLASH HDP Bank2 register fields: - - name: HDP2_STRT - description: Bank 2 HDPL barrier start set in number of 8 Kbytes sectors - bit_offset: 0 - bit_size: 3 - - name: HDP2_END - description: Bank 2 HDPL barrier end set in number of 8 Kbytes sectors - bit_offset: 16 - bit_size: 3 + - name: HDP2_STRT + description: Bank 2 HDPL barrier start set in number of 8 Kbytes sectors + bit_offset: 0 + bit_size: 3 + - name: HDP2_END + description: Bank 2 HDPL barrier end set in number of 8 Kbytes sectors + bit_offset: 16 + bit_size: 3 fieldset/HDPEXTR: description: FLASH HDP extension register fields: - - name: HDP1_EXT - description: HDP area extension in 8 Kbytes sectors in Bank1. Extension is added after the HDP1_END sector. - bit_offset: 0 - bit_size: 3 - - name: HDP2_EXT - description: HDP area extension in 8 Kbytes sectors in Bank2. Extension is added after the HDP2_END sector. - bit_offset: 16 - bit_size: 3 + - name: HDP1_EXT + description: HDP area extension in 8 Kbytes sectors in Bank1. Extension is added after the HDP1_END sector. + bit_offset: 0 + bit_size: 3 + - name: HDP2_EXT + description: HDP area extension in 8 Kbytes sectors in Bank2. Extension is added after the HDP2_END sector. + bit_offset: 16 + bit_size: 3 fieldset/NSBOOTR: description: FLASH non-secure unique boot entry register fields: - - name: NSBOOT_LOCK - description: "A field locking the values of SWAP_BANK, and NSBOOTADD settings." - bit_offset: 0 - bit_size: 8 - enum: NSBOOTR_NSBOOT_LOCK - - name: NSBOOTADD - description: "unique boot entry address\r These bits reflect the UBE address" - bit_offset: 8 - bit_size: 24 + - name: NSBOOT_LOCK + description: A field locking the values of SWAP_BANK, and NSBOOTADD settings. + bit_offset: 0 + bit_size: 8 + enum: NSBOOTR_NSBOOT_LOCK + - name: NSBOOTADD + description: "unique boot entry address\r These bits reflect the UBE address" + bit_offset: 8 + bit_size: 24 fieldset/NSCCR: description: FLASH non-secure clear control register fields: - - name: CLR_EOP - description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_NSSR register." - bit_offset: 16 - bit_size: 1 - - name: CLR_WRPERR - description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_NSSR register." - bit_offset: 17 - bit_size: 1 - - name: CLR_PGSERR - description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_NSSR register." - bit_offset: 18 - bit_size: 1 - - name: CLR_STRBERR - description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_NSSR register." - bit_offset: 19 - bit_size: 1 - - name: CLR_INCERR - description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_NSSR register." - bit_offset: 20 - bit_size: 1 - - name: CLR_OPTCHANGEERR - description: Clear the flag corresponding flag in FLASH_NSSR by writing this bit. - bit_offset: 23 - bit_size: 1 + - name: CLR_EOP + description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_NSSR register." + bit_offset: 16 + bit_size: 1 + - name: CLR_WRPERR + description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_NSSR register." + bit_offset: 17 + bit_size: 1 + - name: CLR_PGSERR + description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_NSSR register." + bit_offset: 18 + bit_size: 1 + - name: CLR_STRBERR + description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_NSSR register." + bit_offset: 19 + bit_size: 1 + - name: CLR_INCERR + description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_NSSR register." + bit_offset: 20 + bit_size: 1 + - name: CLR_OPTCHANGEERR + description: Clear the flag corresponding flag in FLASH_NSSR by writing this bit. + bit_offset: 23 + bit_size: 1 fieldset/NSCR: description: FLASH Non Secure control register fields: - - name: LOCK - description: "configuration lock bit\r This bit locks the FLASH_NSCR register. The correct write sequence to FLASH_NSKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset.\r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: PG - description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0.\r PG allows programming in Bank1 and Bank2." - bit_offset: 1 - bit_size: 1 - - name: SER - description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0.\r If MER and SER are also set, a PGSERR is raised." - bit_offset: 2 - bit_size: 1 - - name: BER - description: "erase request\r Setting BER bit to 1 requests a bank erase operation (user Flash memory only). BER can be programmed only when LOCK is cleared to 0.\r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." - bit_offset: 3 - bit_size: 1 - - name: FW - description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0.\r The embedded Flash memory resets FW when the corresponding operation has been acknowledged.\r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty (in particular, FW does not start several write operations when the force-write operations are performed consecutively).\r Since there is just one write buffer, FW can force a write in bank1 or bank2." - bit_offset: 4 - bit_size: 1 - - name: STRT - description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0.\r STRT is reset at the end of the operation or when an error occurs. It cannot be reseted by software." - bit_offset: 5 - bit_size: 1 - - name: SNB - description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r ..." - bit_offset: 6 - bit_size: 3 - - name: MER - description: "Mass erase request\r Setting MER bit to 1 requests a mass erase operation (user Flash memory only). MER can be programmed only when LOCK is cleared to 0.\r If BER or SER are both set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program or erase operation. EOPIE can be programmed only when LOCK is cleared to 0." - bit_offset: 16 - bit_size: 1 - - name: WRPERRIE - description: "write protection error interrupt enable bit\r When WRPERRIE bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 17 - bit_size: 1 - - name: PGSERRIE - description: "programming sequence error interrupt enable bit\r When PGSERRIE bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 18 - bit_size: 1 - - name: STRBERRIE - description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 19 - bit_size: 1 - - name: INCERRIE - description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." - bit_offset: 20 - bit_size: 1 - - name: OPTCHANGEERRIE - description: "Option byte change error interrupt enable bit\r OPTCHANGEERRIE bit controls if an interrupt has to be generated when an error occurs during an option byte change. This bit can be programmed only when LOCK bit is cleared to 0." - bit_offset: 23 - bit_size: 1 - - name: BKSEL - description: "Bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." - bit_offset: 31 - bit_size: 1 - enum: BKSEL + - name: LOCK + description: "configuration lock bit\r This bit locks the FLASH_NSCR register. The correct write sequence to FLASH_NSKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset.\r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: PG + description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0.\r PG allows programming in Bank1 and Bank2." + bit_offset: 1 + bit_size: 1 + - name: SER + description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0.\r If MER and SER are also set, a PGSERR is raised." + bit_offset: 2 + bit_size: 1 + - name: BER + description: "erase request\r Setting BER bit to 1 requests a bank erase operation (user Flash memory only). BER can be programmed only when LOCK is cleared to 0.\r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." + bit_offset: 3 + bit_size: 1 + - name: FW + description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0.\r The embedded Flash memory resets FW when the corresponding operation has been acknowledged.\r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty (in particular, FW does not start several write operations when the force-write operations are performed consecutively).\r Since there is just one write buffer, FW can force a write in bank1 or bank2." + bit_offset: 4 + bit_size: 1 + - name: STRT + description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0.\r STRT is reset at the end of the operation or when an error occurs. It cannot be reseted by software." + bit_offset: 5 + bit_size: 1 + - name: SNB + description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r ..." + bit_offset: 6 + bit_size: 3 + - name: MER + description: "Mass erase request\r Setting MER bit to 1 requests a mass erase operation (user Flash memory only). MER can be programmed only when LOCK is cleared to 0.\r If BER or SER are both set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program or erase operation. EOPIE can be programmed only when LOCK is cleared to 0." + bit_offset: 16 + bit_size: 1 + - name: WRPERRIE + description: "write protection error interrupt enable bit\r When WRPERRIE bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 17 + bit_size: 1 + - name: PGSERRIE + description: "programming sequence error interrupt enable bit\r When PGSERRIE bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 18 + bit_size: 1 + - name: STRBERRIE + description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 19 + bit_size: 1 + - name: INCERRIE + description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." + bit_offset: 20 + bit_size: 1 + - name: OPTCHANGEERRIE + description: "Option byte change error interrupt enable bit\r OPTCHANGEERRIE bit controls if an interrupt has to be generated when an error occurs during an option byte change. This bit can be programmed only when LOCK bit is cleared to 0." + bit_offset: 23 + bit_size: 1 + - name: BKSEL + description: "Bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." + bit_offset: 31 + bit_size: 1 + enum: BKSEL fieldset/NSKEYR: description: FLASH key register fields: - - name: NSKEY - description: Non-volatile memory configuration access unlock key - bit_offset: 0 - bit_size: 32 + - name: NSKEY + description: Non-volatile memory configuration access unlock key + bit_offset: 0 + bit_size: 32 fieldset/NSSR: description: FLASH non-secure status register fields: - - name: BSY - description: "busy flag\r BSY flag indicates that a Flash memory is busy by an operation (write, erase, option byte change). It is set at the beginning of a Flash memory operation and cleared when the operation finishes or an error occurs." - bit_offset: 0 - bit_size: 1 - - name: WBNE - description: "write buffer not empty flag\r WBNE flag is set when the embedded Flash memory is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_NSCR\r the embedded Flash memory detects an error that involves data loss\r This bit cannot be reset by software writing 0 directly. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." - bit_offset: 1 - bit_size: 1 - - name: DBNE - description: "data buffer not empty flag\r DBNE flag is set when the embedded Flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." - bit_offset: 3 - bit_size: 1 - - name: EOP - description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to 1. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_NSCCR register." - bit_offset: 16 - bit_size: 1 - - name: WRPERR - description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_NSCCR register clears WRPERR." - bit_offset: 17 - bit_size: 1 - - name: PGSERR - description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_NSCCR register clears PGSERR." - bit_offset: 18 - bit_size: 1 - - name: STRBERR - description: "strobe error flag\r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_NSCCR register clears STRBERR." - bit_offset: 19 - bit_size: 1 - - name: INCERR - description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_NSCCR register clears INCERR." - bit_offset: 20 - bit_size: 1 - - name: OPTCHANGEERR - description: "Option byte change error flag\r OPTCHANGEERR flag indicates that an error occurred during an option byte change operation. When OPTCHANGEERR is set to 1, the option byte change operation did not successfully complete. An interrupt is generated when this flag is raised if the OPTCHANGEERRIE bit of FLASH_NSCR register is set to 1.\r Writing 1 to CLR_OPTCHANGEERR of register FLASH_CCR clears OPTCHANGEERR.\r Note: The OPTSTRT bit in FLASH_OPTCR cannot be set while OPTCHANGEERR is set." - bit_offset: 23 - bit_size: 1 + - name: BSY + description: "busy flag\r BSY flag indicates that a Flash memory is busy by an operation (write, erase, option byte change). It is set at the beginning of a Flash memory operation and cleared when the operation finishes or an error occurs." + bit_offset: 0 + bit_size: 1 + - name: WBNE + description: "write buffer not empty flag\r WBNE flag is set when the embedded Flash memory is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_NSCR\r the embedded Flash memory detects an error that involves data loss\r This bit cannot be reset by software writing 0 directly. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." + bit_offset: 1 + bit_size: 1 + - name: DBNE + description: "data buffer not empty flag\r DBNE flag is set when the embedded Flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." + bit_offset: 3 + bit_size: 1 + - name: EOP + description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to 1. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_NSCCR register." + bit_offset: 16 + bit_size: 1 + - name: WRPERR + description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_NSCCR register clears WRPERR." + bit_offset: 17 + bit_size: 1 + - name: PGSERR + description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_NSCCR register clears PGSERR." + bit_offset: 18 + bit_size: 1 + - name: STRBERR + description: "strobe error flag\r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_NSCCR register clears STRBERR." + bit_offset: 19 + bit_size: 1 + - name: INCERR + description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_NSCCR register clears INCERR." + bit_offset: 20 + bit_size: 1 + - name: OPTCHANGEERR + description: "Option byte change error flag\r OPTCHANGEERR flag indicates that an error occurred during an option byte change operation. When OPTCHANGEERR is set to 1, the option byte change operation did not successfully complete. An interrupt is generated when this flag is raised if the OPTCHANGEERRIE bit of FLASH_NSCR register is set to 1.\r Writing 1 to CLR_OPTCHANGEERR of register FLASH_CCR clears OPTCHANGEERR.\r Note: The OPTSTRT bit in FLASH_OPTCR cannot be set while OPTCHANGEERR is set." + bit_offset: 23 + bit_size: 1 fieldset/OPSR: description: FLASH operation status register fields: - - name: ADDR_OP - description: Interrupted operation address. - bit_offset: 0 - bit_size: 20 - - name: BK_OP - description: "Interrupted operation bank\r It indicates which bank was concerned by operation." - bit_offset: 22 - bit_size: 1 - - name: SYSF_OP - description: "Operation in system Flash memory interrupted\r Indicates that reset interrupted an ongoing operation in System Flash." - bit_offset: 23 - bit_size: 1 - - name: OTP_OP - description: "OTP operation interrupted\r Indicates that reset interrupted an ongoing operation in OTP area." - bit_offset: 24 - bit_size: 1 - - name: CODE_OP - description: Flash memory operation code - bit_offset: 29 - bit_size: 3 - enum: CODE_OP + - name: ADDR_OP + description: Interrupted operation address. + bit_offset: 0 + bit_size: 20 + - name: BK_OP + description: "Interrupted operation bank\r It indicates which bank was concerned by operation." + bit_offset: 22 + bit_size: 1 + - name: SYSF_OP + description: "Operation in system Flash memory interrupted\r Indicates that reset interrupted an ongoing operation in System Flash." + bit_offset: 23 + bit_size: 1 + - name: OTP_OP + description: "OTP operation interrupted\r Indicates that reset interrupted an ongoing operation in OTP area." + bit_offset: 24 + bit_size: 1 + - name: CODE_OP + description: Flash memory operation code + bit_offset: 29 + bit_size: 3 + enum: CODE_OP fieldset/OPTCR: description: FLASH option control register fields: - - name: OPTLOCK - description: "FLASH_OPTCR lock option configuration bit\r The OPTLOCK bit locks the FLASH_OPTCR register as well as all _PRG registers. The correct write sequence to FLASH_OPTKEYR register unlocks this bit. If a wrong sequence is executed, or the unlock sequence to FLASH_OPTKEYR is performed twice, this bit remains locked until next system reset.\r It is possible to set OPTLOCK by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When OPTLOCK changes from 0 to 1, the others bits of FLASH_OPTCR register do not change." - bit_offset: 0 - bit_size: 1 - - name: OPTSTRT - description: "Option byte start change option configuration bit\r OPTSTRT triggers an option byte change operation. The user can set OPTSTRT only when the OPTLOCK bit is cleared to 0. It’s set only by Software and cleared when the option byte change is completed or an error occurs (PGSERR or OPTCHANGEERR). It’s reseted at the same time as BSY bit.\r The user application cannot modify any FLASH_XXX_PRG embedded Flash memory register until the option change operation has been completed.\r Before setting this bit, the user has to write the required values in the FLASH_XXX_PRG registers. The FLASH_XXX_PRG registers are locked until the option byte change operation has been executed in non-volatile memory." - bit_offset: 1 - bit_size: 1 - - name: SWAP_BANK - description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR." - bit_offset: 31 - bit_size: 1 - enum: OPTCR_SWAP_BANK + - name: OPTLOCK + description: "FLASH_OPTCR lock option configuration bit\r The OPTLOCK bit locks the FLASH_OPTCR register as well as all _PRG registers. The correct write sequence to FLASH_OPTKEYR register unlocks this bit. If a wrong sequence is executed, or the unlock sequence to FLASH_OPTKEYR is performed twice, this bit remains locked until next system reset.\r It is possible to set OPTLOCK by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When OPTLOCK changes from 0 to 1, the others bits of FLASH_OPTCR register do not change." + bit_offset: 0 + bit_size: 1 + - name: OPTSTRT + description: "Option byte start change option configuration bit\r OPTSTRT triggers an option byte change operation. The user can set OPTSTRT only when the OPTLOCK bit is cleared to 0. It’s set only by Software and cleared when the option byte change is completed or an error occurs (PGSERR or OPTCHANGEERR). It’s reseted at the same time as BSY bit.\r The user application cannot modify any FLASH_XXX_PRG embedded Flash memory register until the option change operation has been completed.\r Before setting this bit, the user has to write the required values in the FLASH_XXX_PRG registers. The FLASH_XXX_PRG registers are locked until the option byte change operation has been executed in non-volatile memory." + bit_offset: 1 + bit_size: 1 + - name: SWAP_BANK + description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR." + bit_offset: 31 + bit_size: 1 + enum: OPTCR_SWAP_BANK fieldset/OPTKEYR: description: FLASH option key register fields: - - name: OPTKEY - description: FLASH option bytes control access unlock key - bit_offset: 0 - bit_size: 32 + - name: OPTKEY + description: FLASH option bytes control access unlock key + bit_offset: 0 + bit_size: 32 fieldset/OPTSR: description: FLASH option status register fields: - - name: BOR_LEV - description: "Brownout level option status bit\r These bits reflects the power level that generates a system reset." - bit_offset: 0 - bit_size: 2 - enum: OPTSR_BOR_LEV - - name: BORH_EN - description: Brownout high enable status bit - bit_offset: 2 - bit_size: 1 - - name: IWDG_SW - description: IWDG control mode option status bit - bit_offset: 3 - bit_size: 1 - enum: OPTSR_IWDG_SW - - name: WWDG_SW - description: WWDG control mode option status bit - bit_offset: 4 - bit_size: 1 - enum: OPTSR_WWDG_SW - - name: NRST_SHDW - description: Core domain Shutdown entry reset option status bit - bit_offset: 5 - bit_size: 1 - enum: OPTSR_NRST_SHDW - - name: NRST_STOP - description: Core domain Stop entry reset option status bit - bit_offset: 6 - bit_size: 1 - enum: OPTSR_NRST_STOP - - name: NRST_STDBY - description: Core domain Standby entry reset option status bit - bit_offset: 7 - bit_size: 1 - enum: OPTSR_NRST_STDBY - - name: PRODUCT_STATE - description: "Life state code (based on Hamming 8,4). More information in ." - bit_offset: 8 - bit_size: 8 - - name: IO_VDD_HSLV - description: High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 V. - bit_offset: 16 - bit_size: 1 - enum: OPTSR_IO_VDD_HSLV - - name: IO_VDDIO2_HSLV - description: High-speed IO at low VDDIO2 voltage status bit. This bit can be set only with VDDIO2 below 2.5 V. - bit_offset: 17 - bit_size: 1 - enum: OPTSR_IO_VDDIO_HSLV - - name: IWDG_STOP - description: "IWDG Stop mode freeze option status bit\r When set the independent watchdog IWDG is in system Stop mode." - bit_offset: 20 - bit_size: 1 - enum: OPTSR_IWDG_STOP - - name: IWDG_STDBY - description: "IWDG Standby mode freeze option status bit\r When set the independent watchdog IWDG is frozen in system Standby mode." - bit_offset: 21 - bit_size: 1 - enum: OPTSR_IWDG_STDBY - - name: SWAP_BANK - description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not.\r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset." - bit_offset: 31 - bit_size: 1 - enum: OPTSR_SWAP_BANK + - name: BOR_LEV + description: "Brownout level option status bit\r These bits reflects the power level that generates a system reset." + bit_offset: 0 + bit_size: 2 + enum: OPTSR_BOR_LEV + - name: BORH_EN + description: Brownout high enable status bit + bit_offset: 2 + bit_size: 1 + - name: IWDG_SW + description: IWDG control mode option status bit + bit_offset: 3 + bit_size: 1 + enum: OPTSR_IWDG_SW + - name: WWDG_SW + description: WWDG control mode option status bit + bit_offset: 4 + bit_size: 1 + enum: OPTSR_WWDG_SW + - name: NRST_SHDW + description: Core domain Shutdown entry reset option status bit + bit_offset: 5 + bit_size: 1 + enum: OPTSR_NRST_SHDW + - name: NRST_STOP + description: Core domain Stop entry reset option status bit + bit_offset: 6 + bit_size: 1 + enum: OPTSR_NRST_STOP + - name: NRST_STDBY + description: Core domain Standby entry reset option status bit + bit_offset: 7 + bit_size: 1 + enum: OPTSR_NRST_STDBY + - name: PRODUCT_STATE + description: Life state code (based on Hamming 8,4). More information in . + bit_offset: 8 + bit_size: 8 + - name: IO_VDD_HSLV + description: High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 V. + bit_offset: 16 + bit_size: 1 + enum: OPTSR_IO_VDD_HSLV + - name: IO_VDDIO2_HSLV + description: High-speed IO at low VDDIO2 voltage status bit. This bit can be set only with VDDIO2 below 2.5 V. + bit_offset: 17 + bit_size: 1 + enum: OPTSR_IO_VDDIO_HSLV + - name: IWDG_STOP + description: "IWDG Stop mode freeze option status bit\r When set the independent watchdog IWDG is in system Stop mode." + bit_offset: 20 + bit_size: 1 + enum: OPTSR_IWDG_STOP + - name: IWDG_STDBY + description: "IWDG Standby mode freeze option status bit\r When set the independent watchdog IWDG is frozen in system Standby mode." + bit_offset: 21 + bit_size: 1 + enum: OPTSR_IWDG_STDBY + - name: SWAP_BANK + description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not.\r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset." + bit_offset: 31 + bit_size: 1 + enum: OPTSR_SWAP_BANK fieldset/OPTSR2: description: FLASH option status register 2 fields: - - name: SRAM2_RST - description: SRAM2 erase when system reset - bit_offset: 3 - bit_size: 1 - - name: BKPRAM_ECC - description: Backup RAM ECC detection and correction disable - bit_offset: 4 - bit_size: 1 - enum: OPTSR_BKPRAM_ECC - - name: SRAM2_ECC - description: SRAM2 ECC detection and correction disable - bit_offset: 6 - bit_size: 1 - enum: OPTSR_SRAM_ECC - - name: SRAM1_RST - description: SRAM1 erase upon system reset - bit_offset: 9 - bit_size: 1 - - name: SRAM1_ECC - description: SRAM1 ECC detection and correction disable - bit_offset: 10 - bit_size: 1 - enum: OPTSR_SRAM_ECC + - name: SRAM2_RST + description: SRAM2 erase when system reset + bit_offset: 3 + bit_size: 1 + - name: BKPRAM_ECC + description: Backup RAM ECC detection and correction disable + bit_offset: 4 + bit_size: 1 + enum: OPTSR_BKPRAM_ECC + - name: SRAM2_ECC + description: SRAM2 ECC detection and correction disable + bit_offset: 6 + bit_size: 1 + enum: OPTSR_SRAM_ECC + - name: SRAM1_RST + description: SRAM1 erase upon system reset + bit_offset: 9 + bit_size: 1 + - name: SRAM1_ECC + description: SRAM1 ECC detection and correction disable + bit_offset: 10 + bit_size: 1 + enum: OPTSR_SRAM_ECC fieldset/OTPBLR: description: FLASH non-secure OTP block lock fields: - - name: LOCKBL - description: "OTP block lock\r Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31.\r LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR.\r LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked.\r When one block is locked, it is not possible to remove the write protection.\r LOCKBL bits can be set if the corresponding bit in FLASH_OTPBLR_CUR is cleared." - bit_offset: 0 - bit_size: 32 + - name: LOCKBL + description: "OTP block lock\r Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31.\r LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR.\r LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked.\r When one block is locked, it is not possible to remove the write protection.\r LOCKBL bits can be set if the corresponding bit in FLASH_OTPBLR_CUR is cleared." + bit_offset: 0 + bit_size: 32 fieldset/PRIVBB: description: FLASH privilege register for bank 1 fields: - - name: PRIVBB - description: Privileged / unprivileged 8 Kbytes Flash Bank1 sector attribute (y = 0 to 7) - bit_offset: 0 - bit_size: 8 - enum: PRIVBB + - name: PRIVBB + description: Privileged / unprivileged 8 Kbytes Flash Bank1 sector attribute (y = 0 to 7) + bit_offset: 0 + bit_size: 8 + enum: PRIVBB fieldset/PRIVCFGR: description: FLASH privilege configuration register fields: - - name: NSPRIV - description: privilege attribute for non secure registers - bit_offset: 1 - bit_size: 1 - enum: NSPRIV + - name: NSPRIV + description: privilege attribute for non secure registers + bit_offset: 1 + bit_size: 1 + enum: NSPRIV fieldset/SECSR: description: FLASH secure status register fields: - - name: SECBSY - description: "busy flag\r BSY flag indicates that a FLASH memory is busy by an operation (write, erase, option byte change, OBK operations, PUF operation). It is set at the beginning of a Flash memory operation and cleared when the operation finishes or an error occurs." - bit_offset: 0 - bit_size: 1 - - name: SECWBNE - description: "write buffer not empty flag\r WBNE flag is set when the embedded Flash memory is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_SECCR\r the embedded Flash memory detects an error that involves data loss\r This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." - bit_offset: 1 - bit_size: 1 - - name: SECDBNE - description: "data buffer not empty flag\r DBNE flag is set when the embedded Flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." - bit_offset: 3 - bit_size: 1 - - name: SECEOP - description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register." - bit_offset: 16 - bit_size: 1 - - name: SECWRPERR - description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR." - bit_offset: 17 - bit_size: 1 - - name: SECPGSERR - description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR." - bit_offset: 18 - bit_size: 1 - - name: SECSTRBERR - description: "strobe error flag\r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR." - bit_offset: 19 - bit_size: 1 - - name: SECINCERR - description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR." - bit_offset: 20 - bit_size: 1 + - name: SECBSY + description: "busy flag\r BSY flag indicates that a FLASH memory is busy by an operation (write, erase, option byte change, OBK operations, PUF operation). It is set at the beginning of a Flash memory operation and cleared when the operation finishes or an error occurs." + bit_offset: 0 + bit_size: 1 + - name: SECWBNE + description: "write buffer not empty flag\r WBNE flag is set when the embedded Flash memory is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_SECCR\r the embedded Flash memory detects an error that involves data loss\r This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." + bit_offset: 1 + bit_size: 1 + - name: SECDBNE + description: "data buffer not empty flag\r DBNE flag is set when the embedded Flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." + bit_offset: 3 + bit_size: 1 + - name: SECEOP + description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register." + bit_offset: 16 + bit_size: 1 + - name: SECWRPERR + description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR." + bit_offset: 17 + bit_size: 1 + - name: SECPGSERR + description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR." + bit_offset: 18 + bit_size: 1 + - name: SECSTRBERR + description: "strobe error flag\r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR." + bit_offset: 19 + bit_size: 1 + - name: SECINCERR + description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR." + bit_offset: 20 + bit_size: 1 fieldset/WRP: description: FLASH write sector protection for Bank2 fields: - - name: WRPSG - description: "Bank2 sector protection option status byte\r Setting WRPSG2 bits to 0 write protects the corresponding sectors in bank 2 (0: write protected; 1: not write protected)" - bit_offset: 0 - bit_size: 8 + - name: WRPSG + description: "Bank2 sector protection option status byte\r Setting WRPSG2 bits to 0 write protects the corresponding sectors in bank 2 (0: write protected; 1: not write protected)" + bit_offset: 0 + bit_size: 8 enum/BKSEL: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 is selected for Bank erase / sector erase / interrupt enable - value: 0 - - name: B_0x1 - description: Bank2 is selected for BER / SER - value: 1 + - name: B_0x0 + description: Bank1 is selected for Bank erase / sector erase / interrupt enable + value: 0 + - name: B_0x1 + description: Bank2 is selected for BER / SER + value: 1 enum/CODE_OP: bit_size: 3 variants: - - name: B_0x0 - description: No Flash operation on going during previous reset - value: 0 - - name: B_0x1 - description: Single write operation interrupted - value: 1 - - name: B_0x3 - description: Sector erase operation interrupted - value: 3 - - name: B_0x4 - description: Bank erase operation interrupted - value: 4 - - name: B_0x5 - description: Mass erase operation interrupted - value: 5 - - name: B_0x6 - description: Option change operation interrupted - value: 6 + - name: B_0x0 + description: No Flash operation on going during previous reset + value: 0 + - name: B_0x1 + description: Single write operation interrupted + value: 1 + - name: B_0x3 + description: Sector erase operation interrupted + value: 3 + - name: B_0x4 + description: Bank erase operation interrupted + value: 4 + - name: B_0x5 + description: Mass erase operation interrupted + value: 5 + - name: B_0x6 + description: Option change operation interrupted + value: 6 enum/NSBOOTR_NSBOOT_LOCK: bit_size: 8 variants: - - name: B_0xB4 - description: The NSBOOTADD and SWAP_BANK are frozen. - value: 180 - - name: B_0xC3 - description: The SWAP_BANK and NSBOOTADD can still be modified following their individual rules. - value: 195 + - name: B_0xB4 + description: The NSBOOTADD and SWAP_BANK are frozen. + value: 180 + - name: B_0xC3 + description: The SWAP_BANK and NSBOOTADD can still be modified following their individual rules. + value: 195 enum/NSPRIV: bit_size: 1 variants: - - name: B_0x0 - description: access to non secure registers is always granted - value: 0 - - name: B_0x1 - description: access to non secure registers is denied in case of non privileged access. - value: 1 + - name: B_0x0 + description: access to non secure registers is always granted + value: 0 + - name: B_0x1 + description: access to non secure registers is denied in case of non privileged access. + value: 1 enum/OPTCR_SWAP_BANK: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 and Bank2 not swapped - value: 0 - - name: B_0x1 - description: Bank1 and Bank2 swapped - value: 1 + - name: B_0x0 + description: Bank1 and Bank2 not swapped + value: 0 + - name: B_0x1 + description: Bank1 and Bank2 swapped + value: 1 enum/OPTSR_BKPRAM_ECC: bit_size: 1 variants: - - name: B_0x0 - description: BKPRAM ECC check enabled - value: 0 - - name: B_0x1 - description: BKPRAM ECC check disabled - value: 1 + - name: B_0x0 + description: BKPRAM ECC check enabled + value: 0 + - name: B_0x1 + description: BKPRAM ECC check disabled + value: 1 enum/OPTSR_BOR_LEV: bit_size: 2 variants: - - name: B_0x0 - description: "BOR OFF, POR/PDR reset threshold level is applied" - value: 0 - - name: B_0x1 - description: "BOR Level 1, the threshold level is low (around 2.1 V)" - value: 1 - - name: B_0x2 - description: "BOR Level 2, the threshold level is medium (around 2.4 V)" - value: 2 - - name: B_0x3 - description: "BOR Level 3, the threshold level is high (around 2.7 V)" - value: 3 + - name: B_0x0 + description: BOR OFF, POR/PDR reset threshold level is applied + value: 0 + - name: B_0x1 + description: BOR Level 1, the threshold level is low (around 2.1 V) + value: 1 + - name: B_0x2 + description: BOR Level 2, the threshold level is medium (around 2.4 V) + value: 2 + - name: B_0x3 + description: BOR Level 3, the threshold level is high (around 2.7 V) + value: 3 enum/OPTSR_IO_VDDIO_HSLV: bit_size: 1 variants: - - name: B_0x0 - description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.5 V) - value: 0 - - name: B_0x1 - description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.5 V) - value: 1 + - name: B_0x0 + description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.5 V) + value: 0 + - name: B_0x1 + description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.5 V) + value: 1 enum/OPTSR_IO_VDD_HSLV: bit_size: 1 variants: - - name: B_0x0 - description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.5 V) - value: 0 - - name: B_0x1 - description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.5 V) - value: 1 + - name: B_0x0 + description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.5 V) + value: 0 + - name: B_0x1 + description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.5 V) + value: 1 enum/OPTSR_IWDG_STDBY: bit_size: 1 variants: - - name: B_0x0 - description: Independent watchdog frozen in Standby mode - value: 0 - - name: B_0x1 - description: Independent watchdog keep running in Standby mode. - value: 1 + - name: B_0x0 + description: Independent watchdog frozen in Standby mode + value: 0 + - name: B_0x1 + description: Independent watchdog keep running in Standby mode. + value: 1 enum/OPTSR_IWDG_STOP: bit_size: 1 variants: - - name: B_0x0 - description: Independent watchdog frozen in system Stop mode - value: 0 - - name: B_0x1 - description: Independent watchdog keep running in system Stop mode. - value: 1 + - name: B_0x0 + description: Independent watchdog frozen in system Stop mode + value: 0 + - name: B_0x1 + description: Independent watchdog keep running in system Stop mode. + value: 1 enum/OPTSR_IWDG_SW: bit_size: 1 variants: - - name: B_0x0 - description: IWDG watchdog is controlled by hardware - value: 0 - - name: B_0x1 - description: IWDG watchdog is controlled by software - value: 1 + - name: B_0x0 + description: IWDG watchdog is controlled by hardware + value: 0 + - name: B_0x1 + description: IWDG watchdog is controlled by software + value: 1 enum/OPTSR_NRST_SHDW: bit_size: 1 variants: - - name: B_0x0 - description: a reset is generated when entering Shutdown mode on core domain - value: 0 - - name: B_0x1 - description: no reset generated when entering Shutdown mode on core domain. - value: 1 + - name: B_0x0 + description: a reset is generated when entering Shutdown mode on core domain + value: 0 + - name: B_0x1 + description: no reset generated when entering Shutdown mode on core domain. + value: 1 enum/OPTSR_NRST_STDBY: bit_size: 1 variants: - - name: B_0x0 - description: a reset is generated when entering Standby mode on core domain - value: 0 - - name: B_0x1 - description: no reset generated when entering Standby mode on core domain. - value: 1 + - name: B_0x0 + description: a reset is generated when entering Standby mode on core domain + value: 0 + - name: B_0x1 + description: no reset generated when entering Standby mode on core domain. + value: 1 enum/OPTSR_NRST_STOP: bit_size: 1 variants: - - name: B_0x0 - description: a reset is generated when entering Stop mode on core domain - value: 0 - - name: B_0x1 - description: no reset generated when entering Stop mode on core domain. - value: 1 + - name: B_0x0 + description: a reset is generated when entering Stop mode on core domain + value: 0 + - name: B_0x1 + description: no reset generated when entering Stop mode on core domain. + value: 1 enum/OPTSR_SRAM_ECC: bit_size: 1 variants: - - name: B_0x0 - description: SRAM2 ECC check enabled - value: 0 - - name: B_0x1 - description: SRAM2 ECC check disabled - value: 1 + - name: B_0x0 + description: SRAM2 ECC check enabled + value: 0 + - name: B_0x1 + description: SRAM2 ECC check disabled + value: 1 enum/OPTSR_SWAP_BANK: bit_size: 1 variants: - - name: B_0x0 - description: Bank1 and Bank2 not swapped - value: 0 - - name: B_0x1 - description: Bank1 and Bank2 swapped - value: 1 + - name: B_0x0 + description: Bank1 and Bank2 not swapped + value: 0 + - name: B_0x1 + description: Bank1 and Bank2 swapped + value: 1 enum/OPTSR_WWDG_SW: bit_size: 1 variants: - - name: B_0x0 - description: WWDG watchdog is controlled by hardware - value: 0 - - name: B_0x1 - description: WWDG watchdog is controlled by software - value: 1 + - name: B_0x0 + description: WWDG watchdog is controlled by hardware + value: 0 + - name: B_0x1 + description: WWDG watchdog is controlled by software + value: 1 enum/PRIVBB: bit_size: 8 variants: - - name: B_0x0 - description: sectors y in bank 1 is non privileged - value: 0 - - name: B_0x1 - description: sector y in bank 1 is privileged - value: 1 + - name: B_0x0 + description: sectors y in bank 1 is non privileged + value: 0 + - name: B_0x1 + description: sector y in bank 1 is privileged + value: 1 diff --git a/data/registers/flash_h7.yaml b/data/registers/flash_h7.yaml index c5cdd3b..ae442bc 100644 --- a/data/registers/flash_h7.yaml +++ b/data/registers/flash_h7.yaml @@ -1,649 +1,648 @@ ---- block/BANK: - description: "Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R" + description: Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R items: - - name: KEYR - description: FLASH key register for bank 1 - byte_offset: 0 - access: Write - fieldset: KEYR - - name: CR - description: FLASH control register for bank 1 - byte_offset: 8 - fieldset: CR - - name: SR - description: FLASH status register for bank 1 - byte_offset: 12 - fieldset: SR - - name: CCR - description: FLASH clear control register for bank 1 - byte_offset: 16 - fieldset: CCR - - name: PRAR_CUR - description: FLASH protection address for bank 1 - byte_offset: 36 - access: Read - fieldset: PRAR_CUR - - name: PRAR_PRG - description: FLASH protection address for bank 1 - byte_offset: 40 - fieldset: PRAR_PRG - - name: SCAR_CUR - description: FLASH secure address for bank 1 - byte_offset: 44 - fieldset: SCAR_CUR - - name: SCAR_PRG - description: FLASH secure address for bank 1 - byte_offset: 48 - fieldset: SCAR_PRG - - name: WPSN_CURR - description: FLASH write sector protection for bank 1 - byte_offset: 52 - access: Read - fieldset: WPSN_CURR - - name: WPSN_PRGR - description: FLASH write sector protection for bank 1 - byte_offset: 56 - fieldset: WPSN_PRGR - - name: CRCCR - description: FLASH CRC control register for bank 1 - byte_offset: 76 - fieldset: CRCCR - - name: CRCSADDR - description: FLASH CRC start address register for bank 1 - byte_offset: 80 - fieldset: CRCSADDR - - name: CRCEADDR - description: FLASH CRC end address register for bank 1 - byte_offset: 84 - fieldset: CRCEADDR - - name: FAR - description: FLASH ECC fail address for bank 1 - byte_offset: 92 - access: Read - fieldset: FAR + - name: KEYR + description: FLASH key register for bank 1 + byte_offset: 0 + access: Write + fieldset: KEYR + - name: CR + description: FLASH control register for bank 1 + byte_offset: 8 + fieldset: CR + - name: SR + description: FLASH status register for bank 1 + byte_offset: 12 + fieldset: SR + - name: CCR + description: FLASH clear control register for bank 1 + byte_offset: 16 + fieldset: CCR + - name: PRAR_CUR + description: FLASH protection address for bank 1 + byte_offset: 36 + access: Read + fieldset: PRAR_CUR + - name: PRAR_PRG + description: FLASH protection address for bank 1 + byte_offset: 40 + fieldset: PRAR_PRG + - name: SCAR_CUR + description: FLASH secure address for bank 1 + byte_offset: 44 + fieldset: SCAR_CUR + - name: SCAR_PRG + description: FLASH secure address for bank 1 + byte_offset: 48 + fieldset: SCAR_PRG + - name: WPSN_CURR + description: FLASH write sector protection for bank 1 + byte_offset: 52 + access: Read + fieldset: WPSN_CURR + - name: WPSN_PRGR + description: FLASH write sector protection for bank 1 + byte_offset: 56 + fieldset: WPSN_PRGR + - name: CRCCR + description: FLASH CRC control register for bank 1 + byte_offset: 76 + fieldset: CRCCR + - name: CRCSADDR + description: FLASH CRC start address register for bank 1 + byte_offset: 80 + fieldset: CRCSADDR + - name: CRCEADDR + description: FLASH CRC end address register for bank 1 + byte_offset: 84 + fieldset: CRCEADDR + - name: FAR + description: FLASH ECC fail address for bank 1 + byte_offset: 92 + access: Read + fieldset: FAR block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: BANK - description: "Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R" - array: - len: 2 - stride: 256 - byte_offset: 4 - block: BANK - - name: OPTKEYR - description: FLASH option key register - byte_offset: 8 - fieldset: OPTKEYR - - name: OPTCR - description: FLASH option control register - byte_offset: 24 - fieldset: OPTCR - - name: OPTSR_CUR - description: FLASH option status register - byte_offset: 28 - fieldset: OPTSR_CUR - - name: OPTSR_PRG - description: FLASH option status register - byte_offset: 32 - fieldset: OPTSR_PRG - - name: OPTCCR - description: FLASH option clear control register - byte_offset: 36 - access: Write - fieldset: OPTCCR - - name: BOOT_CURR - description: FLASH register with boot address - byte_offset: 64 - access: Read - fieldset: BOOT_CURR - - name: BOOT_PRGR - description: FLASH register with boot address - byte_offset: 68 - fieldset: BOOT_PRGR - - name: CRCDATAR - description: FLASH CRC data register - byte_offset: 92 - fieldset: CRCDATAR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: BANK + description: Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R + array: + len: 2 + stride: 256 + byte_offset: 4 + block: BANK + - name: OPTKEYR + description: FLASH option key register + byte_offset: 8 + fieldset: OPTKEYR + - name: OPTCR + description: FLASH option control register + byte_offset: 24 + fieldset: OPTCR + - name: OPTSR_CUR + description: FLASH option status register + byte_offset: 28 + fieldset: OPTSR_CUR + - name: OPTSR_PRG + description: FLASH option status register + byte_offset: 32 + fieldset: OPTSR_PRG + - name: OPTCCR + description: FLASH option clear control register + byte_offset: 36 + access: Write + fieldset: OPTCCR + - name: BOOT_CURR + description: FLASH register with boot address + byte_offset: 64 + access: Read + fieldset: BOOT_CURR + - name: BOOT_PRGR + description: FLASH register with boot address + byte_offset: 68 + fieldset: BOOT_PRGR + - name: CRCDATAR + description: FLASH CRC data register + byte_offset: 92 + fieldset: CRCDATAR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Read latency - bit_offset: 0 - bit_size: 3 - - name: WRHIGHFREQ - description: Flash signal delay - bit_offset: 4 - bit_size: 2 + - name: LATENCY + description: Read latency + bit_offset: 0 + bit_size: 3 + - name: WRHIGHFREQ + description: Flash signal delay + bit_offset: 4 + bit_size: 2 fieldset/BOOT_CURR: description: FLASH register with boot address fields: - - name: BOOT_ADD0 - description: Boot address 0 - bit_offset: 0 - bit_size: 16 - - name: BOOT_ADD1 - description: Boot address 1 - bit_offset: 16 - bit_size: 16 + - name: BOOT_ADD0 + description: Boot address 0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot address 1 + bit_offset: 16 + bit_size: 16 fieldset/BOOT_PRGR: description: FLASH register with boot address fields: - - name: BOOT_ADD0 - description: Boot address 0 - bit_offset: 0 - bit_size: 16 - - name: BOOT_ADD1 - description: Boot address 1 - bit_offset: 16 - bit_size: 16 + - name: BOOT_ADD0 + description: Boot address 0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot address 1 + bit_offset: 16 + bit_size: 16 fieldset/CCR: description: FLASH clear control register for bank 1 fields: - - name: CLR_EOP - description: Bank 1 EOP1 flag clear bit - bit_offset: 16 - bit_size: 1 - - name: CLR_WRPERR - description: Bank 1 WRPERR1 flag clear bit - bit_offset: 17 - bit_size: 1 - - name: CLR_PGSERR - description: Bank 1 PGSERR1 flag clear bi - bit_offset: 18 - bit_size: 1 - - name: CLR_STRBERR - description: Bank 1 STRBERR1 flag clear bit - bit_offset: 19 - bit_size: 1 - - name: CLR_INCERR - description: Bank 1 INCERR1 flag clear bit - bit_offset: 21 - bit_size: 1 - - name: CLR_OPERR - description: Bank 1 OPERR1 flag clear bit - bit_offset: 22 - bit_size: 1 - - name: CLR_RDPERR - description: Bank 1 RDPERR1 flag clear bit - bit_offset: 23 - bit_size: 1 - - name: CLR_RDSERR - description: Bank 1 RDSERR1 flag clear bit - bit_offset: 24 - bit_size: 1 - - name: CLR_SNECCERR - description: Bank 1 SNECCERR1 flag clear bit - bit_offset: 25 - bit_size: 1 - - name: CLR_DBECCERR - description: Bank 1 DBECCERR1 flag clear bit - bit_offset: 26 - bit_size: 1 - - name: CLR_CRCEND - description: Bank 1 CRCEND1 flag clear bit - bit_offset: 27 - bit_size: 1 - - name: CLR_CRCRDERR - description: Bank 1 CRC read error clear bit - bit_offset: 28 - bit_size: 1 + - name: CLR_EOP + description: Bank 1 EOP1 flag clear bit + bit_offset: 16 + bit_size: 1 + - name: CLR_WRPERR + description: Bank 1 WRPERR1 flag clear bit + bit_offset: 17 + bit_size: 1 + - name: CLR_PGSERR + description: Bank 1 PGSERR1 flag clear bi + bit_offset: 18 + bit_size: 1 + - name: CLR_STRBERR + description: Bank 1 STRBERR1 flag clear bit + bit_offset: 19 + bit_size: 1 + - name: CLR_INCERR + description: Bank 1 INCERR1 flag clear bit + bit_offset: 21 + bit_size: 1 + - name: CLR_OPERR + description: Bank 1 OPERR1 flag clear bit + bit_offset: 22 + bit_size: 1 + - name: CLR_RDPERR + description: Bank 1 RDPERR1 flag clear bit + bit_offset: 23 + bit_size: 1 + - name: CLR_RDSERR + description: Bank 1 RDSERR1 flag clear bit + bit_offset: 24 + bit_size: 1 + - name: CLR_SNECCERR + description: Bank 1 SNECCERR1 flag clear bit + bit_offset: 25 + bit_size: 1 + - name: CLR_DBECCERR + description: Bank 1 DBECCERR1 flag clear bit + bit_offset: 26 + bit_size: 1 + - name: CLR_CRCEND + description: Bank 1 CRCEND1 flag clear bit + bit_offset: 27 + bit_size: 1 + - name: CLR_CRCRDERR + description: Bank 1 CRC read error clear bit + bit_offset: 28 + bit_size: 1 fieldset/CR: description: FLASH control register for bank 1 fields: - - name: LOCK - description: Bank 1 configuration lock bit - bit_offset: 0 - bit_size: 1 - - name: PG - description: Bank 1 program enable bit - bit_offset: 1 - bit_size: 1 - - name: SER - description: Bank 1 sector erase request - bit_offset: 2 - bit_size: 1 - - name: BER - description: Bank 1 erase request - bit_offset: 3 - bit_size: 1 - - name: PSIZE - description: Bank 1 program size - bit_offset: 4 - bit_size: 2 - - name: FW - description: Bank 1 write forcing control bit - bit_offset: 6 - bit_size: 1 - - name: START - description: Bank 1 bank or sector erase start control bit - bit_offset: 7 - bit_size: 1 - - name: SNB - description: Bank 1 sector erase selection number - bit_offset: 8 - bit_size: 3 - - name: CRC_EN - description: Bank 1 CRC control bit - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: Bank 1 end-of-program interrupt control bit - bit_offset: 16 - bit_size: 1 - - name: WRPERRIE - description: Bank 1 write protection error interrupt enable bit - bit_offset: 17 - bit_size: 1 - - name: PGSERRIE - description: Bank 1 programming sequence error interrupt enable bit - bit_offset: 18 - bit_size: 1 - - name: STRBERRIE - description: Bank 1 strobe error interrupt enable bit - bit_offset: 19 - bit_size: 1 - - name: INCERRIE - description: Bank 1 inconsistency error interrupt enable bit - bit_offset: 21 - bit_size: 1 - - name: OPERRIE - description: Bank 1 write/erase error interrupt enable bit - bit_offset: 22 - bit_size: 1 - - name: RDPERRIE - description: Bank 1 read protection error interrupt enable bit - bit_offset: 23 - bit_size: 1 - - name: RDSERRIE - description: Bank 1 secure error interrupt enable bit - bit_offset: 24 - bit_size: 1 - - name: SNECCERRIE - description: Bank 1 ECC single correction error interrupt enable bit - bit_offset: 25 - bit_size: 1 - - name: DBECCERRIE - description: Bank 1 ECC double detection error interrupt enable bit - bit_offset: 26 - bit_size: 1 - - name: CRCENDIE - description: Bank 1 end of CRC calculation interrupt enable bit - bit_offset: 27 - bit_size: 1 - - name: CRCRDERRIE - description: Bank 1 CRC read error interrupt enable bit - bit_offset: 28 - bit_size: 1 + - name: LOCK + description: Bank 1 configuration lock bit + bit_offset: 0 + bit_size: 1 + - name: PG + description: Bank 1 program enable bit + bit_offset: 1 + bit_size: 1 + - name: SER + description: Bank 1 sector erase request + bit_offset: 2 + bit_size: 1 + - name: BER + description: Bank 1 erase request + bit_offset: 3 + bit_size: 1 + - name: PSIZE + description: Bank 1 program size + bit_offset: 4 + bit_size: 2 + - name: FW + description: Bank 1 write forcing control bit + bit_offset: 6 + bit_size: 1 + - name: START + description: Bank 1 bank or sector erase start control bit + bit_offset: 7 + bit_size: 1 + - name: SNB + description: Bank 1 sector erase selection number + bit_offset: 8 + bit_size: 3 + - name: CRC_EN + description: Bank 1 CRC control bit + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: Bank 1 end-of-program interrupt control bit + bit_offset: 16 + bit_size: 1 + - name: WRPERRIE + description: Bank 1 write protection error interrupt enable bit + bit_offset: 17 + bit_size: 1 + - name: PGSERRIE + description: Bank 1 programming sequence error interrupt enable bit + bit_offset: 18 + bit_size: 1 + - name: STRBERRIE + description: Bank 1 strobe error interrupt enable bit + bit_offset: 19 + bit_size: 1 + - name: INCERRIE + description: Bank 1 inconsistency error interrupt enable bit + bit_offset: 21 + bit_size: 1 + - name: OPERRIE + description: Bank 1 write/erase error interrupt enable bit + bit_offset: 22 + bit_size: 1 + - name: RDPERRIE + description: Bank 1 read protection error interrupt enable bit + bit_offset: 23 + bit_size: 1 + - name: RDSERRIE + description: Bank 1 secure error interrupt enable bit + bit_offset: 24 + bit_size: 1 + - name: SNECCERRIE + description: Bank 1 ECC single correction error interrupt enable bit + bit_offset: 25 + bit_size: 1 + - name: DBECCERRIE + description: Bank 1 ECC double detection error interrupt enable bit + bit_offset: 26 + bit_size: 1 + - name: CRCENDIE + description: Bank 1 end of CRC calculation interrupt enable bit + bit_offset: 27 + bit_size: 1 + - name: CRCRDERRIE + description: Bank 1 CRC read error interrupt enable bit + bit_offset: 28 + bit_size: 1 fieldset/CRCCR: description: FLASH CRC control register for bank 1 fields: - - name: CRC_SECT - description: Bank 1 CRC sector number - bit_offset: 0 - bit_size: 3 - - name: ALL_BANK - description: Bank 1 CRC select bit - bit_offset: 7 - bit_size: 1 - - name: CRC_BY_SECT - description: Bank 1 CRC sector mode select bit - bit_offset: 8 - bit_size: 1 - - name: ADD_SECT - description: Bank 1 CRC sector select bit - bit_offset: 9 - bit_size: 1 - - name: CLEAN_SECT - description: Bank 1 CRC sector list clear bit - bit_offset: 10 - bit_size: 1 - - name: START_CRC - description: Bank 1 CRC start bit - bit_offset: 16 - bit_size: 1 - - name: CLEAN_CRC - description: Bank 1 CRC clear bit - bit_offset: 17 - bit_size: 1 - - name: CRC_BURST - description: Bank 1 CRC burst size - bit_offset: 20 - bit_size: 2 + - name: CRC_SECT + description: Bank 1 CRC sector number + bit_offset: 0 + bit_size: 3 + - name: ALL_BANK + description: Bank 1 CRC select bit + bit_offset: 7 + bit_size: 1 + - name: CRC_BY_SECT + description: Bank 1 CRC sector mode select bit + bit_offset: 8 + bit_size: 1 + - name: ADD_SECT + description: Bank 1 CRC sector select bit + bit_offset: 9 + bit_size: 1 + - name: CLEAN_SECT + description: Bank 1 CRC sector list clear bit + bit_offset: 10 + bit_size: 1 + - name: START_CRC + description: Bank 1 CRC start bit + bit_offset: 16 + bit_size: 1 + - name: CLEAN_CRC + description: Bank 1 CRC clear bit + bit_offset: 17 + bit_size: 1 + - name: CRC_BURST + description: Bank 1 CRC burst size + bit_offset: 20 + bit_size: 2 fieldset/CRCDATAR: description: FLASH CRC data register fields: - - name: CRC_DATA - description: CRC result - bit_offset: 0 - bit_size: 32 + - name: CRC_DATA + description: CRC result + bit_offset: 0 + bit_size: 32 fieldset/CRCEADDR: description: FLASH CRC end address register for bank 1 fields: - - name: CRC_END_ADDR - description: CRC end address on bank 1 - bit_offset: 0 - bit_size: 32 + - name: CRC_END_ADDR + description: CRC end address on bank 1 + bit_offset: 0 + bit_size: 32 fieldset/CRCSADDR: description: FLASH CRC start address register for bank 1 fields: - - name: CRC_START_ADDR - description: CRC start address on bank 1 - bit_offset: 0 - bit_size: 32 + - name: CRC_START_ADDR + description: CRC start address on bank 1 + bit_offset: 0 + bit_size: 32 fieldset/FAR: description: FLASH ECC fail address for bank 1 fields: - - name: FAIL_ECC_ADDR - description: Bank 1 ECC error address - bit_offset: 0 - bit_size: 15 + - name: FAIL_ECC_ADDR + description: Bank 1 ECC error address + bit_offset: 0 + bit_size: 15 fieldset/KEYR: description: FLASH key register for bank 1 fields: - - name: KEYR - description: Bank 1 access configuration unlock key - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: Bank 1 access configuration unlock key + bit_offset: 0 + bit_size: 32 fieldset/OPTCCR: description: FLASH option clear control register fields: - - name: CLR_OPTCHANGEERR - description: OPTCHANGEERR reset bit - bit_offset: 30 - bit_size: 1 + - name: CLR_OPTCHANGEERR + description: OPTCHANGEERR reset bit + bit_offset: 30 + bit_size: 1 fieldset/OPTCR: description: FLASH option control register fields: - - name: OPTLOCK - description: FLASH_OPTCR lock option configuration bit - bit_offset: 0 - bit_size: 1 - - name: OPTSTART - description: Option byte start change option configuration bit - bit_offset: 1 - bit_size: 1 - - name: MER - description: Flash mass erase enable bit - bit_offset: 4 - bit_size: 1 - - name: OPTCHANGEERRIE - description: Option byte change error interrupt enable bit - bit_offset: 30 - bit_size: 1 - - name: SWAP_BANK - description: Bank swapping configuration bit - bit_offset: 31 - bit_size: 1 + - name: OPTLOCK + description: FLASH_OPTCR lock option configuration bit + bit_offset: 0 + bit_size: 1 + - name: OPTSTART + description: Option byte start change option configuration bit + bit_offset: 1 + bit_size: 1 + - name: MER + description: Flash mass erase enable bit + bit_offset: 4 + bit_size: 1 + - name: OPTCHANGEERRIE + description: Option byte change error interrupt enable bit + bit_offset: 30 + bit_size: 1 + - name: SWAP_BANK + description: Bank swapping configuration bit + bit_offset: 31 + bit_size: 1 fieldset/OPTKEYR: description: FLASH option key register fields: - - name: OPTKEYR - description: Unlock key option bytes - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Unlock key option bytes + bit_offset: 0 + bit_size: 32 fieldset/OPTSR_CUR: description: FLASH option status register fields: - - name: OPT_BUSY - description: Option byte change ongoing flag - bit_offset: 0 - bit_size: 1 - - name: BOR_LEV - description: Brownout level option status bit - bit_offset: 2 - bit_size: 2 - - name: IWDG1_HW - description: IWDG1 control option status bit - bit_offset: 4 - bit_size: 1 - - name: nRST_STOP_D1 - description: D1 DStop entry reset option status bit - bit_offset: 6 - bit_size: 1 - - name: nRST_STBY_D1 - description: D1 DStandby entry reset option status bit - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Readout protection level option status byte - bit_offset: 8 - bit_size: 8 - - name: FZ_IWDG_STOP - description: IWDG Stop mode freeze option status bit - bit_offset: 17 - bit_size: 1 - - name: FZ_IWDG_SDBY - description: IWDG Standby mode freeze option status bit - bit_offset: 18 - bit_size: 1 - - name: ST_RAM_SIZE - description: DTCM RAM size option status - bit_offset: 19 - bit_size: 2 - - name: SECURITY - description: Security enable option status bit - bit_offset: 21 - bit_size: 1 - - name: RSS1 - description: User option bit 1 - bit_offset: 26 - bit_size: 1 - - name: PERSO_OK - description: Device personalization status bit - bit_offset: 28 - bit_size: 1 - - name: IO_HSLV - description: I/O high-speed at low-voltage status bit (PRODUCT_BELOW_25V) - bit_offset: 29 - bit_size: 1 - - name: OPTCHANGEERR - description: Option byte change error flag - bit_offset: 30 - bit_size: 1 - - name: SWAP_BANK_OPT - description: Bank swapping option status bit - bit_offset: 31 - bit_size: 1 + - name: OPT_BUSY + description: Option byte change ongoing flag + bit_offset: 0 + bit_size: 1 + - name: BOR_LEV + description: Brownout level option status bit + bit_offset: 2 + bit_size: 2 + - name: IWDG1_HW + description: IWDG1 control option status bit + bit_offset: 4 + bit_size: 1 + - name: nRST_STOP_D1 + description: D1 DStop entry reset option status bit + bit_offset: 6 + bit_size: 1 + - name: nRST_STBY_D1 + description: D1 DStandby entry reset option status bit + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Readout protection level option status byte + bit_offset: 8 + bit_size: 8 + - name: FZ_IWDG_STOP + description: IWDG Stop mode freeze option status bit + bit_offset: 17 + bit_size: 1 + - name: FZ_IWDG_SDBY + description: IWDG Standby mode freeze option status bit + bit_offset: 18 + bit_size: 1 + - name: ST_RAM_SIZE + description: DTCM RAM size option status + bit_offset: 19 + bit_size: 2 + - name: SECURITY + description: Security enable option status bit + bit_offset: 21 + bit_size: 1 + - name: RSS1 + description: User option bit 1 + bit_offset: 26 + bit_size: 1 + - name: PERSO_OK + description: Device personalization status bit + bit_offset: 28 + bit_size: 1 + - name: IO_HSLV + description: I/O high-speed at low-voltage status bit (PRODUCT_BELOW_25V) + bit_offset: 29 + bit_size: 1 + - name: OPTCHANGEERR + description: Option byte change error flag + bit_offset: 30 + bit_size: 1 + - name: SWAP_BANK_OPT + description: Bank swapping option status bit + bit_offset: 31 + bit_size: 1 fieldset/OPTSR_PRG: description: FLASH option status register fields: - - name: BOR_LEV - description: BOR reset level option configuration bits - bit_offset: 2 - bit_size: 2 - - name: IWDG1_HW - description: IWDG1 option configuration bit - bit_offset: 4 - bit_size: 1 - - name: nRST_STOP_D1 - description: Option byte erase after D1 DStop option configuration bit - bit_offset: 6 - bit_size: 1 - - name: nRST_STBY_D1 - description: Option byte erase after D1 DStandby option configuration bit - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Readout protection level option configuration byte - bit_offset: 8 - bit_size: 8 - - name: FZ_IWDG_STOP - description: IWDG Stop mode freeze option configuration bit - bit_offset: 17 - bit_size: 1 - - name: FZ_IWDG_SDBY - description: IWDG Standby mode freeze option configuration bit - bit_offset: 18 - bit_size: 1 - - name: ST_RAM_SIZE - description: DTCM size select option configuration bits - bit_offset: 19 - bit_size: 2 - - name: SECURITY - description: Security option configuration bit - bit_offset: 21 - bit_size: 1 - - name: RSS1 - description: User option configuration bit 1 - bit_offset: 26 - bit_size: 1 - - name: RSS2 - description: User option configuration bit 2 - bit_offset: 27 - bit_size: 1 - - name: IO_HSLV - description: I/O high-speed at low-voltage (PRODUCT_BELOW_25V) - bit_offset: 29 - bit_size: 1 - - name: SWAP_BANK_OPT - description: Bank swapping option configuration bit - bit_offset: 31 - bit_size: 1 + - name: BOR_LEV + description: BOR reset level option configuration bits + bit_offset: 2 + bit_size: 2 + - name: IWDG1_HW + description: IWDG1 option configuration bit + bit_offset: 4 + bit_size: 1 + - name: nRST_STOP_D1 + description: Option byte erase after D1 DStop option configuration bit + bit_offset: 6 + bit_size: 1 + - name: nRST_STBY_D1 + description: Option byte erase after D1 DStandby option configuration bit + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Readout protection level option configuration byte + bit_offset: 8 + bit_size: 8 + - name: FZ_IWDG_STOP + description: IWDG Stop mode freeze option configuration bit + bit_offset: 17 + bit_size: 1 + - name: FZ_IWDG_SDBY + description: IWDG Standby mode freeze option configuration bit + bit_offset: 18 + bit_size: 1 + - name: ST_RAM_SIZE + description: DTCM size select option configuration bits + bit_offset: 19 + bit_size: 2 + - name: SECURITY + description: Security option configuration bit + bit_offset: 21 + bit_size: 1 + - name: RSS1 + description: User option configuration bit 1 + bit_offset: 26 + bit_size: 1 + - name: RSS2 + description: User option configuration bit 2 + bit_offset: 27 + bit_size: 1 + - name: IO_HSLV + description: I/O high-speed at low-voltage (PRODUCT_BELOW_25V) + bit_offset: 29 + bit_size: 1 + - name: SWAP_BANK_OPT + description: Bank swapping option configuration bit + bit_offset: 31 + bit_size: 1 fieldset/PRAR_CUR: description: FLASH protection address for bank 1 fields: - - name: PROT_AREA_START - description: Bank 1 lowest PCROP protected address - bit_offset: 0 - bit_size: 12 - - name: PROT_AREA_END - description: Bank 1 highest PCROP protected address - bit_offset: 16 - bit_size: 12 - - name: DMEP - description: Bank 1 PCROP protected erase enable option status bit - bit_offset: 31 - bit_size: 1 + - name: PROT_AREA_START + description: Bank 1 lowest PCROP protected address + bit_offset: 0 + bit_size: 12 + - name: PROT_AREA_END + description: Bank 1 highest PCROP protected address + bit_offset: 16 + bit_size: 12 + - name: DMEP + description: Bank 1 PCROP protected erase enable option status bit + bit_offset: 31 + bit_size: 1 fieldset/PRAR_PRG: description: FLASH protection address for bank 1 fields: - - name: PROT_AREA_START - description: Bank 1 lowest PCROP protected address configuration - bit_offset: 0 - bit_size: 12 - - name: PROT_AREA_END - description: Bank 1 highest PCROP protected address configuration - bit_offset: 16 - bit_size: 12 - - name: DMEP - description: Bank 1 PCROP protected erase enable option configuration bit - bit_offset: 31 - bit_size: 1 + - name: PROT_AREA_START + description: Bank 1 lowest PCROP protected address configuration + bit_offset: 0 + bit_size: 12 + - name: PROT_AREA_END + description: Bank 1 highest PCROP protected address configuration + bit_offset: 16 + bit_size: 12 + - name: DMEP + description: Bank 1 PCROP protected erase enable option configuration bit + bit_offset: 31 + bit_size: 1 fieldset/SCAR_CUR: description: FLASH secure address for bank 1 fields: - - name: SEC_AREA_START - description: Bank 1 lowest secure protected address - bit_offset: 0 - bit_size: 12 - - name: SEC_AREA_END - description: Bank 1 highest secure protected address - bit_offset: 16 - bit_size: 12 - - name: DMES - description: Bank 1 secure protected erase enable option status bit - bit_offset: 31 - bit_size: 1 + - name: SEC_AREA_START + description: Bank 1 lowest secure protected address + bit_offset: 0 + bit_size: 12 + - name: SEC_AREA_END + description: Bank 1 highest secure protected address + bit_offset: 16 + bit_size: 12 + - name: DMES + description: Bank 1 secure protected erase enable option status bit + bit_offset: 31 + bit_size: 1 fieldset/SCAR_PRG: description: FLASH secure address for bank 1 fields: - - name: SEC_AREA_START - description: Bank 1 lowest secure protected address configuration - bit_offset: 0 - bit_size: 12 - - name: SEC_AREA_END - description: Bank 1 highest secure protected address configuration - bit_offset: 16 - bit_size: 12 - - name: DMES - description: Bank 1 secure protected erase enable option configuration bit - bit_offset: 31 - bit_size: 1 + - name: SEC_AREA_START + description: Bank 1 lowest secure protected address configuration + bit_offset: 0 + bit_size: 12 + - name: SEC_AREA_END + description: Bank 1 highest secure protected address configuration + bit_offset: 16 + bit_size: 12 + - name: DMES + description: Bank 1 secure protected erase enable option configuration bit + bit_offset: 31 + bit_size: 1 fieldset/SR: description: FLASH status register for bank 1 fields: - - name: BSY - description: Bank 1 ongoing program flag - bit_offset: 0 - bit_size: 1 - - name: WBNE - description: Bank 1 write buffer not empty flag - bit_offset: 1 - bit_size: 1 - - name: QW - description: Bank 1 wait queue flag - bit_offset: 2 - bit_size: 1 - - name: CRC_BUSY - description: Bank 1 CRC busy flag - bit_offset: 3 - bit_size: 1 - - name: EOP - description: Bank 1 end-of-program flag - bit_offset: 16 - bit_size: 1 - - name: WRPERR - description: Bank 1 write protection error flag - bit_offset: 17 - bit_size: 1 - - name: PGSERR - description: Bank 1 programming sequence error flag - bit_offset: 18 - bit_size: 1 - - name: STRBERR - description: Bank 1 strobe error flag - bit_offset: 19 - bit_size: 1 - - name: INCERR - description: Bank 1 inconsistency error flag - bit_offset: 21 - bit_size: 1 - - name: OPERR - description: Bank 1 write/erase error flag - bit_offset: 22 - bit_size: 1 - - name: RDPERR - description: Bank 1 read protection error flag - bit_offset: 23 - bit_size: 1 - - name: RDSERR - description: Bank 1 secure error flag - bit_offset: 24 - bit_size: 1 - - name: SNECCERR1 - description: Bank 1 single correction error flag - bit_offset: 25 - bit_size: 1 - - name: DBECCERR - description: Bank 1 ECC double detection error flag - bit_offset: 26 - bit_size: 1 - - name: CRCEND - description: Bank 1 CRC-complete flag - bit_offset: 27 - bit_size: 1 - - name: CRCRDERR - description: Bank 1 CRC read error flag - bit_offset: 28 - bit_size: 1 + - name: BSY + description: Bank 1 ongoing program flag + bit_offset: 0 + bit_size: 1 + - name: WBNE + description: Bank 1 write buffer not empty flag + bit_offset: 1 + bit_size: 1 + - name: QW + description: Bank 1 wait queue flag + bit_offset: 2 + bit_size: 1 + - name: CRC_BUSY + description: Bank 1 CRC busy flag + bit_offset: 3 + bit_size: 1 + - name: EOP + description: Bank 1 end-of-program flag + bit_offset: 16 + bit_size: 1 + - name: WRPERR + description: Bank 1 write protection error flag + bit_offset: 17 + bit_size: 1 + - name: PGSERR + description: Bank 1 programming sequence error flag + bit_offset: 18 + bit_size: 1 + - name: STRBERR + description: Bank 1 strobe error flag + bit_offset: 19 + bit_size: 1 + - name: INCERR + description: Bank 1 inconsistency error flag + bit_offset: 21 + bit_size: 1 + - name: OPERR + description: Bank 1 write/erase error flag + bit_offset: 22 + bit_size: 1 + - name: RDPERR + description: Bank 1 read protection error flag + bit_offset: 23 + bit_size: 1 + - name: RDSERR + description: Bank 1 secure error flag + bit_offset: 24 + bit_size: 1 + - name: SNECCERR1 + description: Bank 1 single correction error flag + bit_offset: 25 + bit_size: 1 + - name: DBECCERR + description: Bank 1 ECC double detection error flag + bit_offset: 26 + bit_size: 1 + - name: CRCEND + description: Bank 1 CRC-complete flag + bit_offset: 27 + bit_size: 1 + - name: CRCRDERR + description: Bank 1 CRC read error flag + bit_offset: 28 + bit_size: 1 fieldset/WPSN_CURR: description: FLASH write sector protection for bank 1 fields: - - name: WRPSn - description: Bank 1 sector write protection option status byte - bit_offset: 0 - bit_size: 8 + - name: WRPSn + description: Bank 1 sector write protection option status byte + bit_offset: 0 + bit_size: 8 fieldset/WPSN_PRGR: description: FLASH write sector protection for bank 1 fields: - - name: WRPSn - description: Bank 1 sector write protection configuration byte - bit_offset: 0 - bit_size: 8 + - name: WRPSn + description: Bank 1 sector write protection configuration byte + bit_offset: 0 + bit_size: 8 diff --git a/data/registers/flash_h7ab.yaml b/data/registers/flash_h7ab.yaml index fe6e55a..8e3b000 100644 --- a/data/registers/flash_h7ab.yaml +++ b/data/registers/flash_h7ab.yaml @@ -1,649 +1,648 @@ ---- block/BANK: - description: "Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R" + description: Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R items: - - name: KEYR - description: FLASH key register for bank 1 - byte_offset: 0 - access: Write - fieldset: KEYR - - name: CR - description: FLASH control register for bank 1 - byte_offset: 8 - fieldset: CR - - name: SR - description: FLASH status register for bank 1 - byte_offset: 12 - fieldset: SR - - name: CCR - description: FLASH clear control register for bank 1 - byte_offset: 16 - fieldset: CCR - - name: PRAR_CUR - description: FLASH protection address for bank 1 - byte_offset: 36 - access: Read - fieldset: PRAR_CUR - - name: PRAR_PRG - description: FLASH protection address for bank 1 - byte_offset: 40 - fieldset: PRAR_PRG - - name: SCAR_CUR - description: FLASH secure address for bank 1 - byte_offset: 44 - fieldset: SCAR_CUR - - name: SCAR_PRG - description: FLASH secure address for bank 1 - byte_offset: 48 - fieldset: SCAR_PRG - - name: WPSN_CURR - description: FLASH write sector protection for bank 1 - byte_offset: 52 - access: Read - fieldset: WPSN_CURR - - name: WPSN_PRGR - description: FLASH write sector protection for bank 1 - byte_offset: 56 - fieldset: WPSN_PRGR - - name: CRCCR - description: FLASH CRC control register for bank 1 - byte_offset: 76 - fieldset: CRCCR - - name: CRCSADDR - description: FLASH CRC start address register for bank 1 - byte_offset: 80 - fieldset: CRCSADDR - - name: CRCEADDR - description: FLASH CRC end address register for bank 1 - byte_offset: 84 - fieldset: CRCEADDR - - name: FAR - description: FLASH ECC fail address for bank 1 - byte_offset: 92 - access: Read - fieldset: FAR + - name: KEYR + description: FLASH key register for bank 1 + byte_offset: 0 + access: Write + fieldset: KEYR + - name: CR + description: FLASH control register for bank 1 + byte_offset: 8 + fieldset: CR + - name: SR + description: FLASH status register for bank 1 + byte_offset: 12 + fieldset: SR + - name: CCR + description: FLASH clear control register for bank 1 + byte_offset: 16 + fieldset: CCR + - name: PRAR_CUR + description: FLASH protection address for bank 1 + byte_offset: 36 + access: Read + fieldset: PRAR_CUR + - name: PRAR_PRG + description: FLASH protection address for bank 1 + byte_offset: 40 + fieldset: PRAR_PRG + - name: SCAR_CUR + description: FLASH secure address for bank 1 + byte_offset: 44 + fieldset: SCAR_CUR + - name: SCAR_PRG + description: FLASH secure address for bank 1 + byte_offset: 48 + fieldset: SCAR_PRG + - name: WPSN_CURR + description: FLASH write sector protection for bank 1 + byte_offset: 52 + access: Read + fieldset: WPSN_CURR + - name: WPSN_PRGR + description: FLASH write sector protection for bank 1 + byte_offset: 56 + fieldset: WPSN_PRGR + - name: CRCCR + description: FLASH CRC control register for bank 1 + byte_offset: 76 + fieldset: CRCCR + - name: CRCSADDR + description: FLASH CRC start address register for bank 1 + byte_offset: 80 + fieldset: CRCSADDR + - name: CRCEADDR + description: FLASH CRC end address register for bank 1 + byte_offset: 84 + fieldset: CRCEADDR + - name: FAR + description: FLASH ECC fail address for bank 1 + byte_offset: 92 + access: Read + fieldset: FAR block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: BANK - description: "Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R" - array: - len: 2 - stride: 256 - byte_offset: 4 - block: BANK - - name: OPTKEYR - description: FLASH option key register - byte_offset: 8 - fieldset: OPTKEYR - - name: OPTCR - description: FLASH option control register - byte_offset: 24 - fieldset: OPTCR - - name: OPTSR_CUR - description: FLASH option status register - byte_offset: 28 - fieldset: OPTSR_CUR - - name: OPTSR_PRG - description: FLASH option status register - byte_offset: 32 - fieldset: OPTSR_PRG - - name: OPTCCR - description: FLASH option clear control register - byte_offset: 36 - access: Write - fieldset: OPTCCR - - name: BOOT_CURR - description: FLASH register with boot address - byte_offset: 64 - access: Read - fieldset: BOOT_CURR - - name: BOOT_PRGR - description: FLASH register with boot address - byte_offset: 68 - fieldset: BOOT_PRGR - - name: CRCDATAR - description: FLASH CRC data register - byte_offset: 92 - fieldset: CRCDATAR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: BANK + description: Cluster BANK%s, containing KEYR?, CR?, SR?, CCR?, PRAR_CUR?, PRAR_PRG?, SCAR_CUR?, SCAR_PRG?, WPSN_CUR?R, WPSN_PRG?R, CRCCR?, CRCSADD?R, CRCEADD?R, ECC_FA?R + array: + len: 2 + stride: 256 + byte_offset: 4 + block: BANK + - name: OPTKEYR + description: FLASH option key register + byte_offset: 8 + fieldset: OPTKEYR + - name: OPTCR + description: FLASH option control register + byte_offset: 24 + fieldset: OPTCR + - name: OPTSR_CUR + description: FLASH option status register + byte_offset: 28 + fieldset: OPTSR_CUR + - name: OPTSR_PRG + description: FLASH option status register + byte_offset: 32 + fieldset: OPTSR_PRG + - name: OPTCCR + description: FLASH option clear control register + byte_offset: 36 + access: Write + fieldset: OPTCCR + - name: BOOT_CURR + description: FLASH register with boot address + byte_offset: 64 + access: Read + fieldset: BOOT_CURR + - name: BOOT_PRGR + description: FLASH register with boot address + byte_offset: 68 + fieldset: BOOT_PRGR + - name: CRCDATAR + description: FLASH CRC data register + byte_offset: 92 + fieldset: CRCDATAR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Read latency - bit_offset: 0 - bit_size: 3 - - name: WRHIGHFREQ - description: Flash signal delay - bit_offset: 4 - bit_size: 2 + - name: LATENCY + description: Read latency + bit_offset: 0 + bit_size: 3 + - name: WRHIGHFREQ + description: Flash signal delay + bit_offset: 4 + bit_size: 2 fieldset/BOOT_CURR: description: FLASH register with boot address fields: - - name: BOOT_ADD0 - description: Boot address 0 - bit_offset: 0 - bit_size: 16 - - name: BOOT_ADD1 - description: Boot address 1 - bit_offset: 16 - bit_size: 16 + - name: BOOT_ADD0 + description: Boot address 0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot address 1 + bit_offset: 16 + bit_size: 16 fieldset/BOOT_PRGR: description: FLASH register with boot address fields: - - name: BOOT_ADD0 - description: Boot address 0 - bit_offset: 0 - bit_size: 16 - - name: BOOT_ADD1 - description: Boot address 1 - bit_offset: 16 - bit_size: 16 + - name: BOOT_ADD0 + description: Boot address 0 + bit_offset: 0 + bit_size: 16 + - name: BOOT_ADD1 + description: Boot address 1 + bit_offset: 16 + bit_size: 16 fieldset/CCR: description: FLASH clear control register for bank 1 fields: - - name: CLR_EOP - description: Bank 1 EOP1 flag clear bit - bit_offset: 16 - bit_size: 1 - - name: CLR_WRPERR - description: Bank 1 WRPERR1 flag clear bit - bit_offset: 17 - bit_size: 1 - - name: CLR_PGSERR - description: Bank 1 PGSERR1 flag clear bi - bit_offset: 18 - bit_size: 1 - - name: CLR_STRBERR - description: Bank 1 STRBERR1 flag clear bit - bit_offset: 19 - bit_size: 1 - - name: CLR_INCERR - description: Bank 1 INCERR1 flag clear bit - bit_offset: 21 - bit_size: 1 - - name: CLR_OPERR - description: Bank 1 OPERR1 flag clear bit - bit_offset: 22 - bit_size: 1 - - name: CLR_RDPERR - description: Bank 1 RDPERR1 flag clear bit - bit_offset: 23 - bit_size: 1 - - name: CLR_RDSERR - description: Bank 1 RDSERR1 flag clear bit - bit_offset: 24 - bit_size: 1 - - name: CLR_SNECCERR - description: Bank 1 SNECCERR1 flag clear bit - bit_offset: 25 - bit_size: 1 - - name: CLR_DBECCERR - description: Bank 1 DBECCERR1 flag clear bit - bit_offset: 26 - bit_size: 1 - - name: CLR_CRCEND - description: Bank 1 CRCEND1 flag clear bit - bit_offset: 27 - bit_size: 1 - - name: CLR_CRCRDERR - description: Bank 1 CRC read error clear bit - bit_offset: 28 - bit_size: 1 + - name: CLR_EOP + description: Bank 1 EOP1 flag clear bit + bit_offset: 16 + bit_size: 1 + - name: CLR_WRPERR + description: Bank 1 WRPERR1 flag clear bit + bit_offset: 17 + bit_size: 1 + - name: CLR_PGSERR + description: Bank 1 PGSERR1 flag clear bi + bit_offset: 18 + bit_size: 1 + - name: CLR_STRBERR + description: Bank 1 STRBERR1 flag clear bit + bit_offset: 19 + bit_size: 1 + - name: CLR_INCERR + description: Bank 1 INCERR1 flag clear bit + bit_offset: 21 + bit_size: 1 + - name: CLR_OPERR + description: Bank 1 OPERR1 flag clear bit + bit_offset: 22 + bit_size: 1 + - name: CLR_RDPERR + description: Bank 1 RDPERR1 flag clear bit + bit_offset: 23 + bit_size: 1 + - name: CLR_RDSERR + description: Bank 1 RDSERR1 flag clear bit + bit_offset: 24 + bit_size: 1 + - name: CLR_SNECCERR + description: Bank 1 SNECCERR1 flag clear bit + bit_offset: 25 + bit_size: 1 + - name: CLR_DBECCERR + description: Bank 1 DBECCERR1 flag clear bit + bit_offset: 26 + bit_size: 1 + - name: CLR_CRCEND + description: Bank 1 CRCEND1 flag clear bit + bit_offset: 27 + bit_size: 1 + - name: CLR_CRCRDERR + description: Bank 1 CRC read error clear bit + bit_offset: 28 + bit_size: 1 fieldset/CR: description: FLASH control register for bank 1 fields: - - name: LOCK - description: Bank 1 configuration lock bit - bit_offset: 0 - bit_size: 1 - - name: PG - description: Bank 1 program enable bit - bit_offset: 1 - bit_size: 1 - - name: SER - description: Bank 1 sector erase request - bit_offset: 2 - bit_size: 1 - - name: BER - description: Bank 1 erase request - bit_offset: 3 - bit_size: 1 - - name: FW - description: Bank 1 write forcing control bit - bit_offset: 4 - bit_size: 1 - - name: START - description: Bank 1 bank or sector erase start control bit - bit_offset: 5 - bit_size: 1 - - name: SSN - description: Bank 1 sector erase selection number - bit_offset: 6 - bit_size: 7 - - name: CRC_EN - description: Bank 1 CRC control bit - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: Bank 1 end-of-program interrupt control bit - bit_offset: 16 - bit_size: 1 - - name: WRPERRIE - description: Bank 1 write protection error interrupt enable bit - bit_offset: 17 - bit_size: 1 - - name: PGSERRIE - description: Bank 1 programming sequence error interrupt enable bit - bit_offset: 18 - bit_size: 1 - - name: STRBERRIE - description: Bank 1 strobe error interrupt enable bit - bit_offset: 19 - bit_size: 1 - - name: INCERRIE - description: Bank 1 inconsistency error interrupt enable bit - bit_offset: 21 - bit_size: 1 - - name: OPERRIE - description: Bank 1 write/erase error interrupt enable bit - bit_offset: 22 - bit_size: 1 - - name: RDPERRIE - description: Bank 1 read protection error interrupt enable bit - bit_offset: 23 - bit_size: 1 - - name: RDSERRIE - description: Bank 1 secure error interrupt enable bit - bit_offset: 24 - bit_size: 1 - - name: SNECCERRIE - description: Bank 1 ECC single correction error interrupt enable bit - bit_offset: 25 - bit_size: 1 - - name: DBECCERRIE - description: Bank 1 ECC double detection error interrupt enable bit - bit_offset: 26 - bit_size: 1 - - name: CRCENDIE - description: Bank 1 end of CRC calculation interrupt enable bit - bit_offset: 27 - bit_size: 1 - - name: CRCRDERRIE - description: Bank 1 CRC read error interrupt enable bit - bit_offset: 28 - bit_size: 1 + - name: LOCK + description: Bank 1 configuration lock bit + bit_offset: 0 + bit_size: 1 + - name: PG + description: Bank 1 program enable bit + bit_offset: 1 + bit_size: 1 + - name: SER + description: Bank 1 sector erase request + bit_offset: 2 + bit_size: 1 + - name: BER + description: Bank 1 erase request + bit_offset: 3 + bit_size: 1 + - name: FW + description: Bank 1 write forcing control bit + bit_offset: 4 + bit_size: 1 + - name: START + description: Bank 1 bank or sector erase start control bit + bit_offset: 5 + bit_size: 1 + - name: SSN + description: Bank 1 sector erase selection number + bit_offset: 6 + bit_size: 7 + - name: CRC_EN + description: Bank 1 CRC control bit + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: Bank 1 end-of-program interrupt control bit + bit_offset: 16 + bit_size: 1 + - name: WRPERRIE + description: Bank 1 write protection error interrupt enable bit + bit_offset: 17 + bit_size: 1 + - name: PGSERRIE + description: Bank 1 programming sequence error interrupt enable bit + bit_offset: 18 + bit_size: 1 + - name: STRBERRIE + description: Bank 1 strobe error interrupt enable bit + bit_offset: 19 + bit_size: 1 + - name: INCERRIE + description: Bank 1 inconsistency error interrupt enable bit + bit_offset: 21 + bit_size: 1 + - name: OPERRIE + description: Bank 1 write/erase error interrupt enable bit + bit_offset: 22 + bit_size: 1 + - name: RDPERRIE + description: Bank 1 read protection error interrupt enable bit + bit_offset: 23 + bit_size: 1 + - name: RDSERRIE + description: Bank 1 secure error interrupt enable bit + bit_offset: 24 + bit_size: 1 + - name: SNECCERRIE + description: Bank 1 ECC single correction error interrupt enable bit + bit_offset: 25 + bit_size: 1 + - name: DBECCERRIE + description: Bank 1 ECC double detection error interrupt enable bit + bit_offset: 26 + bit_size: 1 + - name: CRCENDIE + description: Bank 1 end of CRC calculation interrupt enable bit + bit_offset: 27 + bit_size: 1 + - name: CRCRDERRIE + description: Bank 1 CRC read error interrupt enable bit + bit_offset: 28 + bit_size: 1 fieldset/CRCCR: description: FLASH CRC control register for bank 1 fields: - - name: CRC_SECT - description: Bank 1 CRC sector number - bit_offset: 0 - bit_size: 3 - - name: ALL_BANK - description: Bank 1 CRC select bit - bit_offset: 7 - bit_size: 1 - - name: CRC_BY_SECT - description: Bank 1 CRC sector mode select bit - bit_offset: 8 - bit_size: 1 - - name: ADD_SECT - description: Bank 1 CRC sector select bit - bit_offset: 9 - bit_size: 1 - - name: CLEAN_SECT - description: Bank 1 CRC sector list clear bit - bit_offset: 10 - bit_size: 1 - - name: START_CRC - description: Bank 1 CRC start bit - bit_offset: 16 - bit_size: 1 - - name: CLEAN_CRC - description: Bank 1 CRC clear bit - bit_offset: 17 - bit_size: 1 - - name: CRC_BURST - description: Bank 1 CRC burst size - bit_offset: 20 - bit_size: 2 + - name: CRC_SECT + description: Bank 1 CRC sector number + bit_offset: 0 + bit_size: 3 + - name: ALL_BANK + description: Bank 1 CRC select bit + bit_offset: 7 + bit_size: 1 + - name: CRC_BY_SECT + description: Bank 1 CRC sector mode select bit + bit_offset: 8 + bit_size: 1 + - name: ADD_SECT + description: Bank 1 CRC sector select bit + bit_offset: 9 + bit_size: 1 + - name: CLEAN_SECT + description: Bank 1 CRC sector list clear bit + bit_offset: 10 + bit_size: 1 + - name: START_CRC + description: Bank 1 CRC start bit + bit_offset: 16 + bit_size: 1 + - name: CLEAN_CRC + description: Bank 1 CRC clear bit + bit_offset: 17 + bit_size: 1 + - name: CRC_BURST + description: Bank 1 CRC burst size + bit_offset: 20 + bit_size: 2 fieldset/CRCDATAR: description: FLASH CRC data register fields: - - name: CRC_DATA - description: CRC result - bit_offset: 0 - bit_size: 32 + - name: CRC_DATA + description: CRC result + bit_offset: 0 + bit_size: 32 fieldset/CRCEADDR: description: FLASH CRC end address register for bank 1 fields: - - name: CRC_END_ADDR - description: CRC end address on bank 1 - bit_offset: 0 - bit_size: 32 + - name: CRC_END_ADDR + description: CRC end address on bank 1 + bit_offset: 0 + bit_size: 32 fieldset/CRCSADDR: description: FLASH CRC start address register for bank 1 fields: - - name: CRC_START_ADDR - description: CRC start address on bank 1 - bit_offset: 0 - bit_size: 32 + - name: CRC_START_ADDR + description: CRC start address on bank 1 + bit_offset: 0 + bit_size: 32 fieldset/FAR: description: FLASH ECC fail address for bank 1 fields: - - name: FAIL_ECC_ADDR - description: Bank 1 ECC error address - bit_offset: 0 - bit_size: 15 + - name: FAIL_ECC_ADDR + description: Bank 1 ECC error address + bit_offset: 0 + bit_size: 15 fieldset/KEYR: description: FLASH key register for bank 1 fields: - - name: KEYR - description: Bank 1 access configuration unlock key - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: Bank 1 access configuration unlock key + bit_offset: 0 + bit_size: 32 fieldset/OPTCCR: description: FLASH option clear control register fields: - - name: CLR_OPTCHANGEERR - description: OPTCHANGEERR reset bit - bit_offset: 30 - bit_size: 1 + - name: CLR_OPTCHANGEERR + description: OPTCHANGEERR reset bit + bit_offset: 30 + bit_size: 1 fieldset/OPTCR: description: FLASH option control register fields: - - name: OPTLOCK - description: FLASH_OPTCR lock option configuration bit - bit_offset: 0 - bit_size: 1 - - name: OPTSTART - description: Option byte start change option configuration bit - bit_offset: 1 - bit_size: 1 - - name: MER - description: Flash mass erase enable bit - bit_offset: 4 - bit_size: 1 - - name: PG_OTP - description: OTP program control bit - bit_offset: 5 - bit_size: 1 - - name: OPTCHANGEERRIE - description: Option byte change error interrupt enable bit - bit_offset: 30 - bit_size: 1 - - name: SWAP_BANK - description: Bank swapping configuration bit - bit_offset: 31 - bit_size: 1 + - name: OPTLOCK + description: FLASH_OPTCR lock option configuration bit + bit_offset: 0 + bit_size: 1 + - name: OPTSTART + description: Option byte start change option configuration bit + bit_offset: 1 + bit_size: 1 + - name: MER + description: Flash mass erase enable bit + bit_offset: 4 + bit_size: 1 + - name: PG_OTP + description: OTP program control bit + bit_offset: 5 + bit_size: 1 + - name: OPTCHANGEERRIE + description: Option byte change error interrupt enable bit + bit_offset: 30 + bit_size: 1 + - name: SWAP_BANK + description: Bank swapping configuration bit + bit_offset: 31 + bit_size: 1 fieldset/OPTKEYR: description: FLASH option key register fields: - - name: OPTKEYR - description: Unlock key option bytes - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Unlock key option bytes + bit_offset: 0 + bit_size: 32 fieldset/OPTSR_CUR: description: FLASH option status register fields: - - name: OPT_BUSY - description: Option byte change ongoing flag - bit_offset: 0 - bit_size: 1 - - name: BOR_LEV - description: Brownout level option status bit - bit_offset: 2 - bit_size: 2 - - name: IWDG1_HW - description: IWDG1 control option status bit - bit_offset: 4 - bit_size: 1 - - name: nRST_STOP_D1 - description: D1 DStop entry reset option status bit - bit_offset: 6 - bit_size: 1 - - name: nRST_STBY_D1 - description: D1 DStandby entry reset option status bit - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Readout protection level option status byte - bit_offset: 8 - bit_size: 8 - - name: FZ_IWDG_STOP - description: IWDG Stop mode freeze option status bit - bit_offset: 17 - bit_size: 1 - - name: FZ_IWDG_SDBY - description: IWDG Standby mode freeze option status bit - bit_offset: 18 - bit_size: 1 - - name: ST_RAM_SIZE - description: DTCM RAM size option status - bit_offset: 19 - bit_size: 2 - - name: SECURITY - description: Security enable option status bit - bit_offset: 21 - bit_size: 1 - - name: RSS1 - description: User option bit 1 - bit_offset: 26 - bit_size: 1 - - name: PERSO_OK - description: Device personalization status bit - bit_offset: 28 - bit_size: 1 - - name: IO_HSLV - description: I/O high-speed at low-voltage status bit (PRODUCT_BELOW_25V) - bit_offset: 29 - bit_size: 1 - - name: OPTCHANGEERR - description: Option byte change error flag - bit_offset: 30 - bit_size: 1 - - name: SWAP_BANK_OPT - description: Bank swapping option status bit - bit_offset: 31 - bit_size: 1 + - name: OPT_BUSY + description: Option byte change ongoing flag + bit_offset: 0 + bit_size: 1 + - name: BOR_LEV + description: Brownout level option status bit + bit_offset: 2 + bit_size: 2 + - name: IWDG1_HW + description: IWDG1 control option status bit + bit_offset: 4 + bit_size: 1 + - name: nRST_STOP_D1 + description: D1 DStop entry reset option status bit + bit_offset: 6 + bit_size: 1 + - name: nRST_STBY_D1 + description: D1 DStandby entry reset option status bit + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Readout protection level option status byte + bit_offset: 8 + bit_size: 8 + - name: FZ_IWDG_STOP + description: IWDG Stop mode freeze option status bit + bit_offset: 17 + bit_size: 1 + - name: FZ_IWDG_SDBY + description: IWDG Standby mode freeze option status bit + bit_offset: 18 + bit_size: 1 + - name: ST_RAM_SIZE + description: DTCM RAM size option status + bit_offset: 19 + bit_size: 2 + - name: SECURITY + description: Security enable option status bit + bit_offset: 21 + bit_size: 1 + - name: RSS1 + description: User option bit 1 + bit_offset: 26 + bit_size: 1 + - name: PERSO_OK + description: Device personalization status bit + bit_offset: 28 + bit_size: 1 + - name: IO_HSLV + description: I/O high-speed at low-voltage status bit (PRODUCT_BELOW_25V) + bit_offset: 29 + bit_size: 1 + - name: OPTCHANGEERR + description: Option byte change error flag + bit_offset: 30 + bit_size: 1 + - name: SWAP_BANK_OPT + description: Bank swapping option status bit + bit_offset: 31 + bit_size: 1 fieldset/OPTSR_PRG: description: FLASH option status register fields: - - name: BOR_LEV - description: BOR reset level option configuration bits - bit_offset: 2 - bit_size: 2 - - name: IWDG1_HW - description: IWDG1 option configuration bit - bit_offset: 4 - bit_size: 1 - - name: nRST_STOP_D1 - description: Option byte erase after D1 DStop option configuration bit - bit_offset: 6 - bit_size: 1 - - name: nRST_STBY_D1 - description: Option byte erase after D1 DStandby option configuration bit - bit_offset: 7 - bit_size: 1 - - name: RDP - description: Readout protection level option configuration byte - bit_offset: 8 - bit_size: 8 - - name: FZ_IWDG_STOP - description: IWDG Stop mode freeze option configuration bit - bit_offset: 17 - bit_size: 1 - - name: FZ_IWDG_SDBY - description: IWDG Standby mode freeze option configuration bit - bit_offset: 18 - bit_size: 1 - - name: ST_RAM_SIZE - description: DTCM size select option configuration bits - bit_offset: 19 - bit_size: 2 - - name: SECURITY - description: Security option configuration bit - bit_offset: 21 - bit_size: 1 - - name: RSS1 - description: User option configuration bit 1 - bit_offset: 26 - bit_size: 1 - - name: RSS2 - description: User option configuration bit 2 - bit_offset: 27 - bit_size: 1 - - name: IO_HSLV - description: I/O high-speed at low-voltage (PRODUCT_BELOW_25V) - bit_offset: 29 - bit_size: 1 - - name: SWAP_BANK_OPT - description: Bank swapping option configuration bit - bit_offset: 31 - bit_size: 1 + - name: BOR_LEV + description: BOR reset level option configuration bits + bit_offset: 2 + bit_size: 2 + - name: IWDG1_HW + description: IWDG1 option configuration bit + bit_offset: 4 + bit_size: 1 + - name: nRST_STOP_D1 + description: Option byte erase after D1 DStop option configuration bit + bit_offset: 6 + bit_size: 1 + - name: nRST_STBY_D1 + description: Option byte erase after D1 DStandby option configuration bit + bit_offset: 7 + bit_size: 1 + - name: RDP + description: Readout protection level option configuration byte + bit_offset: 8 + bit_size: 8 + - name: FZ_IWDG_STOP + description: IWDG Stop mode freeze option configuration bit + bit_offset: 17 + bit_size: 1 + - name: FZ_IWDG_SDBY + description: IWDG Standby mode freeze option configuration bit + bit_offset: 18 + bit_size: 1 + - name: ST_RAM_SIZE + description: DTCM size select option configuration bits + bit_offset: 19 + bit_size: 2 + - name: SECURITY + description: Security option configuration bit + bit_offset: 21 + bit_size: 1 + - name: RSS1 + description: User option configuration bit 1 + bit_offset: 26 + bit_size: 1 + - name: RSS2 + description: User option configuration bit 2 + bit_offset: 27 + bit_size: 1 + - name: IO_HSLV + description: I/O high-speed at low-voltage (PRODUCT_BELOW_25V) + bit_offset: 29 + bit_size: 1 + - name: SWAP_BANK_OPT + description: Bank swapping option configuration bit + bit_offset: 31 + bit_size: 1 fieldset/PRAR_CUR: description: FLASH protection address for bank 1 fields: - - name: PROT_AREA_START - description: Bank 1 lowest PCROP protected address - bit_offset: 0 - bit_size: 12 - - name: PROT_AREA_END - description: Bank 1 highest PCROP protected address - bit_offset: 16 - bit_size: 12 - - name: DMEP - description: Bank 1 PCROP protected erase enable option status bit - bit_offset: 31 - bit_size: 1 + - name: PROT_AREA_START + description: Bank 1 lowest PCROP protected address + bit_offset: 0 + bit_size: 12 + - name: PROT_AREA_END + description: Bank 1 highest PCROP protected address + bit_offset: 16 + bit_size: 12 + - name: DMEP + description: Bank 1 PCROP protected erase enable option status bit + bit_offset: 31 + bit_size: 1 fieldset/PRAR_PRG: description: FLASH protection address for bank 1 fields: - - name: PROT_AREA_START - description: Bank 1 lowest PCROP protected address configuration - bit_offset: 0 - bit_size: 12 - - name: PROT_AREA_END - description: Bank 1 highest PCROP protected address configuration - bit_offset: 16 - bit_size: 12 - - name: DMEP - description: Bank 1 PCROP protected erase enable option configuration bit - bit_offset: 31 - bit_size: 1 + - name: PROT_AREA_START + description: Bank 1 lowest PCROP protected address configuration + bit_offset: 0 + bit_size: 12 + - name: PROT_AREA_END + description: Bank 1 highest PCROP protected address configuration + bit_offset: 16 + bit_size: 12 + - name: DMEP + description: Bank 1 PCROP protected erase enable option configuration bit + bit_offset: 31 + bit_size: 1 fieldset/SCAR_CUR: description: FLASH secure address for bank 1 fields: - - name: SEC_AREA_START - description: Bank 1 lowest secure protected address - bit_offset: 0 - bit_size: 12 - - name: SEC_AREA_END - description: Bank 1 highest secure protected address - bit_offset: 16 - bit_size: 12 - - name: DMES - description: Bank 1 secure protected erase enable option status bit - bit_offset: 31 - bit_size: 1 + - name: SEC_AREA_START + description: Bank 1 lowest secure protected address + bit_offset: 0 + bit_size: 12 + - name: SEC_AREA_END + description: Bank 1 highest secure protected address + bit_offset: 16 + bit_size: 12 + - name: DMES + description: Bank 1 secure protected erase enable option status bit + bit_offset: 31 + bit_size: 1 fieldset/SCAR_PRG: description: FLASH secure address for bank 1 fields: - - name: SEC_AREA_START - description: Bank 1 lowest secure protected address configuration - bit_offset: 0 - bit_size: 12 - - name: SEC_AREA_END - description: Bank 1 highest secure protected address configuration - bit_offset: 16 - bit_size: 12 - - name: DMES - description: Bank 1 secure protected erase enable option configuration bit - bit_offset: 31 - bit_size: 1 + - name: SEC_AREA_START + description: Bank 1 lowest secure protected address configuration + bit_offset: 0 + bit_size: 12 + - name: SEC_AREA_END + description: Bank 1 highest secure protected address configuration + bit_offset: 16 + bit_size: 12 + - name: DMES + description: Bank 1 secure protected erase enable option configuration bit + bit_offset: 31 + bit_size: 1 fieldset/SR: description: FLASH status register for bank 1 fields: - - name: BSY - description: Bank 1 ongoing program flag - bit_offset: 0 - bit_size: 1 - - name: WBNE - description: Bank 1 write buffer not empty flag - bit_offset: 1 - bit_size: 1 - - name: QW - description: Bank 1 wait queue flag - bit_offset: 2 - bit_size: 1 - - name: CRC_BUSY - description: Bank 1 CRC busy flag - bit_offset: 3 - bit_size: 1 - - name: EOP - description: Bank 1 end-of-program flag - bit_offset: 16 - bit_size: 1 - - name: WRPERR - description: Bank 1 write protection error flag - bit_offset: 17 - bit_size: 1 - - name: PGSERR - description: Bank 1 programming sequence error flag - bit_offset: 18 - bit_size: 1 - - name: STRBERR - description: Bank 1 strobe error flag - bit_offset: 19 - bit_size: 1 - - name: INCERR - description: Bank 1 inconsistency error flag - bit_offset: 21 - bit_size: 1 - - name: OPERR - description: Bank 1 write/erase error flag - bit_offset: 22 - bit_size: 1 - - name: RDPERR - description: Bank 1 read protection error flag - bit_offset: 23 - bit_size: 1 - - name: RDSERR - description: Bank 1 secure error flag - bit_offset: 24 - bit_size: 1 - - name: SNECCERR1 - description: Bank 1 single correction error flag - bit_offset: 25 - bit_size: 1 - - name: DBECCERR - description: Bank 1 ECC double detection error flag - bit_offset: 26 - bit_size: 1 - - name: CRCEND - description: Bank 1 CRC-complete flag - bit_offset: 27 - bit_size: 1 - - name: CRCRDERR - description: Bank 1 CRC read error flag - bit_offset: 28 - bit_size: 1 + - name: BSY + description: Bank 1 ongoing program flag + bit_offset: 0 + bit_size: 1 + - name: WBNE + description: Bank 1 write buffer not empty flag + bit_offset: 1 + bit_size: 1 + - name: QW + description: Bank 1 wait queue flag + bit_offset: 2 + bit_size: 1 + - name: CRC_BUSY + description: Bank 1 CRC busy flag + bit_offset: 3 + bit_size: 1 + - name: EOP + description: Bank 1 end-of-program flag + bit_offset: 16 + bit_size: 1 + - name: WRPERR + description: Bank 1 write protection error flag + bit_offset: 17 + bit_size: 1 + - name: PGSERR + description: Bank 1 programming sequence error flag + bit_offset: 18 + bit_size: 1 + - name: STRBERR + description: Bank 1 strobe error flag + bit_offset: 19 + bit_size: 1 + - name: INCERR + description: Bank 1 inconsistency error flag + bit_offset: 21 + bit_size: 1 + - name: OPERR + description: Bank 1 write/erase error flag + bit_offset: 22 + bit_size: 1 + - name: RDPERR + description: Bank 1 read protection error flag + bit_offset: 23 + bit_size: 1 + - name: RDSERR + description: Bank 1 secure error flag + bit_offset: 24 + bit_size: 1 + - name: SNECCERR1 + description: Bank 1 single correction error flag + bit_offset: 25 + bit_size: 1 + - name: DBECCERR + description: Bank 1 ECC double detection error flag + bit_offset: 26 + bit_size: 1 + - name: CRCEND + description: Bank 1 CRC-complete flag + bit_offset: 27 + bit_size: 1 + - name: CRCRDERR + description: Bank 1 CRC read error flag + bit_offset: 28 + bit_size: 1 fieldset/WPSN_CURR: description: FLASH write sector protection for bank 1 fields: - - name: WRPSn - description: Bank 1 sector write protection option status byte - bit_offset: 0 - bit_size: 8 + - name: WRPSn + description: Bank 1 sector write protection option status byte + bit_offset: 0 + bit_size: 8 fieldset/WPSN_PRGR: description: FLASH write sector protection for bank 1 fields: - - name: WRPSn - description: Bank 1 sector write protection configuration byte - bit_offset: 0 - bit_size: 8 + - name: WRPSn + description: Bank 1 sector write protection configuration byte + bit_offset: 0 + bit_size: 8 diff --git a/data/registers/flash_l0.yaml b/data/registers/flash_l0.yaml index 09cadbe..5677dfd 100644 --- a/data/registers/flash_l0.yaml +++ b/data/registers/flash_l0.yaml @@ -1,229 +1,228 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: PECR - description: Program/erase control register - byte_offset: 4 - fieldset: PECR - - name: PDKEYR - description: Power down key register - byte_offset: 8 - access: Write - fieldset: PDKEYR - - name: PEKEYR - description: Program/erase key register - byte_offset: 12 - access: Write - fieldset: PEKEYR - - name: PRGKEYR - description: Program memory key register - byte_offset: 16 - access: Write - fieldset: PRGKEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 20 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 24 - fieldset: SR - - name: OPTR - description: Option byte register - byte_offset: 28 - access: Read - fieldset: OPTR - - name: WRPROT - description: Write Protection Register 1 - byte_offset: 32 - access: Read - fieldset: WRPROT - - name: WRPROT2 - description: Write Protection Register 2 - byte_offset: 128 - access: Read - fieldset: WRPROT + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: PECR + description: Program/erase control register + byte_offset: 4 + fieldset: PECR + - name: PDKEYR + description: Power down key register + byte_offset: 8 + access: Write + fieldset: PDKEYR + - name: PEKEYR + description: Program/erase key register + byte_offset: 12 + access: Write + fieldset: PEKEYR + - name: PRGKEYR + description: Program memory key register + byte_offset: 16 + access: Write + fieldset: PRGKEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 20 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 24 + fieldset: SR + - name: OPTR + description: Option byte register + byte_offset: 28 + access: Read + fieldset: OPTR + - name: WRPROT + description: Write Protection Register 1 + byte_offset: 32 + access: Read + fieldset: WRPROT + - name: WRPROT2 + description: Write Protection Register 2 + byte_offset: 128 + access: Read + fieldset: WRPROT fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 1 - - name: PRFTEN - description: Prefetch enable - bit_offset: 1 - bit_size: 1 - - name: SLEEP_PD - description: Flash mode during Sleep - bit_offset: 3 - bit_size: 1 - - name: RUN_PD - description: Flash mode during Run - bit_offset: 4 - bit_size: 1 - - name: DISAB_BUF - description: Disable Buffer - bit_offset: 5 - bit_size: 1 - - name: PRE_READ - description: Pre-read data address - bit_offset: 6 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 1 + - name: PRFTEN + description: Prefetch enable + bit_offset: 1 + bit_size: 1 + - name: SLEEP_PD + description: Flash mode during Sleep + bit_offset: 3 + bit_size: 1 + - name: RUN_PD + description: Flash mode during Run + bit_offset: 4 + bit_size: 1 + - name: DISAB_BUF + description: Disable Buffer + bit_offset: 5 + bit_size: 1 + - name: PRE_READ + description: Pre-read data address + bit_offset: 6 + bit_size: 1 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Option byte register fields: - - name: RDPROT - description: Read protection - bit_offset: 0 - bit_size: 8 - - name: WPRMOD - description: Selection of protection mode of WPR bits - bit_offset: 8 - bit_size: 1 - - name: BOR_LEV - description: BOR_LEV - bit_offset: 16 - bit_size: 4 + - name: RDPROT + description: Read protection + bit_offset: 0 + bit_size: 8 + - name: WPRMOD + description: Selection of protection mode of WPR bits + bit_offset: 8 + bit_size: 1 + - name: BOR_LEV + description: BOR_LEV + bit_offset: 16 + bit_size: 4 fieldset/PDKEYR: description: Power down key register fields: - - name: PDKEYR - description: RUN_PD in FLASH_ACR key - bit_offset: 0 - bit_size: 32 + - name: PDKEYR + description: RUN_PD in FLASH_ACR key + bit_offset: 0 + bit_size: 32 fieldset/PECR: description: Program/erase control register fields: - - name: PELOCK - description: FLASH_PECR and data EEPROM lock - bit_offset: 0 - bit_size: 1 - - name: PRGLOCK - description: Program memory lock - bit_offset: 1 - bit_size: 1 - - name: OPTLOCK - description: Option bytes block lock - bit_offset: 2 - bit_size: 1 - - name: PROG - description: Program memory selection - bit_offset: 3 - bit_size: 1 - - name: DATA - description: Data EEPROM selection - bit_offset: 4 - bit_size: 1 - - name: FIX - description: "Fixed time data write for Byte, Half Word and Word programming" - bit_offset: 8 - bit_size: 1 - - name: ERASE - description: Page or Double Word erase mode - bit_offset: 9 - bit_size: 1 - - name: FPRG - description: Half Page/Double Word programming mode - bit_offset: 10 - bit_size: 1 - - name: PARALLELBANK - description: Parallel bank mode - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: End of programming interrupt enable - bit_offset: 16 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 17 - bit_size: 1 - - name: OBL_LAUNCH - description: Launch the option byte loading - bit_offset: 18 - bit_size: 1 + - name: PELOCK + description: FLASH_PECR and data EEPROM lock + bit_offset: 0 + bit_size: 1 + - name: PRGLOCK + description: Program memory lock + bit_offset: 1 + bit_size: 1 + - name: OPTLOCK + description: Option bytes block lock + bit_offset: 2 + bit_size: 1 + - name: PROG + description: Program memory selection + bit_offset: 3 + bit_size: 1 + - name: DATA + description: Data EEPROM selection + bit_offset: 4 + bit_size: 1 + - name: FIX + description: Fixed time data write for Byte, Half Word and Word programming + bit_offset: 8 + bit_size: 1 + - name: ERASE + description: Page or Double Word erase mode + bit_offset: 9 + bit_size: 1 + - name: FPRG + description: Half Page/Double Word programming mode + bit_offset: 10 + bit_size: 1 + - name: PARALLELBANK + description: Parallel bank mode + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: End of programming interrupt enable + bit_offset: 16 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 17 + bit_size: 1 + - name: OBL_LAUNCH + description: Launch the option byte loading + bit_offset: 18 + bit_size: 1 fieldset/PEKEYR: description: Program/erase key register fields: - - name: PEKEYR - description: FLASH_PEC and data EEPROM key - bit_offset: 0 - bit_size: 32 + - name: PEKEYR + description: FLASH_PEC and data EEPROM key + bit_offset: 0 + bit_size: 32 fieldset/PRGKEYR: description: Program memory key register fields: - - name: PRGKEYR - description: Program memory key - bit_offset: 0 - bit_size: 32 + - name: PRGKEYR + description: Program memory key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: BSY - description: Write/erase operations in progress - bit_offset: 0 - bit_size: 1 - - name: EOP - description: End of operation - bit_offset: 1 - bit_size: 1 - - name: ENDHV - description: End of high voltage - bit_offset: 2 - bit_size: 1 - - name: READY - description: Flash memory module ready after low power mode - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 8 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 9 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 10 - bit_size: 1 - - name: OPTVERR - description: Option validity error - bit_offset: 11 - bit_size: 1 - - name: RDERR - description: RDERR - bit_offset: 14 - bit_size: 1 - - name: NOTZEROERR - description: NOTZEROERR - bit_offset: 16 - bit_size: 1 - - name: FWWERR - description: FWWERR - bit_offset: 17 - bit_size: 1 + - name: BSY + description: Write/erase operations in progress + bit_offset: 0 + bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 1 + bit_size: 1 + - name: ENDHV + description: End of high voltage + bit_offset: 2 + bit_size: 1 + - name: READY + description: Flash memory module ready after low power mode + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 8 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 9 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 10 + bit_size: 1 + - name: OPTVERR + description: Option validity error + bit_offset: 11 + bit_size: 1 + - name: RDERR + description: RDERR + bit_offset: 14 + bit_size: 1 + - name: NOTZEROERR + description: NOTZEROERR + bit_offset: 16 + bit_size: 1 + - name: FWWERR + description: FWWERR + bit_offset: 17 + bit_size: 1 fieldset/WRPROT: description: Write Protection Register fields: - - name: WRPROT - description: Write Protection - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: WRPROT + description: Write Protection + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/flash_l1.yaml b/data/registers/flash_l1.yaml index ce0585a..67076c4 100644 --- a/data/registers/flash_l1.yaml +++ b/data/registers/flash_l1.yaml @@ -1,242 +1,241 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: PECR - description: Program/erase control register - byte_offset: 4 - fieldset: PECR - - name: PDKEYR - description: Power down key register - byte_offset: 8 - access: Write - fieldset: PDKEYR - - name: PEKEYR - description: Program/erase key register - byte_offset: 12 - access: Write - fieldset: PEKEYR - - name: PRGKEYR - description: Program memory key register - byte_offset: 16 - access: Write - fieldset: PRGKEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 20 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 24 - fieldset: SR - - name: OBR - description: Option byte register - byte_offset: 28 - access: Read - fieldset: OBR - - name: WRPR1 - description: Write protection register - byte_offset: 32 - fieldset: WRPR1 - - name: WRPR2 - description: Write protection register - byte_offset: 128 - fieldset: WRPR2 - - name: WRPR3 - description: Write protection register - byte_offset: 132 - fieldset: WRPR3 + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: PECR + description: Program/erase control register + byte_offset: 4 + fieldset: PECR + - name: PDKEYR + description: Power down key register + byte_offset: 8 + access: Write + fieldset: PDKEYR + - name: PEKEYR + description: Program/erase key register + byte_offset: 12 + access: Write + fieldset: PEKEYR + - name: PRGKEYR + description: Program memory key register + byte_offset: 16 + access: Write + fieldset: PRGKEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 20 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 24 + fieldset: SR + - name: OBR + description: Option byte register + byte_offset: 28 + access: Read + fieldset: OBR + - name: WRPR1 + description: Write protection register + byte_offset: 32 + fieldset: WRPR1 + - name: WRPR2 + description: Write protection register + byte_offset: 128 + fieldset: WRPR2 + - name: WRPR3 + description: Write protection register + byte_offset: 132 + fieldset: WRPR3 fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 1 - - name: PRFTEN - description: Prefetch enable - bit_offset: 1 - bit_size: 1 - - name: ACC64 - description: 64-bit access - bit_offset: 2 - bit_size: 1 - - name: SLEEP_PD - description: Flash mode during Sleep - bit_offset: 3 - bit_size: 1 - - name: RUN_PD - description: Flash mode during Run - bit_offset: 4 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 1 + - name: PRFTEN + description: Prefetch enable + bit_offset: 1 + bit_size: 1 + - name: ACC64 + description: 64-bit access + bit_offset: 2 + bit_size: 1 + - name: SLEEP_PD + description: Flash mode during Sleep + bit_offset: 3 + bit_size: 1 + - name: RUN_PD + description: Flash mode during Run + bit_offset: 4 + bit_size: 1 fieldset/OBR: description: Option byte register fields: - - name: RDPRT - description: Read protection - bit_offset: 0 - bit_size: 8 - - name: BOR_LEV - description: BOR_LEV - bit_offset: 16 - bit_size: 4 - - name: IWDG_SW - description: IWDG_SW - bit_offset: 20 - bit_size: 1 - - name: nRTS_STOP - description: nRTS_STOP - bit_offset: 21 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 22 - bit_size: 1 - - name: BFB2 - description: Boot From Bank 2 - bit_offset: 23 - bit_size: 1 + - name: RDPRT + description: Read protection + bit_offset: 0 + bit_size: 8 + - name: BOR_LEV + description: BOR_LEV + bit_offset: 16 + bit_size: 4 + - name: IWDG_SW + description: IWDG_SW + bit_offset: 20 + bit_size: 1 + - name: nRTS_STOP + description: nRTS_STOP + bit_offset: 21 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 22 + bit_size: 1 + - name: BFB2 + description: Boot From Bank 2 + bit_offset: 23 + bit_size: 1 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/PDKEYR: description: Power down key register fields: - - name: PDKEYR - description: RUN_PD in FLASH_ACR key - bit_offset: 0 - bit_size: 32 + - name: PDKEYR + description: RUN_PD in FLASH_ACR key + bit_offset: 0 + bit_size: 32 fieldset/PECR: description: Program/erase control register fields: - - name: PELOCK - description: FLASH_PECR and data EEPROM lock - bit_offset: 0 - bit_size: 1 - - name: PRGLOCK - description: Program memory lock - bit_offset: 1 - bit_size: 1 - - name: OPTLOCK - description: Option bytes block lock - bit_offset: 2 - bit_size: 1 - - name: PROG - description: Program memory selection - bit_offset: 3 - bit_size: 1 - - name: DATA - description: Data EEPROM selection - bit_offset: 4 - bit_size: 1 - - name: FTDW - description: "Fixed time data write for Byte, Half Word and Word programming" - bit_offset: 8 - bit_size: 1 - - name: ERASE - description: Page or Double Word erase mode - bit_offset: 9 - bit_size: 1 - - name: FPRG - description: Half Page/Double Word programming mode - bit_offset: 10 - bit_size: 1 - - name: PARALLELBANK - description: Parallel bank mode - bit_offset: 15 - bit_size: 1 - - name: EOPIE - description: End of programming interrupt enable - bit_offset: 16 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 17 - bit_size: 1 - - name: OBL_LAUNCH - description: Launch the option byte loading - bit_offset: 18 - bit_size: 1 + - name: PELOCK + description: FLASH_PECR and data EEPROM lock + bit_offset: 0 + bit_size: 1 + - name: PRGLOCK + description: Program memory lock + bit_offset: 1 + bit_size: 1 + - name: OPTLOCK + description: Option bytes block lock + bit_offset: 2 + bit_size: 1 + - name: PROG + description: Program memory selection + bit_offset: 3 + bit_size: 1 + - name: DATA + description: Data EEPROM selection + bit_offset: 4 + bit_size: 1 + - name: FTDW + description: Fixed time data write for Byte, Half Word and Word programming + bit_offset: 8 + bit_size: 1 + - name: ERASE + description: Page or Double Word erase mode + bit_offset: 9 + bit_size: 1 + - name: FPRG + description: Half Page/Double Word programming mode + bit_offset: 10 + bit_size: 1 + - name: PARALLELBANK + description: Parallel bank mode + bit_offset: 15 + bit_size: 1 + - name: EOPIE + description: End of programming interrupt enable + bit_offset: 16 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 17 + bit_size: 1 + - name: OBL_LAUNCH + description: Launch the option byte loading + bit_offset: 18 + bit_size: 1 fieldset/PEKEYR: description: Program/erase key register fields: - - name: PEKEYR - description: FLASH_PEC and data EEPROM key - bit_offset: 0 - bit_size: 32 + - name: PEKEYR + description: FLASH_PEC and data EEPROM key + bit_offset: 0 + bit_size: 32 fieldset/PRGKEYR: description: Program memory key register fields: - - name: PRGKEYR - description: Program memory key - bit_offset: 0 - bit_size: 32 + - name: PRGKEYR + description: Program memory key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: BSY - description: Write/erase operations in progress - bit_offset: 0 - bit_size: 1 - - name: EOP - description: End of operation - bit_offset: 1 - bit_size: 1 - - name: ENDHV - description: End of high voltage - bit_offset: 2 - bit_size: 1 - - name: READY - description: Flash memory module ready after low power mode - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 8 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 9 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 10 - bit_size: 1 - - name: OPTVERR - description: Option validity error - bit_offset: 11 - bit_size: 1 - - name: OPTVERRUSR - description: Option UserValidity Error - bit_offset: 12 - bit_size: 1 + - name: BSY + description: Write/erase operations in progress + bit_offset: 0 + bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 1 + bit_size: 1 + - name: ENDHV + description: End of high voltage + bit_offset: 2 + bit_size: 1 + - name: READY + description: Flash memory module ready after low power mode + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 8 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 9 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 10 + bit_size: 1 + - name: OPTVERR + description: Option validity error + bit_offset: 11 + bit_size: 1 + - name: OPTVERRUSR + description: Option UserValidity Error + bit_offset: 12 + bit_size: 1 fieldset/WRPR1: description: Write protection register fields: - - name: WRP1 - description: Write protection - bit_offset: 0 - bit_size: 32 + - name: WRP1 + description: Write protection + bit_offset: 0 + bit_size: 32 fieldset/WRPR2: description: Write protection register fields: - - name: WRP2 - description: WRP2 - bit_offset: 0 - bit_size: 32 + - name: WRP2 + description: WRP2 + bit_offset: 0 + bit_size: 32 fieldset/WRPR3: description: Write protection register fields: - - name: WRP3 - description: WRP3 - bit_offset: 0 - bit_size: 32 + - name: WRP3 + description: WRP3 + bit_offset: 0 + bit_size: 32 diff --git a/data/registers/flash_l4.yaml b/data/registers/flash_l4.yaml index a4f63c1..01c251f 100644 --- a/data/registers/flash_l4.yaml +++ b/data/registers/flash_l4.yaml @@ -1,406 +1,405 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: PDKEYR - description: Power down key register - byte_offset: 4 - access: Write - fieldset: PDKEYR - - name: KEYR - description: Flash key register - byte_offset: 8 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 12 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 16 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 20 - fieldset: CR - - name: ECCR - description: Flash ECC register - byte_offset: 24 - fieldset: ECCR - - name: OPTR - description: Flash option register - byte_offset: 32 - fieldset: OPTR - - name: PCROP1SR - description: Flash Bank 1 PCROP Start address register - byte_offset: 36 - fieldset: PCROP1SR - - name: PCROP1ER - description: Flash Bank 1 PCROP End address register - byte_offset: 40 - fieldset: PCROP1ER - - name: WRP1AR - description: Flash Bank 1 WRP area A address register - byte_offset: 44 - fieldset: WRP1AR - - name: WRP1BR - description: Flash Bank 1 WRP area B address register - byte_offset: 48 - fieldset: WRP1BR - - name: PCROP2SR - description: Flash Bank 2 PCROP Start address register - byte_offset: 68 - fieldset: PCROP2SR - - name: PCROP2ER - description: Flash Bank 2 PCROP End address register - byte_offset: 72 - fieldset: PCROP2ER - - name: WRP2AR - description: Flash Bank 2 WRP area A address register - byte_offset: 76 - fieldset: WRP2AR - - name: WRP2BR - description: Flash Bank 2 WRP area B address register - byte_offset: 80 - fieldset: WRP2BR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: PDKEYR + description: Power down key register + byte_offset: 4 + access: Write + fieldset: PDKEYR + - name: KEYR + description: Flash key register + byte_offset: 8 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 12 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 16 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 20 + fieldset: CR + - name: ECCR + description: Flash ECC register + byte_offset: 24 + fieldset: ECCR + - name: OPTR + description: Flash option register + byte_offset: 32 + fieldset: OPTR + - name: PCROP1SR + description: Flash Bank 1 PCROP Start address register + byte_offset: 36 + fieldset: PCROP1SR + - name: PCROP1ER + description: Flash Bank 1 PCROP End address register + byte_offset: 40 + fieldset: PCROP1ER + - name: WRP1AR + description: Flash Bank 1 WRP area A address register + byte_offset: 44 + fieldset: WRP1AR + - name: WRP1BR + description: Flash Bank 1 WRP area B address register + byte_offset: 48 + fieldset: WRP1BR + - name: PCROP2SR + description: Flash Bank 2 PCROP Start address register + byte_offset: 68 + fieldset: PCROP2SR + - name: PCROP2ER + description: Flash Bank 2 PCROP End address register + byte_offset: 72 + fieldset: PCROP2ER + - name: WRP2AR + description: Flash Bank 2 WRP area A address register + byte_offset: 76 + fieldset: WRP2AR + - name: WRP2BR + description: Flash Bank 2 WRP area B address register + byte_offset: 80 + fieldset: WRP2BR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: DCEN - description: Data cache enable - bit_offset: 10 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: DCRST - description: Data cache reset - bit_offset: 12 - bit_size: 1 - - name: RUN_PD - description: Flash Power-down mode during Low-power run mode - bit_offset: 13 - bit_size: 1 - - name: SLEEP_PD - description: Flash Power-down mode during Low-power sleep mode - bit_offset: 14 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: DCEN + description: Data cache enable + bit_offset: 10 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: DCRST + description: Data cache reset + bit_offset: 12 + bit_size: 1 + - name: RUN_PD + description: Flash Power-down mode during Low-power run mode + bit_offset: 13 + bit_size: 1 + - name: SLEEP_PD + description: Flash Power-down mode during Low-power sleep mode + bit_offset: 14 + bit_size: 1 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Bank 1 Mass erase - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 13 - - name: PNB - description: Page number - bit_offset: 3 - bit_size: 8 - - name: BKER - description: Bank erase - bit_offset: 11 - bit_size: 1 - - name: START - description: Start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: FLASH_CR Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Bank 1 Mass erase + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 13 + - name: PNB + description: Page number + bit_offset: 3 + bit_size: 8 + - name: BKER + description: Bank erase + bit_offset: 11 + bit_size: 1 + - name: START + description: Start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: FLASH_CR Lock + bit_offset: 31 + bit_size: 1 fieldset/ECCR: description: Flash ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 19 - - name: BK_ECC - description: ECC fail bank - bit_offset: 19 - bit_size: 1 - - name: SYSF_ECC - description: System Flash ECC fail - bit_offset: 20 - bit_size: 1 - - name: ECCIE - description: ECC correction interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ECCC - description: ECC correction - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: ECC detection - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 19 + - name: BK_ECC + description: ECC fail bank + bit_offset: 19 + bit_size: 1 + - name: SYSF_ECC + description: System Flash ECC fail + bit_offset: 20 + bit_size: 1 + - name: ECCIE + description: ECC correction interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ECCC + description: ECC correction + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: ECC detection + bit_offset: 31 + bit_size: 1 fieldset/KEYR: description: Flash key register fields: - - name: KEYR - description: KEYR - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: KEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 8 - bit_size: 3 - - name: nRST_STOP - description: nRST_STOP - bit_offset: 12 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 13 - bit_size: 1 - - name: IDWG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: BFB - description: Dual-bank boot - bit_offset: 20 - bit_size: 1 - - name: DUALBANK - description: Dual-Bank on 512 KB or 256 KB Flash memory devices - bit_offset: 21 - bit_size: 1 - - name: nBOOT1 - description: Boot configuration - bit_offset: 23 - bit_size: 1 - - name: SRAM2_PE - description: SRAM2 parity check enable - bit_offset: 24 - bit_size: 1 - - name: SRAM2_RST - description: SRAM2 Erase when system reset - bit_offset: 25 - bit_size: 1 - - name: nSWBOOT0 - description: Software BOOT0 - bit_offset: 26 - bit_size: 1 - - name: nBOOT0 - description: nBOOT0 option bit - bit_offset: 27 - bit_size: 1 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 8 + bit_size: 3 + - name: nRST_STOP + description: nRST_STOP + bit_offset: 12 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 13 + bit_size: 1 + - name: IDWG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: BFB + description: Dual-bank boot + bit_offset: 20 + bit_size: 1 + - name: DUALBANK + description: Dual-Bank on 512 KB or 256 KB Flash memory devices + bit_offset: 21 + bit_size: 1 + - name: nBOOT1 + description: Boot configuration + bit_offset: 23 + bit_size: 1 + - name: SRAM2_PE + description: SRAM2 parity check enable + bit_offset: 24 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 Erase when system reset + bit_offset: 25 + bit_size: 1 + - name: nSWBOOT0 + description: Software BOOT0 + bit_offset: 26 + bit_size: 1 + - name: nBOOT0 + description: nBOOT0 option bit + bit_offset: 27 + bit_size: 1 fieldset/PCROP1ER: description: Flash Bank 1 PCROP End address register fields: - - name: PCROP1_END - description: Bank 1 PCROP area end offset - bit_offset: 0 - bit_size: 16 - - name: PCROP_RDP - description: PCROP area preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROP1_END + description: Bank 1 PCROP area end offset + bit_offset: 0 + bit_size: 16 + - name: PCROP_RDP + description: PCROP area preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/PCROP1SR: description: Flash Bank 1 PCROP Start address register fields: - - name: PCROP1_STRT - description: Bank 1 PCROP area start offset - bit_offset: 0 - bit_size: 16 + - name: PCROP1_STRT + description: Bank 1 PCROP area start offset + bit_offset: 0 + bit_size: 16 fieldset/PCROP2ER: description: Flash Bank 2 PCROP End address register fields: - - name: PCROP2_END - description: Bank 2 PCROP area end offset - bit_offset: 0 - bit_size: 16 + - name: PCROP2_END + description: Bank 2 PCROP area end offset + bit_offset: 0 + bit_size: 16 fieldset/PCROP2SR: description: Flash Bank 2 PCROP Start address register fields: - - name: PCROP2_STRT - description: Bank 2 PCROP area start offset - bit_offset: 0 - bit_size: 16 + - name: PCROP2_STRT + description: Bank 2 PCROP area start offset + bit_offset: 0 + bit_size: 16 fieldset/PDKEYR: description: Power down key register fields: - - name: PDKEYR - description: RUN_PD in FLASH_ACR key - bit_offset: 0 - bit_size: 32 + - name: PDKEYR + description: RUN_PD in FLASH_ACR key + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: OPTVERR - description: Option validity error - bit_offset: 15 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: OPTVERR + description: Option validity error + bit_offset: 15 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 fieldset/WRP1AR: description: Flash Bank 1 WRP area A address register fields: - - name: WRP1A_STRT - description: Bank 1 WRP first area tart offset - bit_offset: 0 - bit_size: 8 - - name: WRP1A_END - description: Bank 1 WRP first area A end offset - bit_offset: 16 - bit_size: 8 + - name: WRP1A_STRT + description: Bank 1 WRP first area tart offset + bit_offset: 0 + bit_size: 8 + - name: WRP1A_END + description: Bank 1 WRP first area A end offset + bit_offset: 16 + bit_size: 8 fieldset/WRP1BR: description: Flash Bank 1 WRP area B address register fields: - - name: WRP1B_STRT - description: Bank 1 WRP second area B start offset - bit_offset: 0 - bit_size: 8 - - name: WRP1B_END - description: Bank 1 WRP second area B end offset - bit_offset: 16 - bit_size: 8 + - name: WRP1B_STRT + description: Bank 1 WRP second area B start offset + bit_offset: 0 + bit_size: 8 + - name: WRP1B_END + description: Bank 1 WRP second area B end offset + bit_offset: 16 + bit_size: 8 fieldset/WRP2AR: description: Flash Bank 2 WRP area A address register fields: - - name: WRP2A_STRT - description: Bank 2 WRP first area A start offset - bit_offset: 0 - bit_size: 8 - - name: WRP2A_END - description: Bank 2 WRP first area A end offset - bit_offset: 16 - bit_size: 8 + - name: WRP2A_STRT + description: Bank 2 WRP first area A start offset + bit_offset: 0 + bit_size: 8 + - name: WRP2A_END + description: Bank 2 WRP first area A end offset + bit_offset: 16 + bit_size: 8 fieldset/WRP2BR: description: Flash Bank 2 WRP area B address register fields: - - name: WRP2B_STRT - description: Bank 2 WRP second area B start offset - bit_offset: 0 - bit_size: 8 - - name: WRP2B_END - description: Bank 2 WRP second area B end offset - bit_offset: 16 - bit_size: 8 + - name: WRP2B_STRT + description: Bank 2 WRP second area B start offset + bit_offset: 0 + bit_size: 8 + - name: WRP2B_END + description: Bank 2 WRP second area B end offset + bit_offset: 16 + bit_size: 8 diff --git a/data/registers/flash_l5.yaml b/data/registers/flash_l5.yaml index 20edc2a..8bce6ee 100644 --- a/data/registers/flash_l5.yaml +++ b/data/registers/flash_l5.yaml @@ -1,698 +1,697 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: PDKEYR - description: Power down key register - byte_offset: 4 - access: Write - fieldset: PDKEYR - - name: NSKEYR - description: Flash non-secure key register - byte_offset: 8 - access: Write - fieldset: NSKEYR - - name: SECKEYR - description: Flash secure key register - byte_offset: 12 - access: Write - fieldset: SECKEYR - - name: OPTKEYR - description: Flash option key register - byte_offset: 16 - access: Write - fieldset: OPTKEYR - - name: LVEKEYR - description: Flash low voltage key register - byte_offset: 20 - access: Write - fieldset: LVEKEYR - - name: NSSR - description: Flash status register - byte_offset: 32 - fieldset: NSSR - - name: SECSR - description: Flash status register - byte_offset: 36 - fieldset: SECSR - - name: NSCR - description: Flash non-secure control register - byte_offset: 40 - fieldset: NSCR - - name: SECCR - description: Flash secure control register - byte_offset: 44 - fieldset: SECCR - - name: ECCR - description: Flash ECC register - byte_offset: 48 - fieldset: ECCR - - name: OPTR - description: Flash option register - byte_offset: 64 - fieldset: OPTR - - name: NSBOOTADD0R - description: Flash non-secure boot address 0 register - byte_offset: 68 - access: Write - fieldset: NSBOOTADD0R - - name: NSBOOTADD1R - description: Flash non-secure boot address 1 register - byte_offset: 72 - access: Write - fieldset: NSBOOTADD1R - - name: SECBOOTADD0R - description: FFlash secure boot address 0 register - byte_offset: 76 - fieldset: SECBOOTADD0R - - name: SECWM1R1 - description: Flash bank 1 secure watermak1 register - byte_offset: 80 - fieldset: SECWM1R1 - - name: SECWM1R2 - description: Flash secure watermak1 register 2 - byte_offset: 84 - fieldset: SECWM1R2 - - name: WRP1AR - description: Flash Bank 1 WRP area A address register - byte_offset: 88 - fieldset: WRP1AR - - name: WRP1BR - description: Flash Bank 1 WRP area B address register - byte_offset: 92 - fieldset: WRP1BR - - name: SECWM2R1 - description: Flash secure watermak2 register - byte_offset: 96 - fieldset: SECWM2R1 - - name: SECWM2R2 - description: Flash secure watermak2 register2 - byte_offset: 100 - fieldset: SECWM2R2 - - name: WRP2AR - description: Flash WPR2 area A address register - byte_offset: 104 - fieldset: WRP2AR - - name: WRP2BR - description: Flash WPR2 area B address register - byte_offset: 108 - fieldset: WRP2BR - - name: SECBB1R1 - description: FLASH secure block based bank 1 register - byte_offset: 128 - fieldset: SECBB1R1 - - name: SECBB1R2 - description: FLASH secure block based bank 1 register - byte_offset: 132 - fieldset: SECBB1R2 - - name: SECBB1R3 - description: FLASH secure block based bank 1 register - byte_offset: 136 - fieldset: SECBB1R3 - - name: SECBB1R4 - description: FLASH secure block based bank 1 register - byte_offset: 140 - fieldset: SECBB1R4 - - name: SECBB2R1 - description: FLASH secure block based bank 2 register - byte_offset: 160 - fieldset: SECBB2R1 - - name: SECBB2R2 - description: FLASH secure block based bank 2 register - byte_offset: 164 - fieldset: SECBB2R2 - - name: SECBB2R3 - description: FLASH secure block based bank 2 register - byte_offset: 168 - fieldset: SECBB2R3 - - name: SECBB2R4 - description: FLASH secure block based bank 2 register - byte_offset: 172 - fieldset: SECBB2R4 - - name: SECHDPCR - description: FLASH secure HDP control register - byte_offset: 192 - fieldset: SECHDPCR - - name: PRIVCFGR - description: Power privilege configuration register - byte_offset: 196 - fieldset: PRIVCFGR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: PDKEYR + description: Power down key register + byte_offset: 4 + access: Write + fieldset: PDKEYR + - name: NSKEYR + description: Flash non-secure key register + byte_offset: 8 + access: Write + fieldset: NSKEYR + - name: SECKEYR + description: Flash secure key register + byte_offset: 12 + access: Write + fieldset: SECKEYR + - name: OPTKEYR + description: Flash option key register + byte_offset: 16 + access: Write + fieldset: OPTKEYR + - name: LVEKEYR + description: Flash low voltage key register + byte_offset: 20 + access: Write + fieldset: LVEKEYR + - name: NSSR + description: Flash status register + byte_offset: 32 + fieldset: NSSR + - name: SECSR + description: Flash status register + byte_offset: 36 + fieldset: SECSR + - name: NSCR + description: Flash non-secure control register + byte_offset: 40 + fieldset: NSCR + - name: SECCR + description: Flash secure control register + byte_offset: 44 + fieldset: SECCR + - name: ECCR + description: Flash ECC register + byte_offset: 48 + fieldset: ECCR + - name: OPTR + description: Flash option register + byte_offset: 64 + fieldset: OPTR + - name: NSBOOTADD0R + description: Flash non-secure boot address 0 register + byte_offset: 68 + access: Write + fieldset: NSBOOTADD0R + - name: NSBOOTADD1R + description: Flash non-secure boot address 1 register + byte_offset: 72 + access: Write + fieldset: NSBOOTADD1R + - name: SECBOOTADD0R + description: FFlash secure boot address 0 register + byte_offset: 76 + fieldset: SECBOOTADD0R + - name: SECWM1R1 + description: Flash bank 1 secure watermak1 register + byte_offset: 80 + fieldset: SECWM1R1 + - name: SECWM1R2 + description: Flash secure watermak1 register 2 + byte_offset: 84 + fieldset: SECWM1R2 + - name: WRP1AR + description: Flash Bank 1 WRP area A address register + byte_offset: 88 + fieldset: WRP1AR + - name: WRP1BR + description: Flash Bank 1 WRP area B address register + byte_offset: 92 + fieldset: WRP1BR + - name: SECWM2R1 + description: Flash secure watermak2 register + byte_offset: 96 + fieldset: SECWM2R1 + - name: SECWM2R2 + description: Flash secure watermak2 register2 + byte_offset: 100 + fieldset: SECWM2R2 + - name: WRP2AR + description: Flash WPR2 area A address register + byte_offset: 104 + fieldset: WRP2AR + - name: WRP2BR + description: Flash WPR2 area B address register + byte_offset: 108 + fieldset: WRP2BR + - name: SECBB1R1 + description: FLASH secure block based bank 1 register + byte_offset: 128 + fieldset: SECBB1R1 + - name: SECBB1R2 + description: FLASH secure block based bank 1 register + byte_offset: 132 + fieldset: SECBB1R2 + - name: SECBB1R3 + description: FLASH secure block based bank 1 register + byte_offset: 136 + fieldset: SECBB1R3 + - name: SECBB1R4 + description: FLASH secure block based bank 1 register + byte_offset: 140 + fieldset: SECBB1R4 + - name: SECBB2R1 + description: FLASH secure block based bank 2 register + byte_offset: 160 + fieldset: SECBB2R1 + - name: SECBB2R2 + description: FLASH secure block based bank 2 register + byte_offset: 164 + fieldset: SECBB2R2 + - name: SECBB2R3 + description: FLASH secure block based bank 2 register + byte_offset: 168 + fieldset: SECBB2R3 + - name: SECBB2R4 + description: FLASH secure block based bank 2 register + byte_offset: 172 + fieldset: SECBB2R4 + - name: SECHDPCR + description: FLASH secure HDP control register + byte_offset: 192 + fieldset: SECHDPCR + - name: PRIVCFGR + description: Power privilege configuration register + byte_offset: 196 + fieldset: PRIVCFGR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 4 - - name: RUN_PD - description: Flash Power-down mode during Low-power run mode - bit_offset: 13 - bit_size: 1 - - name: SLEEP_PD - description: Flash Power-down mode during Low-power sleep mode - bit_offset: 14 - bit_size: 1 - - name: LVEN - description: LVEN - bit_offset: 15 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 4 + - name: RUN_PD + description: Flash Power-down mode during Low-power run mode + bit_offset: 13 + bit_size: 1 + - name: SLEEP_PD + description: Flash Power-down mode during Low-power sleep mode + bit_offset: 14 + bit_size: 1 + - name: LVEN + description: LVEN + bit_offset: 15 + bit_size: 1 fieldset/ECCR: description: Flash ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 19 - - name: BK_ECC - description: BK_ECC - bit_offset: 21 - bit_size: 1 - - name: SYSF_ECC - description: SYSF_ECC - bit_offset: 22 - bit_size: 1 - - name: ECCIE - description: ECC correction interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ECCC2 - description: ECCC2 - bit_offset: 28 - bit_size: 1 - - name: ECCD2 - description: ECCD2 - bit_offset: 29 - bit_size: 1 - - name: ECCC - description: ECC correction - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: ECC detection - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 19 + - name: BK_ECC + description: BK_ECC + bit_offset: 21 + bit_size: 1 + - name: SYSF_ECC + description: SYSF_ECC + bit_offset: 22 + bit_size: 1 + - name: ECCIE + description: ECC correction interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ECCC2 + description: ECCC2 + bit_offset: 28 + bit_size: 1 + - name: ECCD2 + description: ECCD2 + bit_offset: 29 + bit_size: 1 + - name: ECCC + description: ECC correction + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: ECC detection + bit_offset: 31 + bit_size: 1 fieldset/LVEKEYR: description: Flash low voltage key register fields: - - name: LVEKEYR - description: LVEKEYR - bit_offset: 0 - bit_size: 32 + - name: LVEKEYR + description: LVEKEYR + bit_offset: 0 + bit_size: 32 fieldset/NSBOOTADD0R: description: Flash non-secure boot address 0 register fields: - - name: NSBOOTADD0 - description: NSBOOTADD0 - bit_offset: 7 - bit_size: 25 + - name: NSBOOTADD0 + description: NSBOOTADD0 + bit_offset: 7 + bit_size: 25 fieldset/NSBOOTADD1R: description: Flash non-secure boot address 1 register fields: - - name: NSBOOTADD1 - description: NSBOOTADD1 - bit_offset: 7 - bit_size: 25 + - name: NSBOOTADD1 + description: NSBOOTADD1 + bit_offset: 7 + bit_size: 25 fieldset/NSCR: description: Flash non-secure control register fields: - - name: NSPG - description: NSPG - bit_offset: 0 - bit_size: 1 - - name: NSPER - description: NSPER - bit_offset: 1 - bit_size: 1 - - name: NSMER1 - description: NSMER1 - bit_offset: 2 - bit_size: 1 - - name: NSPNB - description: NSPNB - bit_offset: 3 - bit_size: 7 - - name: NSBKER - description: NSBKER - bit_offset: 11 - bit_size: 1 - - name: NSMER2 - description: NSMER2 - bit_offset: 15 - bit_size: 1 - - name: NSSTRT - description: Options modification start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: NSEOPIE - description: NSEOPIE - bit_offset: 24 - bit_size: 1 - - name: NSERRIE - description: NSERRIE - bit_offset: 25 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: NSLOCK - description: NSLOCK - bit_offset: 31 - bit_size: 1 + - name: NSPG + description: NSPG + bit_offset: 0 + bit_size: 1 + - name: NSPER + description: NSPER + bit_offset: 1 + bit_size: 1 + - name: NSMER1 + description: NSMER1 + bit_offset: 2 + bit_size: 1 + - name: NSPNB + description: NSPNB + bit_offset: 3 + bit_size: 7 + - name: NSBKER + description: NSBKER + bit_offset: 11 + bit_size: 1 + - name: NSMER2 + description: NSMER2 + bit_offset: 15 + bit_size: 1 + - name: NSSTRT + description: Options modification start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: NSEOPIE + description: NSEOPIE + bit_offset: 24 + bit_size: 1 + - name: NSERRIE + description: NSERRIE + bit_offset: 25 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: NSLOCK + description: NSLOCK + bit_offset: 31 + bit_size: 1 fieldset/NSKEYR: description: Flash non-secure key register fields: - - name: NSKEYR - description: NSKEYR - bit_offset: 0 - bit_size: 32 + - name: NSKEYR + description: NSKEYR + bit_offset: 0 + bit_size: 32 fieldset/NSSR: description: Flash status register fields: - - name: NSEOP - description: NSEOP - bit_offset: 0 - bit_size: 1 - - name: NSOPERR - description: NSOPERR - bit_offset: 1 - bit_size: 1 - - name: NSPROGERR - description: NSPROGERR - bit_offset: 3 - bit_size: 1 - - name: NSWRPERR - description: NSWRPERR - bit_offset: 4 - bit_size: 1 - - name: NSPGAERR - description: NSPGAERR - bit_offset: 5 - bit_size: 1 - - name: NSSIZERR - description: NSSIZERR - bit_offset: 6 - bit_size: 1 - - name: NSPGSERR - description: NSPGSERR - bit_offset: 7 - bit_size: 1 - - name: OPTWERR - description: OPTWERR - bit_offset: 13 - bit_size: 1 - - name: OPTVERR - description: OPTVERR - bit_offset: 15 - bit_size: 1 - - name: NSBSY - description: NSBusy - bit_offset: 16 - bit_size: 1 + - name: NSEOP + description: NSEOP + bit_offset: 0 + bit_size: 1 + - name: NSOPERR + description: NSOPERR + bit_offset: 1 + bit_size: 1 + - name: NSPROGERR + description: NSPROGERR + bit_offset: 3 + bit_size: 1 + - name: NSWRPERR + description: NSWRPERR + bit_offset: 4 + bit_size: 1 + - name: NSPGAERR + description: NSPGAERR + bit_offset: 5 + bit_size: 1 + - name: NSSIZERR + description: NSSIZERR + bit_offset: 6 + bit_size: 1 + - name: NSPGSERR + description: NSPGSERR + bit_offset: 7 + bit_size: 1 + - name: OPTWERR + description: OPTWERR + bit_offset: 13 + bit_size: 1 + - name: OPTVERR + description: OPTVERR + bit_offset: 15 + bit_size: 1 + - name: NSBSY + description: NSBusy + bit_offset: 16 + bit_size: 1 fieldset/OPTKEYR: description: Flash option key register fields: - - name: OPTKEYR - description: OPTKEYR - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: OPTKEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 8 - bit_size: 3 - - name: nRST_STOP - description: nRST_STOP - bit_offset: 12 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 13 - bit_size: 1 - - name: nRST_SHDW - description: nRST_SHDW - bit_offset: 14 - bit_size: 1 - - name: IWDG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: SWAP_BANK - description: SWAP_BANK - bit_offset: 20 - bit_size: 1 - - name: DB256K - description: DB256K - bit_offset: 21 - bit_size: 1 - - name: DBANK - description: DBANK - bit_offset: 22 - bit_size: 1 - - name: SRAM2_PE - description: SRAM2 parity check enable - bit_offset: 24 - bit_size: 1 - - name: SRAM2_RST - description: SRAM2 Erase when system reset - bit_offset: 25 - bit_size: 1 - - name: nSWBOOT0 - description: nSWBOOT0 - bit_offset: 26 - bit_size: 1 - - name: nBOOT0 - description: nBOOT0 - bit_offset: 27 - bit_size: 1 - - name: PA15_PUPEN - description: PA15_PUPEN - bit_offset: 28 - bit_size: 1 - - name: TZEN - description: TZEN - bit_offset: 31 - bit_size: 1 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 8 + bit_size: 3 + - name: nRST_STOP + description: nRST_STOP + bit_offset: 12 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 13 + bit_size: 1 + - name: nRST_SHDW + description: nRST_SHDW + bit_offset: 14 + bit_size: 1 + - name: IWDG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: SWAP_BANK + description: SWAP_BANK + bit_offset: 20 + bit_size: 1 + - name: DB256K + description: DB256K + bit_offset: 21 + bit_size: 1 + - name: DBANK + description: DBANK + bit_offset: 22 + bit_size: 1 + - name: SRAM2_PE + description: SRAM2 parity check enable + bit_offset: 24 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 Erase when system reset + bit_offset: 25 + bit_size: 1 + - name: nSWBOOT0 + description: nSWBOOT0 + bit_offset: 26 + bit_size: 1 + - name: nBOOT0 + description: nBOOT0 + bit_offset: 27 + bit_size: 1 + - name: PA15_PUPEN + description: PA15_PUPEN + bit_offset: 28 + bit_size: 1 + - name: TZEN + description: TZEN + bit_offset: 31 + bit_size: 1 fieldset/PDKEYR: description: Power down key register fields: - - name: PDKEYR - description: RUN_PD in FLASH_ACR key - bit_offset: 0 - bit_size: 32 + - name: PDKEYR + description: RUN_PD in FLASH_ACR key + bit_offset: 0 + bit_size: 32 fieldset/PRIVCFGR: description: Power privilege configuration register fields: - - name: PRIV - description: PRIV - bit_offset: 0 - bit_size: 1 + - name: PRIV + description: PRIV + bit_offset: 0 + bit_size: 1 fieldset/SECBB1R1: description: FLASH secure block based bank 1 register fields: - - name: SECBB1 - description: SECBB1 - bit_offset: 0 - bit_size: 32 + - name: SECBB1 + description: SECBB1 + bit_offset: 0 + bit_size: 32 fieldset/SECBB1R2: description: FLASH secure block based bank 1 register fields: - - name: SECBB1 - description: SECBB1 - bit_offset: 0 - bit_size: 32 + - name: SECBB1 + description: SECBB1 + bit_offset: 0 + bit_size: 32 fieldset/SECBB1R3: description: FLASH secure block based bank 1 register fields: - - name: SECBB1 - description: SECBB1 - bit_offset: 0 - bit_size: 32 + - name: SECBB1 + description: SECBB1 + bit_offset: 0 + bit_size: 32 fieldset/SECBB1R4: description: FLASH secure block based bank 1 register fields: - - name: SECBB1 - description: SECBB1 - bit_offset: 0 - bit_size: 32 + - name: SECBB1 + description: SECBB1 + bit_offset: 0 + bit_size: 32 fieldset/SECBB2R1: description: FLASH secure block based bank 2 register fields: - - name: SECBB2 - description: SECBB2 - bit_offset: 0 - bit_size: 32 + - name: SECBB2 + description: SECBB2 + bit_offset: 0 + bit_size: 32 fieldset/SECBB2R2: description: FLASH secure block based bank 2 register fields: - - name: SECBB2 - description: SECBB2 - bit_offset: 0 - bit_size: 32 + - name: SECBB2 + description: SECBB2 + bit_offset: 0 + bit_size: 32 fieldset/SECBB2R3: description: FLASH secure block based bank 2 register fields: - - name: SECBB2 - description: SECBB2 - bit_offset: 0 - bit_size: 32 + - name: SECBB2 + description: SECBB2 + bit_offset: 0 + bit_size: 32 fieldset/SECBB2R4: description: FLASH secure block based bank 2 register fields: - - name: SECBB2 - description: SECBB2 - bit_offset: 0 - bit_size: 32 + - name: SECBB2 + description: SECBB2 + bit_offset: 0 + bit_size: 32 fieldset/SECBOOTADD0R: description: FFlash secure boot address 0 register fields: - - name: BOOT_LOCK - description: BOOT_LOCK - bit_offset: 0 - bit_size: 1 - - name: SECBOOTADD0 - description: SECBOOTADD0 - bit_offset: 7 - bit_size: 25 + - name: BOOT_LOCK + description: BOOT_LOCK + bit_offset: 0 + bit_size: 1 + - name: SECBOOTADD0 + description: SECBOOTADD0 + bit_offset: 7 + bit_size: 25 fieldset/SECCR: description: Flash secure control register fields: - - name: SECPG - description: SECPG - bit_offset: 0 - bit_size: 1 - - name: SECPER - description: SECPER - bit_offset: 1 - bit_size: 1 - - name: SECMER1 - description: SECMER1 - bit_offset: 2 - bit_size: 1 - - name: SECPNB - description: SECPNB - bit_offset: 3 - bit_size: 7 - - name: SECBKER - description: SECBKER - bit_offset: 11 - bit_size: 1 - - name: SECMER2 - description: SECMER2 - bit_offset: 15 - bit_size: 1 - - name: SECSTRT - description: SECSTRT - bit_offset: 16 - bit_size: 1 - - name: SECEOPIE - description: SECEOPIE - bit_offset: 24 - bit_size: 1 - - name: SECERRIE - description: SECERRIE - bit_offset: 25 - bit_size: 1 - - name: SECRDERRIE - description: SECRDERRIE - bit_offset: 26 - bit_size: 1 - - name: SECINV - description: SECINV - bit_offset: 29 - bit_size: 1 - - name: SECLOCK - description: SECLOCK - bit_offset: 31 - bit_size: 1 + - name: SECPG + description: SECPG + bit_offset: 0 + bit_size: 1 + - name: SECPER + description: SECPER + bit_offset: 1 + bit_size: 1 + - name: SECMER1 + description: SECMER1 + bit_offset: 2 + bit_size: 1 + - name: SECPNB + description: SECPNB + bit_offset: 3 + bit_size: 7 + - name: SECBKER + description: SECBKER + bit_offset: 11 + bit_size: 1 + - name: SECMER2 + description: SECMER2 + bit_offset: 15 + bit_size: 1 + - name: SECSTRT + description: SECSTRT + bit_offset: 16 + bit_size: 1 + - name: SECEOPIE + description: SECEOPIE + bit_offset: 24 + bit_size: 1 + - name: SECERRIE + description: SECERRIE + bit_offset: 25 + bit_size: 1 + - name: SECRDERRIE + description: SECRDERRIE + bit_offset: 26 + bit_size: 1 + - name: SECINV + description: SECINV + bit_offset: 29 + bit_size: 1 + - name: SECLOCK + description: SECLOCK + bit_offset: 31 + bit_size: 1 fieldset/SECHDPCR: description: FLASH secure HDP control register fields: - - name: HDP1_ACCDIS - description: HDP1_ACCDIS - bit_offset: 0 - bit_size: 1 - - name: HDP2_ACCDIS - description: HDP2_ACCDIS - bit_offset: 1 - bit_size: 1 + - name: HDP1_ACCDIS + description: HDP1_ACCDIS + bit_offset: 0 + bit_size: 1 + - name: HDP2_ACCDIS + description: HDP2_ACCDIS + bit_offset: 1 + bit_size: 1 fieldset/SECKEYR: description: Flash secure key register fields: - - name: SECKEYR - description: SECKEYR - bit_offset: 0 - bit_size: 32 + - name: SECKEYR + description: SECKEYR + bit_offset: 0 + bit_size: 32 fieldset/SECSR: description: Flash status register fields: - - name: SECEOP - description: SECEOP - bit_offset: 0 - bit_size: 1 - - name: SECOPERR - description: SECOPERR - bit_offset: 1 - bit_size: 1 - - name: SECPROGERR - description: SECPROGERR - bit_offset: 3 - bit_size: 1 - - name: SECWRPERR - description: SECWRPERR - bit_offset: 4 - bit_size: 1 - - name: SECPGAERR - description: SECPGAERR - bit_offset: 5 - bit_size: 1 - - name: SECSIZERR - description: SECSIZERR - bit_offset: 6 - bit_size: 1 - - name: SECPGSERR - description: SECPGSERR - bit_offset: 7 - bit_size: 1 - - name: SECRDERR - description: Secure read protection error - bit_offset: 14 - bit_size: 1 - - name: SECBSY - description: SECBusy - bit_offset: 16 - bit_size: 1 + - name: SECEOP + description: SECEOP + bit_offset: 0 + bit_size: 1 + - name: SECOPERR + description: SECOPERR + bit_offset: 1 + bit_size: 1 + - name: SECPROGERR + description: SECPROGERR + bit_offset: 3 + bit_size: 1 + - name: SECWRPERR + description: SECWRPERR + bit_offset: 4 + bit_size: 1 + - name: SECPGAERR + description: SECPGAERR + bit_offset: 5 + bit_size: 1 + - name: SECSIZERR + description: SECSIZERR + bit_offset: 6 + bit_size: 1 + - name: SECPGSERR + description: SECPGSERR + bit_offset: 7 + bit_size: 1 + - name: SECRDERR + description: Secure read protection error + bit_offset: 14 + bit_size: 1 + - name: SECBSY + description: SECBusy + bit_offset: 16 + bit_size: 1 fieldset/SECWM1R1: description: Flash bank 1 secure watermak1 register fields: - - name: SECWM1_PSTRT - description: SECWM1_PSTRT - bit_offset: 0 - bit_size: 7 - - name: SECWM1_PEND - description: SECWM1_PEND - bit_offset: 16 - bit_size: 7 + - name: SECWM1_PSTRT + description: SECWM1_PSTRT + bit_offset: 0 + bit_size: 7 + - name: SECWM1_PEND + description: SECWM1_PEND + bit_offset: 16 + bit_size: 7 fieldset/SECWM1R2: description: Flash secure watermak1 register 2 fields: - - name: PCROP1_PSTRT - description: PCROP1_PSTRT - bit_offset: 0 - bit_size: 7 - - name: PCROP1EN - description: PCROP1EN - bit_offset: 15 - bit_size: 1 - - name: HDP1_PEND - description: HDP1_PEND - bit_offset: 16 - bit_size: 7 - - name: HDP1EN - description: HDP1EN - bit_offset: 31 - bit_size: 1 + - name: PCROP1_PSTRT + description: PCROP1_PSTRT + bit_offset: 0 + bit_size: 7 + - name: PCROP1EN + description: PCROP1EN + bit_offset: 15 + bit_size: 1 + - name: HDP1_PEND + description: HDP1_PEND + bit_offset: 16 + bit_size: 7 + - name: HDP1EN + description: HDP1EN + bit_offset: 31 + bit_size: 1 fieldset/SECWM2R1: description: Flash secure watermak2 register fields: - - name: SECWM2_PSTRT - description: SECWM2_PSTRT - bit_offset: 0 - bit_size: 7 - - name: SECWM2_PEND - description: SECWM2_PEND - bit_offset: 16 - bit_size: 7 + - name: SECWM2_PSTRT + description: SECWM2_PSTRT + bit_offset: 0 + bit_size: 7 + - name: SECWM2_PEND + description: SECWM2_PEND + bit_offset: 16 + bit_size: 7 fieldset/SECWM2R2: description: Flash secure watermak2 register2 fields: - - name: PCROP2_PSTRT - description: PCROP2_PSTRT - bit_offset: 0 - bit_size: 7 - - name: PCROP2EN - description: PCROP2EN - bit_offset: 15 - bit_size: 1 - - name: HDP2_PEND - description: HDP2_PEND - bit_offset: 16 - bit_size: 7 - - name: HDP2EN - description: HDP2EN - bit_offset: 31 - bit_size: 1 + - name: PCROP2_PSTRT + description: PCROP2_PSTRT + bit_offset: 0 + bit_size: 7 + - name: PCROP2EN + description: PCROP2EN + bit_offset: 15 + bit_size: 1 + - name: HDP2_PEND + description: HDP2_PEND + bit_offset: 16 + bit_size: 7 + - name: HDP2EN + description: HDP2EN + bit_offset: 31 + bit_size: 1 fieldset/WRP1AR: description: Flash Bank 1 WRP area A address register fields: - - name: WRP1A_PSTRT - description: WRP1A_PSTRT - bit_offset: 0 - bit_size: 7 - - name: WRP1A_PEND - description: WRP1A_PEND - bit_offset: 16 - bit_size: 7 + - name: WRP1A_PSTRT + description: WRP1A_PSTRT + bit_offset: 0 + bit_size: 7 + - name: WRP1A_PEND + description: WRP1A_PEND + bit_offset: 16 + bit_size: 7 fieldset/WRP1BR: description: Flash Bank 1 WRP area B address register fields: - - name: WRP1B_PSTRT - description: WRP1B_PSTRT - bit_offset: 0 - bit_size: 7 - - name: WRP1B_PEND - description: WRP1B_PEND - bit_offset: 16 - bit_size: 7 + - name: WRP1B_PSTRT + description: WRP1B_PSTRT + bit_offset: 0 + bit_size: 7 + - name: WRP1B_PEND + description: WRP1B_PEND + bit_offset: 16 + bit_size: 7 fieldset/WRP2AR: description: Flash WPR2 area A address register fields: - - name: WRP2A_PSTRT - description: WRP2A_PSTRT - bit_offset: 0 - bit_size: 7 - - name: WRP2A_PEND - description: WRP2A_PEND - bit_offset: 16 - bit_size: 7 + - name: WRP2A_PSTRT + description: WRP2A_PSTRT + bit_offset: 0 + bit_size: 7 + - name: WRP2A_PEND + description: WRP2A_PEND + bit_offset: 16 + bit_size: 7 fieldset/WRP2BR: description: Flash WPR2 area B address register fields: - - name: WRP2B_PSTRT - description: WRP2B_PSTRT - bit_offset: 0 - bit_size: 7 - - name: WRP2B_PEND - description: WRP2B_PEND - bit_offset: 16 - bit_size: 7 + - name: WRP2B_PSTRT + description: WRP2B_PSTRT + bit_offset: 0 + bit_size: 7 + - name: WRP2B_PEND + description: WRP2B_PEND + bit_offset: 16 + bit_size: 7 diff --git a/data/registers/flash_u5.yaml b/data/registers/flash_u5.yaml index d31533f..8ad8908 100644 --- a/data/registers/flash_u5.yaml +++ b/data/registers/flash_u5.yaml @@ -1,3306 +1,3305 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: FLASH access control register - byte_offset: 0 - fieldset: ACR - - name: NSKEYR - description: FLASH non-secure key register - byte_offset: 8 - fieldset: NSKEYR - - name: SECKEYR - description: FLASH secure key register - byte_offset: 12 - fieldset: SECKEYR - - name: OPTKEYR - description: FLASH option key register - byte_offset: 16 - fieldset: OPTKEYR - - name: PDKEY1R - description: FLASH bank 1 power-down key register - byte_offset: 24 - fieldset: PDKEY1R - - name: PDKEY2R - description: FLASH bank 2 power-down key register - byte_offset: 28 - fieldset: PDKEY2R - - name: NSSR - description: FLASH non-secure status register - byte_offset: 32 - fieldset: NSSR - - name: SECSR - description: FLASH secure status register - byte_offset: 36 - fieldset: SECSR - - name: NSCR - description: FLASH non-secure control register - byte_offset: 40 - fieldset: NSCR - - name: SECCR - description: FLASH secure control register - byte_offset: 44 - fieldset: SECCR - - name: ECCR - description: FLASH ECC register - byte_offset: 48 - fieldset: ECCR - - name: OPSR - description: FLASH operation status register - byte_offset: 52 - fieldset: OPSR - - name: OPTR - description: FLASH option register - byte_offset: 64 - fieldset: OPTR - - name: NSBOOTADD0R - description: FLASH non-secure boot address 0 register - byte_offset: 68 - fieldset: NSBOOTADD0R - - name: NSBOOTADD1R - description: FLASH non-secure boot address 1 register - byte_offset: 72 - fieldset: NSBOOTADD1R - - name: SECBOOTADD0R - description: FLASH secure boot address 0 register - byte_offset: 76 - fieldset: SECBOOTADD0R - - name: SECWM1R1 - description: FLASH secure watermark1 register 1 - byte_offset: 80 - fieldset: SECWM1R1 - - name: SECWM1R2 - description: FLASH secure watermark1 register 2 - byte_offset: 84 - fieldset: SECWM1R2 - - name: WRP1AR - description: FLASH WRP1 area A address register - byte_offset: 88 - fieldset: WRP1AR - - name: WRP1BR - description: FLASH WRP1 area B address register - byte_offset: 92 - fieldset: WRP1BR - - name: SECWM2R1 - description: FLASH secure watermark2 register 1 - byte_offset: 96 - fieldset: SECWM2R1 - - name: SECWM2R2 - description: FLASH secure watermark2 register 2 - byte_offset: 100 - fieldset: SECWM2R2 - - name: WRP2AR - description: FLASH WPR2 area A address register - byte_offset: 104 - fieldset: WRP2AR - - name: WRP2BR - description: FLASH WPR2 area B address register - byte_offset: 108 - fieldset: WRP2BR - - name: OEM1KEYR1 - description: FLASH OEM1 key register 1 - byte_offset: 112 - fieldset: OEM1KEYR1 - - name: OEM1KEYR2 - description: FLASH OEM1 key register 2 - byte_offset: 116 - fieldset: OEM1KEYR2 - - name: OEM2KEYR1 - description: FLASH OEM2 key register 1 - byte_offset: 120 - fieldset: OEM2KEYR1 - - name: OEM2KEYR2 - description: FLASH OEM2 key register 2 - byte_offset: 124 - fieldset: OEM2KEYR2 - - name: SEC1BBR1 - description: FLASH secure block based bank 1 register 1 - byte_offset: 128 - fieldset: SEC1BBR1 - - name: SEC1BBR2 - description: FLASH secure block based bank 1 register 2 - byte_offset: 132 - fieldset: SEC1BBR2 - - name: SEC1BBR3 - description: FLASH secure block based bank 1 register 3 - byte_offset: 136 - fieldset: SEC1BBR3 - - name: SEC1BBR4 - description: FLASH secure block based bank 1 register 4 - byte_offset: 140 - fieldset: SEC1BBR4 - - name: SEC2BBR1 - description: FLASH secure block based bank 2 register 1 - byte_offset: 160 - fieldset: SEC2BBR1 - - name: SEC2BBR2 - description: FLASH secure block based bank 2 register 2 - byte_offset: 164 - fieldset: SEC2BBR2 - - name: SEC2BBR3 - description: FLASH secure block based bank 2 register 3 - byte_offset: 168 - fieldset: SEC2BBR3 - - name: SEC2BBR4 - description: FLASH secure block based bank 2 register 4 - byte_offset: 172 - fieldset: SEC2BBR4 - - name: SECHDPCR - description: FLASH secure HDP control register - byte_offset: 192 - fieldset: SECHDPCR - - name: PRIVCFGR - description: FLASH privilege configuration register - byte_offset: 196 - fieldset: PRIVCFGR - - name: PRIV1BBR1 - description: FLASH privilege block based bank 1 register 1 - byte_offset: 208 - fieldset: PRIV1BBR1 - - name: PRIV1BBR2 - description: FLASH privilege block based bank 1 register 2 - byte_offset: 212 - fieldset: PRIV1BBR2 - - name: PRIV1BBR3 - description: FLASH privilege block based bank 1 register 3 - byte_offset: 216 - fieldset: PRIV1BBR3 - - name: PRIV1BBR4 - description: FLASH privilege block based bank 1 register 4 - byte_offset: 220 - fieldset: PRIV1BBR4 - - name: PRIV2BBR1 - description: FLASH privilege block based bank 2 register 1 - byte_offset: 240 - fieldset: PRIV2BBR1 - - name: PRIV2BBR2 - description: FLASH privilege block based bank 2 register 2 - byte_offset: 244 - fieldset: PRIV2BBR2 - - name: PRIV2BBR3 - description: FLASH privilege block based bank 2 register 3 - byte_offset: 248 - fieldset: PRIV2BBR3 - - name: PRIV2BBR4 - description: FLASH privilege block based bank 2 register 4 - byte_offset: 252 - fieldset: PRIV2BBR4 + - name: ACR + description: FLASH access control register + byte_offset: 0 + fieldset: ACR + - name: NSKEYR + description: FLASH non-secure key register + byte_offset: 8 + fieldset: NSKEYR + - name: SECKEYR + description: FLASH secure key register + byte_offset: 12 + fieldset: SECKEYR + - name: OPTKEYR + description: FLASH option key register + byte_offset: 16 + fieldset: OPTKEYR + - name: PDKEY1R + description: FLASH bank 1 power-down key register + byte_offset: 24 + fieldset: PDKEY1R + - name: PDKEY2R + description: FLASH bank 2 power-down key register + byte_offset: 28 + fieldset: PDKEY2R + - name: NSSR + description: FLASH non-secure status register + byte_offset: 32 + fieldset: NSSR + - name: SECSR + description: FLASH secure status register + byte_offset: 36 + fieldset: SECSR + - name: NSCR + description: FLASH non-secure control register + byte_offset: 40 + fieldset: NSCR + - name: SECCR + description: FLASH secure control register + byte_offset: 44 + fieldset: SECCR + - name: ECCR + description: FLASH ECC register + byte_offset: 48 + fieldset: ECCR + - name: OPSR + description: FLASH operation status register + byte_offset: 52 + fieldset: OPSR + - name: OPTR + description: FLASH option register + byte_offset: 64 + fieldset: OPTR + - name: NSBOOTADD0R + description: FLASH non-secure boot address 0 register + byte_offset: 68 + fieldset: NSBOOTADD0R + - name: NSBOOTADD1R + description: FLASH non-secure boot address 1 register + byte_offset: 72 + fieldset: NSBOOTADD1R + - name: SECBOOTADD0R + description: FLASH secure boot address 0 register + byte_offset: 76 + fieldset: SECBOOTADD0R + - name: SECWM1R1 + description: FLASH secure watermark1 register 1 + byte_offset: 80 + fieldset: SECWM1R1 + - name: SECWM1R2 + description: FLASH secure watermark1 register 2 + byte_offset: 84 + fieldset: SECWM1R2 + - name: WRP1AR + description: FLASH WRP1 area A address register + byte_offset: 88 + fieldset: WRP1AR + - name: WRP1BR + description: FLASH WRP1 area B address register + byte_offset: 92 + fieldset: WRP1BR + - name: SECWM2R1 + description: FLASH secure watermark2 register 1 + byte_offset: 96 + fieldset: SECWM2R1 + - name: SECWM2R2 + description: FLASH secure watermark2 register 2 + byte_offset: 100 + fieldset: SECWM2R2 + - name: WRP2AR + description: FLASH WPR2 area A address register + byte_offset: 104 + fieldset: WRP2AR + - name: WRP2BR + description: FLASH WPR2 area B address register + byte_offset: 108 + fieldset: WRP2BR + - name: OEM1KEYR1 + description: FLASH OEM1 key register 1 + byte_offset: 112 + fieldset: OEM1KEYR1 + - name: OEM1KEYR2 + description: FLASH OEM1 key register 2 + byte_offset: 116 + fieldset: OEM1KEYR2 + - name: OEM2KEYR1 + description: FLASH OEM2 key register 1 + byte_offset: 120 + fieldset: OEM2KEYR1 + - name: OEM2KEYR2 + description: FLASH OEM2 key register 2 + byte_offset: 124 + fieldset: OEM2KEYR2 + - name: SEC1BBR1 + description: FLASH secure block based bank 1 register 1 + byte_offset: 128 + fieldset: SEC1BBR1 + - name: SEC1BBR2 + description: FLASH secure block based bank 1 register 2 + byte_offset: 132 + fieldset: SEC1BBR2 + - name: SEC1BBR3 + description: FLASH secure block based bank 1 register 3 + byte_offset: 136 + fieldset: SEC1BBR3 + - name: SEC1BBR4 + description: FLASH secure block based bank 1 register 4 + byte_offset: 140 + fieldset: SEC1BBR4 + - name: SEC2BBR1 + description: FLASH secure block based bank 2 register 1 + byte_offset: 160 + fieldset: SEC2BBR1 + - name: SEC2BBR2 + description: FLASH secure block based bank 2 register 2 + byte_offset: 164 + fieldset: SEC2BBR2 + - name: SEC2BBR3 + description: FLASH secure block based bank 2 register 3 + byte_offset: 168 + fieldset: SEC2BBR3 + - name: SEC2BBR4 + description: FLASH secure block based bank 2 register 4 + byte_offset: 172 + fieldset: SEC2BBR4 + - name: SECHDPCR + description: FLASH secure HDP control register + byte_offset: 192 + fieldset: SECHDPCR + - name: PRIVCFGR + description: FLASH privilege configuration register + byte_offset: 196 + fieldset: PRIVCFGR + - name: PRIV1BBR1 + description: FLASH privilege block based bank 1 register 1 + byte_offset: 208 + fieldset: PRIV1BBR1 + - name: PRIV1BBR2 + description: FLASH privilege block based bank 1 register 2 + byte_offset: 212 + fieldset: PRIV1BBR2 + - name: PRIV1BBR3 + description: FLASH privilege block based bank 1 register 3 + byte_offset: 216 + fieldset: PRIV1BBR3 + - name: PRIV1BBR4 + description: FLASH privilege block based bank 1 register 4 + byte_offset: 220 + fieldset: PRIV1BBR4 + - name: PRIV2BBR1 + description: FLASH privilege block based bank 2 register 1 + byte_offset: 240 + fieldset: PRIV2BBR1 + - name: PRIV2BBR2 + description: FLASH privilege block based bank 2 register 2 + byte_offset: 244 + fieldset: PRIV2BBR2 + - name: PRIV2BBR3 + description: FLASH privilege block based bank 2 register 3 + byte_offset: 248 + fieldset: PRIV2BBR3 + - name: PRIV2BBR4 + description: FLASH privilege block based bank 2 register 4 + byte_offset: 252 + fieldset: PRIV2BBR4 fieldset/ACR: description: FLASH access control register fields: - - name: LATENCY - description: "Latency\r These bits represent the ratio between the HCLK (AHB clock) period and the Flash memory access time.\r ..." - bit_offset: 0 - bit_size: 4 - - name: PRFTEN - description: "Prefetch enable\r This bit enables the prefetch buffer in the embedded Flash memory." - bit_offset: 8 - bit_size: 1 - - name: LPM - description: "Low-power read mode\r This bit puts the Flash memory in low-power read mode." - bit_offset: 11 - bit_size: 1 - enum: LPM - - name: PDREQ1 - description: "Bank 1 power-down mode request\r This bit is write-protected with FLASH_PDKEY1R. This bit requests bank 1 to enter power-down mode. When bank 1 enters power-down mode, this bit is cleared by hardware and the PDKEY1R is locked." - bit_offset: 12 - bit_size: 1 - enum: PDREQ - - name: PDREQ2 - description: "Bank 2 power-down mode request\r This bit is write-protected with FLASH_PDKEY2R. This bit requests bank 2 to enter power-down mode. When bank 2 enters power-down mode, this bit is cleared by hardware and the PDKEY2R is locked." - bit_offset: 13 - bit_size: 1 - enum: PDREQ - - name: SLEEP_PD - description: "Flash memory power-down mode during Sleep mode\r This bit determines whether the Flash memory is in power-down mode or Idle mode when the device is in Sleep mode.\r The Flash must not be put in power-down while a program or an erase operation is on-going." - bit_offset: 14 - bit_size: 1 - enum: SLEEP_PD + - name: LATENCY + description: "Latency\r These bits represent the ratio between the HCLK (AHB clock) period and the Flash memory access time.\r ..." + bit_offset: 0 + bit_size: 4 + - name: PRFTEN + description: "Prefetch enable\r This bit enables the prefetch buffer in the embedded Flash memory." + bit_offset: 8 + bit_size: 1 + - name: LPM + description: "Low-power read mode\r This bit puts the Flash memory in low-power read mode." + bit_offset: 11 + bit_size: 1 + enum: LPM + - name: PDREQ1 + description: "Bank 1 power-down mode request\r This bit is write-protected with FLASH_PDKEY1R. This bit requests bank 1 to enter power-down mode. When bank 1 enters power-down mode, this bit is cleared by hardware and the PDKEY1R is locked." + bit_offset: 12 + bit_size: 1 + enum: PDREQ + - name: PDREQ2 + description: "Bank 2 power-down mode request\r This bit is write-protected with FLASH_PDKEY2R. This bit requests bank 2 to enter power-down mode. When bank 2 enters power-down mode, this bit is cleared by hardware and the PDKEY2R is locked." + bit_offset: 13 + bit_size: 1 + enum: PDREQ + - name: SLEEP_PD + description: "Flash memory power-down mode during Sleep mode\r This bit determines whether the Flash memory is in power-down mode or Idle mode when the device is in Sleep mode.\r The Flash must not be put in power-down while a program or an erase operation is on-going." + bit_offset: 14 + bit_size: 1 + enum: SLEEP_PD fieldset/ECCR: description: FLASH ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 20 - - name: BK_ECC - description: ECC fail bank - bit_offset: 21 - bit_size: 1 - enum: BK_ECC - - name: SYSF_ECC - description: "System Flash memory ECC fail\r This bit indicates that the ECC error correction or double ECC error detection is located in the system Flash memory." - bit_offset: 22 - bit_size: 1 - - name: ECCIE - description: "ECC correction interrupt enable\r This bit enables the interrupt generation when the ECCC bit in the FLASH_ECCR register is set." - bit_offset: 24 - bit_size: 1 - enum: ECCIE - - name: ECCC - description: "ECC correction\r This bit is set by hardware when one ECC error has been detected and corrected (only if ECCC and ECCD were previously cleared). An interrupt is generated if ECCIE is set. This bit is cleared by writing 1." - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: "ECC detection\r This bit is set by hardware when two ECC errors have been detected (only if ECCC and ECCD were previously cleared). When this bit is set, a NMI is generated. This bit is cleared by writing 1." - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 20 + - name: BK_ECC + description: ECC fail bank + bit_offset: 21 + bit_size: 1 + enum: BK_ECC + - name: SYSF_ECC + description: "System Flash memory ECC fail\r This bit indicates that the ECC error correction or double ECC error detection is located in the system Flash memory." + bit_offset: 22 + bit_size: 1 + - name: ECCIE + description: "ECC correction interrupt enable\r This bit enables the interrupt generation when the ECCC bit in the FLASH_ECCR register is set." + bit_offset: 24 + bit_size: 1 + enum: ECCIE + - name: ECCC + description: "ECC correction\r This bit is set by hardware when one ECC error has been detected and corrected (only if ECCC and ECCD were previously cleared). An interrupt is generated if ECCIE is set. This bit is cleared by writing 1." + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: "ECC detection\r This bit is set by hardware when two ECC errors have been detected (only if ECCC and ECCD were previously cleared). When this bit is set, a NMI is generated. This bit is cleared by writing 1." + bit_offset: 31 + bit_size: 1 fieldset/NSBOOTADD0R: description: FLASH non-secure boot address 0 register fields: - - name: NSBOOTADD0 - description: "Non-secure boot base address 0\r The non-secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. These bits correspond to address [31:7]. The NSBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state.\r Examples:\r NSBOOTADD0[24:0] = 0x0100000: Boot from non-secure Flash memory (0x0800 0000)\r NSBOOTADD0[24:0] = 0x017F200: Boot from system memory bootloader (0x0BF9 0000)\r NSBOOTADD0[24:0] = 0x0400000: Boot from non-secure SRAM1 on S-Bus (0x2000 0000)" - bit_offset: 7 - bit_size: 25 + - name: NSBOOTADD0 + description: "Non-secure boot base address 0\r The non-secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. These bits correspond to address [31:7]. The NSBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state.\r Examples:\r NSBOOTADD0[24:0] = 0x0100000: Boot from non-secure Flash memory (0x0800 0000)\r NSBOOTADD0[24:0] = 0x017F200: Boot from system memory bootloader (0x0BF9 0000)\r NSBOOTADD0[24:0] = 0x0400000: Boot from non-secure SRAM1 on S-Bus (0x2000 0000)" + bit_offset: 7 + bit_size: 25 fieldset/NSBOOTADD1R: description: FLASH non-secure boot address 1 register fields: - - name: NSBOOTADD1 - description: "Non-secure boot address 1\r The non-secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. These bits correspond to address [31:7]. The NSBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state.\r Examples:\r NSBOOTADD1[24:0] = 0x0100000: Boot from non-secure Flash memory (0x0800 0000)\r NSBOOTADD1[24:0] = 0x017F200: Boot from system memory bootloader (0x0BF9 0000)\r NSBOOTADD1[24:0] = 0x0400000: Boot from non-secure SRAM1 on S-Bus (0x2000 0000)" - bit_offset: 7 - bit_size: 25 + - name: NSBOOTADD1 + description: "Non-secure boot address 1\r The non-secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. These bits correspond to address [31:7]. The NSBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state.\r Examples:\r NSBOOTADD1[24:0] = 0x0100000: Boot from non-secure Flash memory (0x0800 0000)\r NSBOOTADD1[24:0] = 0x017F200: Boot from system memory bootloader (0x0BF9 0000)\r NSBOOTADD1[24:0] = 0x0400000: Boot from non-secure SRAM1 on S-Bus (0x2000 0000)" + bit_offset: 7 + bit_size: 25 fieldset/NSCR: description: FLASH non-secure control register fields: - - name: PG - description: Non-secure programming - bit_offset: 0 - bit_size: 1 - enum: NSCR_PG - - name: PER - description: Non-secure page erase - bit_offset: 1 - bit_size: 1 - enum: NSCR_PER - - name: MER1 - description: "Non-secure bank 1 mass erase\r This bit triggers the bank 1 non-secure mass erase (all bank 1 user pages) when set." - bit_offset: 2 - bit_size: 1 - - name: PNB - description: "Non-secure page number selection\r These bits select the page to erase.\r ..." - bit_offset: 3 - bit_size: 7 - - name: BKER - description: Non-secure bank selection for page erase - bit_offset: 11 - bit_size: 1 - enum: NSCR_BKER - - name: BWR - description: "Non-secure burst write programming mode\r When set, this bit selects the burst write programming mode." - bit_offset: 14 - bit_size: 1 - - name: MER2 - description: "Non-secure bank 2 mass erase\r This bit triggers the bank 2 non-secure mass erase (all bank 2 user pages) when set." - bit_offset: 15 - bit_size: 1 - - name: STRT - description: "Non-secure start\r This bit triggers a non-secure erase operation when set. If MER1, MER2 and PER bits are reset and the STRT bit is set, the PGSERR bit in FLASH_NSSR is set (this condition is forbidden).\r This bit is set only by software and is cleared when the BSY bit is cleared in FLASH_NSSR." - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: "Options modification start\r This bit triggers an options operation when set. It can not be written if OPTLOCK bit is set. This bit is set only by software, and is cleared when the BSY bit is cleared in FLASH_NSSR." - bit_offset: 17 - bit_size: 1 - - name: EOPIE - description: "Non-secure end of operation interrupt enable\r This bit enables the interrupt generation when the EOP bit in the FLASH_NSSR is set to 1." - bit_offset: 24 - bit_size: 1 - enum: NSCR_EOPIE - - name: ERRIE - description: "Non-secure error interrupt enable\r This bit enables the interrupt generation when the OPERR bit in the FLASH_NSSR is set to 1." - bit_offset: 25 - bit_size: 1 - enum: NSCR_ERRIE - - name: OBL_LAUNCH - description: "Force the option byte loading\r When set to 1, this bit forces the option byte reloading. This bit is cleared only when the option byte loading is complete. It cannot be written if OPTLOCK is set." - bit_offset: 27 - bit_size: 1 - enum: OBL_LAUNCH - - name: OPTLOCK - description: "Option lock\r This bit is set only. When set, all bits concerning user options in FLASH_NSCR register are locked. This bit is cleared by hardware after detecting the unlock sequence. The LOCK bit in the FLASH_NSCR must be cleared before doing the unlock sequence for OPTLOCK bit.\r In case of an unsuccessful unlock operation, this bit remains set until the next reset." - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: "Non-secure lock\r This bit is set only. When set, the FLASH_NSCR register is locked. It is cleared by hardware after detecting the unlock sequence in FLASH_NSKEYR register.\r In case of an unsuccessful unlock operation, this bit remains set until the next system reset." - bit_offset: 31 - bit_size: 1 + - name: PG + description: Non-secure programming + bit_offset: 0 + bit_size: 1 + enum: NSCR_PG + - name: PER + description: Non-secure page erase + bit_offset: 1 + bit_size: 1 + enum: NSCR_PER + - name: MER1 + description: "Non-secure bank 1 mass erase\r This bit triggers the bank 1 non-secure mass erase (all bank 1 user pages) when set." + bit_offset: 2 + bit_size: 1 + - name: PNB + description: "Non-secure page number selection\r These bits select the page to erase.\r ..." + bit_offset: 3 + bit_size: 7 + - name: BKER + description: Non-secure bank selection for page erase + bit_offset: 11 + bit_size: 1 + enum: NSCR_BKER + - name: BWR + description: "Non-secure burst write programming mode\r When set, this bit selects the burst write programming mode." + bit_offset: 14 + bit_size: 1 + - name: MER2 + description: "Non-secure bank 2 mass erase\r This bit triggers the bank 2 non-secure mass erase (all bank 2 user pages) when set." + bit_offset: 15 + bit_size: 1 + - name: STRT + description: "Non-secure start\r This bit triggers a non-secure erase operation when set. If MER1, MER2 and PER bits are reset and the STRT bit is set, the PGSERR bit in FLASH_NSSR is set (this condition is forbidden).\r This bit is set only by software and is cleared when the BSY bit is cleared in FLASH_NSSR." + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: "Options modification start\r This bit triggers an options operation when set. It can not be written if OPTLOCK bit is set. This bit is set only by software, and is cleared when the BSY bit is cleared in FLASH_NSSR." + bit_offset: 17 + bit_size: 1 + - name: EOPIE + description: "Non-secure end of operation interrupt enable\r This bit enables the interrupt generation when the EOP bit in the FLASH_NSSR is set to 1." + bit_offset: 24 + bit_size: 1 + enum: NSCR_EOPIE + - name: ERRIE + description: "Non-secure error interrupt enable\r This bit enables the interrupt generation when the OPERR bit in the FLASH_NSSR is set to 1." + bit_offset: 25 + bit_size: 1 + enum: NSCR_ERRIE + - name: OBL_LAUNCH + description: "Force the option byte loading\r When set to 1, this bit forces the option byte reloading. This bit is cleared only when the option byte loading is complete. It cannot be written if OPTLOCK is set." + bit_offset: 27 + bit_size: 1 + enum: OBL_LAUNCH + - name: OPTLOCK + description: "Option lock\r This bit is set only. When set, all bits concerning user options in FLASH_NSCR register are locked. This bit is cleared by hardware after detecting the unlock sequence. The LOCK bit in the FLASH_NSCR must be cleared before doing the unlock sequence for OPTLOCK bit.\r In case of an unsuccessful unlock operation, this bit remains set until the next reset." + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: "Non-secure lock\r This bit is set only. When set, the FLASH_NSCR register is locked. It is cleared by hardware after detecting the unlock sequence in FLASH_NSKEYR register.\r In case of an unsuccessful unlock operation, this bit remains set until the next system reset." + bit_offset: 31 + bit_size: 1 fieldset/NSKEYR: description: FLASH non-secure key register fields: - - name: NSKEY - description: Flash memory non-secure key - bit_offset: 0 - bit_size: 32 + - name: NSKEY + description: Flash memory non-secure key + bit_offset: 0 + bit_size: 32 fieldset/NSSR: description: FLASH non-secure status register fields: - - name: EOP - description: Non-secure end of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Non-secure operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: "Non-secure programming error\r This bit is set by hardware when a non-secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1." - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: "Non-secure write protection error\r This bit is set by hardware when an non-secure address to be erased/programmed belongs to a write-protected part (by WRP, HDP or RDP level 1) of the Flash memory. This bit is cleared by writing 1.\r Refer to for full conditions of error flag setting." - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: "Non-secure programming alignment error\r This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address. This bit is cleared by writing 1." - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: "Non-secure size error\r This bit is set by hardware when the size of the access is a byte or half-word during a non-secure program sequence. Only quad-word programming is allowed by means of successive word accesses. This bit is cleared by writing 1." - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: "Non-secure programming sequence error\r This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1.\r Refer to for full conditions of error flag setting." - bit_offset: 7 - bit_size: 1 - - name: OPTWERR - description: "Option write error\r This bit is set by hardware when the options bytes are written with an invalid configuration. It is cleared by writing 1.\r Refer to for full conditions of error flag setting." - bit_offset: 13 - bit_size: 1 - - name: BSY - description: "Non-secure busy\r This indicates that a Flash memory secure or non-secure operation is in progress. This bit is set at the beginning of a Flash operation and reset when the operation finishes or when an error occurs." - bit_offset: 16 - bit_size: 1 - - name: WDW - description: "Non-secure wait data to write\r This bit indicates that the Flash memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the Flash memory." - bit_offset: 17 - bit_size: 1 - - name: OEM1LOCK - description: "OEM1 lock\r This bit indicates that the OEM1 RDP key read during the OBL is not virgin. When set, the OEM1 RDP lock mechanism is active." - bit_offset: 18 - bit_size: 1 - - name: OEM2LOCK - description: "OEM2 lock\r This bit indicates that the OEM2 RDP key read during the OBL is not virgin. When set, the OEM2 RDP lock mechanism is active." - bit_offset: 19 - bit_size: 1 - - name: PD1 - description: "Bank 1 in power-down mode\r This bit indicates that the Flash memory bank 1 is in power-down state. It is reset when bank 1 is in normal mode or being awaken." - bit_offset: 20 - bit_size: 1 - - name: PD2 - description: "Bank 2 in power-down mode\r This bit indicates that the Flash memory bank 2 is in power-down state. It is reset when bank 2 is in normal mode or being awaken." - bit_offset: 21 - bit_size: 1 + - name: EOP + description: Non-secure end of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Non-secure operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: "Non-secure programming error\r This bit is set by hardware when a non-secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1." + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: "Non-secure write protection error\r This bit is set by hardware when an non-secure address to be erased/programmed belongs to a write-protected part (by WRP, HDP or RDP level 1) of the Flash memory. This bit is cleared by writing 1.\r Refer to for full conditions of error flag setting." + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: "Non-secure programming alignment error\r This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address. This bit is cleared by writing 1." + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: "Non-secure size error\r This bit is set by hardware when the size of the access is a byte or half-word during a non-secure program sequence. Only quad-word programming is allowed by means of successive word accesses. This bit is cleared by writing 1." + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: "Non-secure programming sequence error\r This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1.\r Refer to for full conditions of error flag setting." + bit_offset: 7 + bit_size: 1 + - name: OPTWERR + description: "Option write error\r This bit is set by hardware when the options bytes are written with an invalid configuration. It is cleared by writing 1.\r Refer to for full conditions of error flag setting." + bit_offset: 13 + bit_size: 1 + - name: BSY + description: "Non-secure busy\r This indicates that a Flash memory secure or non-secure operation is in progress. This bit is set at the beginning of a Flash operation and reset when the operation finishes or when an error occurs." + bit_offset: 16 + bit_size: 1 + - name: WDW + description: "Non-secure wait data to write\r This bit indicates that the Flash memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the Flash memory." + bit_offset: 17 + bit_size: 1 + - name: OEM1LOCK + description: "OEM1 lock\r This bit indicates that the OEM1 RDP key read during the OBL is not virgin. When set, the OEM1 RDP lock mechanism is active." + bit_offset: 18 + bit_size: 1 + - name: OEM2LOCK + description: "OEM2 lock\r This bit indicates that the OEM2 RDP key read during the OBL is not virgin. When set, the OEM2 RDP lock mechanism is active." + bit_offset: 19 + bit_size: 1 + - name: PD1 + description: "Bank 1 in power-down mode\r This bit indicates that the Flash memory bank 1 is in power-down state. It is reset when bank 1 is in normal mode or being awaken." + bit_offset: 20 + bit_size: 1 + - name: PD2 + description: "Bank 2 in power-down mode\r This bit indicates that the Flash memory bank 2 is in power-down state. It is reset when bank 2 is in normal mode or being awaken." + bit_offset: 21 + bit_size: 1 fieldset/OEM1KEYR1: description: FLASH OEM1 key register 1 fields: - - name: OEM1KEY - description: OEM1 least significant bytes key - bit_offset: 0 - bit_size: 32 + - name: OEM1KEY + description: OEM1 least significant bytes key + bit_offset: 0 + bit_size: 32 fieldset/OEM1KEYR2: description: FLASH OEM1 key register 2 fields: - - name: OEM1KEY - description: OEM1 most significant bytes key - bit_offset: 0 - bit_size: 32 + - name: OEM1KEY + description: OEM1 most significant bytes key + bit_offset: 0 + bit_size: 32 fieldset/OEM2KEYR1: description: FLASH OEM2 key register 1 fields: - - name: OEM2KEY - description: OEM2 least significant bytes key - bit_offset: 0 - bit_size: 32 + - name: OEM2KEY + description: OEM2 least significant bytes key + bit_offset: 0 + bit_size: 32 fieldset/OEM2KEYR2: description: FLASH OEM2 key register 2 fields: - - name: OEM2KEY - description: OEM2 most significant bytes key - bit_offset: 0 - bit_size: 32 + - name: OEM2KEY + description: OEM2 most significant bytes key + bit_offset: 0 + bit_size: 32 fieldset/OPSR: description: FLASH operation status register fields: - - name: ADDR_OP - description: "Interrupted operation address\r This field indicates which address in the Flash memory was accessed when reset occurred. The address is given by bank from address 0x0 0000 to 0xF FFF0." - bit_offset: 0 - bit_size: 20 - - name: BK_OP - description: "Interrupted operation bank\r This bit indicates which Flash memory bank was accessed when reset occurred" - bit_offset: 21 - bit_size: 1 - enum: BK_OP - - name: SYSF_OP - description: "Operation in system Flash memory interrupted\r This bit indicates that the reset occurred during an operation in the system Flash memory." - bit_offset: 22 - bit_size: 1 - - name: CODE_OP - description: "Flash memory operation code\r This field indicates which Flash memory operation has been interrupted by a system reset:" - bit_offset: 29 - bit_size: 3 - enum: CODE_OP + - name: ADDR_OP + description: "Interrupted operation address\r This field indicates which address in the Flash memory was accessed when reset occurred. The address is given by bank from address 0x0 0000 to 0xF FFF0." + bit_offset: 0 + bit_size: 20 + - name: BK_OP + description: "Interrupted operation bank\r This bit indicates which Flash memory bank was accessed when reset occurred" + bit_offset: 21 + bit_size: 1 + enum: BK_OP + - name: SYSF_OP + description: "Operation in system Flash memory interrupted\r This bit indicates that the reset occurred during an operation in the system Flash memory." + bit_offset: 22 + bit_size: 1 + - name: CODE_OP + description: "Flash memory operation code\r This field indicates which Flash memory operation has been interrupted by a system reset:" + bit_offset: 29 + bit_size: 3 + enum: CODE_OP fieldset/OPTKEYR: description: FLASH option key register fields: - - name: OPTKEY - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEY + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: FLASH option register fields: - - name: RDP - description: "Readout protection level\r Others: Level 1 (memories readout protection active)\r Note: Refer to for more details." - bit_offset: 0 - bit_size: 8 - enum: RDP - - name: BOR_LEV - description: "BOR reset level\r These bits contain the VDD supply level threshold that activates/releases the reset." - bit_offset: 8 - bit_size: 3 - enum: BOR_LEV - - name: nRST_STOP - description: Reset generation in Stop mode - bit_offset: 12 - bit_size: 1 - enum: nRST_STOP - - name: nRST_STDBY - description: Reset generation in Standby mode - bit_offset: 13 - bit_size: 1 - enum: nRST_STDBY - - name: nRST_SHDW - description: Reset generation in Shutdown mode - bit_offset: 14 - bit_size: 1 - enum: nRST_SHDW - - name: SRAM1345_RST - description: "SRAM1, SRAM3 and SRAM4 erase upon system reset" - bit_offset: 15 - bit_size: 1 - - name: IWDG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - enum: IWDG_SW - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - enum: IWDG_STOP - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - enum: IWDG_STDBY - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - enum: WWDG_SW - - name: SWAP_BANK - description: Swap banks - bit_offset: 20 - bit_size: 1 - enum: SWAP_BANK - - name: DUALBANK - description: Dual-bank on 1-Mbyte and 512-Kbyte Flash memory devices - bit_offset: 21 - bit_size: 1 - enum: DUALBANK - - name: BKPSRAM_ECC - description: Backup RAM ECC detection and correction enable - bit_offset: 22 - bit_size: 1 - enum: BKPSRAM_ECC - - name: SRAM3_ECC - description: SRAM3 ECC detection and correction enable - bit_offset: 23 - bit_size: 1 - enum: SRAM_ECC - - name: SRAM2_ECC - description: SRAM2 ECC detection and correction enable - bit_offset: 24 - bit_size: 1 - enum: SRAM_ECC - - name: SRAM2_RST - description: SRAM2 erase when system reset - bit_offset: 25 - bit_size: 1 - - name: nSWBOOT0 - description: Software BOOT0 - bit_offset: 26 - bit_size: 1 - enum: nSWBOOT - - name: nBOOT0 - description: nBOOT0 option bit - bit_offset: 27 - bit_size: 1 - enum: nBOOT - - name: PA15_PUPEN - description: PA15 pull-up enable - bit_offset: 28 - bit_size: 1 - - name: IO_VDD_HSLV - description: "High-speed IO at low VDD voltage configuration bit\r This bit can be set only with VDD below 2.5V" - bit_offset: 29 - bit_size: 1 - enum: IO_VDD_HSLV - - name: IO_VDDIO2_HSLV - description: "High-speed IO at low VDDIO2 voltage configuration bit\r This bit can be set only with VDDIO2 below 2.5 V." - bit_offset: 30 - bit_size: 1 - enum: IO_VDDIO_HSLV - - name: TZEN - description: Global TrustZone security enable - bit_offset: 31 - bit_size: 1 + - name: RDP + description: "Readout protection level\r Others: Level 1 (memories readout protection active)\r Note: Refer to for more details." + bit_offset: 0 + bit_size: 8 + enum: RDP + - name: BOR_LEV + description: "BOR reset level\r These bits contain the VDD supply level threshold that activates/releases the reset." + bit_offset: 8 + bit_size: 3 + enum: BOR_LEV + - name: nRST_STOP + description: Reset generation in Stop mode + bit_offset: 12 + bit_size: 1 + enum: nRST_STOP + - name: nRST_STDBY + description: Reset generation in Standby mode + bit_offset: 13 + bit_size: 1 + enum: nRST_STDBY + - name: nRST_SHDW + description: Reset generation in Shutdown mode + bit_offset: 14 + bit_size: 1 + enum: nRST_SHDW + - name: SRAM1345_RST + description: SRAM1, SRAM3 and SRAM4 erase upon system reset + bit_offset: 15 + bit_size: 1 + - name: IWDG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + enum: IWDG_SW + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + enum: IWDG_STOP + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + enum: IWDG_STDBY + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + enum: WWDG_SW + - name: SWAP_BANK + description: Swap banks + bit_offset: 20 + bit_size: 1 + enum: SWAP_BANK + - name: DUALBANK + description: Dual-bank on 1-Mbyte and 512-Kbyte Flash memory devices + bit_offset: 21 + bit_size: 1 + enum: DUALBANK + - name: BKPSRAM_ECC + description: Backup RAM ECC detection and correction enable + bit_offset: 22 + bit_size: 1 + enum: BKPSRAM_ECC + - name: SRAM3_ECC + description: SRAM3 ECC detection and correction enable + bit_offset: 23 + bit_size: 1 + enum: SRAM_ECC + - name: SRAM2_ECC + description: SRAM2 ECC detection and correction enable + bit_offset: 24 + bit_size: 1 + enum: SRAM_ECC + - name: SRAM2_RST + description: SRAM2 erase when system reset + bit_offset: 25 + bit_size: 1 + - name: nSWBOOT0 + description: Software BOOT0 + bit_offset: 26 + bit_size: 1 + enum: nSWBOOT + - name: nBOOT0 + description: nBOOT0 option bit + bit_offset: 27 + bit_size: 1 + enum: nBOOT + - name: PA15_PUPEN + description: PA15 pull-up enable + bit_offset: 28 + bit_size: 1 + - name: IO_VDD_HSLV + description: "High-speed IO at low VDD voltage configuration bit\r This bit can be set only with VDD below 2.5V" + bit_offset: 29 + bit_size: 1 + enum: IO_VDD_HSLV + - name: IO_VDDIO2_HSLV + description: "High-speed IO at low VDDIO2 voltage configuration bit\r This bit can be set only with VDDIO2 below 2.5 V." + bit_offset: 30 + bit_size: 1 + enum: IO_VDDIO_HSLV + - name: TZEN + description: Global TrustZone security enable + bit_offset: 31 + bit_size: 1 fieldset/PDKEY1R: description: FLASH bank 1 power-down key register fields: - - name: PDKEY1 - description: Bank 1 power-down key - bit_offset: 0 - bit_size: 32 + - name: PDKEY1 + description: Bank 1 power-down key + bit_offset: 0 + bit_size: 32 fieldset/PDKEY2R: description: FLASH bank 2 power-down key register fields: - - name: PDKEY2 - description: Bank 2 power-down key - bit_offset: 0 - bit_size: 32 + - name: PDKEY2 + description: Bank 2 power-down key + bit_offset: 0 + bit_size: 32 fieldset/PRIV1BBR1: description: FLASH privilege block based bank 1 register 1 fields: - - name: PRIV1BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV1BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV1BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV1BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV1BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV1BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV1BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV1BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV1BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV1BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV1BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV1BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV1BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV1BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV1BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV1BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV1BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV1BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV1BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV1BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV1BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV1BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV1BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV1BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV1BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV1BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV1BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV1BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV1BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV1BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV1BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV1BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV1BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV1BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV1BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV1BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV1BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV1BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV1BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV1BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV1BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV1BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV1BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV1BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV1BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV1BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV1BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV1BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV1BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV1BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV1BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV1BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV1BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV1BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV1BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV1BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV1BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV1BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV1BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV1BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV1BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV1BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV1BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV1BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV1BBR2: description: FLASH privilege block based bank 1 register 2 fields: - - name: PRIV1BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV1BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV1BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV1BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV1BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV1BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV1BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV1BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV1BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV1BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV1BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV1BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV1BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV1BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV1BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV1BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV1BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV1BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV1BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV1BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV1BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV1BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV1BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV1BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV1BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV1BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV1BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV1BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV1BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV1BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV1BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV1BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV1BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV1BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV1BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV1BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV1BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV1BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV1BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV1BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV1BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV1BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV1BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV1BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV1BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV1BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV1BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV1BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV1BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV1BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV1BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV1BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV1BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV1BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV1BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV1BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV1BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV1BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV1BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV1BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV1BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV1BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV1BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV1BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV1BBR3: description: FLASH privilege block based bank 1 register 3 fields: - - name: PRIV1BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV1BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV1BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV1BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV1BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV1BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV1BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV1BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV1BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV1BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV1BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV1BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV1BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV1BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV1BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV1BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV1BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV1BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV1BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV1BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV1BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV1BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV1BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV1BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV1BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV1BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV1BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV1BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV1BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV1BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV1BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV1BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV1BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV1BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV1BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV1BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV1BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV1BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV1BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV1BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV1BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV1BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV1BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV1BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV1BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV1BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV1BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV1BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV1BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV1BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV1BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV1BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV1BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV1BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV1BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV1BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV1BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV1BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV1BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV1BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV1BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV1BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV1BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV1BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV1BBR4: description: FLASH privilege block based bank 1 register 4 fields: - - name: PRIV1BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV1BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV1BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV1BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV1BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV1BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV1BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV1BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV1BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV1BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV1BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV1BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV1BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV1BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV1BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV1BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV1BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV1BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV1BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV1BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV1BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV1BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV1BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV1BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV1BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV1BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV1BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV1BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV1BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV1BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV1BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV1BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV1BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV1BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV1BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV1BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV1BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV1BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV1BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV1BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV1BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV1BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV1BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV1BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV1BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV1BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV1BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV1BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV1BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV1BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV1BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV1BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV1BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV1BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV1BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV1BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV1BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV1BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV1BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV1BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV1BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV1BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV1BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV1BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV2BBR1: description: FLASH privilege block based bank 2 register 1 fields: - - name: PRIV2BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV2BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV2BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV2BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV2BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV2BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV2BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV2BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV2BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV2BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV2BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV2BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV2BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV2BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV2BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV2BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV2BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV2BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV2BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV2BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV2BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV2BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV2BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV2BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV2BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV2BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV2BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV2BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV2BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV2BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV2BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV2BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV2BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV2BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV2BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV2BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV2BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV2BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV2BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV2BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV2BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV2BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV2BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV2BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV2BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV2BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV2BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV2BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV2BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV2BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV2BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV2BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV2BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV2BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV2BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV2BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV2BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV2BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV2BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV2BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV2BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV2BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV2BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV2BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV2BBR2: description: FLASH privilege block based bank 2 register 2 fields: - - name: PRIV2BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV2BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV2BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV2BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV2BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV2BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV2BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV2BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV2BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV2BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV2BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV2BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV2BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV2BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV2BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV2BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV2BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV2BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV2BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV2BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV2BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV2BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV2BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV2BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV2BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV2BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV2BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV2BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV2BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV2BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV2BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV2BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV2BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV2BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV2BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV2BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV2BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV2BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV2BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV2BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV2BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV2BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV2BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV2BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV2BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV2BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV2BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV2BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV2BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV2BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV2BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV2BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV2BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV2BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV2BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV2BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV2BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV2BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV2BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV2BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV2BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV2BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV2BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV2BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV2BBR3: description: FLASH privilege block based bank 2 register 3 fields: - - name: PRIV2BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV2BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV2BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV2BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV2BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV2BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV2BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV2BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV2BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV2BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV2BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV2BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV2BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV2BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV2BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV2BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV2BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV2BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV2BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV2BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV2BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV2BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV2BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV2BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV2BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV2BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV2BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV2BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV2BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV2BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV2BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV2BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV2BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV2BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV2BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV2BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV2BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV2BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV2BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV2BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV2BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV2BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV2BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV2BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV2BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV2BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV2BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV2BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV2BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV2BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV2BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV2BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV2BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV2BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV2BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV2BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV2BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV2BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV2BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV2BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV2BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV2BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV2BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV2BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIV2BBR4: description: FLASH privilege block based bank 2 register 4 fields: - - name: PRIV2BB0 - description: page privileged/unprivileged attribution - bit_offset: 0 - bit_size: 1 - - name: PRIV2BB1 - description: page privileged/unprivileged attribution - bit_offset: 1 - bit_size: 1 - - name: PRIV2BB2 - description: page privileged/unprivileged attribution - bit_offset: 2 - bit_size: 1 - - name: PRIV2BB3 - description: page privileged/unprivileged attribution - bit_offset: 3 - bit_size: 1 - - name: PRIV2BB4 - description: page privileged/unprivileged attribution - bit_offset: 4 - bit_size: 1 - - name: PRIV2BB5 - description: page privileged/unprivileged attribution - bit_offset: 5 - bit_size: 1 - - name: PRIV2BB6 - description: page privileged/unprivileged attribution - bit_offset: 6 - bit_size: 1 - - name: PRIV2BB7 - description: page privileged/unprivileged attribution - bit_offset: 7 - bit_size: 1 - - name: PRIV2BB8 - description: page privileged/unprivileged attribution - bit_offset: 8 - bit_size: 1 - - name: PRIV2BB9 - description: page privileged/unprivileged attribution - bit_offset: 9 - bit_size: 1 - - name: PRIV2BB10 - description: page privileged/unprivileged attribution - bit_offset: 10 - bit_size: 1 - - name: PRIV2BB11 - description: page privileged/unprivileged attribution - bit_offset: 11 - bit_size: 1 - - name: PRIV2BB12 - description: page privileged/unprivileged attribution - bit_offset: 12 - bit_size: 1 - - name: PRIV2BB13 - description: page privileged/unprivileged attribution - bit_offset: 13 - bit_size: 1 - - name: PRIV2BB14 - description: page privileged/unprivileged attribution - bit_offset: 14 - bit_size: 1 - - name: PRIV2BB15 - description: page privileged/unprivileged attribution - bit_offset: 15 - bit_size: 1 - - name: PRIV2BB16 - description: page privileged/unprivileged attribution - bit_offset: 16 - bit_size: 1 - - name: PRIV2BB17 - description: page privileged/unprivileged attribution - bit_offset: 17 - bit_size: 1 - - name: PRIV2BB18 - description: page privileged/unprivileged attribution - bit_offset: 18 - bit_size: 1 - - name: PRIV2BB19 - description: page privileged/unprivileged attribution - bit_offset: 19 - bit_size: 1 - - name: PRIV2BB20 - description: page privileged/unprivileged attribution - bit_offset: 20 - bit_size: 1 - - name: PRIV2BB21 - description: page privileged/unprivileged attribution - bit_offset: 21 - bit_size: 1 - - name: PRIV2BB22 - description: page privileged/unprivileged attribution - bit_offset: 22 - bit_size: 1 - - name: PRIV2BB23 - description: page privileged/unprivileged attribution - bit_offset: 23 - bit_size: 1 - - name: PRIV2BB24 - description: page privileged/unprivileged attribution - bit_offset: 24 - bit_size: 1 - - name: PRIV2BB25 - description: page privileged/unprivileged attribution - bit_offset: 25 - bit_size: 1 - - name: PRIV2BB26 - description: page privileged/unprivileged attribution - bit_offset: 26 - bit_size: 1 - - name: PRIV2BB27 - description: page privileged/unprivileged attribution - bit_offset: 27 - bit_size: 1 - - name: PRIV2BB28 - description: page privileged/unprivileged attribution - bit_offset: 28 - bit_size: 1 - - name: PRIV2BB29 - description: page privileged/unprivileged attribution - bit_offset: 29 - bit_size: 1 - - name: PRIV2BB30 - description: page privileged/unprivileged attribution - bit_offset: 30 - bit_size: 1 - - name: PRIV2BB31 - description: page privileged/unprivileged attribution - bit_offset: 31 - bit_size: 1 + - name: PRIV2BB0 + description: page privileged/unprivileged attribution + bit_offset: 0 + bit_size: 1 + - name: PRIV2BB1 + description: page privileged/unprivileged attribution + bit_offset: 1 + bit_size: 1 + - name: PRIV2BB2 + description: page privileged/unprivileged attribution + bit_offset: 2 + bit_size: 1 + - name: PRIV2BB3 + description: page privileged/unprivileged attribution + bit_offset: 3 + bit_size: 1 + - name: PRIV2BB4 + description: page privileged/unprivileged attribution + bit_offset: 4 + bit_size: 1 + - name: PRIV2BB5 + description: page privileged/unprivileged attribution + bit_offset: 5 + bit_size: 1 + - name: PRIV2BB6 + description: page privileged/unprivileged attribution + bit_offset: 6 + bit_size: 1 + - name: PRIV2BB7 + description: page privileged/unprivileged attribution + bit_offset: 7 + bit_size: 1 + - name: PRIV2BB8 + description: page privileged/unprivileged attribution + bit_offset: 8 + bit_size: 1 + - name: PRIV2BB9 + description: page privileged/unprivileged attribution + bit_offset: 9 + bit_size: 1 + - name: PRIV2BB10 + description: page privileged/unprivileged attribution + bit_offset: 10 + bit_size: 1 + - name: PRIV2BB11 + description: page privileged/unprivileged attribution + bit_offset: 11 + bit_size: 1 + - name: PRIV2BB12 + description: page privileged/unprivileged attribution + bit_offset: 12 + bit_size: 1 + - name: PRIV2BB13 + description: page privileged/unprivileged attribution + bit_offset: 13 + bit_size: 1 + - name: PRIV2BB14 + description: page privileged/unprivileged attribution + bit_offset: 14 + bit_size: 1 + - name: PRIV2BB15 + description: page privileged/unprivileged attribution + bit_offset: 15 + bit_size: 1 + - name: PRIV2BB16 + description: page privileged/unprivileged attribution + bit_offset: 16 + bit_size: 1 + - name: PRIV2BB17 + description: page privileged/unprivileged attribution + bit_offset: 17 + bit_size: 1 + - name: PRIV2BB18 + description: page privileged/unprivileged attribution + bit_offset: 18 + bit_size: 1 + - name: PRIV2BB19 + description: page privileged/unprivileged attribution + bit_offset: 19 + bit_size: 1 + - name: PRIV2BB20 + description: page privileged/unprivileged attribution + bit_offset: 20 + bit_size: 1 + - name: PRIV2BB21 + description: page privileged/unprivileged attribution + bit_offset: 21 + bit_size: 1 + - name: PRIV2BB22 + description: page privileged/unprivileged attribution + bit_offset: 22 + bit_size: 1 + - name: PRIV2BB23 + description: page privileged/unprivileged attribution + bit_offset: 23 + bit_size: 1 + - name: PRIV2BB24 + description: page privileged/unprivileged attribution + bit_offset: 24 + bit_size: 1 + - name: PRIV2BB25 + description: page privileged/unprivileged attribution + bit_offset: 25 + bit_size: 1 + - name: PRIV2BB26 + description: page privileged/unprivileged attribution + bit_offset: 26 + bit_size: 1 + - name: PRIV2BB27 + description: page privileged/unprivileged attribution + bit_offset: 27 + bit_size: 1 + - name: PRIV2BB28 + description: page privileged/unprivileged attribution + bit_offset: 28 + bit_size: 1 + - name: PRIV2BB29 + description: page privileged/unprivileged attribution + bit_offset: 29 + bit_size: 1 + - name: PRIV2BB30 + description: page privileged/unprivileged attribution + bit_offset: 30 + bit_size: 1 + - name: PRIV2BB31 + description: page privileged/unprivileged attribution + bit_offset: 31 + bit_size: 1 fieldset/PRIVCFGR: description: FLASH privilege configuration register fields: - - name: SPRIV - description: "Privileged protection for secure registers\r This bit can be accessed only when TrustZone is enabled (TZEN = 1). This bit can be read by both privileged or unprivileged, secure and non-secure access.\r The SPRIV bit can be written only by a secure privileged access. A non-secure write access on SPRIV bit is ignored. A secure unprivileged write access on SPRIV bit is ignored." - bit_offset: 0 - bit_size: 1 - enum: SPRIV - - name: NSPRIV - description: "Privileged protection for non-secure registers\r This bit can be read by both privileged or unprivileged, secure and non-secure access.\r The NSPRIV bit can be written by a secure or non-secure privileged access. A secure or non-secure unprivileged write access on NSPRIV bit is ignored." - bit_offset: 1 - bit_size: 1 - enum: NSPRIV + - name: SPRIV + description: "Privileged protection for secure registers\r This bit can be accessed only when TrustZone is enabled (TZEN = 1). This bit can be read by both privileged or unprivileged, secure and non-secure access.\r The SPRIV bit can be written only by a secure privileged access. A non-secure write access on SPRIV bit is ignored. A secure unprivileged write access on SPRIV bit is ignored." + bit_offset: 0 + bit_size: 1 + enum: SPRIV + - name: NSPRIV + description: "Privileged protection for non-secure registers\r This bit can be read by both privileged or unprivileged, secure and non-secure access.\r The NSPRIV bit can be written by a secure or non-secure privileged access. A secure or non-secure unprivileged write access on NSPRIV bit is ignored." + bit_offset: 1 + bit_size: 1 + enum: NSPRIV fieldset/SEC1BBR1: description: FLASH secure block based bank 1 register 1 fields: - - name: SEC1BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC1BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC1BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC1BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC1BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC1BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC1BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC1BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC1BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC1BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC1BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC1BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC1BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC1BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC1BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC1BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC1BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC1BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC1BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC1BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC1BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC1BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC1BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC1BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC1BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC1BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC1BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC1BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC1BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC1BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC1BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC1BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC1BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC1BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC1BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC1BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC1BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC1BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC1BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC1BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC1BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC1BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC1BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC1BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC1BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC1BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC1BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC1BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC1BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC1BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC1BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC1BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC1BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC1BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC1BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC1BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC1BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC1BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC1BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC1BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC1BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC1BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC1BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC1BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC1BBR2: description: FLASH secure block based bank 1 register 2 fields: - - name: SEC1BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC1BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC1BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC1BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC1BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC1BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC1BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC1BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC1BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC1BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC1BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC1BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC1BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC1BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC1BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC1BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC1BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC1BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC1BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC1BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC1BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC1BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC1BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC1BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC1BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC1BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC1BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC1BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC1BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC1BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC1BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC1BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC1BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC1BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC1BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC1BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC1BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC1BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC1BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC1BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC1BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC1BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC1BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC1BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC1BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC1BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC1BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC1BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC1BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC1BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC1BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC1BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC1BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC1BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC1BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC1BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC1BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC1BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC1BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC1BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC1BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC1BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC1BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC1BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC1BBR3: description: FLASH secure block based bank 1 register 3 fields: - - name: SEC1BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC1BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC1BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC1BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC1BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC1BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC1BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC1BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC1BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC1BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC1BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC1BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC1BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC1BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC1BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC1BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC1BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC1BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC1BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC1BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC1BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC1BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC1BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC1BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC1BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC1BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC1BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC1BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC1BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC1BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC1BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC1BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC1BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC1BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC1BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC1BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC1BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC1BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC1BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC1BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC1BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC1BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC1BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC1BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC1BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC1BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC1BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC1BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC1BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC1BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC1BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC1BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC1BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC1BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC1BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC1BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC1BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC1BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC1BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC1BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC1BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC1BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC1BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC1BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC1BBR4: description: FLASH secure block based bank 1 register 4 fields: - - name: SEC1BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC1BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC1BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC1BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC1BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC1BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC1BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC1BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC1BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC1BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC1BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC1BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC1BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC1BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC1BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC1BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC1BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC1BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC1BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC1BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC1BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC1BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC1BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC1BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC1BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC1BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC1BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC1BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC1BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC1BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC1BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC1BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC1BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC1BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC1BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC1BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC1BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC1BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC1BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC1BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC1BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC1BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC1BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC1BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC1BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC1BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC1BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC1BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC1BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC1BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC1BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC1BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC1BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC1BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC1BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC1BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC1BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC1BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC1BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC1BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC1BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC1BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC1BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC1BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC2BBR1: description: FLASH secure block based bank 2 register 1 fields: - - name: SEC2BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC2BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC2BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC2BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC2BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC2BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC2BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC2BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC2BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC2BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC2BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC2BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC2BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC2BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC2BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC2BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC2BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC2BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC2BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC2BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC2BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC2BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC2BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC2BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC2BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC2BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC2BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC2BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC2BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC2BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC2BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC2BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC2BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC2BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC2BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC2BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC2BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC2BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC2BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC2BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC2BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC2BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC2BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC2BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC2BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC2BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC2BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC2BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC2BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC2BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC2BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC2BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC2BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC2BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC2BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC2BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC2BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC2BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC2BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC2BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC2BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC2BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC2BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC2BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC2BBR2: description: FLASH secure block based bank 2 register 2 fields: - - name: SEC2BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC2BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC2BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC2BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC2BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC2BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC2BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC2BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC2BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC2BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC2BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC2BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC2BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC2BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC2BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC2BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC2BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC2BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC2BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC2BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC2BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC2BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC2BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC2BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC2BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC2BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC2BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC2BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC2BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC2BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC2BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC2BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC2BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC2BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC2BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC2BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC2BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC2BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC2BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC2BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC2BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC2BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC2BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC2BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC2BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC2BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC2BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC2BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC2BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC2BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC2BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC2BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC2BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC2BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC2BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC2BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC2BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC2BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC2BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC2BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC2BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC2BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC2BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC2BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC2BBR3: description: FLASH secure block based bank 2 register 3 fields: - - name: SEC2BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC2BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC2BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC2BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC2BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC2BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC2BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC2BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC2BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC2BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC2BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC2BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC2BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC2BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC2BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC2BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC2BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC2BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC2BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC2BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC2BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC2BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC2BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC2BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC2BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC2BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC2BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC2BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC2BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC2BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC2BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC2BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC2BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC2BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC2BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC2BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC2BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC2BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC2BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC2BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC2BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC2BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC2BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC2BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC2BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC2BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC2BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC2BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC2BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC2BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC2BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC2BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC2BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC2BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC2BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC2BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC2BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC2BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC2BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC2BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC2BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC2BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC2BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC2BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SEC2BBR4: description: FLASH secure block based bank 2 register 4 fields: - - name: SEC2BB0 - description: page secure/non-secure attribution - bit_offset: 0 - bit_size: 1 - - name: SEC2BB1 - description: page secure/non-secure attribution - bit_offset: 1 - bit_size: 1 - - name: SEC2BB2 - description: page secure/non-secure attribution - bit_offset: 2 - bit_size: 1 - - name: SEC2BB3 - description: page secure/non-secure attribution - bit_offset: 3 - bit_size: 1 - - name: SEC2BB4 - description: page secure/non-secure attribution - bit_offset: 4 - bit_size: 1 - - name: SEC2BB5 - description: page secure/non-secure attribution - bit_offset: 5 - bit_size: 1 - - name: SEC2BB6 - description: page secure/non-secure attribution - bit_offset: 6 - bit_size: 1 - - name: SEC2BB7 - description: page secure/non-secure attribution - bit_offset: 7 - bit_size: 1 - - name: SEC2BB8 - description: page secure/non-secure attribution - bit_offset: 8 - bit_size: 1 - - name: SEC2BB9 - description: page secure/non-secure attribution - bit_offset: 9 - bit_size: 1 - - name: SEC2BB10 - description: page secure/non-secure attribution - bit_offset: 10 - bit_size: 1 - - name: SEC2BB11 - description: page secure/non-secure attribution - bit_offset: 11 - bit_size: 1 - - name: SEC2BB12 - description: page secure/non-secure attribution - bit_offset: 12 - bit_size: 1 - - name: SEC2BB13 - description: page secure/non-secure attribution - bit_offset: 13 - bit_size: 1 - - name: SEC2BB14 - description: page secure/non-secure attribution - bit_offset: 14 - bit_size: 1 - - name: SEC2BB15 - description: page secure/non-secure attribution - bit_offset: 15 - bit_size: 1 - - name: SEC2BB16 - description: page secure/non-secure attribution - bit_offset: 16 - bit_size: 1 - - name: SEC2BB17 - description: page secure/non-secure attribution - bit_offset: 17 - bit_size: 1 - - name: SEC2BB18 - description: page secure/non-secure attribution - bit_offset: 18 - bit_size: 1 - - name: SEC2BB19 - description: page secure/non-secure attribution - bit_offset: 19 - bit_size: 1 - - name: SEC2BB20 - description: page secure/non-secure attribution - bit_offset: 20 - bit_size: 1 - - name: SEC2BB21 - description: page secure/non-secure attribution - bit_offset: 21 - bit_size: 1 - - name: SEC2BB22 - description: page secure/non-secure attribution - bit_offset: 22 - bit_size: 1 - - name: SEC2BB23 - description: page secure/non-secure attribution - bit_offset: 23 - bit_size: 1 - - name: SEC2BB24 - description: page secure/non-secure attribution - bit_offset: 24 - bit_size: 1 - - name: SEC2BB25 - description: page secure/non-secure attribution - bit_offset: 25 - bit_size: 1 - - name: SEC2BB26 - description: page secure/non-secure attribution - bit_offset: 26 - bit_size: 1 - - name: SEC2BB27 - description: page secure/non-secure attribution - bit_offset: 27 - bit_size: 1 - - name: SEC2BB28 - description: page secure/non-secure attribution - bit_offset: 28 - bit_size: 1 - - name: SEC2BB29 - description: page secure/non-secure attribution - bit_offset: 29 - bit_size: 1 - - name: SEC2BB30 - description: page secure/non-secure attribution - bit_offset: 30 - bit_size: 1 - - name: SEC2BB31 - description: page secure/non-secure attribution - bit_offset: 31 - bit_size: 1 + - name: SEC2BB0 + description: page secure/non-secure attribution + bit_offset: 0 + bit_size: 1 + - name: SEC2BB1 + description: page secure/non-secure attribution + bit_offset: 1 + bit_size: 1 + - name: SEC2BB2 + description: page secure/non-secure attribution + bit_offset: 2 + bit_size: 1 + - name: SEC2BB3 + description: page secure/non-secure attribution + bit_offset: 3 + bit_size: 1 + - name: SEC2BB4 + description: page secure/non-secure attribution + bit_offset: 4 + bit_size: 1 + - name: SEC2BB5 + description: page secure/non-secure attribution + bit_offset: 5 + bit_size: 1 + - name: SEC2BB6 + description: page secure/non-secure attribution + bit_offset: 6 + bit_size: 1 + - name: SEC2BB7 + description: page secure/non-secure attribution + bit_offset: 7 + bit_size: 1 + - name: SEC2BB8 + description: page secure/non-secure attribution + bit_offset: 8 + bit_size: 1 + - name: SEC2BB9 + description: page secure/non-secure attribution + bit_offset: 9 + bit_size: 1 + - name: SEC2BB10 + description: page secure/non-secure attribution + bit_offset: 10 + bit_size: 1 + - name: SEC2BB11 + description: page secure/non-secure attribution + bit_offset: 11 + bit_size: 1 + - name: SEC2BB12 + description: page secure/non-secure attribution + bit_offset: 12 + bit_size: 1 + - name: SEC2BB13 + description: page secure/non-secure attribution + bit_offset: 13 + bit_size: 1 + - name: SEC2BB14 + description: page secure/non-secure attribution + bit_offset: 14 + bit_size: 1 + - name: SEC2BB15 + description: page secure/non-secure attribution + bit_offset: 15 + bit_size: 1 + - name: SEC2BB16 + description: page secure/non-secure attribution + bit_offset: 16 + bit_size: 1 + - name: SEC2BB17 + description: page secure/non-secure attribution + bit_offset: 17 + bit_size: 1 + - name: SEC2BB18 + description: page secure/non-secure attribution + bit_offset: 18 + bit_size: 1 + - name: SEC2BB19 + description: page secure/non-secure attribution + bit_offset: 19 + bit_size: 1 + - name: SEC2BB20 + description: page secure/non-secure attribution + bit_offset: 20 + bit_size: 1 + - name: SEC2BB21 + description: page secure/non-secure attribution + bit_offset: 21 + bit_size: 1 + - name: SEC2BB22 + description: page secure/non-secure attribution + bit_offset: 22 + bit_size: 1 + - name: SEC2BB23 + description: page secure/non-secure attribution + bit_offset: 23 + bit_size: 1 + - name: SEC2BB24 + description: page secure/non-secure attribution + bit_offset: 24 + bit_size: 1 + - name: SEC2BB25 + description: page secure/non-secure attribution + bit_offset: 25 + bit_size: 1 + - name: SEC2BB26 + description: page secure/non-secure attribution + bit_offset: 26 + bit_size: 1 + - name: SEC2BB27 + description: page secure/non-secure attribution + bit_offset: 27 + bit_size: 1 + - name: SEC2BB28 + description: page secure/non-secure attribution + bit_offset: 28 + bit_size: 1 + - name: SEC2BB29 + description: page secure/non-secure attribution + bit_offset: 29 + bit_size: 1 + - name: SEC2BB30 + description: page secure/non-secure attribution + bit_offset: 30 + bit_size: 1 + - name: SEC2BB31 + description: page secure/non-secure attribution + bit_offset: 31 + bit_size: 1 fieldset/SECBOOTADD0R: description: FLASH secure boot address 0 register fields: - - name: BOOT_LOCK - description: "Boot lock\r When set, the boot is always forced to base address value programmed in SECBOOTADD0[24:0] option bytes whatever the boot selection option. When set, this bit can only be cleared by an RDP at level 0." - bit_offset: 0 - bit_size: 1 - - name: SECBOOTADD0 - description: "Secure boot base address 0\r The secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. This bits correspond to address [31:7] The SECBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state.\r Examples:\r SECBOOTADD0[24:0] = 0x018 0000: Boot from secure Flash memory (0x0C00 0000)\r SECBOOTADD0[24:0] = 0x01F F000: Boot from RSS (0x0FF8 0000)\r SECBOOTADD0[24:0] = 0x060 0000: Boot from secure SRAM1 on S-Bus (0x3000 0000)" - bit_offset: 7 - bit_size: 25 + - name: BOOT_LOCK + description: "Boot lock\r When set, the boot is always forced to base address value programmed in SECBOOTADD0[24:0] option bytes whatever the boot selection option. When set, this bit can only be cleared by an RDP at level 0." + bit_offset: 0 + bit_size: 1 + - name: SECBOOTADD0 + description: "Secure boot base address 0\r The secure boot memory address can be programmed to any address in the valid address range with a granularity of 128 bytes. This bits correspond to address [31:7] The SECBOOTADD0 option bytes are selected following the BOOT0 pin or nSWBOOT0 state.\r Examples:\r SECBOOTADD0[24:0] = 0x018 0000: Boot from secure Flash memory (0x0C00 0000)\r SECBOOTADD0[24:0] = 0x01F F000: Boot from RSS (0x0FF8 0000)\r SECBOOTADD0[24:0] = 0x060 0000: Boot from secure SRAM1 on S-Bus (0x3000 0000)" + bit_offset: 7 + bit_size: 25 fieldset/SECCR: description: FLASH secure control register fields: - - name: PG - description: Secure programming - bit_offset: 0 - bit_size: 1 - enum: SECCR_PG - - name: PER - description: Secure page erase - bit_offset: 1 - bit_size: 1 - enum: SECCR_PER - - name: MER1 - description: "Secure bank 1 mass erase\r This bit triggers the bank 1 secure mass erase (all bank 1 user pages) when set." - bit_offset: 2 - bit_size: 1 - - name: PNB - description: "Secure page number selection\r These bits select the page to erase:\r ..." - bit_offset: 3 - bit_size: 7 - - name: BKER - description: Secure bank selection for page erase - bit_offset: 11 - bit_size: 1 - enum: SECCR_BKER - - name: BWR - description: "Secure burst write programming mode\r When set, this bit selects the burst write programming mode." - bit_offset: 14 - bit_size: 1 - - name: MER2 - description: "Secure bank 2 mass erase\r This bit triggers the bank 2 secure mass erase (all bank 2 user pages) when set." - bit_offset: 15 - bit_size: 1 - - name: STRT - description: "Secure start\r This bit triggers a secure erase operation when set. If MER1, MER2 and PER bits are reset and the STRT bit is set, the PGSERR in the FLASH_SECSR is set (this condition is forbidden).\r This bit is set only by software and is cleared when the BSY bit is cleared in FLASH_SECSR." - bit_offset: 16 - bit_size: 1 - - name: EOPIE - description: "Secure End of operation interrupt enable\r This bit enables the interrupt generation when the EOP bit in the FLASH_SECSR is set to 1." - bit_offset: 24 - bit_size: 1 - enum: SECCR_EOPIE - - name: ERRIE - description: Secure error interrupt enable - bit_offset: 25 - bit_size: 1 - enum: SECCR_ERRIE - - name: RDERRIE - description: Secure PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: INV - description: "Flash memory security state invert\r This bit inverts the Flash memory security state." - bit_offset: 29 - bit_size: 1 - - name: LOCK - description: "Secure lock\r This bit is set only. When set, the FLASH_SECCR register is locked. It is cleared by hardware after detecting the unlock sequence in FLASH_SECKEYR register.\r In case of an unsuccessful unlock operation, this bit remains set until the next system reset." - bit_offset: 31 - bit_size: 1 + - name: PG + description: Secure programming + bit_offset: 0 + bit_size: 1 + enum: SECCR_PG + - name: PER + description: Secure page erase + bit_offset: 1 + bit_size: 1 + enum: SECCR_PER + - name: MER1 + description: "Secure bank 1 mass erase\r This bit triggers the bank 1 secure mass erase (all bank 1 user pages) when set." + bit_offset: 2 + bit_size: 1 + - name: PNB + description: "Secure page number selection\r These bits select the page to erase:\r ..." + bit_offset: 3 + bit_size: 7 + - name: BKER + description: Secure bank selection for page erase + bit_offset: 11 + bit_size: 1 + enum: SECCR_BKER + - name: BWR + description: "Secure burst write programming mode\r When set, this bit selects the burst write programming mode." + bit_offset: 14 + bit_size: 1 + - name: MER2 + description: "Secure bank 2 mass erase\r This bit triggers the bank 2 secure mass erase (all bank 2 user pages) when set." + bit_offset: 15 + bit_size: 1 + - name: STRT + description: "Secure start\r This bit triggers a secure erase operation when set. If MER1, MER2 and PER bits are reset and the STRT bit is set, the PGSERR in the FLASH_SECSR is set (this condition is forbidden).\r This bit is set only by software and is cleared when the BSY bit is cleared in FLASH_SECSR." + bit_offset: 16 + bit_size: 1 + - name: EOPIE + description: "Secure End of operation interrupt enable\r This bit enables the interrupt generation when the EOP bit in the FLASH_SECSR is set to 1." + bit_offset: 24 + bit_size: 1 + enum: SECCR_EOPIE + - name: ERRIE + description: Secure error interrupt enable + bit_offset: 25 + bit_size: 1 + enum: SECCR_ERRIE + - name: RDERRIE + description: Secure PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: INV + description: "Flash memory security state invert\r This bit inverts the Flash memory security state." + bit_offset: 29 + bit_size: 1 + - name: LOCK + description: "Secure lock\r This bit is set only. When set, the FLASH_SECCR register is locked. It is cleared by hardware after detecting the unlock sequence in FLASH_SECKEYR register.\r In case of an unsuccessful unlock operation, this bit remains set until the next system reset." + bit_offset: 31 + bit_size: 1 fieldset/SECHDPCR: description: FLASH secure HDP control register fields: - - name: HDP1_ACCDIS - description: "HDP1 area access disable\r When set, this bit is only cleared by a system reset." - bit_offset: 0 - bit_size: 1 - enum: HDP_ACCDIS - - name: HDP2_ACCDIS - description: "HDP2 area access disable\r When set, this bit is only cleared by a system reset." - bit_offset: 1 - bit_size: 1 - enum: HDP_ACCDIS + - name: HDP1_ACCDIS + description: "HDP1 area access disable\r When set, this bit is only cleared by a system reset." + bit_offset: 0 + bit_size: 1 + enum: HDP_ACCDIS + - name: HDP2_ACCDIS + description: "HDP2 area access disable\r When set, this bit is only cleared by a system reset." + bit_offset: 1 + bit_size: 1 + enum: HDP_ACCDIS fieldset/SECKEYR: description: FLASH secure key register fields: - - name: SECKEY - description: Flash memory secure key - bit_offset: 0 - bit_size: 32 + - name: SECKEY + description: Flash memory secure key + bit_offset: 0 + bit_size: 32 fieldset/SECSR: description: FLASH secure status register fields: - - name: EOP - description: "Secure end of operation\r This bit is set by hardware when one or more Flash memory secure operation (program/erase) has been completed successfully. This bit is set only if the secure end of operation interrupts are enabled (EOPIE = 1 in FLASH_SECCR). This bit is cleared by writing 1." - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: "Secure operation error\r This bit is set by hardware when a Flash memory secure operation (program/erase) completes unsuccessfully. This bit is set only if secure error interrupts are enabled (SECERRIE = 1). This bit is cleared by writing 1." - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: "Secure programming error\r This bit is set by hardware when a secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1." - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: "Secure write protection error\r This bit is set by hardware when an secure address to be erased/programmed belongs to a write-protected part (by WRP, PCROP, HDP or RDP level 1) of the Flash memory.This bit is cleared by writing 1.\r Refer to for full conditions of error flag setting." - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: "Secure programming alignment error\r This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address.This bit is cleared by writing 1." - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: "Secure size error\r This bit is set by hardware when the size of the access is a byte or half-word during a secure program sequence. Only quad-word programming is allowed by means of successive word accesses.This bit is cleared by writing 1." - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: "Secure programming sequence error\r This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1.\r Refer to for full conditions of error flag setting." - bit_offset: 7 - bit_size: 1 - - name: BSY - description: "Secure busy\r This bit indicates that a Flash memory secure or non-secure operation is in progress. This is set on the beginning of a Flash operation and reset when the operation finishes or when an error occurs." - bit_offset: 16 - bit_size: 1 - - name: WDW - description: "Secure wait data to write\r This bit indicates that the Flash memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the Flash memory." - bit_offset: 17 - bit_size: 1 + - name: EOP + description: "Secure end of operation\r This bit is set by hardware when one or more Flash memory secure operation (program/erase) has been completed successfully. This bit is set only if the secure end of operation interrupts are enabled (EOPIE = 1 in FLASH_SECCR). This bit is cleared by writing 1." + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: "Secure operation error\r This bit is set by hardware when a Flash memory secure operation (program/erase) completes unsuccessfully. This bit is set only if secure error interrupts are enabled (SECERRIE = 1). This bit is cleared by writing 1." + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: "Secure programming error\r This bit is set by hardware when a secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1." + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: "Secure write protection error\r This bit is set by hardware when an secure address to be erased/programmed belongs to a write-protected part (by WRP, PCROP, HDP or RDP level 1) of the Flash memory.This bit is cleared by writing 1.\r Refer to for full conditions of error flag setting." + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: "Secure programming alignment error\r This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address.This bit is cleared by writing 1." + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: "Secure size error\r This bit is set by hardware when the size of the access is a byte or half-word during a secure program sequence. Only quad-word programming is allowed by means of successive word accesses.This bit is cleared by writing 1." + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: "Secure programming sequence error\r This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1.\r Refer to for full conditions of error flag setting." + bit_offset: 7 + bit_size: 1 + - name: BSY + description: "Secure busy\r This bit indicates that a Flash memory secure or non-secure operation is in progress. This is set on the beginning of a Flash operation and reset when the operation finishes or when an error occurs." + bit_offset: 16 + bit_size: 1 + - name: WDW + description: "Secure wait data to write\r This bit indicates that the Flash memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the Flash memory." + bit_offset: 17 + bit_size: 1 fieldset/SECWM1R1: description: FLASH secure watermark1 register 1 fields: - - name: SECWM1_PSTRT - description: "Start page of first secure area\r This field contains the first page of the secure area in bank 1." - bit_offset: 0 - bit_size: 7 - - name: SECWM1_PEND - description: "End page of first secure area\r This field contains the last page of the secure area in bank 1." - bit_offset: 16 - bit_size: 7 + - name: SECWM1_PSTRT + description: "Start page of first secure area\r This field contains the first page of the secure area in bank 1." + bit_offset: 0 + bit_size: 7 + - name: SECWM1_PEND + description: "End page of first secure area\r This field contains the last page of the secure area in bank 1." + bit_offset: 16 + bit_size: 7 fieldset/SECWM1R2: description: FLASH secure watermark1 register 2 fields: - - name: HDP1_PEND - description: "End page of first hide protection area\r This field contains the last page of the HDP area in bank 1." - bit_offset: 16 - bit_size: 7 - - name: HDP1EN - description: Hide protection first area enable - bit_offset: 31 - bit_size: 1 + - name: HDP1_PEND + description: "End page of first hide protection area\r This field contains the last page of the HDP area in bank 1." + bit_offset: 16 + bit_size: 7 + - name: HDP1EN + description: Hide protection first area enable + bit_offset: 31 + bit_size: 1 fieldset/SECWM2R1: description: FLASH secure watermark2 register 1 fields: - - name: SECWM2_PSTRT - description: "Start page of second secure area\r This field contains the first page of the secure area in bank 2." - bit_offset: 0 - bit_size: 7 - - name: SECWM2_PEND - description: "End page of second secure area\r This field contains the last page of the secure area in bank 2." - bit_offset: 16 - bit_size: 7 + - name: SECWM2_PSTRT + description: "Start page of second secure area\r This field contains the first page of the secure area in bank 2." + bit_offset: 0 + bit_size: 7 + - name: SECWM2_PEND + description: "End page of second secure area\r This field contains the last page of the secure area in bank 2." + bit_offset: 16 + bit_size: 7 fieldset/SECWM2R2: description: FLASH secure watermark2 register 2 fields: - - name: HDP2_PEND - description: "End page of hide protection second area\r HDP2_PEND contains the last page of the HDP area in bank 2." - bit_offset: 16 - bit_size: 7 - - name: HDP2EN - description: Hide protection second area enable - bit_offset: 31 - bit_size: 1 + - name: HDP2_PEND + description: "End page of hide protection second area\r HDP2_PEND contains the last page of the HDP area in bank 2." + bit_offset: 16 + bit_size: 7 + - name: HDP2EN + description: Hide protection second area enable + bit_offset: 31 + bit_size: 1 fieldset/WRP1AR: description: FLASH WRP1 area A address register fields: - - name: WRP1A_PSTRT - description: "bank 1 WPR first area A start page\r This field contains the first page of the first WPR area for bank 1." - bit_offset: 0 - bit_size: 7 - - name: WRP1A_PEND - description: "Bank 1 WPR first area A end page\r This field contains the last page of the first WPR area in bank 1." - bit_offset: 16 - bit_size: 7 - - name: UNLOCK - description: Bank 1 WPR first area A unlock - bit_offset: 31 - bit_size: 1 - enum: WRPAR_UNLOCK + - name: WRP1A_PSTRT + description: "bank 1 WPR first area A start page\r This field contains the first page of the first WPR area for bank 1." + bit_offset: 0 + bit_size: 7 + - name: WRP1A_PEND + description: "Bank 1 WPR first area A end page\r This field contains the last page of the first WPR area in bank 1." + bit_offset: 16 + bit_size: 7 + - name: UNLOCK + description: Bank 1 WPR first area A unlock + bit_offset: 31 + bit_size: 1 + enum: WRPAR_UNLOCK fieldset/WRP1BR: description: FLASH WRP1 area B address register fields: - - name: WRP1B_PSTRT - description: "Bank 1 WRP second area B start page\r This field contains the first page of the second WRP area for bank 1." - bit_offset: 0 - bit_size: 7 - - name: WRP1B_PEND - description: "Bank 1 WRP second area B end page\r This field contains the last page of the second WRP area in bank 1." - bit_offset: 16 - bit_size: 7 - - name: UNLOCK - description: Bank 1 WPR second area B unlock - bit_offset: 31 - bit_size: 1 - enum: WRPBR_UNLOCK + - name: WRP1B_PSTRT + description: "Bank 1 WRP second area B start page\r This field contains the first page of the second WRP area for bank 1." + bit_offset: 0 + bit_size: 7 + - name: WRP1B_PEND + description: "Bank 1 WRP second area B end page\r This field contains the last page of the second WRP area in bank 1." + bit_offset: 16 + bit_size: 7 + - name: UNLOCK + description: Bank 1 WPR second area B unlock + bit_offset: 31 + bit_size: 1 + enum: WRPBR_UNLOCK fieldset/WRP2AR: description: FLASH WPR2 area A address register fields: - - name: WRP2A_PSTRT - description: "Bank 2 WPR first area A start page\r This field contains the first page of the first WRP area for bank 2." - bit_offset: 0 - bit_size: 7 - - name: WRP2A_PEND - description: "Bank 2 WPR first area A end page\r This field contains the last page of the first WRP area in bank 2." - bit_offset: 16 - bit_size: 7 - - name: UNLOCK - description: Bank 2 WPR first area A unlock - bit_offset: 31 - bit_size: 1 - enum: WRPAR_UNLOCK + - name: WRP2A_PSTRT + description: "Bank 2 WPR first area A start page\r This field contains the first page of the first WRP area for bank 2." + bit_offset: 0 + bit_size: 7 + - name: WRP2A_PEND + description: "Bank 2 WPR first area A end page\r This field contains the last page of the first WRP area in bank 2." + bit_offset: 16 + bit_size: 7 + - name: UNLOCK + description: Bank 2 WPR first area A unlock + bit_offset: 31 + bit_size: 1 + enum: WRPAR_UNLOCK fieldset/WRP2BR: description: FLASH WPR2 area B address register fields: - - name: WRP2B_PSTRT - description: "Bank 2 WPR second area B start page\r This field contains the first page of the second WRP area for bank 2." - bit_offset: 0 - bit_size: 7 - - name: WRP2B_PEND - description: "Bank 2 WPR second area B end page\r This field contains the last page of the second WRP area in bank 2." - bit_offset: 16 - bit_size: 7 - - name: UNLOCK - description: Bank 2 WPR second area B unlock - bit_offset: 31 - bit_size: 1 - enum: WRPBR_UNLOCK + - name: WRP2B_PSTRT + description: "Bank 2 WPR second area B start page\r This field contains the first page of the second WRP area for bank 2." + bit_offset: 0 + bit_size: 7 + - name: WRP2B_PEND + description: "Bank 2 WPR second area B end page\r This field contains the last page of the second WRP area in bank 2." + bit_offset: 16 + bit_size: 7 + - name: UNLOCK + description: Bank 2 WPR second area B unlock + bit_offset: 31 + bit_size: 1 + enum: WRPBR_UNLOCK enum/BKPSRAM_ECC: bit_size: 1 variants: - - name: B_0x0 - description: Backup RAM ECC check enabled - value: 0 - - name: B_0x1 - description: Backup RAM ECC check disabled - value: 1 + - name: B_0x0 + description: Backup RAM ECC check enabled + value: 0 + - name: B_0x1 + description: Backup RAM ECC check disabled + value: 1 enum/BK_ECC: bit_size: 1 variants: - - name: B_0x0 - description: Bank 1 - value: 0 - - name: B_0x1 - description: Bank 2 - value: 1 + - name: B_0x0 + description: Bank 1 + value: 0 + - name: B_0x1 + description: Bank 2 + value: 1 enum/BK_OP: bit_size: 1 variants: - - name: B_0x0 - description: Bank 1 - value: 0 - - name: B_0x1 - description: Bank 2 - value: 1 + - name: B_0x0 + description: Bank 1 + value: 0 + - name: B_0x1 + description: Bank 2 + value: 1 enum/BOR_LEV: bit_size: 3 variants: - - name: B_0x0 - description: BOR level 0 (reset level threshold around 1.7 V) - value: 0 - - name: B_0x1 - description: BOR level 1 (reset level threshold around 2.0 V) - value: 1 - - name: B_0x2 - description: BOR level 2 (reset level threshold around 2.2 V) - value: 2 - - name: B_0x3 - description: BOR level 3 (reset level threshold around 2.5 V) - value: 3 - - name: B_0x4 - description: BOR level 4 (reset level threshold around 2.8 V) - value: 4 + - name: B_0x0 + description: BOR level 0 (reset level threshold around 1.7 V) + value: 0 + - name: B_0x1 + description: BOR level 1 (reset level threshold around 2.0 V) + value: 1 + - name: B_0x2 + description: BOR level 2 (reset level threshold around 2.2 V) + value: 2 + - name: B_0x3 + description: BOR level 3 (reset level threshold around 2.5 V) + value: 3 + - name: B_0x4 + description: BOR level 4 (reset level threshold around 2.8 V) + value: 4 enum/CODE_OP: bit_size: 3 variants: - - name: B_0x0 - description: No Flash operation interrupted by previous reset - value: 0 - - name: B_0x1 - description: Single write operation interrupted - value: 1 - - name: B_0x2 - description: Burst write operation interrupted - value: 2 - - name: B_0x3 - description: Page erase operation interrupted - value: 3 - - name: B_0x4 - description: Bank erase operation interrupted - value: 4 - - name: B_0x5 - description: Mass erase operation interrupted - value: 5 - - name: B_0x6 - description: Option change operation interrupted - value: 6 + - name: B_0x0 + description: No Flash operation interrupted by previous reset + value: 0 + - name: B_0x1 + description: Single write operation interrupted + value: 1 + - name: B_0x2 + description: Burst write operation interrupted + value: 2 + - name: B_0x3 + description: Page erase operation interrupted + value: 3 + - name: B_0x4 + description: Bank erase operation interrupted + value: 4 + - name: B_0x5 + description: Mass erase operation interrupted + value: 5 + - name: B_0x6 + description: Option change operation interrupted + value: 6 enum/DUALBANK: bit_size: 1 variants: - - name: B_0x0 - description: Single bank Flash with contiguous address in bank 1 - value: 0 - - name: B_0x1 - description: Dual-bank Flash with contiguous addresses - value: 1 + - name: B_0x0 + description: Single bank Flash with contiguous address in bank 1 + value: 0 + - name: B_0x1 + description: Dual-bank Flash with contiguous addresses + value: 1 enum/ECCIE: bit_size: 1 variants: - - name: B_0x0 - description: ECCC interrupt disabled - value: 0 - - name: B_0x1 - description: ECCC interrupt enabled. - value: 1 + - name: B_0x0 + description: ECCC interrupt disabled + value: 0 + - name: B_0x1 + description: ECCC interrupt enabled. + value: 1 enum/HDP_ACCDIS: bit_size: 1 variants: - - name: B_0x0 - description: Access to HDP2 area granted - value: 0 - - name: B_0x1 - description: Access to HDP2 area denied (SECWM2Ry option bytes modification bocked -refer to ) - value: 1 + - name: B_0x0 + description: Access to HDP2 area granted + value: 0 + - name: B_0x1 + description: Access to HDP2 area denied (SECWM2Ry option bytes modification bocked -refer to ) + value: 1 enum/IO_VDDIO_HSLV: bit_size: 1 variants: - - name: B_0x0 - description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.5 V) - value: 0 - - name: B_0x1 - description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.5 V) - value: 1 + - name: B_0x0 + description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.5 V) + value: 0 + - name: B_0x1 + description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.5 V) + value: 1 enum/IO_VDD_HSLV: bit_size: 1 variants: - - name: B_0x0 - description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.5 V) - value: 0 - - name: B_0x1 - description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.5 V) - value: 1 + - name: B_0x0 + description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.5 V) + value: 0 + - name: B_0x1 + description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.5 V) + value: 1 enum/IWDG_STDBY: bit_size: 1 variants: - - name: B_0x0 - description: Independent watchdog counter frozen in Standby mode - value: 0 - - name: B_0x1 - description: Independent watchdog counter running in Standby mode - value: 1 + - name: B_0x0 + description: Independent watchdog counter frozen in Standby mode + value: 0 + - name: B_0x1 + description: Independent watchdog counter running in Standby mode + value: 1 enum/IWDG_STOP: bit_size: 1 variants: - - name: B_0x0 - description: Independent watchdog counter frozen in Stop mode - value: 0 - - name: B_0x1 - description: Independent watchdog counter running in Stop mode - value: 1 + - name: B_0x0 + description: Independent watchdog counter frozen in Stop mode + value: 0 + - name: B_0x1 + description: Independent watchdog counter running in Stop mode + value: 1 enum/IWDG_SW: bit_size: 1 variants: - - name: B_0x0 - description: Hardware independent watchdog selected - value: 0 - - name: B_0x1 - description: Software independent watchdog selected - value: 1 + - name: B_0x0 + description: Hardware independent watchdog selected + value: 0 + - name: B_0x1 + description: Software independent watchdog selected + value: 1 enum/LPM: bit_size: 1 variants: - - name: B_0x0 - description: Flash not in low-power read mode - value: 0 - - name: B_0x1 - description: Flash in low-power read mode - value: 1 + - name: B_0x0 + description: Flash not in low-power read mode + value: 0 + - name: B_0x1 + description: Flash in low-power read mode + value: 1 enum/NSCR_BKER: bit_size: 1 variants: - - name: B_0x0 - description: Bank 1 selected for non-secure page erase - value: 0 - - name: B_0x1 - description: Bank 2 selected for non-secure page erase - value: 1 + - name: B_0x0 + description: Bank 1 selected for non-secure page erase + value: 0 + - name: B_0x1 + description: Bank 2 selected for non-secure page erase + value: 1 enum/NSCR_EOPIE: bit_size: 1 variants: - - name: B_0x0 - description: Non-secure EOP Interrupt disabled - value: 0 - - name: B_0x1 - description: Non-secure EOP Interrupt enabled - value: 1 + - name: B_0x0 + description: Non-secure EOP Interrupt disabled + value: 0 + - name: B_0x1 + description: Non-secure EOP Interrupt enabled + value: 1 enum/NSCR_ERRIE: bit_size: 1 variants: - - name: B_0x0 - description: Non-secure OPERR error interrupt disabled - value: 0 - - name: B_0x1 - description: Non-secure OPERR error interrupt enabled - value: 1 + - name: B_0x0 + description: Non-secure OPERR error interrupt disabled + value: 0 + - name: B_0x1 + description: Non-secure OPERR error interrupt enabled + value: 1 enum/NSCR_PER: bit_size: 1 variants: - - name: B_0x0 - description: Non-secure page erase disabled - value: 0 - - name: B_0x1 - description: Non-secure page erase enabled - value: 1 + - name: B_0x0 + description: Non-secure page erase disabled + value: 0 + - name: B_0x1 + description: Non-secure page erase enabled + value: 1 enum/NSCR_PG: bit_size: 1 variants: - - name: B_0x0 - description: Non-secure Flash programming disabled - value: 0 - - name: B_0x1 - description: Non-secure Flash programming enabled - value: 1 + - name: B_0x0 + description: Non-secure Flash programming disabled + value: 0 + - name: B_0x1 + description: Non-secure Flash programming enabled + value: 1 enum/NSPRIV: bit_size: 1 variants: - - name: B_0x0 - description: Non-secure Flash registers can be read and written by privileged or unprivileged access. - value: 0 - - name: B_0x1 - description: Non-secure Flash registers can be read and written by privileged access only. - value: 1 + - name: B_0x0 + description: Non-secure Flash registers can be read and written by privileged or unprivileged access. + value: 0 + - name: B_0x1 + description: Non-secure Flash registers can be read and written by privileged access only. + value: 1 enum/OBL_LAUNCH: bit_size: 1 variants: - - name: B_0x0 - description: Option byte loading complete - value: 0 - - name: B_0x1 - description: Option byte loading requested - value: 1 + - name: B_0x0 + description: Option byte loading complete + value: 0 + - name: B_0x1 + description: Option byte loading requested + value: 1 enum/PDREQ: bit_size: 1 variants: - - name: B_0x0 - description: No request for bank 2 to enter power-down mode - value: 0 - - name: B_0x1 - description: Bank 2 requested to enter power-down mode - value: 1 + - name: B_0x0 + description: No request for bank 2 to enter power-down mode + value: 0 + - name: B_0x1 + description: Bank 2 requested to enter power-down mode + value: 1 enum/RDP: bit_size: 8 variants: - - name: B_0x55 - description: "Level 0.5 (readout protection not active, only non-secure debug access is possible). Only available when TrustZone is active (TZEN=1)" - value: 85 - - name: B_0xAA - description: Level 0 (readout protection not active) - value: 170 - - name: B_0xCC - description: Level 2 (chip readout protection active) - value: 204 + - name: B_0x55 + description: Level 0.5 (readout protection not active, only non-secure debug access is possible). Only available when TrustZone is active (TZEN=1) + value: 85 + - name: B_0xAA + description: Level 0 (readout protection not active) + value: 170 + - name: B_0xCC + description: Level 2 (chip readout protection active) + value: 204 enum/SECCR_BKER: bit_size: 1 variants: - - name: B_0x0 - description: Bank 1 selected for secure page erase - value: 0 - - name: B_0x1 - description: Bank 2 selected for secure page erase - value: 1 + - name: B_0x0 + description: Bank 1 selected for secure page erase + value: 0 + - name: B_0x1 + description: Bank 2 selected for secure page erase + value: 1 enum/SECCR_EOPIE: bit_size: 1 variants: - - name: B_0x0 - description: Secure EOP Interrupt disabled - value: 0 - - name: B_0x1 - description: Secure EOP Interrupt enabled - value: 1 + - name: B_0x0 + description: Secure EOP Interrupt disabled + value: 0 + - name: B_0x1 + description: Secure EOP Interrupt enabled + value: 1 enum/SECCR_ERRIE: bit_size: 1 variants: - - name: B_0x0 - description: Secure OPERR error interrupt disabled - value: 0 - - name: B_0x1 - description: Secure OPERR error interrupt enabled - value: 1 + - name: B_0x0 + description: Secure OPERR error interrupt disabled + value: 0 + - name: B_0x1 + description: Secure OPERR error interrupt enabled + value: 1 enum/SECCR_PER: bit_size: 1 variants: - - name: B_0x0 - description: Secure page erase disabled - value: 0 - - name: B_0x1 - description: Secure page erase enabled - value: 1 + - name: B_0x0 + description: Secure page erase disabled + value: 0 + - name: B_0x1 + description: Secure page erase enabled + value: 1 enum/SECCR_PG: bit_size: 1 variants: - - name: B_0x0 - description: Secure Flash programming disabled - value: 0 - - name: B_0x1 - description: Secure Flash programming enabled - value: 1 + - name: B_0x0 + description: Secure Flash programming disabled + value: 0 + - name: B_0x1 + description: Secure Flash programming enabled + value: 1 enum/SLEEP_PD: bit_size: 1 variants: - - name: B_0x0 - description: Flash in Idle mode during Sleep mode - value: 0 - - name: B_0x1 - description: Flash in power-down mode during Sleep mode - value: 1 + - name: B_0x0 + description: Flash in Idle mode during Sleep mode + value: 0 + - name: B_0x1 + description: Flash in power-down mode during Sleep mode + value: 1 enum/SPRIV: bit_size: 1 variants: - - name: B_0x0 - description: Secure Flash registers can be read and written by privileged or unprivileged access. - value: 0 - - name: B_0x1 - description: Secure Flash registers can be read and written by privileged access only. - value: 1 + - name: B_0x0 + description: Secure Flash registers can be read and written by privileged or unprivileged access. + value: 0 + - name: B_0x1 + description: Secure Flash registers can be read and written by privileged access only. + value: 1 enum/SRAM_ECC: bit_size: 1 variants: - - name: B_0x0 - description: SRAM3 ECC check enabled - value: 0 - - name: B_0x1 - description: SRAM3 ECC check disabled - value: 1 + - name: B_0x0 + description: SRAM3 ECC check enabled + value: 0 + - name: B_0x1 + description: SRAM3 ECC check disabled + value: 1 enum/SWAP_BANK: bit_size: 1 variants: - - name: B_0x0 - description: Bank 1 and bank 2 addresses not swapped - value: 0 - - name: B_0x1 - description: Bank 1 and bank 2 addresses swapped - value: 1 + - name: B_0x0 + description: Bank 1 and bank 2 addresses not swapped + value: 0 + - name: B_0x1 + description: Bank 1 and bank 2 addresses swapped + value: 1 enum/WRPAR_UNLOCK: bit_size: 1 variants: - - name: B_0x0 - description: WRP2A start and end pages locked - value: 0 - - name: B_0x1 - description: WRP2A start and end pages unlocked - value: 1 + - name: B_0x0 + description: WRP2A start and end pages locked + value: 0 + - name: B_0x1 + description: WRP2A start and end pages unlocked + value: 1 enum/WRPBR_UNLOCK: bit_size: 1 variants: - - name: B_0x0 - description: WRP2B start and end pages locked - value: 0 - - name: B_0x1 - description: WRP2B start and end pages unlocked - value: 1 + - name: B_0x0 + description: WRP2B start and end pages locked + value: 0 + - name: B_0x1 + description: WRP2B start and end pages unlocked + value: 1 enum/WWDG_SW: bit_size: 1 variants: - - name: B_0x0 - description: Hardware window watchdog selected - value: 0 - - name: B_0x1 - description: Software window watchdog selected - value: 1 + - name: B_0x0 + description: Hardware window watchdog selected + value: 0 + - name: B_0x1 + description: Software window watchdog selected + value: 1 enum/nBOOT: bit_size: 1 variants: - - name: B_0x0 - description: nBOOT0 = 0 - value: 0 - - name: B_0x1 - description: nBOOT0 = 1 - value: 1 + - name: B_0x0 + description: nBOOT0 = 0 + value: 0 + - name: B_0x1 + description: nBOOT0 = 1 + value: 1 enum/nRST_SHDW: bit_size: 1 variants: - - name: B_0x0 - description: Reset generated when entering the Shutdown mode - value: 0 - - name: B_0x1 - description: No reset generated when entering the Shutdown mode - value: 1 + - name: B_0x0 + description: Reset generated when entering the Shutdown mode + value: 0 + - name: B_0x1 + description: No reset generated when entering the Shutdown mode + value: 1 enum/nRST_STDBY: bit_size: 1 variants: - - name: B_0x0 - description: Reset generated when entering the Standby mode - value: 0 - - name: B_0x1 - description: No reset generate when entering the Standby mode - value: 1 + - name: B_0x0 + description: Reset generated when entering the Standby mode + value: 0 + - name: B_0x1 + description: No reset generate when entering the Standby mode + value: 1 enum/nRST_STOP: bit_size: 1 variants: - - name: B_0x0 - description: Reset generated when entering the Stop mode - value: 0 - - name: B_0x1 - description: No reset generated when entering the Stop mode - value: 1 + - name: B_0x0 + description: Reset generated when entering the Stop mode + value: 0 + - name: B_0x1 + description: No reset generated when entering the Stop mode + value: 1 enum/nSWBOOT: bit_size: 1 variants: - - name: B_0x0 - description: BOOT0 taken from the option bit nBOOT0 - value: 0 - - name: B_0x1 - description: BOOT0 taken from PH3/BOOT0 pin - value: 1 + - name: B_0x0 + description: BOOT0 taken from the option bit nBOOT0 + value: 0 + - name: B_0x1 + description: BOOT0 taken from PH3/BOOT0 pin + value: 1 diff --git a/data/registers/flash_wb.yaml b/data/registers/flash_wb.yaml index da253b4..1d98476 100644 --- a/data/registers/flash_wb.yaml +++ b/data/registers/flash_wb.yaml @@ -1,559 +1,558 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 8 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 12 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 16 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 20 - fieldset: CR - - name: ECCR - description: Flash ECC register - byte_offset: 24 - fieldset: ECCR - - name: OPTR - description: Flash option register - byte_offset: 32 - fieldset: OPTR - - name: PCROP1ASR - description: Flash Bank 1 PCROP Start address zone A register - byte_offset: 36 - fieldset: PCROP1ASR - - name: PCROP1AER - description: Flash Bank 1 PCROP End address zone A register - byte_offset: 40 - fieldset: PCROP1AER - - name: WRP1AR - description: Flash Bank 1 WRP area A address register - byte_offset: 44 - fieldset: WRP1AR - - name: WRP1BR - description: Flash Bank 1 WRP area B address register - byte_offset: 48 - fieldset: WRP1BR - - name: PCROP1BSR - description: Flash Bank 1 PCROP Start address area B register - byte_offset: 52 - fieldset: PCROP1BSR - - name: PCROP1BER - description: Flash Bank 1 PCROP End address area B register - byte_offset: 56 - fieldset: PCROP1BER - - name: IPCCBR - description: IPCC mailbox data buffer address register - byte_offset: 60 - fieldset: IPCCBR - - name: C2ACR - description: CPU2 cortex M0 access control register - byte_offset: 92 - fieldset: C2ACR - - name: C2SR - description: CPU2 cortex M0 status register - byte_offset: 96 - fieldset: C2SR - - name: C2CR - description: CPU2 cortex M0 control register - byte_offset: 100 - fieldset: C2CR - - name: SFR - description: Secure flash start address register - byte_offset: 128 - fieldset: SFR - - name: SRRVR - description: Secure SRAM2 start address and cortex M0 reset vector register - byte_offset: 132 - fieldset: SRRVR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 8 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 12 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 16 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 20 + fieldset: CR + - name: ECCR + description: Flash ECC register + byte_offset: 24 + fieldset: ECCR + - name: OPTR + description: Flash option register + byte_offset: 32 + fieldset: OPTR + - name: PCROP1ASR + description: Flash Bank 1 PCROP Start address zone A register + byte_offset: 36 + fieldset: PCROP1ASR + - name: PCROP1AER + description: Flash Bank 1 PCROP End address zone A register + byte_offset: 40 + fieldset: PCROP1AER + - name: WRP1AR + description: Flash Bank 1 WRP area A address register + byte_offset: 44 + fieldset: WRP1AR + - name: WRP1BR + description: Flash Bank 1 WRP area B address register + byte_offset: 48 + fieldset: WRP1BR + - name: PCROP1BSR + description: Flash Bank 1 PCROP Start address area B register + byte_offset: 52 + fieldset: PCROP1BSR + - name: PCROP1BER + description: Flash Bank 1 PCROP End address area B register + byte_offset: 56 + fieldset: PCROP1BER + - name: IPCCBR + description: IPCC mailbox data buffer address register + byte_offset: 60 + fieldset: IPCCBR + - name: C2ACR + description: CPU2 cortex M0 access control register + byte_offset: 92 + fieldset: C2ACR + - name: C2SR + description: CPU2 cortex M0 status register + byte_offset: 96 + fieldset: C2SR + - name: C2CR + description: CPU2 cortex M0 control register + byte_offset: 100 + fieldset: C2CR + - name: SFR + description: Secure flash start address register + byte_offset: 128 + fieldset: SFR + - name: SRRVR + description: Secure SRAM2 start address and cortex M0 reset vector register + byte_offset: 132 + fieldset: SRRVR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: DCEN - description: Data cache enable - bit_offset: 10 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: DCRST - description: Data cache reset - bit_offset: 12 - bit_size: 1 - - name: PES - description: CPU1 CortexM4 program erase suspend request - bit_offset: 15 - bit_size: 1 - - name: EMPTY - description: Flash User area empty - bit_offset: 16 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: DCEN + description: Data cache enable + bit_offset: 10 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: DCRST + description: Data cache reset + bit_offset: 12 + bit_size: 1 + - name: PES + description: CPU1 CortexM4 program erase suspend request + bit_offset: 15 + bit_size: 1 + - name: EMPTY + description: Flash User area empty + bit_offset: 16 + bit_size: 1 fieldset/C2ACR: description: CPU2 cortex M0 access control register fields: - - name: PRFTEN - description: CPU2 cortex M0 prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: CPU2 cortex M0 instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: ICRST - description: CPU2 cortex M0 instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: PES - description: CPU2 cortex M0 program erase suspend request - bit_offset: 15 - bit_size: 1 + - name: PRFTEN + description: CPU2 cortex M0 prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: CPU2 cortex M0 instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: ICRST + description: CPU2 cortex M0 instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: PES + description: CPU2 cortex M0 program erase suspend request + bit_offset: 15 + bit_size: 1 fieldset/C2CR: description: CPU2 cortex M0 control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Masse erase - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page Number selection - bit_offset: 3 - bit_size: 8 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Masse erase + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page Number selection + bit_offset: 3 + bit_size: 8 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 fieldset/C2SR: description: CPU2 cortex M0 status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: write protection error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISSERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 - - name: CFGBSY - description: Programming or erase configuration busy - bit_offset: 18 - bit_size: 1 - - name: PESD - description: Programming or erase operation suspended - bit_offset: 19 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: write protection error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISSERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 + - name: CFGBSY + description: Programming or erase configuration busy + bit_offset: 18 + bit_size: 1 + - name: PESD + description: Programming or erase operation suspended + bit_offset: 19 + bit_size: 1 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: This bit triggers the mass erase (all user pages) when set - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page number selection - bit_offset: 3 - bit_size: 8 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: FLASH_CR Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: This bit triggers the mass erase (all user pages) when set + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page number selection + bit_offset: 3 + bit_size: 8 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: FLASH_CR Lock + bit_offset: 31 + bit_size: 1 fieldset/ECCR: description: Flash ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 17 - - name: SYSF_ECC - description: System Flash ECC fail - bit_offset: 20 - bit_size: 1 - - name: ECCCIE - description: ECC correction interrupt enable - bit_offset: 24 - bit_size: 1 - - name: CPUID - description: CPU identification - bit_offset: 26 - bit_size: 3 - - name: ECCC - description: ECC correction - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: ECC detection - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 17 + - name: SYSF_ECC + description: System Flash ECC fail + bit_offset: 20 + bit_size: 1 + - name: ECCCIE + description: ECC correction interrupt enable + bit_offset: 24 + bit_size: 1 + - name: CPUID + description: CPU identification + bit_offset: 26 + bit_size: 3 + - name: ECCC + description: ECC correction + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: ECC detection + bit_offset: 31 + bit_size: 1 fieldset/IPCCBR: description: IPCC mailbox data buffer address register fields: - - name: IPCCDBA - description: PCC mailbox data buffer base address - bit_offset: 0 - bit_size: 14 + - name: IPCCDBA + description: PCC mailbox data buffer base address + bit_offset: 0 + bit_size: 14 fieldset/KEYR: description: Flash key register fields: - - name: KEYR - description: KEYR - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: KEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - - name: ESE - description: Security enabled - bit_offset: 8 - bit_size: 1 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 9 - bit_size: 3 - - name: nRST_STOP - description: nRST_STOP - bit_offset: 12 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 13 - bit_size: 1 - - name: nRST_SHDW - description: nRST_SHDW - bit_offset: 14 - bit_size: 1 - - name: IDWG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: nBOOT1 - description: Boot configuration - bit_offset: 23 - bit_size: 1 - - name: SRAM2_PE - description: SRAM2 parity check enable - bit_offset: 24 - bit_size: 1 - - name: SRAM2_RST - description: SRAM2 Erase when system reset - bit_offset: 25 - bit_size: 1 - - name: nSWBOOT0 - description: Software Boot0 - bit_offset: 26 - bit_size: 1 - - name: nBOOT0 - description: nBoot0 option bit - bit_offset: 27 - bit_size: 1 - - name: AGC_TRIM - description: Radio Automatic Gain Control Trimming - bit_offset: 29 - bit_size: 3 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + - name: ESE + description: Security enabled + bit_offset: 8 + bit_size: 1 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 9 + bit_size: 3 + - name: nRST_STOP + description: nRST_STOP + bit_offset: 12 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 13 + bit_size: 1 + - name: nRST_SHDW + description: nRST_SHDW + bit_offset: 14 + bit_size: 1 + - name: IDWG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: nBOOT1 + description: Boot configuration + bit_offset: 23 + bit_size: 1 + - name: SRAM2_PE + description: SRAM2 parity check enable + bit_offset: 24 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 Erase when system reset + bit_offset: 25 + bit_size: 1 + - name: nSWBOOT0 + description: Software Boot0 + bit_offset: 26 + bit_size: 1 + - name: nBOOT0 + description: nBoot0 option bit + bit_offset: 27 + bit_size: 1 + - name: AGC_TRIM + description: Radio Automatic Gain Control Trimming + bit_offset: 29 + bit_size: 3 fieldset/PCROP1AER: description: Flash Bank 1 PCROP End address zone A register fields: - - name: PCROP1A_END - description: Bank 1 PCROP area end offset - bit_offset: 0 - bit_size: 9 - - name: PCROP_RDP - description: PCROP area preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROP1A_END + description: Bank 1 PCROP area end offset + bit_offset: 0 + bit_size: 9 + - name: PCROP_RDP + description: PCROP area preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/PCROP1ASR: description: Flash Bank 1 PCROP Start address zone A register fields: - - name: PCROP1A_STRT - description: Bank 1 PCROPQ area start offset - bit_offset: 0 - bit_size: 9 + - name: PCROP1A_STRT + description: Bank 1 PCROPQ area start offset + bit_offset: 0 + bit_size: 9 fieldset/PCROP1BER: description: Flash Bank 1 PCROP End address area B register fields: - - name: PCROP1B_END - description: Bank 1 PCROP area end area B offset - bit_offset: 0 - bit_size: 9 + - name: PCROP1B_END + description: Bank 1 PCROP area end area B offset + bit_offset: 0 + bit_size: 9 fieldset/PCROP1BSR: description: Flash Bank 1 PCROP Start address area B register fields: - - name: PCROP1B_STRT - description: Bank 1 PCROP area B start offset - bit_offset: 0 - bit_size: 9 + - name: PCROP1B_STRT + description: Bank 1 PCROP area B start offset + bit_offset: 0 + bit_size: 9 fieldset/SFR: description: Secure flash start address register fields: - - name: SFSA - description: Secure flash start address - bit_offset: 0 - bit_size: 8 - - name: FSD - description: Flash security disable - bit_offset: 8 - bit_size: 1 - - name: DDS - description: Disable Cortex M0 debug access - bit_offset: 12 - bit_size: 1 + - name: SFSA + description: Secure flash start address + bit_offset: 0 + bit_size: 8 + - name: FSD + description: Flash security disable + bit_offset: 8 + bit_size: 1 + - name: DDS + description: Disable Cortex M0 debug access + bit_offset: 12 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: OPTNV - description: User Option OPTVAL indication - bit_offset: 13 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: OPTVERR - description: Option validity error - bit_offset: 15 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 - - name: CFGBSY - description: Programming or erase configuration busy - bit_offset: 18 - bit_size: 1 - - name: PESD - description: Programming or erase operation suspended - bit_offset: 19 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: OPTNV + description: User Option OPTVAL indication + bit_offset: 13 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: OPTVERR + description: Option validity error + bit_offset: 15 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 + - name: CFGBSY + description: Programming or erase configuration busy + bit_offset: 18 + bit_size: 1 + - name: PESD + description: Programming or erase operation suspended + bit_offset: 19 + bit_size: 1 fieldset/SRRVR: description: Secure SRAM2 start address and cortex M0 reset vector register fields: - - name: SBRV - description: cortex M0 access control register - bit_offset: 0 - bit_size: 18 - - name: SBRSA - description: Secure backup SRAM2a start address - bit_offset: 18 - bit_size: 5 - - name: BRSD - description: backup SRAM2a security disable - bit_offset: 23 - bit_size: 1 - - name: SNBRSA - description: Secure non backup SRAM2a start address - bit_offset: 25 - bit_size: 5 - - name: NBRSD - description: non-backup SRAM2b security disable - bit_offset: 30 - bit_size: 1 - - name: C2OPT - description: CPU2 cortex M0 boot reset vector memory selection - bit_offset: 31 - bit_size: 1 + - name: SBRV + description: cortex M0 access control register + bit_offset: 0 + bit_size: 18 + - name: SBRSA + description: Secure backup SRAM2a start address + bit_offset: 18 + bit_size: 5 + - name: BRSD + description: backup SRAM2a security disable + bit_offset: 23 + bit_size: 1 + - name: SNBRSA + description: Secure non backup SRAM2a start address + bit_offset: 25 + bit_size: 5 + - name: NBRSD + description: non-backup SRAM2b security disable + bit_offset: 30 + bit_size: 1 + - name: C2OPT + description: CPU2 cortex M0 boot reset vector memory selection + bit_offset: 31 + bit_size: 1 fieldset/WRP1AR: description: Flash Bank 1 WRP area A address register fields: - - name: WRP1A_STRT - description: Bank 1 WRP first area A start offset - bit_offset: 0 - bit_size: 8 - - name: WRP1A_END - description: Bank 1 WRP first area A end offset - bit_offset: 16 - bit_size: 8 + - name: WRP1A_STRT + description: Bank 1 WRP first area A start offset + bit_offset: 0 + bit_size: 8 + - name: WRP1A_END + description: Bank 1 WRP first area A end offset + bit_offset: 16 + bit_size: 8 fieldset/WRP1BR: description: Flash Bank 1 WRP area B address register fields: - - name: WRP1B_END - description: Bank 1 WRP second area B start offset - bit_offset: 0 - bit_size: 8 - - name: WRP1B_STRT - description: Bank 1 WRP second area B end offset - bit_offset: 16 - bit_size: 8 + - name: WRP1B_END + description: Bank 1 WRP second area B start offset + bit_offset: 0 + bit_size: 8 + - name: WRP1B_STRT + description: Bank 1 WRP second area B end offset + bit_offset: 16 + bit_size: 8 diff --git a/data/registers/flash_wl.yaml b/data/registers/flash_wl.yaml index da253b4..1d98476 100644 --- a/data/registers/flash_wl.yaml +++ b/data/registers/flash_wl.yaml @@ -1,559 +1,558 @@ ---- block/FLASH: description: Flash items: - - name: ACR - description: Access control register - byte_offset: 0 - fieldset: ACR - - name: KEYR - description: Flash key register - byte_offset: 8 - access: Write - fieldset: KEYR - - name: OPTKEYR - description: Option byte key register - byte_offset: 12 - access: Write - fieldset: OPTKEYR - - name: SR - description: Status register - byte_offset: 16 - fieldset: SR - - name: CR - description: Flash control register - byte_offset: 20 - fieldset: CR - - name: ECCR - description: Flash ECC register - byte_offset: 24 - fieldset: ECCR - - name: OPTR - description: Flash option register - byte_offset: 32 - fieldset: OPTR - - name: PCROP1ASR - description: Flash Bank 1 PCROP Start address zone A register - byte_offset: 36 - fieldset: PCROP1ASR - - name: PCROP1AER - description: Flash Bank 1 PCROP End address zone A register - byte_offset: 40 - fieldset: PCROP1AER - - name: WRP1AR - description: Flash Bank 1 WRP area A address register - byte_offset: 44 - fieldset: WRP1AR - - name: WRP1BR - description: Flash Bank 1 WRP area B address register - byte_offset: 48 - fieldset: WRP1BR - - name: PCROP1BSR - description: Flash Bank 1 PCROP Start address area B register - byte_offset: 52 - fieldset: PCROP1BSR - - name: PCROP1BER - description: Flash Bank 1 PCROP End address area B register - byte_offset: 56 - fieldset: PCROP1BER - - name: IPCCBR - description: IPCC mailbox data buffer address register - byte_offset: 60 - fieldset: IPCCBR - - name: C2ACR - description: CPU2 cortex M0 access control register - byte_offset: 92 - fieldset: C2ACR - - name: C2SR - description: CPU2 cortex M0 status register - byte_offset: 96 - fieldset: C2SR - - name: C2CR - description: CPU2 cortex M0 control register - byte_offset: 100 - fieldset: C2CR - - name: SFR - description: Secure flash start address register - byte_offset: 128 - fieldset: SFR - - name: SRRVR - description: Secure SRAM2 start address and cortex M0 reset vector register - byte_offset: 132 - fieldset: SRRVR + - name: ACR + description: Access control register + byte_offset: 0 + fieldset: ACR + - name: KEYR + description: Flash key register + byte_offset: 8 + access: Write + fieldset: KEYR + - name: OPTKEYR + description: Option byte key register + byte_offset: 12 + access: Write + fieldset: OPTKEYR + - name: SR + description: Status register + byte_offset: 16 + fieldset: SR + - name: CR + description: Flash control register + byte_offset: 20 + fieldset: CR + - name: ECCR + description: Flash ECC register + byte_offset: 24 + fieldset: ECCR + - name: OPTR + description: Flash option register + byte_offset: 32 + fieldset: OPTR + - name: PCROP1ASR + description: Flash Bank 1 PCROP Start address zone A register + byte_offset: 36 + fieldset: PCROP1ASR + - name: PCROP1AER + description: Flash Bank 1 PCROP End address zone A register + byte_offset: 40 + fieldset: PCROP1AER + - name: WRP1AR + description: Flash Bank 1 WRP area A address register + byte_offset: 44 + fieldset: WRP1AR + - name: WRP1BR + description: Flash Bank 1 WRP area B address register + byte_offset: 48 + fieldset: WRP1BR + - name: PCROP1BSR + description: Flash Bank 1 PCROP Start address area B register + byte_offset: 52 + fieldset: PCROP1BSR + - name: PCROP1BER + description: Flash Bank 1 PCROP End address area B register + byte_offset: 56 + fieldset: PCROP1BER + - name: IPCCBR + description: IPCC mailbox data buffer address register + byte_offset: 60 + fieldset: IPCCBR + - name: C2ACR + description: CPU2 cortex M0 access control register + byte_offset: 92 + fieldset: C2ACR + - name: C2SR + description: CPU2 cortex M0 status register + byte_offset: 96 + fieldset: C2SR + - name: C2CR + description: CPU2 cortex M0 control register + byte_offset: 100 + fieldset: C2CR + - name: SFR + description: Secure flash start address register + byte_offset: 128 + fieldset: SFR + - name: SRRVR + description: Secure SRAM2 start address and cortex M0 reset vector register + byte_offset: 132 + fieldset: SRRVR fieldset/ACR: description: Access control register fields: - - name: LATENCY - description: Latency - bit_offset: 0 - bit_size: 3 - - name: PRFTEN - description: Prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: Instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: DCEN - description: Data cache enable - bit_offset: 10 - bit_size: 1 - - name: ICRST - description: Instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: DCRST - description: Data cache reset - bit_offset: 12 - bit_size: 1 - - name: PES - description: CPU1 CortexM4 program erase suspend request - bit_offset: 15 - bit_size: 1 - - name: EMPTY - description: Flash User area empty - bit_offset: 16 - bit_size: 1 + - name: LATENCY + description: Latency + bit_offset: 0 + bit_size: 3 + - name: PRFTEN + description: Prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: Instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: DCEN + description: Data cache enable + bit_offset: 10 + bit_size: 1 + - name: ICRST + description: Instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: DCRST + description: Data cache reset + bit_offset: 12 + bit_size: 1 + - name: PES + description: CPU1 CortexM4 program erase suspend request + bit_offset: 15 + bit_size: 1 + - name: EMPTY + description: Flash User area empty + bit_offset: 16 + bit_size: 1 fieldset/C2ACR: description: CPU2 cortex M0 access control register fields: - - name: PRFTEN - description: CPU2 cortex M0 prefetch enable - bit_offset: 8 - bit_size: 1 - - name: ICEN - description: CPU2 cortex M0 instruction cache enable - bit_offset: 9 - bit_size: 1 - - name: ICRST - description: CPU2 cortex M0 instruction cache reset - bit_offset: 11 - bit_size: 1 - - name: PES - description: CPU2 cortex M0 program erase suspend request - bit_offset: 15 - bit_size: 1 + - name: PRFTEN + description: CPU2 cortex M0 prefetch enable + bit_offset: 8 + bit_size: 1 + - name: ICEN + description: CPU2 cortex M0 instruction cache enable + bit_offset: 9 + bit_size: 1 + - name: ICRST + description: CPU2 cortex M0 instruction cache reset + bit_offset: 11 + bit_size: 1 + - name: PES + description: CPU2 cortex M0 program erase suspend request + bit_offset: 15 + bit_size: 1 fieldset/C2CR: description: CPU2 cortex M0 control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: Masse erase - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page Number selection - bit_offset: 3 - bit_size: 8 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: Masse erase + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page Number selection + bit_offset: 3 + bit_size: 8 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 fieldset/C2SR: description: CPU2 cortex M0 status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: write protection error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISSERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 - - name: CFGBSY - description: Programming or erase configuration busy - bit_offset: 18 - bit_size: 1 - - name: PESD - description: Programming or erase operation suspended - bit_offset: 19 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: write protection error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISSERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 + - name: CFGBSY + description: Programming or erase configuration busy + bit_offset: 18 + bit_size: 1 + - name: PESD + description: Programming or erase operation suspended + bit_offset: 19 + bit_size: 1 fieldset/CR: description: Flash control register fields: - - name: PG - description: Programming - bit_offset: 0 - bit_size: 1 - - name: PER - description: Page erase - bit_offset: 1 - bit_size: 1 - - name: MER - description: This bit triggers the mass erase (all user pages) when set - bit_offset: 2 - bit_size: 1 - - name: PNB - description: Page number selection - bit_offset: 3 - bit_size: 8 - - name: STRT - description: Start - bit_offset: 16 - bit_size: 1 - - name: OPTSTRT - description: Options modification start - bit_offset: 17 - bit_size: 1 - - name: FSTPG - description: Fast programming - bit_offset: 18 - bit_size: 1 - - name: EOPIE - description: End of operation interrupt enable - bit_offset: 24 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 25 - bit_size: 1 - - name: RDERRIE - description: PCROP read error interrupt enable - bit_offset: 26 - bit_size: 1 - - name: OBL_LAUNCH - description: Force the option byte loading - bit_offset: 27 - bit_size: 1 - - name: OPTLOCK - description: Options Lock - bit_offset: 30 - bit_size: 1 - - name: LOCK - description: FLASH_CR Lock - bit_offset: 31 - bit_size: 1 + - name: PG + description: Programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: This bit triggers the mass erase (all user pages) when set + bit_offset: 2 + bit_size: 1 + - name: PNB + description: Page number selection + bit_offset: 3 + bit_size: 8 + - name: STRT + description: Start + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: Options modification start + bit_offset: 17 + bit_size: 1 + - name: FSTPG + description: Fast programming + bit_offset: 18 + bit_size: 1 + - name: EOPIE + description: End of operation interrupt enable + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 25 + bit_size: 1 + - name: RDERRIE + description: PCROP read error interrupt enable + bit_offset: 26 + bit_size: 1 + - name: OBL_LAUNCH + description: Force the option byte loading + bit_offset: 27 + bit_size: 1 + - name: OPTLOCK + description: Options Lock + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: FLASH_CR Lock + bit_offset: 31 + bit_size: 1 fieldset/ECCR: description: Flash ECC register fields: - - name: ADDR_ECC - description: ECC fail address - bit_offset: 0 - bit_size: 17 - - name: SYSF_ECC - description: System Flash ECC fail - bit_offset: 20 - bit_size: 1 - - name: ECCCIE - description: ECC correction interrupt enable - bit_offset: 24 - bit_size: 1 - - name: CPUID - description: CPU identification - bit_offset: 26 - bit_size: 3 - - name: ECCC - description: ECC correction - bit_offset: 30 - bit_size: 1 - - name: ECCD - description: ECC detection - bit_offset: 31 - bit_size: 1 + - name: ADDR_ECC + description: ECC fail address + bit_offset: 0 + bit_size: 17 + - name: SYSF_ECC + description: System Flash ECC fail + bit_offset: 20 + bit_size: 1 + - name: ECCCIE + description: ECC correction interrupt enable + bit_offset: 24 + bit_size: 1 + - name: CPUID + description: CPU identification + bit_offset: 26 + bit_size: 3 + - name: ECCC + description: ECC correction + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: ECC detection + bit_offset: 31 + bit_size: 1 fieldset/IPCCBR: description: IPCC mailbox data buffer address register fields: - - name: IPCCDBA - description: PCC mailbox data buffer base address - bit_offset: 0 - bit_size: 14 + - name: IPCCDBA + description: PCC mailbox data buffer base address + bit_offset: 0 + bit_size: 14 fieldset/KEYR: description: Flash key register fields: - - name: KEYR - description: KEYR - bit_offset: 0 - bit_size: 32 + - name: KEYR + description: KEYR + bit_offset: 0 + bit_size: 32 fieldset/OPTKEYR: description: Option byte key register fields: - - name: OPTKEYR - description: Option byte key - bit_offset: 0 - bit_size: 32 + - name: OPTKEYR + description: Option byte key + bit_offset: 0 + bit_size: 32 fieldset/OPTR: description: Flash option register fields: - - name: RDP - description: Read protection level - bit_offset: 0 - bit_size: 8 - - name: ESE - description: Security enabled - bit_offset: 8 - bit_size: 1 - - name: BOR_LEV - description: BOR reset Level - bit_offset: 9 - bit_size: 3 - - name: nRST_STOP - description: nRST_STOP - bit_offset: 12 - bit_size: 1 - - name: nRST_STDBY - description: nRST_STDBY - bit_offset: 13 - bit_size: 1 - - name: nRST_SHDW - description: nRST_SHDW - bit_offset: 14 - bit_size: 1 - - name: IDWG_SW - description: Independent watchdog selection - bit_offset: 16 - bit_size: 1 - - name: IWDG_STOP - description: Independent watchdog counter freeze in Stop mode - bit_offset: 17 - bit_size: 1 - - name: IWDG_STDBY - description: Independent watchdog counter freeze in Standby mode - bit_offset: 18 - bit_size: 1 - - name: WWDG_SW - description: Window watchdog selection - bit_offset: 19 - bit_size: 1 - - name: nBOOT1 - description: Boot configuration - bit_offset: 23 - bit_size: 1 - - name: SRAM2_PE - description: SRAM2 parity check enable - bit_offset: 24 - bit_size: 1 - - name: SRAM2_RST - description: SRAM2 Erase when system reset - bit_offset: 25 - bit_size: 1 - - name: nSWBOOT0 - description: Software Boot0 - bit_offset: 26 - bit_size: 1 - - name: nBOOT0 - description: nBoot0 option bit - bit_offset: 27 - bit_size: 1 - - name: AGC_TRIM - description: Radio Automatic Gain Control Trimming - bit_offset: 29 - bit_size: 3 + - name: RDP + description: Read protection level + bit_offset: 0 + bit_size: 8 + - name: ESE + description: Security enabled + bit_offset: 8 + bit_size: 1 + - name: BOR_LEV + description: BOR reset Level + bit_offset: 9 + bit_size: 3 + - name: nRST_STOP + description: nRST_STOP + bit_offset: 12 + bit_size: 1 + - name: nRST_STDBY + description: nRST_STDBY + bit_offset: 13 + bit_size: 1 + - name: nRST_SHDW + description: nRST_SHDW + bit_offset: 14 + bit_size: 1 + - name: IDWG_SW + description: Independent watchdog selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: nBOOT1 + description: Boot configuration + bit_offset: 23 + bit_size: 1 + - name: SRAM2_PE + description: SRAM2 parity check enable + bit_offset: 24 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 Erase when system reset + bit_offset: 25 + bit_size: 1 + - name: nSWBOOT0 + description: Software Boot0 + bit_offset: 26 + bit_size: 1 + - name: nBOOT0 + description: nBoot0 option bit + bit_offset: 27 + bit_size: 1 + - name: AGC_TRIM + description: Radio Automatic Gain Control Trimming + bit_offset: 29 + bit_size: 3 fieldset/PCROP1AER: description: Flash Bank 1 PCROP End address zone A register fields: - - name: PCROP1A_END - description: Bank 1 PCROP area end offset - bit_offset: 0 - bit_size: 9 - - name: PCROP_RDP - description: PCROP area preserved when RDP level decreased - bit_offset: 31 - bit_size: 1 + - name: PCROP1A_END + description: Bank 1 PCROP area end offset + bit_offset: 0 + bit_size: 9 + - name: PCROP_RDP + description: PCROP area preserved when RDP level decreased + bit_offset: 31 + bit_size: 1 fieldset/PCROP1ASR: description: Flash Bank 1 PCROP Start address zone A register fields: - - name: PCROP1A_STRT - description: Bank 1 PCROPQ area start offset - bit_offset: 0 - bit_size: 9 + - name: PCROP1A_STRT + description: Bank 1 PCROPQ area start offset + bit_offset: 0 + bit_size: 9 fieldset/PCROP1BER: description: Flash Bank 1 PCROP End address area B register fields: - - name: PCROP1B_END - description: Bank 1 PCROP area end area B offset - bit_offset: 0 - bit_size: 9 + - name: PCROP1B_END + description: Bank 1 PCROP area end area B offset + bit_offset: 0 + bit_size: 9 fieldset/PCROP1BSR: description: Flash Bank 1 PCROP Start address area B register fields: - - name: PCROP1B_STRT - description: Bank 1 PCROP area B start offset - bit_offset: 0 - bit_size: 9 + - name: PCROP1B_STRT + description: Bank 1 PCROP area B start offset + bit_offset: 0 + bit_size: 9 fieldset/SFR: description: Secure flash start address register fields: - - name: SFSA - description: Secure flash start address - bit_offset: 0 - bit_size: 8 - - name: FSD - description: Flash security disable - bit_offset: 8 - bit_size: 1 - - name: DDS - description: Disable Cortex M0 debug access - bit_offset: 12 - bit_size: 1 + - name: SFSA + description: Secure flash start address + bit_offset: 0 + bit_size: 8 + - name: FSD + description: Flash security disable + bit_offset: 8 + bit_size: 1 + - name: DDS + description: Disable Cortex M0 debug access + bit_offset: 12 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: EOP - description: End of operation - bit_offset: 0 - bit_size: 1 - - name: OPERR - description: Operation error - bit_offset: 1 - bit_size: 1 - - name: PROGERR - description: Programming error - bit_offset: 3 - bit_size: 1 - - name: WRPERR - description: Write protected error - bit_offset: 4 - bit_size: 1 - - name: PGAERR - description: Programming alignment error - bit_offset: 5 - bit_size: 1 - - name: SIZERR - description: Size error - bit_offset: 6 - bit_size: 1 - - name: PGSERR - description: Programming sequence error - bit_offset: 7 - bit_size: 1 - - name: MISERR - description: Fast programming data miss error - bit_offset: 8 - bit_size: 1 - - name: FASTERR - description: Fast programming error - bit_offset: 9 - bit_size: 1 - - name: OPTNV - description: User Option OPTVAL indication - bit_offset: 13 - bit_size: 1 - - name: RDERR - description: PCROP read error - bit_offset: 14 - bit_size: 1 - - name: OPTVERR - description: Option validity error - bit_offset: 15 - bit_size: 1 - - name: BSY - description: Busy - bit_offset: 16 - bit_size: 1 - - name: CFGBSY - description: Programming or erase configuration busy - bit_offset: 18 - bit_size: 1 - - name: PESD - description: Programming or erase operation suspended - bit_offset: 19 - bit_size: 1 + - name: EOP + description: End of operation + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: Operation error + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: Programming error + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: Write protected error + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: Programming alignment error + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: Size error + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: Programming sequence error + bit_offset: 7 + bit_size: 1 + - name: MISERR + description: Fast programming data miss error + bit_offset: 8 + bit_size: 1 + - name: FASTERR + description: Fast programming error + bit_offset: 9 + bit_size: 1 + - name: OPTNV + description: User Option OPTVAL indication + bit_offset: 13 + bit_size: 1 + - name: RDERR + description: PCROP read error + bit_offset: 14 + bit_size: 1 + - name: OPTVERR + description: Option validity error + bit_offset: 15 + bit_size: 1 + - name: BSY + description: Busy + bit_offset: 16 + bit_size: 1 + - name: CFGBSY + description: Programming or erase configuration busy + bit_offset: 18 + bit_size: 1 + - name: PESD + description: Programming or erase operation suspended + bit_offset: 19 + bit_size: 1 fieldset/SRRVR: description: Secure SRAM2 start address and cortex M0 reset vector register fields: - - name: SBRV - description: cortex M0 access control register - bit_offset: 0 - bit_size: 18 - - name: SBRSA - description: Secure backup SRAM2a start address - bit_offset: 18 - bit_size: 5 - - name: BRSD - description: backup SRAM2a security disable - bit_offset: 23 - bit_size: 1 - - name: SNBRSA - description: Secure non backup SRAM2a start address - bit_offset: 25 - bit_size: 5 - - name: NBRSD - description: non-backup SRAM2b security disable - bit_offset: 30 - bit_size: 1 - - name: C2OPT - description: CPU2 cortex M0 boot reset vector memory selection - bit_offset: 31 - bit_size: 1 + - name: SBRV + description: cortex M0 access control register + bit_offset: 0 + bit_size: 18 + - name: SBRSA + description: Secure backup SRAM2a start address + bit_offset: 18 + bit_size: 5 + - name: BRSD + description: backup SRAM2a security disable + bit_offset: 23 + bit_size: 1 + - name: SNBRSA + description: Secure non backup SRAM2a start address + bit_offset: 25 + bit_size: 5 + - name: NBRSD + description: non-backup SRAM2b security disable + bit_offset: 30 + bit_size: 1 + - name: C2OPT + description: CPU2 cortex M0 boot reset vector memory selection + bit_offset: 31 + bit_size: 1 fieldset/WRP1AR: description: Flash Bank 1 WRP area A address register fields: - - name: WRP1A_STRT - description: Bank 1 WRP first area A start offset - bit_offset: 0 - bit_size: 8 - - name: WRP1A_END - description: Bank 1 WRP first area A end offset - bit_offset: 16 - bit_size: 8 + - name: WRP1A_STRT + description: Bank 1 WRP first area A start offset + bit_offset: 0 + bit_size: 8 + - name: WRP1A_END + description: Bank 1 WRP first area A end offset + bit_offset: 16 + bit_size: 8 fieldset/WRP1BR: description: Flash Bank 1 WRP area B address register fields: - - name: WRP1B_END - description: Bank 1 WRP second area B start offset - bit_offset: 0 - bit_size: 8 - - name: WRP1B_STRT - description: Bank 1 WRP second area B end offset - bit_offset: 16 - bit_size: 8 + - name: WRP1B_END + description: Bank 1 WRP second area B start offset + bit_offset: 0 + bit_size: 8 + - name: WRP1B_STRT + description: Bank 1 WRP second area B end offset + bit_offset: 16 + bit_size: 8 diff --git a/data/registers/fmac_v1.yaml b/data/registers/fmac_v1.yaml index 707fb9a..1ed3dcc 100644 --- a/data/registers/fmac_v1.yaml +++ b/data/registers/fmac_v1.yaml @@ -1,179 +1,178 @@ ---- block/FMAC: description: Filter math accelerator items: - - name: X1BUFCFG - description: X1 buffer configuration register - byte_offset: 0 - fieldset: X1BUFCFG - - name: X2BUFCFG - description: X2 buffer configuration register - byte_offset: 4 - fieldset: X2BUFCFG - - name: YBUFCFG - description: Y buffer configuration register - byte_offset: 8 - fieldset: YBUFCFG - - name: PARAM - description: Parameter register - byte_offset: 12 - fieldset: PARAM - - name: CR - description: Control register - byte_offset: 16 - fieldset: CR - - name: SR - description: Status register - byte_offset: 20 - access: Read - fieldset: SR - - name: WDATA - description: Write data register - byte_offset: 24 - access: Write - fieldset: WDATA - - name: RDATA - description: Read data register - byte_offset: 28 - access: Read - fieldset: RDATA + - name: X1BUFCFG + description: X1 buffer configuration register + byte_offset: 0 + fieldset: X1BUFCFG + - name: X2BUFCFG + description: X2 buffer configuration register + byte_offset: 4 + fieldset: X2BUFCFG + - name: YBUFCFG + description: Y buffer configuration register + byte_offset: 8 + fieldset: YBUFCFG + - name: PARAM + description: Parameter register + byte_offset: 12 + fieldset: PARAM + - name: CR + description: Control register + byte_offset: 16 + fieldset: CR + - name: SR + description: Status register + byte_offset: 20 + access: Read + fieldset: SR + - name: WDATA + description: Write data register + byte_offset: 24 + access: Write + fieldset: WDATA + - name: RDATA + description: Read data register + byte_offset: 28 + access: Read + fieldset: RDATA fieldset/CR: description: Control register fields: - - name: RIEN - description: Enable read interrupt - bit_offset: 0 - bit_size: 1 - - name: WIEN - description: Enable write interrupt - bit_offset: 1 - bit_size: 1 - - name: OVFLIEN - description: Enable overflow error interrupts - bit_offset: 2 - bit_size: 1 - - name: UNFLIEN - description: Enable underflow error interrupts - bit_offset: 3 - bit_size: 1 - - name: SATIEN - description: Enable saturation error interrupts - bit_offset: 4 - bit_size: 1 - - name: DMAREN - description: Enable DMA read channel requests - bit_offset: 8 - bit_size: 1 - - name: DMAWEN - description: Enable DMA write channel requests - bit_offset: 9 - bit_size: 1 - - name: CLIPEN - description: Enable clipping - bit_offset: 15 - bit_size: 1 - - name: RESET - description: Reset FMAC unit - bit_offset: 16 - bit_size: 1 + - name: RIEN + description: Enable read interrupt + bit_offset: 0 + bit_size: 1 + - name: WIEN + description: Enable write interrupt + bit_offset: 1 + bit_size: 1 + - name: OVFLIEN + description: Enable overflow error interrupts + bit_offset: 2 + bit_size: 1 + - name: UNFLIEN + description: Enable underflow error interrupts + bit_offset: 3 + bit_size: 1 + - name: SATIEN + description: Enable saturation error interrupts + bit_offset: 4 + bit_size: 1 + - name: DMAREN + description: Enable DMA read channel requests + bit_offset: 8 + bit_size: 1 + - name: DMAWEN + description: Enable DMA write channel requests + bit_offset: 9 + bit_size: 1 + - name: CLIPEN + description: Enable clipping + bit_offset: 15 + bit_size: 1 + - name: RESET + description: Reset FMAC unit + bit_offset: 16 + bit_size: 1 fieldset/PARAM: description: Parameter register fields: - - name: P - description: Input parameter P - bit_offset: 0 - bit_size: 8 - - name: Q - description: Input parameter Q - bit_offset: 8 - bit_size: 8 - - name: R - description: Input parameter R - bit_offset: 16 - bit_size: 8 - - name: FUNC - description: Function - bit_offset: 24 - bit_size: 7 - - name: START - description: Enable execution - bit_offset: 31 - bit_size: 1 + - name: P + description: Input parameter P + bit_offset: 0 + bit_size: 8 + - name: Q + description: Input parameter Q + bit_offset: 8 + bit_size: 8 + - name: R + description: Input parameter R + bit_offset: 16 + bit_size: 8 + - name: FUNC + description: Function + bit_offset: 24 + bit_size: 7 + - name: START + description: Enable execution + bit_offset: 31 + bit_size: 1 fieldset/RDATA: description: Read data register fields: - - name: RES - description: Read data (contents of the Y output buffer at the address indicated by the READ pointer) - bit_offset: 0 - bit_size: 16 + - name: RES + description: Read data (contents of the Y output buffer at the address indicated by the READ pointer) + bit_offset: 0 + bit_size: 16 fieldset/SR: description: Status register fields: - - name: YEMPTY - description: Y buffer empty flag - bit_offset: 0 - bit_size: 1 - - name: X1FULL - description: X1 buffer full flag - bit_offset: 1 - bit_size: 1 - - name: OVFL - description: Overflow error flag - bit_offset: 8 - bit_size: 1 - - name: UNFL - description: Underflow error flag - bit_offset: 9 - bit_size: 1 - - name: SAT - description: Saturation error flag - bit_offset: 10 - bit_size: 1 + - name: YEMPTY + description: Y buffer empty flag + bit_offset: 0 + bit_size: 1 + - name: X1FULL + description: X1 buffer full flag + bit_offset: 1 + bit_size: 1 + - name: OVFL + description: Overflow error flag + bit_offset: 8 + bit_size: 1 + - name: UNFL + description: Underflow error flag + bit_offset: 9 + bit_size: 1 + - name: SAT + description: Saturation error flag + bit_offset: 10 + bit_size: 1 fieldset/WDATA: description: Write data register fields: - - name: WDATA - description: Write data (write data are transferred to the address indicated by the write pointer) - bit_offset: 0 - bit_size: 16 + - name: WDATA + description: Write data (write data are transferred to the address indicated by the write pointer) + bit_offset: 0 + bit_size: 16 fieldset/X1BUFCFG: description: X1 buffer configuration register fields: - - name: X1_BASE - description: Base address of X1 buffer - bit_offset: 0 - bit_size: 8 - - name: X1_BUF_SIZE - description: Allocated size of X1 buffer in 16-bit words - bit_offset: 8 - bit_size: 8 - - name: FULL_WM - description: Watermark for buffer full flag - bit_offset: 24 - bit_size: 2 + - name: X1_BASE + description: Base address of X1 buffer + bit_offset: 0 + bit_size: 8 + - name: X1_BUF_SIZE + description: Allocated size of X1 buffer in 16-bit words + bit_offset: 8 + bit_size: 8 + - name: FULL_WM + description: Watermark for buffer full flag + bit_offset: 24 + bit_size: 2 fieldset/X2BUFCFG: description: X2 buffer configuration register fields: - - name: X2_BASE - description: Base address of X2 buffer - bit_offset: 0 - bit_size: 8 - - name: X2_BUF_SIZE - description: Size of X2 buffer in 16-bit words - bit_offset: 8 - bit_size: 8 + - name: X2_BASE + description: Base address of X2 buffer + bit_offset: 0 + bit_size: 8 + - name: X2_BUF_SIZE + description: Size of X2 buffer in 16-bit words + bit_offset: 8 + bit_size: 8 fieldset/YBUFCFG: description: Y buffer configuration register fields: - - name: Y_BASE - description: Base address of Y buffer - bit_offset: 0 - bit_size: 8 - - name: Y_BUF_SIZE - description: Size of Y buffer in 16-bit words - bit_offset: 8 - bit_size: 8 - - name: EMPTY_WM - description: Watermark for buffer empty flag - bit_offset: 24 - bit_size: 2 + - name: Y_BASE + description: Base address of Y buffer + bit_offset: 0 + bit_size: 8 + - name: Y_BUF_SIZE + description: Size of Y buffer in 16-bit words + bit_offset: 8 + bit_size: 8 + - name: EMPTY_WM + description: Watermark for buffer empty flag + bit_offset: 24 + bit_size: 2 diff --git a/data/registers/fmc_v1x3.yaml b/data/registers/fmc_v1x3.yaml index 259d84b..af7a9f8 100644 --- a/data/registers/fmc_v1x3.yaml +++ b/data/registers/fmc_v1x3.yaml @@ -1,781 +1,780 @@ ---- block/FMC: description: Flexible memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCR - description: PC Card/NAND Flash control register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 96 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 100 - fieldset: SR - - name: PMEM - description: Common memory space timing register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 104 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 108 - fieldset: PATT - - name: ECCR - description: ECC result register 2-3 - array: - len: 2 - stride: 32 - byte_offset: 116 - access: Read - fieldset: ECCR - - name: PIO4 - description: I/O space timing register 4 - byte_offset: 176 - fieldset: PIO4 - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR - - name: SDCR - description: SDRAM Control Register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 320 - fieldset: SDCR - - name: SDTR - description: SDRAM Timing register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 328 - fieldset: SDTR - - name: SDCMR - description: SDRAM Command Mode register - byte_offset: 336 - fieldset: SDCMR - - name: SDRTR - description: SDRAM Refresh Timer register - byte_offset: 340 - fieldset: SDRTR - - name: SDSR - description: SDRAM Status register - byte_offset: 344 - access: Read - fieldset: SDSR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCR + description: PC Card/NAND Flash control register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 96 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 100 + fieldset: SR + - name: PMEM + description: Common memory space timing register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 104 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 108 + fieldset: PATT + - name: ECCR + description: ECC result register 2-3 + array: + len: 2 + stride: 32 + byte_offset: 116 + access: Read + fieldset: ECCR + - name: PIO4 + description: I/O space timing register 4 + byte_offset: 176 + fieldset: PIO4 + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR + - name: SDCR + description: SDRAM Control Register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 320 + fieldset: SDCR + - name: SDTR + description: SDRAM Timing register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 328 + fieldset: SDTR + - name: SDCMR + description: SDRAM Command Mode register + byte_offset: 336 + fieldset: SDCMR + - name: SDRTR + description: SDRAM Refresh Timer register + byte_offset: 340 + fieldset: SDRTR + - name: SDSR + description: SDRAM Status register + byte_offset: 344 + access: Read + fieldset: SDSR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WRAPMOD - description: WRAPMOD - bit_offset: 10 - bit_size: 1 - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WRAPMOD + description: WRAPMOD + bit_offset: 10 + bit_size: 1 + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WRAPMOD - description: WRAPMOD - bit_offset: 10 - bit_size: 1 - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WRAPMOD + description: WRAPMOD + bit_offset: 10 + bit_size: 1 + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PIO4: description: I/O space timing register 4 fields: - - name: IOSETx - description: IOSETx - bit_offset: 0 - bit_size: 8 - - name: IOWAITx - description: IOWAITx - bit_offset: 8 - bit_size: 8 - - name: IOHOLDx - description: IOHOLDx - bit_offset: 16 - bit_size: 8 - - name: IOHIZx - description: IOHIZx - bit_offset: 24 - bit_size: 8 + - name: IOSETx + description: IOSETx + bit_offset: 0 + bit_size: 8 + - name: IOWAITx + description: IOWAITx + bit_offset: 8 + bit_size: 8 + - name: IOHOLDx + description: IOHOLDx + bit_offset: 16 + bit_size: 8 + - name: IOHIZx + description: IOHIZx + bit_offset: 24 + bit_size: 8 fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SDCMR: description: SDRAM Command Mode register fields: - - name: MODE - description: Command mode - bit_offset: 0 - bit_size: 3 - enum: MODE - - name: CTB2 - description: Command target bank 2 - bit_offset: 3 - bit_size: 1 - - name: CTB1 - description: Command target bank 1 - bit_offset: 4 - bit_size: 1 - - name: NRFS - description: Number of Auto-refresh - bit_offset: 5 - bit_size: 4 - - name: MRD - description: Mode Register definition - bit_offset: 9 - bit_size: 13 + - name: MODE + description: Command mode + bit_offset: 0 + bit_size: 3 + enum: MODE + - name: CTB2 + description: Command target bank 2 + bit_offset: 3 + bit_size: 1 + - name: CTB1 + description: Command target bank 1 + bit_offset: 4 + bit_size: 1 + - name: NRFS + description: Number of Auto-refresh + bit_offset: 5 + bit_size: 4 + - name: MRD + description: Mode Register definition + bit_offset: 9 + bit_size: 13 fieldset/SDCR: description: SDRAM Control Register fields: - - name: NC - description: Number of column address bits - bit_offset: 0 - bit_size: 2 - enum: NC - - name: NR - description: Number of row address bits - bit_offset: 2 - bit_size: 2 - enum: NR - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: NB - description: Number of internal banks - bit_offset: 6 - bit_size: 1 - enum: NB - - name: CAS - description: CAS latency - bit_offset: 7 - bit_size: 2 - enum: CAS - - name: WP - description: Write protection - bit_offset: 9 - bit_size: 1 - - name: SDCLK - description: SDRAM clock configuration - bit_offset: 10 - bit_size: 2 - enum: SDCLK - - name: RBURST - description: Burst read - bit_offset: 12 - bit_size: 1 - - name: RPIPE - description: Read pipe - bit_offset: 13 - bit_size: 2 - enum: RPIPE + - name: NC + description: Number of column address bits + bit_offset: 0 + bit_size: 2 + enum: NC + - name: NR + description: Number of row address bits + bit_offset: 2 + bit_size: 2 + enum: NR + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: NB + description: Number of internal banks + bit_offset: 6 + bit_size: 1 + enum: NB + - name: CAS + description: CAS latency + bit_offset: 7 + bit_size: 2 + enum: CAS + - name: WP + description: Write protection + bit_offset: 9 + bit_size: 1 + - name: SDCLK + description: SDRAM clock configuration + bit_offset: 10 + bit_size: 2 + enum: SDCLK + - name: RBURST + description: Burst read + bit_offset: 12 + bit_size: 1 + - name: RPIPE + description: Read pipe + bit_offset: 13 + bit_size: 2 + enum: RPIPE fieldset/SDRTR: description: SDRAM Refresh Timer register fields: - - name: CRE - description: Clear Refresh error flag - bit_offset: 0 - bit_size: 1 - - name: COUNT - description: Refresh Timer Count - bit_offset: 1 - bit_size: 13 - - name: REIE - description: RES Interrupt Enable - bit_offset: 14 - bit_size: 1 + - name: CRE + description: Clear Refresh error flag + bit_offset: 0 + bit_size: 1 + - name: COUNT + description: Refresh Timer Count + bit_offset: 1 + bit_size: 13 + - name: REIE + description: RES Interrupt Enable + bit_offset: 14 + bit_size: 1 fieldset/SDSR: description: SDRAM Status register fields: - - name: RE - description: Refresh error flag - bit_offset: 0 - bit_size: 1 - - name: MODES1 - description: Status Mode for Bank 1 - bit_offset: 1 - bit_size: 2 - enum: MODES - - name: MODES2 - description: Status Mode for Bank 2 - bit_offset: 3 - bit_size: 2 - enum: MODES - - name: BUSY - description: Busy status - bit_offset: 5 - bit_size: 1 + - name: RE + description: Refresh error flag + bit_offset: 0 + bit_size: 1 + - name: MODES1 + description: Status Mode for Bank 1 + bit_offset: 1 + bit_size: 2 + enum: MODES + - name: MODES2 + description: Status Mode for Bank 2 + bit_offset: 3 + bit_size: 2 + enum: MODES + - name: BUSY + description: Busy status + bit_offset: 5 + bit_size: 1 fieldset/SDTR: description: SDRAM Timing register fields: - - name: TMRD - description: Load Mode Register to Active - bit_offset: 0 - bit_size: 4 - - name: TXSR - description: Exit self-refresh delay - bit_offset: 4 - bit_size: 4 - - name: TRAS - description: Self refresh time - bit_offset: 8 - bit_size: 4 - - name: TRC - description: Row cycle delay - bit_offset: 12 - bit_size: 4 - - name: TWR - description: Recovery delay - bit_offset: 16 - bit_size: 4 - - name: TRP - description: Row precharge delay - bit_offset: 20 - bit_size: 4 - - name: TRCD - description: Row to column delay - bit_offset: 24 - bit_size: 4 + - name: TMRD + description: Load Mode Register to Active + bit_offset: 0 + bit_size: 4 + - name: TXSR + description: Exit self-refresh delay + bit_offset: 4 + bit_size: 4 + - name: TRAS + description: Self refresh time + bit_offset: 8 + bit_size: 4 + - name: TRC + description: Row cycle delay + bit_offset: 12 + bit_size: 4 + - name: TWR + description: Recovery delay + bit_offset: 16 + bit_size: 4 + - name: TRP + description: Row precharge delay + bit_offset: 20 + bit_size: 4 + - name: TRCD + description: Row to column delay + bit_offset: 24 + bit_size: 4 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CAS: bit_size: 2 variants: - - name: Clocks1 - description: 1 cycle - value: 1 - - name: Clocks2 - description: 2 cycles - value: 2 - - name: Clocks3 - description: 3 cycles - value: 3 + - name: Clocks1 + description: 1 cycle + value: 1 + - name: Clocks2 + description: 2 cycles + value: 2 + - name: Clocks3 + description: 3 cycles + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MODE: bit_size: 3 variants: - - name: Normal - description: Normal Mode - value: 0 - - name: ClockConfigurationEnable - description: Clock Configuration Enable - value: 1 - - name: PALL - description: PALL (All Bank Precharge) command - value: 2 - - name: AutoRefreshCommand - description: Auto-refresh command - value: 3 - - name: LoadModeRegister - description: Load Mode Resgier - value: 4 - - name: SelfRefreshCommand - description: Self-refresh command - value: 5 - - name: PowerDownCommand - description: Power-down command - value: 6 + - name: Normal + description: Normal Mode + value: 0 + - name: ClockConfigurationEnable + description: Clock Configuration Enable + value: 1 + - name: PALL + description: PALL (All Bank Precharge) command + value: 2 + - name: AutoRefreshCommand + description: Auto-refresh command + value: 3 + - name: LoadModeRegister + description: Load Mode Resgier + value: 4 + - name: SelfRefreshCommand + description: Self-refresh command + value: 5 + - name: PowerDownCommand + description: Power-down command + value: 6 enum/MODES: bit_size: 2 variants: - - name: Normal - description: Normal Mode - value: 0 - - name: SelfRefresh - description: Self-refresh mode - value: 1 - - name: PowerDown - description: Power-down mode - value: 2 + - name: Normal + description: Normal Mode + value: 0 + - name: SelfRefresh + description: Self-refresh mode + value: 1 + - name: PowerDown + description: Power-down mode + value: 2 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/NB: bit_size: 1 variants: - - name: NB2 - description: Two internal Banks - value: 0 - - name: NB4 - description: Four internal Banks - value: 1 + - name: NB2 + description: Two internal Banks + value: 0 + - name: NB4 + description: Four internal Banks + value: 1 enum/NC: bit_size: 2 variants: - - name: Bits8 - description: 8 bits - value: 0 - - name: Bits9 - description: 9 bits - value: 1 - - name: Bits10 - description: 10 bits - value: 2 - - name: Bits11 - description: 11 bits - value: 3 + - name: Bits8 + description: 8 bits + value: 0 + - name: Bits9 + description: 9 bits + value: 1 + - name: Bits10 + description: 10 bits + value: 2 + - name: Bits11 + description: 11 bits + value: 3 enum/NR: bit_size: 2 variants: - - name: Bits11 - description: 11 bits - value: 0 - - name: Bits12 - description: 12 bits - value: 1 - - name: Bits13 - description: 13 bits - value: 2 + - name: Bits11 + description: 11 bits + value: 0 + - name: Bits12 + description: 12 bits + value: 1 + - name: Bits13 + description: 13 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/RPIPE: bit_size: 2 variants: - - name: NoDelay - description: No clock cycle delay - value: 0 - - name: Clocks1 - description: One clock cycle delay - value: 1 - - name: Clocks2 - description: Two clock cycles delay - value: 2 + - name: NoDelay + description: No clock cycle delay + value: 0 + - name: Clocks1 + description: One clock cycle delay + value: 1 + - name: Clocks2 + description: Two clock cycles delay + value: 2 enum/SDCLK: bit_size: 2 variants: - - name: Disabled - description: SDCLK clock disabled - value: 0 - - name: Div2 - description: SDCLK period = 2 x HCLK period - value: 2 - - name: Div3 - description: SDCLK period = 3 x HCLK period - value: 3 + - name: Disabled + description: SDCLK clock disabled + value: 0 + - name: Div2 + description: SDCLK period = 2 x HCLK period + value: 2 + - name: Div3 + description: SDCLK period = 3 x HCLK period + value: 3 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fmc_v2x1.yaml b/data/registers/fmc_v2x1.yaml index ad43c48..8b6e980 100644 --- a/data/registers/fmc_v2x1.yaml +++ b/data/registers/fmc_v2x1.yaml @@ -1,739 +1,738 @@ ---- block/FMC: description: Flexible memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCR - description: PC Card/NAND Flash control register - byte_offset: 128 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register - byte_offset: 132 - fieldset: SR - - name: PMEM - description: Common memory space timing register - byte_offset: 136 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register - byte_offset: 140 - fieldset: PATT - - name: ECCR - description: ECC result register - byte_offset: 148 - access: Read - fieldset: ECCR - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR - - name: SDCR - description: SDRAM Control Register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 320 - fieldset: SDCR - - name: SDTR - description: SDRAM Timing register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 328 - fieldset: SDTR - - name: SDCMR - description: SDRAM Command Mode register - byte_offset: 336 - fieldset: SDCMR - - name: SDRTR - description: SDRAM Refresh Timer register - byte_offset: 340 - fieldset: SDRTR - - name: SDSR - description: SDRAM Status register - byte_offset: 344 - access: Read - fieldset: SDSR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCR + description: PC Card/NAND Flash control register + byte_offset: 128 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register + byte_offset: 132 + fieldset: SR + - name: PMEM + description: Common memory space timing register + byte_offset: 136 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register + byte_offset: 140 + fieldset: PATT + - name: ECCR + description: ECC result register + byte_offset: 148 + access: Read + fieldset: ECCR + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR + - name: SDCR + description: SDRAM Control Register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 320 + fieldset: SDCR + - name: SDTR + description: SDRAM Timing register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 328 + fieldset: SDTR + - name: SDCMR + description: SDRAM Command Mode register + byte_offset: 336 + fieldset: SDCMR + - name: SDRTR + description: SDRAM Refresh Timer register + byte_offset: 340 + fieldset: SDRTR + - name: SDSR + description: SDRAM Status register + byte_offset: 344 + access: Read + fieldset: SDSR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 - - name: WFDIS - description: Write FIFO disable - bit_offset: 21 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 + - name: WFDIS + description: Write FIFO disable + bit_offset: 21 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SDCMR: description: SDRAM Command Mode register fields: - - name: MODE - description: Command mode - bit_offset: 0 - bit_size: 3 - enum: MODE - - name: CTB2 - description: Command target bank 2 - bit_offset: 3 - bit_size: 1 - - name: CTB1 - description: Command target bank 1 - bit_offset: 4 - bit_size: 1 - - name: NRFS - description: Number of Auto-refresh - bit_offset: 5 - bit_size: 4 - - name: MRD - description: Mode Register definition - bit_offset: 9 - bit_size: 13 + - name: MODE + description: Command mode + bit_offset: 0 + bit_size: 3 + enum: MODE + - name: CTB2 + description: Command target bank 2 + bit_offset: 3 + bit_size: 1 + - name: CTB1 + description: Command target bank 1 + bit_offset: 4 + bit_size: 1 + - name: NRFS + description: Number of Auto-refresh + bit_offset: 5 + bit_size: 4 + - name: MRD + description: Mode Register definition + bit_offset: 9 + bit_size: 13 fieldset/SDCR: description: SDRAM Control Register fields: - - name: NC - description: Number of column address bits - bit_offset: 0 - bit_size: 2 - enum: NC - - name: NR - description: Number of row address bits - bit_offset: 2 - bit_size: 2 - enum: NR - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: NB - description: Number of internal banks - bit_offset: 6 - bit_size: 1 - enum: NB - - name: CAS - description: CAS latency - bit_offset: 7 - bit_size: 2 - enum: CAS - - name: WP - description: Write protection - bit_offset: 9 - bit_size: 1 - - name: SDCLK - description: SDRAM clock configuration - bit_offset: 10 - bit_size: 2 - enum: SDCLK - - name: RBURST - description: Burst read - bit_offset: 12 - bit_size: 1 - - name: RPIPE - description: Read pipe - bit_offset: 13 - bit_size: 2 - enum: RPIPE + - name: NC + description: Number of column address bits + bit_offset: 0 + bit_size: 2 + enum: NC + - name: NR + description: Number of row address bits + bit_offset: 2 + bit_size: 2 + enum: NR + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: NB + description: Number of internal banks + bit_offset: 6 + bit_size: 1 + enum: NB + - name: CAS + description: CAS latency + bit_offset: 7 + bit_size: 2 + enum: CAS + - name: WP + description: Write protection + bit_offset: 9 + bit_size: 1 + - name: SDCLK + description: SDRAM clock configuration + bit_offset: 10 + bit_size: 2 + enum: SDCLK + - name: RBURST + description: Burst read + bit_offset: 12 + bit_size: 1 + - name: RPIPE + description: Read pipe + bit_offset: 13 + bit_size: 2 + enum: RPIPE fieldset/SDRTR: description: SDRAM Refresh Timer register fields: - - name: CRE - description: Clear Refresh error flag - bit_offset: 0 - bit_size: 1 - - name: COUNT - description: Refresh Timer Count - bit_offset: 1 - bit_size: 13 - - name: REIE - description: RES Interrupt Enable - bit_offset: 14 - bit_size: 1 + - name: CRE + description: Clear Refresh error flag + bit_offset: 0 + bit_size: 1 + - name: COUNT + description: Refresh Timer Count + bit_offset: 1 + bit_size: 13 + - name: REIE + description: RES Interrupt Enable + bit_offset: 14 + bit_size: 1 fieldset/SDSR: description: SDRAM Status register fields: - - name: RE - description: Refresh error flag - bit_offset: 0 - bit_size: 1 - - name: MODES1 - description: Status Mode for Bank 1 - bit_offset: 1 - bit_size: 2 - enum: MODES - - name: MODES2 - description: Status Mode for Bank 2 - bit_offset: 3 - bit_size: 2 - enum: MODES - - name: BUSY - description: Busy status - bit_offset: 5 - bit_size: 1 + - name: RE + description: Refresh error flag + bit_offset: 0 + bit_size: 1 + - name: MODES1 + description: Status Mode for Bank 1 + bit_offset: 1 + bit_size: 2 + enum: MODES + - name: MODES2 + description: Status Mode for Bank 2 + bit_offset: 3 + bit_size: 2 + enum: MODES + - name: BUSY + description: Busy status + bit_offset: 5 + bit_size: 1 fieldset/SDTR: description: SDRAM Timing register fields: - - name: TMRD - description: Load Mode Register to Active - bit_offset: 0 - bit_size: 4 - - name: TXSR - description: Exit self-refresh delay - bit_offset: 4 - bit_size: 4 - - name: TRAS - description: Self refresh time - bit_offset: 8 - bit_size: 4 - - name: TRC - description: Row cycle delay - bit_offset: 12 - bit_size: 4 - - name: TWR - description: Recovery delay - bit_offset: 16 - bit_size: 4 - - name: TRP - description: Row precharge delay - bit_offset: 20 - bit_size: 4 - - name: TRCD - description: Row to column delay - bit_offset: 24 - bit_size: 4 + - name: TMRD + description: Load Mode Register to Active + bit_offset: 0 + bit_size: 4 + - name: TXSR + description: Exit self-refresh delay + bit_offset: 4 + bit_size: 4 + - name: TRAS + description: Self refresh time + bit_offset: 8 + bit_size: 4 + - name: TRC + description: Row cycle delay + bit_offset: 12 + bit_size: 4 + - name: TWR + description: Recovery delay + bit_offset: 16 + bit_size: 4 + - name: TRP + description: Row precharge delay + bit_offset: 20 + bit_size: 4 + - name: TRCD + description: Row to column delay + bit_offset: 24 + bit_size: 4 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CAS: bit_size: 2 variants: - - name: Clocks1 - description: 1 cycle - value: 1 - - name: Clocks2 - description: 2 cycles - value: 2 - - name: Clocks3 - description: 3 cycles - value: 3 + - name: Clocks1 + description: 1 cycle + value: 1 + - name: Clocks2 + description: 2 cycles + value: 2 + - name: Clocks3 + description: 3 cycles + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MODE: bit_size: 3 variants: - - name: Normal - description: Normal Mode - value: 0 - - name: ClockConfigurationEnable - description: Clock Configuration Enable - value: 1 - - name: PALL - description: PALL (All Bank Precharge) command - value: 2 - - name: AutoRefreshCommand - description: Auto-refresh command - value: 3 - - name: LoadModeRegister - description: Load Mode Resgier - value: 4 - - name: SelfRefreshCommand - description: Self-refresh command - value: 5 - - name: PowerDownCommand - description: Power-down command - value: 6 + - name: Normal + description: Normal Mode + value: 0 + - name: ClockConfigurationEnable + description: Clock Configuration Enable + value: 1 + - name: PALL + description: PALL (All Bank Precharge) command + value: 2 + - name: AutoRefreshCommand + description: Auto-refresh command + value: 3 + - name: LoadModeRegister + description: Load Mode Resgier + value: 4 + - name: SelfRefreshCommand + description: Self-refresh command + value: 5 + - name: PowerDownCommand + description: Power-down command + value: 6 enum/MODES: bit_size: 2 variants: - - name: Normal - description: Normal Mode - value: 0 - - name: SelfRefresh - description: Self-refresh mode - value: 1 - - name: PowerDown - description: Power-down mode - value: 2 + - name: Normal + description: Normal Mode + value: 0 + - name: SelfRefresh + description: Self-refresh mode + value: 1 + - name: PowerDown + description: Power-down mode + value: 2 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/NB: bit_size: 1 variants: - - name: NB2 - description: Two internal Banks - value: 0 - - name: NB4 - description: Four internal Banks - value: 1 + - name: NB2 + description: Two internal Banks + value: 0 + - name: NB4 + description: Four internal Banks + value: 1 enum/NC: bit_size: 2 variants: - - name: Bits8 - description: 8 bits - value: 0 - - name: Bits9 - description: 9 bits - value: 1 - - name: Bits10 - description: 10 bits - value: 2 - - name: Bits11 - description: 11 bits - value: 3 + - name: Bits8 + description: 8 bits + value: 0 + - name: Bits9 + description: 9 bits + value: 1 + - name: Bits10 + description: 10 bits + value: 2 + - name: Bits11 + description: 11 bits + value: 3 enum/NR: bit_size: 2 variants: - - name: Bits11 - description: 11 bits - value: 0 - - name: Bits12 - description: 12 bits - value: 1 - - name: Bits13 - description: 13 bits - value: 2 + - name: Bits11 + description: 11 bits + value: 0 + - name: Bits12 + description: 12 bits + value: 1 + - name: Bits13 + description: 13 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/RPIPE: bit_size: 2 variants: - - name: NoDelay - description: No clock cycle delay - value: 0 - - name: Clocks1 - description: One clock cycle delay - value: 1 - - name: Clocks2 - description: Two clock cycles delay - value: 2 + - name: NoDelay + description: No clock cycle delay + value: 0 + - name: Clocks1 + description: One clock cycle delay + value: 1 + - name: Clocks2 + description: Two clock cycles delay + value: 2 enum/SDCLK: bit_size: 2 variants: - - name: Disabled - description: SDCLK clock disabled - value: 0 - - name: Div2 - description: SDCLK period = 2 x HCLK period - value: 2 - - name: Div3 - description: SDCLK period = 3 x HCLK period - value: 3 + - name: Disabled + description: SDCLK clock disabled + value: 0 + - name: Div2 + description: SDCLK period = 2 x HCLK period + value: 2 + - name: Div3 + description: SDCLK period = 3 x HCLK period + value: 3 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fmc_v3x1.yaml b/data/registers/fmc_v3x1.yaml index bdac456..0edc212 100644 --- a/data/registers/fmc_v3x1.yaml +++ b/data/registers/fmc_v3x1.yaml @@ -1,732 +1,731 @@ ---- block/FMC: description: Flexible memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCR - description: PC Card/NAND Flash control register - byte_offset: 128 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register - byte_offset: 132 - fieldset: SR - - name: PMEM - description: Common memory space timing register - byte_offset: 136 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register - byte_offset: 140 - fieldset: PATT - - name: ECCR - description: ECC result register - byte_offset: 148 - access: Read - fieldset: ECCR - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR - - name: SDCR - description: SDRAM Control Register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 320 - fieldset: SDCR - - name: SDTR - description: SDRAM Timing register 1-2 - array: - len: 2 - stride: 4 - byte_offset: 328 - fieldset: SDTR - - name: SDCMR - description: SDRAM Command Mode register - byte_offset: 336 - fieldset: SDCMR - - name: SDRTR - description: SDRAM Refresh Timer register - byte_offset: 340 - fieldset: SDRTR - - name: SDSR - description: SDRAM Status register - byte_offset: 344 - access: Read - fieldset: SDSR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCR + description: PC Card/NAND Flash control register + byte_offset: 128 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register + byte_offset: 132 + fieldset: SR + - name: PMEM + description: Common memory space timing register + byte_offset: 136 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register + byte_offset: 140 + fieldset: PATT + - name: ECCR + description: ECC result register + byte_offset: 148 + access: Read + fieldset: ECCR + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR + - name: SDCR + description: SDRAM Control Register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 320 + fieldset: SDCR + - name: SDTR + description: SDRAM Timing register 1-2 + array: + len: 2 + stride: 4 + byte_offset: 328 + fieldset: SDTR + - name: SDCMR + description: SDRAM Command Mode register + byte_offset: 336 + fieldset: SDCMR + - name: SDRTR + description: SDRAM Refresh Timer register + byte_offset: 340 + fieldset: SDRTR + - name: SDSR + description: SDRAM Status register + byte_offset: 344 + access: Read + fieldset: SDSR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 - - name: WFDIS - description: Write FIFO disable - bit_offset: 21 - bit_size: 1 - - name: BMAP - description: "FMC bank mapping These bits allows different to remap SDRAM bank2 or swap the FMC NOR/PSRAM and SDRAM banks.Refer to Table 10 for Note: The BMAP bits of the FMC_BCR2..4 registers are dont care. It is only enabled through the FMC_BCR1 register." - bit_offset: 24 - bit_size: 2 - - name: FMCEN - description: FMC controller enable - bit_offset: 31 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 + - name: WFDIS + description: Write FIFO disable + bit_offset: 21 + bit_size: 1 + - name: BMAP + description: 'FMC bank mapping These bits allows different to remap SDRAM bank2 or swap the FMC NOR/PSRAM and SDRAM banks.Refer to Table 10 for Note: The BMAP bits of the FMC_BCR2..4 registers are dont care. It is only enabled through the FMC_BCR1 register.' + bit_offset: 24 + bit_size: 2 + - name: FMCEN + description: FMC controller enable + bit_offset: 31 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SDCMR: description: SDRAM Command Mode register fields: - - name: MODE - description: Command mode - bit_offset: 0 - bit_size: 3 - enum: MODE - - name: CTB2 - description: Command target bank 2 - bit_offset: 3 - bit_size: 1 - - name: CTB1 - description: Command target bank 1 - bit_offset: 4 - bit_size: 1 - - name: NRFS - description: Number of Auto-refresh - bit_offset: 5 - bit_size: 4 - - name: MRD - description: Mode Register definition - bit_offset: 9 - bit_size: 13 + - name: MODE + description: Command mode + bit_offset: 0 + bit_size: 3 + enum: MODE + - name: CTB2 + description: Command target bank 2 + bit_offset: 3 + bit_size: 1 + - name: CTB1 + description: Command target bank 1 + bit_offset: 4 + bit_size: 1 + - name: NRFS + description: Number of Auto-refresh + bit_offset: 5 + bit_size: 4 + - name: MRD + description: Mode Register definition + bit_offset: 9 + bit_size: 13 fieldset/SDCR: description: SDRAM Control Register fields: - - name: NC - description: Number of column address bits - bit_offset: 0 - bit_size: 2 - enum: NC - - name: NR - description: Number of row address bits - bit_offset: 2 - bit_size: 2 - enum: NR - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: NB - description: Number of internal banks - bit_offset: 6 - bit_size: 1 - enum: NB - - name: CAS - description: CAS latency - bit_offset: 7 - bit_size: 2 - enum: CAS - - name: WP - description: Write protection - bit_offset: 9 - bit_size: 1 - - name: SDCLK - description: SDRAM clock configuration - bit_offset: 10 - bit_size: 2 - enum: SDCLK - - name: RBURST - description: Burst read - bit_offset: 12 - bit_size: 1 - - name: RPIPE - description: Read pipe - bit_offset: 13 - bit_size: 2 - enum: RPIPE + - name: NC + description: Number of column address bits + bit_offset: 0 + bit_size: 2 + enum: NC + - name: NR + description: Number of row address bits + bit_offset: 2 + bit_size: 2 + enum: NR + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: NB + description: Number of internal banks + bit_offset: 6 + bit_size: 1 + enum: NB + - name: CAS + description: CAS latency + bit_offset: 7 + bit_size: 2 + enum: CAS + - name: WP + description: Write protection + bit_offset: 9 + bit_size: 1 + - name: SDCLK + description: SDRAM clock configuration + bit_offset: 10 + bit_size: 2 + enum: SDCLK + - name: RBURST + description: Burst read + bit_offset: 12 + bit_size: 1 + - name: RPIPE + description: Read pipe + bit_offset: 13 + bit_size: 2 + enum: RPIPE fieldset/SDRTR: description: SDRAM Refresh Timer register fields: - - name: CRE - description: Clear Refresh error flag - bit_offset: 0 - bit_size: 1 - - name: COUNT - description: Refresh Timer Count - bit_offset: 1 - bit_size: 13 - - name: REIE - description: RES Interrupt Enable - bit_offset: 14 - bit_size: 1 + - name: CRE + description: Clear Refresh error flag + bit_offset: 0 + bit_size: 1 + - name: COUNT + description: Refresh Timer Count + bit_offset: 1 + bit_size: 13 + - name: REIE + description: RES Interrupt Enable + bit_offset: 14 + bit_size: 1 fieldset/SDSR: description: SDRAM Status register fields: - - name: RE - description: Refresh error flag - bit_offset: 0 - bit_size: 1 - - name: MODES1 - description: Status Mode for Bank 1 - bit_offset: 1 - bit_size: 2 - enum: MODES - - name: MODES2 - description: Status Mode for Bank 2 - bit_offset: 3 - bit_size: 2 - enum: MODES + - name: RE + description: Refresh error flag + bit_offset: 0 + bit_size: 1 + - name: MODES1 + description: Status Mode for Bank 1 + bit_offset: 1 + bit_size: 2 + enum: MODES + - name: MODES2 + description: Status Mode for Bank 2 + bit_offset: 3 + bit_size: 2 + enum: MODES fieldset/SDTR: description: SDRAM Timing register fields: - - name: TMRD - description: Load Mode Register to Active - bit_offset: 0 - bit_size: 4 - - name: TXSR - description: Exit self-refresh delay - bit_offset: 4 - bit_size: 4 - - name: TRAS - description: Self refresh time - bit_offset: 8 - bit_size: 4 - - name: TRC - description: Row cycle delay - bit_offset: 12 - bit_size: 4 - - name: TWR - description: Recovery delay - bit_offset: 16 - bit_size: 4 - - name: TRP - description: Row precharge delay - bit_offset: 20 - bit_size: 4 - - name: TRCD - description: Row to column delay - bit_offset: 24 - bit_size: 4 + - name: TMRD + description: Load Mode Register to Active + bit_offset: 0 + bit_size: 4 + - name: TXSR + description: Exit self-refresh delay + bit_offset: 4 + bit_size: 4 + - name: TRAS + description: Self refresh time + bit_offset: 8 + bit_size: 4 + - name: TRC + description: Row cycle delay + bit_offset: 12 + bit_size: 4 + - name: TWR + description: Recovery delay + bit_offset: 16 + bit_size: 4 + - name: TRP + description: Row precharge delay + bit_offset: 20 + bit_size: 4 + - name: TRCD + description: Row to column delay + bit_offset: 24 + bit_size: 4 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CAS: bit_size: 2 variants: - - name: Clocks1 - description: 1 cycle - value: 1 - - name: Clocks2 - description: 2 cycles - value: 2 - - name: Clocks3 - description: 3 cycles - value: 3 + - name: Clocks1 + description: 1 cycle + value: 1 + - name: Clocks2 + description: 2 cycles + value: 2 + - name: Clocks3 + description: 3 cycles + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MODE: bit_size: 3 variants: - - name: Normal - description: Normal Mode - value: 0 - - name: ClockConfigurationEnable - description: Clock Configuration Enable - value: 1 - - name: PALL - description: PALL (All Bank Precharge) command - value: 2 - - name: AutoRefreshCommand - description: Auto-refresh command - value: 3 - - name: LoadModeRegister - description: Load Mode Resgier - value: 4 - - name: SelfRefreshCommand - description: Self-refresh command - value: 5 - - name: PowerDownCommand - description: Power-down command - value: 6 + - name: Normal + description: Normal Mode + value: 0 + - name: ClockConfigurationEnable + description: Clock Configuration Enable + value: 1 + - name: PALL + description: PALL (All Bank Precharge) command + value: 2 + - name: AutoRefreshCommand + description: Auto-refresh command + value: 3 + - name: LoadModeRegister + description: Load Mode Resgier + value: 4 + - name: SelfRefreshCommand + description: Self-refresh command + value: 5 + - name: PowerDownCommand + description: Power-down command + value: 6 enum/MODES: bit_size: 2 variants: - - name: Normal - description: Normal Mode - value: 0 - - name: SelfRefresh - description: Self-refresh mode - value: 1 - - name: PowerDown - description: Power-down mode - value: 2 + - name: Normal + description: Normal Mode + value: 0 + - name: SelfRefresh + description: Self-refresh mode + value: 1 + - name: PowerDown + description: Power-down mode + value: 2 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/NB: bit_size: 1 variants: - - name: NB2 - description: Two internal Banks - value: 0 - - name: NB4 - description: Four internal Banks - value: 1 + - name: NB2 + description: Two internal Banks + value: 0 + - name: NB4 + description: Four internal Banks + value: 1 enum/NC: bit_size: 2 variants: - - name: Bits8 - description: 8 bits - value: 0 - - name: Bits9 - description: 9 bits - value: 1 - - name: Bits10 - description: 10 bits - value: 2 - - name: Bits11 - description: 11 bits - value: 3 + - name: Bits8 + description: 8 bits + value: 0 + - name: Bits9 + description: 9 bits + value: 1 + - name: Bits10 + description: 10 bits + value: 2 + - name: Bits11 + description: 11 bits + value: 3 enum/NR: bit_size: 2 variants: - - name: Bits11 - description: 11 bits - value: 0 - - name: Bits12 - description: 12 bits - value: 1 - - name: Bits13 - description: 13 bits - value: 2 + - name: Bits11 + description: 11 bits + value: 0 + - name: Bits12 + description: 12 bits + value: 1 + - name: Bits13 + description: 13 bits + value: 2 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/RPIPE: bit_size: 2 variants: - - name: NoDelay - description: No clock cycle delay - value: 0 - - name: Clocks1 - description: One clock cycle delay - value: 1 - - name: Clocks2 - description: Two clock cycles delay - value: 2 + - name: NoDelay + description: No clock cycle delay + value: 0 + - name: Clocks1 + description: One clock cycle delay + value: 1 + - name: Clocks2 + description: Two clock cycles delay + value: 2 enum/SDCLK: bit_size: 2 variants: - - name: Disabled - description: SDCLK clock disabled - value: 0 - - name: Div2 - description: SDCLK period = 2 x HCLK period - value: 2 - - name: Div3 - description: SDCLK period = 3 x HCLK period - value: 3 + - name: Disabled + description: SDCLK clock disabled + value: 0 + - name: Div2 + description: SDCLK period = 2 x HCLK period + value: 2 + - name: Div3 + description: SDCLK period = 3 x HCLK period + value: 3 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fsmc_v1x0.yaml b/data/registers/fsmc_v1x0.yaml index d04b507..7a53db7 100644 --- a/data/registers/fsmc_v1x0.yaml +++ b/data/registers/fsmc_v1x0.yaml @@ -1,224 +1,223 @@ ---- block/FSMC: description: Flexible static memory controller items: - - name: BCR - description: SRAM/NOR-Flash chip-select control register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 0 - fieldset: BCR - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 0 + fieldset: BCR + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WRAPMOD - description: WRAPMOD - bit_offset: 10 - bit_size: 1 - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WRAPMOD + description: WRAPMOD + bit_offset: 10 + bit_size: 1 + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fsmc_v1x3.yaml b/data/registers/fsmc_v1x3.yaml index 286604c..06687a0 100644 --- a/data/registers/fsmc_v1x3.yaml +++ b/data/registers/fsmc_v1x3.yaml @@ -1,433 +1,432 @@ ---- block/FSMC: description: Flexible static memory controller items: - - name: BCR - description: SRAM/NOR-Flash chip-select control register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 0 - fieldset: BCR - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: PCR - description: PC Card/NAND Flash control register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 96 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 100 - fieldset: SR - - name: PMEM - description: Common memory space timing register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 104 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 108 - fieldset: PATT - - name: ECCR - description: ECC result register 2-3 - array: - len: 2 - stride: 32 - byte_offset: 116 - access: Read - fieldset: ECCR - - name: PIO4 - description: I/O space timing register 4 - byte_offset: 176 - fieldset: PIO4 - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 0 + fieldset: BCR + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: PCR + description: PC Card/NAND Flash control register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 96 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 100 + fieldset: SR + - name: PMEM + description: Common memory space timing register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 104 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 108 + fieldset: PATT + - name: ECCR + description: ECC result register 2-3 + array: + len: 2 + stride: 32 + byte_offset: 116 + access: Read + fieldset: ECCR + - name: PIO4 + description: I/O space timing register 4 + byte_offset: 176 + fieldset: PIO4 + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WRAPMOD - description: WRAPMOD - bit_offset: 10 - bit_size: 1 - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WRAPMOD + description: WRAPMOD + bit_offset: 10 + bit_size: 1 + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PIO4: description: I/O space timing register 4 fields: - - name: IOSETx - description: IOSETx - bit_offset: 0 - bit_size: 8 - - name: IOWAITx - description: IOWAITx - bit_offset: 8 - bit_size: 8 - - name: IOHOLDx - description: IOHOLDx - bit_offset: 16 - bit_size: 8 - - name: IOHIZx - description: IOHIZx - bit_offset: 24 - bit_size: 8 + - name: IOSETx + description: IOSETx + bit_offset: 0 + bit_size: 8 + - name: IOWAITx + description: IOWAITx + bit_offset: 8 + bit_size: 8 + - name: IOHOLDx + description: IOHOLDx + bit_offset: 16 + bit_size: 8 + - name: IOHIZx + description: IOHIZx + bit_offset: 24 + bit_size: 8 fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fsmc_v2x3.yaml b/data/registers/fsmc_v2x3.yaml index d9a658a..565f0ce 100644 --- a/data/registers/fsmc_v2x3.yaml +++ b/data/registers/fsmc_v2x3.yaml @@ -1,477 +1,476 @@ ---- block/FSMC: description: Flexible static memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCR - description: PC Card/NAND Flash control register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 96 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 100 - fieldset: SR - - name: PMEM - description: Common memory space timing register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 104 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register 2-4 - array: - len: 3 - stride: 32 - byte_offset: 108 - fieldset: PATT - - name: ECCR - description: ECC result register 2-3 - array: - len: 2 - stride: 32 - byte_offset: 116 - access: Read - fieldset: ECCR - - name: PIO4 - description: I/O space timing register 4 - byte_offset: 176 - fieldset: PIO4 - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCR + description: PC Card/NAND Flash control register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 96 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 100 + fieldset: SR + - name: PMEM + description: Common memory space timing register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 104 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register 2-4 + array: + len: 3 + stride: 32 + byte_offset: 108 + fieldset: PATT + - name: ECCR + description: ECC result register 2-3 + array: + len: 2 + stride: 32 + byte_offset: 116 + access: Read + fieldset: ECCR + - name: PIO4 + description: I/O space timing register 4 + byte_offset: 176 + fieldset: PIO4 + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WRAPMOD - description: WRAPMOD - bit_offset: 10 - bit_size: 1 - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WRAPMOD + description: WRAPMOD + bit_offset: 10 + bit_size: 1 + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WRAPMOD - description: WRAPMOD - bit_offset: 10 - bit_size: 1 - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WRAPMOD + description: WRAPMOD + bit_offset: 10 + bit_size: 1 + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PIO4: description: I/O space timing register 4 fields: - - name: IOSETx - description: IOSETx - bit_offset: 0 - bit_size: 8 - - name: IOWAITx - description: IOWAITx - bit_offset: 8 - bit_size: 8 - - name: IOHOLDx - description: IOHOLDx - bit_offset: 16 - bit_size: 8 - - name: IOHIZx - description: IOHIZx - bit_offset: 24 - bit_size: 8 + - name: IOSETx + description: IOSETx + bit_offset: 0 + bit_size: 8 + - name: IOWAITx + description: IOWAITx + bit_offset: 8 + bit_size: 8 + - name: IOHOLDx + description: IOHOLDx + bit_offset: 16 + bit_size: 8 + - name: IOHIZx + description: IOHIZx + bit_offset: 24 + bit_size: 8 fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fsmc_v3x1.yaml b/data/registers/fsmc_v3x1.yaml index 964e49c..c0a37e9 100644 --- a/data/registers/fsmc_v3x1.yaml +++ b/data/registers/fsmc_v3x1.yaml @@ -1,467 +1,466 @@ ---- block/FSMC: description: Flexible static memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCR - description: PC Card/NAND Flash control register - byte_offset: 128 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register - byte_offset: 132 - fieldset: SR - - name: PMEM - description: Common memory space timing register - byte_offset: 136 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register - byte_offset: 140 - fieldset: PATT - - name: ECCR - description: ECC result register - byte_offset: 148 - access: Read - fieldset: ECCR - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCR + description: PC Card/NAND Flash control register + byte_offset: 128 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register + byte_offset: 132 + fieldset: SR + - name: PMEM + description: Common memory space timing register + byte_offset: 136 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register + byte_offset: 140 + fieldset: PATT + - name: ECCR + description: ECC result register + byte_offset: 148 + access: Read + fieldset: ECCR + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 - - name: WFDIS - description: Write FIFO disable - bit_offset: 21 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 + - name: WFDIS + description: Write FIFO disable + bit_offset: 21 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fsmc_v4x1.yaml b/data/registers/fsmc_v4x1.yaml index 7935fdc..f0b7023 100644 --- a/data/registers/fsmc_v4x1.yaml +++ b/data/registers/fsmc_v4x1.yaml @@ -1,514 +1,513 @@ ---- block/FSMC: description: Flexible static memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCSCNTR - description: PSRAM chip select counter register - byte_offset: 32 - fieldset: PCSCNTR - - name: PCR - description: PC Card/NAND Flash control register - byte_offset: 128 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register - byte_offset: 132 - fieldset: SR - - name: PMEM - description: Common memory space timing register - byte_offset: 136 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register - byte_offset: 140 - fieldset: PATT - - name: ECCR - description: ECC result register - byte_offset: 148 - access: Read - fieldset: ECCR - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCSCNTR + description: PSRAM chip select counter register + byte_offset: 32 + fieldset: PCSCNTR + - name: PCR + description: PC Card/NAND Flash control register + byte_offset: 128 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register + byte_offset: 132 + fieldset: SR + - name: PMEM + description: Common memory space timing register + byte_offset: 136 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register + byte_offset: 140 + fieldset: PATT + - name: ECCR + description: ECC result register + byte_offset: 148 + access: Read + fieldset: ECCR + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: NBLSET - description: Byte lane (NBL) setup - bit_offset: 22 - bit_size: 2 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: NBLSET + description: Byte lane (NBL) setup + bit_offset: 22 + bit_size: 2 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 - - name: WFDIS - description: Write FIFO disable - bit_offset: 21 - bit_size: 1 - - name: NBLSET - description: Byte lane (NBL) setup - bit_offset: 22 - bit_size: 2 - - name: FMCEN - description: FMC controller enable - bit_offset: 31 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 + - name: WFDIS + description: Write FIFO disable + bit_offset: 21 + bit_size: 1 + - name: NBLSET + description: Byte lane (NBL) setup + bit_offset: 22 + bit_size: 2 + - name: FMCEN + description: FMC controller enable + bit_offset: 31 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD - - name: DATAHLD - description: Data hold phase duration - bit_offset: 30 - bit_size: 2 + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD + - name: DATAHLD + description: Data hold phase duration + bit_offset: 30 + bit_size: 2 fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD - - name: DATAHLD - description: Data hold phase duration - bit_offset: 30 - bit_size: 2 + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD + - name: DATAHLD + description: Data hold phase duration + bit_offset: 30 + bit_size: 2 fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PCSCNTR: description: PSRAM chip select counter register fields: - - name: CSCOUNT - description: Chip select counter - bit_offset: 0 - bit_size: 16 - - name: CNTB1EN - description: Counter Bank 1 enable - bit_offset: 16 - bit_size: 1 - - name: CNTB2EN - description: Counter Bank 2 enable - bit_offset: 17 - bit_size: 1 - - name: CNTB3EN - description: Counter Bank 3 enable - bit_offset: 18 - bit_size: 1 - - name: CNTB4EN - description: Counter Bank 4 enable - bit_offset: 19 - bit_size: 1 + - name: CSCOUNT + description: Chip select counter + bit_offset: 0 + bit_size: 16 + - name: CNTB1EN + description: Counter Bank 1 enable + bit_offset: 16 + bit_size: 1 + - name: CNTB2EN + description: Counter Bank 2 enable + bit_offset: 17 + bit_size: 1 + - name: CNTB3EN + description: Counter Bank 3 enable + bit_offset: 18 + bit_size: 1 + - name: CNTB4EN + description: Counter Bank 4 enable + bit_offset: 19 + bit_size: 1 fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/fsmc_v5x1.yaml b/data/registers/fsmc_v5x1.yaml index 7935fdc..f0b7023 100644 --- a/data/registers/fsmc_v5x1.yaml +++ b/data/registers/fsmc_v5x1.yaml @@ -1,514 +1,513 @@ ---- block/FSMC: description: Flexible static memory controller items: - - name: BCR1 - description: SRAM/NOR-Flash chip-select control register 1 - byte_offset: 0 - fieldset: BCR1 - - name: BTR - description: SRAM/NOR-Flash chip-select timing register 1-4 - array: - len: 4 - stride: 8 - byte_offset: 4 - fieldset: BTR - - name: BCR - description: SRAM/NOR-Flash chip-select control register 2-4 - array: - len: 3 - stride: 8 - byte_offset: 8 - fieldset: BCR - - name: PCSCNTR - description: PSRAM chip select counter register - byte_offset: 32 - fieldset: PCSCNTR - - name: PCR - description: PC Card/NAND Flash control register - byte_offset: 128 - fieldset: PCR - - name: SR - description: FIFO status and interrupt register - byte_offset: 132 - fieldset: SR - - name: PMEM - description: Common memory space timing register - byte_offset: 136 - fieldset: PMEM - - name: PATT - description: Attribute memory space timing register - byte_offset: 140 - fieldset: PATT - - name: ECCR - description: ECC result register - byte_offset: 148 - access: Read - fieldset: ECCR - - name: BWTR - description: SRAM/NOR-Flash write timing registers 1-4 - array: - len: 4 - stride: 8 - byte_offset: 260 - fieldset: BWTR + - name: BCR1 + description: SRAM/NOR-Flash chip-select control register 1 + byte_offset: 0 + fieldset: BCR1 + - name: BTR + description: SRAM/NOR-Flash chip-select timing register 1-4 + array: + len: 4 + stride: 8 + byte_offset: 4 + fieldset: BTR + - name: BCR + description: SRAM/NOR-Flash chip-select control register 2-4 + array: + len: 3 + stride: 8 + byte_offset: 8 + fieldset: BCR + - name: PCSCNTR + description: PSRAM chip select counter register + byte_offset: 32 + fieldset: PCSCNTR + - name: PCR + description: PC Card/NAND Flash control register + byte_offset: 128 + fieldset: PCR + - name: SR + description: FIFO status and interrupt register + byte_offset: 132 + fieldset: SR + - name: PMEM + description: Common memory space timing register + byte_offset: 136 + fieldset: PMEM + - name: PATT + description: Attribute memory space timing register + byte_offset: 140 + fieldset: PATT + - name: ECCR + description: ECC result register + byte_offset: 148 + access: Read + fieldset: ECCR + - name: BWTR + description: SRAM/NOR-Flash write timing registers 1-4 + array: + len: 4 + stride: 8 + byte_offset: 260 + fieldset: BWTR fieldset/BCR: description: SRAM/NOR-Flash chip-select control register 2-4 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: NBLSET - description: Byte lane (NBL) setup - bit_offset: 22 - bit_size: 2 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: NBLSET + description: Byte lane (NBL) setup + bit_offset: 22 + bit_size: 2 fieldset/BCR1: description: SRAM/NOR-Flash chip-select control register 1 fields: - - name: MBKEN - description: Memory bank enable bit - bit_offset: 0 - bit_size: 1 - - name: MUXEN - description: Address/data multiplexing enable bit - bit_offset: 1 - bit_size: 1 - - name: MTYP - description: Memory type - bit_offset: 2 - bit_size: 2 - enum: MTYP - - name: MWID - description: Memory data bus width - bit_offset: 4 - bit_size: 2 - enum: MWID - - name: FACCEN - description: Flash access enable - bit_offset: 6 - bit_size: 1 - - name: BURSTEN - description: Burst enable bit - bit_offset: 8 - bit_size: 1 - - name: WAITPOL - description: Wait signal polarity bit - bit_offset: 9 - bit_size: 1 - enum: WAITPOL - - name: WAITCFG - description: Wait timing configuration - bit_offset: 11 - bit_size: 1 - enum: WAITCFG - - name: WREN - description: Write enable bit - bit_offset: 12 - bit_size: 1 - - name: WAITEN - description: Wait enable bit - bit_offset: 13 - bit_size: 1 - - name: EXTMOD - description: Extended mode enable - bit_offset: 14 - bit_size: 1 - - name: ASYNCWAIT - description: Wait signal during asynchronous transfers - bit_offset: 15 - bit_size: 1 - - name: CPSIZE - description: CRAM page size - bit_offset: 16 - bit_size: 3 - enum: CPSIZE - - name: CBURSTRW - description: Write burst enable - bit_offset: 19 - bit_size: 1 - - name: CCLKEN - description: Continuous clock enable - bit_offset: 20 - bit_size: 1 - - name: WFDIS - description: Write FIFO disable - bit_offset: 21 - bit_size: 1 - - name: NBLSET - description: Byte lane (NBL) setup - bit_offset: 22 - bit_size: 2 - - name: FMCEN - description: FMC controller enable - bit_offset: 31 - bit_size: 1 + - name: MBKEN + description: Memory bank enable bit + bit_offset: 0 + bit_size: 1 + - name: MUXEN + description: Address/data multiplexing enable bit + bit_offset: 1 + bit_size: 1 + - name: MTYP + description: Memory type + bit_offset: 2 + bit_size: 2 + enum: MTYP + - name: MWID + description: Memory data bus width + bit_offset: 4 + bit_size: 2 + enum: MWID + - name: FACCEN + description: Flash access enable + bit_offset: 6 + bit_size: 1 + - name: BURSTEN + description: Burst enable bit + bit_offset: 8 + bit_size: 1 + - name: WAITPOL + description: Wait signal polarity bit + bit_offset: 9 + bit_size: 1 + enum: WAITPOL + - name: WAITCFG + description: Wait timing configuration + bit_offset: 11 + bit_size: 1 + enum: WAITCFG + - name: WREN + description: Write enable bit + bit_offset: 12 + bit_size: 1 + - name: WAITEN + description: Wait enable bit + bit_offset: 13 + bit_size: 1 + - name: EXTMOD + description: Extended mode enable + bit_offset: 14 + bit_size: 1 + - name: ASYNCWAIT + description: Wait signal during asynchronous transfers + bit_offset: 15 + bit_size: 1 + - name: CPSIZE + description: CRAM page size + bit_offset: 16 + bit_size: 3 + enum: CPSIZE + - name: CBURSTRW + description: Write burst enable + bit_offset: 19 + bit_size: 1 + - name: CCLKEN + description: Continuous clock enable + bit_offset: 20 + bit_size: 1 + - name: WFDIS + description: Write FIFO disable + bit_offset: 21 + bit_size: 1 + - name: NBLSET + description: Byte lane (NBL) setup + bit_offset: 22 + bit_size: 2 + - name: FMCEN + description: FMC controller enable + bit_offset: 31 + bit_size: 1 fieldset/BTR: description: SRAM/NOR-Flash chip-select timing register fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: CLKDIV - description: Clock divide ratio (for FMC_CLK signal) - bit_offset: 20 - bit_size: 4 - - name: DATLAT - description: Data latency for synchronous memory - bit_offset: 24 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD - - name: DATAHLD - description: Data hold phase duration - bit_offset: 30 - bit_size: 2 + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: CLKDIV + description: Clock divide ratio (for FMC_CLK signal) + bit_offset: 20 + bit_size: 4 + - name: DATLAT + description: Data latency for synchronous memory + bit_offset: 24 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD + - name: DATAHLD + description: Data hold phase duration + bit_offset: 30 + bit_size: 2 fieldset/BWTR: description: SRAM/NOR-Flash write timing registers fields: - - name: ADDSET - description: Address setup phase duration - bit_offset: 0 - bit_size: 4 - - name: ADDHLD - description: Address-hold phase duration - bit_offset: 4 - bit_size: 4 - - name: DATAST - description: Data-phase duration - bit_offset: 8 - bit_size: 8 - - name: BUSTURN - description: Bus turnaround phase duration - bit_offset: 16 - bit_size: 4 - - name: ACCMOD - description: Access mode - bit_offset: 28 - bit_size: 2 - enum: ACCMOD - - name: DATAHLD - description: Data hold phase duration - bit_offset: 30 - bit_size: 2 + - name: ADDSET + description: Address setup phase duration + bit_offset: 0 + bit_size: 4 + - name: ADDHLD + description: Address-hold phase duration + bit_offset: 4 + bit_size: 4 + - name: DATAST + description: Data-phase duration + bit_offset: 8 + bit_size: 8 + - name: BUSTURN + description: Bus turnaround phase duration + bit_offset: 16 + bit_size: 4 + - name: ACCMOD + description: Access mode + bit_offset: 28 + bit_size: 2 + enum: ACCMOD + - name: DATAHLD + description: Data hold phase duration + bit_offset: 30 + bit_size: 2 fieldset/ECCR: description: ECC result register fields: - - name: ECC - description: ECC computation result value - bit_offset: 0 - bit_size: 32 + - name: ECC + description: ECC computation result value + bit_offset: 0 + bit_size: 32 fieldset/PATT: description: Attribute memory space timing register fields: - - name: ATTSET - description: Attribute memory setup time - bit_offset: 0 - bit_size: 8 - - name: ATTWAIT - description: Attribute memory wait time - bit_offset: 8 - bit_size: 8 - - name: ATTHOLD - description: Attribute memory hold time - bit_offset: 16 - bit_size: 8 - - name: ATTHIZ - description: Attribute memory data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: ATTSET + description: Attribute memory setup time + bit_offset: 0 + bit_size: 8 + - name: ATTWAIT + description: Attribute memory wait time + bit_offset: 8 + bit_size: 8 + - name: ATTHOLD + description: Attribute memory hold time + bit_offset: 16 + bit_size: 8 + - name: ATTHIZ + description: Attribute memory data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/PCR: description: PC Card/NAND Flash control register fields: - - name: PWAITEN - description: Wait feature enable bit - bit_offset: 1 - bit_size: 1 - - name: PBKEN - description: NAND Flash memory bank enable bit - bit_offset: 2 - bit_size: 1 - - name: PTYP - description: Memory type - bit_offset: 3 - bit_size: 1 - enum: PTYP - - name: PWID - description: Data bus width - bit_offset: 4 - bit_size: 2 - enum: PWID - - name: ECCEN - description: ECC computation logic enable bit - bit_offset: 6 - bit_size: 1 - - name: TCLR - description: CLE to RE delay - bit_offset: 9 - bit_size: 4 - - name: TAR - description: ALE to RE delay - bit_offset: 13 - bit_size: 4 - - name: ECCPS - description: ECC page size - bit_offset: 17 - bit_size: 3 - enum: ECCPS + - name: PWAITEN + description: Wait feature enable bit + bit_offset: 1 + bit_size: 1 + - name: PBKEN + description: NAND Flash memory bank enable bit + bit_offset: 2 + bit_size: 1 + - name: PTYP + description: Memory type + bit_offset: 3 + bit_size: 1 + enum: PTYP + - name: PWID + description: Data bus width + bit_offset: 4 + bit_size: 2 + enum: PWID + - name: ECCEN + description: ECC computation logic enable bit + bit_offset: 6 + bit_size: 1 + - name: TCLR + description: CLE to RE delay + bit_offset: 9 + bit_size: 4 + - name: TAR + description: ALE to RE delay + bit_offset: 13 + bit_size: 4 + - name: ECCPS + description: ECC page size + bit_offset: 17 + bit_size: 3 + enum: ECCPS fieldset/PCSCNTR: description: PSRAM chip select counter register fields: - - name: CSCOUNT - description: Chip select counter - bit_offset: 0 - bit_size: 16 - - name: CNTB1EN - description: Counter Bank 1 enable - bit_offset: 16 - bit_size: 1 - - name: CNTB2EN - description: Counter Bank 2 enable - bit_offset: 17 - bit_size: 1 - - name: CNTB3EN - description: Counter Bank 3 enable - bit_offset: 18 - bit_size: 1 - - name: CNTB4EN - description: Counter Bank 4 enable - bit_offset: 19 - bit_size: 1 + - name: CSCOUNT + description: Chip select counter + bit_offset: 0 + bit_size: 16 + - name: CNTB1EN + description: Counter Bank 1 enable + bit_offset: 16 + bit_size: 1 + - name: CNTB2EN + description: Counter Bank 2 enable + bit_offset: 17 + bit_size: 1 + - name: CNTB3EN + description: Counter Bank 3 enable + bit_offset: 18 + bit_size: 1 + - name: CNTB4EN + description: Counter Bank 4 enable + bit_offset: 19 + bit_size: 1 fieldset/PMEM: description: Common memory space timing register fields: - - name: MEMSET - description: Common memory x setup time - bit_offset: 0 - bit_size: 8 - - name: MEMWAIT - description: Common memory wait time - bit_offset: 8 - bit_size: 8 - - name: MEMHOLD - description: Common memory hold time - bit_offset: 16 - bit_size: 8 - - name: MEMHIZ - description: Common memory x data bus Hi-Z time - bit_offset: 24 - bit_size: 8 + - name: MEMSET + description: Common memory x setup time + bit_offset: 0 + bit_size: 8 + - name: MEMWAIT + description: Common memory wait time + bit_offset: 8 + bit_size: 8 + - name: MEMHOLD + description: Common memory hold time + bit_offset: 16 + bit_size: 8 + - name: MEMHIZ + description: Common memory x data bus Hi-Z time + bit_offset: 24 + bit_size: 8 fieldset/SR: description: FIFO status and interrupt register fields: - - name: IRS - description: Interrupt rising edge status - bit_offset: 0 - bit_size: 1 - - name: ILS - description: Interrupt high-level status - bit_offset: 1 - bit_size: 1 - - name: IFS - description: Interrupt falling edge status - bit_offset: 2 - bit_size: 1 - - name: IREN - description: Interrupt rising edge detection enable bit - bit_offset: 3 - bit_size: 1 - - name: ILEN - description: Interrupt high-level detection enable bit - bit_offset: 4 - bit_size: 1 - - name: IFEN - description: Interrupt falling edge detection enable bit - bit_offset: 5 - bit_size: 1 - - name: FEMPT - description: FIFO empty status - bit_offset: 6 - bit_size: 1 + - name: IRS + description: Interrupt rising edge status + bit_offset: 0 + bit_size: 1 + - name: ILS + description: Interrupt high-level status + bit_offset: 1 + bit_size: 1 + - name: IFS + description: Interrupt falling edge status + bit_offset: 2 + bit_size: 1 + - name: IREN + description: Interrupt rising edge detection enable bit + bit_offset: 3 + bit_size: 1 + - name: ILEN + description: Interrupt high-level detection enable bit + bit_offset: 4 + bit_size: 1 + - name: IFEN + description: Interrupt falling edge detection enable bit + bit_offset: 5 + bit_size: 1 + - name: FEMPT + description: FIFO empty status + bit_offset: 6 + bit_size: 1 enum/ACCMOD: bit_size: 2 variants: - - name: A - description: Access mode A - value: 0 - - name: B - description: Access mode B - value: 1 - - name: C - description: Access mode C - value: 2 - - name: D - description: Access mode D - value: 3 + - name: A + description: Access mode A + value: 0 + - name: B + description: Access mode B + value: 1 + - name: C + description: Access mode C + value: 2 + - name: D + description: Access mode D + value: 3 enum/CPSIZE: bit_size: 3 variants: - - name: NoBurstSplit - description: No burst split when crossing page boundary - value: 0 - - name: Bytes128 - description: 128 bytes CRAM page size - value: 1 - - name: Bytes256 - description: 256 bytes CRAM page size - value: 2 - - name: Bytes512 - description: 512 bytes CRAM page size - value: 3 - - name: Bytes1024 - description: 1024 bytes CRAM page size - value: 4 + - name: NoBurstSplit + description: No burst split when crossing page boundary + value: 0 + - name: Bytes128 + description: 128 bytes CRAM page size + value: 1 + - name: Bytes256 + description: 256 bytes CRAM page size + value: 2 + - name: Bytes512 + description: 512 bytes CRAM page size + value: 3 + - name: Bytes1024 + description: 1024 bytes CRAM page size + value: 4 enum/ECCPS: bit_size: 3 variants: - - name: Bytes256 - description: ECC page size 256 bytes - value: 0 - - name: Bytes512 - description: ECC page size 512 bytes - value: 1 - - name: Bytes1024 - description: ECC page size 1024 bytes - value: 2 - - name: Bytes2048 - description: ECC page size 2048 bytes - value: 3 - - name: Bytes4096 - description: ECC page size 4096 bytes - value: 4 - - name: Bytes8192 - description: ECC page size 8192 bytes - value: 5 + - name: Bytes256 + description: ECC page size 256 bytes + value: 0 + - name: Bytes512 + description: ECC page size 512 bytes + value: 1 + - name: Bytes1024 + description: ECC page size 1024 bytes + value: 2 + - name: Bytes2048 + description: ECC page size 2048 bytes + value: 3 + - name: Bytes4096 + description: ECC page size 4096 bytes + value: 4 + - name: Bytes8192 + description: ECC page size 8192 bytes + value: 5 enum/MTYP: bit_size: 2 variants: - - name: SRAM - description: SRAM memory type - value: 0 - - name: PSRAM - description: PSRAM (CRAM) memory type - value: 1 - - name: Flash - description: NOR Flash/OneNAND Flash - value: 2 + - name: SRAM + description: SRAM memory type + value: 0 + - name: PSRAM + description: PSRAM (CRAM) memory type + value: 1 + - name: Flash + description: NOR Flash/OneNAND Flash + value: 2 enum/MWID: bit_size: 2 variants: - - name: Bits8 - description: Memory data bus width 8 bits - value: 0 - - name: Bits16 - description: Memory data bus width 16 bits - value: 1 - - name: Bits32 - description: Memory data bus width 32 bits - value: 2 + - name: Bits8 + description: Memory data bus width 8 bits + value: 0 + - name: Bits16 + description: Memory data bus width 16 bits + value: 1 + - name: Bits32 + description: Memory data bus width 32 bits + value: 2 enum/PTYP: bit_size: 1 variants: - - name: NANDFlash - description: NAND Flash - value: 1 + - name: NANDFlash + description: NAND Flash + value: 1 enum/PWID: bit_size: 2 variants: - - name: Bits8 - description: External memory device width 8 bits - value: 0 - - name: Bits16 - description: External memory device width 16 bits - value: 1 + - name: Bits8 + description: External memory device width 8 bits + value: 0 + - name: Bits16 + description: External memory device width 16 bits + value: 1 enum/WAITCFG: bit_size: 1 variants: - - name: BeforeWaitState - description: NWAIT signal is active one data cycle before wait state - value: 0 - - name: DuringWaitState - description: NWAIT signal is active during wait state - value: 1 + - name: BeforeWaitState + description: NWAIT signal is active one data cycle before wait state + value: 0 + - name: DuringWaitState + description: NWAIT signal is active during wait state + value: 1 enum/WAITPOL: bit_size: 1 variants: - - name: ActiveLow - description: NWAIT active low - value: 0 - - name: ActiveHigh - description: NWAIT active high - value: 1 + - name: ActiveLow + description: NWAIT active low + value: 0 + - name: ActiveHigh + description: NWAIT active high + value: 1 diff --git a/data/registers/gpdma_v1.yaml b/data/registers/gpdma_v1.yaml index f285c3d..6e06b48 100644 --- a/data/registers/gpdma_v1.yaml +++ b/data/registers/gpdma_v1.yaml @@ -1,597 +1,600 @@ ---- block/Channel: items: - - name: LBAR - description: GPDMA channel 15 linked-list base address register - byte_offset: 0 - fieldset: CH_LBAR - - name: FCR - description: GPDMA channel 15 flag clear register - byte_offset: 12 - fieldset: CH_FCR - - name: SR - description: GPDMA channel 15 status register - byte_offset: 16 - fieldset: CH_SR - - name: CR - description: GPDMA channel 15 control register - byte_offset: 20 - fieldset: CH_CR - - name: TR1 - description: GPDMA channel 15 transfer register 1 - byte_offset: 64 - fieldset: CH_TR1 - - name: TR2 - description: GPDMA channel 15 transfer register 2 - byte_offset: 68 - fieldset: CH_TR2 - - name: BR1 - description: GPDMA channel 15 alternate block register 1 - byte_offset: 72 - fieldset: CH_BR1 - - name: SAR - description: GPDMA channel 15 source address register - byte_offset: 76 - - name: DAR - description: GPDMA channel 15 destination address register - byte_offset: 80 - - name: TR3 - description: GPDMA channel 15 transfer register 3 - byte_offset: 84 - fieldset: CH_TR3 - - name: BR2 - description: GPDMA channel 15 block register 2 - byte_offset: 88 - fieldset: CH_BR2 - - name: LLR - description: GPDMA channel 15 alternate linked-list address register - byte_offset: 124 - fieldset: CH_LLR + - name: LBAR + description: GPDMA channel 15 linked-list base address register + byte_offset: 0 + fieldset: CH_LBAR + - name: FCR + description: GPDMA channel 15 flag clear register + byte_offset: 12 + fieldset: CH_FCR + - name: SR + description: GPDMA channel 15 status register + byte_offset: 16 + fieldset: CH_SR + - name: CR + description: GPDMA channel 15 control register + byte_offset: 20 + fieldset: CH_CR + - name: TR1 + description: GPDMA channel 15 transfer register 1 + byte_offset: 64 + fieldset: CH_TR1 + - name: TR2 + description: GPDMA channel 15 transfer register 2 + byte_offset: 68 + fieldset: CH_TR2 + - name: BR1 + description: GPDMA channel 15 alternate block register 1 + byte_offset: 72 + fieldset: CH_BR1 + - name: SAR + description: GPDMA channel 15 source address register + byte_offset: 76 + - name: DAR + description: GPDMA channel 15 destination address register + byte_offset: 80 + - name: TR3 + description: GPDMA channel 15 transfer register 3 + byte_offset: 84 + fieldset: CH_TR3 + - name: BR2 + description: GPDMA channel 15 block register 2 + byte_offset: 88 + fieldset: CH_BR2 + - name: LLR + description: GPDMA channel 15 alternate linked-list address register + byte_offset: 124 + fieldset: CH_LLR block/GPDMA: description: GPDMA items: - - name: SECCFGR - description: GPDMA secure configuration register - byte_offset: 0 - fieldset: SECCFGR - - name: PRIVCFGR - description: GPDMA privileged configuration register - byte_offset: 4 - fieldset: PRIVCFGR - - name: RCFGLOCKR - description: GPDMA configuration lock register - byte_offset: 8 - fieldset: RCFGLOCKR - - name: MISR - description: GPDMA non-secure masked interrupt status register - byte_offset: 12 - fieldset: MISR - - name: SMISR - description: GPDMA secure masked interrupt status register - byte_offset: 16 - fieldset: MISR - - name: CH - array: - len: 16 - stride: 128 - byte_offset: 80 - block: Channel + - name: SECCFGR + description: GPDMA secure configuration register + byte_offset: 0 + fieldset: SECCFGR + - name: PRIVCFGR + description: GPDMA privileged configuration register + byte_offset: 4 + fieldset: PRIVCFGR + - name: RCFGLOCKR + description: GPDMA configuration lock register + byte_offset: 8 + fieldset: RCFGLOCKR + - name: MISR + description: GPDMA non-secure masked interrupt status register + byte_offset: 12 + fieldset: MISR + - name: SMISR + description: GPDMA secure masked interrupt status register + byte_offset: 16 + fieldset: MISR + - name: CH + array: + len: 16 + stride: 128 + byte_offset: 80 + block: Channel fieldset/CH_BR1: description: GPDMA channel 15 alternate block register 1 fields: - - name: BNDT - description: "block number of data bytes to transfer from the source. Block size transferred from the source. When the channel is enabled, this field becomes read-only and is decremented, indicating the remaining number of data items in the current source block to be transferred. BNDT[15:0] is programmed in number of bytes, maximum source block size is 64 Kbytes -1. Once the last data transfer is completed (BNDT[15:0] = 0): - if CH[x].LLR.UB1 = 1, this field is updated by the LLI in the memory. - if CH[x].LLR.UB1 = 0 and if there is at least one not null Uxx update bit, this field is internally restored to the programmed value. - if all CH[x].LLR.Uxx = 0 and if CH[x].LLR.LA[15:0] ≠ 0, this field is internally restored to the programmed value (infinite/continuous last LLI). - if CH[x].LLR = 0, this field is kept as zero following the last LLI data transfer. Note: A non-null source block size must be a multiple of the source data width (BNDT[2:0] versus CH[x].TR1.SDW_LOG2[1:0]). Else a user setting error is reported and no transfer is issued. When configured in packing mode (CH[x].TR1.PAM[1]=1 and destination data width different from source data width), a non-null source block size must be a multiple of the destination data width (BNDT[2:0] versus CH[x].TR1.DDW[1:0]). Else a user setting error is reported and no transfer is issued." - bit_offset: 0 - bit_size: 16 - - name: BRC - description: "Block repeat counter. This field contains the number of repetitions of the current block (0 to 2047). When the channel is enabled, this field becomes read-only. After decrements, this field indicates the remaining number of blocks, excluding the current one. This counter is hardware decremented for each completed block transfer. Once the last block transfer is completed (BRC[10:0] = BNDT[15:0] = 0): If CH[x].LLR.UB1 = 1, all CH[x].BR1 fields are updated by the next LLI in the memory. If CH[x].LLR.UB1 = 0 and if there is at least one not null Uxx update bit, this field is internally restored to the programmed value. if all CH[x].LLR.Uxx = 0 and if CH[x].LLR.LA[15:0] ≠ 0, this field is internally restored to the programmed value (infinite/continuous last LLI). if CH[x].LLR = 0, this field is kept as zero following the last LLI and data transfer." - bit_offset: 16 - bit_size: 11 - - name: SDEC - description: source address decrement - bit_offset: 28 - bit_size: 1 - enum: CH_BR1_DEC - - name: DDEC - description: destination address decrement - bit_offset: 29 - bit_size: 1 - enum: CH_BR1_DEC - - name: BRSDEC - description: "Block repeat source address decrement. Note: On top of this increment/decrement (depending on BRSDEC), CH[x].SAR is in the same time also updated by the increment/decrement (depending on SDEC) of the CH[x].TR3.SAO value, as it is done after any programmed burst transfer." - bit_offset: 30 - bit_size: 1 - enum: CH_BR1_DEC - - name: BRDDEC - description: "Block repeat destination address decrement. Note: On top of this increment/decrement (depending on BRDDEC), CH[x].DAR is in the same time also updated by the increment/decrement (depending on DDEC) of the CH[x].TR3.DAO value, as it is usually done at the end of each programmed burst transfer." - bit_offset: 31 - bit_size: 1 - enum: CH_BR1_DEC + - name: BNDT + description: 'block number of data bytes to transfer from the source. Block size transferred from the source. When the channel is enabled, this field becomes read-only and is decremented, indicating the remaining number of data items in the current source block to be transferred. BNDT[15:0] is programmed in number of bytes, maximum source block size is 64 Kbytes -1. Once the last data transfer is completed (BNDT[15:0] = 0): - if CH[x].LLR.UB1 = 1, this field is updated by the LLI in the memory. - if CH[x].LLR.UB1 = 0 and if there is at least one not null Uxx update bit, this field is internally restored to the programmed value. - if all CH[x].LLR.Uxx = 0 and if CH[x].LLR.LA[15:0] ≠ 0, this field is internally restored to the programmed value (infinite/continuous last LLI). - if CH[x].LLR = 0, this field is kept as zero following the last LLI data transfer. Note: A non-null source block size must be a multiple of the source data width (BNDT[2:0] versus CH[x].TR1.SDW_LOG2[1:0]). Else a user setting error is reported and no transfer is issued. When configured in packing mode (CH[x].TR1.PAM[1]=1 and destination data width different from source data width), a non-null source block size must be a multiple of the destination data width (BNDT[2:0] versus CH[x].TR1.DDW[1:0]). Else a user setting error is reported and no transfer is issued.' + bit_offset: 0 + bit_size: 16 + - name: BRC + description: 'Block repeat counter. This field contains the number of repetitions of the current block (0 to 2047). When the channel is enabled, this field becomes read-only. After decrements, this field indicates the remaining number of blocks, excluding the current one. This counter is hardware decremented for each completed block transfer. Once the last block transfer is completed (BRC[10:0] = BNDT[15:0] = 0): If CH[x].LLR.UB1 = 1, all CH[x].BR1 fields are updated by the next LLI in the memory. If CH[x].LLR.UB1 = 0 and if there is at least one not null Uxx update bit, this field is internally restored to the programmed value. if all CH[x].LLR.Uxx = 0 and if CH[x].LLR.LA[15:0] ≠ 0, this field is internally restored to the programmed value (infinite/continuous last LLI). if CH[x].LLR = 0, this field is kept as zero following the last LLI and data transfer.' + bit_offset: 16 + bit_size: 11 + - name: SDEC + description: source address decrement + bit_offset: 28 + bit_size: 1 + enum: CH_BR1_DEC + - name: DDEC + description: destination address decrement + bit_offset: 29 + bit_size: 1 + enum: CH_BR1_DEC + - name: BRSDEC + description: 'Block repeat source address decrement. Note: On top of this increment/decrement (depending on BRSDEC), CH[x].SAR is in the same time also updated by the increment/decrement (depending on SDEC) of the CH[x].TR3.SAO value, as it is done after any programmed burst transfer.' + bit_offset: 30 + bit_size: 1 + enum: CH_BR1_DEC + - name: BRDDEC + description: 'Block repeat destination address decrement. Note: On top of this increment/decrement (depending on BRDDEC), CH[x].DAR is in the same time also updated by the increment/decrement (depending on DDEC) of the CH[x].TR3.DAO value, as it is usually done at the end of each programmed burst transfer.' + bit_offset: 31 + bit_size: 1 + enum: CH_BR1_DEC fieldset/CH_BR2: description: GPDMA channel 12 block register 2 fields: - - name: BRSAO - description: "Block repeated source address offset. For a channel with 2D addressing capability, this field is used to update (by addition or subtraction depending on CH[x].BR1.BRSDEC) the current source address (CH[x].SAR) at the end of a block transfer. Note: A block repeated source address offset must be aligned with the programmed data width of a source burst (BRSAO[2:0] versus CH[x].TR1.SDW_LOG2[1:0]). Else a user setting error is reported and no transfer is issued." - bit_offset: 0 - bit_size: 16 - - name: BRDAO - description: "Block repeated destination address offset. For a channel with 2D addressing capability, this field is used to update (by addition or subtraction depending on CH[x].BR1.BRDDEC) the current destination address (CH[x].DAR) at the end of a block transfer. Note: A block repeated destination address offset must be aligned with the programmed data width of a destination burst (BRDAO[2:0] versus CH[x].TR1.DDW[1:0]). Else a user setting error is reported and no transfer is issued." - bit_offset: 16 - bit_size: 16 + - name: BRSAO + description: 'Block repeated source address offset. For a channel with 2D addressing capability, this field is used to update (by addition or subtraction depending on CH[x].BR1.BRSDEC) the current source address (CH[x].SAR) at the end of a block transfer. Note: A block repeated source address offset must be aligned with the programmed data width of a source burst (BRSAO[2:0] versus CH[x].TR1.SDW_LOG2[1:0]). Else a user setting error is reported and no transfer is issued.' + bit_offset: 0 + bit_size: 16 + - name: BRDAO + description: 'Block repeated destination address offset. For a channel with 2D addressing capability, this field is used to update (by addition or subtraction depending on CH[x].BR1.BRDDEC) the current destination address (CH[x].DAR) at the end of a block transfer. Note: A block repeated destination address offset must be aligned with the programmed data width of a destination burst (BRDAO[2:0] versus CH[x].TR1.DDW[1:0]). Else a user setting error is reported and no transfer is issued.' + bit_offset: 16 + bit_size: 16 fieldset/CH_CR: description: GPDMA channel 11 control register fields: - - name: EN - description: "enable. Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 0. Else: this bit is de-asserted by hardware when there is a transfer error (master bus error or user setting error) or when there is a channel transfer complete (channel ready to be configured, e.g. if LSM=1 at the end of a single execution of the LLI). Else, this bit can be asserted by software. Writing 0 into this EN bit is ignored." - bit_offset: 0 - bit_size: 1 - - name: RESET - description: "reset. This bit is write only. Writing 0 has no impact. Writing 1 implies the reset of the following: the FIFO, the channel internal state, SUSP and EN bits (whatever is written receptively in bit 2 and bit 0). The reset is effective when the channel is in steady state, meaning one of the following: - active channel in suspended state (CH[x].SR.SUSPF = 1 and CH[x].SR.IDLEF = CH[x].CR.EN = 1). - channel in disabled state (CH[x].SR.IDLEF = 1 and CH[x].CR.EN = 0). After writing a RESET, to continue using this channel, the user must explicitly reconfigure the channel including the hardware-modified configuration registers (CH[x].BR1, CH[x].SAR and CH[x].DAR) before enabling again the channel (see the programming sequence in )." - bit_offset: 1 - bit_size: 1 - - name: SUSP - description: "suspend. Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 2. Else: Software must write 1 in order to suspend an active channel i.e. a channel with an on-going GPDMA transfer over its master ports. The software must write 0 in order to resume a suspended channel, following the programming sequence detailed in ." - bit_offset: 2 - bit_size: 1 - - name: TCIE - description: transfer complete interrupt enable - bit_offset: 8 - bit_size: 1 - - name: HTIE - description: half transfer complete interrupt enable - bit_offset: 9 - bit_size: 1 - - name: DTEIE - description: data transfer error interrupt enable - bit_offset: 10 - bit_size: 1 - - name: ULEIE - description: update link transfer error interrupt enable - bit_offset: 11 - bit_size: 1 - - name: USEIE - description: user setting error interrupt enable - bit_offset: 12 - bit_size: 1 - - name: SUSPIE - description: completed suspension interrupt enable - bit_offset: 13 - bit_size: 1 - - name: TOIE - description: trigger overrun interrupt enable - bit_offset: 14 - bit_size: 1 - - name: LSM - description: "Link step mode. First the (possible 1D/repeated) block transfer is executed as defined by the current internal register file until CH[x].BR1.BNDT[15:0] = 0 and CH[x].BR1.BRC[10:0] = 0 if present. Secondly the next linked-list data structure is conditionally uploaded from memory as defined by CH[x].LLR. Then channel execution is completed. Note: This bit must be written when EN=0. This bit is read-only when EN=1." - bit_offset: 16 - bit_size: 1 - enum: CH_CR_LSM - - name: LAP - description: "linked-list allocated port. This bit is used to allocate the master port for the update of the GPDMA linked-list registers from the memory. Note: This bit must be written when EN=0. This bit is read-only when EN=1." - bit_offset: 17 - bit_size: 1 - enum: CH_CR_LAP - - name: PRIO - description: "priority level of the channel x GPDMA transfer versus others. Note: This bit must be written when EN = 0. This bit is read-only when EN = 1." - bit_offset: 22 - bit_size: 2 - enum: CH_CR_PRIO + - name: EN + description: 'enable. Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 0. Else: this bit is de-asserted by hardware when there is a transfer error (master bus error or user setting error) or when there is a channel transfer complete (channel ready to be configured, e.g. if LSM=1 at the end of a single execution of the LLI). Else, this bit can be asserted by software. Writing 0 into this EN bit is ignored.' + bit_offset: 0 + bit_size: 1 + - name: RESET + description: 'reset. This bit is write only. Writing 0 has no impact. Writing 1 implies the reset of the following: the FIFO, the channel internal state, SUSP and EN bits (whatever is written receptively in bit 2 and bit 0). The reset is effective when the channel is in steady state, meaning one of the following: - active channel in suspended state (CH[x].SR.SUSPF = 1 and CH[x].SR.IDLEF = CH[x].CR.EN = 1). - channel in disabled state (CH[x].SR.IDLEF = 1 and CH[x].CR.EN = 0). After writing a RESET, to continue using this channel, the user must explicitly reconfigure the channel including the hardware-modified configuration registers (CH[x].BR1, CH[x].SAR and CH[x].DAR) before enabling again the channel (see the programming sequence in ).' + bit_offset: 1 + bit_size: 1 + - name: SUSP + description: 'suspend. Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 2. Else: Software must write 1 in order to suspend an active channel i.e. a channel with an on-going GPDMA transfer over its master ports. The software must write 0 in order to resume a suspended channel, following the programming sequence detailed in .' + bit_offset: 2 + bit_size: 1 + - name: TCIE + description: transfer complete interrupt enable + bit_offset: 8 + bit_size: 1 + - name: HTIE + description: half transfer complete interrupt enable + bit_offset: 9 + bit_size: 1 + - name: DTEIE + description: data transfer error interrupt enable + bit_offset: 10 + bit_size: 1 + - name: ULEIE + description: update link transfer error interrupt enable + bit_offset: 11 + bit_size: 1 + - name: USEIE + description: user setting error interrupt enable + bit_offset: 12 + bit_size: 1 + - name: SUSPIE + description: completed suspension interrupt enable + bit_offset: 13 + bit_size: 1 + - name: TOIE + description: trigger overrun interrupt enable + bit_offset: 14 + bit_size: 1 + - name: LSM + description: 'Link step mode. First the (possible 1D/repeated) block transfer is executed as defined by the current internal register file until CH[x].BR1.BNDT[15:0] = 0 and CH[x].BR1.BRC[10:0] = 0 if present. Secondly the next linked-list data structure is conditionally uploaded from memory as defined by CH[x].LLR. Then channel execution is completed. Note: This bit must be written when EN=0. This bit is read-only when EN=1.' + bit_offset: 16 + bit_size: 1 + enum: CH_CR_LSM + - name: LAP + description: 'linked-list allocated port. This bit is used to allocate the master port for the update of the GPDMA linked-list registers from the memory. Note: This bit must be written when EN=0. This bit is read-only when EN=1.' + bit_offset: 17 + bit_size: 1 + enum: CH_CR_LAP + - name: PRIO + description: 'priority level of the channel x GPDMA transfer versus others. Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.' + bit_offset: 22 + bit_size: 2 + enum: CH_CR_PRIO fieldset/CH_FCR: description: GPDMA channel 7 flag clear register fields: - - name: TCF - description: transfer complete flag clear - bit_offset: 8 - bit_size: 1 - - name: HTF - description: half transfer flag clear - bit_offset: 9 - bit_size: 1 - - name: DTEF - description: data transfer error flag clear - bit_offset: 10 - bit_size: 1 - - name: ULEF - description: update link transfer error flag clear - bit_offset: 11 - bit_size: 1 - - name: USEF - description: user setting error flag clear - bit_offset: 12 - bit_size: 1 - - name: SUSPF - description: completed suspension flag clear - bit_offset: 13 - bit_size: 1 - - name: TOF - description: trigger overrun flag clear - bit_offset: 14 - bit_size: 1 + - name: TCF + description: transfer complete flag clear + bit_offset: 8 + bit_size: 1 + - name: HTF + description: half transfer flag clear + bit_offset: 9 + bit_size: 1 + - name: DTEF + description: data transfer error flag clear + bit_offset: 10 + bit_size: 1 + - name: ULEF + description: update link transfer error flag clear + bit_offset: 11 + bit_size: 1 + - name: USEF + description: user setting error flag clear + bit_offset: 12 + bit_size: 1 + - name: SUSPF + description: completed suspension flag clear + bit_offset: 13 + bit_size: 1 + - name: TOF + description: trigger overrun flag clear + bit_offset: 14 + bit_size: 1 fieldset/CH_LBAR: description: GPDMA channel 14 linked-list base address register fields: - - name: LBA - description: linked-list base address of GPDMA channel x - bit_offset: 16 - bit_size: 16 + - name: LBA + description: linked-list base address of GPDMA channel x + bit_offset: 16 + bit_size: 16 fieldset/CH_LLR: description: GPDMA channel 15 alternate linked-list address register fields: - - name: LA - description: "pointer (16-bit low-significant address) to the next linked-list data structure. If UT1 = UT2 = UB1 = USA = UDA = ULL = 0 and if LA[15:20] = 0, the current LLI is the last one. The channel transfer is completed without any update of the linked-list GPDMA register file. Else, this field is the pointer to the memory address offset from which the next linked-list data structure is automatically fetched from, once the data transfer is completed, in order to conditionally update the linked-list GPDMA internal register file (CH[x].CTR1, CH[x].TR2, CH[x].BR1, CH[x].SAR, CH[x].DAR and CH[x].LLR). Note: The user must program the pointer to be 32-bit aligned. The two low-significant bits are write ignored." - bit_offset: 2 - bit_size: 14 - - name: ULL - description: "Update CH[x].LLR register from memory. This bit is used to control the update of CH[x].LLR from the memory during the link transfer." - bit_offset: 16 - bit_size: 1 - - name: UB2 - description: "Update CH[x].BR2 from memory. This bit controls the update of CH[x].BR2 from the memory during the link transfer." - bit_offset: 25 - bit_size: 1 - - name: UT3 - description: "Update CH[x].TR3 from memory. This bit controls the update of CH[x].TR3 from the memory during the link transfer." - bit_offset: 26 - bit_size: 1 - - name: UDA - description: "Update CH[x].DAR register from memory. This bit is used to control the update of CH[x].DAR from the memory during the link transfer." - bit_offset: 27 - bit_size: 1 - - name: USA - description: "update CH[x].SAR from memory. This bit controls the update of CH[x].SAR from the memory during the link transfer." - bit_offset: 28 - bit_size: 1 - - name: UB1 - description: "Update CH[x].BR1 from memory. This bit controls the update of CH[x].BR1 from the memory during the link transfer. If UB1 = 0 and if CH[x].LLR ≠ 0, the linked-list is not completed. CH[x].BR1.BNDT[15:0] is then restored to the programmed value after data transfer is completed and before the link transfer." - bit_offset: 29 - bit_size: 1 - - name: UT2 - description: "Update CH[x].TR2 from memory. This bit controls the update of CH[x].TR2 from the memory during the link transfer." - bit_offset: 30 - bit_size: 1 - - name: UT1 - description: "Update CH[x].TR1 from memory. This bit controls the update of CH[x].TR1 from the memory during the link transfer." - bit_offset: 31 - bit_size: 1 + - name: LA + description: 'pointer (16-bit low-significant address) to the next linked-list data structure. If UT1 = UT2 = UB1 = USA = UDA = ULL = 0 and if LA[15:20] = 0, the current LLI is the last one. The channel transfer is completed without any update of the linked-list GPDMA register file. Else, this field is the pointer to the memory address offset from which the next linked-list data structure is automatically fetched from, once the data transfer is completed, in order to conditionally update the linked-list GPDMA internal register file (CH[x].CTR1, CH[x].TR2, CH[x].BR1, CH[x].SAR, CH[x].DAR and CH[x].LLR). Note: The user must program the pointer to be 32-bit aligned. The two low-significant bits are write ignored.' + bit_offset: 2 + bit_size: 14 + - name: ULL + description: Update CH[x].LLR register from memory. This bit is used to control the update of CH[x].LLR from the memory during the link transfer. + bit_offset: 16 + bit_size: 1 + - name: UB2 + description: Update CH[x].BR2 from memory. This bit controls the update of CH[x].BR2 from the memory during the link transfer. + bit_offset: 25 + bit_size: 1 + - name: UT3 + description: Update CH[x].TR3 from memory. This bit controls the update of CH[x].TR3 from the memory during the link transfer. + bit_offset: 26 + bit_size: 1 + - name: UDA + description: Update CH[x].DAR register from memory. This bit is used to control the update of CH[x].DAR from the memory during the link transfer. + bit_offset: 27 + bit_size: 1 + - name: USA + description: update CH[x].SAR from memory. This bit controls the update of CH[x].SAR from the memory during the link transfer. + bit_offset: 28 + bit_size: 1 + - name: UB1 + description: Update CH[x].BR1 from memory. This bit controls the update of CH[x].BR1 from the memory during the link transfer. If UB1 = 0 and if CH[x].LLR ≠ 0, the linked-list is not completed. CH[x].BR1.BNDT[15:0] is then restored to the programmed value after data transfer is completed and before the link transfer. + bit_offset: 29 + bit_size: 1 + - name: UT2 + description: Update CH[x].TR2 from memory. This bit controls the update of CH[x].TR2 from the memory during the link transfer. + bit_offset: 30 + bit_size: 1 + - name: UT1 + description: Update CH[x].TR1 from memory. This bit controls the update of CH[x].TR1 from the memory during the link transfer. + bit_offset: 31 + bit_size: 1 fieldset/CH_SR: description: GPDMA channel 15 status register fields: - - name: IDLEF - description: "idle flag. This idle flag is de-asserted by hardware when the channel is enabled (CH[x].CR.EN = 1) with a valid channel configuration (no USEF to be immediately reported). This idle flag is asserted after hard reset or by hardware when the channel is back in idle state (in suspended or disabled state)." - bit_offset: 0 - bit_size: 1 - - name: TCF - description: "transfer complete flag. A transfer complete event is either a block transfer complete, a 2D/repeated block transfer complete, a LLI transfer complete including the upload of the next LLI if any, or the full linked-list completion, depending on the transfer complete event mode (CH[x].TR2.TCEM[1:0])." - bit_offset: 8 - bit_size: 1 - - name: HTF - description: "half transfer flag. An half transfer event is either an half block transfer or an half 2D/repeated block transfer, depending on the transfer complete event mode (CH[x].TR2.TCEM[1:0]). An half block transfer occurs when half of the bytes of the source block size (rounded up integer of CH[x].BR1.BNDT[15:0]/2) has been transferred to the destination. An half 2D/repeated block transfer occurs when half of the repeated blocks (rounded up integer of (CH[x].BR1.BRC[10:0]+1)/2)) has been transferred to the destination." - bit_offset: 9 - bit_size: 1 - - name: DTEF - description: data transfer error flag - bit_offset: 10 - bit_size: 1 - - name: ULEF - description: update link transfer error flag - bit_offset: 11 - bit_size: 1 - - name: USEF - description: user setting error flag - bit_offset: 12 - bit_size: 1 - - name: SUSPF - description: completed suspension flag - bit_offset: 13 - bit_size: 1 - - name: TOF - description: trigger overrun flag - bit_offset: 14 - bit_size: 1 - - name: FIFOL - description: "monitored FIFO level. Number of available write beats in the FIFO, in units of the programmed destination data width (see CH[x].TR1.DDW[1:0], in units of bytes, half-words, or words). Note: After having suspended an active transfer, the user may need to read FIFOL[7:0], additionally to CH[x].BR1.BDNT[15:0] and CH[x].BR1.BRC[10:0], to know how many data have been transferred to the destination. Before reading, the user may wait for the transfer to be suspended (CH[x].SR.SUSPF = 1)." - bit_offset: 16 - bit_size: 8 + - name: IDLEF + description: idle flag. This idle flag is de-asserted by hardware when the channel is enabled (CH[x].CR.EN = 1) with a valid channel configuration (no USEF to be immediately reported). This idle flag is asserted after hard reset or by hardware when the channel is back in idle state (in suspended or disabled state). + bit_offset: 0 + bit_size: 1 + - name: TCF + description: transfer complete flag. A transfer complete event is either a block transfer complete, a 2D/repeated block transfer complete, a LLI transfer complete including the upload of the next LLI if any, or the full linked-list completion, depending on the transfer complete event mode (CH[x].TR2.TCEM[1:0]). + bit_offset: 8 + bit_size: 1 + - name: HTF + description: half transfer flag. An half transfer event is either an half block transfer or an half 2D/repeated block transfer, depending on the transfer complete event mode (CH[x].TR2.TCEM[1:0]). An half block transfer occurs when half of the bytes of the source block size (rounded up integer of CH[x].BR1.BNDT[15:0]/2) has been transferred to the destination. An half 2D/repeated block transfer occurs when half of the repeated blocks (rounded up integer of (CH[x].BR1.BRC[10:0]+1)/2)) has been transferred to the destination. + bit_offset: 9 + bit_size: 1 + - name: DTEF + description: data transfer error flag + bit_offset: 10 + bit_size: 1 + - name: ULEF + description: update link transfer error flag + bit_offset: 11 + bit_size: 1 + - name: USEF + description: user setting error flag + bit_offset: 12 + bit_size: 1 + - name: SUSPF + description: completed suspension flag + bit_offset: 13 + bit_size: 1 + - name: TOF + description: trigger overrun flag + bit_offset: 14 + bit_size: 1 + - name: FIFOL + description: 'monitored FIFO level. Number of available write beats in the FIFO, in units of the programmed destination data width (see CH[x].TR1.DDW[1:0], in units of bytes, half-words, or words). Note: After having suspended an active transfer, the user may need to read FIFOL[7:0], additionally to CH[x].BR1.BDNT[15:0] and CH[x].BR1.BRC[10:0], to know how many data have been transferred to the destination. Before reading, the user may wait for the transfer to be suspended (CH[x].SR.SUSPF = 1).' + bit_offset: 16 + bit_size: 8 fieldset/CH_TR1: description: GPDMA channel 8 transfer register 1 fields: - - name: SDW - description: "binary logarithm of the source data width of a burst in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and no transfer is issued. A source block size must be a multiple of the source data width (CH[x].BR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued. A source single transfer must have an aligned address with its data width (start address CH[x].SAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued." - bit_offset: 0 - bit_size: 2 - enum: CH_TR1_DW - - name: SINC - description: "source incrementing burst. The source address, pointed by CH[x].SAR, is kept constant after a burst beat/single transfer or is incremented by the offset value corresponding to a contiguous data after a burst beat/single transfer." - bit_offset: 3 - bit_size: 1 - - name: SBL_1 - description: "source burst length minus 1, between 0 and 63. The burst length unit is one data named beat within a burst. If SBL_1[5:0] =0 , the burst can be named as single. Each data/beat has a width defined by the destination data width SDW_LOG2[1:0]. Note: If a burst transfer crossed a 1-Kbyte address boundary on a AHB transfer, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the AHB protocol. If a burst transfer is of length greater than the FIFO size of the channel x, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the FIFO size. Transfer performance is lower, with GPDMA re-arbitration between effective and lower bursts/singles, but the data integrity is guaranteed." - bit_offset: 4 - bit_size: 6 - - name: PAM - description: "padding/alignment mode. If DDW[1:0] = SDW_LOG2[1:0]: if the data width of a burst destination transfer is equal to the data width of a burst source transfer, these bits are ignored. Else: - Case 1: If destination data width > source data width. 1x: successive source data are FIFO queued and packed at the destination data width, in a left (LSB) to right (MSB) order (named little endian), before a destination transfer. - Case 2: If destination data width < source data width. 1x: source data is FIFO queued and unpacked at the destination data width, to be transferred in a left (LSB) to right (MSB) order (named little endian) to the destination. Note:" - bit_offset: 11 - bit_size: 2 - enum: CH_TR1_PAM - - name: SBX - description: "source byte exchange within the unaligned half-word of each source word. If set, the two consecutive bytes within the unaligned half-word of each source word are exchanged. If the source data width is shorter than a word, this bit is ignored." - bit_offset: 13 - bit_size: 1 - - name: SAP - description: "source allocated port. This bit is used to allocate the master port for the source transfer. Note: This bit must be written when EN = 0. This bit is read-only when EN = 1." - bit_offset: 14 - bit_size: 1 - enum: CH_TR1_AP - - name: SSEC - description: "security attribute of the GPDMA transfer from the source. If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx =1 . A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this SSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the GPDMA transfer from the source is non-secure." - bit_offset: 15 - bit_size: 1 - - name: DDW - description: "binary logarithm of the destination data width of a burst, in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued. A destination burst transfer must have an aligned address with its data width (start address CH[x].DAR[2:0] and address offset CH[x].TR3.DAO[2:0], versus DDW[1:0]). Otherwise a user setting error is reported and no transfer is issued." - bit_offset: 16 - bit_size: 2 - enum: CH_TR1_DW - - name: DINC - description: "destination incrementing burst. The destination address, pointed by CH[x].DAR, is kept constant after a burst beat/single transfer, or is incremented by the offset value corresponding to a contiguous data after a burst beat/single transfer." - bit_offset: 19 - bit_size: 1 - - name: DBL_1 - description: "destination burst length minus 1, between 0 and 63. The burst length unit is one data named beat within a burst. If DBL_1[5:0] =0 , the burst can be named as single. Each data/beat has a width defined by the destination data width DDW[1:0]. Note: If a burst transfer crossed a 1-Kbyte address boundary on a AHB transfer, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the AHB protocol. If a burst transfer is of length greater than the FIFO size of the channel x, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the FIFO size. Transfer performance is lower, with GPDMA re-arbitration between effective and lower bursts/singles, but the data integrity is guaranteed." - bit_offset: 20 - bit_size: 6 - - name: DBX - description: "destination byte exchange. IF set, the two consecutive (post PAM) bytes are exchanged in each destination half-word. If the destination data size is a byte, this bit is ignored." - bit_offset: 26 - bit_size: 1 - - name: DHX - description: "destination half-word exchange. If set, e two consecutive (post PAM) half-words are exchanged in each destination word. If the destination data size is shorter than a word, this bit is ignored." - bit_offset: 27 - bit_size: 1 - - name: DAP - description: "destination allocated port. This bit is used to allocate the master port for the destination transfer. Note: This bit must be written when EN = 0. This bit is read-only when EN = 1." - bit_offset: 30 - bit_size: 1 - enum: CH_TR1_AP - - name: DSEC - description: "security attribute of the GPDMA transfer to the destination. If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx = 1. A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this DSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the GPDMA transfer to the destination is non-secure." - bit_offset: 31 - bit_size: 1 + - name: SDW + description: 'binary logarithm of the source data width of a burst in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and no transfer is issued. A source block size must be a multiple of the source data width (CH[x].BR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued. A source single transfer must have an aligned address with its data width (start address CH[x].SAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued.' + bit_offset: 0 + bit_size: 2 + enum: CH_TR1_DW + - name: SINC + description: source incrementing burst. The source address, pointed by CH[x].SAR, is kept constant after a burst beat/single transfer or is incremented by the offset value corresponding to a contiguous data after a burst beat/single transfer. + bit_offset: 3 + bit_size: 1 + - name: SBL_1 + description: 'source burst length minus 1, between 0 and 63. The burst length unit is one data named beat within a burst. If SBL_1[5:0] =0 , the burst can be named as single. Each data/beat has a width defined by the destination data width SDW_LOG2[1:0]. Note: If a burst transfer crossed a 1-Kbyte address boundary on a AHB transfer, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the AHB protocol. If a burst transfer is of length greater than the FIFO size of the channel x, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the FIFO size. Transfer performance is lower, with GPDMA re-arbitration between effective and lower bursts/singles, but the data integrity is guaranteed.' + bit_offset: 4 + bit_size: 6 + - name: PAM + description: 'padding/alignment mode. If DDW[1:0] = SDW_LOG2[1:0]: if the data width of a burst destination transfer is equal to the data width of a burst source transfer, these bits are ignored. Else: - Case 1: If destination data width > source data width. 1x: successive source data are FIFO queued and packed at the destination data width, in a left (LSB) to right (MSB) order (named little endian), before a destination transfer. - Case 2: If destination data width < source data width. 1x: source data is FIFO queued and unpacked at the destination data width, to be transferred in a left (LSB) to right (MSB) order (named little endian) to the destination. Note:' + bit_offset: 11 + bit_size: 2 + enum: CH_TR1_PAM + - name: SBX + description: source byte exchange within the unaligned half-word of each source word. If set, the two consecutive bytes within the unaligned half-word of each source word are exchanged. If the source data width is shorter than a word, this bit is ignored. + bit_offset: 13 + bit_size: 1 + - name: SAP + description: 'source allocated port. This bit is used to allocate the master port for the source transfer. Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.' + bit_offset: 14 + bit_size: 1 + enum: CH_TR1_AP + - name: SSEC + description: 'security attribute of the GPDMA transfer from the source. If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx =1 . A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this SSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the GPDMA transfer from the source is non-secure.' + bit_offset: 15 + bit_size: 1 + - name: DDW + description: 'binary logarithm of the destination data width of a burst, in bytes. Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued. A destination burst transfer must have an aligned address with its data width (start address CH[x].DAR[2:0] and address offset CH[x].TR3.DAO[2:0], versus DDW[1:0]). Otherwise a user setting error is reported and no transfer is issued.' + bit_offset: 16 + bit_size: 2 + enum: CH_TR1_DW + - name: DINC + description: destination incrementing burst. The destination address, pointed by CH[x].DAR, is kept constant after a burst beat/single transfer, or is incremented by the offset value corresponding to a contiguous data after a burst beat/single transfer. + bit_offset: 19 + bit_size: 1 + - name: DBL_1 + description: 'destination burst length minus 1, between 0 and 63. The burst length unit is one data named beat within a burst. If DBL_1[5:0] =0 , the burst can be named as single. Each data/beat has a width defined by the destination data width DDW[1:0]. Note: If a burst transfer crossed a 1-Kbyte address boundary on a AHB transfer, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the AHB protocol. If a burst transfer is of length greater than the FIFO size of the channel x, the GPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the FIFO size. Transfer performance is lower, with GPDMA re-arbitration between effective and lower bursts/singles, but the data integrity is guaranteed.' + bit_offset: 20 + bit_size: 6 + - name: DBX + description: destination byte exchange. IF set, the two consecutive (post PAM) bytes are exchanged in each destination half-word. If the destination data size is a byte, this bit is ignored. + bit_offset: 26 + bit_size: 1 + - name: DHX + description: destination half-word exchange. If set, e two consecutive (post PAM) half-words are exchanged in each destination word. If the destination data size is shorter than a word, this bit is ignored. + bit_offset: 27 + bit_size: 1 + - name: DAP + description: 'destination allocated port. This bit is used to allocate the master port for the destination transfer. Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.' + bit_offset: 30 + bit_size: 1 + enum: CH_TR1_AP + - name: DSEC + description: 'security attribute of the GPDMA transfer to the destination. If SECCFGR.SECx = 1 and the access is secure: This is a secure register bit. This bit can only be read by a secure software. This bit must be written by a secure software when SECCFGR.SECx = 1. A secure write is ignored when SECCFGR.SECx = 0. When SECCFGR.SECx is de-asserted, this DSEC bit is also de-asserted by hardware (on a secure reconfiguration of the channel as non-secure), and the GPDMA transfer to the destination is non-secure.' + bit_offset: 31 + bit_size: 1 fieldset/CH_TR2: description: GPDMA channel 10 transfer register 2 fields: - - name: REQSEL - description: "GPDMA hardware request selection. These bits are ignored if channel x is activated (CH[x].CR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer). Else, the selected hardware request is internally taken into account as per . The user must not assign a same input hardware request (same REQSEL[6:0] value) to different active GPDMA channels (CH[x].CR.EN = 1 and CH[x].TR2.SWREQ = 0 for these channels). GPDMA is not intended to hardware support the case of simultaneous enabled channels incorrectly configured with a same hardware peripheral request signal, and there is no user setting error reporting." - bit_offset: 0 - bit_size: 7 - - name: SWREQ - description: "software request. This bit is internally taken into account when CH[x].CR.EN is asserted." - bit_offset: 9 - bit_size: 1 - enum: CH_TR2_SWREQ - - name: DREQ - description: "destination hardware request. This bit is ignored if channel x is activated (CH[x].CR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer). Else: Note:" - bit_offset: 10 - bit_size: 1 - enum: CH_TR2_DREQ - - name: BREQ - description: "Block hardware request. If the channel x is activated (CH[x].CR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer), this bit is ignored. Else:" - bit_offset: 11 - bit_size: 1 - enum: CH_TR2_BREQ - - name: TRIGM - description: "trigger mode. These bits define the transfer granularity for its conditioning by the trigger. If the channel x is enabled (CH[x].CR.EN asserted) with TRIGPOL[1:0] = 00 or 11, these TRIGM[1:0] bits are ignored. Else, a GPDMA transfer is conditioned by at least one trigger hit: first burst read of a 2D/repeated block transfer is conditioned by one hit trigger. – If the peripheral is programmed as a source (DREQ = 0) of the LLI data transfer, each programmed burst read is conditioned. – If the peripheral is programmed as a destination (DREQ = 1) of the LLI data transfer, each programmed burst write is conditioned. The first memory burst read of a (possibly 2D/repeated) block, also named as the first ready FIFO-based source burst, is gated by the occurrence of both the hardware request and the first trigger hit. The GPDMA monitoring of a trigger for channel x is started when the channel is enabled/loaded with a new active trigger configuration: rising or falling edge on a selected trigger (TRIGPOL[1:0] = 01 or respectively TRIGPOL[1:0] = 10). The monitoring of this trigger is kept active during the triggered and uncompleted (data or link) transfer; and if a new trigger is detected then, this hit is internally memorized to grant the next transfer, as long as the defined rising or falling edge is not modified, and the TRIGSEL[5:0] is not modified, and the channel is enabled. Transferring a next LLIn+1 that updates the CH[x].TR2 with a new value for any of TRIGSEL[5:0] or TRIGPOL[1:0], resets the monitoring, trashing the memorized hit of the formerly defined LLIn trigger. After a first new trigger hitn+1 is memorized, if another second trigger hitn+2 is detected and if the hitn triggered transfer is still not completed, hitn+2 is lost and not memorized.memorized. A trigger overrun flag is reported (CH[x].SR.TOF =1 ), and an interrupt is generated if enabled (CH[x].CR.TOIE = 1). The channel is not automatically disabled by hardware due to a trigger overrun. Note: When the source block size is not a multiple of the source burst size and is a multiple of the source data width, then the last programmed source burst is not completed and is internally shorten to match the block size. In this case, if TRIGM[1:0] = 11 and (SWREQ =1 or (SWREQ = 0 and DREQ =0 )), the shortened burst transfer (by singles or/and by bursts of lower length) is conditioned once by the trigger. When the programmed destination burst is internally shortened by singles or/and by bursts of lower length (versus FIFO size, versus block size, 1-Kbyte boundary address crossing): if the trigger is conditioning the programmed destination burst (if TRIGM[1:0] = 11 and SWREQ = 0 and DREQ = 1), this shortened destination burst transfer is conditioned once by the trigger." - bit_offset: 14 - bit_size: 2 - enum: CH_TR2_TRIGM - - name: TRIGSEL - description: "trigger event input selection. These bits select the trigger event input of the GPDMA transfer (as per ), with an active trigger event if TRIGPOL[1:0] ≠ 00." - bit_offset: 16 - bit_size: 6 - - name: TRIGPOL - description: "trigger event polarity. These bits define the polarity of the selected trigger event input defined by TRIGSEL[5:0]." - bit_offset: 24 - bit_size: 2 - enum: CH_TR2_TRIGPOL - - name: TCEM - description: "transfer complete event mode. These bits define the transfer granularity for the transfer complete and half transfer complete events generation. Note: If the initial LLI0 data transfer is null/void (directly programmed by the internal register file with CH[x].BR1.BNDT[15:0] = 0), then neither the complete transfer event nor the half transfer event is generated. Note: If the initial LLI0 data transfer is null/void (directly programmed by the internal register file with CH[x].BR1.BNDT[15:0] = 0), then neither the complete transfer event nor the half transfer event is generated. Note: If the initial LLI0 data transfer is null/void (i.e. directly programmed by the internal register file with CH[x].BR1.BNDT[15:0] =0 ), then the half transfer event is not generated, and the transfer complete event is generated when is completed the loading of the LLI1." - bit_offset: 30 - bit_size: 2 - enum: CH_TR2_TCEM + - name: REQSEL + description: GPDMA hardware request selection. These bits are ignored if channel x is activated (CH[x].CR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer). Else, the selected hardware request is internally taken into account as per . The user must not assign a same input hardware request (same REQSEL[6:0] value) to different active GPDMA channels (CH[x].CR.EN = 1 and CH[x].TR2.SWREQ = 0 for these channels). GPDMA is not intended to hardware support the case of simultaneous enabled channels incorrectly configured with a same hardware peripheral request signal, and there is no user setting error reporting. + bit_offset: 0 + bit_size: 7 + - name: SWREQ + description: software request. This bit is internally taken into account when CH[x].CR.EN is asserted. + bit_offset: 9 + bit_size: 1 + enum: CH_TR2_SWREQ + - name: DREQ + description: 'destination hardware request. This bit is ignored if channel x is activated (CH[x].CR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer). Else: Note:' + bit_offset: 10 + bit_size: 1 + enum: CH_TR2_DREQ + - name: BREQ + description: 'Block hardware request. If the channel x is activated (CH[x].CR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer), this bit is ignored. Else:' + bit_offset: 11 + bit_size: 1 + enum: CH_TR2_BREQ + - name: TRIGM + description: 'trigger mode. These bits define the transfer granularity for its conditioning by the trigger. If the channel x is enabled (CH[x].CR.EN asserted) with TRIGPOL[1:0] = 00 or 11, these TRIGM[1:0] bits are ignored. Else, a GPDMA transfer is conditioned by at least one trigger hit: first burst read of a 2D/repeated block transfer is conditioned by one hit trigger. – If the peripheral is programmed as a source (DREQ = 0) of the LLI data transfer, each programmed burst read is conditioned. – If the peripheral is programmed as a destination (DREQ = 1) of the LLI data transfer, each programmed burst write is conditioned. The first memory burst read of a (possibly 2D/repeated) block, also named as the first ready FIFO-based source burst, is gated by the occurrence of both the hardware request and the first trigger hit. The GPDMA monitoring of a trigger for channel x is started when the channel is enabled/loaded with a new active trigger configuration: rising or falling edge on a selected trigger (TRIGPOL[1:0] = 01 or respectively TRIGPOL[1:0] = 10). The monitoring of this trigger is kept active during the triggered and uncompleted (data or link) transfer; and if a new trigger is detected then, this hit is internally memorized to grant the next transfer, as long as the defined rising or falling edge is not modified, and the TRIGSEL[5:0] is not modified, and the channel is enabled. Transferring a next LLIn+1 that updates the CH[x].TR2 with a new value for any of TRIGSEL[5:0] or TRIGPOL[1:0], resets the monitoring, trashing the memorized hit of the formerly defined LLIn trigger. After a first new trigger hitn+1 is memorized, if another second trigger hitn+2 is detected and if the hitn triggered transfer is still not completed, hitn+2 is lost and not memorized.memorized. A trigger overrun flag is reported (CH[x].SR.TOF =1 ), and an interrupt is generated if enabled (CH[x].CR.TOIE = 1). The channel is not automatically disabled by hardware due to a trigger overrun. Note: When the source block size is not a multiple of the source burst size and is a multiple of the source data width, then the last programmed source burst is not completed and is internally shorten to match the block size. In this case, if TRIGM[1:0] = 11 and (SWREQ =1 or (SWREQ = 0 and DREQ =0 )), the shortened burst transfer (by singles or/and by bursts of lower length) is conditioned once by the trigger. When the programmed destination burst is internally shortened by singles or/and by bursts of lower length (versus FIFO size, versus block size, 1-Kbyte boundary address crossing): if the trigger is conditioning the programmed destination burst (if TRIGM[1:0] = 11 and SWREQ = 0 and DREQ = 1), this shortened destination burst transfer is conditioned once by the trigger.' + bit_offset: 14 + bit_size: 2 + enum: CH_TR2_TRIGM + - name: TRIGSEL + description: trigger event input selection. These bits select the trigger event input of the GPDMA transfer (as per ), with an active trigger event if TRIGPOL[1:0] ≠ 00. + bit_offset: 16 + bit_size: 6 + - name: TRIGPOL + description: trigger event polarity. These bits define the polarity of the selected trigger event input defined by TRIGSEL[5:0]. + bit_offset: 24 + bit_size: 2 + enum: CH_TR2_TRIGPOL + - name: TCEM + description: 'transfer complete event mode. These bits define the transfer granularity for the transfer complete and half transfer complete events generation. Note: If the initial LLI0 data transfer is null/void (directly programmed by the internal register file with CH[x].BR1.BNDT[15:0] = 0), then neither the complete transfer event nor the half transfer event is generated. Note: If the initial LLI0 data transfer is null/void (directly programmed by the internal register file with CH[x].BR1.BNDT[15:0] = 0), then neither the complete transfer event nor the half transfer event is generated. Note: If the initial LLI0 data transfer is null/void (i.e. directly programmed by the internal register file with CH[x].BR1.BNDT[15:0] =0 ), then the half transfer event is not generated, and the transfer complete event is generated when is completed the loading of the LLI1.' + bit_offset: 30 + bit_size: 2 + enum: CH_TR2_TCEM fieldset/CH_TR3: description: GPDMA channel 14 transfer register 3 fields: - - name: SAO - description: "source address offset increment. The source address, pointed by CH[x].SAR, is incremented or decremented (depending on CH[x].BR1.SDEC) by this offset SAO[12:0] for each programmed source burst. This offset is not including and is added to the programmed burst size when the completed burst is addressed in incremented mode (CH[x].TR1.SINC = 1). Note: A source address offset must be aligned with the programmed data width of a source burst (SAO[2:0] versus CH[x].TR1.SDW_LOG2[1:0]). Else a user setting error is reported and none transfer is issued. When the source block size is not a multiple of the destination burst size and is a multiple of the source data width, then the last programmed source burst is not completed and is internally shorten to match the block size. In this case, the additional CH[x].TR3.SAO[12:0] is not applied." - bit_offset: 0 - bit_size: 13 - - name: DAO - description: "destination address offset increment. The destination address, pointed by CH[x].DAR, is incremented or decremented (depending on CH[x].BR1.DDEC) by this offset DAO[12:0] for each programmed destination burst. This offset is not including and is added to the programmed burst size when the completed burst is addressed in incremented mode (CH[x].TR1.DINC = 1). Note: A destination address offset must be aligned with the programmed data width of a destination burst (DAO[2:0] versus CH[x].TR1.DDW[1:0]). Else, a user setting error is reported and no transfer is issued." - bit_offset: 16 - bit_size: 13 + - name: SAO + description: 'source address offset increment. The source address, pointed by CH[x].SAR, is incremented or decremented (depending on CH[x].BR1.SDEC) by this offset SAO[12:0] for each programmed source burst. This offset is not including and is added to the programmed burst size when the completed burst is addressed in incremented mode (CH[x].TR1.SINC = 1). Note: A source address offset must be aligned with the programmed data width of a source burst (SAO[2:0] versus CH[x].TR1.SDW_LOG2[1:0]). Else a user setting error is reported and none transfer is issued. When the source block size is not a multiple of the destination burst size and is a multiple of the source data width, then the last programmed source burst is not completed and is internally shorten to match the block size. In this case, the additional CH[x].TR3.SAO[12:0] is not applied.' + bit_offset: 0 + bit_size: 13 + - name: DAO + description: 'destination address offset increment. The destination address, pointed by CH[x].DAR, is incremented or decremented (depending on CH[x].BR1.DDEC) by this offset DAO[12:0] for each programmed destination burst. This offset is not including and is added to the programmed burst size when the completed burst is addressed in incremented mode (CH[x].TR1.DINC = 1). Note: A destination address offset must be aligned with the programmed data width of a destination burst (DAO[2:0] versus CH[x].TR1.DDW[1:0]). Else, a user setting error is reported and no transfer is issued.' + bit_offset: 16 + bit_size: 13 fieldset/MISR: description: GPDMA secure masked interrupt status register fields: - - name: MIS - description: MIS0 - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: MIS + description: MIS0 + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/PRIVCFGR: description: GPDMA privileged configuration register fields: - - name: PRIV - description: PRIV0 - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: PRIV + description: PRIV0 + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/RCFGLOCKR: description: GPDMA configuration lock register fields: - - name: LOCK - description: LOCK0 - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: LOCK + description: LOCK0 + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/SECCFGR: description: GPDMA secure configuration register fields: - - name: SEC - description: SEC0 - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: SEC + description: SEC0 + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 enum/CH_BR1_DEC: bit_size: 1 variants: - - name: Add - description: The address is incremented by the programmed offset. - value: 0 - - name: Subtract - description: The address is decremented by the programmed offset. - value: 1 + - name: Add + description: The address is incremented by the programmed offset. + value: 0 + - name: Subtract + description: The address is decremented by the programmed offset. + value: 1 enum/CH_CR_LAP: bit_size: 1 variants: - - name: Port0 - description: port 0 (AHB) allocated - value: 0 - - name: Port1 - description: port 1 (AHB) allocated - value: 1 + - name: Port0 + description: port 0 (AHB) allocated + value: 0 + - name: Port1 + description: port 1 (AHB) allocated + value: 1 enum/CH_CR_LSM: bit_size: 1 variants: - - name: RunToCompletion - description: "channel executed for the full linked-list and completed at the end of the last LLI (CH[x].LLR = 0). The 16 low-significant bits of the link address are null (LA[15:0] = 0) and all the update bits are null (UT1 =UB1 = UT2 = USA = UDA = ULL = 0 and UT3 = UB2 = 0 if present). Then CH[x].BR1.BNDT[15:0] = 0 and CH[x].BR1.BRC[10:0] = 0 if present." - value: 0 - - name: LinkStep - description: channel executed once for the current LLI - value: 1 + - name: RunToCompletion + description: channel executed for the full linked-list and completed at the end of the last LLI (CH[x].LLR = 0). The 16 low-significant bits of the link address are null (LA[15:0] = 0) and all the update bits are null (UT1 =UB1 = UT2 = USA = UDA = ULL = 0 and UT3 = UB2 = 0 if present). Then CH[x].BR1.BNDT[15:0] = 0 and CH[x].BR1.BRC[10:0] = 0 if present. + value: 0 + - name: LinkStep + description: channel executed once for the current LLI + value: 1 enum/CH_CR_PRIO: bit_size: 2 variants: - - name: LowWithLowhWeight - description: "low priority, low weight" - value: 0 - - name: LowWithMidWeight - description: "low priority, mid weight" - value: 1 - - name: LowWithHighWeight - description: "low priority, high weight" - value: 2 - - name: High - description: high priority - value: 3 + - name: LowWithLowhWeight + description: low priority, low weight + value: 0 + - name: LowWithMidWeight + description: low priority, mid weight + value: 1 + - name: LowWithHighWeight + description: low priority, high weight + value: 2 + - name: High + description: high priority + value: 3 enum/CH_TR1_AP: bit_size: 1 variants: - - name: Port0 - description: port 0 (AHB) allocated - value: 0 - - name: Port1 - description: port 1 (AHB) allocated - value: 1 + - name: Port0 + description: port 0 (AHB) allocated + value: 0 + - name: Port1 + description: port 1 (AHB) allocated + value: 1 enum/CH_TR1_DW: bit_size: 2 variants: - - name: Byte - description: byte - value: 0 - - name: HalfWord - description: half-word (2 bytes) - value: 1 - - name: Word - description: word (4 bytes) - value: 2 + - name: Byte + description: byte + value: 0 + - name: HalfWord + description: half-word (2 bytes) + value: 1 + - name: Word + description: word (4 bytes) + value: 2 enum/CH_TR1_PAM: bit_size: 2 variants: - - name: ZeroExtendOrLeftTruncate - description: "If destination is wider: source data is transferred as right aligned, padded with 0s up to the destination data width\nIf source is wider: source data is transferred as right aligned, left-truncated down to the destination data width" - value: 0 - - name: SignExtendOrRightTruncate - description: "If destination is wider: source data is transferred as right aligned, sign extended up to the destination data width\nIf source is wider: source data is transferred as left-aligned, right-truncated down to the destination data width" - value: 1 - - name: Pack - description: "source data is FIFO queued and packed/unpacked at the destination data width, to be transferred in a left (LSB) to right (MSB) order (named little endian) to the destination" - value: 2 + - name: ZeroExtendOrLeftTruncate + description: |- + If destination is wider: source data is transferred as right aligned, padded with 0s up to the destination data width + If source is wider: source data is transferred as right aligned, left-truncated down to the destination data width + value: 0 + - name: SignExtendOrRightTruncate + description: |- + If destination is wider: source data is transferred as right aligned, sign extended up to the destination data width + If source is wider: source data is transferred as left-aligned, right-truncated down to the destination data width + value: 1 + - name: Pack + description: source data is FIFO queued and packed/unpacked at the destination data width, to be transferred in a left (LSB) to right (MSB) order (named little endian) to the destination + value: 2 enum/CH_TR2_BREQ: bit_size: 1 variants: - - name: Burst - description: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a burst level. - value: 0 - - name: Block - description: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a block level (see ). - value: 1 + - name: Burst + description: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a burst level. + value: 0 + - name: Block + description: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a block level (see ). + value: 1 enum/CH_TR2_DREQ: bit_size: 1 variants: - - name: SourcePeripheral - description: selected hardware request driven by a source peripheral (request signal taken into account by the GPDMA transfer scheduler over the source/read port) - value: 0 - - name: DestinationPeripheral - description: selected hardware request driven by a destination peripheral (request signal taken into account by the GPDMA transfer scheduler over the destination/write port) - value: 1 + - name: SourcePeripheral + description: selected hardware request driven by a source peripheral (request signal taken into account by the GPDMA transfer scheduler over the source/read port) + value: 0 + - name: DestinationPeripheral + description: selected hardware request driven by a destination peripheral (request signal taken into account by the GPDMA transfer scheduler over the destination/write port) + value: 1 enum/CH_TR2_SWREQ: bit_size: 1 variants: - - name: Hardware - description: "no software request. The selected hardware request REQSEL[6:0] is taken into account." - value: 0 - - name: Software - description: "software request for a memory-to-memory transfer. The default selected hardware request as per REQSEL[6:0] is ignored." - value: 1 + - name: Hardware + description: no software request. The selected hardware request REQSEL[6:0] is taken into account. + value: 0 + - name: Software + description: software request for a memory-to-memory transfer. The default selected hardware request as per REQSEL[6:0] is ignored. + value: 1 enum/CH_TR2_TCEM: bit_size: 2 variants: - - name: EachBlock - description: "at block level (when CH[x].BR1.BNDT[15:0] = 0): the complete (and the half) transfer event is generated at the (respectively half of the) end of a block." - value: 0 - - name: Each2DBlock - description: "channel x = 0 to 11, same as 00; channel x=12 to 15, at 2D/repeated block level (when CH[x].BR1.BRC[10:0] = 0 and CH[x].BR1.BNDT[15:0] = 0), the complete (and the half) transfer event is generated at the end (respectively half of the end) of the 2D/repeated block." - value: 1 - - name: EachLinkedListItem - description: "at LLI level: the complete transfer event is generated at the end of the LLI transfer, including the update of the LLI if any. The half transfer event is generated at the half of the LLI data transfer (the LLI data transfer being a block transfer or a 2D/repeated block transfer for channel x = 12 to 15), if any data transfer." - value: 2 - - name: LastLinkedListItem - description: "at channel level: the complete transfer event is generated at the end of the last LLI transfer. The half transfer event is generated at the half of the data transfer of the last LLI. The last LLI updates the link address CH[x].LLR.LA[15:2] to zero and clears all the CH[x].LLR update bits (UT1, UT2, UB1, USA, UDA and ULL, plus UT3 and UB2 if present). If the channel transfer is continuous/infinite, no event is generated." - value: 3 + - name: EachBlock + description: 'at block level (when CH[x].BR1.BNDT[15:0] = 0): the complete (and the half) transfer event is generated at the (respectively half of the) end of a block.' + value: 0 + - name: Each2DBlock + description: channel x = 0 to 11, same as 00; channel x=12 to 15, at 2D/repeated block level (when CH[x].BR1.BRC[10:0] = 0 and CH[x].BR1.BNDT[15:0] = 0), the complete (and the half) transfer event is generated at the end (respectively half of the end) of the 2D/repeated block. + value: 1 + - name: EachLinkedListItem + description: 'at LLI level: the complete transfer event is generated at the end of the LLI transfer, including the update of the LLI if any. The half transfer event is generated at the half of the LLI data transfer (the LLI data transfer being a block transfer or a 2D/repeated block transfer for channel x = 12 to 15), if any data transfer.' + value: 2 + - name: LastLinkedListItem + description: 'at channel level: the complete transfer event is generated at the end of the last LLI transfer. The half transfer event is generated at the half of the data transfer of the last LLI. The last LLI updates the link address CH[x].LLR.LA[15:2] to zero and clears all the CH[x].LLR update bits (UT1, UT2, UB1, USA, UDA and ULL, plus UT3 and UB2 if present). If the channel transfer is continuous/infinite, no event is generated.' + value: 3 enum/CH_TR2_TRIGM: bit_size: 2 variants: - - name: Block - description: "at block level: the first burst read of each block transfer is conditioned by one hit trigger (channel x = 12 to 15, for each block if a 2D/repeated block is configured with CH[x].BR1.BRC[10:0] ≠ 0)." - value: 0 - - name: 2DBlock - description: "channel x = 0 to 11, same as 00; channel x=12 to 15, at 2D/repeated block level, the" - value: 1 - - name: LinkedListItem - description: "at link level: a LLI link transfer is conditioned by one hit trigger. The LLI data transfer (if any) is not conditioned." - value: 2 - - name: Burst - description: "at programmed burst level: If SWREQ = 1, each programmed burst read is conditioned by one hit trigger. If SWREQ = 0, each programmed burst that is requested by the selected peripheral, is conditioned by one hit trigger." - value: 3 + - name: Block + description: 'at block level: the first burst read of each block transfer is conditioned by one hit trigger (channel x = 12 to 15, for each block if a 2D/repeated block is configured with CH[x].BR1.BRC[10:0] ≠ 0).' + value: 0 + - name: 2DBlock + description: channel x = 0 to 11, same as 00; channel x=12 to 15, at 2D/repeated block level, the + value: 1 + - name: LinkedListItem + description: 'at link level: a LLI link transfer is conditioned by one hit trigger. The LLI data transfer (if any) is not conditioned.' + value: 2 + - name: Burst + description: 'at programmed burst level: If SWREQ = 1, each programmed burst read is conditioned by one hit trigger. If SWREQ = 0, each programmed burst that is requested by the selected peripheral, is conditioned by one hit trigger.' + value: 3 enum/CH_TR2_TRIGPOL: bit_size: 2 variants: - - name: None - description: no trigger (masked trigger event) - value: 0 - - name: RisingEdge - description: trigger on the rising edge - value: 1 - - name: FallingEdge - description: trigger on the falling edge - value: 2 - - name: NoneAlt - description: same as 00 - value: 3 + - name: None + description: no trigger (masked trigger event) + value: 0 + - name: RisingEdge + description: trigger on the rising edge + value: 1 + - name: FallingEdge + description: trigger on the falling edge + value: 2 + - name: NoneAlt + description: same as 00 + value: 3 diff --git a/data/registers/gpio_v1.yaml b/data/registers/gpio_v1.yaml index 37eabef..d0d2cb7 100644 --- a/data/registers/gpio_v1.yaml +++ b/data/registers/gpio_v1.yaml @@ -1,204 +1,203 @@ ---- block/GPIO: description: General purpose I/O items: - - name: CR - description: Port configuration register low (GPIOn_CRL) - array: - len: 2 - stride: 4 - byte_offset: 0 - fieldset: CR - - name: IDR - description: Port input data register (GPIOn_IDR) - byte_offset: 8 - access: Read - fieldset: IDR - - name: ODR - description: Port output data register (GPIOn_ODR) - byte_offset: 12 - fieldset: ODR - - name: BSRR - description: Port bit set/reset register (GPIOn_BSRR) - byte_offset: 16 - access: Write - fieldset: BSRR - - name: BRR - description: Port bit reset register (GPIOn_BRR) - byte_offset: 20 - access: Write - fieldset: BRR - - name: LCKR - description: Port configuration lock register - byte_offset: 24 - fieldset: LCKR + - name: CR + description: Port configuration register low (GPIOn_CRL) + array: + len: 2 + stride: 4 + byte_offset: 0 + fieldset: CR + - name: IDR + description: Port input data register (GPIOn_IDR) + byte_offset: 8 + access: Read + fieldset: IDR + - name: ODR + description: Port output data register (GPIOn_ODR) + byte_offset: 12 + fieldset: ODR + - name: BSRR + description: Port bit set/reset register (GPIOn_BSRR) + byte_offset: 16 + access: Write + fieldset: BSRR + - name: BRR + description: Port bit reset register (GPIOn_BRR) + byte_offset: 20 + access: Write + fieldset: BRR + - name: LCKR + description: Port configuration lock register + byte_offset: 24 + fieldset: LCKR fieldset/BRR: description: Port bit reset register (GPIOn_BRR) fields: - - name: BR - description: Reset bit - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: BR + description: Reset bit + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/BSRR: description: Port bit set/reset register (GPIOn_BSRR) fields: - - name: BS - description: Set bit - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - - name: BR - description: Reset bit - bit_offset: 16 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: BS + description: Set bit + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + - name: BR + description: Reset bit + bit_offset: 16 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/CR: description: Port configuration register (GPIOn_CRx) fields: - - name: MODE - description: Port n mode bits - bit_offset: 0 - bit_size: 2 - array: - len: 8 - stride: 4 - enum: MODE - - name: CNF_IN - description: "Port n configuration bits, for input mode" - bit_offset: 2 - bit_size: 2 - array: - len: 8 - stride: 4 - enum: CNF_IN - - name: CNF_OUT - description: "Port n configuration bits, for output mode" - bit_offset: 2 - bit_size: 2 - array: - len: 8 - stride: 4 - enum: CNF_OUT + - name: MODE + description: Port n mode bits + bit_offset: 0 + bit_size: 2 + array: + len: 8 + stride: 4 + enum: MODE + - name: CNF_IN + description: Port n configuration bits, for input mode + bit_offset: 2 + bit_size: 2 + array: + len: 8 + stride: 4 + enum: CNF_IN + - name: CNF_OUT + description: Port n configuration bits, for output mode + bit_offset: 2 + bit_size: 2 + array: + len: 8 + stride: 4 + enum: CNF_OUT fieldset/IDR: description: Port input data register (GPIOn_IDR) fields: - - name: IDR - description: Port input data - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: IDR + - name: IDR + description: Port input data + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: IDR fieldset/LCKR: description: Port configuration lock register fields: - - name: LCK - description: Port A Lock bit - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: LCK - - name: LCKK - description: Lock key - bit_offset: 16 - bit_size: 1 - enum: LCKK + - name: LCK + description: Port A Lock bit + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: LCK + - name: LCKK + description: Lock key + bit_offset: 16 + bit_size: 1 + enum: LCKK fieldset/ODR: description: Port output data register (GPIOn_ODR) fields: - - name: ODR - description: Port output data - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: ODR + - name: ODR + description: Port output data + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: ODR enum/CNF_IN: bit_size: 2 variants: - - name: Analog - description: Analog mode - value: 0 - - name: Floating - description: Floating input (reset state) - value: 1 - - name: Pull - description: Input with pull-up/pull-down - value: 2 + - name: Analog + description: Analog mode + value: 0 + - name: Floating + description: Floating input (reset state) + value: 1 + - name: Pull + description: Input with pull-up/pull-down + value: 2 enum/CNF_OUT: bit_size: 2 variants: - - name: PushPull - description: Push-Pull mode - value: 0 - - name: OpenDrain - description: Open Drain-Mode - value: 1 - - name: AltPushPull - description: Alternate Function Push-Pull Mode - value: 2 - - name: AltOpenDrain - description: Alternate Function Open-Drain Mode - value: 3 + - name: PushPull + description: Push-Pull mode + value: 0 + - name: OpenDrain + description: Open Drain-Mode + value: 1 + - name: AltPushPull + description: Alternate Function Push-Pull Mode + value: 2 + - name: AltOpenDrain + description: Alternate Function Open-Drain Mode + value: 3 enum/IDR: bit_size: 1 variants: - - name: Low - description: Input is logic low - value: 0 - - name: High - description: Input is logic high - value: 1 + - name: Low + description: Input is logic low + value: 0 + - name: High + description: Input is logic high + value: 1 enum/LCK: bit_size: 1 variants: - - name: Unlocked - description: Port configuration not locked - value: 0 - - name: Locked - description: Port configuration locked - value: 1 + - name: Unlocked + description: Port configuration not locked + value: 0 + - name: Locked + description: Port configuration locked + value: 1 enum/LCKK: bit_size: 1 variants: - - name: NotActive - description: Port configuration lock key not active - value: 0 - - name: Active - description: Port configuration lock key active - value: 1 + - name: NotActive + description: Port configuration lock key not active + value: 0 + - name: Active + description: Port configuration lock key active + value: 1 enum/MODE: bit_size: 2 variants: - - name: Input - description: Input mode (reset state) - value: 0 - - name: Output10Mhz - description: Output mode 10 MHz - value: 1 - - name: Output2Mhz - description: Output mode 2 MHz - value: 2 - - name: Output50Mhz - description: Output mode 50 MHz - value: 3 + - name: Input + description: Input mode (reset state) + value: 0 + - name: Output10Mhz + description: Output mode 10 MHz + value: 1 + - name: Output2Mhz + description: Output mode 2 MHz + value: 2 + - name: Output50Mhz + description: Output mode 50 MHz + value: 3 enum/ODR: bit_size: 1 variants: - - name: Low - description: Set output to logic low - value: 0 - - name: High - description: Set output to logic high - value: 1 + - name: Low + description: Set output to logic low + value: 0 + - name: High + description: Set output to logic high + value: 1 diff --git a/data/registers/gpio_v2.yaml b/data/registers/gpio_v2.yaml index d8ef09c..fe773ee 100644 --- a/data/registers/gpio_v2.yaml +++ b/data/registers/gpio_v2.yaml @@ -1,241 +1,240 @@ ---- block/GPIO: description: General-purpose I/Os items: - - name: MODER - description: GPIO port mode register - byte_offset: 0 - fieldset: MODER - - name: OTYPER - description: GPIO port output type register - byte_offset: 4 - fieldset: OTYPER - - name: OSPEEDR - description: GPIO port output speed register - byte_offset: 8 - fieldset: OSPEEDR - - name: PUPDR - description: GPIO port pull-up/pull-down register - byte_offset: 12 - fieldset: PUPDR - - name: IDR - description: GPIO port input data register - byte_offset: 16 - access: Read - fieldset: IDR - - name: ODR - description: GPIO port output data register - byte_offset: 20 - fieldset: ODR - - name: BSRR - description: GPIO port bit set/reset register - byte_offset: 24 - access: Write - fieldset: BSRR - - name: LCKR - description: GPIO port configuration lock register - byte_offset: 28 - fieldset: LCKR - - name: AFR - description: "GPIO alternate function registers. The register described in the datasheet as AFRL is index 0 in this array, and AFRH is index 1. Note that when operating on AFRH, you need to subtract 8 from any operations on the field array it contains -- the alternate function for pin 9 is at index 1, for instance." - array: - len: 2 - stride: 4 - byte_offset: 32 - fieldset: AFR + - name: MODER + description: GPIO port mode register + byte_offset: 0 + fieldset: MODER + - name: OTYPER + description: GPIO port output type register + byte_offset: 4 + fieldset: OTYPER + - name: OSPEEDR + description: GPIO port output speed register + byte_offset: 8 + fieldset: OSPEEDR + - name: PUPDR + description: GPIO port pull-up/pull-down register + byte_offset: 12 + fieldset: PUPDR + - name: IDR + description: GPIO port input data register + byte_offset: 16 + access: Read + fieldset: IDR + - name: ODR + description: GPIO port output data register + byte_offset: 20 + fieldset: ODR + - name: BSRR + description: GPIO port bit set/reset register + byte_offset: 24 + access: Write + fieldset: BSRR + - name: LCKR + description: GPIO port configuration lock register + byte_offset: 28 + fieldset: LCKR + - name: AFR + description: GPIO alternate function registers. The register described in the datasheet as AFRL is index 0 in this array, and AFRH is index 1. Note that when operating on AFRH, you need to subtract 8 from any operations on the field array it contains -- the alternate function for pin 9 is at index 1, for instance. + array: + len: 2 + stride: 4 + byte_offset: 32 + fieldset: AFR fieldset/AFR: - description: "GPIO alternate function register. This contains an array of 8 fields, which correspond to pins 0-7 of the port (for AFRL) or pins 8-15 of the port (for AFRH)." + description: GPIO alternate function register. This contains an array of 8 fields, which correspond to pins 0-7 of the port (for AFRL) or pins 8-15 of the port (for AFRH). fields: - - name: AFR - description: Alternate function selection for one of the pins controlled by this register (0-7). - bit_offset: 0 - bit_size: 4 - array: - len: 8 - stride: 4 + - name: AFR + description: Alternate function selection for one of the pins controlled by this register (0-7). + bit_offset: 0 + bit_size: 4 + array: + len: 8 + stride: 4 fieldset/BSRR: description: GPIO port bit set/reset register fields: - - name: BS - description: Port x set bit y (y= 0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - - name: BR - description: Port x set bit y (y= 0..15) - bit_offset: 16 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: BS + description: Port x set bit y (y= 0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + - name: BR + description: Port x set bit y (y= 0..15) + bit_offset: 16 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/IDR: description: GPIO port input data register fields: - - name: IDR - description: Port input data (y = 0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: IDR + - name: IDR + description: Port input data (y = 0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: IDR fieldset/LCKR: description: GPIO port configuration lock register fields: - - name: LCK - description: Port x lock bit y (y= 0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: LCK - - name: LCKK - description: Port x lock bit y (y= 0..15) - bit_offset: 16 - bit_size: 1 - enum: LCKK + - name: LCK + description: Port x lock bit y (y= 0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: LCK + - name: LCKK + description: Port x lock bit y (y= 0..15) + bit_offset: 16 + bit_size: 1 + enum: LCKK fieldset/MODER: description: GPIO port mode register fields: - - name: MODER - description: Port x configuration bits (y = 0..15) - bit_offset: 0 - bit_size: 2 - array: - len: 16 - stride: 2 - enum: MODER + - name: MODER + description: Port x configuration bits (y = 0..15) + bit_offset: 0 + bit_size: 2 + array: + len: 16 + stride: 2 + enum: MODER fieldset/ODR: description: GPIO port output data register fields: - - name: ODR - description: Port output data (y = 0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: ODR + - name: ODR + description: Port output data (y = 0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: ODR fieldset/OSPEEDR: description: GPIO port output speed register fields: - - name: OSPEEDR - description: Port x configuration bits (y = 0..15) - bit_offset: 0 - bit_size: 2 - array: - len: 16 - stride: 2 - enum: OSPEEDR + - name: OSPEEDR + description: Port x configuration bits (y = 0..15) + bit_offset: 0 + bit_size: 2 + array: + len: 16 + stride: 2 + enum: OSPEEDR fieldset/OTYPER: description: GPIO port output type register fields: - - name: OT - description: Port x configuration bits (y = 0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 - enum: OT + - name: OT + description: Port x configuration bits (y = 0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 + enum: OT fieldset/PUPDR: description: GPIO port pull-up/pull-down register fields: - - name: PUPDR - description: Port x configuration bits (y = 0..15) - bit_offset: 0 - bit_size: 2 - array: - len: 16 - stride: 2 - enum: PUPDR + - name: PUPDR + description: Port x configuration bits (y = 0..15) + bit_offset: 0 + bit_size: 2 + array: + len: 16 + stride: 2 + enum: PUPDR enum/IDR: bit_size: 1 variants: - - name: Low - description: Input is logic low - value: 0 - - name: High - description: Input is logic high - value: 1 + - name: Low + description: Input is logic low + value: 0 + - name: High + description: Input is logic high + value: 1 enum/LCK: bit_size: 1 variants: - - name: Unlocked - description: Port configuration not locked - value: 0 - - name: Locked - description: Port configuration locked - value: 1 + - name: Unlocked + description: Port configuration not locked + value: 0 + - name: Locked + description: Port configuration locked + value: 1 enum/LCKK: bit_size: 1 variants: - - name: NotActive - description: Port configuration lock key not active - value: 0 - - name: Active - description: Port configuration lock key active - value: 1 + - name: NotActive + description: Port configuration lock key not active + value: 0 + - name: Active + description: Port configuration lock key active + value: 1 enum/MODER: bit_size: 2 variants: - - name: Input - description: Input mode (reset state) - value: 0 - - name: Output - description: General purpose output mode - value: 1 - - name: Alternate - description: Alternate function mode - value: 2 - - name: Analog - description: Analog mode - value: 3 + - name: Input + description: Input mode (reset state) + value: 0 + - name: Output + description: General purpose output mode + value: 1 + - name: Alternate + description: Alternate function mode + value: 2 + - name: Analog + description: Analog mode + value: 3 enum/ODR: bit_size: 1 variants: - - name: Low - description: Set output to logic low - value: 0 - - name: High - description: Set output to logic high - value: 1 + - name: Low + description: Set output to logic low + value: 0 + - name: High + description: Set output to logic high + value: 1 enum/OSPEEDR: bit_size: 2 variants: - - name: LowSpeed - description: Low speed - value: 0 - - name: MediumSpeed - description: Medium speed - value: 1 - - name: HighSpeed - description: High speed - value: 2 - - name: VeryHighSpeed - description: Very high speed - value: 3 + - name: LowSpeed + description: Low speed + value: 0 + - name: MediumSpeed + description: Medium speed + value: 1 + - name: HighSpeed + description: High speed + value: 2 + - name: VeryHighSpeed + description: Very high speed + value: 3 enum/OT: bit_size: 1 variants: - - name: PushPull - description: Output push-pull (reset state) - value: 0 - - name: OpenDrain - description: Output open-drain - value: 1 + - name: PushPull + description: Output push-pull (reset state) + value: 0 + - name: OpenDrain + description: Output open-drain + value: 1 enum/PUPDR: bit_size: 2 variants: - - name: Floating - description: "No pull-up, pull-down" - value: 0 - - name: PullUp - description: Pull-up - value: 1 - - name: PullDown - description: Pull-down - value: 2 + - name: Floating + description: No pull-up, pull-down + value: 0 + - name: PullUp + description: Pull-up + value: 1 + - name: PullDown + description: Pull-down + value: 2 diff --git a/data/registers/hrtim_v1.yaml b/data/registers/hrtim_v1.yaml index 0bc8270..e521c50 100644 --- a/data/registers/hrtim_v1.yaml +++ b/data/registers/hrtim_v1.yaml @@ -1,2345 +1,2343 @@ ---- block/HRTIM: - description: "High Resolution Timer" + description: High Resolution Timer items: - - name: MCR - description: Master Timer Control Register - byte_offset: 0 - fieldset: MCR - - name: MISR - description: Master Timer Interrupt Status Register - byte_offset: 4 - access: Read - fieldset: MISR - - name: MICR - description: Master Timer Interrupt Clear Register - byte_offset: 8 - access: Write - fieldset: MICR - - name: MDIER - description: Master Timer DMA / Interrupt Enable Register - byte_offset: 12 - fieldset: MDIER - - name: MCNTR - description: Master Timer Counter Register - byte_offset: 16 - fieldset: MCNTR - - name: MPER - description: Master Timer Period Register - byte_offset: 20 - fieldset: MPER - - name: MREP - description: Master Timer Repetition Register - byte_offset: 24 - fieldset: MREP - - name: MCMP - description: Master Timer Compare X Register - array: - offsets: - - 0 - - 8 - - 12 - - 16 - byte_offset: 28 - fieldset: MCMPX - - name: TIM - description: "High Resolution Timer: Timing Unit" - array: - len: 5 - stride: 128 - byte_offset: 128 - block: HRTIM_TIMX - - name: CR1 - description: "High Resolution Timer: Control Register 1" - byte_offset: 0x380 - fieldset: HRTIM_CR1 - - name: CR2 - description: "High Resolution Timer: Control Register 2" - byte_offset: 0x384 - fieldset: HRTIM_CR2 - - name: ISR - description: "High Resolution Timer: Interrupt Status Register" - byte_offset: 0x388 - access: Read - fieldset: HRTIM_ISR - - name: ICR - description: "High Resolution Timer: Interrupt Clear Register" - byte_offset: 0x38c - access: Write - fieldset: HRTIM_ICR - - name: IER - description: "High Resolution Timer: Interrupt Enable Register" - byte_offset: 0x390 - fieldset: HRTIM_IER - - name: OENR - description: "High Resolution Timer: Output Enable Register" - byte_offset: 0x394 - fieldset: HRTIM_OENR - - name: ODISR - description: "High Resolution Timer: Output Disable Register" - byte_offset: 0x398 - fieldset: HRTIM_ODISR - - name: ODSR - description: "High Resolution Timer: Output Disable Status Register" - byte_offset: 0x39c - fieldset: HRTIM_ODSR - - name: BMCR - description: "High Resolution Timer: Burst Mode Control Register" - byte_offset: 0x3a0 - fieldset: HRTIM_BMCR - - name: BMTRGR - description: "High Resolution Timer: Burst Mode Trigger Register" - byte_offset: 0x3a4 - fieldset: HRTIM_BMTRGR - - name: BMCMPR - description: "High Resolution Timer: Burst Mode Compare Register" - byte_offset: 0x3a8 - fieldset: HRTIM_BMCMPR - - name: BMPER - description: "High Resolution Timer: Burst Mode Period Register" - byte_offset: 0x3ac - fieldset: HRTIM_BMPER - - name: EECR1 - description: "High Resolution Timer: External Event Control Register 1" - byte_offset: 0x3b0 - fieldset: HRTIM_EECR1 - - name: EECR2 - description: "High Resolution Timer: External Event Control Register 2" - byte_offset: 0x3b4 - fieldset: HRTIM_EECR2 - - name: EECR3 - description: "High Resolution Timer: External Event Control Register 3" - byte_offset: 0x3b8 - fieldset: HRTIM_EECR3 - - name: ADC1R - description: "High Resolution Timer: ADC Trigger [1, 3] Register" - byte_offset: 0x3bc - fieldset: HRTIM_ADC1R - array: - offsets: - - 0 - - 8 - - name: ADC2R - description: "High Resolution Timer: ADC Trigger [2, 4] Register" - byte_offset: 0x3c0 - fieldset: HRTIM_ADC2R - array: - offsets: - - 0 - - 8 - - name: DLLCR - description: "High Resolution Timer: DLL Control Register" - byte_offset: 0x3cc - fieldset: HRTIM_DLLCR - - name: FLTINR1 - description: "High Resolution Timer: Fault Input Register 1" - byte_offset: 0x3d0 - fieldset: HRTIM_FLTINR1 - - name: FLTINR2 - description: "High Resolution Timer: Fault Input Register 2" - byte_offset: 0x3d0 - fieldset: HRTIM_FLTINR2 - - name: BDMUPR - description: "High Resolution Timer: Burst DMA Master timer update Register" - byte_offset: 0x3d8 - fieldset: HRTIM_BDMUPR - - name: BDTUPR - description: "High Resolution Timer: Burst DMA Timer X update Register" - byte_offset: 0x3dc - fieldset: HRTIM_BDTUPR - array: - len: 5 - stride: 4 - - name: BDMADR - description: "High Resolution Timer: Burst DMA Data Register" - byte_offset: 0x3f0 - access: Write - fieldset: HRTIM_BDMADR + - name: MCR + description: Master Timer Control Register + byte_offset: 0 + fieldset: MCR + - name: MISR + description: Master Timer Interrupt Status Register + byte_offset: 4 + access: Read + fieldset: MISR + - name: MICR + description: Master Timer Interrupt Clear Register + byte_offset: 8 + access: Write + fieldset: MICR + - name: MDIER + description: Master Timer DMA / Interrupt Enable Register + byte_offset: 12 + fieldset: MDIER + - name: MCNTR + description: Master Timer Counter Register + byte_offset: 16 + fieldset: MCNTR + - name: MPER + description: Master Timer Period Register + byte_offset: 20 + fieldset: MPER + - name: MREP + description: Master Timer Repetition Register + byte_offset: 24 + fieldset: MREP + - name: MCMP + description: Master Timer Compare X Register + array: + offsets: + - 0 + - 8 + - 12 + - 16 + byte_offset: 28 + fieldset: MCMPX + - name: TIM + description: 'High Resolution Timer: Timing Unit' + array: + len: 5 + stride: 128 + byte_offset: 128 + block: HRTIM_TIMX + - name: CR1 + description: 'High Resolution Timer: Control Register 1' + byte_offset: 896 + fieldset: HRTIM_CR1 + - name: CR2 + description: 'High Resolution Timer: Control Register 2' + byte_offset: 900 + fieldset: HRTIM_CR2 + - name: ISR + description: 'High Resolution Timer: Interrupt Status Register' + byte_offset: 904 + access: Read + fieldset: HRTIM_ISR + - name: ICR + description: 'High Resolution Timer: Interrupt Clear Register' + byte_offset: 908 + access: Write + fieldset: HRTIM_ICR + - name: IER + description: 'High Resolution Timer: Interrupt Enable Register' + byte_offset: 912 + fieldset: HRTIM_IER + - name: OENR + description: 'High Resolution Timer: Output Enable Register' + byte_offset: 916 + fieldset: HRTIM_OENR + - name: ODISR + description: 'High Resolution Timer: Output Disable Register' + byte_offset: 920 + fieldset: HRTIM_ODISR + - name: ODSR + description: 'High Resolution Timer: Output Disable Status Register' + byte_offset: 924 + fieldset: HRTIM_ODSR + - name: BMCR + description: 'High Resolution Timer: Burst Mode Control Register' + byte_offset: 928 + fieldset: HRTIM_BMCR + - name: BMTRGR + description: 'High Resolution Timer: Burst Mode Trigger Register' + byte_offset: 932 + fieldset: HRTIM_BMTRGR + - name: BMCMPR + description: 'High Resolution Timer: Burst Mode Compare Register' + byte_offset: 936 + fieldset: HRTIM_BMCMPR + - name: BMPER + description: 'High Resolution Timer: Burst Mode Period Register' + byte_offset: 940 + fieldset: HRTIM_BMPER + - name: EECR1 + description: 'High Resolution Timer: External Event Control Register 1' + byte_offset: 944 + fieldset: HRTIM_EECR1 + - name: EECR2 + description: 'High Resolution Timer: External Event Control Register 2' + byte_offset: 948 + fieldset: HRTIM_EECR2 + - name: EECR3 + description: 'High Resolution Timer: External Event Control Register 3' + byte_offset: 952 + fieldset: HRTIM_EECR3 + - name: ADC1R + description: 'High Resolution Timer: ADC Trigger [1, 3] Register' + array: + offsets: + - 0 + - 8 + byte_offset: 956 + fieldset: HRTIM_ADC1R + - name: ADC2R + description: 'High Resolution Timer: ADC Trigger [2, 4] Register' + array: + offsets: + - 0 + - 8 + byte_offset: 960 + fieldset: HRTIM_ADC2R + - name: DLLCR + description: 'High Resolution Timer: DLL Control Register' + byte_offset: 972 + fieldset: HRTIM_DLLCR + - name: FLTINR1 + description: 'High Resolution Timer: Fault Input Register 1' + byte_offset: 976 + fieldset: HRTIM_FLTINR1 + - name: FLTINR2 + description: 'High Resolution Timer: Fault Input Register 2' + byte_offset: 976 + fieldset: HRTIM_FLTINR2 + - name: BDMUPR + description: 'High Resolution Timer: Burst DMA Master timer update Register' + byte_offset: 984 + fieldset: HRTIM_BDMUPR + - name: BDTUPR + description: 'High Resolution Timer: Burst DMA Timer X update Register' + array: + len: 5 + stride: 4 + byte_offset: 988 + fieldset: HRTIM_BDTUPR + - name: BDMADR + description: 'High Resolution Timer: Burst DMA Data Register' + byte_offset: 1008 + access: Write + fieldset: HRTIM_BDMADR block/HRTIM_TIMX: - description: "High Resolution Timer: Timing Unit" + description: 'High Resolution Timer: Timing Unit' items: - - name: CR - description: Timer X Control Register - byte_offset: 0 - fieldset: TIMXCR - - name: ISR - description: Timer X Interrupt Status Register - byte_offset: 4 - access: Read - fieldset: TIMXISR - - name: ICR - description: Timer X Interrupt Clear Register - byte_offset: 8 - access: Write - fieldset: TIMXICR - - name: DIER - description: Timer X DMA / Interrupt Enable Register - byte_offset: 12 - fieldset: TIMXDIER - - name: CNT - description: Timer X Counter Register - byte_offset: 16 - fieldset: TIMXCNT - - name: PER - description: Timer X Period Register - byte_offset: 20 - fieldset: TIMXPER - - name: REP - description: Timer X Repetition Register - byte_offset: 24 - fieldset: TIMXREP - - name: CMP - description: Timer X Compare X Register - array: - offsets: - - 0 - - 8 - - 12 - - 16 - byte_offset: 28 - fieldset: TIMXCMP - - name: CMPC - description: Timer X Compare X Compound Register - array: - offsets: - - 0 - byte_offset: 32 - fieldset: TIMXCMPC - - name: CPT - description: Timer X Capture X Register - array: - len: 2 - stride: 4 - byte_offset: 48 - access: Read - fieldset: TIMXCPT - - name: DT - description: Timer X Deadtime Register - byte_offset: 56 - fieldset: TIMXDT - - name: SETR - description: Timer X Output X Set Register - array: - offsets: - - 0 - - 8 - byte_offset: 60 - fieldset: TIMXSETR - - name: RSTR - description: Timer X Output X Reset Register - array: - offsets: - - 0 - - 8 - byte_offset: 64 - fieldset: TIMXRSTR - - name: EEF - description: Timer X External Event Filtering Register 1 - array: - offsets: - - 0 - - 4 - byte_offset: 76 - fieldset: TIMXEEF - - name: RST - description: Timer X Reset Register - byte_offset: 84 - fieldset: TIMXRST - - name: CHP - description: Timer X Chopper Register - byte_offset: 88 - fieldset: TIMXCHP - - name: CCR - description: Timer X Capture X Control Register - array: - offsets: - - 0 - - 4 - byte_offset: 92 - fieldset: TIMXCCR - - name: OUTR - description: Timer X Output Register - byte_offset: 100 - fieldset: TIMXOUTR - - name: FLT - description: Timer X Fault Register - byte_offset: 104 - fieldset: TIMXFLT -fieldset/HRTIM_CR1: - description: "High Resolution Timer: Control Register 1" - fields: - - name: MUDIS - description: Master Update Disable - bit_offset: 0 - bit_size: 1 - - name: TUDIS - description: Timer X Update Disable - bit_offset: 1 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: ADUSRC - description: ADC Trigger X Update Source - bit_offset: 16 - bit_size: 3 - array: - len: 4 - stride: 2 -fieldset/HRTIM_CR2: - description: "High Resolution Timer: Control Register 2" - fields: - - name: MSWU - description: Master Timer Software Update - bit_offset: 0 - bit_size: 1 - - name: TSWU - description: Timer X Software Update - bit_offset: 1 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: MRST - description: Master Counter Software Reset - bit_offset: 8 - bit_size: 1 - - name: TRST - description: Timer X Counter Software Reset - bit_offset: 9 - bit_size: 1 - array: - len: 5 - stride: 1 -fieldset/HRTIM_ISR: - description: "High Resolution Timer: Interrupt Status Register" - fields: - - name: FLT - description: Fault X Interrupt Flag - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SYSFLT - description: System Fault Interrupt Flag - bit_offset: 5 - bit_size: 1 - - name: DLLRDY - description: DLL Ready Interrupt Flag - bit_offset: 16 - bit_size: 1 - - name: BMPER - description: Burst Mode Period Interrupt Flag - bit_offset: 17 - bit_size: 1 -fieldset/HRTIM_ICR: - description: "High Resolution Timer: Interrupt Clear Register" - fields: - - name: FLT - description: Fault X Interrupt Flag Clear - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SYSFLT - description: System Fault Interrupt Flag Clear - bit_offset: 5 - bit_size: 1 - - name: DLLRDY - description: DLL Ready Interrupt Flag Clear - bit_offset: 16 - bit_size: 1 - - name: BMPER - description: Burst Mode Period Interrupt Flag Clear - bit_offset: 17 - bit_size: 1 -fieldset/HRTIM_IER: - description: "High Resolution Timer: Interrupt Enable Register" - fields: - - name: FLT - description: Fault X Interrupt Flag Enable - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SYSFLT - description: System Fault Interrupt Flag Enable - bit_offset: 5 - bit_size: 1 - - name: DLLRDY - description: DLL Ready Interrupt Flag Enable - bit_offset: 16 - bit_size: 1 - - name: BMPER - description: Burst Mode Period Interrupt Flag Enable - bit_offset: 17 - bit_size: 1 -fieldset/HRTIM_OENR: - description: "High Resolution Timer: Output Enable Register" - fields: - - name: T1OEN - description: "Timer X Output Enable" - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 - - name: T2OEN - description: "Timer X Complementary Output Enable" - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 -fieldset/HRTIM_ODISR: - description: "High Resolution Timer: Output Disable Register" - fields: - - name: T1ODIS - description: "Timer X Output Disable" - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 - - name: T2ODIS - description: "Timer X Complementary Output Disable" - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 -fieldset/HRTIM_ODSR: - description: "High Resolution Timer: Output Disable Status Register" - fields: - - name: T1ODIS - description: "Timer X Output Disable Status" - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 - - name: T2ODIS - description: "Timer X Complementary Output Disable Status" - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 -fieldset/HRTIM_BMCR: - description: "High Resolution Timer: Burst Mode Control Register" - fields: - - name: BME - description: Burst Mode Enable - bit_offset: 0 - bit_size: 1 - - name: BMOM - description: Burst Mode Operating Mode - bit_offset: 1 - bit_size: 1 - - name: BMCLK - description: Burst Mode Clock source - bit_offset: 2 - bit_size: 3 - - name: BMPRSC - description: Burst Mode Prescaler - bit_offset: 6 - bit_size: 3 - - name: BMPREN - description: Burst Mode Preload Enable - bit_offset: 10 - bit_size: 1 - - name: MTBM - description: Master Timer Burst Mode - bit_offset: 16 - bit_size: 1 - - name: TBM - description: Timer X Burst Mode - bit_offset: 17 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: BMSTAT - decription: Burst Mode Status - bit_offset: 31 - bit_size: 1 -fieldset/HRTIM_BMTRGR: - description: "High Resolution Timer: Burst Mode Trigger Register" - fields: - - name: SW - description: Software start - bit_offset: 0 - bit_size: 1 - - name: MSTRST - description: Master reset or roll-over - bit_offset: 1 - bit_size: 1 - - name: MSTREP - description: Master repetition - bit_offset: 2 - bit_size: 1 - - name: MSTCMP - description: Master Compare X - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: TRST - description: Timer X reset or roll-over - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - name: TREP - description: Timer X repetition - bit_offset: 8 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - name: TCMP1 - description: Timer X compare 1 event - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - name: TCMP2 - description: Timer X compare 2 event - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 -fieldset/HRTIM_BMCMPR: - description: "High Resolution Timer: Burst Mode Compare Register" - fields: - - name: BMCMP - description: Burst mode compare value - bit_offset: 0 - bit_size: 16 -fieldset/HRTIM_BMPER: - description: "High Resolution Timer: Burst Mode Period Register" - fields: - - name: BMPER - description: Burst mode period value - bit_offset: 0 - bit_size: 16 -fieldset/HRTIM_EECR1: - description: "High Resolution Timer: External Events Control Register 1" - fields: - - name: EESRC - description: External Event X Source - bit_offset: 0 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEPOL - description: External Event X Polarity - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EESNS - description: External Event X Sensitivity - bit_offset: 3 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEFAST - description: External Event X Fast Mode - bit_offset: 5 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 -fieldset/HRTIM_EECR2: - description: "High Resolution Timer: External Events Control Register 2" - fields: - - name: EESRC - description: External Event X Source - bit_offset: 0 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEPOL - description: External Event X Polarity - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EESNS - description: External Event X Sensitivity - bit_offset: 3 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 -fieldset/HRTIM_EECR3: - description: "High Resolution Timer: External Events Control Register 2" - fields: - - name: EEF - description: External Event X filter - bit_offset: 0 - bit_size: 3 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEVSD - description: External Event Sampling Clock Division - bit_offset: 30 - bit_size: 2 + - name: CR + description: Timer X Control Register + byte_offset: 0 + fieldset: TIMXCR + - name: ISR + description: Timer X Interrupt Status Register + byte_offset: 4 + access: Read + fieldset: TIMXISR + - name: ICR + description: Timer X Interrupt Clear Register + byte_offset: 8 + access: Write + fieldset: TIMXICR + - name: DIER + description: Timer X DMA / Interrupt Enable Register + byte_offset: 12 + fieldset: TIMXDIER + - name: CNT + description: Timer X Counter Register + byte_offset: 16 + fieldset: TIMXCNT + - name: PER + description: Timer X Period Register + byte_offset: 20 + fieldset: TIMXPER + - name: REP + description: Timer X Repetition Register + byte_offset: 24 + fieldset: TIMXREP + - name: CMP + description: Timer X Compare X Register + array: + offsets: + - 0 + - 8 + - 12 + - 16 + byte_offset: 28 + fieldset: TIMXCMP + - name: CMPC + description: Timer X Compare X Compound Register + array: + offsets: + - 0 + byte_offset: 32 + fieldset: TIMXCMPC + - name: CPT + description: Timer X Capture X Register + array: + len: 2 + stride: 4 + byte_offset: 48 + access: Read + fieldset: TIMXCPT + - name: DT + description: Timer X Deadtime Register + byte_offset: 56 + fieldset: TIMXDT + - name: SETR + description: Timer X Output X Set Register + array: + offsets: + - 0 + - 8 + byte_offset: 60 + fieldset: TIMXSETR + - name: RSTR + description: Timer X Output X Reset Register + array: + offsets: + - 0 + - 8 + byte_offset: 64 + fieldset: TIMXRSTR + - name: EEF + description: Timer X External Event Filtering Register 1 + array: + offsets: + - 0 + - 4 + byte_offset: 76 + fieldset: TIMXEEF + - name: RST + description: Timer X Reset Register + byte_offset: 84 + fieldset: TIMXRST + - name: CHP + description: Timer X Chopper Register + byte_offset: 88 + fieldset: TIMXCHP + - name: CCR + description: Timer X Capture X Control Register + array: + offsets: + - 0 + - 4 + byte_offset: 92 + fieldset: TIMXCCR + - name: OUTR + description: Timer X Output Register + byte_offset: 100 + fieldset: TIMXOUTR + - name: FLT + description: Timer X Fault Register + byte_offset: 104 + fieldset: TIMXFLT fieldset/HRTIM_ADC1R: - description: "High Resolution Timer: ADC Trigger 1 Register" + description: 'High Resolution Timer: ADC Trigger 1 Register' fields: - - name: ADCMC - description: ADC trigger X on Master Compare Y - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: ADCMPER - description: ADC trigger X on Master Period - bit_offset: 4 - bit_size: 1 - - name: ADCEEV - description: ADC trigger X on External Event Y - bit_offset: 5 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: ADCTC2 - description: ADC trigger X on Timer Y Compare 2 - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - name: ADCTC3 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 11 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - name: ADCTC4 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 12 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - name: ADCTPER - description: ADC trigger X on Timer Y Period - bit_offset: 13 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - name: ADCTRST - description: ADC trigger X on Timer Y Reset - bit_offset: 14 - bit_size: 1 - array: - offsets: - - 0 - - 5 + - name: ADCMC + description: ADC trigger X on Master Compare Y + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: ADCMPER + description: ADC trigger X on Master Period + bit_offset: 4 + bit_size: 1 + - name: ADCEEV + description: ADC trigger X on External Event Y + bit_offset: 5 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: ADCTC2 + description: ADC trigger X on Timer Y Compare 2 + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - name: ADCTC3 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 11 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - name: ADCTC4 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 12 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - name: ADCTPER + description: ADC trigger X on Timer Y Period + bit_offset: 13 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - name: ADCTRST + description: ADC trigger X on Timer Y Reset + bit_offset: 14 + bit_size: 1 + array: + offsets: + - 0 + - 5 fieldset/HRTIM_ADC2R: - description: "High Resolution Timer: ADC Trigger 2 Register" + description: 'High Resolution Timer: ADC Trigger 2 Register' fields: - - name: ADCMC - description: ADC trigger X on Master Compare Y - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: ADCMPER - description: ADC trigger X on Master Period - bit_offset: 4 - bit_size: 1 - - name: ADCEEV - description: ADC trigger X on External Event Y - bit_offset: 5 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: ADCTC2 - description: ADC trigger X on Timer Y Compare 2 - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - 18 - - name: ADCTC3 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 11 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - 18 - - name: ADCTC4 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 12 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - 18 - - name: ADCTPER - description: ADC trigger X on Timer Y Period - bit_offset: 13 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - name: ADCTRST - description: ADC trigger X on Timer Y Reset - bit_offset: 22 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 9 -fieldset/HRTIM_DLLCR: - description: "High Resolution Timer: DLL Control Register" - fields: - - name: CAL - description: DLL Calibration Start - bit_offset: 0 - bit_size: 1 - - name: CALEN - description: DLL Calibration Enable - bit_offset: 1 - bit_size: 1 - - name: CALRTE - description: DLL Calibration Rate - bit_offset: 2 - bit_size: 2 -fieldset/HRTIM_FLTINR1: - description: "High Resolution Timer: Fault Input Register 1" - fields: - - name: FLTE - description: Fault X enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTP - description: Fault X polarity - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTSRC - description: Fault X source - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTF - description: Fault X filter - bit_offset: 3 - bit_size: 4 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTLCK - description: Fault X Lock - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 -fieldset/HRTIM_FLTINR2: - description: "High Resolution Timer: Fault Input Register 2" - fields: - - name: FLTE - description: Fault X enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTP - description: Fault X polarity - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTSRC - description: Fault X source - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTF - description: Fault X filter - bit_offset: 3 - bit_size: 4 - array: - offsets: - - 0 - - name: FLTLCK - description: Fault X Lock - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTSD - description: Fault Sampling clock division - bit_offset: 24 - bit_size: 2 -fieldset/HRTIM_BDMUPR: - description: "High Resolution Timer: Burst DMA Master timer update Register" - fields: - - name: MCR - description: MCR register update enable - bit_offset: 0 - bit_size: 1 - - name: MICR - description: MICR register update enable - bit_offset: 1 - bit_size: 1 - - name: MDIER - description: MDIER register update enable - bit_offset: 2 - bit_size: 1 - - name: MCNT - description: MCNT register update enable - bit_offset: 3 - bit_size: 1 - - name: MPER - description: MPER register update enable - bit_offset: 4 - bit_size: 1 - - name: MREP - description: MREP register update enable - bit_offset: 5 - bit_size: 1 - - name: MCMP - description: MCMP register X update enable - bit_offset: 6 - bit_size: 1 - array: - len: 4 - stride: 1 -fieldset/HRTIM_BDTUPR: - description: "High Resolution Timer: Burst DMA Master timer update Register" - fields: - - name: CR - description: CR register update enable - bit_offset: 0 - bit_size: 1 - - name: ICR - description: ICR register update enable - bit_offset: 1 - bit_size: 1 - - name: DIER - description: DIER register update enable - bit_offset: 2 - bit_size: 1 - - name: CNT - description: CNT register update enable - bit_offset: 3 - bit_size: 1 - - name: PER - description: PER register update enable - bit_offset: 4 - bit_size: 1 - - name: REP - description: REP register update enable - bit_offset: 5 - bit_size: 1 - - name: CMP - description: CMP register X update enable - bit_offset: 6 - bit_size: 1 - array: - len: 4 - stride: 1 + - name: ADCMC + description: ADC trigger X on Master Compare Y + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: ADCMPER + description: ADC trigger X on Master Period + bit_offset: 4 + bit_size: 1 + - name: ADCEEV + description: ADC trigger X on External Event Y + bit_offset: 5 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: ADCTC2 + description: ADC trigger X on Timer Y Compare 2 + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - 18 + - name: ADCTC3 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 11 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - 18 + - name: ADCTC4 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 12 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - 18 + - name: ADCTPER + description: ADC trigger X on Timer Y Period + bit_offset: 13 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - name: ADCTRST + description: ADC trigger X on Timer Y Reset + bit_offset: 22 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 9 fieldset/HRTIM_BDMADR: - description: "High Resolution Timer: Burst DMA Data Register" + description: 'High Resolution Timer: Burst DMA Data Register' fields: - - name: BDMADR - description: Burst DMA Data register - bit_offset: 0 - bit_size: 31 + - name: BDMADR + description: Burst DMA Data register + bit_offset: 0 + bit_size: 31 +fieldset/HRTIM_BDMUPR: + description: 'High Resolution Timer: Burst DMA Master timer update Register' + fields: + - name: MCR + description: MCR register update enable + bit_offset: 0 + bit_size: 1 + - name: MICR + description: MICR register update enable + bit_offset: 1 + bit_size: 1 + - name: MDIER + description: MDIER register update enable + bit_offset: 2 + bit_size: 1 + - name: MCNT + description: MCNT register update enable + bit_offset: 3 + bit_size: 1 + - name: MPER + description: MPER register update enable + bit_offset: 4 + bit_size: 1 + - name: MREP + description: MREP register update enable + bit_offset: 5 + bit_size: 1 + - name: MCMP + description: MCMP register X update enable + bit_offset: 6 + bit_size: 1 + array: + len: 4 + stride: 1 +fieldset/HRTIM_BDTUPR: + description: 'High Resolution Timer: Burst DMA Master timer update Register' + fields: + - name: CR + description: CR register update enable + bit_offset: 0 + bit_size: 1 + - name: ICR + description: ICR register update enable + bit_offset: 1 + bit_size: 1 + - name: DIER + description: DIER register update enable + bit_offset: 2 + bit_size: 1 + - name: CNT + description: CNT register update enable + bit_offset: 3 + bit_size: 1 + - name: PER + description: PER register update enable + bit_offset: 4 + bit_size: 1 + - name: REP + description: REP register update enable + bit_offset: 5 + bit_size: 1 + - name: CMP + description: CMP register X update enable + bit_offset: 6 + bit_size: 1 + array: + len: 4 + stride: 1 +fieldset/HRTIM_BMCMPR: + description: 'High Resolution Timer: Burst Mode Compare Register' + fields: + - name: BMCMP + description: Burst mode compare value + bit_offset: 0 + bit_size: 16 +fieldset/HRTIM_BMCR: + description: 'High Resolution Timer: Burst Mode Control Register' + fields: + - name: BME + description: Burst Mode Enable + bit_offset: 0 + bit_size: 1 + - name: BMOM + description: Burst Mode Operating Mode + bit_offset: 1 + bit_size: 1 + - name: BMCLK + description: Burst Mode Clock source + bit_offset: 2 + bit_size: 3 + - name: BMPRSC + description: Burst Mode Prescaler + bit_offset: 6 + bit_size: 3 + - name: BMPREN + description: Burst Mode Preload Enable + bit_offset: 10 + bit_size: 1 + - name: MTBM + description: Master Timer Burst Mode + bit_offset: 16 + bit_size: 1 + - name: TBM + description: Timer X Burst Mode + bit_offset: 17 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: BMSTAT + bit_offset: 31 + bit_size: 1 +fieldset/HRTIM_BMPER: + description: 'High Resolution Timer: Burst Mode Period Register' + fields: + - name: BMPER + description: Burst mode period value + bit_offset: 0 + bit_size: 16 +fieldset/HRTIM_BMTRGR: + description: 'High Resolution Timer: Burst Mode Trigger Register' + fields: + - name: SW + description: Software start + bit_offset: 0 + bit_size: 1 + - name: MSTRST + description: Master reset or roll-over + bit_offset: 1 + bit_size: 1 + - name: MSTREP + description: Master repetition + bit_offset: 2 + bit_size: 1 + - name: MSTCMP + description: Master Compare X + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: TRST + description: Timer X reset or roll-over + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - name: TREP + description: Timer X repetition + bit_offset: 8 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - name: TCMP1 + description: Timer X compare 1 event + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - name: TCMP2 + description: Timer X compare 2 event + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 +fieldset/HRTIM_CR1: + description: 'High Resolution Timer: Control Register 1' + fields: + - name: MUDIS + description: Master Update Disable + bit_offset: 0 + bit_size: 1 + - name: TUDIS + description: Timer X Update Disable + bit_offset: 1 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: ADUSRC + description: ADC Trigger X Update Source + bit_offset: 16 + bit_size: 3 + array: + len: 4 + stride: 2 +fieldset/HRTIM_CR2: + description: 'High Resolution Timer: Control Register 2' + fields: + - name: MSWU + description: Master Timer Software Update + bit_offset: 0 + bit_size: 1 + - name: TSWU + description: Timer X Software Update + bit_offset: 1 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: MRST + description: Master Counter Software Reset + bit_offset: 8 + bit_size: 1 + - name: TRST + description: Timer X Counter Software Reset + bit_offset: 9 + bit_size: 1 + array: + len: 5 + stride: 1 +fieldset/HRTIM_DLLCR: + description: 'High Resolution Timer: DLL Control Register' + fields: + - name: CAL + description: DLL Calibration Start + bit_offset: 0 + bit_size: 1 + - name: CALEN + description: DLL Calibration Enable + bit_offset: 1 + bit_size: 1 + - name: CALRTE + description: DLL Calibration Rate + bit_offset: 2 + bit_size: 2 +fieldset/HRTIM_EECR1: + description: 'High Resolution Timer: External Events Control Register 1' + fields: + - name: EESRC + description: External Event X Source + bit_offset: 0 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEPOL + description: External Event X Polarity + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EESNS + description: External Event X Sensitivity + bit_offset: 3 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEFAST + description: External Event X Fast Mode + bit_offset: 5 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 +fieldset/HRTIM_EECR2: + description: 'High Resolution Timer: External Events Control Register 2' + fields: + - name: EESRC + description: External Event X Source + bit_offset: 0 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEPOL + description: External Event X Polarity + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EESNS + description: External Event X Sensitivity + bit_offset: 3 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 +fieldset/HRTIM_EECR3: + description: 'High Resolution Timer: External Events Control Register 2' + fields: + - name: EEF + description: External Event X filter + bit_offset: 0 + bit_size: 3 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEVSD + description: External Event Sampling Clock Division + bit_offset: 30 + bit_size: 2 +fieldset/HRTIM_FLTINR1: + description: 'High Resolution Timer: Fault Input Register 1' + fields: + - name: FLTE + description: Fault X enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTP + description: Fault X polarity + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTSRC + description: Fault X source + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTF + description: Fault X filter + bit_offset: 3 + bit_size: 4 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTLCK + description: Fault X Lock + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 +fieldset/HRTIM_FLTINR2: + description: 'High Resolution Timer: Fault Input Register 2' + fields: + - name: FLTE + description: Fault X enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTP + description: Fault X polarity + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTSRC + description: Fault X source + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTF + description: Fault X filter + bit_offset: 3 + bit_size: 4 + array: + offsets: + - 0 + - name: FLTLCK + description: Fault X Lock + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTSD + description: Fault Sampling clock division + bit_offset: 24 + bit_size: 2 +fieldset/HRTIM_ICR: + description: 'High Resolution Timer: Interrupt Clear Register' + fields: + - name: FLT + description: Fault X Interrupt Flag Clear + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SYSFLT + description: System Fault Interrupt Flag Clear + bit_offset: 5 + bit_size: 1 + - name: DLLRDY + description: DLL Ready Interrupt Flag Clear + bit_offset: 16 + bit_size: 1 + - name: BMPER + description: Burst Mode Period Interrupt Flag Clear + bit_offset: 17 + bit_size: 1 +fieldset/HRTIM_IER: + description: 'High Resolution Timer: Interrupt Enable Register' + fields: + - name: FLT + description: Fault X Interrupt Flag Enable + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SYSFLT + description: System Fault Interrupt Flag Enable + bit_offset: 5 + bit_size: 1 + - name: DLLRDY + description: DLL Ready Interrupt Flag Enable + bit_offset: 16 + bit_size: 1 + - name: BMPER + description: Burst Mode Period Interrupt Flag Enable + bit_offset: 17 + bit_size: 1 +fieldset/HRTIM_ISR: + description: 'High Resolution Timer: Interrupt Status Register' + fields: + - name: FLT + description: Fault X Interrupt Flag + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SYSFLT + description: System Fault Interrupt Flag + bit_offset: 5 + bit_size: 1 + - name: DLLRDY + description: DLL Ready Interrupt Flag + bit_offset: 16 + bit_size: 1 + - name: BMPER + description: Burst Mode Period Interrupt Flag + bit_offset: 17 + bit_size: 1 +fieldset/HRTIM_ODISR: + description: 'High Resolution Timer: Output Disable Register' + fields: + - name: T1ODIS + description: Timer X Output Disable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 + - name: T2ODIS + description: Timer X Complementary Output Disable + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 +fieldset/HRTIM_ODSR: + description: 'High Resolution Timer: Output Disable Status Register' + fields: + - name: T1ODIS + description: Timer X Output Disable Status + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 + - name: T2ODIS + description: Timer X Complementary Output Disable Status + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 +fieldset/HRTIM_OENR: + description: 'High Resolution Timer: Output Enable Register' + fields: + - name: T1OEN + description: Timer X Output Enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 + - name: T2OEN + description: Timer X Complementary Output Enable + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 fieldset/MCMPX: description: Master Timer Compare X Register fields: - - name: MCMP - description: Master Timer Compare X value - bit_offset: 0 - bit_size: 16 + - name: MCMP + description: Master Timer Compare X value + bit_offset: 0 + bit_size: 16 fieldset/MCNTR: description: Master Timer Counter Register fields: - - name: MCNT - description: Counter value - bit_offset: 0 - bit_size: 16 + - name: MCNT + description: Counter value + bit_offset: 0 + bit_size: 16 fieldset/MCR: description: Master Timer Control Register fields: - - name: CKPSC - description: HRTIM Master Clock prescaler - bit_offset: 0 - bit_size: 3 - - name: CONT - description: Master Continuous mode - bit_offset: 3 - bit_size: 1 - - name: RETRIG - description: Master Re-triggerable mode - bit_offset: 4 - bit_size: 1 - - name: HALF - description: Half mode enable - bit_offset: 5 - bit_size: 1 - - name: SYNCIN - description: Synchronization input - bit_offset: 8 - bit_size: 2 - enum: SYNCIN - - name: SYNCRSTM - description: Synchronization Resets Master - bit_offset: 10 - bit_size: 1 - - name: SYNCSTRTM - description: Synchronization Starts Master - bit_offset: 11 - bit_size: 1 - - name: SYNCOUT - description: Synchronization output - bit_offset: 12 - bit_size: 2 - enum: SYNCOUT - - name: SYNCSRC - description: Synchronization source - bit_offset: 14 - bit_size: 2 - enum: SYNCSRC - - name: MCEN - description: Master Counter enable - bit_offset: 16 - bit_size: 1 - - name: TCEN - description: Timer X counter enable - bit_offset: 17 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: DACSYNC - description: AC Synchronization - bit_offset: 25 - bit_size: 2 - enum: DACSYNC - - name: PREEN - description: Preload enable - bit_offset: 27 - bit_size: 1 - - name: MREPU - description: Master Timer Repetition update - bit_offset: 29 - bit_size: 1 - - name: BRSTDMA - description: Burst DMA Update - bit_offset: 30 - bit_size: 2 - enum: BRSTDMA + - name: CKPSC + description: HRTIM Master Clock prescaler + bit_offset: 0 + bit_size: 3 + - name: CONT + description: Master Continuous mode + bit_offset: 3 + bit_size: 1 + - name: RETRIG + description: Master Re-triggerable mode + bit_offset: 4 + bit_size: 1 + - name: HALF + description: Half mode enable + bit_offset: 5 + bit_size: 1 + - name: SYNCIN + description: Synchronization input + bit_offset: 8 + bit_size: 2 + enum: SYNCIN + - name: SYNCRSTM + description: Synchronization Resets Master + bit_offset: 10 + bit_size: 1 + - name: SYNCSTRTM + description: Synchronization Starts Master + bit_offset: 11 + bit_size: 1 + - name: SYNCOUT + description: Synchronization output + bit_offset: 12 + bit_size: 2 + enum: SYNCOUT + - name: SYNCSRC + description: Synchronization source + bit_offset: 14 + bit_size: 2 + enum: SYNCSRC + - name: MCEN + description: Master Counter enable + bit_offset: 16 + bit_size: 1 + - name: TCEN + description: Timer X counter enable + bit_offset: 17 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: DACSYNC + description: AC Synchronization + bit_offset: 25 + bit_size: 2 + enum: DACSYNC + - name: PREEN + description: Preload enable + bit_offset: 27 + bit_size: 1 + - name: MREPU + description: Master Timer Repetition update + bit_offset: 29 + bit_size: 1 + - name: BRSTDMA + description: Burst DMA Update + bit_offset: 30 + bit_size: 2 + enum: BRSTDMA fieldset/MDIER: description: Master Timer DMA / Interrupt Enable Register fields: - - name: MCMPIE - description: Master Compare X Interrupt Enable - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: MREPIE - description: Master Repetition Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: SYNCIE - description: Sync Input Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: MUPDIE - description: Master Update Interrupt Enable - bit_offset: 6 - bit_size: 1 - - name: MCMPDE - description: Master Compare X DMA request Enable - bit_offset: 16 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: MREPDE - description: Master Repetition DMA request Enable - bit_offset: 20 - bit_size: 1 - - name: SYNCDE - description: Sync Input DMA request Enable - bit_offset: 21 - bit_size: 1 - - name: MUPDDE - description: Master Update DMA request Enable - bit_offset: 22 - bit_size: 1 + - name: MCMPIE + description: Master Compare X Interrupt Enable + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: MREPIE + description: Master Repetition Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: SYNCIE + description: Sync Input Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: MUPDIE + description: Master Update Interrupt Enable + bit_offset: 6 + bit_size: 1 + - name: MCMPDE + description: Master Compare X DMA request Enable + bit_offset: 16 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: MREPDE + description: Master Repetition DMA request Enable + bit_offset: 20 + bit_size: 1 + - name: SYNCDE + description: Sync Input DMA request Enable + bit_offset: 21 + bit_size: 1 + - name: MUPDDE + description: Master Update DMA request Enable + bit_offset: 22 + bit_size: 1 fieldset/MICR: description: Master Timer Interrupt Clear Register fields: - - name: MCMPC - description: Master Compare X Interrupt flag clear - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: MREPC - description: Repetition Interrupt flag clear - bit_offset: 4 - bit_size: 1 - - name: SYNCC - description: Sync Input Interrupt flag clear - bit_offset: 5 - bit_size: 1 - - name: MUPDC - description: Master update Interrupt flag clear - bit_offset: 6 - bit_size: 1 + - name: MCMPC + description: Master Compare X Interrupt flag clear + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: MREPC + description: Repetition Interrupt flag clear + bit_offset: 4 + bit_size: 1 + - name: SYNCC + description: Sync Input Interrupt flag clear + bit_offset: 5 + bit_size: 1 + - name: MUPDC + description: Master update Interrupt flag clear + bit_offset: 6 + bit_size: 1 fieldset/MISR: description: Master Timer Interrupt Status Register fields: - - name: MCMP - description: Master Compare X Interrupt Flag - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: EVENT - - name: MREP - description: Master Repetition Interrupt Flag - bit_offset: 4 - bit_size: 1 - enum: EVENT - - name: SYNC - description: Sync Input Interrupt Flag - bit_offset: 5 - bit_size: 1 - enum: EVENT - - name: MUPD - description: Master Update Interrupt Flag - bit_offset: 6 - bit_size: 1 - enum: EVENT + - name: MCMP + description: Master Compare X Interrupt Flag + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: EVENT + - name: MREP + description: Master Repetition Interrupt Flag + bit_offset: 4 + bit_size: 1 + enum: EVENT + - name: SYNC + description: Sync Input Interrupt Flag + bit_offset: 5 + bit_size: 1 + enum: EVENT + - name: MUPD + description: Master Update Interrupt Flag + bit_offset: 6 + bit_size: 1 + enum: EVENT fieldset/MPER: description: Master Timer Period Register fields: - - name: MPER - description: Master Timer Period value - bit_offset: 0 - bit_size: 16 + - name: MPER + description: Master Timer Period value + bit_offset: 0 + bit_size: 16 fieldset/MREP: description: Master Timer Repetition Register fields: - - name: MREP - description: Master Timer Repetition counter value - bit_offset: 0 - bit_size: 8 + - name: MREP + description: Master Timer Repetition counter value + bit_offset: 0 + bit_size: 8 fieldset/TIMXCCR: description: Timerx Capture 2 Control Register fields: - - name: SWCPT - description: Software Capture - bit_offset: 0 - bit_size: 1 - enum: CAPTUREEFFECT - - name: UPDCPT - description: Update Capture - bit_offset: 1 - bit_size: 1 - enum: CAPTUREEFFECT - - name: EXEVCPT - description: External Event X Capture - bit_offset: 2 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: CAPTUREEFFECT - - name: TXSET - description: Timer X output Set - bit_offset: 16 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TXRST - description: Timer X output Reset - bit_offset: 17 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TXCMP - description: Timer X Compare X - bit_offset: 18 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT - - name: TYSET - description: Timer Y output Set - bit_offset: 20 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TYRST - description: Timer Y output Reset - bit_offset: 21 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TYCMP - description: Timer Y Compare X - bit_offset: 22 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT - - name: TZSET - description: Timer Z output Set - bit_offset: 24 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TZRST - description: Timer Z output Reset - bit_offset: 25 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TZCMP - description: Timer Z Compare X - bit_offset: 26 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT - - name: TTSET - description: Timer T output Set - bit_offset: 28 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TTRST - description: Timer T output Reset - bit_offset: 29 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TTCMP - description: Timer T Compare X - bit_offset: 30 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT + - name: SWCPT + description: Software Capture + bit_offset: 0 + bit_size: 1 + enum: CAPTUREEFFECT + - name: UPDCPT + description: Update Capture + bit_offset: 1 + bit_size: 1 + enum: CAPTUREEFFECT + - name: EXEVCPT + description: External Event X Capture + bit_offset: 2 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: CAPTUREEFFECT + - name: TXSET + description: Timer X output Set + bit_offset: 16 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TXRST + description: Timer X output Reset + bit_offset: 17 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TXCMP + description: Timer X Compare X + bit_offset: 18 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT + - name: TYSET + description: Timer Y output Set + bit_offset: 20 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TYRST + description: Timer Y output Reset + bit_offset: 21 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TYCMP + description: Timer Y Compare X + bit_offset: 22 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT + - name: TZSET + description: Timer Z output Set + bit_offset: 24 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TZRST + description: Timer Z output Reset + bit_offset: 25 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TZCMP + description: Timer Z Compare X + bit_offset: 26 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT + - name: TTSET + description: Timer T output Set + bit_offset: 28 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TTRST + description: Timer T output Reset + bit_offset: 29 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TTCMP + description: Timer T Compare X + bit_offset: 30 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT fieldset/TIMXCHP: description: Timerx Chopper Register fields: - - name: CARFRQ - description: Timerx carrier frequency value - bit_offset: 0 - bit_size: 4 - - name: CARDTY - description: Timerx chopper duty cycle value - bit_offset: 4 - bit_size: 3 - - name: STRTPW - description: Timerx start pulsewidth - bit_offset: 7 - bit_size: 4 + - name: CARFRQ + description: Timerx carrier frequency value + bit_offset: 0 + bit_size: 4 + - name: CARDTY + description: Timerx chopper duty cycle value + bit_offset: 4 + bit_size: 3 + - name: STRTPW + description: Timerx start pulsewidth + bit_offset: 7 + bit_size: 4 fieldset/TIMXCMP: description: Timerx Compare X Register fields: - - name: CMP - description: Timerx Compare X value - bit_offset: 0 - bit_size: 16 + - name: CMP + description: Timerx Compare X value + bit_offset: 0 + bit_size: 16 fieldset/TIMXCMPC: description: Timerx Compare X Compound Register fields: - - name: CMP - description: Timerx Compare X value - bit_offset: 0 - bit_size: 16 - - name: REP - description: Timerx Repetition value (aliased from HRTIM_REPx register) - bit_offset: 16 - bit_size: 8 + - name: CMP + description: Timerx Compare X value + bit_offset: 0 + bit_size: 16 + - name: REP + description: Timerx Repetition value (aliased from HRTIM_REPx register) + bit_offset: 16 + bit_size: 8 fieldset/TIMXCNT: description: Timerx Counter Register fields: - - name: CNT - description: Timerx Counter value - bit_offset: 0 - bit_size: 16 + - name: CNT + description: Timerx Counter value + bit_offset: 0 + bit_size: 16 fieldset/TIMXCPT: description: Timerx Capture X Register fields: - - name: CPT - description: Timerx Capture X value - bit_offset: 0 - bit_size: 16 + - name: CPT + description: Timerx Capture X value + bit_offset: 0 + bit_size: 16 fieldset/TIMXCR: description: Timerx Control Register fields: - - name: CKPSC - description: HRTIM Timer x Clock prescaler - bit_offset: 0 - bit_size: 3 - - name: CONT - description: Continuous mode - bit_offset: 3 - bit_size: 1 - - name: RETRIG - description: Re-triggerable mode - bit_offset: 4 - bit_size: 1 - - name: HALF - description: Half mode enable - bit_offset: 5 - bit_size: 1 - - name: PSHPLL - description: Push-Pull mode enable - bit_offset: 6 - bit_size: 1 - - name: SYNCRST - description: Synchronization Resets Timer X - bit_offset: 10 - bit_size: 1 - enum: SYNCRST - - name: SYNCSTRT - description: Synchronization Starts Timer X - bit_offset: 11 - bit_size: 1 - enum: SYNCSTRT - - name: DELCMP2 - description: Delayed CMP2 mode - bit_offset: 12 - bit_size: 2 - enum: DELCMP - - name: DELCMP4 - description: Delayed CMP4 mode - bit_offset: 14 - bit_size: 2 - enum: DELCMP - - name: REPU - description: Timer X Repetition update - bit_offset: 17 - bit_size: 1 - - name: RSTU - description: Timer X reset update - bit_offset: 18 - bit_size: 1 - - name: TAU - description: Timer A update - bit_offset: 19 - bit_size: 1 - - name: TBU - description: Timer B update - bit_offset: 20 - bit_size: 1 - - name: TCU - description: Timer C update - bit_offset: 21 - bit_size: 1 - - name: TDU - description: Timer D update - bit_offset: 22 - bit_size: 1 - - name: TEU - description: Timer E update - bit_offset: 23 - bit_size: 1 - - name: MSTU - description: Master Timer update - bit_offset: 24 - bit_size: 1 - - name: DACSYNC - description: AC Synchronization - bit_offset: 25 - bit_size: 2 - enum: DACSYNC - - name: PREEN - description: Preload enable - bit_offset: 27 - bit_size: 1 - - name: UPDGAT - description: Update Gating - bit_offset: 28 - bit_size: 4 - enum: UPDGAT + - name: CKPSC + description: HRTIM Timer x Clock prescaler + bit_offset: 0 + bit_size: 3 + - name: CONT + description: Continuous mode + bit_offset: 3 + bit_size: 1 + - name: RETRIG + description: Re-triggerable mode + bit_offset: 4 + bit_size: 1 + - name: HALF + description: Half mode enable + bit_offset: 5 + bit_size: 1 + - name: PSHPLL + description: Push-Pull mode enable + bit_offset: 6 + bit_size: 1 + - name: SYNCRST + description: Synchronization Resets Timer X + bit_offset: 10 + bit_size: 1 + enum: SYNCRST + - name: SYNCSTRT + description: Synchronization Starts Timer X + bit_offset: 11 + bit_size: 1 + enum: SYNCSTRT + - name: DELCMP2 + description: Delayed CMP2 mode + bit_offset: 12 + bit_size: 2 + enum: DELCMP + - name: DELCMP4 + description: Delayed CMP4 mode + bit_offset: 14 + bit_size: 2 + enum: DELCMP + - name: REPU + description: Timer X Repetition update + bit_offset: 17 + bit_size: 1 + - name: RSTU + description: Timer X reset update + bit_offset: 18 + bit_size: 1 + - name: TAU + description: Timer A update + bit_offset: 19 + bit_size: 1 + - name: TBU + description: Timer B update + bit_offset: 20 + bit_size: 1 + - name: TCU + description: Timer C update + bit_offset: 21 + bit_size: 1 + - name: TDU + description: Timer D update + bit_offset: 22 + bit_size: 1 + - name: TEU + description: Timer E update + bit_offset: 23 + bit_size: 1 + - name: MSTU + description: Master Timer update + bit_offset: 24 + bit_size: 1 + - name: DACSYNC + description: AC Synchronization + bit_offset: 25 + bit_size: 2 + enum: DACSYNC + - name: PREEN + description: Preload enable + bit_offset: 27 + bit_size: 1 + - name: UPDGAT + description: Update Gating + bit_offset: 28 + bit_size: 4 + enum: UPDGAT fieldset/TIMXDIER: description: Timerx DMA / Interrupt Enable Register fields: - - name: CMPIE - description: Compare X Interrupt Enable - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: REPIE - description: Repetition Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: UPDIE - description: Update Interrupt Enable - bit_offset: 6 - bit_size: 1 - - name: CPTIE - description: Capture Interrupt Enable - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SETRIE - description: Output X Set Interrupt Enable - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTRIE - description: Output X Reset Interrupt Enable - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTIE - description: Reset/roll-over Interrupt Enable - bit_offset: 13 - bit_size: 1 - - name: DLYPRTIE - description: Delayed Protection Interrupt Enable - bit_offset: 14 - bit_size: 1 - - name: CMPDE - description: Compare X DMA request Enable - bit_offset: 16 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: REPDE - description: Repetition DMA request Enable - bit_offset: 20 - bit_size: 1 - - name: UPDDE - description: Update DMA request Enable - bit_offset: 22 - bit_size: 1 - - name: CPTDE - description: Capture X DMA request Enable - bit_offset: 23 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SETRDE - description: Output X Set DMA request Enable - bit_offset: 25 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTRDE - description: Output X Reset DMA request Enable - bit_offset: 26 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTDE - description: Reset/roll-over DMA request Enable - bit_offset: 29 - bit_size: 1 - - name: DLYPRTDE - description: Delayed Protection DMA request Enable - bit_offset: 30 - bit_size: 1 + - name: CMPIE + description: Compare X Interrupt Enable + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: REPIE + description: Repetition Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: UPDIE + description: Update Interrupt Enable + bit_offset: 6 + bit_size: 1 + - name: CPTIE + description: Capture Interrupt Enable + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SETRIE + description: Output X Set Interrupt Enable + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTRIE + description: Output X Reset Interrupt Enable + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTIE + description: Reset/roll-over Interrupt Enable + bit_offset: 13 + bit_size: 1 + - name: DLYPRTIE + description: Delayed Protection Interrupt Enable + bit_offset: 14 + bit_size: 1 + - name: CMPDE + description: Compare X DMA request Enable + bit_offset: 16 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: REPDE + description: Repetition DMA request Enable + bit_offset: 20 + bit_size: 1 + - name: UPDDE + description: Update DMA request Enable + bit_offset: 22 + bit_size: 1 + - name: CPTDE + description: Capture X DMA request Enable + bit_offset: 23 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SETRDE + description: Output X Set DMA request Enable + bit_offset: 25 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTRDE + description: Output X Reset DMA request Enable + bit_offset: 26 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTDE + description: Reset/roll-over DMA request Enable + bit_offset: 29 + bit_size: 1 + - name: DLYPRTDE + description: Delayed Protection DMA request Enable + bit_offset: 30 + bit_size: 1 fieldset/TIMXDT: description: Timerx Deadtime Register fields: - - name: DTR - description: Deadtime Rising value - bit_offset: 0 - bit_size: 9 - - name: SDTR - description: Sign Deadtime Rising value - bit_offset: 9 - bit_size: 1 - enum: SDTR - - name: DTPRSC - description: Deadtime Prescaler - bit_offset: 10 - bit_size: 3 - - name: DTRSLK - description: Deadtime Rising Sign Lock - bit_offset: 14 - bit_size: 1 - enum: LOCKED - - name: DTRLK - description: Deadtime Rising Lock - bit_offset: 15 - bit_size: 1 - enum: LOCKED - - name: DTF - description: Deadtime Falling value - bit_offset: 16 - bit_size: 9 - - name: SDTF - description: Sign Deadtime Falling value - bit_offset: 25 - bit_size: 1 - enum: SDTF - - name: DTFSLK - description: Deadtime Falling Sign Lock - bit_offset: 30 - bit_size: 1 - enum: LOCKED - - name: DTFLK - description: Deadtime Falling Lock - bit_offset: 31 - bit_size: 1 - enum: LOCKED + - name: DTR + description: Deadtime Rising value + bit_offset: 0 + bit_size: 9 + - name: SDTR + description: Sign Deadtime Rising value + bit_offset: 9 + bit_size: 1 + enum: SDTR + - name: DTPRSC + description: Deadtime Prescaler + bit_offset: 10 + bit_size: 3 + - name: DTRSLK + description: Deadtime Rising Sign Lock + bit_offset: 14 + bit_size: 1 + enum: LOCKED + - name: DTRLK + description: Deadtime Rising Lock + bit_offset: 15 + bit_size: 1 + enum: LOCKED + - name: DTF + description: Deadtime Falling value + bit_offset: 16 + bit_size: 9 + - name: SDTF + description: Sign Deadtime Falling value + bit_offset: 25 + bit_size: 1 + enum: SDTF + - name: DTFSLK + description: Deadtime Falling Sign Lock + bit_offset: 30 + bit_size: 1 + enum: LOCKED + - name: DTFLK + description: Deadtime Falling Lock + bit_offset: 31 + bit_size: 1 + enum: LOCKED fieldset/TIMXEEF: description: Timer X External Event Filtering Register fields: - - name: LTCH - description: External Event X latch - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 6 - - name: FLTR - description: External Event X filter - bit_offset: 1 - bit_size: 4 - array: - len: 5 - stride: 6 - enum: EEFLTR + - name: LTCH + description: External Event X latch + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 6 + - name: FLTR + description: External Event X filter + bit_offset: 1 + bit_size: 4 + array: + len: 5 + stride: 6 + enum: EEFLTR fieldset/TIMXFLT: description: Timerx Fault Register fields: - - name: FLTEN - description: Fault X enable - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - enum: FLTEN - - name: FLTLCK - description: Fault sources Lock - bit_offset: 31 - bit_size: 1 - enum: LOCKED + - name: FLTEN + description: Fault X enable + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + enum: FLTEN + - name: FLTLCK + description: Fault sources Lock + bit_offset: 31 + bit_size: 1 + enum: LOCKED fieldset/TIMXICR: description: Timerx Interrupt Clear Register fields: - - name: CMPC - description: Compare X Interrupt flag Clear - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: REPC - description: Repetition Interrupt flag Clear - bit_offset: 4 - bit_size: 1 - - name: UPDC - description: Update Interrupt flag Clear - bit_offset: 6 - bit_size: 1 - - name: CPTC - description: Capture X Interrupt flag Clear - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SETRC - description: Output X Set flag Clear - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTRC - description: Output X Reset flag Clear - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTC - description: Reset Interrupt flag Clear - bit_offset: 13 - bit_size: 1 - - name: DLYPRTC - description: Delayed Protection Flag Clear - bit_offset: 14 - bit_size: 1 + - name: CMPC + description: Compare X Interrupt flag Clear + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: REPC + description: Repetition Interrupt flag Clear + bit_offset: 4 + bit_size: 1 + - name: UPDC + description: Update Interrupt flag Clear + bit_offset: 6 + bit_size: 1 + - name: CPTC + description: Capture X Interrupt flag Clear + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SETRC + description: Output X Set flag Clear + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTRC + description: Output X Reset flag Clear + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTC + description: Reset Interrupt flag Clear + bit_offset: 13 + bit_size: 1 + - name: DLYPRTC + description: Delayed Protection Flag Clear + bit_offset: 14 + bit_size: 1 fieldset/TIMXISR: description: Timerx Interrupt Status Register fields: - - name: CMP - description: Compare X Interrupt Flag - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: EVENT - - name: REP - description: Repetition Interrupt Flag - bit_offset: 4 - bit_size: 1 - enum: EVENT - - name: UPD - description: Update Interrupt Flag - bit_offset: 6 - bit_size: 1 - enum: EVENT - - name: CPT - description: Capture X Interrupt Flag - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: EVENT - - name: SETR - description: Output X Set Interrupt Flag - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 2 - enum: EVENT - - name: RSTR - description: Output X Reset Interrupt Flag - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 2 - enum: EVENT - - name: RST - description: Reset Interrupt Flag - bit_offset: 13 - bit_size: 1 - enum: EVENT - - name: DLYPRT - description: Delayed Protection Flag - bit_offset: 14 - bit_size: 1 - enum: TIMAISR_DLYPRT - - name: CPPSTAT - description: Current Push Pull Status - bit_offset: 16 - bit_size: 1 - enum: CPPSTAT - - name: IPPSTAT - description: Idle Push Pull Status - bit_offset: 17 - bit_size: 1 - enum: IPPSTAT - - name: OSTAT - description: Output X State - bit_offset: 18 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: OUTPUTSTATE - - name: OCPY - description: Output X Copy - bit_offset: 20 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: OUTPUTSTATE + - name: CMP + description: Compare X Interrupt Flag + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: EVENT + - name: REP + description: Repetition Interrupt Flag + bit_offset: 4 + bit_size: 1 + enum: EVENT + - name: UPD + description: Update Interrupt Flag + bit_offset: 6 + bit_size: 1 + enum: EVENT + - name: CPT + description: Capture X Interrupt Flag + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: EVENT + - name: SETR + description: Output X Set Interrupt Flag + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 2 + enum: EVENT + - name: RSTR + description: Output X Reset Interrupt Flag + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 2 + enum: EVENT + - name: RST + description: Reset Interrupt Flag + bit_offset: 13 + bit_size: 1 + enum: EVENT + - name: DLYPRT + description: Delayed Protection Flag + bit_offset: 14 + bit_size: 1 + enum: TIMAISR_DLYPRT + - name: CPPSTAT + description: Current Push Pull Status + bit_offset: 16 + bit_size: 1 + enum: CPPSTAT + - name: IPPSTAT + description: Idle Push Pull Status + bit_offset: 17 + bit_size: 1 + enum: IPPSTAT + - name: OSTAT + description: Output X State + bit_offset: 18 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: OUTPUTSTATE + - name: OCPY + description: Output X Copy + bit_offset: 20 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: OUTPUTSTATE fieldset/TIMXOUTR: description: Timerx Output Register fields: - - name: POL - description: Output 1 polarity - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 16 - enum: POL - - name: IDLEM - description: Output X Idle mode - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: IDLES - description: Output X Idle State - bit_offset: 3 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: FAULTX - description: Output X Fault state - bit_offset: 4 - bit_size: 2 - array: - offsets: - - 0 - - 16 - enum: FAULT - - name: CHP - description: Output X Chopper enable - bit_offset: 6 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: DIDL - description: Output X Deadtime upon burst mode Idle entry - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: DTEN - description: Deadtime enable - bit_offset: 8 - bit_size: 1 - - name: DLYPRTEN - description: Delayed Protection Enable - bit_offset: 9 - bit_size: 1 - - name: DLYPRT - description: Delayed Protection - bit_offset: 10 - bit_size: 3 - enum: DLYPRT + - name: POL + description: Output 1 polarity + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 16 + enum: POL + - name: IDLEM + description: Output X Idle mode + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: IDLES + description: Output X Idle State + bit_offset: 3 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: FAULTX + description: Output X Fault state + bit_offset: 4 + bit_size: 2 + array: + offsets: + - 0 + - 16 + enum: FAULT + - name: CHP + description: Output X Chopper enable + bit_offset: 6 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: DIDL + description: Output X Deadtime upon burst mode Idle entry + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: DTEN + description: Deadtime enable + bit_offset: 8 + bit_size: 1 + - name: DLYPRTEN + description: Delayed Protection Enable + bit_offset: 9 + bit_size: 1 + - name: DLYPRT + description: Delayed Protection + bit_offset: 10 + bit_size: 3 + enum: DLYPRT fieldset/TIMXPER: description: Timerx Period Register fields: - - name: PER - description: Timerx Period value - bit_offset: 0 - bit_size: 16 + - name: PER + description: Timerx Period value + bit_offset: 0 + bit_size: 16 fieldset/TIMXREP: description: Timerx Repetition Register fields: - - name: REP - description: Timerx Repetition counter value - bit_offset: 0 - bit_size: 8 + - name: REP + description: Timerx Repetition counter value + bit_offset: 0 + bit_size: 8 fieldset/TIMXRST: description: Timerx Reset Register fields: - - name: UPDT - description: Timer X Update reset - bit_offset: 1 - bit_size: 1 - enum: RESETEFFECT - - name: CMP - description: Timer X compare X reset - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: RESETEFFECT - - name: MSTPER - description: Master timer Period - bit_offset: 4 - bit_size: 1 - enum: RESETEFFECT - - name: MSTCMP - description: Master compare X - bit_offset: 5 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: RESETEFFECT - - name: EXTEVNT - description: External Event X - bit_offset: 9 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: RESETEFFECT - - name: TCMP1 - description: Timer X compare 1 event - bit_offset: 19 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 6 - - 9 - enum: RESETEFFECT - - name: TCMP2 - description: Timer X compare 2 event - bit_offset: 20 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 6 - - 9 - enum: RESETEFFECT - - name: TCMP4 - description: Timer X compare 4 event - bit_offset: 21 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 6 - - 9 - enum: RESETEFFECT + - name: UPDT + description: Timer X Update reset + bit_offset: 1 + bit_size: 1 + enum: RESETEFFECT + - name: CMP + description: Timer X compare X reset + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: RESETEFFECT + - name: MSTPER + description: Master timer Period + bit_offset: 4 + bit_size: 1 + enum: RESETEFFECT + - name: MSTCMP + description: Master compare X + bit_offset: 5 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: RESETEFFECT + - name: EXTEVNT + description: External Event X + bit_offset: 9 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: RESETEFFECT + - name: TCMP1 + description: Timer X compare 1 event + bit_offset: 19 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 6 + - 9 + enum: RESETEFFECT + - name: TCMP2 + description: Timer X compare 2 event + bit_offset: 20 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 6 + - 9 + enum: RESETEFFECT + - name: TCMP4 + description: Timer X compare 4 event + bit_offset: 21 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 6 + - 9 + enum: RESETEFFECT fieldset/TIMXRSTR: description: Timerx OutputX Reset Register fields: - - name: SRT - description: Software Reset trigger - bit_offset: 0 - bit_size: 1 - enum: INACTIVEEFFECT - - name: RESYNC - description: Timer X resynchronizaton - bit_offset: 1 - bit_size: 1 - enum: INACTIVEEFFECT - - name: PER - description: Timer X Period - bit_offset: 2 - bit_size: 1 - enum: INACTIVEEFFECT - - name: CMP - description: Timer X compare X - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: INACTIVEEFFECT - - name: MSTPER - description: Master Period - bit_offset: 7 - bit_size: 1 - enum: INACTIVEEFFECT - - name: MSTCMP - description: Master Compare X - bit_offset: 8 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: INACTIVEEFFECT - - name: TIMEVNT - description: Timer Event X - bit_offset: 12 - bit_size: 1 - array: - len: 9 - stride: 1 - enum: INACTIVEEFFECT - - name: EXTEVNT - description: External Event X - bit_offset: 21 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: INACTIVEEFFECT - - name: UPDATE - description: Registers update (transfer preload to active) - bit_offset: 31 - bit_size: 1 - enum: INACTIVEEFFECT + - name: SRT + description: Software Reset trigger + bit_offset: 0 + bit_size: 1 + enum: INACTIVEEFFECT + - name: RESYNC + description: Timer X resynchronizaton + bit_offset: 1 + bit_size: 1 + enum: INACTIVEEFFECT + - name: PER + description: Timer X Period + bit_offset: 2 + bit_size: 1 + enum: INACTIVEEFFECT + - name: CMP + description: Timer X compare X + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: INACTIVEEFFECT + - name: MSTPER + description: Master Period + bit_offset: 7 + bit_size: 1 + enum: INACTIVEEFFECT + - name: MSTCMP + description: Master Compare X + bit_offset: 8 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: INACTIVEEFFECT + - name: TIMEVNT + description: Timer Event X + bit_offset: 12 + bit_size: 1 + array: + len: 9 + stride: 1 + enum: INACTIVEEFFECT + - name: EXTEVNT + description: External Event X + bit_offset: 21 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: INACTIVEEFFECT + - name: UPDATE + description: Registers update (transfer preload to active) + bit_offset: 31 + bit_size: 1 + enum: INACTIVEEFFECT fieldset/TIMXSETR: description: Timerx OutputX Set Register fields: - - name: SST - description: Software Set trigger - bit_offset: 0 - bit_size: 1 - enum: ACTIVEEFFECT - - name: RESYNC - description: Timer X resynchronizaton - bit_offset: 1 - bit_size: 1 - enum: ACTIVEEFFECT - - name: PER - description: Timer X Period - bit_offset: 2 - bit_size: 1 - enum: ACTIVEEFFECT - - name: CMP - description: Timer X compare X - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: ACTIVEEFFECT - - name: MSTPER - description: Master Period - bit_offset: 7 - bit_size: 1 - enum: ACTIVEEFFECT - - name: MSTCMPX - description: Master Compare X - bit_offset: 8 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: ACTIVEEFFECT - - name: TIMEVNT - description: Timer Event X - bit_offset: 12 - bit_size: 1 - array: - len: 9 - stride: 1 - enum: ACTIVEEFFECT - - name: EXTEVNT - description: External Event X - bit_offset: 21 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: ACTIVEEFFECT - - name: UPDATE - description: Registers update (transfer preload to active) - bit_offset: 31 - bit_size: 1 - enum: ACTIVEEFFECT + - name: SST + description: Software Set trigger + bit_offset: 0 + bit_size: 1 + enum: ACTIVEEFFECT + - name: RESYNC + description: Timer X resynchronizaton + bit_offset: 1 + bit_size: 1 + enum: ACTIVEEFFECT + - name: PER + description: Timer X Period + bit_offset: 2 + bit_size: 1 + enum: ACTIVEEFFECT + - name: CMP + description: Timer X compare X + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: ACTIVEEFFECT + - name: MSTPER + description: Master Period + bit_offset: 7 + bit_size: 1 + enum: ACTIVEEFFECT + - name: MSTCMPX + description: Master Compare X + bit_offset: 8 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: ACTIVEEFFECT + - name: TIMEVNT + description: Timer Event X + bit_offset: 12 + bit_size: 1 + array: + len: 9 + stride: 1 + enum: ACTIVEEFFECT + - name: EXTEVNT + description: External Event X + bit_offset: 21 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: ACTIVEEFFECT + - name: UPDATE + description: Registers update (transfer preload to active) + bit_offset: 31 + bit_size: 1 + enum: ACTIVEEFFECT enum/ACTIVEEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer event has no effect - value: 0 - - name: SetActive - description: Timer event forces the output to its active state - value: 1 + - name: NoEffect + description: Timer event has no effect + value: 0 + - name: SetActive + description: Timer event forces the output to its active state + value: 1 enum/BRSTDMA: bit_size: 2 variants: - - name: Independent - description: Update done independently from the DMA burst transfer completion - value: 0 - - name: Completion - description: Update done when the DMA burst transfer is completed - value: 1 - - name: Rollover - description: Update done on master timer roll-over following a DMA burst transfer completion - value: 2 + - name: Independent + description: Update done independently from the DMA burst transfer completion + value: 0 + - name: Completion + description: Update done when the DMA burst transfer is completed + value: 1 + - name: Rollover + description: Update done on master timer roll-over following a DMA burst transfer completion + value: 2 enum/CAPTUREEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer event has no effect - value: 0 - - name: TriggerCapture - description: Timer event triggers capture - value: 1 + - name: NoEffect + description: Timer event has no effect + value: 0 + - name: TriggerCapture + description: Timer event triggers capture + value: 1 enum/CPPSTAT: bit_size: 1 variants: - - name: Output1Active - description: Signal applied on output 1 and output 2 forced inactive - value: 0 - - name: Output2Active - description: Signal applied on output 2 and output 1 forced inactive - value: 1 + - name: Output1Active + description: Signal applied on output 1 and output 2 forced inactive + value: 0 + - name: Output2Active + description: Signal applied on output 2 and output 1 forced inactive + value: 1 enum/DACSYNC: bit_size: 2 variants: - - name: Disabled - description: No DAC trigger generated - value: 0 - - name: DACSync1 - description: Trigger generated on DACSync1 - value: 1 - - name: DACSync2 - description: Trigger generated on DACSync2 - value: 2 - - name: DACSync3 - description: Trigger generated on DACSync3 - value: 3 + - name: Disabled + description: No DAC trigger generated + value: 0 + - name: DACSync1 + description: Trigger generated on DACSync1 + value: 1 + - name: DACSync2 + description: Trigger generated on DACSync2 + value: 2 + - name: DACSync3 + description: Trigger generated on DACSync3 + value: 3 enum/DELCMP: bit_size: 2 variants: - - name: Standard - description: CMP register is always active (standard compare mode) - value: 0 - - name: Capture1 - description: CMP is recomputed and is active following a capture 1 event - value: 1 - - name: CaptureX_Compare1 - description: CMP is recomputed and is active following a capture 1 event or a Compare 1 match - value: 2 - - name: CaptureX_Compare3 - description: CMP is recomputed and is active following a capture 1 event or a Compare 3 match - value: 3 + - name: Standard + description: CMP register is always active (standard compare mode) + value: 0 + - name: Capture1 + description: CMP is recomputed and is active following a capture 1 event + value: 1 + - name: CaptureX_Compare1 + description: CMP is recomputed and is active following a capture 1 event or a Compare 1 match + value: 2 + - name: CaptureX_Compare3 + description: CMP is recomputed and is active following a capture 1 event or a Compare 3 match + value: 3 enum/DLYPRT: bit_size: 3 variants: - - name: Output1_EE6 - description: Output 1 delayed idle on external event 6 - value: 0 - - name: Output2_EE6 - description: Output 2 delayed idle on external event 6 - value: 1 - - name: Output1_2_EE6 - description: Output 1 and 2 delayed idle on external event 6 - value: 2 - - name: Balanced_EE6 - description: Balanced idle on external event 6 - value: 3 - - name: Output1_EE7 - description: Output 1 delayed idle on external event 7 - value: 4 - - name: Output2_EE7 - description: Output 2 delayed idle on external event 7 - value: 5 - - name: Output1_2_EE7 - description: Output 1 and 2 delayed idle on external event 7 - value: 6 - - name: Balanced_EE7 - description: Balanced idle on external event 7 - value: 7 + - name: Output1_EE6 + description: Output 1 delayed idle on external event 6 + value: 0 + - name: Output2_EE6 + description: Output 2 delayed idle on external event 6 + value: 1 + - name: Output1_2_EE6 + description: Output 1 and 2 delayed idle on external event 6 + value: 2 + - name: Balanced_EE6 + description: Balanced idle on external event 6 + value: 3 + - name: Output1_EE7 + description: Output 1 delayed idle on external event 7 + value: 4 + - name: Output2_EE7 + description: Output 2 delayed idle on external event 7 + value: 5 + - name: Output1_2_EE7 + description: Output 1 and 2 delayed idle on external event 7 + value: 6 + - name: Balanced_EE7 + description: Balanced idle on external event 7 + value: 7 enum/EEFLTR: bit_size: 4 variants: - - name: Disabled - description: No filtering - value: 0 - - name: BlankResetToCompare1 - description: Blanking from counter reset/roll-over to Compare 1 - value: 1 - - name: BlankResetToCompare2 - description: Blanking from counter reset/roll-over to Compare 2 - value: 2 - - name: BlankResetToCompare3 - description: Blanking from counter reset/roll-over to Compare 3 - value: 3 - - name: BlankResetToCompare4 - description: Blanking from counter reset/roll-over to Compare 4 - value: 4 - - name: BlankTIMFLTR1 - description: "Blanking from another timing unit: TIMFLTR1 source" - value: 5 - - name: BlankTIMFLTR2 - description: "Blanking from another timing unit: TIMFLTR2 source" - value: 6 - - name: BlankTIMFLTR3 - description: "Blanking from another timing unit: TIMFLTR3 source" - value: 7 - - name: BlankTIMFLTR4 - description: "Blanking from another timing unit: TIMFLTR4 source" - value: 8 - - name: BlankTIMFLTR5 - description: "Blanking from another timing unit: TIMFLTR5 source" - value: 9 - - name: BlankTIMFLTR6 - description: "Blanking from another timing unit: TIMFLTR6 source" - value: 10 - - name: BlankTIMFLTR7 - description: "Blanking from another timing unit: TIMFLTR7 source" - value: 11 - - name: BlankTIMFLTR8 - description: "Blanking from another timing unit: TIMFLTR8 source" - value: 12 - - name: WindowResetToCompare2 - description: Windowing from counter reset/roll-over to compare 2 - value: 13 - - name: WindowResetToCompare3 - description: Windowing from counter reset/roll-over to compare 3 - value: 14 - - name: WindowTIMWIN - description: "Windowing from another timing unit: TIMWIN source" - value: 15 + - name: Disabled + description: No filtering + value: 0 + - name: BlankResetToCompare1 + description: Blanking from counter reset/roll-over to Compare 1 + value: 1 + - name: BlankResetToCompare2 + description: Blanking from counter reset/roll-over to Compare 2 + value: 2 + - name: BlankResetToCompare3 + description: Blanking from counter reset/roll-over to Compare 3 + value: 3 + - name: BlankResetToCompare4 + description: Blanking from counter reset/roll-over to Compare 4 + value: 4 + - name: BlankTIMFLTR1 + description: 'Blanking from another timing unit: TIMFLTR1 source' + value: 5 + - name: BlankTIMFLTR2 + description: 'Blanking from another timing unit: TIMFLTR2 source' + value: 6 + - name: BlankTIMFLTR3 + description: 'Blanking from another timing unit: TIMFLTR3 source' + value: 7 + - name: BlankTIMFLTR4 + description: 'Blanking from another timing unit: TIMFLTR4 source' + value: 8 + - name: BlankTIMFLTR5 + description: 'Blanking from another timing unit: TIMFLTR5 source' + value: 9 + - name: BlankTIMFLTR6 + description: 'Blanking from another timing unit: TIMFLTR6 source' + value: 10 + - name: BlankTIMFLTR7 + description: 'Blanking from another timing unit: TIMFLTR7 source' + value: 11 + - name: BlankTIMFLTR8 + description: 'Blanking from another timing unit: TIMFLTR8 source' + value: 12 + - name: WindowResetToCompare2 + description: Windowing from counter reset/roll-over to compare 2 + value: 13 + - name: WindowResetToCompare3 + description: Windowing from counter reset/roll-over to compare 3 + value: 14 + - name: WindowTIMWIN + description: 'Windowing from another timing unit: TIMWIN source' + value: 15 enum/EVENT: bit_size: 1 variants: - - name: NoEvent - description: No compare interrupt occurred - value: 0 - - name: Event - description: Compare interrupt occurred - value: 1 + - name: NoEvent + description: No compare interrupt occurred + value: 0 + - name: Event + description: Compare interrupt occurred + value: 1 enum/FAULT: bit_size: 2 variants: - - name: Disabled - description: "No action: the output is not affected by the fault input and stays in run mode" - value: 0 - - name: SetActive - description: Output goes to active state after a fault event - value: 1 - - name: SetInactive - description: Output goes to inactive state after a fault event - value: 2 - - name: SetHighZ - description: Output goes to high-z state after a fault event - value: 3 + - name: Disabled + description: 'No action: the output is not affected by the fault input and stays in run mode' + value: 0 + - name: SetActive + description: Output goes to active state after a fault event + value: 1 + - name: SetInactive + description: Output goes to inactive state after a fault event + value: 2 + - name: SetHighZ + description: Output goes to high-z state after a fault event + value: 3 enum/FLTEN: bit_size: 1 variants: - - name: Ignored - description: Fault input ignored - value: 0 - - name: Active - description: Fault input is active and can disable HRTIM outputs - value: 1 + - name: Ignored + description: Fault input ignored + value: 0 + - name: Active + description: Fault input is active and can disable HRTIM outputs + value: 1 enum/INACTIVEEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer event has no effect - value: 0 - - name: SetInactive - description: Timer event forces the output to its inactive state - value: 1 + - name: NoEffect + description: Timer event has no effect + value: 0 + - name: SetInactive + description: Timer event forces the output to its inactive state + value: 1 enum/IPPSTAT: bit_size: 1 variants: - - name: Output1Active - description: Protection occurred when the output 1 was active and output 2 forced inactive - value: 0 - - name: Output2Active - description: Protection occurred when the output 2 was active and output 1 forced inactive - value: 1 + - name: Output1Active + description: Protection occurred when the output 1 was active and output 2 forced inactive + value: 0 + - name: Output2Active + description: Protection occurred when the output 2 was active and output 1 forced inactive + value: 1 enum/LOCKED: bit_size: 1 variants: - - name: Unlocked - description: Bits are writeable - value: 0 - - name: Locked - description: Bits are read-only - value: 1 + - name: Unlocked + description: Bits are writeable + value: 0 + - name: Locked + description: Bits are read-only + value: 1 enum/OUTPUTSTATE: bit_size: 1 variants: - - name: Inactive - description: Output is or was inactive - value: 0 - - name: Active - description: Output is or was active - value: 1 + - name: Inactive + description: Output is or was inactive + value: 0 + - name: Active + description: Output is or was active + value: 1 enum/POL: bit_size: 1 variants: - - name: ActiveHigh - description: Positive polarity (output active high) - value: 0 - - name: ActiveLow - description: Negative polarity (output active low) - value: 1 + - name: ActiveHigh + description: Positive polarity (output active high) + value: 0 + - name: ActiveLow + description: Negative polarity (output active low) + value: 1 enum/RESETEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer Y compare Z event has no effect - value: 0 - - name: ResetCounter - description: Timer X counter is reset upon timer Y compare Z event - value: 1 + - name: NoEffect + description: Timer Y compare Z event has no effect + value: 0 + - name: ResetCounter + description: Timer X counter is reset upon timer Y compare Z event + value: 1 enum/SDTF: bit_size: 1 variants: - - name: Positive - description: Positive deadtime on falling edge - value: 0 - - name: Negative - description: Negative deadtime on falling edge - value: 1 + - name: Positive + description: Positive deadtime on falling edge + value: 0 + - name: Negative + description: Negative deadtime on falling edge + value: 1 enum/SDTR: bit_size: 1 variants: - - name: Positive - description: Positive deadtime on rising edge - value: 0 - - name: Negative - description: Negative deadtime on rising edge - value: 1 + - name: Positive + description: Positive deadtime on rising edge + value: 0 + - name: Negative + description: Negative deadtime on rising edge + value: 1 enum/SYNCIN: bit_size: 2 variants: - - name: Disabled - description: Disabled. HRTIM is not synchronized and runs in standalone mode - value: 0 - - name: Internal - description: "Internal event: the HRTIM is synchronized with the on-chip timer" - value: 2 - - name: External - description: "External event: a positive pulse on HRTIM_SCIN input triggers the HRTIM" - value: 3 + - name: Disabled + description: Disabled. HRTIM is not synchronized and runs in standalone mode + value: 0 + - name: Internal + description: 'Internal event: the HRTIM is synchronized with the on-chip timer' + value: 2 + - name: External + description: 'External event: a positive pulse on HRTIM_SCIN input triggers the HRTIM' + value: 3 enum/SYNCOUT: bit_size: 2 variants: - - name: Disabled - description: Disabled - value: 0 - - name: PositivePulse - description: Positive pulse on SCOUT output (16x f_HRTIM clock cycles) - value: 2 - - name: NegativePulse - description: Negative pulse on SCOUT output (16x f_HRTIM clock cycles) - value: 3 + - name: Disabled + description: Disabled + value: 0 + - name: PositivePulse + description: Positive pulse on SCOUT output (16x f_HRTIM clock cycles) + value: 2 + - name: NegativePulse + description: Negative pulse on SCOUT output (16x f_HRTIM clock cycles) + value: 3 enum/SYNCRST: bit_size: 1 variants: - - name: Disabled - description: Synchronization event has no effect on Timer x - value: 0 - - name: Reset - description: Synchronization event resets Timer x - value: 1 + - name: Disabled + description: Synchronization event has no effect on Timer x + value: 0 + - name: Reset + description: Synchronization event resets Timer x + value: 1 enum/SYNCSRC: bit_size: 2 variants: - - name: MasterStart - description: Master timer Start - value: 0 - - name: MasterCompare1 - description: Master timer Compare 1 event - value: 1 - - name: TimerAStart - description: Timer A start/reset - value: 2 - - name: TimerACompare1 - description: Timer A Compare 1 event - value: 3 + - name: MasterStart + description: Master timer Start + value: 0 + - name: MasterCompare1 + description: Master timer Compare 1 event + value: 1 + - name: TimerAStart + description: Timer A start/reset + value: 2 + - name: TimerACompare1 + description: Timer A Compare 1 event + value: 3 enum/SYNCSTRT: bit_size: 1 variants: - - name: Disabled - description: Synchronization event has no effect on Timer x - value: 0 - - name: Start - description: Synchronization event starts Timer x - value: 1 + - name: Disabled + description: Synchronization event has no effect on Timer x + value: 0 + - name: Start + description: Synchronization event starts Timer x + value: 1 enum/TIMAISR_DLYPRT: bit_size: 1 variants: - - name: Inactive - description: Not in delayed idle or balanced idle mode - value: 0 - - name: Active - description: Delayed idle or balanced idle mode entry - value: 1 + - name: Inactive + description: Not in delayed idle or balanced idle mode + value: 0 + - name: Active + description: Delayed idle or balanced idle mode entry + value: 1 enum/UPDGAT: bit_size: 4 variants: - - name: Independent - description: Update occurs independently from the DMA burst transfer - value: 0 - - name: DMABurst - description: Update occurs when the DMA burst transfer is completed - value: 1 - - name: DMABurst_Update - description: Update occurs on the update event following DMA burst transfer completion - value: 2 - - name: Input1 - description: Update occurs on a rising edge of HRTIM update enable input 1 - value: 3 - - name: Input2 - description: Update occurs on a rising edge of HRTIM update enable input 2 - value: 4 - - name: Input3 - description: Update occurs on a rising edge of HRTIM update enable input 3 - value: 5 - - name: Input1_Update - description: Update occurs on the update event following a rising edge of HRTIM update enable input 1 - value: 6 - - name: Input2_Update - description: Update occurs on the update event following a rising edge of HRTIM update enable input 2 - value: 7 - - name: Input3_Update - description: Update occurs on the update event following a rising edge of HRTIM update enable input 3 - value: 8 + - name: Independent + description: Update occurs independently from the DMA burst transfer + value: 0 + - name: DMABurst + description: Update occurs when the DMA burst transfer is completed + value: 1 + - name: DMABurst_Update + description: Update occurs on the update event following DMA burst transfer completion + value: 2 + - name: Input1 + description: Update occurs on a rising edge of HRTIM update enable input 1 + value: 3 + - name: Input2 + description: Update occurs on a rising edge of HRTIM update enable input 2 + value: 4 + - name: Input3 + description: Update occurs on a rising edge of HRTIM update enable input 3 + value: 5 + - name: Input1_Update + description: Update occurs on the update event following a rising edge of HRTIM update enable input 1 + value: 6 + - name: Input2_Update + description: Update occurs on the update event following a rising edge of HRTIM update enable input 2 + value: 7 + - name: Input3_Update + description: Update occurs on the update event following a rising edge of HRTIM update enable input 3 + value: 8 diff --git a/data/registers/hrtim_v2.yaml b/data/registers/hrtim_v2.yaml index f7c2d93..c265c11 100644 --- a/data/registers/hrtim_v2.yaml +++ b/data/registers/hrtim_v2.yaml @@ -1,2344 +1,2342 @@ ---- block/HRTIM: - description: "High Resolution Timer" + description: High Resolution Timer items: - - name: MCR - description: Master Timer Control Register - byte_offset: 0 - fieldset: MCR - - name: MISR - description: Master Timer Interrupt Status Register - byte_offset: 4 - access: Read - fieldset: MISR - - name: MICR - description: Master Timer Interrupt Clear Register - byte_offset: 8 - access: Write - fieldset: MICR - - name: MDIER - description: Master Timer DMA / Interrupt Enable Register - byte_offset: 12 - fieldset: MDIER - - name: MCNTR - description: Master Timer Counter Register - byte_offset: 16 - fieldset: MCNTR - - name: MPER - description: Master Timer Period Register - byte_offset: 20 - fieldset: MPER - - name: MREP - description: Master Timer Repetition Register - byte_offset: 24 - fieldset: MREP - - name: MCMP - description: Master Timer Compare X Register - array: - offsets: - - 0 - - 8 - - 12 - - 16 - byte_offset: 28 - fieldset: MCMPX - - name: TIM - description: "High Resolution Timer: Timing Unit" - array: - len: 6 - stride: 128 - byte_offset: 128 - block: HRTIM_TIMX - - name: CR1 - description: "High Resolution Timer: Control Register 1" - byte_offset: 0x380 - fieldset: HRTIM_CR1 - - name: CR2 - description: "High Resolution Timer: Control Register 2" - byte_offset: 0x384 - fieldset: HRTIM_CR2 - - name: ISR - description: "High Resolution Timer: Interrupt Status Register" - byte_offset: 0x388 - access: Read - fieldset: HRTIM_ISR - - name: ICR - description: "High Resolution Timer: Interrupt Clear Register" - byte_offset: 0x38c - access: Write - fieldset: HRTIM_ICR - - name: IER - description: "High Resolution Timer: Interrupt Enable Register" - byte_offset: 0x390 - fieldset: HRTIM_IER - - name: OENR - description: "High Resolution Timer: Output Enable Register" - byte_offset: 0x394 - fieldset: HRTIM_OENR - - name: ODISR - description: "High Resolution Timer: Output Disable Register" - byte_offset: 0x398 - fieldset: HRTIM_ODISR - - name: ODSR - description: "High Resolution Timer: Output Disable Status Register" - byte_offset: 0x39c - fieldset: HRTIM_ODSR - - name: BMCR - description: "High Resolution Timer: Burst Mode Control Register" - byte_offset: 0x3a0 - fieldset: HRTIM_BMCR - - name: BMTRGR - description: "High Resolution Timer: Burst Mode Trigger Register" - byte_offset: 0x3a4 - fieldset: HRTIM_BMTRGR - - name: BMCMPR - description: "High Resolution Timer: Burst Mode Compare Register" - byte_offset: 0x3a8 - fieldset: HRTIM_BMCMPR - - name: BMPER - description: "High Resolution Timer: Burst Mode Period Register" - byte_offset: 0x3ac - fieldset: HRTIM_BMPER - - name: EECR1 - description: "High Resolution Timer: External Event Control Register 1" - byte_offset: 0x3b0 - fieldset: HRTIM_EECR1 - - name: EECR2 - description: "High Resolution Timer: External Event Control Register 2" - byte_offset: 0x3b4 - fieldset: HRTIM_EECR2 - - name: EECR3 - description: "High Resolution Timer: External Event Control Register 3" - byte_offset: 0x3b8 - fieldset: HRTIM_EECR3 - - name: ADC1R - description: "High Resolution Timer: ADC Trigger [1, 3] Register" - byte_offset: 0x3bc - fieldset: HRTIM_ADC1R - array: - offsets: - - 0 - - 8 - - name: ADC2R - description: "High Resolution Timer: ADC Trigger [2, 4] Register" - byte_offset: 0x3c0 - fieldset: HRTIM_ADC2R - array: - offsets: - - 0 - - 8 - - name: DLLCR - description: "High Resolution Timer: DLL Control Register" - byte_offset: 0x3cc - fieldset: HRTIM_DLLCR - - name: FLTINR1 - description: "High Resolution Timer: Fault Input Register 1" - byte_offset: 0x3d0 - fieldset: HRTIM_FLTINR1 - - name: FLTINR2 - description: "High Resolution Timer: Fault Input Register 2" - byte_offset: 0x3d0 - fieldset: HRTIM_FLTINR2 - - name: BDMUPR - description: "High Resolution Timer: Burst DMA Master timer update Register" - byte_offset: 0x3d8 - fieldset: HRTIM_BDMUPR - - name: BDTUPR - description: "High Resolution Timer: Burst DMA Timer X update Register" - byte_offset: 0x3dc - fieldset: HRTIM_BDTUPR - array: - len: 5 - stride: 4 - - name: BDMADR - description: "High Resolution Timer: Burst DMA Data Register" - byte_offset: 0x3f0 - access: Write - fieldset: HRTIM_BDMADR + - name: MCR + description: Master Timer Control Register + byte_offset: 0 + fieldset: MCR + - name: MISR + description: Master Timer Interrupt Status Register + byte_offset: 4 + access: Read + fieldset: MISR + - name: MICR + description: Master Timer Interrupt Clear Register + byte_offset: 8 + access: Write + fieldset: MICR + - name: MDIER + description: Master Timer DMA / Interrupt Enable Register + byte_offset: 12 + fieldset: MDIER + - name: MCNTR + description: Master Timer Counter Register + byte_offset: 16 + fieldset: MCNTR + - name: MPER + description: Master Timer Period Register + byte_offset: 20 + fieldset: MPER + - name: MREP + description: Master Timer Repetition Register + byte_offset: 24 + fieldset: MREP + - name: MCMP + description: Master Timer Compare X Register + array: + offsets: + - 0 + - 8 + - 12 + - 16 + byte_offset: 28 + fieldset: MCMPX + - name: TIM + description: 'High Resolution Timer: Timing Unit' + array: + len: 6 + stride: 128 + byte_offset: 128 + block: HRTIM_TIMX + - name: CR1 + description: 'High Resolution Timer: Control Register 1' + byte_offset: 896 + fieldset: HRTIM_CR1 + - name: CR2 + description: 'High Resolution Timer: Control Register 2' + byte_offset: 900 + fieldset: HRTIM_CR2 + - name: ISR + description: 'High Resolution Timer: Interrupt Status Register' + byte_offset: 904 + access: Read + fieldset: HRTIM_ISR + - name: ICR + description: 'High Resolution Timer: Interrupt Clear Register' + byte_offset: 908 + access: Write + fieldset: HRTIM_ICR + - name: IER + description: 'High Resolution Timer: Interrupt Enable Register' + byte_offset: 912 + fieldset: HRTIM_IER + - name: OENR + description: 'High Resolution Timer: Output Enable Register' + byte_offset: 916 + fieldset: HRTIM_OENR + - name: ODISR + description: 'High Resolution Timer: Output Disable Register' + byte_offset: 920 + fieldset: HRTIM_ODISR + - name: ODSR + description: 'High Resolution Timer: Output Disable Status Register' + byte_offset: 924 + fieldset: HRTIM_ODSR + - name: BMCR + description: 'High Resolution Timer: Burst Mode Control Register' + byte_offset: 928 + fieldset: HRTIM_BMCR + - name: BMTRGR + description: 'High Resolution Timer: Burst Mode Trigger Register' + byte_offset: 932 + fieldset: HRTIM_BMTRGR + - name: BMCMPR + description: 'High Resolution Timer: Burst Mode Compare Register' + byte_offset: 936 + fieldset: HRTIM_BMCMPR + - name: BMPER + description: 'High Resolution Timer: Burst Mode Period Register' + byte_offset: 940 + fieldset: HRTIM_BMPER + - name: EECR1 + description: 'High Resolution Timer: External Event Control Register 1' + byte_offset: 944 + fieldset: HRTIM_EECR1 + - name: EECR2 + description: 'High Resolution Timer: External Event Control Register 2' + byte_offset: 948 + fieldset: HRTIM_EECR2 + - name: EECR3 + description: 'High Resolution Timer: External Event Control Register 3' + byte_offset: 952 + fieldset: HRTIM_EECR3 + - name: ADC1R + description: 'High Resolution Timer: ADC Trigger [1, 3] Register' + array: + offsets: + - 0 + - 8 + byte_offset: 956 + fieldset: HRTIM_ADC1R + - name: ADC2R + description: 'High Resolution Timer: ADC Trigger [2, 4] Register' + array: + offsets: + - 0 + - 8 + byte_offset: 960 + fieldset: HRTIM_ADC2R + - name: DLLCR + description: 'High Resolution Timer: DLL Control Register' + byte_offset: 972 + fieldset: HRTIM_DLLCR + - name: FLTINR1 + description: 'High Resolution Timer: Fault Input Register 1' + byte_offset: 976 + fieldset: HRTIM_FLTINR1 + - name: FLTINR2 + description: 'High Resolution Timer: Fault Input Register 2' + byte_offset: 976 + fieldset: HRTIM_FLTINR2 + - name: BDMUPR + description: 'High Resolution Timer: Burst DMA Master timer update Register' + byte_offset: 984 + fieldset: HRTIM_BDMUPR + - name: BDTUPR + description: 'High Resolution Timer: Burst DMA Timer X update Register' + array: + len: 5 + stride: 4 + byte_offset: 988 + fieldset: HRTIM_BDTUPR + - name: BDMADR + description: 'High Resolution Timer: Burst DMA Data Register' + byte_offset: 1008 + access: Write + fieldset: HRTIM_BDMADR block/HRTIM_TIMX: - description: "High Resolution Timer: Timing Unit" + description: 'High Resolution Timer: Timing Unit' items: - - name: CR - description: Timer X Control Register - byte_offset: 0 - fieldset: TIMXCR - - name: ISR - description: Timer X Interrupt Status Register - byte_offset: 4 - access: Read - fieldset: TIMXISR - - name: ICR - description: Timer X Interrupt Clear Register - byte_offset: 8 - access: Write - fieldset: TIMXICR - - name: DIER - description: Timer X DMA / Interrupt Enable Register - byte_offset: 12 - fieldset: TIMXDIER - - name: CNT - description: Timer X Counter Register - byte_offset: 16 - fieldset: TIMXCNT - - name: PER - description: Timer X Period Register - byte_offset: 20 - fieldset: TIMXPER - - name: REP - description: Timer X Repetition Register - byte_offset: 24 - fieldset: TIMXREP - - name: CMP - description: Timer X Compare X Register - array: - offsets: - - 0 - - 8 - - 12 - - 16 - byte_offset: 28 - fieldset: TIMXCMP - - name: CMPC - description: Timer X Compare X Compound Register - array: - offsets: - - 0 - byte_offset: 32 - fieldset: TIMXCMPC - - name: CPT - description: Timer X Capture X Register - array: - len: 2 - stride: 4 - byte_offset: 48 - access: Read - fieldset: TIMXCPT - - name: DT - description: Timer X Deadtime Register - byte_offset: 56 - fieldset: TIMXDT - - name: SETR - description: Timer X Output X Set Register - array: - offsets: - - 0 - - 8 - byte_offset: 60 - fieldset: TIMXSETR - - name: RSTR - description: Timer X Output X Reset Register - array: - offsets: - - 0 - - 8 - byte_offset: 64 - fieldset: TIMXRSTR - - name: EEF - description: Timer X External Event Filtering Register 1 - array: - offsets: - - 0 - - 4 - byte_offset: 76 - fieldset: TIMXEEF - - name: RST - description: Timer X Reset Register - byte_offset: 84 - fieldset: TIMXRST - - name: CHP - description: Timer X Chopper Register - byte_offset: 88 - fieldset: TIMXCHP - - name: CCR - description: Timer X Capture X Control Register - array: - offsets: - - 0 - - 4 - byte_offset: 92 - fieldset: TIMXCCR - - name: OUTR - description: Timer X Output Register - byte_offset: 100 - fieldset: TIMXOUTR - - name: FLT - description: Timer X Fault Register - byte_offset: 104 - fieldset: TIMXFLT -fieldset/HRTIM_CR1: - description: "High Resolution Timer: Control Register 1" - fields: - - name: MUDIS - description: Master Update Disable - bit_offset: 0 - bit_size: 1 - - name: TUDIS - description: Timer X Update Disable - bit_offset: 1 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: ADUSRC - description: ADC Trigger X Update Source - bit_offset: 16 - bit_size: 3 - array: - len: 4 - stride: 2 -fieldset/HRTIM_CR2: - description: "High Resolution Timer: Control Register 2" - fields: - - name: MSWU - description: Master Timer Software Update - bit_offset: 0 - bit_size: 1 - - name: TSWU - description: Timer X Software Update - bit_offset: 1 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: MRST - description: Master Counter Software Reset - bit_offset: 8 - bit_size: 1 - - name: TRST - description: Timer X Counter Software Reset - bit_offset: 9 - bit_size: 1 - array: - len: 5 - stride: 1 -fieldset/HRTIM_ISR: - description: "High Resolution Timer: Interrupt Status Register" - fields: - - name: FLT - description: Fault X Interrupt Flag - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SYSFLT - description: System Fault Interrupt Flag - bit_offset: 5 - bit_size: 1 - - name: DLLRDY - description: DLL Ready Interrupt Flag - bit_offset: 16 - bit_size: 1 - - name: BMPER - description: Burst Mode Period Interrupt Flag - bit_offset: 17 - bit_size: 1 -fieldset/HRTIM_ICR: - description: "High Resolution Timer: Interrupt Clear Register" - fields: - - name: FLT - description: Fault X Interrupt Flag Clear - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SYSFLT - description: System Fault Interrupt Flag Clear - bit_offset: 5 - bit_size: 1 - - name: DLLRDY - description: DLL Ready Interrupt Flag Clear - bit_offset: 16 - bit_size: 1 - - name: BMPER - description: Burst Mode Period Interrupt Flag Clear - bit_offset: 17 - bit_size: 1 -fieldset/HRTIM_IER: - description: "High Resolution Timer: Interrupt Enable Register" - fields: - - name: FLT - description: Fault X Interrupt Flag Enable - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SYSFLT - description: System Fault Interrupt Flag Enable - bit_offset: 5 - bit_size: 1 - - name: DLLRDY - description: DLL Ready Interrupt Flag Enable - bit_offset: 16 - bit_size: 1 - - name: BMPER - description: Burst Mode Period Interrupt Flag Enable - bit_offset: 17 - bit_size: 1 -fieldset/HRTIM_OENR: - description: "High Resolution Timer: Output Enable Register" - fields: - - name: T1OEN - description: "Timer X Output Enable" - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 - - name: T2OEN - description: "Timer X Complementary Output Enable" - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 -fieldset/HRTIM_ODISR: - description: "High Resolution Timer: Output Disable Register" - fields: - - name: T1ODIS - description: "Timer X Output Disable" - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 - - name: T2ODIS - description: "Timer X Complementary Output Disable" - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 -fieldset/HRTIM_ODSR: - description: "High Resolution Timer: Output Disable Status Register" - fields: - - name: T1ODIS - description: "Timer X Output Disable Status" - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 - - name: T2ODIS - description: "Timer X Complementary Output Disable Status" - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - 4 - - 6 - - 8 -fieldset/HRTIM_BMCR: - description: "High Resolution Timer: Burst Mode Control Register" - fields: - - name: BME - description: Burst Mode Enable - bit_offset: 0 - bit_size: 1 - - name: BMOM - description: Burst Mode Operating Mode - bit_offset: 1 - bit_size: 1 - - name: BMCLK - description: Burst Mode Clock source - bit_offset: 2 - bit_size: 3 - - name: BMPRSC - description: Burst Mode Prescaler - bit_offset: 6 - bit_size: 3 - - name: BMPREN - description: Burst Mode Preload Enable - bit_offset: 10 - bit_size: 1 - - name: MTBM - description: Master Timer Burst Mode - bit_offset: 16 - bit_size: 1 - - name: TBM - description: Timer X Burst Mode - bit_offset: 17 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: BMSTAT - decription: Burst Mode Status - bit_offset: 31 - bit_size: 1 -fieldset/HRTIM_BMTRGR: - description: "High Resolution Timer: Burst Mode Trigger Register" - fields: - - name: SW - description: Software start - bit_offset: 0 - bit_size: 1 - - name: MSTRST - description: Master reset or roll-over - bit_offset: 1 - bit_size: 1 - - name: MSTREP - description: Master repetition - bit_offset: 2 - bit_size: 1 - - name: MSTCMP - description: Master Compare X - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: TRST - description: Timer X reset or roll-over - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - name: TREP - description: Timer X repetition - bit_offset: 8 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - name: TCMP1 - description: Timer X compare 1 event - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 - - name: TCMP2 - description: Timer X compare 2 event - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 12 - - 16 -fieldset/HRTIM_BMCMPR: - description: "High Resolution Timer: Burst Mode Compare Register" - fields: - - name: BMCMP - description: Burst mode compare value - bit_offset: 0 - bit_size: 16 -fieldset/HRTIM_BMPER: - description: "High Resolution Timer: Burst Mode Period Register" - fields: - - name: BMPER - description: Burst mode period value - bit_offset: 0 - bit_size: 16 -fieldset/HRTIM_EECR1: - description: "High Resolution Timer: External Events Control Register 1" - fields: - - name: EESRC - description: External Event X Source - bit_offset: 0 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEPOL - description: External Event X Polarity - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EESNS - description: External Event X Sensitivity - bit_offset: 3 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEFAST - description: External Event X Fast Mode - bit_offset: 5 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 -fieldset/HRTIM_EECR2: - description: "High Resolution Timer: External Events Control Register 2" - fields: - - name: EESRC - description: External Event X Source - bit_offset: 0 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEPOL - description: External Event X Polarity - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EESNS - description: External Event X Sensitivity - bit_offset: 3 - bit_size: 2 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 -fieldset/HRTIM_EECR3: - description: "High Resolution Timer: External Events Control Register 2" - fields: - - name: EEF - description: External Event X filter - bit_offset: 0 - bit_size: 3 - array: - offsets: - - 0 - - 6 - - 12 - - 18 - - 24 - - name: EEVSD - description: External Event Sampling Clock Division - bit_offset: 30 - bit_size: 2 + - name: CR + description: Timer X Control Register + byte_offset: 0 + fieldset: TIMXCR + - name: ISR + description: Timer X Interrupt Status Register + byte_offset: 4 + access: Read + fieldset: TIMXISR + - name: ICR + description: Timer X Interrupt Clear Register + byte_offset: 8 + access: Write + fieldset: TIMXICR + - name: DIER + description: Timer X DMA / Interrupt Enable Register + byte_offset: 12 + fieldset: TIMXDIER + - name: CNT + description: Timer X Counter Register + byte_offset: 16 + fieldset: TIMXCNT + - name: PER + description: Timer X Period Register + byte_offset: 20 + fieldset: TIMXPER + - name: REP + description: Timer X Repetition Register + byte_offset: 24 + fieldset: TIMXREP + - name: CMP + description: Timer X Compare X Register + array: + offsets: + - 0 + - 8 + - 12 + - 16 + byte_offset: 28 + fieldset: TIMXCMP + - name: CMPC + description: Timer X Compare X Compound Register + array: + offsets: + - 0 + byte_offset: 32 + fieldset: TIMXCMPC + - name: CPT + description: Timer X Capture X Register + array: + len: 2 + stride: 4 + byte_offset: 48 + access: Read + fieldset: TIMXCPT + - name: DT + description: Timer X Deadtime Register + byte_offset: 56 + fieldset: TIMXDT + - name: SETR + description: Timer X Output X Set Register + array: + offsets: + - 0 + - 8 + byte_offset: 60 + fieldset: TIMXSETR + - name: RSTR + description: Timer X Output X Reset Register + array: + offsets: + - 0 + - 8 + byte_offset: 64 + fieldset: TIMXRSTR + - name: EEF + description: Timer X External Event Filtering Register 1 + array: + offsets: + - 0 + - 4 + byte_offset: 76 + fieldset: TIMXEEF + - name: RST + description: Timer X Reset Register + byte_offset: 84 + fieldset: TIMXRST + - name: CHP + description: Timer X Chopper Register + byte_offset: 88 + fieldset: TIMXCHP + - name: CCR + description: Timer X Capture X Control Register + array: + offsets: + - 0 + - 4 + byte_offset: 92 + fieldset: TIMXCCR + - name: OUTR + description: Timer X Output Register + byte_offset: 100 + fieldset: TIMXOUTR + - name: FLT + description: Timer X Fault Register + byte_offset: 104 + fieldset: TIMXFLT fieldset/HRTIM_ADC1R: - description: "High Resolution Timer: ADC Trigger 1 Register" + description: 'High Resolution Timer: ADC Trigger 1 Register' fields: - - name: ADCMC - description: ADC trigger X on Master Compare Y - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: ADCMPER - description: ADC trigger X on Master Period - bit_offset: 4 - bit_size: 1 - - name: ADCEEV - description: ADC trigger X on External Event Y - bit_offset: 5 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: ADCTC2 - description: ADC trigger X on Timer Y Compare 2 - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - name: ADCTC3 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 11 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - name: ADCTC4 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 12 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - 8 - - name: ADCTPER - description: ADC trigger X on Timer Y Period - bit_offset: 13 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 10 - - 14 - - 18 - - name: ADCTRST - description: ADC trigger X on Timer Y Reset - bit_offset: 14 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 14 + - name: ADCMC + description: ADC trigger X on Master Compare Y + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: ADCMPER + description: ADC trigger X on Master Period + bit_offset: 4 + bit_size: 1 + - name: ADCEEV + description: ADC trigger X on External Event Y + bit_offset: 5 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: ADCTC2 + description: ADC trigger X on Timer Y Compare 2 + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - name: ADCTC3 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 11 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - name: ADCTC4 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 12 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - 8 + - name: ADCTPER + description: ADC trigger X on Timer Y Period + bit_offset: 13 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 10 + - 14 + - 18 + - name: ADCTRST + description: ADC trigger X on Timer Y Reset + bit_offset: 14 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 14 fieldset/HRTIM_ADC2R: - description: "High Resolution Timer: ADC Trigger 2 Register" + description: 'High Resolution Timer: ADC Trigger 2 Register' fields: - - name: ADCMC - description: ADC trigger X on Master Compare Y - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: ADCMPER - description: ADC trigger X on Master Period - bit_offset: 4 - bit_size: 1 - - name: ADCEEV - description: ADC trigger X on External Event Y - bit_offset: 5 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: ADCTC2 - description: ADC trigger X on Timer Y Compare 2 - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - 18 - - 1 - - name: ADCTC3 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 15 - bit_size: 1 - array: - offsets: - - 14 - - 0 - - name: ADCTC4 - description: ADC trigger X on Timer Y Compare 3 - bit_offset: 12 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - 18 - - name: ADCTPER - description: ADC trigger X on Timer Y Period - bit_offset: 13 - bit_size: 1 - array: - offsets: - - 0 - - 4 - - 8 - - 13 - - 11 - - name: ADCTRST - description: ADC trigger X on Timer Y Reset - bit_offset: 22 - bit_size: 1 - array: - offsets: - - 0 - - 5 - - 9 -fieldset/HRTIM_DLLCR: - description: "High Resolution Timer: DLL Control Register" - fields: - - name: CAL - description: DLL Calibration Start - bit_offset: 0 - bit_size: 1 - - name: CALEN - description: DLL Calibration Enable - bit_offset: 1 - bit_size: 1 - - name: CALRTE - description: DLL Calibration Rate - bit_offset: 2 - bit_size: 2 -fieldset/HRTIM_FLTINR1: - description: "High Resolution Timer: Fault Input Register 1" - fields: - - name: FLTE - description: Fault X enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTP - description: Fault X polarity - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTSRC - description: Fault X source - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTF - description: Fault X filter - bit_offset: 3 - bit_size: 4 - array: - offsets: - - 0 - - 8 - - 16 - - 24 - - name: FLTLCK - description: Fault X Lock - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - 8 - - 16 - - 24 -fieldset/HRTIM_FLTINR2: - description: "High Resolution Timer: Fault Input Register 2" - fields: - - name: FLTE - description: Fault X enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTP - description: Fault X polarity - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTSRC - description: Fault X source - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTF - description: Fault X filter - bit_offset: 3 - bit_size: 4 - array: - offsets: - - 0 - - name: FLTLCK - description: Fault X Lock - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - name: FLTSD - description: Fault Sampling clock division - bit_offset: 24 - bit_size: 2 -fieldset/HRTIM_BDMUPR: - description: "High Resolution Timer: Burst DMA Master timer update Register" - fields: - - name: MCR - description: MCR register update enable - bit_offset: 0 - bit_size: 1 - - name: MICR - description: MICR register update enable - bit_offset: 1 - bit_size: 1 - - name: MDIER - description: MDIER register update enable - bit_offset: 2 - bit_size: 1 - - name: MCNT - description: MCNT register update enable - bit_offset: 3 - bit_size: 1 - - name: MPER - description: MPER register update enable - bit_offset: 4 - bit_size: 1 - - name: MREP - description: MREP register update enable - bit_offset: 5 - bit_size: 1 - - name: MCMP - description: MCMP register X update enable - bit_offset: 6 - bit_size: 1 - array: - len: 4 - stride: 1 -fieldset/HRTIM_BDTUPR: - description: "High Resolution Timer: Burst DMA Master timer update Register" - fields: - - name: CR - description: CR register update enable - bit_offset: 0 - bit_size: 1 - - name: ICR - description: ICR register update enable - bit_offset: 1 - bit_size: 1 - - name: DIER - description: DIER register update enable - bit_offset: 2 - bit_size: 1 - - name: CNT - description: CNT register update enable - bit_offset: 3 - bit_size: 1 - - name: PER - description: PER register update enable - bit_offset: 4 - bit_size: 1 - - name: REP - description: REP register update enable - bit_offset: 5 - bit_size: 1 - - name: CMP - description: CMP register X update enable - bit_offset: 6 - bit_size: 1 - array: - len: 4 - stride: 1 + - name: ADCMC + description: ADC trigger X on Master Compare Y + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: ADCMPER + description: ADC trigger X on Master Period + bit_offset: 4 + bit_size: 1 + - name: ADCEEV + description: ADC trigger X on External Event Y + bit_offset: 5 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: ADCTC2 + description: ADC trigger X on Timer Y Compare 2 + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - 18 + - 1 + - name: ADCTC4 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 12 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - 18 + - name: ADCTPER + description: ADC trigger X on Timer Y Period + bit_offset: 13 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 13 + - 11 + - name: ADCTC3 + description: ADC trigger X on Timer Y Compare 3 + bit_offset: 15 + bit_size: 1 + array: + offsets: + - 14 + - 0 + - name: ADCTRST + description: ADC trigger X on Timer Y Reset + bit_offset: 22 + bit_size: 1 + array: + offsets: + - 0 + - 5 + - 9 fieldset/HRTIM_BDMADR: - description: "High Resolution Timer: Burst DMA Data Register" + description: 'High Resolution Timer: Burst DMA Data Register' fields: - - name: BDMADR - description: Burst DMA Data register - bit_offset: 0 - bit_size: 31 + - name: BDMADR + description: Burst DMA Data register + bit_offset: 0 + bit_size: 31 +fieldset/HRTIM_BDMUPR: + description: 'High Resolution Timer: Burst DMA Master timer update Register' + fields: + - name: MCR + description: MCR register update enable + bit_offset: 0 + bit_size: 1 + - name: MICR + description: MICR register update enable + bit_offset: 1 + bit_size: 1 + - name: MDIER + description: MDIER register update enable + bit_offset: 2 + bit_size: 1 + - name: MCNT + description: MCNT register update enable + bit_offset: 3 + bit_size: 1 + - name: MPER + description: MPER register update enable + bit_offset: 4 + bit_size: 1 + - name: MREP + description: MREP register update enable + bit_offset: 5 + bit_size: 1 + - name: MCMP + description: MCMP register X update enable + bit_offset: 6 + bit_size: 1 + array: + len: 4 + stride: 1 +fieldset/HRTIM_BDTUPR: + description: 'High Resolution Timer: Burst DMA Master timer update Register' + fields: + - name: CR + description: CR register update enable + bit_offset: 0 + bit_size: 1 + - name: ICR + description: ICR register update enable + bit_offset: 1 + bit_size: 1 + - name: DIER + description: DIER register update enable + bit_offset: 2 + bit_size: 1 + - name: CNT + description: CNT register update enable + bit_offset: 3 + bit_size: 1 + - name: PER + description: PER register update enable + bit_offset: 4 + bit_size: 1 + - name: REP + description: REP register update enable + bit_offset: 5 + bit_size: 1 + - name: CMP + description: CMP register X update enable + bit_offset: 6 + bit_size: 1 + array: + len: 4 + stride: 1 +fieldset/HRTIM_BMCMPR: + description: 'High Resolution Timer: Burst Mode Compare Register' + fields: + - name: BMCMP + description: Burst mode compare value + bit_offset: 0 + bit_size: 16 +fieldset/HRTIM_BMCR: + description: 'High Resolution Timer: Burst Mode Control Register' + fields: + - name: BME + description: Burst Mode Enable + bit_offset: 0 + bit_size: 1 + - name: BMOM + description: Burst Mode Operating Mode + bit_offset: 1 + bit_size: 1 + - name: BMCLK + description: Burst Mode Clock source + bit_offset: 2 + bit_size: 3 + - name: BMPRSC + description: Burst Mode Prescaler + bit_offset: 6 + bit_size: 3 + - name: BMPREN + description: Burst Mode Preload Enable + bit_offset: 10 + bit_size: 1 + - name: MTBM + description: Master Timer Burst Mode + bit_offset: 16 + bit_size: 1 + - name: TBM + description: Timer X Burst Mode + bit_offset: 17 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: BMSTAT + bit_offset: 31 + bit_size: 1 +fieldset/HRTIM_BMPER: + description: 'High Resolution Timer: Burst Mode Period Register' + fields: + - name: BMPER + description: Burst mode period value + bit_offset: 0 + bit_size: 16 +fieldset/HRTIM_BMTRGR: + description: 'High Resolution Timer: Burst Mode Trigger Register' + fields: + - name: SW + description: Software start + bit_offset: 0 + bit_size: 1 + - name: MSTRST + description: Master reset or roll-over + bit_offset: 1 + bit_size: 1 + - name: MSTREP + description: Master repetition + bit_offset: 2 + bit_size: 1 + - name: MSTCMP + description: Master Compare X + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: TRST + description: Timer X reset or roll-over + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - name: TREP + description: Timer X repetition + bit_offset: 8 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - name: TCMP1 + description: Timer X compare 1 event + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 + - name: TCMP2 + description: Timer X compare 2 event + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 4 + - 8 + - 12 + - 16 +fieldset/HRTIM_CR1: + description: 'High Resolution Timer: Control Register 1' + fields: + - name: MUDIS + description: Master Update Disable + bit_offset: 0 + bit_size: 1 + - name: TUDIS + description: Timer X Update Disable + bit_offset: 1 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: ADUSRC + description: ADC Trigger X Update Source + bit_offset: 16 + bit_size: 3 + array: + len: 4 + stride: 2 +fieldset/HRTIM_CR2: + description: 'High Resolution Timer: Control Register 2' + fields: + - name: MSWU + description: Master Timer Software Update + bit_offset: 0 + bit_size: 1 + - name: TSWU + description: Timer X Software Update + bit_offset: 1 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: MRST + description: Master Counter Software Reset + bit_offset: 8 + bit_size: 1 + - name: TRST + description: Timer X Counter Software Reset + bit_offset: 9 + bit_size: 1 + array: + len: 5 + stride: 1 +fieldset/HRTIM_DLLCR: + description: 'High Resolution Timer: DLL Control Register' + fields: + - name: CAL + description: DLL Calibration Start + bit_offset: 0 + bit_size: 1 + - name: CALEN + description: DLL Calibration Enable + bit_offset: 1 + bit_size: 1 + - name: CALRTE + description: DLL Calibration Rate + bit_offset: 2 + bit_size: 2 +fieldset/HRTIM_EECR1: + description: 'High Resolution Timer: External Events Control Register 1' + fields: + - name: EESRC + description: External Event X Source + bit_offset: 0 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEPOL + description: External Event X Polarity + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EESNS + description: External Event X Sensitivity + bit_offset: 3 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEFAST + description: External Event X Fast Mode + bit_offset: 5 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 +fieldset/HRTIM_EECR2: + description: 'High Resolution Timer: External Events Control Register 2' + fields: + - name: EESRC + description: External Event X Source + bit_offset: 0 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEPOL + description: External Event X Polarity + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EESNS + description: External Event X Sensitivity + bit_offset: 3 + bit_size: 2 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 +fieldset/HRTIM_EECR3: + description: 'High Resolution Timer: External Events Control Register 2' + fields: + - name: EEF + description: External Event X filter + bit_offset: 0 + bit_size: 3 + array: + offsets: + - 0 + - 6 + - 12 + - 18 + - 24 + - name: EEVSD + description: External Event Sampling Clock Division + bit_offset: 30 + bit_size: 2 +fieldset/HRTIM_FLTINR1: + description: 'High Resolution Timer: Fault Input Register 1' + fields: + - name: FLTE + description: Fault X enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTP + description: Fault X polarity + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTSRC + description: Fault X source + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTF + description: Fault X filter + bit_offset: 3 + bit_size: 4 + array: + offsets: + - 0 + - 8 + - 16 + - 24 + - name: FLTLCK + description: Fault X Lock + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - 8 + - 16 + - 24 +fieldset/HRTIM_FLTINR2: + description: 'High Resolution Timer: Fault Input Register 2' + fields: + - name: FLTE + description: Fault X enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTP + description: Fault X polarity + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTSRC + description: Fault X source + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTF + description: Fault X filter + bit_offset: 3 + bit_size: 4 + array: + offsets: + - 0 + - name: FLTLCK + description: Fault X Lock + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - name: FLTSD + description: Fault Sampling clock division + bit_offset: 24 + bit_size: 2 +fieldset/HRTIM_ICR: + description: 'High Resolution Timer: Interrupt Clear Register' + fields: + - name: FLT + description: Fault X Interrupt Flag Clear + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SYSFLT + description: System Fault Interrupt Flag Clear + bit_offset: 5 + bit_size: 1 + - name: DLLRDY + description: DLL Ready Interrupt Flag Clear + bit_offset: 16 + bit_size: 1 + - name: BMPER + description: Burst Mode Period Interrupt Flag Clear + bit_offset: 17 + bit_size: 1 +fieldset/HRTIM_IER: + description: 'High Resolution Timer: Interrupt Enable Register' + fields: + - name: FLT + description: Fault X Interrupt Flag Enable + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SYSFLT + description: System Fault Interrupt Flag Enable + bit_offset: 5 + bit_size: 1 + - name: DLLRDY + description: DLL Ready Interrupt Flag Enable + bit_offset: 16 + bit_size: 1 + - name: BMPER + description: Burst Mode Period Interrupt Flag Enable + bit_offset: 17 + bit_size: 1 +fieldset/HRTIM_ISR: + description: 'High Resolution Timer: Interrupt Status Register' + fields: + - name: FLT + description: Fault X Interrupt Flag + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SYSFLT + description: System Fault Interrupt Flag + bit_offset: 5 + bit_size: 1 + - name: DLLRDY + description: DLL Ready Interrupt Flag + bit_offset: 16 + bit_size: 1 + - name: BMPER + description: Burst Mode Period Interrupt Flag + bit_offset: 17 + bit_size: 1 +fieldset/HRTIM_ODISR: + description: 'High Resolution Timer: Output Disable Register' + fields: + - name: T1ODIS + description: Timer X Output Disable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 + - name: T2ODIS + description: Timer X Complementary Output Disable + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 +fieldset/HRTIM_ODSR: + description: 'High Resolution Timer: Output Disable Status Register' + fields: + - name: T1ODIS + description: Timer X Output Disable Status + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 + - name: T2ODIS + description: Timer X Complementary Output Disable Status + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 +fieldset/HRTIM_OENR: + description: 'High Resolution Timer: Output Enable Register' + fields: + - name: T1OEN + description: Timer X Output Enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 + - name: T2OEN + description: Timer X Complementary Output Enable + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - 4 + - 6 + - 8 fieldset/MCMPX: description: Master Timer Compare X Register fields: - - name: MCMP - description: Master Timer Compare X value - bit_offset: 0 - bit_size: 16 + - name: MCMP + description: Master Timer Compare X value + bit_offset: 0 + bit_size: 16 fieldset/MCNTR: description: Master Timer Counter Register fields: - - name: MCNT - description: Counter value - bit_offset: 0 - bit_size: 16 + - name: MCNT + description: Counter value + bit_offset: 0 + bit_size: 16 fieldset/MCR: description: Master Timer Control Register fields: - - name: CKPSC - description: HRTIM Master Clock prescaler - bit_offset: 0 - bit_size: 3 - - name: CONT - description: Master Continuous mode - bit_offset: 3 - bit_size: 1 - - name: RETRIG - description: Master Re-triggerable mode - bit_offset: 4 - bit_size: 1 - - name: HALF - description: Half mode enable - bit_offset: 5 - bit_size: 1 - - name: SYNCIN - description: Synchronization input - bit_offset: 8 - bit_size: 2 - enum: SYNCIN - - name: SYNCRSTM - description: Synchronization Resets Master - bit_offset: 10 - bit_size: 1 - - name: SYNCSTRTM - description: Synchronization Starts Master - bit_offset: 11 - bit_size: 1 - - name: SYNCOUT - description: Synchronization output - bit_offset: 12 - bit_size: 2 - enum: SYNCOUT - - name: SYNCSRC - description: Synchronization source - bit_offset: 14 - bit_size: 2 - enum: SYNCSRC - - name: MCEN - description: Master Counter enable - bit_offset: 16 - bit_size: 1 - - name: TCEN - description: Timer X counter enable - bit_offset: 17 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: DACSYNC - description: AC Synchronization - bit_offset: 25 - bit_size: 2 - enum: DACSYNC - - name: PREEN - description: Preload enable - bit_offset: 27 - bit_size: 1 - - name: MREPU - description: Master Timer Repetition update - bit_offset: 29 - bit_size: 1 - - name: BRSTDMA - description: Burst DMA Update - bit_offset: 30 - bit_size: 2 - enum: BRSTDMA + - name: CKPSC + description: HRTIM Master Clock prescaler + bit_offset: 0 + bit_size: 3 + - name: CONT + description: Master Continuous mode + bit_offset: 3 + bit_size: 1 + - name: RETRIG + description: Master Re-triggerable mode + bit_offset: 4 + bit_size: 1 + - name: HALF + description: Half mode enable + bit_offset: 5 + bit_size: 1 + - name: SYNCIN + description: Synchronization input + bit_offset: 8 + bit_size: 2 + enum: SYNCIN + - name: SYNCRSTM + description: Synchronization Resets Master + bit_offset: 10 + bit_size: 1 + - name: SYNCSTRTM + description: Synchronization Starts Master + bit_offset: 11 + bit_size: 1 + - name: SYNCOUT + description: Synchronization output + bit_offset: 12 + bit_size: 2 + enum: SYNCOUT + - name: SYNCSRC + description: Synchronization source + bit_offset: 14 + bit_size: 2 + enum: SYNCSRC + - name: MCEN + description: Master Counter enable + bit_offset: 16 + bit_size: 1 + - name: TCEN + description: Timer X counter enable + bit_offset: 17 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: DACSYNC + description: AC Synchronization + bit_offset: 25 + bit_size: 2 + enum: DACSYNC + - name: PREEN + description: Preload enable + bit_offset: 27 + bit_size: 1 + - name: MREPU + description: Master Timer Repetition update + bit_offset: 29 + bit_size: 1 + - name: BRSTDMA + description: Burst DMA Update + bit_offset: 30 + bit_size: 2 + enum: BRSTDMA fieldset/MDIER: description: Master Timer DMA / Interrupt Enable Register fields: - - name: MCMPIE - description: Master Compare X Interrupt Enable - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: MREPIE - description: Master Repetition Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: SYNCIE - description: Sync Input Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: MUPDIE - description: Master Update Interrupt Enable - bit_offset: 6 - bit_size: 1 - - name: MCMPDE - description: Master Compare X DMA request Enable - bit_offset: 16 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: MREPDE - description: Master Repetition DMA request Enable - bit_offset: 20 - bit_size: 1 - - name: SYNCDE - description: Sync Input DMA request Enable - bit_offset: 21 - bit_size: 1 - - name: MUPDDE - description: Master Update DMA request Enable - bit_offset: 22 - bit_size: 1 + - name: MCMPIE + description: Master Compare X Interrupt Enable + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: MREPIE + description: Master Repetition Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: SYNCIE + description: Sync Input Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: MUPDIE + description: Master Update Interrupt Enable + bit_offset: 6 + bit_size: 1 + - name: MCMPDE + description: Master Compare X DMA request Enable + bit_offset: 16 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: MREPDE + description: Master Repetition DMA request Enable + bit_offset: 20 + bit_size: 1 + - name: SYNCDE + description: Sync Input DMA request Enable + bit_offset: 21 + bit_size: 1 + - name: MUPDDE + description: Master Update DMA request Enable + bit_offset: 22 + bit_size: 1 fieldset/MICR: description: Master Timer Interrupt Clear Register fields: - - name: MCMPC - description: Master Compare X Interrupt flag clear - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: MREPC - description: Repetition Interrupt flag clear - bit_offset: 4 - bit_size: 1 - - name: SYNCC - description: Sync Input Interrupt flag clear - bit_offset: 5 - bit_size: 1 - - name: MUPDC - description: Master update Interrupt flag clear - bit_offset: 6 - bit_size: 1 + - name: MCMPC + description: Master Compare X Interrupt flag clear + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: MREPC + description: Repetition Interrupt flag clear + bit_offset: 4 + bit_size: 1 + - name: SYNCC + description: Sync Input Interrupt flag clear + bit_offset: 5 + bit_size: 1 + - name: MUPDC + description: Master update Interrupt flag clear + bit_offset: 6 + bit_size: 1 fieldset/MISR: description: Master Timer Interrupt Status Register fields: - - name: MCMP - description: Master Compare X Interrupt Flag - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: EVENT - - name: MREP - description: Master Repetition Interrupt Flag - bit_offset: 4 - bit_size: 1 - enum: EVENT - - name: SYNC - description: Sync Input Interrupt Flag - bit_offset: 5 - bit_size: 1 - enum: EVENT - - name: MUPD - description: Master Update Interrupt Flag - bit_offset: 6 - bit_size: 1 - enum: EVENT + - name: MCMP + description: Master Compare X Interrupt Flag + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: EVENT + - name: MREP + description: Master Repetition Interrupt Flag + bit_offset: 4 + bit_size: 1 + enum: EVENT + - name: SYNC + description: Sync Input Interrupt Flag + bit_offset: 5 + bit_size: 1 + enum: EVENT + - name: MUPD + description: Master Update Interrupt Flag + bit_offset: 6 + bit_size: 1 + enum: EVENT fieldset/MPER: description: Master Timer Period Register fields: - - name: MPER - description: Master Timer Period value - bit_offset: 0 - bit_size: 16 + - name: MPER + description: Master Timer Period value + bit_offset: 0 + bit_size: 16 fieldset/MREP: description: Master Timer Repetition Register fields: - - name: MREP - description: Master Timer Repetition counter value - bit_offset: 0 - bit_size: 8 + - name: MREP + description: Master Timer Repetition counter value + bit_offset: 0 + bit_size: 8 fieldset/TIMXCCR: description: Timerx Capture 2 Control Register fields: - - name: SWCPT - description: Software Capture - bit_offset: 0 - bit_size: 1 - enum: CAPTUREEFFECT - - name: UPDCPT - description: Update Capture - bit_offset: 1 - bit_size: 1 - enum: CAPTUREEFFECT - - name: EXEVCPT - description: External Event X Capture - bit_offset: 2 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: CAPTUREEFFECT - - name: TXSET - description: Timer X output Set - bit_offset: 16 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TXRST - description: Timer X output Reset - bit_offset: 17 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TXCMP - description: Timer X Compare X - bit_offset: 18 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT - - name: TYSET - description: Timer Y output Set - bit_offset: 20 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TYRST - description: Timer Y output Reset - bit_offset: 21 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TYCMP - description: Timer Y Compare X - bit_offset: 22 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT - - name: TZSET - description: Timer Z output Set - bit_offset: 24 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TZRST - description: Timer Z output Reset - bit_offset: 25 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TZCMP - description: Timer Z Compare X - bit_offset: 26 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT - - name: TTSET - description: Timer T output Set - bit_offset: 28 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TTRST - description: Timer T output Reset - bit_offset: 29 - bit_size: 1 - enum: CAPTUREEFFECT - - name: TTCMP - description: Timer T Compare X - bit_offset: 30 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CAPTUREEFFECT + - name: SWCPT + description: Software Capture + bit_offset: 0 + bit_size: 1 + enum: CAPTUREEFFECT + - name: UPDCPT + description: Update Capture + bit_offset: 1 + bit_size: 1 + enum: CAPTUREEFFECT + - name: EXEVCPT + description: External Event X Capture + bit_offset: 2 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: CAPTUREEFFECT + - name: TXSET + description: Timer X output Set + bit_offset: 16 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TXRST + description: Timer X output Reset + bit_offset: 17 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TXCMP + description: Timer X Compare X + bit_offset: 18 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT + - name: TYSET + description: Timer Y output Set + bit_offset: 20 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TYRST + description: Timer Y output Reset + bit_offset: 21 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TYCMP + description: Timer Y Compare X + bit_offset: 22 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT + - name: TZSET + description: Timer Z output Set + bit_offset: 24 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TZRST + description: Timer Z output Reset + bit_offset: 25 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TZCMP + description: Timer Z Compare X + bit_offset: 26 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT + - name: TTSET + description: Timer T output Set + bit_offset: 28 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TTRST + description: Timer T output Reset + bit_offset: 29 + bit_size: 1 + enum: CAPTUREEFFECT + - name: TTCMP + description: Timer T Compare X + bit_offset: 30 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CAPTUREEFFECT fieldset/TIMXCHP: description: Timerx Chopper Register fields: - - name: CARFRQ - description: Timerx carrier frequency value - bit_offset: 0 - bit_size: 4 - - name: CARDTY - description: Timerx chopper duty cycle value - bit_offset: 4 - bit_size: 3 - - name: STRTPW - description: Timerx start pulsewidth - bit_offset: 7 - bit_size: 4 + - name: CARFRQ + description: Timerx carrier frequency value + bit_offset: 0 + bit_size: 4 + - name: CARDTY + description: Timerx chopper duty cycle value + bit_offset: 4 + bit_size: 3 + - name: STRTPW + description: Timerx start pulsewidth + bit_offset: 7 + bit_size: 4 fieldset/TIMXCMP: description: Timerx Compare X Register fields: - - name: CMP - description: Timerx Compare X value - bit_offset: 0 - bit_size: 16 + - name: CMP + description: Timerx Compare X value + bit_offset: 0 + bit_size: 16 fieldset/TIMXCMPC: description: Timerx Compare X Compound Register fields: - - name: CMP - description: Timerx Compare X value - bit_offset: 0 - bit_size: 16 - - name: REP - description: Timerx Repetition value (aliased from HRTIM_REPx register) - bit_offset: 16 - bit_size: 8 + - name: CMP + description: Timerx Compare X value + bit_offset: 0 + bit_size: 16 + - name: REP + description: Timerx Repetition value (aliased from HRTIM_REPx register) + bit_offset: 16 + bit_size: 8 fieldset/TIMXCNT: description: Timerx Counter Register fields: - - name: CNT - description: Timerx Counter value - bit_offset: 0 - bit_size: 16 + - name: CNT + description: Timerx Counter value + bit_offset: 0 + bit_size: 16 fieldset/TIMXCPT: description: Timerx Capture X Register fields: - - name: CPT - description: Timerx Capture X value - bit_offset: 0 - bit_size: 16 + - name: CPT + description: Timerx Capture X value + bit_offset: 0 + bit_size: 16 fieldset/TIMXCR: description: Timerx Control Register fields: - - name: CKPSC - description: HRTIM Timer x Clock prescaler - bit_offset: 0 - bit_size: 3 - - name: CONT - description: Continuous mode - bit_offset: 3 - bit_size: 1 - - name: RETRIG - description: Re-triggerable mode - bit_offset: 4 - bit_size: 1 - - name: HALF - description: Half mode enable - bit_offset: 5 - bit_size: 1 - - name: PSHPLL - description: Push-Pull mode enable - bit_offset: 6 - bit_size: 1 - - name: SYNCRST - description: Synchronization Resets Timer X - bit_offset: 10 - bit_size: 1 - enum: SYNCRST - - name: SYNCSTRT - description: Synchronization Starts Timer X - bit_offset: 11 - bit_size: 1 - enum: SYNCSTRT - - name: DELCMP2 - description: Delayed CMP2 mode - bit_offset: 12 - bit_size: 2 - enum: DELCMP - - name: DELCMP4 - description: Delayed CMP4 mode - bit_offset: 14 - bit_size: 2 - enum: DELCMP - - name: REPU - description: Timer X Repetition update - bit_offset: 17 - bit_size: 1 - - name: RSTU - description: Timer X reset update - bit_offset: 18 - bit_size: 1 - - name: TAU - description: Timer A update - bit_offset: 19 - bit_size: 1 - - name: TBU - description: Timer B update - bit_offset: 20 - bit_size: 1 - - name: TCU - description: Timer C update - bit_offset: 21 - bit_size: 1 - - name: TDU - description: Timer D update - bit_offset: 22 - bit_size: 1 - - name: TEU - description: Timer E update - bit_offset: 23 - bit_size: 1 - - name: MSTU - description: Master Timer update - bit_offset: 24 - bit_size: 1 - - name: DACSYNC - description: AC Synchronization - bit_offset: 25 - bit_size: 2 - enum: DACSYNC - - name: PREEN - description: Preload enable - bit_offset: 27 - bit_size: 1 - - name: UPDGAT - description: Update Gating - bit_offset: 28 - bit_size: 4 - enum: UPDGAT + - name: CKPSC + description: HRTIM Timer x Clock prescaler + bit_offset: 0 + bit_size: 3 + - name: CONT + description: Continuous mode + bit_offset: 3 + bit_size: 1 + - name: RETRIG + description: Re-triggerable mode + bit_offset: 4 + bit_size: 1 + - name: HALF + description: Half mode enable + bit_offset: 5 + bit_size: 1 + - name: PSHPLL + description: Push-Pull mode enable + bit_offset: 6 + bit_size: 1 + - name: SYNCRST + description: Synchronization Resets Timer X + bit_offset: 10 + bit_size: 1 + enum: SYNCRST + - name: SYNCSTRT + description: Synchronization Starts Timer X + bit_offset: 11 + bit_size: 1 + enum: SYNCSTRT + - name: DELCMP2 + description: Delayed CMP2 mode + bit_offset: 12 + bit_size: 2 + enum: DELCMP + - name: DELCMP4 + description: Delayed CMP4 mode + bit_offset: 14 + bit_size: 2 + enum: DELCMP + - name: REPU + description: Timer X Repetition update + bit_offset: 17 + bit_size: 1 + - name: RSTU + description: Timer X reset update + bit_offset: 18 + bit_size: 1 + - name: TAU + description: Timer A update + bit_offset: 19 + bit_size: 1 + - name: TBU + description: Timer B update + bit_offset: 20 + bit_size: 1 + - name: TCU + description: Timer C update + bit_offset: 21 + bit_size: 1 + - name: TDU + description: Timer D update + bit_offset: 22 + bit_size: 1 + - name: TEU + description: Timer E update + bit_offset: 23 + bit_size: 1 + - name: MSTU + description: Master Timer update + bit_offset: 24 + bit_size: 1 + - name: DACSYNC + description: AC Synchronization + bit_offset: 25 + bit_size: 2 + enum: DACSYNC + - name: PREEN + description: Preload enable + bit_offset: 27 + bit_size: 1 + - name: UPDGAT + description: Update Gating + bit_offset: 28 + bit_size: 4 + enum: UPDGAT fieldset/TIMXDIER: description: Timerx DMA / Interrupt Enable Register fields: - - name: CMPIE - description: Compare X Interrupt Enable - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: REPIE - description: Repetition Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: UPDIE - description: Update Interrupt Enable - bit_offset: 6 - bit_size: 1 - - name: CPTIE - description: Capture Interrupt Enable - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SETRIE - description: Output X Set Interrupt Enable - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTRIE - description: Output X Reset Interrupt Enable - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTIE - description: Reset/roll-over Interrupt Enable - bit_offset: 13 - bit_size: 1 - - name: DLYPRTIE - description: Delayed Protection Interrupt Enable - bit_offset: 14 - bit_size: 1 - - name: CMPDE - description: Compare X DMA request Enable - bit_offset: 16 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: REPDE - description: Repetition DMA request Enable - bit_offset: 20 - bit_size: 1 - - name: UPDDE - description: Update DMA request Enable - bit_offset: 22 - bit_size: 1 - - name: CPTDE - description: Capture X DMA request Enable - bit_offset: 23 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SETRDE - description: Output X Set DMA request Enable - bit_offset: 25 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTRDE - description: Output X Reset DMA request Enable - bit_offset: 26 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTDE - description: Reset/roll-over DMA request Enable - bit_offset: 29 - bit_size: 1 - - name: DLYPRTDE - description: Delayed Protection DMA request Enable - bit_offset: 30 - bit_size: 1 + - name: CMPIE + description: Compare X Interrupt Enable + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: REPIE + description: Repetition Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: UPDIE + description: Update Interrupt Enable + bit_offset: 6 + bit_size: 1 + - name: CPTIE + description: Capture Interrupt Enable + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SETRIE + description: Output X Set Interrupt Enable + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTRIE + description: Output X Reset Interrupt Enable + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTIE + description: Reset/roll-over Interrupt Enable + bit_offset: 13 + bit_size: 1 + - name: DLYPRTIE + description: Delayed Protection Interrupt Enable + bit_offset: 14 + bit_size: 1 + - name: CMPDE + description: Compare X DMA request Enable + bit_offset: 16 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: REPDE + description: Repetition DMA request Enable + bit_offset: 20 + bit_size: 1 + - name: UPDDE + description: Update DMA request Enable + bit_offset: 22 + bit_size: 1 + - name: CPTDE + description: Capture X DMA request Enable + bit_offset: 23 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SETRDE + description: Output X Set DMA request Enable + bit_offset: 25 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTRDE + description: Output X Reset DMA request Enable + bit_offset: 26 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTDE + description: Reset/roll-over DMA request Enable + bit_offset: 29 + bit_size: 1 + - name: DLYPRTDE + description: Delayed Protection DMA request Enable + bit_offset: 30 + bit_size: 1 fieldset/TIMXDT: description: Timerx Deadtime Register fields: - - name: DTR - description: Deadtime Rising value - bit_offset: 0 - bit_size: 9 - - name: SDTR - description: Sign Deadtime Rising value - bit_offset: 9 - bit_size: 1 - enum: SDTR - - name: DTPRSC - description: Deadtime Prescaler - bit_offset: 10 - bit_size: 3 - - name: DTRSLK - description: Deadtime Rising Sign Lock - bit_offset: 14 - bit_size: 1 - enum: LOCKED - - name: DTRLK - description: Deadtime Rising Lock - bit_offset: 15 - bit_size: 1 - enum: LOCKED - - name: DTF - description: Deadtime Falling value - bit_offset: 16 - bit_size: 9 - - name: SDTF - description: Sign Deadtime Falling value - bit_offset: 25 - bit_size: 1 - enum: SDTF - - name: DTFSLK - description: Deadtime Falling Sign Lock - bit_offset: 30 - bit_size: 1 - enum: LOCKED - - name: DTFLK - description: Deadtime Falling Lock - bit_offset: 31 - bit_size: 1 - enum: LOCKED + - name: DTR + description: Deadtime Rising value + bit_offset: 0 + bit_size: 9 + - name: SDTR + description: Sign Deadtime Rising value + bit_offset: 9 + bit_size: 1 + enum: SDTR + - name: DTPRSC + description: Deadtime Prescaler + bit_offset: 10 + bit_size: 3 + - name: DTRSLK + description: Deadtime Rising Sign Lock + bit_offset: 14 + bit_size: 1 + enum: LOCKED + - name: DTRLK + description: Deadtime Rising Lock + bit_offset: 15 + bit_size: 1 + enum: LOCKED + - name: DTF + description: Deadtime Falling value + bit_offset: 16 + bit_size: 9 + - name: SDTF + description: Sign Deadtime Falling value + bit_offset: 25 + bit_size: 1 + enum: SDTF + - name: DTFSLK + description: Deadtime Falling Sign Lock + bit_offset: 30 + bit_size: 1 + enum: LOCKED + - name: DTFLK + description: Deadtime Falling Lock + bit_offset: 31 + bit_size: 1 + enum: LOCKED fieldset/TIMXEEF: description: Timer X External Event Filtering Register fields: - - name: LTCH - description: External Event X latch - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 6 - - name: FLTR - description: External Event X filter - bit_offset: 1 - bit_size: 4 - array: - len: 5 - stride: 6 - enum: EEFLTR + - name: LTCH + description: External Event X latch + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 6 + - name: FLTR + description: External Event X filter + bit_offset: 1 + bit_size: 4 + array: + len: 5 + stride: 6 + enum: EEFLTR fieldset/TIMXFLT: description: Timerx Fault Register fields: - - name: FLTEN - description: Fault X enable - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - enum: FLTEN - - name: FLTLCK - description: Fault sources Lock - bit_offset: 31 - bit_size: 1 - enum: LOCKED + - name: FLTEN + description: Fault X enable + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + enum: FLTEN + - name: FLTLCK + description: Fault sources Lock + bit_offset: 31 + bit_size: 1 + enum: LOCKED fieldset/TIMXICR: description: Timerx Interrupt Clear Register fields: - - name: CMPC - description: Compare X Interrupt flag Clear - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: REPC - description: Repetition Interrupt flag Clear - bit_offset: 4 - bit_size: 1 - - name: UPDC - description: Update Interrupt flag Clear - bit_offset: 6 - bit_size: 1 - - name: CPTC - description: Capture X Interrupt flag Clear - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SETRC - description: Output X Set flag Clear - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTRC - description: Output X Reset flag Clear - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 2 - - name: RSTC - description: Reset Interrupt flag Clear - bit_offset: 13 - bit_size: 1 - - name: DLYPRTC - description: Delayed Protection Flag Clear - bit_offset: 14 - bit_size: 1 + - name: CMPC + description: Compare X Interrupt flag Clear + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: REPC + description: Repetition Interrupt flag Clear + bit_offset: 4 + bit_size: 1 + - name: UPDC + description: Update Interrupt flag Clear + bit_offset: 6 + bit_size: 1 + - name: CPTC + description: Capture X Interrupt flag Clear + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SETRC + description: Output X Set flag Clear + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTRC + description: Output X Reset flag Clear + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 2 + - name: RSTC + description: Reset Interrupt flag Clear + bit_offset: 13 + bit_size: 1 + - name: DLYPRTC + description: Delayed Protection Flag Clear + bit_offset: 14 + bit_size: 1 fieldset/TIMXISR: description: Timerx Interrupt Status Register fields: - - name: CMP - description: Compare X Interrupt Flag - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: EVENT - - name: REP - description: Repetition Interrupt Flag - bit_offset: 4 - bit_size: 1 - enum: EVENT - - name: UPD - description: Update Interrupt Flag - bit_offset: 6 - bit_size: 1 - enum: EVENT - - name: CPT - description: Capture X Interrupt Flag - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: EVENT - - name: SETR - description: Output X Set Interrupt Flag - bit_offset: 9 - bit_size: 1 - array: - offsets: - - 0 - - 2 - enum: EVENT - - name: RSTR - description: Output X Reset Interrupt Flag - bit_offset: 10 - bit_size: 1 - array: - offsets: - - 0 - - 2 - enum: EVENT - - name: RST - description: Reset Interrupt Flag - bit_offset: 13 - bit_size: 1 - enum: EVENT - - name: DLYPRT - description: Delayed Protection Flag - bit_offset: 14 - bit_size: 1 - enum: TIMAISR_DLYPRT - - name: CPPSTAT - description: Current Push Pull Status - bit_offset: 16 - bit_size: 1 - enum: CPPSTAT - - name: IPPSTAT - description: Idle Push Pull Status - bit_offset: 17 - bit_size: 1 - enum: IPPSTAT - - name: OSTAT - description: Output X State - bit_offset: 18 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: OUTPUTSTATE - - name: OCPY - description: Output X Copy - bit_offset: 20 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: OUTPUTSTATE + - name: CMP + description: Compare X Interrupt Flag + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: EVENT + - name: REP + description: Repetition Interrupt Flag + bit_offset: 4 + bit_size: 1 + enum: EVENT + - name: UPD + description: Update Interrupt Flag + bit_offset: 6 + bit_size: 1 + enum: EVENT + - name: CPT + description: Capture X Interrupt Flag + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: EVENT + - name: SETR + description: Output X Set Interrupt Flag + bit_offset: 9 + bit_size: 1 + array: + offsets: + - 0 + - 2 + enum: EVENT + - name: RSTR + description: Output X Reset Interrupt Flag + bit_offset: 10 + bit_size: 1 + array: + offsets: + - 0 + - 2 + enum: EVENT + - name: RST + description: Reset Interrupt Flag + bit_offset: 13 + bit_size: 1 + enum: EVENT + - name: DLYPRT + description: Delayed Protection Flag + bit_offset: 14 + bit_size: 1 + enum: TIMAISR_DLYPRT + - name: CPPSTAT + description: Current Push Pull Status + bit_offset: 16 + bit_size: 1 + enum: CPPSTAT + - name: IPPSTAT + description: Idle Push Pull Status + bit_offset: 17 + bit_size: 1 + enum: IPPSTAT + - name: OSTAT + description: Output X State + bit_offset: 18 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: OUTPUTSTATE + - name: OCPY + description: Output X Copy + bit_offset: 20 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: OUTPUTSTATE fieldset/TIMXOUTR: description: Timerx Output Register fields: - - name: POL - description: Output 1 polarity - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 16 - enum: POL - - name: IDLEM - description: Output X Idle mode - bit_offset: 2 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: IDLES - description: Output X Idle State - bit_offset: 3 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: FAULTX - description: Output X Fault state - bit_offset: 4 - bit_size: 2 - array: - offsets: - - 0 - - 16 - enum: FAULT - - name: CHP - description: Output X Chopper enable - bit_offset: 6 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: DIDL - description: Output X Deadtime upon burst mode Idle entry - bit_offset: 7 - bit_size: 1 - array: - offsets: - - 0 - - 16 - - name: DTEN - description: Deadtime enable - bit_offset: 8 - bit_size: 1 - - name: DLYPRTEN - description: Delayed Protection Enable - bit_offset: 9 - bit_size: 1 - - name: DLYPRT - description: Delayed Protection - bit_offset: 10 - bit_size: 3 - enum: DLYPRT + - name: POL + description: Output 1 polarity + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 16 + enum: POL + - name: IDLEM + description: Output X Idle mode + bit_offset: 2 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: IDLES + description: Output X Idle State + bit_offset: 3 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: FAULTX + description: Output X Fault state + bit_offset: 4 + bit_size: 2 + array: + offsets: + - 0 + - 16 + enum: FAULT + - name: CHP + description: Output X Chopper enable + bit_offset: 6 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: DIDL + description: Output X Deadtime upon burst mode Idle entry + bit_offset: 7 + bit_size: 1 + array: + offsets: + - 0 + - 16 + - name: DTEN + description: Deadtime enable + bit_offset: 8 + bit_size: 1 + - name: DLYPRTEN + description: Delayed Protection Enable + bit_offset: 9 + bit_size: 1 + - name: DLYPRT + description: Delayed Protection + bit_offset: 10 + bit_size: 3 + enum: DLYPRT fieldset/TIMXPER: description: Timerx Period Register fields: - - name: PER - description: Timerx Period value - bit_offset: 0 - bit_size: 16 + - name: PER + description: Timerx Period value + bit_offset: 0 + bit_size: 16 fieldset/TIMXREP: description: Timerx Repetition Register fields: - - name: REP - description: Timerx Repetition counter value - bit_offset: 0 - bit_size: 8 + - name: REP + description: Timerx Repetition counter value + bit_offset: 0 + bit_size: 8 fieldset/TIMXRST: description: Timerx Reset Register fields: - - name: UPDT - description: Timer X Update reset - bit_offset: 1 - bit_size: 1 - enum: RESETEFFECT - - name: CMP - description: Timer X compare X reset - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: RESETEFFECT - - name: MSTPER - description: Master timer Period - bit_offset: 4 - bit_size: 1 - enum: RESETEFFECT - - name: MSTCMP - description: Master compare X - bit_offset: 5 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: RESETEFFECT - - name: EXTEVNT - description: External Event X - bit_offset: 9 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: RESETEFFECT - - name: TCMP1 - description: Timer X compare 1 event - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 19 - - 22 - - 25 - - 28 - - 0 - enum: RESETEFFECT - - name: TCMP2 - description: Timer X compare 2 event - bit_offset: 20 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 6 - - 9 - - 11 - enum: RESETEFFECT - - name: TCMP4 - description: Timer X compare 4 event - bit_offset: 21 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 6 - - 9 - enum: RESETEFFECT + - name: TCMP1 + description: Timer X compare 1 event + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 19 + - 22 + - 25 + - 28 + - 0 + enum: RESETEFFECT + - name: UPDT + description: Timer X Update reset + bit_offset: 1 + bit_size: 1 + enum: RESETEFFECT + - name: CMP + description: Timer X compare X reset + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: RESETEFFECT + - name: MSTPER + description: Master timer Period + bit_offset: 4 + bit_size: 1 + enum: RESETEFFECT + - name: MSTCMP + description: Master compare X + bit_offset: 5 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: RESETEFFECT + - name: EXTEVNT + description: External Event X + bit_offset: 9 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: RESETEFFECT + - name: TCMP2 + description: Timer X compare 2 event + bit_offset: 20 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 6 + - 9 + - 11 + enum: RESETEFFECT + - name: TCMP4 + description: Timer X compare 4 event + bit_offset: 21 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 6 + - 9 + enum: RESETEFFECT fieldset/TIMXRSTR: description: Timerx OutputX Reset Register fields: - - name: SRT - description: Software Reset trigger - bit_offset: 0 - bit_size: 1 - enum: INACTIVEEFFECT - - name: RESYNC - description: Timer X resynchronizaton - bit_offset: 1 - bit_size: 1 - enum: INACTIVEEFFECT - - name: PER - description: Timer X Period - bit_offset: 2 - bit_size: 1 - enum: INACTIVEEFFECT - - name: CMP - description: Timer X compare X - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: INACTIVEEFFECT - - name: MSTPER - description: Master Period - bit_offset: 7 - bit_size: 1 - enum: INACTIVEEFFECT - - name: MSTCMP - description: Master Compare X - bit_offset: 8 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: INACTIVEEFFECT - - name: TIMEVNT - description: Timer Event X - bit_offset: 12 - bit_size: 1 - array: - len: 9 - stride: 1 - enum: INACTIVEEFFECT - - name: EXTEVNT - description: External Event X - bit_offset: 21 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: INACTIVEEFFECT - - name: UPDATE - description: Registers update (transfer preload to active) - bit_offset: 31 - bit_size: 1 - enum: INACTIVEEFFECT + - name: SRT + description: Software Reset trigger + bit_offset: 0 + bit_size: 1 + enum: INACTIVEEFFECT + - name: RESYNC + description: Timer X resynchronizaton + bit_offset: 1 + bit_size: 1 + enum: INACTIVEEFFECT + - name: PER + description: Timer X Period + bit_offset: 2 + bit_size: 1 + enum: INACTIVEEFFECT + - name: CMP + description: Timer X compare X + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: INACTIVEEFFECT + - name: MSTPER + description: Master Period + bit_offset: 7 + bit_size: 1 + enum: INACTIVEEFFECT + - name: MSTCMP + description: Master Compare X + bit_offset: 8 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: INACTIVEEFFECT + - name: TIMEVNT + description: Timer Event X + bit_offset: 12 + bit_size: 1 + array: + len: 9 + stride: 1 + enum: INACTIVEEFFECT + - name: EXTEVNT + description: External Event X + bit_offset: 21 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: INACTIVEEFFECT + - name: UPDATE + description: Registers update (transfer preload to active) + bit_offset: 31 + bit_size: 1 + enum: INACTIVEEFFECT fieldset/TIMXSETR: description: Timerx OutputX Set Register fields: - - name: SST - description: Software Set trigger - bit_offset: 0 - bit_size: 1 - enum: ACTIVEEFFECT - - name: RESYNC - description: Timer X resynchronizaton - bit_offset: 1 - bit_size: 1 - enum: ACTIVEEFFECT - - name: PER - description: Timer X Period - bit_offset: 2 - bit_size: 1 - enum: ACTIVEEFFECT - - name: CMP - description: Timer X compare X - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: ACTIVEEFFECT - - name: MSTPER - description: Master Period - bit_offset: 7 - bit_size: 1 - enum: ACTIVEEFFECT - - name: MSTCMPX - description: Master Compare X - bit_offset: 8 - bit_size: 1 - array: - len: 4 - stride: 1 - enum: ACTIVEEFFECT - - name: TIMEVNT - description: Timer Event X - bit_offset: 12 - bit_size: 1 - array: - len: 9 - stride: 1 - enum: ACTIVEEFFECT - - name: EXTEVNT - description: External Event X - bit_offset: 21 - bit_size: 1 - array: - len: 10 - stride: 1 - enum: ACTIVEEFFECT - - name: UPDATE - description: Registers update (transfer preload to active) - bit_offset: 31 - bit_size: 1 - enum: ACTIVEEFFECT + - name: SST + description: Software Set trigger + bit_offset: 0 + bit_size: 1 + enum: ACTIVEEFFECT + - name: RESYNC + description: Timer X resynchronizaton + bit_offset: 1 + bit_size: 1 + enum: ACTIVEEFFECT + - name: PER + description: Timer X Period + bit_offset: 2 + bit_size: 1 + enum: ACTIVEEFFECT + - name: CMP + description: Timer X compare X + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: ACTIVEEFFECT + - name: MSTPER + description: Master Period + bit_offset: 7 + bit_size: 1 + enum: ACTIVEEFFECT + - name: MSTCMPX + description: Master Compare X + bit_offset: 8 + bit_size: 1 + array: + len: 4 + stride: 1 + enum: ACTIVEEFFECT + - name: TIMEVNT + description: Timer Event X + bit_offset: 12 + bit_size: 1 + array: + len: 9 + stride: 1 + enum: ACTIVEEFFECT + - name: EXTEVNT + description: External Event X + bit_offset: 21 + bit_size: 1 + array: + len: 10 + stride: 1 + enum: ACTIVEEFFECT + - name: UPDATE + description: Registers update (transfer preload to active) + bit_offset: 31 + bit_size: 1 + enum: ACTIVEEFFECT enum/ACTIVEEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer event has no effect - value: 0 - - name: SetActive - description: Timer event forces the output to its active state - value: 1 + - name: NoEffect + description: Timer event has no effect + value: 0 + - name: SetActive + description: Timer event forces the output to its active state + value: 1 enum/BRSTDMA: bit_size: 2 variants: - - name: Independent - description: Update done independently from the DMA burst transfer completion - value: 0 - - name: Completion - description: Update done when the DMA burst transfer is completed - value: 1 - - name: Rollover - description: Update done on master timer roll-over following a DMA burst transfer completion - value: 2 + - name: Independent + description: Update done independently from the DMA burst transfer completion + value: 0 + - name: Completion + description: Update done when the DMA burst transfer is completed + value: 1 + - name: Rollover + description: Update done on master timer roll-over following a DMA burst transfer completion + value: 2 enum/CAPTUREEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer event has no effect - value: 0 - - name: TriggerCapture - description: Timer event triggers capture - value: 1 + - name: NoEffect + description: Timer event has no effect + value: 0 + - name: TriggerCapture + description: Timer event triggers capture + value: 1 enum/CPPSTAT: bit_size: 1 variants: - - name: Output1Active - description: Signal applied on output 1 and output 2 forced inactive - value: 0 - - name: Output2Active - description: Signal applied on output 2 and output 1 forced inactive - value: 1 + - name: Output1Active + description: Signal applied on output 1 and output 2 forced inactive + value: 0 + - name: Output2Active + description: Signal applied on output 2 and output 1 forced inactive + value: 1 enum/DACSYNC: bit_size: 2 variants: - - name: Disabled - description: No DAC trigger generated - value: 0 - - name: DACSync1 - description: Trigger generated on DACSync1 - value: 1 - - name: DACSync2 - description: Trigger generated on DACSync2 - value: 2 - - name: DACSync3 - description: Trigger generated on DACSync3 - value: 3 + - name: Disabled + description: No DAC trigger generated + value: 0 + - name: DACSync1 + description: Trigger generated on DACSync1 + value: 1 + - name: DACSync2 + description: Trigger generated on DACSync2 + value: 2 + - name: DACSync3 + description: Trigger generated on DACSync3 + value: 3 enum/DELCMP: bit_size: 2 variants: - - name: Standard - description: CMP register is always active (standard compare mode) - value: 0 - - name: Capture1 - description: CMP is recomputed and is active following a capture 1 event - value: 1 - - name: CaptureX_Compare1 - description: CMP is recomputed and is active following a capture 1 event or a Compare 1 match - value: 2 - - name: CaptureX_Compare3 - description: CMP is recomputed and is active following a capture 1 event or a Compare 3 match - value: 3 + - name: Standard + description: CMP register is always active (standard compare mode) + value: 0 + - name: Capture1 + description: CMP is recomputed and is active following a capture 1 event + value: 1 + - name: CaptureX_Compare1 + description: CMP is recomputed and is active following a capture 1 event or a Compare 1 match + value: 2 + - name: CaptureX_Compare3 + description: CMP is recomputed and is active following a capture 1 event or a Compare 3 match + value: 3 enum/DLYPRT: bit_size: 3 variants: - - name: Output1_EE6 - description: Output 1 delayed idle on external event 6 - value: 0 - - name: Output2_EE6 - description: Output 2 delayed idle on external event 6 - value: 1 - - name: Output1_2_EE6 - description: Output 1 and 2 delayed idle on external event 6 - value: 2 - - name: Balanced_EE6 - description: Balanced idle on external event 6 - value: 3 - - name: Output1_EE7 - description: Output 1 delayed idle on external event 7 - value: 4 - - name: Output2_EE7 - description: Output 2 delayed idle on external event 7 - value: 5 - - name: Output1_2_EE7 - description: Output 1 and 2 delayed idle on external event 7 - value: 6 - - name: Balanced_EE7 - description: Balanced idle on external event 7 - value: 7 + - name: Output1_EE6 + description: Output 1 delayed idle on external event 6 + value: 0 + - name: Output2_EE6 + description: Output 2 delayed idle on external event 6 + value: 1 + - name: Output1_2_EE6 + description: Output 1 and 2 delayed idle on external event 6 + value: 2 + - name: Balanced_EE6 + description: Balanced idle on external event 6 + value: 3 + - name: Output1_EE7 + description: Output 1 delayed idle on external event 7 + value: 4 + - name: Output2_EE7 + description: Output 2 delayed idle on external event 7 + value: 5 + - name: Output1_2_EE7 + description: Output 1 and 2 delayed idle on external event 7 + value: 6 + - name: Balanced_EE7 + description: Balanced idle on external event 7 + value: 7 enum/EEFLTR: bit_size: 4 variants: - - name: Disabled - description: No filtering - value: 0 - - name: BlankResetToCompare1 - description: Blanking from counter reset/roll-over to Compare 1 - value: 1 - - name: BlankResetToCompare2 - description: Blanking from counter reset/roll-over to Compare 2 - value: 2 - - name: BlankResetToCompare3 - description: Blanking from counter reset/roll-over to Compare 3 - value: 3 - - name: BlankResetToCompare4 - description: Blanking from counter reset/roll-over to Compare 4 - value: 4 - - name: BlankTIMFLTR1 - description: "Blanking from another timing unit: TIMFLTR1 source" - value: 5 - - name: BlankTIMFLTR2 - description: "Blanking from another timing unit: TIMFLTR2 source" - value: 6 - - name: BlankTIMFLTR3 - description: "Blanking from another timing unit: TIMFLTR3 source" - value: 7 - - name: BlankTIMFLTR4 - description: "Blanking from another timing unit: TIMFLTR4 source" - value: 8 - - name: BlankTIMFLTR5 - description: "Blanking from another timing unit: TIMFLTR5 source" - value: 9 - - name: BlankTIMFLTR6 - description: "Blanking from another timing unit: TIMFLTR6 source" - value: 10 - - name: BlankTIMFLTR7 - description: "Blanking from another timing unit: TIMFLTR7 source" - value: 11 - - name: BlankTIMFLTR8 - description: "Blanking from another timing unit: TIMFLTR8 source" - value: 12 - - name: WindowResetToCompare2 - description: Windowing from counter reset/roll-over to compare 2 - value: 13 - - name: WindowResetToCompare3 - description: Windowing from counter reset/roll-over to compare 3 - value: 14 - - name: WindowTIMWIN - description: "Windowing from another timing unit: TIMWIN source" - value: 15 + - name: Disabled + description: No filtering + value: 0 + - name: BlankResetToCompare1 + description: Blanking from counter reset/roll-over to Compare 1 + value: 1 + - name: BlankResetToCompare2 + description: Blanking from counter reset/roll-over to Compare 2 + value: 2 + - name: BlankResetToCompare3 + description: Blanking from counter reset/roll-over to Compare 3 + value: 3 + - name: BlankResetToCompare4 + description: Blanking from counter reset/roll-over to Compare 4 + value: 4 + - name: BlankTIMFLTR1 + description: 'Blanking from another timing unit: TIMFLTR1 source' + value: 5 + - name: BlankTIMFLTR2 + description: 'Blanking from another timing unit: TIMFLTR2 source' + value: 6 + - name: BlankTIMFLTR3 + description: 'Blanking from another timing unit: TIMFLTR3 source' + value: 7 + - name: BlankTIMFLTR4 + description: 'Blanking from another timing unit: TIMFLTR4 source' + value: 8 + - name: BlankTIMFLTR5 + description: 'Blanking from another timing unit: TIMFLTR5 source' + value: 9 + - name: BlankTIMFLTR6 + description: 'Blanking from another timing unit: TIMFLTR6 source' + value: 10 + - name: BlankTIMFLTR7 + description: 'Blanking from another timing unit: TIMFLTR7 source' + value: 11 + - name: BlankTIMFLTR8 + description: 'Blanking from another timing unit: TIMFLTR8 source' + value: 12 + - name: WindowResetToCompare2 + description: Windowing from counter reset/roll-over to compare 2 + value: 13 + - name: WindowResetToCompare3 + description: Windowing from counter reset/roll-over to compare 3 + value: 14 + - name: WindowTIMWIN + description: 'Windowing from another timing unit: TIMWIN source' + value: 15 enum/EVENT: bit_size: 1 variants: - - name: NoEvent - description: No compare interrupt occurred - value: 0 - - name: Event - description: Compare interrupt occurred - value: 1 + - name: NoEvent + description: No compare interrupt occurred + value: 0 + - name: Event + description: Compare interrupt occurred + value: 1 enum/FAULT: bit_size: 2 variants: - - name: Disabled - description: "No action: the output is not affected by the fault input and stays in run mode" - value: 0 - - name: SetActive - description: Output goes to active state after a fault event - value: 1 - - name: SetInactive - description: Output goes to inactive state after a fault event - value: 2 - - name: SetHighZ - description: Output goes to high-z state after a fault event - value: 3 + - name: Disabled + description: 'No action: the output is not affected by the fault input and stays in run mode' + value: 0 + - name: SetActive + description: Output goes to active state after a fault event + value: 1 + - name: SetInactive + description: Output goes to inactive state after a fault event + value: 2 + - name: SetHighZ + description: Output goes to high-z state after a fault event + value: 3 enum/FLTEN: bit_size: 1 variants: - - name: Ignored - description: Fault input ignored - value: 0 - - name: Active - description: Fault input is active and can disable HRTIM outputs - value: 1 + - name: Ignored + description: Fault input ignored + value: 0 + - name: Active + description: Fault input is active and can disable HRTIM outputs + value: 1 enum/INACTIVEEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer event has no effect - value: 0 - - name: SetInactive - description: Timer event forces the output to its inactive state - value: 1 + - name: NoEffect + description: Timer event has no effect + value: 0 + - name: SetInactive + description: Timer event forces the output to its inactive state + value: 1 enum/IPPSTAT: bit_size: 1 variants: - - name: Output1Active - description: Protection occurred when the output 1 was active and output 2 forced inactive - value: 0 - - name: Output2Active - description: Protection occurred when the output 2 was active and output 1 forced inactive - value: 1 + - name: Output1Active + description: Protection occurred when the output 1 was active and output 2 forced inactive + value: 0 + - name: Output2Active + description: Protection occurred when the output 2 was active and output 1 forced inactive + value: 1 enum/LOCKED: bit_size: 1 variants: - - name: Unlocked - description: Bits are writeable - value: 0 - - name: Locked - description: Bits are read-only - value: 1 + - name: Unlocked + description: Bits are writeable + value: 0 + - name: Locked + description: Bits are read-only + value: 1 enum/OUTPUTSTATE: bit_size: 1 variants: - - name: Inactive - description: Output is or was inactive - value: 0 - - name: Active - description: Output is or was active - value: 1 + - name: Inactive + description: Output is or was inactive + value: 0 + - name: Active + description: Output is or was active + value: 1 enum/POL: bit_size: 1 variants: - - name: ActiveHigh - description: Positive polarity (output active high) - value: 0 - - name: ActiveLow - description: Negative polarity (output active low) - value: 1 + - name: ActiveHigh + description: Positive polarity (output active high) + value: 0 + - name: ActiveLow + description: Negative polarity (output active low) + value: 1 enum/RESETEFFECT: bit_size: 1 variants: - - name: NoEffect - description: Timer Y compare Z event has no effect - value: 0 - - name: ResetCounter - description: Timer X counter is reset upon timer Y compare Z event - value: 1 + - name: NoEffect + description: Timer Y compare Z event has no effect + value: 0 + - name: ResetCounter + description: Timer X counter is reset upon timer Y compare Z event + value: 1 enum/SDTF: bit_size: 1 variants: - - name: Positive - description: Positive deadtime on falling edge - value: 0 - - name: Negative - description: Negative deadtime on falling edge - value: 1 + - name: Positive + description: Positive deadtime on falling edge + value: 0 + - name: Negative + description: Negative deadtime on falling edge + value: 1 enum/SDTR: bit_size: 1 variants: - - name: Positive - description: Positive deadtime on rising edge - value: 0 - - name: Negative - description: Negative deadtime on rising edge - value: 1 + - name: Positive + description: Positive deadtime on rising edge + value: 0 + - name: Negative + description: Negative deadtime on rising edge + value: 1 enum/SYNCIN: bit_size: 2 variants: - - name: Disabled - description: Disabled. HRTIM is not synchronized and runs in standalone mode - value: 0 - - name: Internal - description: "Internal event: the HRTIM is synchronized with the on-chip timer" - value: 2 - - name: External - description: "External event: a positive pulse on HRTIM_SCIN input triggers the HRTIM" - value: 3 + - name: Disabled + description: Disabled. HRTIM is not synchronized and runs in standalone mode + value: 0 + - name: Internal + description: 'Internal event: the HRTIM is synchronized with the on-chip timer' + value: 2 + - name: External + description: 'External event: a positive pulse on HRTIM_SCIN input triggers the HRTIM' + value: 3 enum/SYNCOUT: bit_size: 2 variants: - - name: Disabled - description: Disabled - value: 0 - - name: PositivePulse - description: Positive pulse on SCOUT output (16x f_HRTIM clock cycles) - value: 2 - - name: NegativePulse - description: Negative pulse on SCOUT output (16x f_HRTIM clock cycles) - value: 3 + - name: Disabled + description: Disabled + value: 0 + - name: PositivePulse + description: Positive pulse on SCOUT output (16x f_HRTIM clock cycles) + value: 2 + - name: NegativePulse + description: Negative pulse on SCOUT output (16x f_HRTIM clock cycles) + value: 3 enum/SYNCRST: bit_size: 1 variants: - - name: Disabled - description: Synchronization event has no effect on Timer x - value: 0 - - name: Reset - description: Synchronization event resets Timer x - value: 1 + - name: Disabled + description: Synchronization event has no effect on Timer x + value: 0 + - name: Reset + description: Synchronization event resets Timer x + value: 1 enum/SYNCSRC: bit_size: 2 variants: - - name: MasterStart - description: Master timer Start - value: 0 - - name: MasterCompare1 - description: Master timer Compare 1 event - value: 1 - - name: TimerAStart - description: Timer A start/reset - value: 2 - - name: TimerACompare1 - description: Timer A Compare 1 event - value: 3 + - name: MasterStart + description: Master timer Start + value: 0 + - name: MasterCompare1 + description: Master timer Compare 1 event + value: 1 + - name: TimerAStart + description: Timer A start/reset + value: 2 + - name: TimerACompare1 + description: Timer A Compare 1 event + value: 3 enum/SYNCSTRT: bit_size: 1 variants: - - name: Disabled - description: Synchronization event has no effect on Timer x - value: 0 - - name: Start - description: Synchronization event starts Timer x - value: 1 + - name: Disabled + description: Synchronization event has no effect on Timer x + value: 0 + - name: Start + description: Synchronization event starts Timer x + value: 1 enum/TIMAISR_DLYPRT: bit_size: 1 variants: - - name: Inactive - description: Not in delayed idle or balanced idle mode - value: 0 - - name: Active - description: Delayed idle or balanced idle mode entry - value: 1 + - name: Inactive + description: Not in delayed idle or balanced idle mode + value: 0 + - name: Active + description: Delayed idle or balanced idle mode entry + value: 1 enum/UPDGAT: bit_size: 4 variants: - - name: Independent - description: Update occurs independently from the DMA burst transfer - value: 0 - - name: DMABurst - description: Update occurs when the DMA burst transfer is completed - value: 1 - - name: DMABurst_Update - description: Update occurs on the update event following DMA burst transfer completion - value: 2 - - name: Input1 - description: Update occurs on a rising edge of HRTIM update enable input 1 - value: 3 - - name: Input2 - description: Update occurs on a rising edge of HRTIM update enable input 2 - value: 4 - - name: Input3 - description: Update occurs on a rising edge of HRTIM update enable input 3 - value: 5 - - name: Input1_Update - description: Update occurs on the update event following a rising edge of HRTIM update enable input 1 - value: 6 - - name: Input2_Update - description: Update occurs on the update event following a rising edge of HRTIM update enable input 2 - value: 7 - - name: Input3_Update - description: Update occurs on the update event following a rising edge of HRTIM update enable input 3 - value: 8 + - name: Independent + description: Update occurs independently from the DMA burst transfer + value: 0 + - name: DMABurst + description: Update occurs when the DMA burst transfer is completed + value: 1 + - name: DMABurst_Update + description: Update occurs on the update event following DMA burst transfer completion + value: 2 + - name: Input1 + description: Update occurs on a rising edge of HRTIM update enable input 1 + value: 3 + - name: Input2 + description: Update occurs on a rising edge of HRTIM update enable input 2 + value: 4 + - name: Input3 + description: Update occurs on a rising edge of HRTIM update enable input 3 + value: 5 + - name: Input1_Update + description: Update occurs on the update event following a rising edge of HRTIM update enable input 1 + value: 6 + - name: Input2_Update + description: Update occurs on the update event following a rising edge of HRTIM update enable input 2 + value: 7 + - name: Input3_Update + description: Update occurs on the update event following a rising edge of HRTIM update enable input 3 + value: 8 diff --git a/data/registers/i2c_v1.yaml b/data/registers/i2c_v1.yaml index 9c3fcdc..1a5439e 100644 --- a/data/registers/i2c_v1.yaml +++ b/data/registers/i2c_v1.yaml @@ -1,408 +1,407 @@ ---- block/I2C: description: Inter-integrated circuit items: - - name: CR1 - description: Control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 4 - fieldset: CR2 - - name: OAR1 - description: Own address register 1 - byte_offset: 8 - fieldset: OAR1 - - name: OAR2 - description: Own address register 2 - byte_offset: 12 - fieldset: OAR2 - - name: DR - description: Data register - byte_offset: 16 - fieldset: DR - - name: SR1 - description: Status register 1 - byte_offset: 20 - fieldset: SR1 - - name: SR2 - description: Status register 2 - byte_offset: 24 - fieldset: SR2 - - name: CCR - description: Clock control register - byte_offset: 28 - fieldset: CCR - - name: TRISE - description: TRISE register - byte_offset: 32 - fieldset: TRISE - - name: FLTR - description: FLTR register - byte_offset: 36 - fieldset: FLTR + - name: CR1 + description: Control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 4 + fieldset: CR2 + - name: OAR1 + description: Own address register 1 + byte_offset: 8 + fieldset: OAR1 + - name: OAR2 + description: Own address register 2 + byte_offset: 12 + fieldset: OAR2 + - name: DR + description: Data register + byte_offset: 16 + fieldset: DR + - name: SR1 + description: Status register 1 + byte_offset: 20 + fieldset: SR1 + - name: SR2 + description: Status register 2 + byte_offset: 24 + fieldset: SR2 + - name: CCR + description: Clock control register + byte_offset: 28 + fieldset: CCR + - name: TRISE + description: TRISE register + byte_offset: 32 + fieldset: TRISE + - name: FLTR + description: FLTR register + byte_offset: 36 + fieldset: FLTR fieldset/CCR: description: Clock control register fields: - - name: CCR - description: Clock control register in Fast/Standard mode (Master mode) - bit_offset: 0 - bit_size: 12 - - name: DUTY - description: Fast mode duty cycle - bit_offset: 14 - bit_size: 1 - enum: DUTY - - name: F_S - description: I2C master mode selection - bit_offset: 15 - bit_size: 1 - enum: F_S + - name: CCR + description: Clock control register in Fast/Standard mode (Master mode) + bit_offset: 0 + bit_size: 12 + - name: DUTY + description: Fast mode duty cycle + bit_offset: 14 + bit_size: 1 + enum: DUTY + - name: F_S + description: I2C master mode selection + bit_offset: 15 + bit_size: 1 + enum: F_S fieldset/CR1: description: Control register 1 fields: - - name: PE - description: Peripheral enable - bit_offset: 0 - bit_size: 1 - - name: SMBUS - description: SMBus mode - bit_offset: 1 - bit_size: 1 - enum: SMBUS - - name: SMBTYPE - description: SMBus type - bit_offset: 3 - bit_size: 1 - enum: SMBTYPE - - name: ENARP - description: ARP enable - bit_offset: 4 - bit_size: 1 - - name: ENPEC - description: PEC enable - bit_offset: 5 - bit_size: 1 - - name: ENGC - description: General call enable - bit_offset: 6 - bit_size: 1 - - name: NOSTRETCH - description: Clock stretching disable (Slave mode) - bit_offset: 7 - bit_size: 1 - - name: START - description: Start generation - bit_offset: 8 - bit_size: 1 - - name: STOP - description: Stop generation - bit_offset: 9 - bit_size: 1 - - name: ACK - description: Acknowledge enable - bit_offset: 10 - bit_size: 1 - - name: POS - description: Acknowledge/PEC Position (for data reception) - bit_offset: 11 - bit_size: 1 - enum: POS - - name: PEC - description: Packet error checking - bit_offset: 12 - bit_size: 1 - - name: ALERT - description: SMBus alert - bit_offset: 13 - bit_size: 1 - - name: SWRST - description: Software reset - bit_offset: 15 - bit_size: 1 + - name: PE + description: Peripheral enable + bit_offset: 0 + bit_size: 1 + - name: SMBUS + description: SMBus mode + bit_offset: 1 + bit_size: 1 + enum: SMBUS + - name: SMBTYPE + description: SMBus type + bit_offset: 3 + bit_size: 1 + enum: SMBTYPE + - name: ENARP + description: ARP enable + bit_offset: 4 + bit_size: 1 + - name: ENPEC + description: PEC enable + bit_offset: 5 + bit_size: 1 + - name: ENGC + description: General call enable + bit_offset: 6 + bit_size: 1 + - name: NOSTRETCH + description: Clock stretching disable (Slave mode) + bit_offset: 7 + bit_size: 1 + - name: START + description: Start generation + bit_offset: 8 + bit_size: 1 + - name: STOP + description: Stop generation + bit_offset: 9 + bit_size: 1 + - name: ACK + description: Acknowledge enable + bit_offset: 10 + bit_size: 1 + - name: POS + description: Acknowledge/PEC Position (for data reception) + bit_offset: 11 + bit_size: 1 + enum: POS + - name: PEC + description: Packet error checking + bit_offset: 12 + bit_size: 1 + - name: ALERT + description: SMBus alert + bit_offset: 13 + bit_size: 1 + - name: SWRST + description: Software reset + bit_offset: 15 + bit_size: 1 fieldset/CR2: description: Control register 2 fields: - - name: FREQ - description: Peripheral clock frequency - bit_offset: 0 - bit_size: 6 - - name: ITERREN - description: Error interrupt enable - bit_offset: 8 - bit_size: 1 - - name: ITEVTEN - description: Event interrupt enable - bit_offset: 9 - bit_size: 1 - - name: ITBUFEN - description: Buffer interrupt enable - bit_offset: 10 - bit_size: 1 - - name: DMAEN - description: DMA requests enable - bit_offset: 11 - bit_size: 1 - - name: LAST - description: DMA last transfer - bit_offset: 12 - bit_size: 1 + - name: FREQ + description: Peripheral clock frequency + bit_offset: 0 + bit_size: 6 + - name: ITERREN + description: Error interrupt enable + bit_offset: 8 + bit_size: 1 + - name: ITEVTEN + description: Event interrupt enable + bit_offset: 9 + bit_size: 1 + - name: ITBUFEN + description: Buffer interrupt enable + bit_offset: 10 + bit_size: 1 + - name: DMAEN + description: DMA requests enable + bit_offset: 11 + bit_size: 1 + - name: LAST + description: DMA last transfer + bit_offset: 12 + bit_size: 1 fieldset/DR: description: Data register fields: - - name: DR - description: 8-bit data register - bit_offset: 0 - bit_size: 8 + - name: DR + description: 8-bit data register + bit_offset: 0 + bit_size: 8 fieldset/FLTR: description: FLTR register fields: - - name: DNF - description: Digital noise filter - bit_offset: 0 - bit_size: 4 - enum: DNF - - name: ANOFF - description: Analog noise filter - bit_offset: 4 - bit_size: 1 + - name: DNF + description: Digital noise filter + bit_offset: 0 + bit_size: 4 + enum: DNF + - name: ANOFF + description: Analog noise filter + bit_offset: 4 + bit_size: 1 fieldset/OAR1: description: Own address register 1 fields: - - name: ADD - description: Interface address - bit_offset: 0 - bit_size: 10 - - name: ADDMODE - description: Addressing mode (slave mode) - bit_offset: 15 - bit_size: 1 - enum: ADDMODE + - name: ADD + description: Interface address + bit_offset: 0 + bit_size: 10 + - name: ADDMODE + description: Addressing mode (slave mode) + bit_offset: 15 + bit_size: 1 + enum: ADDMODE fieldset/OAR2: description: Own address register 2 fields: - - name: ENDUAL - description: Dual addressing mode enable - bit_offset: 0 - bit_size: 1 - enum: ENDUAL - - name: ADD2 - description: Interface address - bit_offset: 1 - bit_size: 7 + - name: ENDUAL + description: Dual addressing mode enable + bit_offset: 0 + bit_size: 1 + enum: ENDUAL + - name: ADD2 + description: Interface address + bit_offset: 1 + bit_size: 7 fieldset/SR1: description: Status register 1 fields: - - name: START - description: Start bit (Master mode) - bit_offset: 0 - bit_size: 1 - - name: ADDR - description: Address sent (master mode)/matched (slave mode) - bit_offset: 1 - bit_size: 1 - - name: BTF - description: Byte transfer finished - bit_offset: 2 - bit_size: 1 - - name: ADD10 - description: 10-bit header sent (Master mode) - bit_offset: 3 - bit_size: 1 - - name: STOPF - description: Stop detection (slave mode) - bit_offset: 4 - bit_size: 1 - - name: RXNE - description: Data register not empty (receivers) - bit_offset: 6 - bit_size: 1 - - name: TXE - description: Data register empty (transmitters) - bit_offset: 7 - bit_size: 1 - - name: BERR - description: Bus error - bit_offset: 8 - bit_size: 1 - - name: ARLO - description: Arbitration lost (master mode) - bit_offset: 9 - bit_size: 1 - - name: AF - description: Acknowledge failure - bit_offset: 10 - bit_size: 1 - - name: OVR - description: Overrun/Underrun - bit_offset: 11 - bit_size: 1 - - name: PECERR - description: PEC Error in reception - bit_offset: 12 - bit_size: 1 - - name: TIMEOUT - description: Timeout or t_low detection flag - bit_offset: 14 - bit_size: 1 - - name: ALERT - description: SMBus alert - bit_offset: 15 - bit_size: 1 + - name: START + description: Start bit (Master mode) + bit_offset: 0 + bit_size: 1 + - name: ADDR + description: Address sent (master mode)/matched (slave mode) + bit_offset: 1 + bit_size: 1 + - name: BTF + description: Byte transfer finished + bit_offset: 2 + bit_size: 1 + - name: ADD10 + description: 10-bit header sent (Master mode) + bit_offset: 3 + bit_size: 1 + - name: STOPF + description: Stop detection (slave mode) + bit_offset: 4 + bit_size: 1 + - name: RXNE + description: Data register not empty (receivers) + bit_offset: 6 + bit_size: 1 + - name: TXE + description: Data register empty (transmitters) + bit_offset: 7 + bit_size: 1 + - name: BERR + description: Bus error + bit_offset: 8 + bit_size: 1 + - name: ARLO + description: Arbitration lost (master mode) + bit_offset: 9 + bit_size: 1 + - name: AF + description: Acknowledge failure + bit_offset: 10 + bit_size: 1 + - name: OVR + description: Overrun/Underrun + bit_offset: 11 + bit_size: 1 + - name: PECERR + description: PEC Error in reception + bit_offset: 12 + bit_size: 1 + - name: TIMEOUT + description: Timeout or t_low detection flag + bit_offset: 14 + bit_size: 1 + - name: ALERT + description: SMBus alert + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: Status register 2 fields: - - name: MSL - description: Master/slave - bit_offset: 0 - bit_size: 1 - - name: BUSY - description: Bus busy - bit_offset: 1 - bit_size: 1 - - name: TRA - description: Transmitter/receiver - bit_offset: 2 - bit_size: 1 - - name: GENCALL - description: General call address (Slave mode) - bit_offset: 4 - bit_size: 1 - - name: SMBDEFAULT - description: SMBus device default address (Slave mode) - bit_offset: 5 - bit_size: 1 - - name: SMBHOST - description: SMBus host header (Slave mode) - bit_offset: 6 - bit_size: 1 - - name: DUALF - description: Dual flag (Slave mode) - bit_offset: 7 - bit_size: 1 - - name: PEC - description: Packet error checking register - bit_offset: 8 - bit_size: 8 + - name: MSL + description: Master/slave + bit_offset: 0 + bit_size: 1 + - name: BUSY + description: Bus busy + bit_offset: 1 + bit_size: 1 + - name: TRA + description: Transmitter/receiver + bit_offset: 2 + bit_size: 1 + - name: GENCALL + description: General call address (Slave mode) + bit_offset: 4 + bit_size: 1 + - name: SMBDEFAULT + description: SMBus device default address (Slave mode) + bit_offset: 5 + bit_size: 1 + - name: SMBHOST + description: SMBus host header (Slave mode) + bit_offset: 6 + bit_size: 1 + - name: DUALF + description: Dual flag (Slave mode) + bit_offset: 7 + bit_size: 1 + - name: PEC + description: Packet error checking register + bit_offset: 8 + bit_size: 8 fieldset/TRISE: description: TRISE register fields: - - name: TRISE - description: Maximum rise time in Fast/Standard mode (Master mode) - bit_offset: 0 - bit_size: 6 + - name: TRISE + description: Maximum rise time in Fast/Standard mode (Master mode) + bit_offset: 0 + bit_size: 6 enum/ADDMODE: bit_size: 1 variants: - - name: Bit7 - description: 7-bit addressing mode - value: 0 - - name: Bit10 - description: 10-bit addressing mode - value: 1 + - name: Bit7 + description: 7-bit addressing mode + value: 0 + - name: Bit10 + description: 10-bit addressing mode + value: 1 enum/DNF: bit_size: 4 variants: - - name: NoFilter - description: Digital filter disabled - value: 0 - - name: Filter1 - description: Digital filter enabled and filtering capability up to 1 tI2CCLK - value: 1 - - name: Filter2 - description: Digital filter enabled and filtering capability up to 2 tI2CCLK - value: 2 - - name: Filter3 - description: Digital filter enabled and filtering capability up to 3 tI2CCLK - value: 3 - - name: Filter4 - description: Digital filter enabled and filtering capability up to 4 tI2CCLK - value: 4 - - name: Filter5 - description: Digital filter enabled and filtering capability up to 5 tI2CCLK - value: 5 - - name: Filter6 - description: Digital filter enabled and filtering capability up to 6 tI2CCLK - value: 6 - - name: Filter7 - description: Digital filter enabled and filtering capability up to 7 tI2CCLK - value: 7 - - name: Filter8 - description: Digital filter enabled and filtering capability up to 8 tI2CCLK - value: 8 - - name: Filter9 - description: Digital filter enabled and filtering capability up to 9 tI2CCLK - value: 9 - - name: Filter10 - description: Digital filter enabled and filtering capability up to 10 tI2CCLK - value: 10 - - name: Filter11 - description: Digital filter enabled and filtering capability up to 11 tI2CCLK - value: 11 - - name: Filter12 - description: Digital filter enabled and filtering capability up to 12 tI2CCLK - value: 12 - - name: Filter13 - description: Digital filter enabled and filtering capability up to 13 tI2CCLK - value: 13 - - name: Filter14 - description: Digital filter enabled and filtering capability up to 14 tI2CCLK - value: 14 - - name: Filter15 - description: Digital filter enabled and filtering capability up to 15 tI2CCLK - value: 15 + - name: NoFilter + description: Digital filter disabled + value: 0 + - name: Filter1 + description: Digital filter enabled and filtering capability up to 1 tI2CCLK + value: 1 + - name: Filter2 + description: Digital filter enabled and filtering capability up to 2 tI2CCLK + value: 2 + - name: Filter3 + description: Digital filter enabled and filtering capability up to 3 tI2CCLK + value: 3 + - name: Filter4 + description: Digital filter enabled and filtering capability up to 4 tI2CCLK + value: 4 + - name: Filter5 + description: Digital filter enabled and filtering capability up to 5 tI2CCLK + value: 5 + - name: Filter6 + description: Digital filter enabled and filtering capability up to 6 tI2CCLK + value: 6 + - name: Filter7 + description: Digital filter enabled and filtering capability up to 7 tI2CCLK + value: 7 + - name: Filter8 + description: Digital filter enabled and filtering capability up to 8 tI2CCLK + value: 8 + - name: Filter9 + description: Digital filter enabled and filtering capability up to 9 tI2CCLK + value: 9 + - name: Filter10 + description: Digital filter enabled and filtering capability up to 10 tI2CCLK + value: 10 + - name: Filter11 + description: Digital filter enabled and filtering capability up to 11 tI2CCLK + value: 11 + - name: Filter12 + description: Digital filter enabled and filtering capability up to 12 tI2CCLK + value: 12 + - name: Filter13 + description: Digital filter enabled and filtering capability up to 13 tI2CCLK + value: 13 + - name: Filter14 + description: Digital filter enabled and filtering capability up to 14 tI2CCLK + value: 14 + - name: Filter15 + description: Digital filter enabled and filtering capability up to 15 tI2CCLK + value: 15 enum/DUTY: bit_size: 1 variants: - - name: Duty2_1 - description: Duty cycle t_low/t_high = 2/1 - value: 0 - - name: Duty16_9 - description: Duty cycle t_low/t_high = 16/9 - value: 1 + - name: Duty2_1 + description: Duty cycle t_low/t_high = 2/1 + value: 0 + - name: Duty16_9 + description: Duty cycle t_low/t_high = 16/9 + value: 1 enum/ENDUAL: bit_size: 1 variants: - - name: Single - description: Single addressing mode - value: 0 - - name: Dual - description: Dual addressing mode - value: 1 + - name: Single + description: Single addressing mode + value: 0 + - name: Dual + description: Dual addressing mode + value: 1 enum/F_S: bit_size: 1 variants: - - name: Standard - description: Standard mode I2C - value: 0 - - name: Fast - description: Fast mode I2C - value: 1 + - name: Standard + description: Standard mode I2C + value: 0 + - name: Fast + description: Fast mode I2C + value: 1 enum/POS: bit_size: 1 variants: - - name: Current - description: ACK bit controls the (N)ACK of the current byte being received - value: 0 - - name: Next - description: ACK bit controls the (N)ACK of the next byte to be received - value: 1 + - name: Current + description: ACK bit controls the (N)ACK of the current byte being received + value: 0 + - name: Next + description: ACK bit controls the (N)ACK of the next byte to be received + value: 1 enum/SMBTYPE: bit_size: 1 variants: - - name: Device - description: SMBus Device - value: 0 - - name: Host - description: SMBus Host - value: 1 + - name: Device + description: SMBus Device + value: 0 + - name: Host + description: SMBus Host + value: 1 enum/SMBUS: bit_size: 1 variants: - - name: I2C - description: I2C Mode - value: 0 - - name: SMBus - description: SMBus - value: 1 + - name: I2C + description: I2C Mode + value: 0 + - name: SMBus + description: SMBus + value: 1 diff --git a/data/registers/i2c_v2.yaml b/data/registers/i2c_v2.yaml index 5844cc4..9486c3d 100644 --- a/data/registers/i2c_v2.yaml +++ b/data/registers/i2c_v2.yaml @@ -1,513 +1,512 @@ ---- block/I2C: description: Inter-integrated circuit items: - - name: CR1 - description: Control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 4 - fieldset: CR2 - - name: OAR1 - description: Own address register 1 - byte_offset: 8 - fieldset: OAR1 - - name: OAR2 - description: Own address register 2 - byte_offset: 12 - fieldset: OAR2 - - name: TIMINGR - description: Timing register - byte_offset: 16 - fieldset: TIMINGR - - name: TIMEOUTR - description: Timeout register - byte_offset: 20 - fieldset: TIMEOUTR - - name: ISR - description: Interrupt and Status register - byte_offset: 24 - fieldset: ISR - - name: ICR - description: Interrupt clear register - byte_offset: 28 - fieldset: ICR - - name: PECR - description: PEC register - byte_offset: 32 - fieldset: PECR - - name: RXDR - description: Receive data register - byte_offset: 36 - fieldset: RXDR - - name: TXDR - description: Transmit data register - byte_offset: 40 - fieldset: TXDR + - name: CR1 + description: Control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 4 + fieldset: CR2 + - name: OAR1 + description: Own address register 1 + byte_offset: 8 + fieldset: OAR1 + - name: OAR2 + description: Own address register 2 + byte_offset: 12 + fieldset: OAR2 + - name: TIMINGR + description: Timing register + byte_offset: 16 + fieldset: TIMINGR + - name: TIMEOUTR + description: Timeout register + byte_offset: 20 + fieldset: TIMEOUTR + - name: ISR + description: Interrupt and Status register + byte_offset: 24 + fieldset: ISR + - name: ICR + description: Interrupt clear register + byte_offset: 28 + fieldset: ICR + - name: PECR + description: PEC register + byte_offset: 32 + fieldset: PECR + - name: RXDR + description: Receive data register + byte_offset: 36 + fieldset: RXDR + - name: TXDR + description: Transmit data register + byte_offset: 40 + fieldset: TXDR fieldset/CR1: description: Control register 1 fields: - - name: PE - description: Peripheral enable - bit_offset: 0 - bit_size: 1 - - name: TXIE - description: TX Interrupt enable - bit_offset: 1 - bit_size: 1 - - name: RXIE - description: RX Interrupt enable - bit_offset: 2 - bit_size: 1 - - name: ADDRIE - description: Address match interrupt enable (slave only) - bit_offset: 3 - bit_size: 1 - - name: NACKIE - description: Not acknowledge received interrupt enable - bit_offset: 4 - bit_size: 1 - - name: STOPIE - description: STOP detection Interrupt enable - bit_offset: 5 - bit_size: 1 - - name: TCIE - description: Transfer Complete interrupt enable - bit_offset: 6 - bit_size: 1 - - name: ERRIE - description: Error interrupts enable - bit_offset: 7 - bit_size: 1 - - name: DNF - description: Digital noise filter - bit_offset: 8 - bit_size: 4 - enum: DNF - - name: ANFOFF - description: Analog noise filter OFF - bit_offset: 12 - bit_size: 1 - - name: TXDMAEN - description: DMA transmission requests enable - bit_offset: 14 - bit_size: 1 - - name: RXDMAEN - description: DMA reception requests enable - bit_offset: 15 - bit_size: 1 - - name: SBC - description: Slave byte control - bit_offset: 16 - bit_size: 1 - - name: NOSTRETCH - description: Clock stretching disable - bit_offset: 17 - bit_size: 1 - - name: GCEN - description: General call enable - bit_offset: 19 - bit_size: 1 - - name: SMBHEN - description: SMBus Host address enable - bit_offset: 20 - bit_size: 1 - - name: SMBDEN - description: SMBus Device Default address enable - bit_offset: 21 - bit_size: 1 - - name: ALERTEN - description: SMBUS alert enable - bit_offset: 22 - bit_size: 1 - - name: PECEN - description: PEC enable - bit_offset: 23 - bit_size: 1 + - name: PE + description: Peripheral enable + bit_offset: 0 + bit_size: 1 + - name: TXIE + description: TX Interrupt enable + bit_offset: 1 + bit_size: 1 + - name: RXIE + description: RX Interrupt enable + bit_offset: 2 + bit_size: 1 + - name: ADDRIE + description: Address match interrupt enable (slave only) + bit_offset: 3 + bit_size: 1 + - name: NACKIE + description: Not acknowledge received interrupt enable + bit_offset: 4 + bit_size: 1 + - name: STOPIE + description: STOP detection Interrupt enable + bit_offset: 5 + bit_size: 1 + - name: TCIE + description: Transfer Complete interrupt enable + bit_offset: 6 + bit_size: 1 + - name: ERRIE + description: Error interrupts enable + bit_offset: 7 + bit_size: 1 + - name: DNF + description: Digital noise filter + bit_offset: 8 + bit_size: 4 + enum: DNF + - name: ANFOFF + description: Analog noise filter OFF + bit_offset: 12 + bit_size: 1 + - name: TXDMAEN + description: DMA transmission requests enable + bit_offset: 14 + bit_size: 1 + - name: RXDMAEN + description: DMA reception requests enable + bit_offset: 15 + bit_size: 1 + - name: SBC + description: Slave byte control + bit_offset: 16 + bit_size: 1 + - name: NOSTRETCH + description: Clock stretching disable + bit_offset: 17 + bit_size: 1 + - name: GCEN + description: General call enable + bit_offset: 19 + bit_size: 1 + - name: SMBHEN + description: SMBus Host address enable + bit_offset: 20 + bit_size: 1 + - name: SMBDEN + description: SMBus Device Default address enable + bit_offset: 21 + bit_size: 1 + - name: ALERTEN + description: SMBUS alert enable + bit_offset: 22 + bit_size: 1 + - name: PECEN + description: PEC enable + bit_offset: 23 + bit_size: 1 fieldset/CR2: description: Control register 2 fields: - - name: SADD - description: Slave address bit (master mode) - bit_offset: 0 - bit_size: 10 - - name: DIR - description: Transfer direction (master mode) - bit_offset: 10 - bit_size: 1 - enum: DIR - - name: ADD10 - description: 10-bit addressing mode (master mode) - bit_offset: 11 - bit_size: 1 - enum: ADDMODE - - name: HEAD10R - description: 10-bit address header only read direction (master receiver mode) - bit_offset: 12 - bit_size: 1 - enum: HEADR - - name: START - description: Start generation - bit_offset: 13 - bit_size: 1 - - name: STOP - description: Stop generation (master mode) - bit_offset: 14 - bit_size: 1 - - name: NACK - description: NACK generation (slave mode) - bit_offset: 15 - bit_size: 1 - - name: NBYTES - description: Number of bytes - bit_offset: 16 - bit_size: 8 - - name: RELOAD - description: NBYTES reload mode - bit_offset: 24 - bit_size: 1 - enum: RELOAD - - name: AUTOEND - description: Automatic end mode (master mode) - bit_offset: 25 - bit_size: 1 - enum: AUTOEND - - name: PECBYTE - description: Packet error checking byte - bit_offset: 26 - bit_size: 1 + - name: SADD + description: Slave address bit (master mode) + bit_offset: 0 + bit_size: 10 + - name: DIR + description: Transfer direction (master mode) + bit_offset: 10 + bit_size: 1 + enum: DIR + - name: ADD10 + description: 10-bit addressing mode (master mode) + bit_offset: 11 + bit_size: 1 + enum: ADDMODE + - name: HEAD10R + description: 10-bit address header only read direction (master receiver mode) + bit_offset: 12 + bit_size: 1 + enum: HEADR + - name: START + description: Start generation + bit_offset: 13 + bit_size: 1 + - name: STOP + description: Stop generation (master mode) + bit_offset: 14 + bit_size: 1 + - name: NACK + description: NACK generation (slave mode) + bit_offset: 15 + bit_size: 1 + - name: NBYTES + description: Number of bytes + bit_offset: 16 + bit_size: 8 + - name: RELOAD + description: NBYTES reload mode + bit_offset: 24 + bit_size: 1 + enum: RELOAD + - name: AUTOEND + description: Automatic end mode (master mode) + bit_offset: 25 + bit_size: 1 + enum: AUTOEND + - name: PECBYTE + description: Packet error checking byte + bit_offset: 26 + bit_size: 1 fieldset/ICR: description: Interrupt clear register fields: - - name: ADDRCF - description: Address Matched flag clear - bit_offset: 3 - bit_size: 1 - - name: NACKCF - description: Not Acknowledge flag clear - bit_offset: 4 - bit_size: 1 - - name: STOPCF - description: Stop detection flag clear - bit_offset: 5 - bit_size: 1 - - name: BERRCF - description: Bus error flag clear - bit_offset: 8 - bit_size: 1 - - name: ARLOCF - description: Arbitration lost flag clear - bit_offset: 9 - bit_size: 1 - - name: OVRCF - description: Overrun/Underrun flag clear - bit_offset: 10 - bit_size: 1 - - name: PECCF - description: PEC Error flag clear - bit_offset: 11 - bit_size: 1 - - name: TIMOUTCF - description: Timeout detection flag clear - bit_offset: 12 - bit_size: 1 - - name: ALERTCF - description: Alert flag clear - bit_offset: 13 - bit_size: 1 + - name: ADDRCF + description: Address Matched flag clear + bit_offset: 3 + bit_size: 1 + - name: NACKCF + description: Not Acknowledge flag clear + bit_offset: 4 + bit_size: 1 + - name: STOPCF + description: Stop detection flag clear + bit_offset: 5 + bit_size: 1 + - name: BERRCF + description: Bus error flag clear + bit_offset: 8 + bit_size: 1 + - name: ARLOCF + description: Arbitration lost flag clear + bit_offset: 9 + bit_size: 1 + - name: OVRCF + description: Overrun/Underrun flag clear + bit_offset: 10 + bit_size: 1 + - name: PECCF + description: PEC Error flag clear + bit_offset: 11 + bit_size: 1 + - name: TIMOUTCF + description: Timeout detection flag clear + bit_offset: 12 + bit_size: 1 + - name: ALERTCF + description: Alert flag clear + bit_offset: 13 + bit_size: 1 fieldset/ISR: description: Interrupt and Status register fields: - - name: TXE - description: Transmit data register empty (transmitters) - bit_offset: 0 - bit_size: 1 - - name: TXIS - description: Transmit interrupt status (transmitters) - bit_offset: 1 - bit_size: 1 - - name: RXNE - description: Receive data register not empty (receivers) - bit_offset: 2 - bit_size: 1 - - name: ADDR - description: Address matched (slave mode) - bit_offset: 3 - bit_size: 1 - - name: NACKF - description: Not acknowledge received flag - bit_offset: 4 - bit_size: 1 - - name: STOPF - description: Stop detection flag - bit_offset: 5 - bit_size: 1 - - name: TC - description: Transfer Complete (master mode) - bit_offset: 6 - bit_size: 1 - - name: TCR - description: Transfer Complete Reload - bit_offset: 7 - bit_size: 1 - - name: BERR - description: Bus error - bit_offset: 8 - bit_size: 1 - - name: ARLO - description: Arbitration lost - bit_offset: 9 - bit_size: 1 - - name: OVR - description: Overrun/Underrun (slave mode) - bit_offset: 10 - bit_size: 1 - - name: PECERR - description: PEC Error in reception - bit_offset: 11 - bit_size: 1 - - name: TIMEOUT - description: Timeout or t_low detection flag - bit_offset: 12 - bit_size: 1 - - name: ALERT - description: SMBus alert - bit_offset: 13 - bit_size: 1 - - name: BUSY - description: Bus busy - bit_offset: 15 - bit_size: 1 - - name: DIR - description: Transfer direction (Slave mode) - bit_offset: 16 - bit_size: 1 - enum: DIR - - name: ADDCODE - description: Address match code (Slave mode) - bit_offset: 17 - bit_size: 7 + - name: TXE + description: Transmit data register empty (transmitters) + bit_offset: 0 + bit_size: 1 + - name: TXIS + description: Transmit interrupt status (transmitters) + bit_offset: 1 + bit_size: 1 + - name: RXNE + description: Receive data register not empty (receivers) + bit_offset: 2 + bit_size: 1 + - name: ADDR + description: Address matched (slave mode) + bit_offset: 3 + bit_size: 1 + - name: NACKF + description: Not acknowledge received flag + bit_offset: 4 + bit_size: 1 + - name: STOPF + description: Stop detection flag + bit_offset: 5 + bit_size: 1 + - name: TC + description: Transfer Complete (master mode) + bit_offset: 6 + bit_size: 1 + - name: TCR + description: Transfer Complete Reload + bit_offset: 7 + bit_size: 1 + - name: BERR + description: Bus error + bit_offset: 8 + bit_size: 1 + - name: ARLO + description: Arbitration lost + bit_offset: 9 + bit_size: 1 + - name: OVR + description: Overrun/Underrun (slave mode) + bit_offset: 10 + bit_size: 1 + - name: PECERR + description: PEC Error in reception + bit_offset: 11 + bit_size: 1 + - name: TIMEOUT + description: Timeout or t_low detection flag + bit_offset: 12 + bit_size: 1 + - name: ALERT + description: SMBus alert + bit_offset: 13 + bit_size: 1 + - name: BUSY + description: Bus busy + bit_offset: 15 + bit_size: 1 + - name: DIR + description: Transfer direction (Slave mode) + bit_offset: 16 + bit_size: 1 + enum: DIR + - name: ADDCODE + description: Address match code (Slave mode) + bit_offset: 17 + bit_size: 7 fieldset/OAR1: description: Own address register 1 fields: - - name: OA1 - description: Interface address - bit_offset: 0 - bit_size: 10 - - name: OA1MODE - description: Own Address 1 10-bit mode - bit_offset: 10 - bit_size: 1 - enum: ADDMODE - - name: OA1EN - description: Own Address 1 enable - bit_offset: 15 - bit_size: 1 + - name: OA1 + description: Interface address + bit_offset: 0 + bit_size: 10 + - name: OA1MODE + description: Own Address 1 10-bit mode + bit_offset: 10 + bit_size: 1 + enum: ADDMODE + - name: OA1EN + description: Own Address 1 enable + bit_offset: 15 + bit_size: 1 fieldset/OAR2: description: Own address register 2 fields: - - name: OA2 - description: Interface address - bit_offset: 1 - bit_size: 7 - - name: OA2MSK - description: Own Address 2 masks - bit_offset: 8 - bit_size: 3 - enum: OAMSK - - name: OA2EN - description: Own Address 2 enable - bit_offset: 15 - bit_size: 1 + - name: OA2 + description: Interface address + bit_offset: 1 + bit_size: 7 + - name: OA2MSK + description: Own Address 2 masks + bit_offset: 8 + bit_size: 3 + enum: OAMSK + - name: OA2EN + description: Own Address 2 enable + bit_offset: 15 + bit_size: 1 fieldset/PECR: description: PEC register fields: - - name: PEC - description: Packet error checking register - bit_offset: 0 - bit_size: 8 + - name: PEC + description: Packet error checking register + bit_offset: 0 + bit_size: 8 fieldset/RXDR: description: Receive data register fields: - - name: RXDATA - description: 8-bit receive data - bit_offset: 0 - bit_size: 8 + - name: RXDATA + description: 8-bit receive data + bit_offset: 0 + bit_size: 8 fieldset/TIMEOUTR: description: Timeout register fields: - - name: TIMEOUTA - description: Bus timeout A - bit_offset: 0 - bit_size: 12 - - name: TIDLE - description: Idle clock timeout detection - bit_offset: 12 - bit_size: 1 - - name: TIMOUTEN - description: Clock timeout enable - bit_offset: 15 - bit_size: 1 - - name: TIMEOUTB - description: Bus timeout B - bit_offset: 16 - bit_size: 12 - - name: TEXTEN - description: Extended clock timeout enable - bit_offset: 31 - bit_size: 1 + - name: TIMEOUTA + description: Bus timeout A + bit_offset: 0 + bit_size: 12 + - name: TIDLE + description: Idle clock timeout detection + bit_offset: 12 + bit_size: 1 + - name: TIMOUTEN + description: Clock timeout enable + bit_offset: 15 + bit_size: 1 + - name: TIMEOUTB + description: Bus timeout B + bit_offset: 16 + bit_size: 12 + - name: TEXTEN + description: Extended clock timeout enable + bit_offset: 31 + bit_size: 1 fieldset/TIMINGR: description: Timing register fields: - - name: SCLL - description: SCL low period (master mode) - bit_offset: 0 - bit_size: 8 - - name: SCLH - description: SCL high period (master mode) - bit_offset: 8 - bit_size: 8 - - name: SDADEL - description: Data hold time - bit_offset: 16 - bit_size: 4 - - name: SCLDEL - description: Data setup time - bit_offset: 20 - bit_size: 4 - - name: PRESC - description: Timing prescaler - bit_offset: 28 - bit_size: 4 + - name: SCLL + description: SCL low period (master mode) + bit_offset: 0 + bit_size: 8 + - name: SCLH + description: SCL high period (master mode) + bit_offset: 8 + bit_size: 8 + - name: SDADEL + description: Data hold time + bit_offset: 16 + bit_size: 4 + - name: SCLDEL + description: Data setup time + bit_offset: 20 + bit_size: 4 + - name: PRESC + description: Timing prescaler + bit_offset: 28 + bit_size: 4 fieldset/TXDR: description: Transmit data register fields: - - name: TXDATA - description: 8-bit transmit data - bit_offset: 0 - bit_size: 8 + - name: TXDATA + description: 8-bit transmit data + bit_offset: 0 + bit_size: 8 enum/ADDMODE: bit_size: 1 variants: - - name: Bit7 - description: 7-bit addressing mode - value: 0 - - name: Bit10 - description: 10-bit addressing mode - value: 1 + - name: Bit7 + description: 7-bit addressing mode + value: 0 + - name: Bit10 + description: 10-bit addressing mode + value: 1 enum/AUTOEND: bit_size: 1 variants: - - name: Software - description: "Software end mode: TC flag is set when NBYTES data are transferred, stretching SCL low" - value: 0 - - name: Automatic - description: "Automatic end mode: a STOP condition is automatically sent when NBYTES data are transferred" - value: 1 + - name: Software + description: 'Software end mode: TC flag is set when NBYTES data are transferred, stretching SCL low' + value: 0 + - name: Automatic + description: 'Automatic end mode: a STOP condition is automatically sent when NBYTES data are transferred' + value: 1 enum/DIR: bit_size: 1 variants: - - name: Write - description: "Write transfer, slave enters receiver mode" - value: 0 - - name: Read - description: "Read transfer, slave enters transmitter mode" - value: 1 + - name: Write + description: Write transfer, slave enters receiver mode + value: 0 + - name: Read + description: Read transfer, slave enters transmitter mode + value: 1 enum/DNF: bit_size: 4 variants: - - name: NoFilter - description: Digital filter disabled - value: 0 - - name: Filter1 - description: Digital filter enabled and filtering capability up to 1 tI2CCLK - value: 1 - - name: Filter2 - description: Digital filter enabled and filtering capability up to 2 tI2CCLK - value: 2 - - name: Filter3 - description: Digital filter enabled and filtering capability up to 3 tI2CCLK - value: 3 - - name: Filter4 - description: Digital filter enabled and filtering capability up to 4 tI2CCLK - value: 4 - - name: Filter5 - description: Digital filter enabled and filtering capability up to 5 tI2CCLK - value: 5 - - name: Filter6 - description: Digital filter enabled and filtering capability up to 6 tI2CCLK - value: 6 - - name: Filter7 - description: Digital filter enabled and filtering capability up to 7 tI2CCLK - value: 7 - - name: Filter8 - description: Digital filter enabled and filtering capability up to 8 tI2CCLK - value: 8 - - name: Filter9 - description: Digital filter enabled and filtering capability up to 9 tI2CCLK - value: 9 - - name: Filter10 - description: Digital filter enabled and filtering capability up to 10 tI2CCLK - value: 10 - - name: Filter11 - description: Digital filter enabled and filtering capability up to 11 tI2CCLK - value: 11 - - name: Filter12 - description: Digital filter enabled and filtering capability up to 12 tI2CCLK - value: 12 - - name: Filter13 - description: Digital filter enabled and filtering capability up to 13 tI2CCLK - value: 13 - - name: Filter14 - description: Digital filter enabled and filtering capability up to 14 tI2CCLK - value: 14 - - name: Filter15 - description: Digital filter enabled and filtering capability up to 15 tI2CCLK - value: 15 + - name: NoFilter + description: Digital filter disabled + value: 0 + - name: Filter1 + description: Digital filter enabled and filtering capability up to 1 tI2CCLK + value: 1 + - name: Filter2 + description: Digital filter enabled and filtering capability up to 2 tI2CCLK + value: 2 + - name: Filter3 + description: Digital filter enabled and filtering capability up to 3 tI2CCLK + value: 3 + - name: Filter4 + description: Digital filter enabled and filtering capability up to 4 tI2CCLK + value: 4 + - name: Filter5 + description: Digital filter enabled and filtering capability up to 5 tI2CCLK + value: 5 + - name: Filter6 + description: Digital filter enabled and filtering capability up to 6 tI2CCLK + value: 6 + - name: Filter7 + description: Digital filter enabled and filtering capability up to 7 tI2CCLK + value: 7 + - name: Filter8 + description: Digital filter enabled and filtering capability up to 8 tI2CCLK + value: 8 + - name: Filter9 + description: Digital filter enabled and filtering capability up to 9 tI2CCLK + value: 9 + - name: Filter10 + description: Digital filter enabled and filtering capability up to 10 tI2CCLK + value: 10 + - name: Filter11 + description: Digital filter enabled and filtering capability up to 11 tI2CCLK + value: 11 + - name: Filter12 + description: Digital filter enabled and filtering capability up to 12 tI2CCLK + value: 12 + - name: Filter13 + description: Digital filter enabled and filtering capability up to 13 tI2CCLK + value: 13 + - name: Filter14 + description: Digital filter enabled and filtering capability up to 14 tI2CCLK + value: 14 + - name: Filter15 + description: Digital filter enabled and filtering capability up to 15 tI2CCLK + value: 15 enum/HEADR: bit_size: 1 variants: - - name: Complete - description: The master sends the complete 10 bit slave address read sequence - value: 0 - - name: Partial - description: "The master only sends the 1st 7 bits of the 10 bit address, followed by Read direction" - value: 1 + - name: Complete + description: The master sends the complete 10 bit slave address read sequence + value: 0 + - name: Partial + description: The master only sends the 1st 7 bits of the 10 bit address, followed by Read direction + value: 1 enum/OAMSK: bit_size: 3 variants: - - name: NoMask - description: No mask - value: 0 - - name: Mask1 - description: "OA2[1] is masked and don’t care. Only OA2[7:2] are compared" - value: 1 - - name: Mask2 - description: "OA2[2:1] are masked and don’t care. Only OA2[7:3] are compared" - value: 2 - - name: Mask3 - description: "OA2[3:1] are masked and don’t care. Only OA2[7:4] are compared" - value: 3 - - name: Mask4 - description: "OA2[4:1] are masked and don’t care. Only OA2[7:5] are compared" - value: 4 - - name: Mask5 - description: "OA2[5:1] are masked and don’t care. Only OA2[7:6] are compared" - value: 5 - - name: Mask6 - description: "OA2[6:1] are masked and don’t care. Only OA2[7] is compared." - value: 6 - - name: Mask7 - description: "OA2[7:1] are masked and don’t care. No comparison is done, and all (except reserved) 7-bit received addresses are acknowledged" - value: 7 + - name: NoMask + description: No mask + value: 0 + - name: Mask1 + description: OA2[1] is masked and don’t care. Only OA2[7:2] are compared + value: 1 + - name: Mask2 + description: OA2[2:1] are masked and don’t care. Only OA2[7:3] are compared + value: 2 + - name: Mask3 + description: OA2[3:1] are masked and don’t care. Only OA2[7:4] are compared + value: 3 + - name: Mask4 + description: OA2[4:1] are masked and don’t care. Only OA2[7:5] are compared + value: 4 + - name: Mask5 + description: OA2[5:1] are masked and don’t care. Only OA2[7:6] are compared + value: 5 + - name: Mask6 + description: OA2[6:1] are masked and don’t care. Only OA2[7] is compared. + value: 6 + - name: Mask7 + description: OA2[7:1] are masked and don’t care. No comparison is done, and all (except reserved) 7-bit received addresses are acknowledged + value: 7 enum/RELOAD: bit_size: 1 variants: - - name: Completed - description: The transfer is completed after the NBYTES data transfer (STOP or RESTART will follow) - value: 0 - - name: NotCompleted - description: The transfer is not completed after the NBYTES data transfer (NBYTES will be reloaded) - value: 1 + - name: Completed + description: The transfer is completed after the NBYTES data transfer (STOP or RESTART will follow) + value: 0 + - name: NotCompleted + description: The transfer is not completed after the NBYTES data transfer (NBYTES will be reloaded) + value: 1 diff --git a/data/registers/ipcc_v1.yaml b/data/registers/ipcc_v1.yaml index 4987b60..8212dff 100644 --- a/data/registers/ipcc_v1.yaml +++ b/data/registers/ipcc_v1.yaml @@ -1,142 +1,141 @@ ---- block/IPCC: description: IPCC items: - - name: CPU - description: CPU specific registers - array: - len: 2 - stride: 16 - byte_offset: 0 - block: IPCC_CPU + - name: CPU + description: CPU specific registers + array: + len: 2 + stride: 16 + byte_offset: 0 + block: IPCC_CPU block/IPCC_CPU: description: IPCC items: - - name: CR - description: Control register CPUx - byte_offset: 0 - fieldset: C1CR - - name: MR - description: Mask register CPUx - byte_offset: 4 - fieldset: C1MR - - name: SCR - description: Status Set or Clear register CPU1 - byte_offset: 8 - access: Write - fieldset: C1SCR - - name: SR - description: CPU1 to CPU2 status register - byte_offset: 12 - access: Read - fieldset: C1TO2SR + - name: CR + description: Control register CPUx + byte_offset: 0 + fieldset: C1CR + - name: MR + description: Mask register CPUx + byte_offset: 4 + fieldset: C1MR + - name: SCR + description: Status Set or Clear register CPU1 + byte_offset: 8 + access: Write + fieldset: C1SCR + - name: SR + description: CPU1 to CPU2 status register + byte_offset: 12 + access: Read + fieldset: C1TO2SR fieldset/C1CR: description: Control register CPU1 fields: - - name: RXOIE - description: processor 1 Receive channel occupied interrupt enable - bit_offset: 0 - bit_size: 1 - - name: TXFIE - description: processor 1 Transmit channel free interrupt enable - bit_offset: 16 - bit_size: 1 + - name: RXOIE + description: processor 1 Receive channel occupied interrupt enable + bit_offset: 0 + bit_size: 1 + - name: TXFIE + description: processor 1 Transmit channel free interrupt enable + bit_offset: 16 + bit_size: 1 fieldset/C1MR: description: Mask register CPU1 fields: - - name: CHOM - description: processor 1 Receive channel x occupied interrupt enable - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: CHFM - description: processor 1 Transmit channel x free interrupt mask - bit_offset: 16 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CHOM + description: processor 1 Receive channel x occupied interrupt enable + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: CHFM + description: processor 1 Transmit channel x free interrupt mask + bit_offset: 16 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/C1SCR: description: Status Set or Clear register CPU1 fields: - - name: CHC - description: processor 1 Receive channel x status clear - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: CHS - description: processor 1 Transmit channel x status set - bit_offset: 16 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CHC + description: processor 1 Receive channel x status clear + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: CHS + description: processor 1 Transmit channel x status set + bit_offset: 16 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/C1TO2SR: description: CPU1 to CPU2 status register fields: - - name: CHF - description: processor 1 transmit to process 2 Receive channel x status flag - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CHF + description: processor 1 transmit to process 2 Receive channel x status flag + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/C2CR: description: Control register CPU2 fields: - - name: RXOIE - description: processor 2 Receive channel occupied interrupt enable - bit_offset: 0 - bit_size: 1 - - name: TXFIE - description: processor 2 Transmit channel free interrupt enable - bit_offset: 16 - bit_size: 1 + - name: RXOIE + description: processor 2 Receive channel occupied interrupt enable + bit_offset: 0 + bit_size: 1 + - name: TXFIE + description: processor 2 Transmit channel free interrupt enable + bit_offset: 16 + bit_size: 1 fieldset/C2MR: description: Mask register CPU2 fields: - - name: CHOM - description: processor 2 Receive channel x occupied interrupt enable - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: CHFM - description: processor 2 Transmit channel 1 free interrupt mask - bit_offset: 16 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CHOM + description: processor 2 Receive channel x occupied interrupt enable + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: CHFM + description: processor 2 Transmit channel 1 free interrupt mask + bit_offset: 16 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/C2SCR: description: Status Set or Clear register CPU2 fields: - - name: CHC - description: processor 2 Receive channel x status clear - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: CHS - description: processor 2 Transmit channel 1 status set - bit_offset: 16 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CHC + description: processor 2 Receive channel x status clear + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: CHS + description: processor 2 Transmit channel 1 status set + bit_offset: 16 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/C2TOC1SR: description: CPU2 to CPU1 status register fields: - - name: CHF - description: processor 2 transmit to process 1 Receive channel x status flag - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CHF + description: processor 2 transmit to process 1 Receive channel x status flag + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 diff --git a/data/registers/iwdg_v1.yaml b/data/registers/iwdg_v1.yaml index ff32087..d8b8362 100644 --- a/data/registers/iwdg_v1.yaml +++ b/data/registers/iwdg_v1.yaml @@ -1,95 +1,94 @@ ---- block/IWDG: description: Independent watchdog items: - - name: KR - description: Key register - byte_offset: 0 - access: Write - fieldset: KR - - name: PR - description: Prescaler register - byte_offset: 4 - fieldset: PR - - name: RLR - description: Reload register - byte_offset: 8 - fieldset: RLR - - name: SR - description: Status register - byte_offset: 12 - access: Read - fieldset: SR + - name: KR + description: Key register + byte_offset: 0 + access: Write + fieldset: KR + - name: PR + description: Prescaler register + byte_offset: 4 + fieldset: PR + - name: RLR + description: Reload register + byte_offset: 8 + fieldset: RLR + - name: SR + description: Status register + byte_offset: 12 + access: Read + fieldset: SR fieldset/KR: description: Key register fields: - - name: KEY - description: "Key value (write only, read 0000h)" - bit_offset: 0 - bit_size: 16 - enum: KEY + - name: KEY + description: Key value (write only, read 0000h) + bit_offset: 0 + bit_size: 16 + enum: KEY fieldset/PR: description: Prescaler register fields: - - name: PR - description: Prescaler divider - bit_offset: 0 - bit_size: 3 - enum: PR + - name: PR + description: Prescaler divider + bit_offset: 0 + bit_size: 3 + enum: PR fieldset/RLR: description: Reload register fields: - - name: RL - description: Watchdog counter reload value - bit_offset: 0 - bit_size: 12 + - name: RL + description: Watchdog counter reload value + bit_offset: 0 + bit_size: 12 fieldset/SR: description: Status register fields: - - name: PVU - description: Watchdog prescaler value update - bit_offset: 0 - bit_size: 1 - - name: RVU - description: Watchdog counter reload value update - bit_offset: 1 - bit_size: 1 + - name: PVU + description: Watchdog prescaler value update + bit_offset: 0 + bit_size: 1 + - name: RVU + description: Watchdog counter reload value update + bit_offset: 1 + bit_size: 1 enum/KEY: bit_size: 16 variants: - - name: Enable - description: "Enable access to PR, RLR and WINR registers (0x5555)" - value: 21845 - - name: Reset - description: Reset the watchdog value (0xAAAA) - value: 43690 - - name: Start - description: Start the watchdog (0xCCCC) - value: 52428 + - name: Enable + description: Enable access to PR, RLR and WINR registers (0x5555) + value: 21845 + - name: Reset + description: Reset the watchdog value (0xAAAA) + value: 43690 + - name: Start + description: Start the watchdog (0xCCCC) + value: 52428 enum/PR: bit_size: 3 variants: - - name: DivideBy4 - description: Divider /4 - value: 0 - - name: DivideBy8 - description: Divider /8 - value: 1 - - name: DivideBy16 - description: Divider /16 - value: 2 - - name: DivideBy32 - description: Divider /32 - value: 3 - - name: DivideBy64 - description: Divider /64 - value: 4 - - name: DivideBy128 - description: Divider /128 - value: 5 - - name: DivideBy256 - description: Divider /256 - value: 6 - - name: DivideBy256bis - description: Divider /256 - value: 7 + - name: DivideBy4 + description: Divider /4 + value: 0 + - name: DivideBy8 + description: Divider /8 + value: 1 + - name: DivideBy16 + description: Divider /16 + value: 2 + - name: DivideBy32 + description: Divider /32 + value: 3 + - name: DivideBy64 + description: Divider /64 + value: 4 + - name: DivideBy128 + description: Divider /128 + value: 5 + - name: DivideBy256 + description: Divider /256 + value: 6 + - name: DivideBy256bis + description: Divider /256 + value: 7 diff --git a/data/registers/iwdg_v2.yaml b/data/registers/iwdg_v2.yaml index a74774c..5cfaf45 100644 --- a/data/registers/iwdg_v2.yaml +++ b/data/registers/iwdg_v2.yaml @@ -1,110 +1,109 @@ ---- block/IWDG: description: Independent watchdog items: - - name: KR - description: Key register - byte_offset: 0 - access: Write - fieldset: KR - - name: PR - description: Prescaler register - byte_offset: 4 - fieldset: PR - - name: RLR - description: Reload register - byte_offset: 8 - fieldset: RLR - - name: SR - description: Status register - byte_offset: 12 - access: Read - fieldset: SR - - name: WINR - description: Window register - byte_offset: 16 - fieldset: WINR + - name: KR + description: Key register + byte_offset: 0 + access: Write + fieldset: KR + - name: PR + description: Prescaler register + byte_offset: 4 + fieldset: PR + - name: RLR + description: Reload register + byte_offset: 8 + fieldset: RLR + - name: SR + description: Status register + byte_offset: 12 + access: Read + fieldset: SR + - name: WINR + description: Window register + byte_offset: 16 + fieldset: WINR fieldset/KR: description: Key register fields: - - name: KEY - description: "Key value (write only, read 0000h)" - bit_offset: 0 - bit_size: 16 - enum: KEY + - name: KEY + description: Key value (write only, read 0000h) + bit_offset: 0 + bit_size: 16 + enum: KEY fieldset/PR: description: Prescaler register fields: - - name: PR - description: Prescaler divider - bit_offset: 0 - bit_size: 3 - enum: PR + - name: PR + description: Prescaler divider + bit_offset: 0 + bit_size: 3 + enum: PR fieldset/RLR: description: Reload register fields: - - name: RL - description: Watchdog counter reload value - bit_offset: 0 - bit_size: 12 + - name: RL + description: Watchdog counter reload value + bit_offset: 0 + bit_size: 12 fieldset/SR: description: Status register fields: - - name: PVU - description: Watchdog prescaler value update - bit_offset: 0 - bit_size: 1 - - name: RVU - description: Watchdog counter reload value update - bit_offset: 1 - bit_size: 1 - - name: WVU - description: Watchdog counter window value update - bit_offset: 2 - bit_size: 1 + - name: PVU + description: Watchdog prescaler value update + bit_offset: 0 + bit_size: 1 + - name: RVU + description: Watchdog counter reload value update + bit_offset: 1 + bit_size: 1 + - name: WVU + description: Watchdog counter window value update + bit_offset: 2 + bit_size: 1 fieldset/WINR: description: Window register fields: - - name: WIN - description: Watchdog counter window value - bit_offset: 0 - bit_size: 12 + - name: WIN + description: Watchdog counter window value + bit_offset: 0 + bit_size: 12 enum/KEY: bit_size: 16 variants: - - name: Enable - description: "Enable access to PR, RLR and WINR registers (0x5555)" - value: 21845 - - name: Reset - description: Reset the watchdog value (0xAAAA) - value: 43690 - - name: Start - description: Start the watchdog (0xCCCC) - value: 52428 + - name: Enable + description: Enable access to PR, RLR and WINR registers (0x5555) + value: 21845 + - name: Reset + description: Reset the watchdog value (0xAAAA) + value: 43690 + - name: Start + description: Start the watchdog (0xCCCC) + value: 52428 enum/PR: bit_size: 3 variants: - - name: DivideBy4 - description: Divider /4 - value: 0 - - name: DivideBy8 - description: Divider /8 - value: 1 - - name: DivideBy16 - description: Divider /16 - value: 2 - - name: DivideBy32 - description: Divider /32 - value: 3 - - name: DivideBy64 - description: Divider /64 - value: 4 - - name: DivideBy128 - description: Divider /128 - value: 5 - - name: DivideBy256 - description: Divider /256 - value: 6 - - name: DivideBy256bis - description: Divider /256 - value: 7 + - name: DivideBy4 + description: Divider /4 + value: 0 + - name: DivideBy8 + description: Divider /8 + value: 1 + - name: DivideBy16 + description: Divider /16 + value: 2 + - name: DivideBy32 + description: Divider /32 + value: 3 + - name: DivideBy64 + description: Divider /64 + value: 4 + - name: DivideBy128 + description: Divider /128 + value: 5 + - name: DivideBy256 + description: Divider /256 + value: 6 + - name: DivideBy256bis + description: Divider /256 + value: 7 diff --git a/data/registers/jpeg_v1.yaml b/data/registers/jpeg_v1.yaml index 5783765..882c8a2 100644 --- a/data/registers/jpeg_v1.yaml +++ b/data/registers/jpeg_v1.yaml @@ -1,5849 +1,5848 @@ ---- block/JPEG: description: JPEG codec items: - - name: JPEG_CONFR0 - description: JPEG codec configuration register 0 - byte_offset: 0 - access: Write - fieldset: JPEG_CONFR0 - - name: JPEG_CONFR1 - description: JPEG codec configuration register 1 - byte_offset: 4 - fieldset: JPEG_CONFR1 - - name: JPEG_CONFR2 - description: JPEG codec configuration register 2 - byte_offset: 8 - fieldset: JPEG_CONFR2 - - name: JPEG_CONFR3 - description: JPEG codec configuration register 3 - byte_offset: 12 - fieldset: JPEG_CONFR3 - - name: JPEG_CONFR4 - description: JPEG codec configuration register 4 - byte_offset: 16 - fieldset: JPEG_CONFR4 - - name: JPEG_CONFR5 - description: JPEG codec configuration register 5 - byte_offset: 20 - fieldset: JPEG_CONFR5 - - name: JPEG_CONFR6 - description: JPEG codec configuration register 6 - byte_offset: 24 - fieldset: JPEG_CONFR6 - - name: JPEG_CONFR7 - description: JPEG codec configuration register 7 - byte_offset: 28 - fieldset: JPEG_CONFR7 - - name: JPEG_CR - description: JPEG control register - byte_offset: 48 - fieldset: JPEG_CR - - name: JPEG_SR - description: JPEG status register - byte_offset: 52 - access: Read - fieldset: JPEG_SR - - name: JPEG_CFR - description: JPEG clear flag register - byte_offset: 56 - access: Write - fieldset: JPEG_CFR - - name: JPEG_DIR - description: JPEG data input register - byte_offset: 64 - access: Write - fieldset: JPEG_DIR - - name: JPEG_DOR - description: JPEG data output register - byte_offset: 68 - access: Read - fieldset: JPEG_DOR - - name: QMEM0_0 - description: JPEG quantization tables - byte_offset: 80 - fieldset: QMEM0_0 - - name: QMEM0_1 - description: JPEG quantization tables - byte_offset: 84 - fieldset: QMEM0_1 - - name: QMEM0_2 - description: JPEG quantization tables - byte_offset: 88 - fieldset: QMEM0_2 - - name: QMEM0_3 - description: JPEG quantization tables - byte_offset: 92 - fieldset: QMEM0_3 - - name: QMEM0_4 - description: JPEG quantization tables - byte_offset: 96 - fieldset: QMEM0_4 - - name: QMEM0_5 - description: JPEG quantization tables - byte_offset: 100 - fieldset: QMEM0_5 - - name: QMEM0_6 - description: JPEG quantization tables - byte_offset: 104 - fieldset: QMEM0_6 - - name: QMEM0_7 - description: JPEG quantization tables - byte_offset: 108 - fieldset: QMEM0_7 - - name: QMEM0_8 - description: JPEG quantization tables - byte_offset: 112 - fieldset: QMEM0_8 - - name: QMEM0_9 - description: JPEG quantization tables - byte_offset: 116 - fieldset: QMEM0_9 - - name: QMEM0_10 - description: JPEG quantization tables - byte_offset: 120 - fieldset: QMEM0_10 - - name: QMEM0_11 - description: JPEG quantization tables - byte_offset: 124 - fieldset: QMEM0_11 - - name: QMEM0_12 - description: JPEG quantization tables - byte_offset: 128 - fieldset: QMEM0_12 - - name: QMEM0_13 - description: JPEG quantization tables - byte_offset: 132 - fieldset: QMEM0_13 - - name: QMEM0_14 - description: JPEG quantization tables - byte_offset: 136 - fieldset: QMEM0_14 - - name: QMEM0_15 - description: JPEG quantization tables - byte_offset: 140 - fieldset: QMEM0_15 - - name: QMEM1_0 - description: JPEG quantization tables - byte_offset: 144 - fieldset: QMEM1_0 - - name: QMEM1_1 - description: JPEG quantization tables - byte_offset: 148 - fieldset: QMEM1_1 - - name: QMEM1_2 - description: JPEG quantization tables - byte_offset: 152 - fieldset: QMEM1_2 - - name: QMEM1_3 - description: JPEG quantization tables - byte_offset: 156 - fieldset: QMEM1_3 - - name: QMEM1_4 - description: JPEG quantization tables - byte_offset: 160 - fieldset: QMEM1_4 - - name: QMEM1_5 - description: JPEG quantization tables - byte_offset: 164 - fieldset: QMEM1_5 - - name: QMEM1_6 - description: JPEG quantization tables - byte_offset: 168 - fieldset: QMEM1_6 - - name: QMEM1_7 - description: JPEG quantization tables - byte_offset: 172 - fieldset: QMEM1_7 - - name: QMEM1_8 - description: JPEG quantization tables - byte_offset: 176 - fieldset: QMEM1_8 - - name: QMEM1_9 - description: JPEG quantization tables - byte_offset: 180 - fieldset: QMEM1_9 - - name: QMEM1_10 - description: JPEG quantization tables - byte_offset: 184 - fieldset: QMEM1_10 - - name: QMEM1_11 - description: JPEG quantization tables - byte_offset: 188 - fieldset: QMEM1_11 - - name: QMEM1_12 - description: JPEG quantization tables - byte_offset: 192 - fieldset: QMEM1_12 - - name: QMEM1_13 - description: JPEG quantization tables - byte_offset: 196 - fieldset: QMEM1_13 - - name: QMEM1_14 - description: JPEG quantization tables - byte_offset: 200 - fieldset: QMEM1_14 - - name: QMEM1_15 - description: JPEG quantization tables - byte_offset: 204 - fieldset: QMEM1_15 - - name: QMEM2_0 - description: JPEG quantization tables - byte_offset: 208 - fieldset: QMEM2_0 - - name: QMEM2_1 - description: JPEG quantization tables - byte_offset: 212 - fieldset: QMEM2_1 - - name: QMEM2_2 - description: JPEG quantization tables - byte_offset: 216 - fieldset: QMEM2_2 - - name: QMEM2_3 - description: JPEG quantization tables - byte_offset: 220 - fieldset: QMEM2_3 - - name: QMEM2_4 - description: JPEG quantization tables - byte_offset: 224 - fieldset: QMEM2_4 - - name: QMEM2_5 - description: JPEG quantization tables - byte_offset: 228 - fieldset: QMEM2_5 - - name: QMEM2_6 - description: JPEG quantization tables - byte_offset: 232 - fieldset: QMEM2_6 - - name: QMEM2_7 - description: JPEG quantization tables - byte_offset: 236 - fieldset: QMEM2_7 - - name: QMEM2_8 - description: JPEG quantization tables - byte_offset: 240 - fieldset: QMEM2_8 - - name: QMEM2_9 - description: JPEG quantization tables - byte_offset: 244 - fieldset: QMEM2_9 - - name: QMEM2_10 - description: JPEG quantization tables - byte_offset: 248 - fieldset: QMEM2_10 - - name: QMEM2_11 - description: JPEG quantization tables - byte_offset: 252 - fieldset: QMEM2_11 - - name: QMEM2_12 - description: JPEG quantization tables - byte_offset: 256 - fieldset: QMEM2_12 - - name: QMEM2_13 - description: JPEG quantization tables - byte_offset: 260 - fieldset: QMEM2_13 - - name: QMEM2_14 - description: JPEG quantization tables - byte_offset: 264 - fieldset: QMEM2_14 - - name: QMEM2_15 - description: JPEG quantization tables - byte_offset: 268 - fieldset: QMEM2_15 - - name: QMEM3_0 - description: JPEG quantization tables - byte_offset: 272 - fieldset: QMEM3_0 - - name: QMEM3_1 - description: JPEG quantization tables - byte_offset: 276 - fieldset: QMEM3_1 - - name: QMEM3_2 - description: JPEG quantization tables - byte_offset: 280 - fieldset: QMEM3_2 - - name: QMEM3_3 - description: JPEG quantization tables - byte_offset: 284 - fieldset: QMEM3_3 - - name: QMEM3_4 - description: JPEG quantization tables - byte_offset: 288 - fieldset: QMEM3_4 - - name: QMEM3_5 - description: JPEG quantization tables - byte_offset: 292 - fieldset: QMEM3_5 - - name: QMEM3_6 - description: JPEG quantization tables - byte_offset: 296 - fieldset: QMEM3_6 - - name: QMEM3_7 - description: JPEG quantization tables - byte_offset: 300 - fieldset: QMEM3_7 - - name: QMEM3_8 - description: JPEG quantization tables - byte_offset: 304 - fieldset: QMEM3_8 - - name: QMEM3_9 - description: JPEG quantization tables - byte_offset: 308 - fieldset: QMEM3_9 - - name: QMEM3_10 - description: JPEG quantization tables - byte_offset: 312 - fieldset: QMEM3_10 - - name: QMEM3_11 - description: JPEG quantization tables - byte_offset: 316 - fieldset: QMEM3_11 - - name: QMEM3_12 - description: JPEG quantization tables - byte_offset: 320 - fieldset: QMEM3_12 - - name: QMEM3_13 - description: JPEG quantization tables - byte_offset: 324 - fieldset: QMEM3_13 - - name: QMEM3_14 - description: JPEG quantization tables - byte_offset: 328 - fieldset: QMEM3_14 - - name: QMEM3_15 - description: JPEG quantization tables - byte_offset: 332 - fieldset: QMEM3_15 - - name: HUFFMIN_0 - description: JPEG HuffMin tables - byte_offset: 336 - fieldset: HUFFMIN_0 - - name: HUFFMIN_1 - description: JPEG HuffMin tables - byte_offset: 340 - fieldset: HUFFMIN_1 - - name: HUFFMIN_2 - description: JPEG HuffMin tables - byte_offset: 344 - fieldset: HUFFMIN_2 - - name: HUFFMIN_3 - description: JPEG HuffMin tables - byte_offset: 348 - fieldset: HUFFMIN_3 - - name: HUFFMIN_4 - description: JPEG HuffMin tables - byte_offset: 352 - fieldset: HUFFMIN_4 - - name: HUFFMIN_5 - description: JPEG HuffMin tables - byte_offset: 356 - fieldset: HUFFMIN_5 - - name: HUFFMIN_6 - description: JPEG HuffMin tables - byte_offset: 360 - fieldset: HUFFMIN_6 - - name: HUFFMIN_7 - description: JPEG HuffMin tables - byte_offset: 364 - fieldset: HUFFMIN_7 - - name: HUFFMIN_8 - description: JPEG HuffMin tables - byte_offset: 368 - fieldset: HUFFMIN_8 - - name: HUFFMIN_9 - description: JPEG HuffMin tables - byte_offset: 372 - fieldset: HUFFMIN_9 - - name: HUFFMIN_10 - description: JPEG HuffMin tables - byte_offset: 376 - fieldset: HUFFMIN_10 - - name: HUFFMIN_11 - description: JPEG HuffMin tables - byte_offset: 380 - fieldset: HUFFMIN_11 - - name: HUFFMIN_12 - description: JPEG HuffMin tables - byte_offset: 384 - fieldset: HUFFMIN_12 - - name: HUFFMIN_13 - description: JPEG HuffMin tables - byte_offset: 388 - fieldset: HUFFMIN_13 - - name: HUFFMIN_14 - description: JPEG HuffMin tables - byte_offset: 392 - fieldset: HUFFMIN_14 - - name: HUFFMIN_15 - description: JPEG HuffMin tables - byte_offset: 396 - fieldset: HUFFMIN_15 - - name: HUFFBASE0 - description: JPEG HuffSymb tables - byte_offset: 400 - fieldset: HUFFBASE0 - - name: HUFFBASE1 - description: JPEG HuffSymb tables - byte_offset: 404 - fieldset: HUFFBASE1 - - name: HUFFBASE2 - description: JPEG HuffSymb tables - byte_offset: 408 - fieldset: HUFFBASE2 - - name: HUFFBASE3 - description: JPEG HuffSymb tables - byte_offset: 412 - fieldset: HUFFBASE3 - - name: HUFFBASE4 - description: JPEG HuffSymb tables - byte_offset: 416 - fieldset: HUFFBASE4 - - name: HUFFBASE5 - description: JPEG HuffSymb tables - byte_offset: 420 - fieldset: HUFFBASE5 - - name: HUFFBASE6 - description: JPEG HuffSymb tables - byte_offset: 424 - fieldset: HUFFBASE6 - - name: HUFFBASE7 - description: JPEG HuffSymb tables - byte_offset: 428 - fieldset: HUFFBASE7 - - name: HUFFBASE8 - description: JPEG HuffSymb tables - byte_offset: 432 - fieldset: HUFFBASE8 - - name: HUFFBASE9 - description: JPEG HuffSymb tables - byte_offset: 436 - fieldset: HUFFBASE9 - - name: HUFFBASE10 - description: JPEG HuffSymb tables - byte_offset: 440 - fieldset: HUFFBASE10 - - name: HUFFBASE11 - description: JPEG HuffSymb tables - byte_offset: 444 - fieldset: HUFFBASE11 - - name: HUFFBASE12 - description: JPEG HuffSymb tables - byte_offset: 448 - fieldset: HUFFBASE12 - - name: HUFFBASE13 - description: JPEG HuffSymb tables - byte_offset: 452 - fieldset: HUFFBASE13 - - name: HUFFBASE14 - description: JPEG HuffSymb tables - byte_offset: 456 - fieldset: HUFFBASE14 - - name: HUFFBASE15 - description: JPEG HuffSymb tables - byte_offset: 460 - fieldset: HUFFBASE15 - - name: HUFFBASE16 - description: JPEG HuffSymb tables - byte_offset: 464 - fieldset: HUFFBASE16 - - name: HUFFBASE17 - description: JPEG HuffSymb tables - byte_offset: 468 - fieldset: HUFFBASE17 - - name: HUFFBASE18 - description: JPEG HuffSymb tables - byte_offset: 472 - fieldset: HUFFBASE18 - - name: HUFFBASE19 - description: JPEG HuffSymb tables - byte_offset: 476 - fieldset: HUFFBASE19 - - name: HUFFBASE20 - description: JPEG HuffSymb tables - byte_offset: 480 - fieldset: HUFFBASE20 - - name: HUFFBASE21 - description: JPEG HuffSymb tables - byte_offset: 484 - fieldset: HUFFBASE21 - - name: HUFFBASE22 - description: JPEG HuffSymb tables - byte_offset: 488 - fieldset: HUFFBASE22 - - name: HUFFBASE23 - description: JPEG HuffSymb tables - byte_offset: 492 - fieldset: HUFFBASE23 - - name: HUFFBASE24 - description: JPEG HuffSymb tables - byte_offset: 496 - fieldset: HUFFBASE24 - - name: HUFFBASE25 - description: JPEG HuffSymb tables - byte_offset: 500 - fieldset: HUFFBASE25 - - name: HUFFBASE26 - description: JPEG HuffSymb tables - byte_offset: 504 - fieldset: HUFFBASE26 - - name: HUFFBASE27 - description: JPEG HuffSymb tables - byte_offset: 508 - fieldset: HUFFBASE27 - - name: HUFFBASE28 - description: JPEG HuffSymb tables - byte_offset: 512 - fieldset: HUFFBASE28 - - name: HUFFBASE29 - description: JPEG HuffSymb tables - byte_offset: 516 - fieldset: HUFFBASE29 - - name: HUFFBASE30 - description: JPEG HuffSymb tables - byte_offset: 520 - fieldset: HUFFBASE30 - - name: HUFFBASE31 - description: JPEG HuffSymb tables - byte_offset: 524 - fieldset: HUFFBASE31 - - name: HUFFSYMB0 - description: JPEG HUFFSYMB tables - byte_offset: 528 - fieldset: HUFFSYMB0 - - name: HUFFSYMB1 - description: JPEG HUFFSYMB tables - byte_offset: 532 - fieldset: HUFFSYMB1 - - name: HUFFSYMB2 - description: JPEG HUFFSYMB tables - byte_offset: 536 - fieldset: HUFFSYMB2 - - name: HUFFSYMB3 - description: JPEG HUFFSYMB tables - byte_offset: 540 - fieldset: HUFFSYMB3 - - name: HUFFSYMB4 - description: JPEG HUFFSYMB tables - byte_offset: 544 - fieldset: HUFFSYMB4 - - name: HUFFSYMB5 - description: JPEG HUFFSYMB tables - byte_offset: 548 - fieldset: HUFFSYMB5 - - name: HUFFSYMB6 - description: JPEG HUFFSYMB tables - byte_offset: 552 - fieldset: HUFFSYMB6 - - name: HUFFSYMB7 - description: JPEG HUFFSYMB tables - byte_offset: 556 - fieldset: HUFFSYMB7 - - name: HUFFSYMB8 - description: JPEG HUFFSYMB tables - byte_offset: 560 - fieldset: HUFFSYMB8 - - name: HUFFSYMB9 - description: JPEG HUFFSYMB tables - byte_offset: 564 - fieldset: HUFFSYMB9 - - name: HUFFSYMB10 - description: JPEG HUFFSYMB tables - byte_offset: 568 - fieldset: HUFFSYMB10 - - name: HUFFSYMB11 - description: JPEG HUFFSYMB tables - byte_offset: 572 - fieldset: HUFFSYMB11 - - name: HUFFSYMB12 - description: JPEG HUFFSYMB tables - byte_offset: 576 - fieldset: HUFFSYMB12 - - name: HUFFSYMB13 - description: JPEG HUFFSYMB tables - byte_offset: 580 - fieldset: HUFFSYMB13 - - name: HUFFSYMB14 - description: JPEG HUFFSYMB tables - byte_offset: 584 - fieldset: HUFFSYMB14 - - name: HUFFSYMB15 - description: JPEG HUFFSYMB tables - byte_offset: 588 - fieldset: HUFFSYMB15 - - name: HUFFSYMB16 - description: JPEG HUFFSYMB tables - byte_offset: 592 - fieldset: HUFFSYMB16 - - name: HUFFSYMB17 - description: JPEG HUFFSYMB tables - byte_offset: 596 - fieldset: HUFFSYMB17 - - name: HUFFSYMB18 - description: JPEG HUFFSYMB tables - byte_offset: 600 - fieldset: HUFFSYMB18 - - name: HUFFSYMB19 - description: JPEG HUFFSYMB tables - byte_offset: 604 - fieldset: HUFFSYMB19 - - name: HUFFSYMB20 - description: JPEG HUFFSYMB tables - byte_offset: 608 - fieldset: HUFFSYMB20 - - name: HUFFSYMB21 - description: JPEG HUFFSYMB tables - byte_offset: 612 - fieldset: HUFFSYMB21 - - name: HUFFSYMB22 - description: JPEG HUFFSYMB tables - byte_offset: 616 - fieldset: HUFFSYMB22 - - name: HUFFSYMB23 - description: JPEG HUFFSYMB tables - byte_offset: 620 - fieldset: HUFFSYMB23 - - name: HUFFSYMB24 - description: JPEG HUFFSYMB tables - byte_offset: 624 - fieldset: HUFFSYMB24 - - name: HUFFSYMB25 - description: JPEG HUFFSYMB tables - byte_offset: 628 - fieldset: HUFFSYMB25 - - name: HUFFSYMB26 - description: JPEG HUFFSYMB tables - byte_offset: 632 - fieldset: HUFFSYMB26 - - name: HUFFSYMB27 - description: JPEG HUFFSYMB tables - byte_offset: 636 - fieldset: HUFFSYMB27 - - name: HUFFSYMB28 - description: JPEG HUFFSYMB tables - byte_offset: 640 - fieldset: HUFFSYMB28 - - name: HUFFSYMB29 - description: JPEG HUFFSYMB tables - byte_offset: 644 - fieldset: HUFFSYMB29 - - name: HUFFSYMB30 - description: JPEG HUFFSYMB tables - byte_offset: 648 - fieldset: HUFFSYMB30 - - name: HUFFSYMB31 - description: JPEG HUFFSYMB tables - byte_offset: 652 - fieldset: HUFFSYMB31 - - name: HUFFSYMB32 - description: JPEG HUFFSYMB tables - byte_offset: 656 - fieldset: HUFFSYMB32 - - name: HUFFSYMB33 - description: JPEG HUFFSYMB tables - byte_offset: 660 - fieldset: HUFFSYMB33 - - name: HUFFSYMB34 - description: JPEG HUFFSYMB tables - byte_offset: 664 - fieldset: HUFFSYMB34 - - name: HUFFSYMB35 - description: JPEG HUFFSYMB tables - byte_offset: 668 - fieldset: HUFFSYMB35 - - name: HUFFSYMB36 - description: JPEG HUFFSYMB tables - byte_offset: 672 - fieldset: HUFFSYMB36 - - name: HUFFSYMB37 - description: JPEG HUFFSYMB tables - byte_offset: 676 - fieldset: HUFFSYMB37 - - name: HUFFSYMB38 - description: JPEG HUFFSYMB tables - byte_offset: 680 - fieldset: HUFFSYMB38 - - name: HUFFSYMB39 - description: JPEG HUFFSYMB tables - byte_offset: 684 - fieldset: HUFFSYMB39 - - name: HUFFSYMB40 - description: JPEG HUFFSYMB tables - byte_offset: 688 - fieldset: HUFFSYMB40 - - name: HUFFSYMB41 - description: JPEG HUFFSYMB tables - byte_offset: 692 - fieldset: HUFFSYMB41 - - name: HUFFSYMB42 - description: JPEG HUFFSYMB tables - byte_offset: 696 - fieldset: HUFFSYMB42 - - name: HUFFSYMB43 - description: JPEG HUFFSYMB tables - byte_offset: 700 - fieldset: HUFFSYMB43 - - name: HUFFSYMB44 - description: JPEG HUFFSYMB tables - byte_offset: 704 - fieldset: HUFFSYMB44 - - name: HUFFSYMB45 - description: JPEG HUFFSYMB tables - byte_offset: 708 - fieldset: HUFFSYMB45 - - name: HUFFSYMB46 - description: JPEG HUFFSYMB tables - byte_offset: 712 - fieldset: HUFFSYMB46 - - name: HUFFSYMB47 - description: JPEG HUFFSYMB tables - byte_offset: 716 - fieldset: HUFFSYMB47 - - name: HUFFSYMB48 - description: JPEG HUFFSYMB tables - byte_offset: 720 - fieldset: HUFFSYMB48 - - name: HUFFSYMB49 - description: JPEG HUFFSYMB tables - byte_offset: 724 - fieldset: HUFFSYMB49 - - name: HUFFSYMB50 - description: JPEG HUFFSYMB tables - byte_offset: 728 - fieldset: HUFFSYMB50 - - name: HUFFSYMB51 - description: JPEG HUFFSYMB tables - byte_offset: 732 - fieldset: HUFFSYMB51 - - name: HUFFSYMB52 - description: JPEG HUFFSYMB tables - byte_offset: 736 - fieldset: HUFFSYMB52 - - name: HUFFSYMB53 - description: JPEG HUFFSYMB tables - byte_offset: 740 - fieldset: HUFFSYMB53 - - name: HUFFSYMB54 - description: JPEG HUFFSYMB tables - byte_offset: 744 - fieldset: HUFFSYMB54 - - name: HUFFSYMB55 - description: JPEG HUFFSYMB tables - byte_offset: 748 - fieldset: HUFFSYMB55 - - name: HUFFSYMB56 - description: JPEG HUFFSYMB tables - byte_offset: 752 - fieldset: HUFFSYMB56 - - name: HUFFSYMB57 - description: JPEG HUFFSYMB tables - byte_offset: 756 - fieldset: HUFFSYMB57 - - name: HUFFSYMB58 - description: JPEG HUFFSYMB tables - byte_offset: 760 - fieldset: HUFFSYMB58 - - name: HUFFSYMB59 - description: JPEG HUFFSYMB tables - byte_offset: 764 - fieldset: HUFFSYMB59 - - name: HUFFSYMB60 - description: JPEG HUFFSYMB tables - byte_offset: 768 - fieldset: HUFFSYMB60 - - name: HUFFSYMB61 - description: JPEG HUFFSYMB tables - byte_offset: 772 - fieldset: HUFFSYMB61 - - name: HUFFSYMB62 - description: JPEG HUFFSYMB tables - byte_offset: 776 - fieldset: HUFFSYMB62 - - name: HUFFSYMB63 - description: JPEG HUFFSYMB tables - byte_offset: 780 - fieldset: HUFFSYMB63 - - name: HUFFSYMB64 - description: JPEG HUFFSYMB tables - byte_offset: 784 - fieldset: HUFFSYMB64 - - name: HUFFSYMB65 - description: JPEG HUFFSYMB tables - byte_offset: 788 - fieldset: HUFFSYMB65 - - name: HUFFSYMB66 - description: JPEG HUFFSYMB tables - byte_offset: 792 - fieldset: HUFFSYMB66 - - name: HUFFSYMB67 - description: JPEG HUFFSYMB tables - byte_offset: 796 - fieldset: HUFFSYMB67 - - name: HUFFSYMB68 - description: JPEG HUFFSYMB tables - byte_offset: 800 - fieldset: HUFFSYMB68 - - name: HUFFSYMB69 - description: JPEG HUFFSYMB tables - byte_offset: 804 - fieldset: HUFFSYMB69 - - name: HUFFSYMB70 - description: JPEG HUFFSYMB tables - byte_offset: 808 - fieldset: HUFFSYMB70 - - name: HUFFSYMB71 - description: JPEG HUFFSYMB tables - byte_offset: 812 - fieldset: HUFFSYMB71 - - name: HUFFSYMB72 - description: JPEG HUFFSYMB tables - byte_offset: 816 - fieldset: HUFFSYMB72 - - name: HUFFSYMB73 - description: JPEG HUFFSYMB tables - byte_offset: 820 - fieldset: HUFFSYMB73 - - name: HUFFSYMB74 - description: JPEG HUFFSYMB tables - byte_offset: 824 - fieldset: HUFFSYMB74 - - name: HUFFSYMB75 - description: JPEG HUFFSYMB tables - byte_offset: 828 - fieldset: HUFFSYMB75 - - name: HUFFSYMB76 - description: JPEG HUFFSYMB tables - byte_offset: 832 - fieldset: HUFFSYMB76 - - name: HUFFSYMB77 - description: JPEG HUFFSYMB tables - byte_offset: 836 - fieldset: HUFFSYMB77 - - name: HUFFSYMB78 - description: JPEG HUFFSYMB tables - byte_offset: 840 - fieldset: HUFFSYMB78 - - name: HUFFSYMB79 - description: JPEG HUFFSYMB tables - byte_offset: 844 - fieldset: HUFFSYMB79 - - name: HUFFSYMB80 - description: JPEG HUFFSYMB tables - byte_offset: 848 - fieldset: HUFFSYMB80 - - name: HUFFSYMB81 - description: JPEG HUFFSYMB tables - byte_offset: 852 - fieldset: HUFFSYMB81 - - name: HUFFSYMB82 - description: JPEG HUFFSYMB tables - byte_offset: 856 - fieldset: HUFFSYMB82 - - name: HUFFSYMB83 - description: JPEG HUFFSYMB tables - byte_offset: 860 - fieldset: HUFFSYMB83 - - name: DHTMEM0 - description: JPEG DHTMem tables - byte_offset: 864 - fieldset: DHTMEM0 - - name: DHTMEM2 - description: JPEG DHTMem tables - byte_offset: 868 - fieldset: DHTMEM2 - - name: DHTMEM3 - description: JPEG DHTMem tables - byte_offset: 872 - fieldset: DHTMEM3 - - name: DHTMEM4 - description: JPEG DHTMem tables - byte_offset: 876 - fieldset: DHTMEM4 - - name: DHTMEM5 - description: JPEG DHTMem tables - byte_offset: 880 - fieldset: DHTMEM5 - - name: DHTMEM6 - description: JPEG DHTMem tables - byte_offset: 884 - fieldset: DHTMEM6 - - name: DHTMEM7 - description: JPEG DHTMem tables - byte_offset: 888 - fieldset: DHTMEM7 - - name: DHTMEM8 - description: JPEG DHTMem tables - byte_offset: 892 - fieldset: DHTMEM8 - - name: DHTMEM9 - description: JPEG DHTMem tables - byte_offset: 896 - fieldset: DHTMEM9 - - name: DHTMEM10 - description: JPEG DHTMem tables - byte_offset: 900 - fieldset: DHTMEM10 - - name: DHTMEM11 - description: JPEG DHTMem tables - byte_offset: 904 - fieldset: DHTMEM11 - - name: DHTMEM12 - description: JPEG DHTMem tables - byte_offset: 908 - fieldset: DHTMEM12 - - name: DHTMEM13 - description: JPEG DHTMem tables - byte_offset: 912 - fieldset: DHTMEM13 - - name: DHTMEM14 - description: JPEG DHTMem tables - byte_offset: 916 - fieldset: DHTMEM14 - - name: DHTMEM15 - description: JPEG DHTMem tables - byte_offset: 920 - fieldset: DHTMEM15 - - name: DHTMEM16 - description: JPEG DHTMem tables - byte_offset: 924 - fieldset: DHTMEM16 - - name: DHTMEM17 - description: JPEG DHTMem tables - byte_offset: 928 - fieldset: DHTMEM17 - - name: DHTMEM18 - description: JPEG DHTMem tables - byte_offset: 932 - fieldset: DHTMEM18 - - name: DHTMEM19 - description: JPEG DHTMem tables - byte_offset: 936 - fieldset: DHTMEM19 - - name: DHTMEM20 - description: JPEG DHTMem tables - byte_offset: 940 - fieldset: DHTMEM20 - - name: DHTMEM21 - description: JPEG DHTMem tables - byte_offset: 944 - fieldset: DHTMEM21 - - name: DHTMEM22 - description: JPEG DHTMem tables - byte_offset: 948 - fieldset: DHTMEM22 - - name: DHTMEM23 - description: JPEG DHTMem tables - byte_offset: 952 - fieldset: DHTMEM23 - - name: DHTMEM24 - description: JPEG DHTMem tables - byte_offset: 956 - fieldset: DHTMEM24 - - name: DHTMEM25 - description: JPEG DHTMem tables - byte_offset: 960 - fieldset: DHTMEM25 - - name: DHTMEM26 - description: JPEG DHTMem tables - byte_offset: 964 - fieldset: DHTMEM26 - - name: DHTMEM27 - description: JPEG DHTMem tables - byte_offset: 968 - fieldset: DHTMEM27 - - name: DHTMEM28 - description: JPEG DHTMem tables - byte_offset: 972 - fieldset: DHTMEM28 - - name: DHTMEM29 - description: JPEG DHTMem tables - byte_offset: 976 - fieldset: DHTMEM29 - - name: DHTMEM30 - description: JPEG DHTMem tables - byte_offset: 980 - fieldset: DHTMEM30 - - name: DHTMEM31 - description: JPEG DHTMem tables - byte_offset: 984 - fieldset: DHTMEM31 - - name: DHTMEM32 - description: JPEG DHTMem tables - byte_offset: 988 - fieldset: DHTMEM32 - - name: DHTMEM33 - description: JPEG DHTMem tables - byte_offset: 992 - fieldset: DHTMEM33 - - name: DHTMEM34 - description: JPEG DHTMem tables - byte_offset: 996 - fieldset: DHTMEM34 - - name: DHTMEM35 - description: JPEG DHTMem tables - byte_offset: 1000 - fieldset: DHTMEM35 - - name: DHTMEM36 - description: JPEG DHTMem tables - byte_offset: 1004 - fieldset: DHTMEM36 - - name: DHTMEM37 - description: JPEG DHTMem tables - byte_offset: 1008 - fieldset: DHTMEM37 - - name: DHTMEM38 - description: JPEG DHTMem tables - byte_offset: 1012 - fieldset: DHTMEM38 - - name: DHTMEM39 - description: JPEG DHTMem tables - byte_offset: 1016 - fieldset: DHTMEM39 - - name: DHTMEM40 - description: JPEG DHTMem tables - byte_offset: 1020 - fieldset: DHTMEM40 - - name: DHTMEM41 - description: JPEG DHTMem tables - byte_offset: 1024 - fieldset: DHTMEM41 - - name: DHTMEM42 - description: JPEG DHTMem tables - byte_offset: 1028 - fieldset: DHTMEM42 - - name: DHTMEM43 - description: JPEG DHTMem tables - byte_offset: 1032 - fieldset: DHTMEM43 - - name: DHTMEM44 - description: JPEG DHTMem tables - byte_offset: 1036 - fieldset: DHTMEM44 - - name: DHTMEM45 - description: JPEG DHTMem tables - byte_offset: 1040 - fieldset: DHTMEM45 - - name: DHTMEM46 - description: JPEG DHTMem tables - byte_offset: 1044 - fieldset: DHTMEM46 - - name: DHTMEM47 - description: JPEG DHTMem tables - byte_offset: 1048 - fieldset: DHTMEM47 - - name: DHTMEM48 - description: JPEG DHTMem tables - byte_offset: 1052 - fieldset: DHTMEM48 - - name: DHTMEM49 - description: JPEG DHTMem tables - byte_offset: 1056 - fieldset: DHTMEM49 - - name: DHTMEM50 - description: JPEG DHTMem tables - byte_offset: 1060 - fieldset: DHTMEM50 - - name: DHTMEM51 - description: JPEG DHTMem tables - byte_offset: 1064 - fieldset: DHTMEM51 - - name: DHTMEM52 - description: JPEG DHTMem tables - byte_offset: 1068 - fieldset: DHTMEM52 - - name: DHTMEM53 - description: JPEG DHTMem tables - byte_offset: 1072 - fieldset: DHTMEM53 - - name: DHTMEM54 - description: JPEG DHTMem tables - byte_offset: 1076 - fieldset: DHTMEM54 - - name: DHTMEM55 - description: JPEG DHTMem tables - byte_offset: 1080 - fieldset: DHTMEM55 - - name: DHTMEM56 - description: JPEG DHTMem tables - byte_offset: 1084 - fieldset: DHTMEM56 - - name: DHTMEM57 - description: JPEG DHTMem tables - byte_offset: 1088 - fieldset: DHTMEM57 - - name: DHTMEM58 - description: JPEG DHTMem tables - byte_offset: 1092 - fieldset: DHTMEM58 - - name: DHTMEM59 - description: JPEG DHTMem tables - byte_offset: 1096 - fieldset: DHTMEM59 - - name: DHTMEM60 - description: JPEG DHTMem tables - byte_offset: 1100 - fieldset: DHTMEM60 - - name: DHTMEM61 - description: JPEG DHTMem tables - byte_offset: 1104 - fieldset: DHTMEM61 - - name: DHTMEM62 - description: JPEG DHTMem tables - byte_offset: 1108 - fieldset: DHTMEM62 - - name: DHTMEM63 - description: JPEG DHTMem tables - byte_offset: 1112 - fieldset: DHTMEM63 - - name: DHTMEM64 - description: JPEG DHTMem tables - byte_offset: 1116 - fieldset: DHTMEM64 - - name: DHTMEM65 - description: JPEG DHTMem tables - byte_offset: 1120 - fieldset: DHTMEM65 - - name: DHTMEM66 - description: JPEG DHTMem tables - byte_offset: 1124 - fieldset: DHTMEM66 - - name: DHTMEM67 - description: JPEG DHTMem tables - byte_offset: 1128 - fieldset: DHTMEM67 - - name: DHTMEM68 - description: JPEG DHTMem tables - byte_offset: 1132 - fieldset: DHTMEM68 - - name: DHTMEM69 - description: JPEG DHTMem tables - byte_offset: 1136 - fieldset: DHTMEM69 - - name: DHTMEM70 - description: JPEG DHTMem tables - byte_offset: 1140 - fieldset: DHTMEM70 - - name: DHTMEM71 - description: JPEG DHTMem tables - byte_offset: 1144 - fieldset: DHTMEM71 - - name: DHTMEM72 - description: JPEG DHTMem tables - byte_offset: 1148 - fieldset: DHTMEM72 - - name: DHTMEM73 - description: JPEG DHTMem tables - byte_offset: 1152 - fieldset: DHTMEM73 - - name: DHTMEM74 - description: JPEG DHTMem tables - byte_offset: 1156 - fieldset: DHTMEM74 - - name: DHTMEM75 - description: JPEG DHTMem tables - byte_offset: 1160 - fieldset: DHTMEM75 - - name: DHTMEM76 - description: JPEG DHTMem tables - byte_offset: 1164 - fieldset: DHTMEM76 - - name: DHTMEM77 - description: JPEG DHTMem tables - byte_offset: 1168 - fieldset: DHTMEM77 - - name: DHTMEM78 - description: JPEG DHTMem tables - byte_offset: 1172 - fieldset: DHTMEM78 - - name: DHTMEM79 - description: JPEG DHTMem tables - byte_offset: 1176 - fieldset: DHTMEM79 - - name: DHTMEM80 - description: JPEG DHTMem tables - byte_offset: 1180 - fieldset: DHTMEM80 - - name: DHTMEM81 - description: JPEG DHTMem tables - byte_offset: 1184 - fieldset: DHTMEM81 - - name: DHTMEM82 - description: JPEG DHTMem tables - byte_offset: 1188 - fieldset: DHTMEM82 - - name: DHTMEM83 - description: JPEG DHTMem tables - byte_offset: 1192 - fieldset: DHTMEM83 - - name: DHTMEM84 - description: JPEG DHTMem tables - byte_offset: 1196 - fieldset: DHTMEM84 - - name: DHTMEM85 - description: JPEG DHTMem tables - byte_offset: 1200 - fieldset: DHTMEM85 - - name: DHTMEM86 - description: JPEG DHTMem tables - byte_offset: 1204 - fieldset: DHTMEM86 - - name: DHTMEM87 - description: JPEG DHTMem tables - byte_offset: 1208 - fieldset: DHTMEM87 - - name: DHTMEM88 - description: JPEG DHTMem tables - byte_offset: 1212 - fieldset: DHTMEM88 - - name: DHTMEM89 - description: JPEG DHTMem tables - byte_offset: 1216 - fieldset: DHTMEM89 - - name: DHTMEM90 - description: JPEG DHTMem tables - byte_offset: 1220 - fieldset: DHTMEM90 - - name: DHTMEM91 - description: JPEG DHTMem tables - byte_offset: 1224 - fieldset: DHTMEM91 - - name: DHTMEM92 - description: JPEG DHTMem tables - byte_offset: 1228 - fieldset: DHTMEM92 - - name: DHTMEM93 - description: JPEG DHTMem tables - byte_offset: 1232 - fieldset: DHTMEM93 - - name: DHTMEM94 - description: JPEG DHTMem tables - byte_offset: 1236 - fieldset: DHTMEM94 - - name: DHTMEM95 - description: JPEG DHTMem tables - byte_offset: 1240 - fieldset: DHTMEM95 - - name: DHTMEM96 - description: JPEG DHTMem tables - byte_offset: 1244 - fieldset: DHTMEM96 - - name: DHTMEM97 - description: JPEG DHTMem tables - byte_offset: 1248 - fieldset: DHTMEM97 - - name: DHTMEM98 - description: JPEG DHTMem tables - byte_offset: 1252 - fieldset: DHTMEM98 - - name: DHTMEM99 - description: JPEG DHTMem tables - byte_offset: 1256 - fieldset: DHTMEM99 - - name: DHTMEM100 - description: JPEG DHTMem tables - byte_offset: 1260 - fieldset: DHTMEM100 - - name: DHTMEM101 - description: JPEG DHTMem tables - byte_offset: 1264 - fieldset: DHTMEM101 - - name: DHTMEM102 - description: JPEG DHTMem tables - byte_offset: 1268 - fieldset: DHTMEM102 - - name: DHTMEM103 - description: JPEG DHTMem tables - byte_offset: 1272 - fieldset: DHTMEM103 - - name: HUFFENC_AC0_0 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1280 - fieldset: HUFFENC_AC0_0 - - name: HUFFENC_AC0_1 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1284 - fieldset: HUFFENC_AC0_1 - - name: HUFFENC_AC0_2 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1288 - fieldset: HUFFENC_AC0_2 - - name: HUFFENC_AC0_3 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1292 - fieldset: HUFFENC_AC0_3 - - name: HUFFENC_AC0_4 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1296 - fieldset: HUFFENC_AC0_4 - - name: HUFFENC_AC0_5 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1300 - fieldset: HUFFENC_AC0_5 - - name: HUFFENC_AC0_6 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1304 - fieldset: HUFFENC_AC0_6 - - name: HUFFENC_AC0_7 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1308 - fieldset: HUFFENC_AC0_7 - - name: HUFFENC_AC0_8 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1312 - fieldset: HUFFENC_AC0_8 - - name: HUFFENC_AC0_9 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1316 - fieldset: HUFFENC_AC0_9 - - name: HUFFENC_AC0_10 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1320 - fieldset: HUFFENC_AC0_10 - - name: HUFFENC_AC0_11 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1324 - fieldset: HUFFENC_AC0_11 - - name: HUFFENC_AC0_12 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1328 - fieldset: HUFFENC_AC0_12 - - name: HUFFENC_AC0_13 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1332 - fieldset: HUFFENC_AC0_13 - - name: HUFFENC_AC0_14 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1336 - fieldset: HUFFENC_AC0_14 - - name: HUFFENC_AC0_15 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1340 - fieldset: HUFFENC_AC0_15 - - name: HUFFENC_AC0_16 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1344 - fieldset: HUFFENC_AC0_16 - - name: HUFFENC_AC0_17 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1348 - fieldset: HUFFENC_AC0_17 - - name: HUFFENC_AC0_18 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1352 - fieldset: HUFFENC_AC0_18 - - name: HUFFENC_AC0_19 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1356 - fieldset: HUFFENC_AC0_19 - - name: HUFFENC_AC0_20 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1360 - fieldset: HUFFENC_AC0_20 - - name: HUFFENC_AC0_21 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1364 - fieldset: HUFFENC_AC0_21 - - name: HUFFENC_AC0_22 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1368 - fieldset: HUFFENC_AC0_22 - - name: HUFFENC_AC0_23 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1372 - fieldset: HUFFENC_AC0_23 - - name: HUFFENC_AC0_24 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1376 - fieldset: HUFFENC_AC0_24 - - name: HUFFENC_AC0_25 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1380 - fieldset: HUFFENC_AC0_25 - - name: HUFFENC_AC0_26 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1384 - fieldset: HUFFENC_AC0_26 - - name: HUFFENC_AC0_27 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1388 - fieldset: HUFFENC_AC0_27 - - name: HUFFENC_AC0_28 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1392 - fieldset: HUFFENC_AC0_28 - - name: HUFFENC_AC0_29 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1396 - fieldset: HUFFENC_AC0_29 - - name: HUFFENC_AC0_30 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1400 - fieldset: HUFFENC_AC0_30 - - name: HUFFENC_AC0_31 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1404 - fieldset: HUFFENC_AC0_31 - - name: HUFFENC_AC0_32 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1408 - fieldset: HUFFENC_AC0_32 - - name: HUFFENC_AC0_33 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1412 - fieldset: HUFFENC_AC0_33 - - name: HUFFENC_AC0_34 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1416 - fieldset: HUFFENC_AC0_34 - - name: HUFFENC_AC0_35 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1420 - fieldset: HUFFENC_AC0_35 - - name: HUFFENC_AC0_36 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1424 - fieldset: HUFFENC_AC0_36 - - name: HUFFENC_AC0_37 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1428 - fieldset: HUFFENC_AC0_37 - - name: HUFFENC_AC0_38 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1432 - fieldset: HUFFENC_AC0_38 - - name: HUFFENC_AC0_39 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1436 - fieldset: HUFFENC_AC0_39 - - name: HUFFENC_AC0_40 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1440 - fieldset: HUFFENC_AC0_40 - - name: HUFFENC_AC0_41 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1444 - fieldset: HUFFENC_AC0_41 - - name: HUFFENC_AC0_42 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1448 - fieldset: HUFFENC_AC0_42 - - name: HUFFENC_AC0_43 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1452 - fieldset: HUFFENC_AC0_43 - - name: HUFFENC_AC0_44 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1456 - fieldset: HUFFENC_AC0_44 - - name: HUFFENC_AC0_45 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1460 - fieldset: HUFFENC_AC0_45 - - name: HUFFENC_AC0_46 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1464 - fieldset: HUFFENC_AC0_46 - - name: HUFFENC_AC0_47 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1468 - fieldset: HUFFENC_AC0_47 - - name: HUFFENC_AC0_48 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1472 - fieldset: HUFFENC_AC0_48 - - name: HUFFENC_AC0_49 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1476 - fieldset: HUFFENC_AC0_49 - - name: HUFFENC_AC0_50 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1480 - fieldset: HUFFENC_AC0_50 - - name: HUFFENC_AC0_51 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1484 - fieldset: HUFFENC_AC0_51 - - name: HUFFENC_AC0_52 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1488 - fieldset: HUFFENC_AC0_52 - - name: HUFFENC_AC0_53 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1492 - fieldset: HUFFENC_AC0_53 - - name: HUFFENC_AC0_54 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1496 - fieldset: HUFFENC_AC0_54 - - name: HUFFENC_AC0_55 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1500 - fieldset: HUFFENC_AC0_55 - - name: HUFFENC_AC0_56 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1504 - fieldset: HUFFENC_AC0_56 - - name: HUFFENC_AC0_57 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1508 - fieldset: HUFFENC_AC0_57 - - name: HUFFENC_AC0_58 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1512 - fieldset: HUFFENC_AC0_58 - - name: HUFFENC_AC0_59 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1516 - fieldset: HUFFENC_AC0_59 - - name: HUFFENC_AC0_60 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1520 - fieldset: HUFFENC_AC0_60 - - name: HUFFENC_AC0_61 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1524 - fieldset: HUFFENC_AC0_61 - - name: HUFFENC_AC0_62 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1528 - fieldset: HUFFENC_AC0_62 - - name: HUFFENC_AC0_63 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1532 - fieldset: HUFFENC_AC0_63 - - name: HUFFENC_AC0_64 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1536 - fieldset: HUFFENC_AC0_64 - - name: HUFFENC_AC0_65 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1540 - fieldset: HUFFENC_AC0_65 - - name: HUFFENC_AC0_66 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1544 - fieldset: HUFFENC_AC0_66 - - name: HUFFENC_AC0_67 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1548 - fieldset: HUFFENC_AC0_67 - - name: HUFFENC_AC0_68 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1552 - fieldset: HUFFENC_AC0_68 - - name: HUFFENC_AC0_69 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1556 - fieldset: HUFFENC_AC0_69 - - name: HUFFENC_AC0_70 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1560 - fieldset: HUFFENC_AC0_70 - - name: HUFFENC_AC0_71 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1564 - fieldset: HUFFENC_AC0_71 - - name: HUFFENC_AC0_72 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1568 - fieldset: HUFFENC_AC0_72 - - name: HUFFENC_AC0_73 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1572 - fieldset: HUFFENC_AC0_73 - - name: HUFFENC_AC0_74 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1576 - fieldset: HUFFENC_AC0_74 - - name: HUFFENC_AC0_75 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1580 - fieldset: HUFFENC_AC0_75 - - name: HUFFENC_AC0_76 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1584 - fieldset: HUFFENC_AC0_76 - - name: HUFFENC_AC0_77 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1588 - fieldset: HUFFENC_AC0_77 - - name: HUFFENC_AC0_78 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1592 - fieldset: HUFFENC_AC0_78 - - name: HUFFENC_AC0_79 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1596 - fieldset: HUFFENC_AC0_79 - - name: HUFFENC_AC0_80 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1600 - fieldset: HUFFENC_AC0_80 - - name: HUFFENC_AC0_81 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1604 - fieldset: HUFFENC_AC0_81 - - name: HUFFENC_AC0_82 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1608 - fieldset: HUFFENC_AC0_82 - - name: HUFFENC_AC0_83 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1612 - fieldset: HUFFENC_AC0_83 - - name: HUFFENC_AC0_84 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1616 - fieldset: HUFFENC_AC0_84 - - name: HUFFENC_AC0_85 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1620 - fieldset: HUFFENC_AC0_85 - - name: HUFFENC_AC0_86 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1624 - fieldset: HUFFENC_AC0_86 - - name: HUFFENC_AC0_87 - description: "JPEG encoder, AC Huffman table 0" - byte_offset: 1628 - fieldset: HUFFENC_AC0_87 - - name: HUFFENC_AC1_0 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1632 - fieldset: HUFFENC_AC1_0 - - name: HUFFENC_AC1_1 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1636 - fieldset: HUFFENC_AC1_1 - - name: HUFFENC_AC1_2 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1640 - fieldset: HUFFENC_AC1_2 - - name: HUFFENC_AC1_3 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1644 - fieldset: HUFFENC_AC1_3 - - name: HUFFENC_AC1_4 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1648 - fieldset: HUFFENC_AC1_4 - - name: HUFFENC_AC1_5 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1652 - fieldset: HUFFENC_AC1_5 - - name: HUFFENC_AC1_6 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1656 - fieldset: HUFFENC_AC1_6 - - name: HUFFENC_AC1_7 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1660 - fieldset: HUFFENC_AC1_7 - - name: HUFFENC_AC1_8 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1664 - fieldset: HUFFENC_AC1_8 - - name: HUFFENC_AC1_9 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1668 - fieldset: HUFFENC_AC1_9 - - name: HUFFENC_AC1_10 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1672 - fieldset: HUFFENC_AC1_10 - - name: HUFFENC_AC1_11 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1676 - fieldset: HUFFENC_AC1_11 - - name: HUFFENC_AC1_12 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1680 - fieldset: HUFFENC_AC1_12 - - name: HUFFENC_AC1_13 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1684 - fieldset: HUFFENC_AC1_13 - - name: HUFFENC_AC1_14 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1688 - fieldset: HUFFENC_AC1_14 - - name: HUFFENC_AC1_15 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1692 - fieldset: HUFFENC_AC1_15 - - name: HUFFENC_AC1_16 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1696 - fieldset: HUFFENC_AC1_16 - - name: HUFFENC_AC1_17 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1700 - fieldset: HUFFENC_AC1_17 - - name: HUFFENC_AC1_18 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1704 - fieldset: HUFFENC_AC1_18 - - name: HUFFENC_AC1_19 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1708 - fieldset: HUFFENC_AC1_19 - - name: HUFFENC_AC1_20 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1712 - fieldset: HUFFENC_AC1_20 - - name: HUFFENC_AC1_21 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1716 - fieldset: HUFFENC_AC1_21 - - name: HUFFENC_AC1_22 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1720 - fieldset: HUFFENC_AC1_22 - - name: HUFFENC_AC1_23 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1724 - fieldset: HUFFENC_AC1_23 - - name: HUFFENC_AC1_24 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1728 - fieldset: HUFFENC_AC1_24 - - name: HUFFENC_AC1_25 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1732 - fieldset: HUFFENC_AC1_25 - - name: HUFFENC_AC1_26 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1736 - fieldset: HUFFENC_AC1_26 - - name: HUFFENC_AC1_27 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1740 - fieldset: HUFFENC_AC1_27 - - name: HUFFENC_AC1_28 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1744 - fieldset: HUFFENC_AC1_28 - - name: HUFFENC_AC1_29 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1748 - fieldset: HUFFENC_AC1_29 - - name: HUFFENC_AC1_30 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1752 - fieldset: HUFFENC_AC1_30 - - name: HUFFENC_AC1_31 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1756 - fieldset: HUFFENC_AC1_31 - - name: HUFFENC_AC1_32 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1760 - fieldset: HUFFENC_AC1_32 - - name: HUFFENC_AC1_33 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1764 - fieldset: HUFFENC_AC1_33 - - name: HUFFENC_AC1_34 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1768 - fieldset: HUFFENC_AC1_34 - - name: HUFFENC_AC1_35 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1772 - fieldset: HUFFENC_AC1_35 - - name: HUFFENC_AC1_36 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1776 - fieldset: HUFFENC_AC1_36 - - name: HUFFENC_AC1_37 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1780 - fieldset: HUFFENC_AC1_37 - - name: HUFFENC_AC1_38 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1784 - fieldset: HUFFENC_AC1_38 - - name: HUFFENC_AC1_39 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1788 - fieldset: HUFFENC_AC1_39 - - name: HUFFENC_AC1_40 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1792 - fieldset: HUFFENC_AC1_40 - - name: HUFFENC_AC1_41 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1796 - fieldset: HUFFENC_AC1_41 - - name: HUFFENC_AC1_42 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1800 - fieldset: HUFFENC_AC1_42 - - name: HUFFENC_AC1_43 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1804 - fieldset: HUFFENC_AC1_43 - - name: HUFFENC_AC1_44 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1808 - fieldset: HUFFENC_AC1_44 - - name: HUFFENC_AC1_45 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1812 - fieldset: HUFFENC_AC1_45 - - name: HUFFENC_AC1_46 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1816 - fieldset: HUFFENC_AC1_46 - - name: HUFFENC_AC1_47 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1820 - fieldset: HUFFENC_AC1_47 - - name: HUFFENC_AC1_48 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1824 - fieldset: HUFFENC_AC1_48 - - name: HUFFENC_AC1_49 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1828 - fieldset: HUFFENC_AC1_49 - - name: HUFFENC_AC1_50 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1832 - fieldset: HUFFENC_AC1_50 - - name: HUFFENC_AC1_51 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1836 - fieldset: HUFFENC_AC1_51 - - name: HUFFENC_AC1_52 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1840 - fieldset: HUFFENC_AC1_52 - - name: HUFFENC_AC1_53 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1844 - fieldset: HUFFENC_AC1_53 - - name: HUFFENC_AC1_54 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1848 - fieldset: HUFFENC_AC1_54 - - name: HUFFENC_AC1_55 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1852 - fieldset: HUFFENC_AC1_55 - - name: HUFFENC_AC1_56 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1856 - fieldset: HUFFENC_AC1_56 - - name: HUFFENC_AC1_57 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1860 - fieldset: HUFFENC_AC1_57 - - name: HUFFENC_AC1_58 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1864 - fieldset: HUFFENC_AC1_58 - - name: HUFFENC_AC1_59 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1868 - fieldset: HUFFENC_AC1_59 - - name: HUFFENC_AC1_60 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1872 - fieldset: HUFFENC_AC1_60 - - name: HUFFENC_AC1_61 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1876 - fieldset: HUFFENC_AC1_61 - - name: HUFFENC_AC1_62 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1880 - fieldset: HUFFENC_AC1_62 - - name: HUFFENC_AC1_63 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1884 - fieldset: HUFFENC_AC1_63 - - name: HUFFENC_AC1_64 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1888 - fieldset: HUFFENC_AC1_64 - - name: HUFFENC_AC1_65 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1892 - fieldset: HUFFENC_AC1_65 - - name: HUFFENC_AC1_66 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1896 - fieldset: HUFFENC_AC1_66 - - name: HUFFENC_AC1_67 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1900 - fieldset: HUFFENC_AC1_67 - - name: HUFFENC_AC1_68 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1904 - fieldset: HUFFENC_AC1_68 - - name: HUFFENC_AC1_69 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1908 - fieldset: HUFFENC_AC1_69 - - name: HUFFENC_AC1_70 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1912 - fieldset: HUFFENC_AC1_70 - - name: HUFFENC_AC1_71 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1916 - fieldset: HUFFENC_AC1_71 - - name: HUFFENC_AC1_72 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1920 - fieldset: HUFFENC_AC1_72 - - name: HUFFENC_AC1_73 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1924 - fieldset: HUFFENC_AC1_73 - - name: HUFFENC_AC1_74 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1928 - fieldset: HUFFENC_AC1_74 - - name: HUFFENC_AC1_75 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1932 - fieldset: HUFFENC_AC1_75 - - name: HUFFENC_AC1_76 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1936 - fieldset: HUFFENC_AC1_76 - - name: HUFFENC_AC1_77 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1940 - fieldset: HUFFENC_AC1_77 - - name: HUFFENC_AC1_78 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1944 - fieldset: HUFFENC_AC1_78 - - name: HUFFENC_AC1_79 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1948 - fieldset: HUFFENC_AC1_79 - - name: HUFFENC_AC1_80 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1952 - fieldset: HUFFENC_AC1_80 - - name: HUFFENC_AC1_81 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1956 - fieldset: HUFFENC_AC1_81 - - name: HUFFENC_AC1_82 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1960 - fieldset: HUFFENC_AC1_82 - - name: HUFFENC_AC1_83 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1964 - fieldset: HUFFENC_AC1_83 - - name: HUFFENC_AC1_84 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1968 - fieldset: HUFFENC_AC1_84 - - name: HUFFENC_AC1_85 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1972 - fieldset: HUFFENC_AC1_85 - - name: HUFFENC_AC1_86 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1976 - fieldset: HUFFENC_AC1_86 - - name: HUFFENC_AC1_87 - description: "JPEG encoder, AC Huffman table 1" - byte_offset: 1980 - fieldset: HUFFENC_AC1_87 - - name: HUFFENC_DC0_0 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 1984 - fieldset: HUFFENC_DC0_0 - - name: HUFFENC_DC0_1 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 1988 - fieldset: HUFFENC_DC0_1 - - name: HUFFENC_DC0_2 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 1992 - fieldset: HUFFENC_DC0_2 - - name: HUFFENC_DC0_3 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 1996 - fieldset: HUFFENC_DC0_3 - - name: HUFFENC_DC0_4 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 2000 - fieldset: HUFFENC_DC0_4 - - name: HUFFENC_DC0_5 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 2004 - fieldset: HUFFENC_DC0_5 - - name: HUFFENC_DC0_6 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 2008 - fieldset: HUFFENC_DC0_6 - - name: HUFFENC_DC0_7 - description: "JPEG encoder, DC Huffman table 0" - byte_offset: 2012 - fieldset: HUFFENC_DC0_7 - - name: HUFFENC_DC1_0 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2016 - fieldset: HUFFENC_DC1_0 - - name: HUFFENC_DC1_1 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2020 - fieldset: HUFFENC_DC1_1 - - name: HUFFENC_DC1_2 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2024 - fieldset: HUFFENC_DC1_2 - - name: HUFFENC_DC1_3 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2028 - fieldset: HUFFENC_DC1_3 - - name: HUFFENC_DC1_4 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2032 - fieldset: HUFFENC_DC1_4 - - name: HUFFENC_DC1_5 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2036 - fieldset: HUFFENC_DC1_5 - - name: HUFFENC_DC1_6 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2040 - fieldset: HUFFENC_DC1_6 - - name: HUFFENC_DC1_7 - description: "JPEG encoder, DC Huffman table 1" - byte_offset: 2044 - fieldset: HUFFENC_DC1_7 + - name: JPEG_CONFR0 + description: JPEG codec configuration register 0 + byte_offset: 0 + access: Write + fieldset: JPEG_CONFR0 + - name: JPEG_CONFR1 + description: JPEG codec configuration register 1 + byte_offset: 4 + fieldset: JPEG_CONFR1 + - name: JPEG_CONFR2 + description: JPEG codec configuration register 2 + byte_offset: 8 + fieldset: JPEG_CONFR2 + - name: JPEG_CONFR3 + description: JPEG codec configuration register 3 + byte_offset: 12 + fieldset: JPEG_CONFR3 + - name: JPEG_CONFR4 + description: JPEG codec configuration register 4 + byte_offset: 16 + fieldset: JPEG_CONFR4 + - name: JPEG_CONFR5 + description: JPEG codec configuration register 5 + byte_offset: 20 + fieldset: JPEG_CONFR5 + - name: JPEG_CONFR6 + description: JPEG codec configuration register 6 + byte_offset: 24 + fieldset: JPEG_CONFR6 + - name: JPEG_CONFR7 + description: JPEG codec configuration register 7 + byte_offset: 28 + fieldset: JPEG_CONFR7 + - name: JPEG_CR + description: JPEG control register + byte_offset: 48 + fieldset: JPEG_CR + - name: JPEG_SR + description: JPEG status register + byte_offset: 52 + access: Read + fieldset: JPEG_SR + - name: JPEG_CFR + description: JPEG clear flag register + byte_offset: 56 + access: Write + fieldset: JPEG_CFR + - name: JPEG_DIR + description: JPEG data input register + byte_offset: 64 + access: Write + fieldset: JPEG_DIR + - name: JPEG_DOR + description: JPEG data output register + byte_offset: 68 + access: Read + fieldset: JPEG_DOR + - name: QMEM0_0 + description: JPEG quantization tables + byte_offset: 80 + fieldset: QMEM0_0 + - name: QMEM0_1 + description: JPEG quantization tables + byte_offset: 84 + fieldset: QMEM0_1 + - name: QMEM0_2 + description: JPEG quantization tables + byte_offset: 88 + fieldset: QMEM0_2 + - name: QMEM0_3 + description: JPEG quantization tables + byte_offset: 92 + fieldset: QMEM0_3 + - name: QMEM0_4 + description: JPEG quantization tables + byte_offset: 96 + fieldset: QMEM0_4 + - name: QMEM0_5 + description: JPEG quantization tables + byte_offset: 100 + fieldset: QMEM0_5 + - name: QMEM0_6 + description: JPEG quantization tables + byte_offset: 104 + fieldset: QMEM0_6 + - name: QMEM0_7 + description: JPEG quantization tables + byte_offset: 108 + fieldset: QMEM0_7 + - name: QMEM0_8 + description: JPEG quantization tables + byte_offset: 112 + fieldset: QMEM0_8 + - name: QMEM0_9 + description: JPEG quantization tables + byte_offset: 116 + fieldset: QMEM0_9 + - name: QMEM0_10 + description: JPEG quantization tables + byte_offset: 120 + fieldset: QMEM0_10 + - name: QMEM0_11 + description: JPEG quantization tables + byte_offset: 124 + fieldset: QMEM0_11 + - name: QMEM0_12 + description: JPEG quantization tables + byte_offset: 128 + fieldset: QMEM0_12 + - name: QMEM0_13 + description: JPEG quantization tables + byte_offset: 132 + fieldset: QMEM0_13 + - name: QMEM0_14 + description: JPEG quantization tables + byte_offset: 136 + fieldset: QMEM0_14 + - name: QMEM0_15 + description: JPEG quantization tables + byte_offset: 140 + fieldset: QMEM0_15 + - name: QMEM1_0 + description: JPEG quantization tables + byte_offset: 144 + fieldset: QMEM1_0 + - name: QMEM1_1 + description: JPEG quantization tables + byte_offset: 148 + fieldset: QMEM1_1 + - name: QMEM1_2 + description: JPEG quantization tables + byte_offset: 152 + fieldset: QMEM1_2 + - name: QMEM1_3 + description: JPEG quantization tables + byte_offset: 156 + fieldset: QMEM1_3 + - name: QMEM1_4 + description: JPEG quantization tables + byte_offset: 160 + fieldset: QMEM1_4 + - name: QMEM1_5 + description: JPEG quantization tables + byte_offset: 164 + fieldset: QMEM1_5 + - name: QMEM1_6 + description: JPEG quantization tables + byte_offset: 168 + fieldset: QMEM1_6 + - name: QMEM1_7 + description: JPEG quantization tables + byte_offset: 172 + fieldset: QMEM1_7 + - name: QMEM1_8 + description: JPEG quantization tables + byte_offset: 176 + fieldset: QMEM1_8 + - name: QMEM1_9 + description: JPEG quantization tables + byte_offset: 180 + fieldset: QMEM1_9 + - name: QMEM1_10 + description: JPEG quantization tables + byte_offset: 184 + fieldset: QMEM1_10 + - name: QMEM1_11 + description: JPEG quantization tables + byte_offset: 188 + fieldset: QMEM1_11 + - name: QMEM1_12 + description: JPEG quantization tables + byte_offset: 192 + fieldset: QMEM1_12 + - name: QMEM1_13 + description: JPEG quantization tables + byte_offset: 196 + fieldset: QMEM1_13 + - name: QMEM1_14 + description: JPEG quantization tables + byte_offset: 200 + fieldset: QMEM1_14 + - name: QMEM1_15 + description: JPEG quantization tables + byte_offset: 204 + fieldset: QMEM1_15 + - name: QMEM2_0 + description: JPEG quantization tables + byte_offset: 208 + fieldset: QMEM2_0 + - name: QMEM2_1 + description: JPEG quantization tables + byte_offset: 212 + fieldset: QMEM2_1 + - name: QMEM2_2 + description: JPEG quantization tables + byte_offset: 216 + fieldset: QMEM2_2 + - name: QMEM2_3 + description: JPEG quantization tables + byte_offset: 220 + fieldset: QMEM2_3 + - name: QMEM2_4 + description: JPEG quantization tables + byte_offset: 224 + fieldset: QMEM2_4 + - name: QMEM2_5 + description: JPEG quantization tables + byte_offset: 228 + fieldset: QMEM2_5 + - name: QMEM2_6 + description: JPEG quantization tables + byte_offset: 232 + fieldset: QMEM2_6 + - name: QMEM2_7 + description: JPEG quantization tables + byte_offset: 236 + fieldset: QMEM2_7 + - name: QMEM2_8 + description: JPEG quantization tables + byte_offset: 240 + fieldset: QMEM2_8 + - name: QMEM2_9 + description: JPEG quantization tables + byte_offset: 244 + fieldset: QMEM2_9 + - name: QMEM2_10 + description: JPEG quantization tables + byte_offset: 248 + fieldset: QMEM2_10 + - name: QMEM2_11 + description: JPEG quantization tables + byte_offset: 252 + fieldset: QMEM2_11 + - name: QMEM2_12 + description: JPEG quantization tables + byte_offset: 256 + fieldset: QMEM2_12 + - name: QMEM2_13 + description: JPEG quantization tables + byte_offset: 260 + fieldset: QMEM2_13 + - name: QMEM2_14 + description: JPEG quantization tables + byte_offset: 264 + fieldset: QMEM2_14 + - name: QMEM2_15 + description: JPEG quantization tables + byte_offset: 268 + fieldset: QMEM2_15 + - name: QMEM3_0 + description: JPEG quantization tables + byte_offset: 272 + fieldset: QMEM3_0 + - name: QMEM3_1 + description: JPEG quantization tables + byte_offset: 276 + fieldset: QMEM3_1 + - name: QMEM3_2 + description: JPEG quantization tables + byte_offset: 280 + fieldset: QMEM3_2 + - name: QMEM3_3 + description: JPEG quantization tables + byte_offset: 284 + fieldset: QMEM3_3 + - name: QMEM3_4 + description: JPEG quantization tables + byte_offset: 288 + fieldset: QMEM3_4 + - name: QMEM3_5 + description: JPEG quantization tables + byte_offset: 292 + fieldset: QMEM3_5 + - name: QMEM3_6 + description: JPEG quantization tables + byte_offset: 296 + fieldset: QMEM3_6 + - name: QMEM3_7 + description: JPEG quantization tables + byte_offset: 300 + fieldset: QMEM3_7 + - name: QMEM3_8 + description: JPEG quantization tables + byte_offset: 304 + fieldset: QMEM3_8 + - name: QMEM3_9 + description: JPEG quantization tables + byte_offset: 308 + fieldset: QMEM3_9 + - name: QMEM3_10 + description: JPEG quantization tables + byte_offset: 312 + fieldset: QMEM3_10 + - name: QMEM3_11 + description: JPEG quantization tables + byte_offset: 316 + fieldset: QMEM3_11 + - name: QMEM3_12 + description: JPEG quantization tables + byte_offset: 320 + fieldset: QMEM3_12 + - name: QMEM3_13 + description: JPEG quantization tables + byte_offset: 324 + fieldset: QMEM3_13 + - name: QMEM3_14 + description: JPEG quantization tables + byte_offset: 328 + fieldset: QMEM3_14 + - name: QMEM3_15 + description: JPEG quantization tables + byte_offset: 332 + fieldset: QMEM3_15 + - name: HUFFMIN_0 + description: JPEG HuffMin tables + byte_offset: 336 + fieldset: HUFFMIN_0 + - name: HUFFMIN_1 + description: JPEG HuffMin tables + byte_offset: 340 + fieldset: HUFFMIN_1 + - name: HUFFMIN_2 + description: JPEG HuffMin tables + byte_offset: 344 + fieldset: HUFFMIN_2 + - name: HUFFMIN_3 + description: JPEG HuffMin tables + byte_offset: 348 + fieldset: HUFFMIN_3 + - name: HUFFMIN_4 + description: JPEG HuffMin tables + byte_offset: 352 + fieldset: HUFFMIN_4 + - name: HUFFMIN_5 + description: JPEG HuffMin tables + byte_offset: 356 + fieldset: HUFFMIN_5 + - name: HUFFMIN_6 + description: JPEG HuffMin tables + byte_offset: 360 + fieldset: HUFFMIN_6 + - name: HUFFMIN_7 + description: JPEG HuffMin tables + byte_offset: 364 + fieldset: HUFFMIN_7 + - name: HUFFMIN_8 + description: JPEG HuffMin tables + byte_offset: 368 + fieldset: HUFFMIN_8 + - name: HUFFMIN_9 + description: JPEG HuffMin tables + byte_offset: 372 + fieldset: HUFFMIN_9 + - name: HUFFMIN_10 + description: JPEG HuffMin tables + byte_offset: 376 + fieldset: HUFFMIN_10 + - name: HUFFMIN_11 + description: JPEG HuffMin tables + byte_offset: 380 + fieldset: HUFFMIN_11 + - name: HUFFMIN_12 + description: JPEG HuffMin tables + byte_offset: 384 + fieldset: HUFFMIN_12 + - name: HUFFMIN_13 + description: JPEG HuffMin tables + byte_offset: 388 + fieldset: HUFFMIN_13 + - name: HUFFMIN_14 + description: JPEG HuffMin tables + byte_offset: 392 + fieldset: HUFFMIN_14 + - name: HUFFMIN_15 + description: JPEG HuffMin tables + byte_offset: 396 + fieldset: HUFFMIN_15 + - name: HUFFBASE0 + description: JPEG HuffSymb tables + byte_offset: 400 + fieldset: HUFFBASE0 + - name: HUFFBASE1 + description: JPEG HuffSymb tables + byte_offset: 404 + fieldset: HUFFBASE1 + - name: HUFFBASE2 + description: JPEG HuffSymb tables + byte_offset: 408 + fieldset: HUFFBASE2 + - name: HUFFBASE3 + description: JPEG HuffSymb tables + byte_offset: 412 + fieldset: HUFFBASE3 + - name: HUFFBASE4 + description: JPEG HuffSymb tables + byte_offset: 416 + fieldset: HUFFBASE4 + - name: HUFFBASE5 + description: JPEG HuffSymb tables + byte_offset: 420 + fieldset: HUFFBASE5 + - name: HUFFBASE6 + description: JPEG HuffSymb tables + byte_offset: 424 + fieldset: HUFFBASE6 + - name: HUFFBASE7 + description: JPEG HuffSymb tables + byte_offset: 428 + fieldset: HUFFBASE7 + - name: HUFFBASE8 + description: JPEG HuffSymb tables + byte_offset: 432 + fieldset: HUFFBASE8 + - name: HUFFBASE9 + description: JPEG HuffSymb tables + byte_offset: 436 + fieldset: HUFFBASE9 + - name: HUFFBASE10 + description: JPEG HuffSymb tables + byte_offset: 440 + fieldset: HUFFBASE10 + - name: HUFFBASE11 + description: JPEG HuffSymb tables + byte_offset: 444 + fieldset: HUFFBASE11 + - name: HUFFBASE12 + description: JPEG HuffSymb tables + byte_offset: 448 + fieldset: HUFFBASE12 + - name: HUFFBASE13 + description: JPEG HuffSymb tables + byte_offset: 452 + fieldset: HUFFBASE13 + - name: HUFFBASE14 + description: JPEG HuffSymb tables + byte_offset: 456 + fieldset: HUFFBASE14 + - name: HUFFBASE15 + description: JPEG HuffSymb tables + byte_offset: 460 + fieldset: HUFFBASE15 + - name: HUFFBASE16 + description: JPEG HuffSymb tables + byte_offset: 464 + fieldset: HUFFBASE16 + - name: HUFFBASE17 + description: JPEG HuffSymb tables + byte_offset: 468 + fieldset: HUFFBASE17 + - name: HUFFBASE18 + description: JPEG HuffSymb tables + byte_offset: 472 + fieldset: HUFFBASE18 + - name: HUFFBASE19 + description: JPEG HuffSymb tables + byte_offset: 476 + fieldset: HUFFBASE19 + - name: HUFFBASE20 + description: JPEG HuffSymb tables + byte_offset: 480 + fieldset: HUFFBASE20 + - name: HUFFBASE21 + description: JPEG HuffSymb tables + byte_offset: 484 + fieldset: HUFFBASE21 + - name: HUFFBASE22 + description: JPEG HuffSymb tables + byte_offset: 488 + fieldset: HUFFBASE22 + - name: HUFFBASE23 + description: JPEG HuffSymb tables + byte_offset: 492 + fieldset: HUFFBASE23 + - name: HUFFBASE24 + description: JPEG HuffSymb tables + byte_offset: 496 + fieldset: HUFFBASE24 + - name: HUFFBASE25 + description: JPEG HuffSymb tables + byte_offset: 500 + fieldset: HUFFBASE25 + - name: HUFFBASE26 + description: JPEG HuffSymb tables + byte_offset: 504 + fieldset: HUFFBASE26 + - name: HUFFBASE27 + description: JPEG HuffSymb tables + byte_offset: 508 + fieldset: HUFFBASE27 + - name: HUFFBASE28 + description: JPEG HuffSymb tables + byte_offset: 512 + fieldset: HUFFBASE28 + - name: HUFFBASE29 + description: JPEG HuffSymb tables + byte_offset: 516 + fieldset: HUFFBASE29 + - name: HUFFBASE30 + description: JPEG HuffSymb tables + byte_offset: 520 + fieldset: HUFFBASE30 + - name: HUFFBASE31 + description: JPEG HuffSymb tables + byte_offset: 524 + fieldset: HUFFBASE31 + - name: HUFFSYMB0 + description: JPEG HUFFSYMB tables + byte_offset: 528 + fieldset: HUFFSYMB0 + - name: HUFFSYMB1 + description: JPEG HUFFSYMB tables + byte_offset: 532 + fieldset: HUFFSYMB1 + - name: HUFFSYMB2 + description: JPEG HUFFSYMB tables + byte_offset: 536 + fieldset: HUFFSYMB2 + - name: HUFFSYMB3 + description: JPEG HUFFSYMB tables + byte_offset: 540 + fieldset: HUFFSYMB3 + - name: HUFFSYMB4 + description: JPEG HUFFSYMB tables + byte_offset: 544 + fieldset: HUFFSYMB4 + - name: HUFFSYMB5 + description: JPEG HUFFSYMB tables + byte_offset: 548 + fieldset: HUFFSYMB5 + - name: HUFFSYMB6 + description: JPEG HUFFSYMB tables + byte_offset: 552 + fieldset: HUFFSYMB6 + - name: HUFFSYMB7 + description: JPEG HUFFSYMB tables + byte_offset: 556 + fieldset: HUFFSYMB7 + - name: HUFFSYMB8 + description: JPEG HUFFSYMB tables + byte_offset: 560 + fieldset: HUFFSYMB8 + - name: HUFFSYMB9 + description: JPEG HUFFSYMB tables + byte_offset: 564 + fieldset: HUFFSYMB9 + - name: HUFFSYMB10 + description: JPEG HUFFSYMB tables + byte_offset: 568 + fieldset: HUFFSYMB10 + - name: HUFFSYMB11 + description: JPEG HUFFSYMB tables + byte_offset: 572 + fieldset: HUFFSYMB11 + - name: HUFFSYMB12 + description: JPEG HUFFSYMB tables + byte_offset: 576 + fieldset: HUFFSYMB12 + - name: HUFFSYMB13 + description: JPEG HUFFSYMB tables + byte_offset: 580 + fieldset: HUFFSYMB13 + - name: HUFFSYMB14 + description: JPEG HUFFSYMB tables + byte_offset: 584 + fieldset: HUFFSYMB14 + - name: HUFFSYMB15 + description: JPEG HUFFSYMB tables + byte_offset: 588 + fieldset: HUFFSYMB15 + - name: HUFFSYMB16 + description: JPEG HUFFSYMB tables + byte_offset: 592 + fieldset: HUFFSYMB16 + - name: HUFFSYMB17 + description: JPEG HUFFSYMB tables + byte_offset: 596 + fieldset: HUFFSYMB17 + - name: HUFFSYMB18 + description: JPEG HUFFSYMB tables + byte_offset: 600 + fieldset: HUFFSYMB18 + - name: HUFFSYMB19 + description: JPEG HUFFSYMB tables + byte_offset: 604 + fieldset: HUFFSYMB19 + - name: HUFFSYMB20 + description: JPEG HUFFSYMB tables + byte_offset: 608 + fieldset: HUFFSYMB20 + - name: HUFFSYMB21 + description: JPEG HUFFSYMB tables + byte_offset: 612 + fieldset: HUFFSYMB21 + - name: HUFFSYMB22 + description: JPEG HUFFSYMB tables + byte_offset: 616 + fieldset: HUFFSYMB22 + - name: HUFFSYMB23 + description: JPEG HUFFSYMB tables + byte_offset: 620 + fieldset: HUFFSYMB23 + - name: HUFFSYMB24 + description: JPEG HUFFSYMB tables + byte_offset: 624 + fieldset: HUFFSYMB24 + - name: HUFFSYMB25 + description: JPEG HUFFSYMB tables + byte_offset: 628 + fieldset: HUFFSYMB25 + - name: HUFFSYMB26 + description: JPEG HUFFSYMB tables + byte_offset: 632 + fieldset: HUFFSYMB26 + - name: HUFFSYMB27 + description: JPEG HUFFSYMB tables + byte_offset: 636 + fieldset: HUFFSYMB27 + - name: HUFFSYMB28 + description: JPEG HUFFSYMB tables + byte_offset: 640 + fieldset: HUFFSYMB28 + - name: HUFFSYMB29 + description: JPEG HUFFSYMB tables + byte_offset: 644 + fieldset: HUFFSYMB29 + - name: HUFFSYMB30 + description: JPEG HUFFSYMB tables + byte_offset: 648 + fieldset: HUFFSYMB30 + - name: HUFFSYMB31 + description: JPEG HUFFSYMB tables + byte_offset: 652 + fieldset: HUFFSYMB31 + - name: HUFFSYMB32 + description: JPEG HUFFSYMB tables + byte_offset: 656 + fieldset: HUFFSYMB32 + - name: HUFFSYMB33 + description: JPEG HUFFSYMB tables + byte_offset: 660 + fieldset: HUFFSYMB33 + - name: HUFFSYMB34 + description: JPEG HUFFSYMB tables + byte_offset: 664 + fieldset: HUFFSYMB34 + - name: HUFFSYMB35 + description: JPEG HUFFSYMB tables + byte_offset: 668 + fieldset: HUFFSYMB35 + - name: HUFFSYMB36 + description: JPEG HUFFSYMB tables + byte_offset: 672 + fieldset: HUFFSYMB36 + - name: HUFFSYMB37 + description: JPEG HUFFSYMB tables + byte_offset: 676 + fieldset: HUFFSYMB37 + - name: HUFFSYMB38 + description: JPEG HUFFSYMB tables + byte_offset: 680 + fieldset: HUFFSYMB38 + - name: HUFFSYMB39 + description: JPEG HUFFSYMB tables + byte_offset: 684 + fieldset: HUFFSYMB39 + - name: HUFFSYMB40 + description: JPEG HUFFSYMB tables + byte_offset: 688 + fieldset: HUFFSYMB40 + - name: HUFFSYMB41 + description: JPEG HUFFSYMB tables + byte_offset: 692 + fieldset: HUFFSYMB41 + - name: HUFFSYMB42 + description: JPEG HUFFSYMB tables + byte_offset: 696 + fieldset: HUFFSYMB42 + - name: HUFFSYMB43 + description: JPEG HUFFSYMB tables + byte_offset: 700 + fieldset: HUFFSYMB43 + - name: HUFFSYMB44 + description: JPEG HUFFSYMB tables + byte_offset: 704 + fieldset: HUFFSYMB44 + - name: HUFFSYMB45 + description: JPEG HUFFSYMB tables + byte_offset: 708 + fieldset: HUFFSYMB45 + - name: HUFFSYMB46 + description: JPEG HUFFSYMB tables + byte_offset: 712 + fieldset: HUFFSYMB46 + - name: HUFFSYMB47 + description: JPEG HUFFSYMB tables + byte_offset: 716 + fieldset: HUFFSYMB47 + - name: HUFFSYMB48 + description: JPEG HUFFSYMB tables + byte_offset: 720 + fieldset: HUFFSYMB48 + - name: HUFFSYMB49 + description: JPEG HUFFSYMB tables + byte_offset: 724 + fieldset: HUFFSYMB49 + - name: HUFFSYMB50 + description: JPEG HUFFSYMB tables + byte_offset: 728 + fieldset: HUFFSYMB50 + - name: HUFFSYMB51 + description: JPEG HUFFSYMB tables + byte_offset: 732 + fieldset: HUFFSYMB51 + - name: HUFFSYMB52 + description: JPEG HUFFSYMB tables + byte_offset: 736 + fieldset: HUFFSYMB52 + - name: HUFFSYMB53 + description: JPEG HUFFSYMB tables + byte_offset: 740 + fieldset: HUFFSYMB53 + - name: HUFFSYMB54 + description: JPEG HUFFSYMB tables + byte_offset: 744 + fieldset: HUFFSYMB54 + - name: HUFFSYMB55 + description: JPEG HUFFSYMB tables + byte_offset: 748 + fieldset: HUFFSYMB55 + - name: HUFFSYMB56 + description: JPEG HUFFSYMB tables + byte_offset: 752 + fieldset: HUFFSYMB56 + - name: HUFFSYMB57 + description: JPEG HUFFSYMB tables + byte_offset: 756 + fieldset: HUFFSYMB57 + - name: HUFFSYMB58 + description: JPEG HUFFSYMB tables + byte_offset: 760 + fieldset: HUFFSYMB58 + - name: HUFFSYMB59 + description: JPEG HUFFSYMB tables + byte_offset: 764 + fieldset: HUFFSYMB59 + - name: HUFFSYMB60 + description: JPEG HUFFSYMB tables + byte_offset: 768 + fieldset: HUFFSYMB60 + - name: HUFFSYMB61 + description: JPEG HUFFSYMB tables + byte_offset: 772 + fieldset: HUFFSYMB61 + - name: HUFFSYMB62 + description: JPEG HUFFSYMB tables + byte_offset: 776 + fieldset: HUFFSYMB62 + - name: HUFFSYMB63 + description: JPEG HUFFSYMB tables + byte_offset: 780 + fieldset: HUFFSYMB63 + - name: HUFFSYMB64 + description: JPEG HUFFSYMB tables + byte_offset: 784 + fieldset: HUFFSYMB64 + - name: HUFFSYMB65 + description: JPEG HUFFSYMB tables + byte_offset: 788 + fieldset: HUFFSYMB65 + - name: HUFFSYMB66 + description: JPEG HUFFSYMB tables + byte_offset: 792 + fieldset: HUFFSYMB66 + - name: HUFFSYMB67 + description: JPEG HUFFSYMB tables + byte_offset: 796 + fieldset: HUFFSYMB67 + - name: HUFFSYMB68 + description: JPEG HUFFSYMB tables + byte_offset: 800 + fieldset: HUFFSYMB68 + - name: HUFFSYMB69 + description: JPEG HUFFSYMB tables + byte_offset: 804 + fieldset: HUFFSYMB69 + - name: HUFFSYMB70 + description: JPEG HUFFSYMB tables + byte_offset: 808 + fieldset: HUFFSYMB70 + - name: HUFFSYMB71 + description: JPEG HUFFSYMB tables + byte_offset: 812 + fieldset: HUFFSYMB71 + - name: HUFFSYMB72 + description: JPEG HUFFSYMB tables + byte_offset: 816 + fieldset: HUFFSYMB72 + - name: HUFFSYMB73 + description: JPEG HUFFSYMB tables + byte_offset: 820 + fieldset: HUFFSYMB73 + - name: HUFFSYMB74 + description: JPEG HUFFSYMB tables + byte_offset: 824 + fieldset: HUFFSYMB74 + - name: HUFFSYMB75 + description: JPEG HUFFSYMB tables + byte_offset: 828 + fieldset: HUFFSYMB75 + - name: HUFFSYMB76 + description: JPEG HUFFSYMB tables + byte_offset: 832 + fieldset: HUFFSYMB76 + - name: HUFFSYMB77 + description: JPEG HUFFSYMB tables + byte_offset: 836 + fieldset: HUFFSYMB77 + - name: HUFFSYMB78 + description: JPEG HUFFSYMB tables + byte_offset: 840 + fieldset: HUFFSYMB78 + - name: HUFFSYMB79 + description: JPEG HUFFSYMB tables + byte_offset: 844 + fieldset: HUFFSYMB79 + - name: HUFFSYMB80 + description: JPEG HUFFSYMB tables + byte_offset: 848 + fieldset: HUFFSYMB80 + - name: HUFFSYMB81 + description: JPEG HUFFSYMB tables + byte_offset: 852 + fieldset: HUFFSYMB81 + - name: HUFFSYMB82 + description: JPEG HUFFSYMB tables + byte_offset: 856 + fieldset: HUFFSYMB82 + - name: HUFFSYMB83 + description: JPEG HUFFSYMB tables + byte_offset: 860 + fieldset: HUFFSYMB83 + - name: DHTMEM0 + description: JPEG DHTMem tables + byte_offset: 864 + fieldset: DHTMEM0 + - name: DHTMEM2 + description: JPEG DHTMem tables + byte_offset: 868 + fieldset: DHTMEM2 + - name: DHTMEM3 + description: JPEG DHTMem tables + byte_offset: 872 + fieldset: DHTMEM3 + - name: DHTMEM4 + description: JPEG DHTMem tables + byte_offset: 876 + fieldset: DHTMEM4 + - name: DHTMEM5 + description: JPEG DHTMem tables + byte_offset: 880 + fieldset: DHTMEM5 + - name: DHTMEM6 + description: JPEG DHTMem tables + byte_offset: 884 + fieldset: DHTMEM6 + - name: DHTMEM7 + description: JPEG DHTMem tables + byte_offset: 888 + fieldset: DHTMEM7 + - name: DHTMEM8 + description: JPEG DHTMem tables + byte_offset: 892 + fieldset: DHTMEM8 + - name: DHTMEM9 + description: JPEG DHTMem tables + byte_offset: 896 + fieldset: DHTMEM9 + - name: DHTMEM10 + description: JPEG DHTMem tables + byte_offset: 900 + fieldset: DHTMEM10 + - name: DHTMEM11 + description: JPEG DHTMem tables + byte_offset: 904 + fieldset: DHTMEM11 + - name: DHTMEM12 + description: JPEG DHTMem tables + byte_offset: 908 + fieldset: DHTMEM12 + - name: DHTMEM13 + description: JPEG DHTMem tables + byte_offset: 912 + fieldset: DHTMEM13 + - name: DHTMEM14 + description: JPEG DHTMem tables + byte_offset: 916 + fieldset: DHTMEM14 + - name: DHTMEM15 + description: JPEG DHTMem tables + byte_offset: 920 + fieldset: DHTMEM15 + - name: DHTMEM16 + description: JPEG DHTMem tables + byte_offset: 924 + fieldset: DHTMEM16 + - name: DHTMEM17 + description: JPEG DHTMem tables + byte_offset: 928 + fieldset: DHTMEM17 + - name: DHTMEM18 + description: JPEG DHTMem tables + byte_offset: 932 + fieldset: DHTMEM18 + - name: DHTMEM19 + description: JPEG DHTMem tables + byte_offset: 936 + fieldset: DHTMEM19 + - name: DHTMEM20 + description: JPEG DHTMem tables + byte_offset: 940 + fieldset: DHTMEM20 + - name: DHTMEM21 + description: JPEG DHTMem tables + byte_offset: 944 + fieldset: DHTMEM21 + - name: DHTMEM22 + description: JPEG DHTMem tables + byte_offset: 948 + fieldset: DHTMEM22 + - name: DHTMEM23 + description: JPEG DHTMem tables + byte_offset: 952 + fieldset: DHTMEM23 + - name: DHTMEM24 + description: JPEG DHTMem tables + byte_offset: 956 + fieldset: DHTMEM24 + - name: DHTMEM25 + description: JPEG DHTMem tables + byte_offset: 960 + fieldset: DHTMEM25 + - name: DHTMEM26 + description: JPEG DHTMem tables + byte_offset: 964 + fieldset: DHTMEM26 + - name: DHTMEM27 + description: JPEG DHTMem tables + byte_offset: 968 + fieldset: DHTMEM27 + - name: DHTMEM28 + description: JPEG DHTMem tables + byte_offset: 972 + fieldset: DHTMEM28 + - name: DHTMEM29 + description: JPEG DHTMem tables + byte_offset: 976 + fieldset: DHTMEM29 + - name: DHTMEM30 + description: JPEG DHTMem tables + byte_offset: 980 + fieldset: DHTMEM30 + - name: DHTMEM31 + description: JPEG DHTMem tables + byte_offset: 984 + fieldset: DHTMEM31 + - name: DHTMEM32 + description: JPEG DHTMem tables + byte_offset: 988 + fieldset: DHTMEM32 + - name: DHTMEM33 + description: JPEG DHTMem tables + byte_offset: 992 + fieldset: DHTMEM33 + - name: DHTMEM34 + description: JPEG DHTMem tables + byte_offset: 996 + fieldset: DHTMEM34 + - name: DHTMEM35 + description: JPEG DHTMem tables + byte_offset: 1000 + fieldset: DHTMEM35 + - name: DHTMEM36 + description: JPEG DHTMem tables + byte_offset: 1004 + fieldset: DHTMEM36 + - name: DHTMEM37 + description: JPEG DHTMem tables + byte_offset: 1008 + fieldset: DHTMEM37 + - name: DHTMEM38 + description: JPEG DHTMem tables + byte_offset: 1012 + fieldset: DHTMEM38 + - name: DHTMEM39 + description: JPEG DHTMem tables + byte_offset: 1016 + fieldset: DHTMEM39 + - name: DHTMEM40 + description: JPEG DHTMem tables + byte_offset: 1020 + fieldset: DHTMEM40 + - name: DHTMEM41 + description: JPEG DHTMem tables + byte_offset: 1024 + fieldset: DHTMEM41 + - name: DHTMEM42 + description: JPEG DHTMem tables + byte_offset: 1028 + fieldset: DHTMEM42 + - name: DHTMEM43 + description: JPEG DHTMem tables + byte_offset: 1032 + fieldset: DHTMEM43 + - name: DHTMEM44 + description: JPEG DHTMem tables + byte_offset: 1036 + fieldset: DHTMEM44 + - name: DHTMEM45 + description: JPEG DHTMem tables + byte_offset: 1040 + fieldset: DHTMEM45 + - name: DHTMEM46 + description: JPEG DHTMem tables + byte_offset: 1044 + fieldset: DHTMEM46 + - name: DHTMEM47 + description: JPEG DHTMem tables + byte_offset: 1048 + fieldset: DHTMEM47 + - name: DHTMEM48 + description: JPEG DHTMem tables + byte_offset: 1052 + fieldset: DHTMEM48 + - name: DHTMEM49 + description: JPEG DHTMem tables + byte_offset: 1056 + fieldset: DHTMEM49 + - name: DHTMEM50 + description: JPEG DHTMem tables + byte_offset: 1060 + fieldset: DHTMEM50 + - name: DHTMEM51 + description: JPEG DHTMem tables + byte_offset: 1064 + fieldset: DHTMEM51 + - name: DHTMEM52 + description: JPEG DHTMem tables + byte_offset: 1068 + fieldset: DHTMEM52 + - name: DHTMEM53 + description: JPEG DHTMem tables + byte_offset: 1072 + fieldset: DHTMEM53 + - name: DHTMEM54 + description: JPEG DHTMem tables + byte_offset: 1076 + fieldset: DHTMEM54 + - name: DHTMEM55 + description: JPEG DHTMem tables + byte_offset: 1080 + fieldset: DHTMEM55 + - name: DHTMEM56 + description: JPEG DHTMem tables + byte_offset: 1084 + fieldset: DHTMEM56 + - name: DHTMEM57 + description: JPEG DHTMem tables + byte_offset: 1088 + fieldset: DHTMEM57 + - name: DHTMEM58 + description: JPEG DHTMem tables + byte_offset: 1092 + fieldset: DHTMEM58 + - name: DHTMEM59 + description: JPEG DHTMem tables + byte_offset: 1096 + fieldset: DHTMEM59 + - name: DHTMEM60 + description: JPEG DHTMem tables + byte_offset: 1100 + fieldset: DHTMEM60 + - name: DHTMEM61 + description: JPEG DHTMem tables + byte_offset: 1104 + fieldset: DHTMEM61 + - name: DHTMEM62 + description: JPEG DHTMem tables + byte_offset: 1108 + fieldset: DHTMEM62 + - name: DHTMEM63 + description: JPEG DHTMem tables + byte_offset: 1112 + fieldset: DHTMEM63 + - name: DHTMEM64 + description: JPEG DHTMem tables + byte_offset: 1116 + fieldset: DHTMEM64 + - name: DHTMEM65 + description: JPEG DHTMem tables + byte_offset: 1120 + fieldset: DHTMEM65 + - name: DHTMEM66 + description: JPEG DHTMem tables + byte_offset: 1124 + fieldset: DHTMEM66 + - name: DHTMEM67 + description: JPEG DHTMem tables + byte_offset: 1128 + fieldset: DHTMEM67 + - name: DHTMEM68 + description: JPEG DHTMem tables + byte_offset: 1132 + fieldset: DHTMEM68 + - name: DHTMEM69 + description: JPEG DHTMem tables + byte_offset: 1136 + fieldset: DHTMEM69 + - name: DHTMEM70 + description: JPEG DHTMem tables + byte_offset: 1140 + fieldset: DHTMEM70 + - name: DHTMEM71 + description: JPEG DHTMem tables + byte_offset: 1144 + fieldset: DHTMEM71 + - name: DHTMEM72 + description: JPEG DHTMem tables + byte_offset: 1148 + fieldset: DHTMEM72 + - name: DHTMEM73 + description: JPEG DHTMem tables + byte_offset: 1152 + fieldset: DHTMEM73 + - name: DHTMEM74 + description: JPEG DHTMem tables + byte_offset: 1156 + fieldset: DHTMEM74 + - name: DHTMEM75 + description: JPEG DHTMem tables + byte_offset: 1160 + fieldset: DHTMEM75 + - name: DHTMEM76 + description: JPEG DHTMem tables + byte_offset: 1164 + fieldset: DHTMEM76 + - name: DHTMEM77 + description: JPEG DHTMem tables + byte_offset: 1168 + fieldset: DHTMEM77 + - name: DHTMEM78 + description: JPEG DHTMem tables + byte_offset: 1172 + fieldset: DHTMEM78 + - name: DHTMEM79 + description: JPEG DHTMem tables + byte_offset: 1176 + fieldset: DHTMEM79 + - name: DHTMEM80 + description: JPEG DHTMem tables + byte_offset: 1180 + fieldset: DHTMEM80 + - name: DHTMEM81 + description: JPEG DHTMem tables + byte_offset: 1184 + fieldset: DHTMEM81 + - name: DHTMEM82 + description: JPEG DHTMem tables + byte_offset: 1188 + fieldset: DHTMEM82 + - name: DHTMEM83 + description: JPEG DHTMem tables + byte_offset: 1192 + fieldset: DHTMEM83 + - name: DHTMEM84 + description: JPEG DHTMem tables + byte_offset: 1196 + fieldset: DHTMEM84 + - name: DHTMEM85 + description: JPEG DHTMem tables + byte_offset: 1200 + fieldset: DHTMEM85 + - name: DHTMEM86 + description: JPEG DHTMem tables + byte_offset: 1204 + fieldset: DHTMEM86 + - name: DHTMEM87 + description: JPEG DHTMem tables + byte_offset: 1208 + fieldset: DHTMEM87 + - name: DHTMEM88 + description: JPEG DHTMem tables + byte_offset: 1212 + fieldset: DHTMEM88 + - name: DHTMEM89 + description: JPEG DHTMem tables + byte_offset: 1216 + fieldset: DHTMEM89 + - name: DHTMEM90 + description: JPEG DHTMem tables + byte_offset: 1220 + fieldset: DHTMEM90 + - name: DHTMEM91 + description: JPEG DHTMem tables + byte_offset: 1224 + fieldset: DHTMEM91 + - name: DHTMEM92 + description: JPEG DHTMem tables + byte_offset: 1228 + fieldset: DHTMEM92 + - name: DHTMEM93 + description: JPEG DHTMem tables + byte_offset: 1232 + fieldset: DHTMEM93 + - name: DHTMEM94 + description: JPEG DHTMem tables + byte_offset: 1236 + fieldset: DHTMEM94 + - name: DHTMEM95 + description: JPEG DHTMem tables + byte_offset: 1240 + fieldset: DHTMEM95 + - name: DHTMEM96 + description: JPEG DHTMem tables + byte_offset: 1244 + fieldset: DHTMEM96 + - name: DHTMEM97 + description: JPEG DHTMem tables + byte_offset: 1248 + fieldset: DHTMEM97 + - name: DHTMEM98 + description: JPEG DHTMem tables + byte_offset: 1252 + fieldset: DHTMEM98 + - name: DHTMEM99 + description: JPEG DHTMem tables + byte_offset: 1256 + fieldset: DHTMEM99 + - name: DHTMEM100 + description: JPEG DHTMem tables + byte_offset: 1260 + fieldset: DHTMEM100 + - name: DHTMEM101 + description: JPEG DHTMem tables + byte_offset: 1264 + fieldset: DHTMEM101 + - name: DHTMEM102 + description: JPEG DHTMem tables + byte_offset: 1268 + fieldset: DHTMEM102 + - name: DHTMEM103 + description: JPEG DHTMem tables + byte_offset: 1272 + fieldset: DHTMEM103 + - name: HUFFENC_AC0_0 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1280 + fieldset: HUFFENC_AC0_0 + - name: HUFFENC_AC0_1 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1284 + fieldset: HUFFENC_AC0_1 + - name: HUFFENC_AC0_2 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1288 + fieldset: HUFFENC_AC0_2 + - name: HUFFENC_AC0_3 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1292 + fieldset: HUFFENC_AC0_3 + - name: HUFFENC_AC0_4 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1296 + fieldset: HUFFENC_AC0_4 + - name: HUFFENC_AC0_5 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1300 + fieldset: HUFFENC_AC0_5 + - name: HUFFENC_AC0_6 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1304 + fieldset: HUFFENC_AC0_6 + - name: HUFFENC_AC0_7 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1308 + fieldset: HUFFENC_AC0_7 + - name: HUFFENC_AC0_8 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1312 + fieldset: HUFFENC_AC0_8 + - name: HUFFENC_AC0_9 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1316 + fieldset: HUFFENC_AC0_9 + - name: HUFFENC_AC0_10 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1320 + fieldset: HUFFENC_AC0_10 + - name: HUFFENC_AC0_11 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1324 + fieldset: HUFFENC_AC0_11 + - name: HUFFENC_AC0_12 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1328 + fieldset: HUFFENC_AC0_12 + - name: HUFFENC_AC0_13 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1332 + fieldset: HUFFENC_AC0_13 + - name: HUFFENC_AC0_14 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1336 + fieldset: HUFFENC_AC0_14 + - name: HUFFENC_AC0_15 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1340 + fieldset: HUFFENC_AC0_15 + - name: HUFFENC_AC0_16 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1344 + fieldset: HUFFENC_AC0_16 + - name: HUFFENC_AC0_17 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1348 + fieldset: HUFFENC_AC0_17 + - name: HUFFENC_AC0_18 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1352 + fieldset: HUFFENC_AC0_18 + - name: HUFFENC_AC0_19 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1356 + fieldset: HUFFENC_AC0_19 + - name: HUFFENC_AC0_20 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1360 + fieldset: HUFFENC_AC0_20 + - name: HUFFENC_AC0_21 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1364 + fieldset: HUFFENC_AC0_21 + - name: HUFFENC_AC0_22 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1368 + fieldset: HUFFENC_AC0_22 + - name: HUFFENC_AC0_23 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1372 + fieldset: HUFFENC_AC0_23 + - name: HUFFENC_AC0_24 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1376 + fieldset: HUFFENC_AC0_24 + - name: HUFFENC_AC0_25 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1380 + fieldset: HUFFENC_AC0_25 + - name: HUFFENC_AC0_26 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1384 + fieldset: HUFFENC_AC0_26 + - name: HUFFENC_AC0_27 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1388 + fieldset: HUFFENC_AC0_27 + - name: HUFFENC_AC0_28 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1392 + fieldset: HUFFENC_AC0_28 + - name: HUFFENC_AC0_29 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1396 + fieldset: HUFFENC_AC0_29 + - name: HUFFENC_AC0_30 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1400 + fieldset: HUFFENC_AC0_30 + - name: HUFFENC_AC0_31 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1404 + fieldset: HUFFENC_AC0_31 + - name: HUFFENC_AC0_32 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1408 + fieldset: HUFFENC_AC0_32 + - name: HUFFENC_AC0_33 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1412 + fieldset: HUFFENC_AC0_33 + - name: HUFFENC_AC0_34 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1416 + fieldset: HUFFENC_AC0_34 + - name: HUFFENC_AC0_35 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1420 + fieldset: HUFFENC_AC0_35 + - name: HUFFENC_AC0_36 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1424 + fieldset: HUFFENC_AC0_36 + - name: HUFFENC_AC0_37 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1428 + fieldset: HUFFENC_AC0_37 + - name: HUFFENC_AC0_38 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1432 + fieldset: HUFFENC_AC0_38 + - name: HUFFENC_AC0_39 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1436 + fieldset: HUFFENC_AC0_39 + - name: HUFFENC_AC0_40 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1440 + fieldset: HUFFENC_AC0_40 + - name: HUFFENC_AC0_41 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1444 + fieldset: HUFFENC_AC0_41 + - name: HUFFENC_AC0_42 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1448 + fieldset: HUFFENC_AC0_42 + - name: HUFFENC_AC0_43 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1452 + fieldset: HUFFENC_AC0_43 + - name: HUFFENC_AC0_44 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1456 + fieldset: HUFFENC_AC0_44 + - name: HUFFENC_AC0_45 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1460 + fieldset: HUFFENC_AC0_45 + - name: HUFFENC_AC0_46 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1464 + fieldset: HUFFENC_AC0_46 + - name: HUFFENC_AC0_47 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1468 + fieldset: HUFFENC_AC0_47 + - name: HUFFENC_AC0_48 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1472 + fieldset: HUFFENC_AC0_48 + - name: HUFFENC_AC0_49 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1476 + fieldset: HUFFENC_AC0_49 + - name: HUFFENC_AC0_50 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1480 + fieldset: HUFFENC_AC0_50 + - name: HUFFENC_AC0_51 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1484 + fieldset: HUFFENC_AC0_51 + - name: HUFFENC_AC0_52 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1488 + fieldset: HUFFENC_AC0_52 + - name: HUFFENC_AC0_53 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1492 + fieldset: HUFFENC_AC0_53 + - name: HUFFENC_AC0_54 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1496 + fieldset: HUFFENC_AC0_54 + - name: HUFFENC_AC0_55 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1500 + fieldset: HUFFENC_AC0_55 + - name: HUFFENC_AC0_56 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1504 + fieldset: HUFFENC_AC0_56 + - name: HUFFENC_AC0_57 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1508 + fieldset: HUFFENC_AC0_57 + - name: HUFFENC_AC0_58 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1512 + fieldset: HUFFENC_AC0_58 + - name: HUFFENC_AC0_59 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1516 + fieldset: HUFFENC_AC0_59 + - name: HUFFENC_AC0_60 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1520 + fieldset: HUFFENC_AC0_60 + - name: HUFFENC_AC0_61 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1524 + fieldset: HUFFENC_AC0_61 + - name: HUFFENC_AC0_62 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1528 + fieldset: HUFFENC_AC0_62 + - name: HUFFENC_AC0_63 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1532 + fieldset: HUFFENC_AC0_63 + - name: HUFFENC_AC0_64 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1536 + fieldset: HUFFENC_AC0_64 + - name: HUFFENC_AC0_65 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1540 + fieldset: HUFFENC_AC0_65 + - name: HUFFENC_AC0_66 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1544 + fieldset: HUFFENC_AC0_66 + - name: HUFFENC_AC0_67 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1548 + fieldset: HUFFENC_AC0_67 + - name: HUFFENC_AC0_68 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1552 + fieldset: HUFFENC_AC0_68 + - name: HUFFENC_AC0_69 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1556 + fieldset: HUFFENC_AC0_69 + - name: HUFFENC_AC0_70 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1560 + fieldset: HUFFENC_AC0_70 + - name: HUFFENC_AC0_71 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1564 + fieldset: HUFFENC_AC0_71 + - name: HUFFENC_AC0_72 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1568 + fieldset: HUFFENC_AC0_72 + - name: HUFFENC_AC0_73 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1572 + fieldset: HUFFENC_AC0_73 + - name: HUFFENC_AC0_74 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1576 + fieldset: HUFFENC_AC0_74 + - name: HUFFENC_AC0_75 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1580 + fieldset: HUFFENC_AC0_75 + - name: HUFFENC_AC0_76 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1584 + fieldset: HUFFENC_AC0_76 + - name: HUFFENC_AC0_77 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1588 + fieldset: HUFFENC_AC0_77 + - name: HUFFENC_AC0_78 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1592 + fieldset: HUFFENC_AC0_78 + - name: HUFFENC_AC0_79 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1596 + fieldset: HUFFENC_AC0_79 + - name: HUFFENC_AC0_80 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1600 + fieldset: HUFFENC_AC0_80 + - name: HUFFENC_AC0_81 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1604 + fieldset: HUFFENC_AC0_81 + - name: HUFFENC_AC0_82 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1608 + fieldset: HUFFENC_AC0_82 + - name: HUFFENC_AC0_83 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1612 + fieldset: HUFFENC_AC0_83 + - name: HUFFENC_AC0_84 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1616 + fieldset: HUFFENC_AC0_84 + - name: HUFFENC_AC0_85 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1620 + fieldset: HUFFENC_AC0_85 + - name: HUFFENC_AC0_86 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1624 + fieldset: HUFFENC_AC0_86 + - name: HUFFENC_AC0_87 + description: JPEG encoder, AC Huffman table 0 + byte_offset: 1628 + fieldset: HUFFENC_AC0_87 + - name: HUFFENC_AC1_0 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1632 + fieldset: HUFFENC_AC1_0 + - name: HUFFENC_AC1_1 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1636 + fieldset: HUFFENC_AC1_1 + - name: HUFFENC_AC1_2 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1640 + fieldset: HUFFENC_AC1_2 + - name: HUFFENC_AC1_3 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1644 + fieldset: HUFFENC_AC1_3 + - name: HUFFENC_AC1_4 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1648 + fieldset: HUFFENC_AC1_4 + - name: HUFFENC_AC1_5 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1652 + fieldset: HUFFENC_AC1_5 + - name: HUFFENC_AC1_6 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1656 + fieldset: HUFFENC_AC1_6 + - name: HUFFENC_AC1_7 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1660 + fieldset: HUFFENC_AC1_7 + - name: HUFFENC_AC1_8 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1664 + fieldset: HUFFENC_AC1_8 + - name: HUFFENC_AC1_9 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1668 + fieldset: HUFFENC_AC1_9 + - name: HUFFENC_AC1_10 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1672 + fieldset: HUFFENC_AC1_10 + - name: HUFFENC_AC1_11 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1676 + fieldset: HUFFENC_AC1_11 + - name: HUFFENC_AC1_12 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1680 + fieldset: HUFFENC_AC1_12 + - name: HUFFENC_AC1_13 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1684 + fieldset: HUFFENC_AC1_13 + - name: HUFFENC_AC1_14 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1688 + fieldset: HUFFENC_AC1_14 + - name: HUFFENC_AC1_15 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1692 + fieldset: HUFFENC_AC1_15 + - name: HUFFENC_AC1_16 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1696 + fieldset: HUFFENC_AC1_16 + - name: HUFFENC_AC1_17 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1700 + fieldset: HUFFENC_AC1_17 + - name: HUFFENC_AC1_18 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1704 + fieldset: HUFFENC_AC1_18 + - name: HUFFENC_AC1_19 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1708 + fieldset: HUFFENC_AC1_19 + - name: HUFFENC_AC1_20 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1712 + fieldset: HUFFENC_AC1_20 + - name: HUFFENC_AC1_21 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1716 + fieldset: HUFFENC_AC1_21 + - name: HUFFENC_AC1_22 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1720 + fieldset: HUFFENC_AC1_22 + - name: HUFFENC_AC1_23 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1724 + fieldset: HUFFENC_AC1_23 + - name: HUFFENC_AC1_24 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1728 + fieldset: HUFFENC_AC1_24 + - name: HUFFENC_AC1_25 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1732 + fieldset: HUFFENC_AC1_25 + - name: HUFFENC_AC1_26 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1736 + fieldset: HUFFENC_AC1_26 + - name: HUFFENC_AC1_27 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1740 + fieldset: HUFFENC_AC1_27 + - name: HUFFENC_AC1_28 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1744 + fieldset: HUFFENC_AC1_28 + - name: HUFFENC_AC1_29 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1748 + fieldset: HUFFENC_AC1_29 + - name: HUFFENC_AC1_30 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1752 + fieldset: HUFFENC_AC1_30 + - name: HUFFENC_AC1_31 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1756 + fieldset: HUFFENC_AC1_31 + - name: HUFFENC_AC1_32 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1760 + fieldset: HUFFENC_AC1_32 + - name: HUFFENC_AC1_33 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1764 + fieldset: HUFFENC_AC1_33 + - name: HUFFENC_AC1_34 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1768 + fieldset: HUFFENC_AC1_34 + - name: HUFFENC_AC1_35 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1772 + fieldset: HUFFENC_AC1_35 + - name: HUFFENC_AC1_36 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1776 + fieldset: HUFFENC_AC1_36 + - name: HUFFENC_AC1_37 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1780 + fieldset: HUFFENC_AC1_37 + - name: HUFFENC_AC1_38 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1784 + fieldset: HUFFENC_AC1_38 + - name: HUFFENC_AC1_39 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1788 + fieldset: HUFFENC_AC1_39 + - name: HUFFENC_AC1_40 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1792 + fieldset: HUFFENC_AC1_40 + - name: HUFFENC_AC1_41 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1796 + fieldset: HUFFENC_AC1_41 + - name: HUFFENC_AC1_42 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1800 + fieldset: HUFFENC_AC1_42 + - name: HUFFENC_AC1_43 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1804 + fieldset: HUFFENC_AC1_43 + - name: HUFFENC_AC1_44 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1808 + fieldset: HUFFENC_AC1_44 + - name: HUFFENC_AC1_45 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1812 + fieldset: HUFFENC_AC1_45 + - name: HUFFENC_AC1_46 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1816 + fieldset: HUFFENC_AC1_46 + - name: HUFFENC_AC1_47 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1820 + fieldset: HUFFENC_AC1_47 + - name: HUFFENC_AC1_48 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1824 + fieldset: HUFFENC_AC1_48 + - name: HUFFENC_AC1_49 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1828 + fieldset: HUFFENC_AC1_49 + - name: HUFFENC_AC1_50 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1832 + fieldset: HUFFENC_AC1_50 + - name: HUFFENC_AC1_51 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1836 + fieldset: HUFFENC_AC1_51 + - name: HUFFENC_AC1_52 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1840 + fieldset: HUFFENC_AC1_52 + - name: HUFFENC_AC1_53 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1844 + fieldset: HUFFENC_AC1_53 + - name: HUFFENC_AC1_54 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1848 + fieldset: HUFFENC_AC1_54 + - name: HUFFENC_AC1_55 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1852 + fieldset: HUFFENC_AC1_55 + - name: HUFFENC_AC1_56 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1856 + fieldset: HUFFENC_AC1_56 + - name: HUFFENC_AC1_57 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1860 + fieldset: HUFFENC_AC1_57 + - name: HUFFENC_AC1_58 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1864 + fieldset: HUFFENC_AC1_58 + - name: HUFFENC_AC1_59 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1868 + fieldset: HUFFENC_AC1_59 + - name: HUFFENC_AC1_60 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1872 + fieldset: HUFFENC_AC1_60 + - name: HUFFENC_AC1_61 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1876 + fieldset: HUFFENC_AC1_61 + - name: HUFFENC_AC1_62 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1880 + fieldset: HUFFENC_AC1_62 + - name: HUFFENC_AC1_63 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1884 + fieldset: HUFFENC_AC1_63 + - name: HUFFENC_AC1_64 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1888 + fieldset: HUFFENC_AC1_64 + - name: HUFFENC_AC1_65 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1892 + fieldset: HUFFENC_AC1_65 + - name: HUFFENC_AC1_66 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1896 + fieldset: HUFFENC_AC1_66 + - name: HUFFENC_AC1_67 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1900 + fieldset: HUFFENC_AC1_67 + - name: HUFFENC_AC1_68 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1904 + fieldset: HUFFENC_AC1_68 + - name: HUFFENC_AC1_69 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1908 + fieldset: HUFFENC_AC1_69 + - name: HUFFENC_AC1_70 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1912 + fieldset: HUFFENC_AC1_70 + - name: HUFFENC_AC1_71 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1916 + fieldset: HUFFENC_AC1_71 + - name: HUFFENC_AC1_72 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1920 + fieldset: HUFFENC_AC1_72 + - name: HUFFENC_AC1_73 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1924 + fieldset: HUFFENC_AC1_73 + - name: HUFFENC_AC1_74 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1928 + fieldset: HUFFENC_AC1_74 + - name: HUFFENC_AC1_75 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1932 + fieldset: HUFFENC_AC1_75 + - name: HUFFENC_AC1_76 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1936 + fieldset: HUFFENC_AC1_76 + - name: HUFFENC_AC1_77 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1940 + fieldset: HUFFENC_AC1_77 + - name: HUFFENC_AC1_78 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1944 + fieldset: HUFFENC_AC1_78 + - name: HUFFENC_AC1_79 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1948 + fieldset: HUFFENC_AC1_79 + - name: HUFFENC_AC1_80 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1952 + fieldset: HUFFENC_AC1_80 + - name: HUFFENC_AC1_81 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1956 + fieldset: HUFFENC_AC1_81 + - name: HUFFENC_AC1_82 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1960 + fieldset: HUFFENC_AC1_82 + - name: HUFFENC_AC1_83 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1964 + fieldset: HUFFENC_AC1_83 + - name: HUFFENC_AC1_84 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1968 + fieldset: HUFFENC_AC1_84 + - name: HUFFENC_AC1_85 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1972 + fieldset: HUFFENC_AC1_85 + - name: HUFFENC_AC1_86 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1976 + fieldset: HUFFENC_AC1_86 + - name: HUFFENC_AC1_87 + description: JPEG encoder, AC Huffman table 1 + byte_offset: 1980 + fieldset: HUFFENC_AC1_87 + - name: HUFFENC_DC0_0 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 1984 + fieldset: HUFFENC_DC0_0 + - name: HUFFENC_DC0_1 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 1988 + fieldset: HUFFENC_DC0_1 + - name: HUFFENC_DC0_2 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 1992 + fieldset: HUFFENC_DC0_2 + - name: HUFFENC_DC0_3 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 1996 + fieldset: HUFFENC_DC0_3 + - name: HUFFENC_DC0_4 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 2000 + fieldset: HUFFENC_DC0_4 + - name: HUFFENC_DC0_5 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 2004 + fieldset: HUFFENC_DC0_5 + - name: HUFFENC_DC0_6 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 2008 + fieldset: HUFFENC_DC0_6 + - name: HUFFENC_DC0_7 + description: JPEG encoder, DC Huffman table 0 + byte_offset: 2012 + fieldset: HUFFENC_DC0_7 + - name: HUFFENC_DC1_0 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2016 + fieldset: HUFFENC_DC1_0 + - name: HUFFENC_DC1_1 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2020 + fieldset: HUFFENC_DC1_1 + - name: HUFFENC_DC1_2 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2024 + fieldset: HUFFENC_DC1_2 + - name: HUFFENC_DC1_3 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2028 + fieldset: HUFFENC_DC1_3 + - name: HUFFENC_DC1_4 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2032 + fieldset: HUFFENC_DC1_4 + - name: HUFFENC_DC1_5 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2036 + fieldset: HUFFENC_DC1_5 + - name: HUFFENC_DC1_6 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2040 + fieldset: HUFFENC_DC1_6 + - name: HUFFENC_DC1_7 + description: JPEG encoder, DC Huffman table 1 + byte_offset: 2044 + fieldset: HUFFENC_DC1_7 fieldset/DHTMEM0: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM10: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM100: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM101: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM102: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM103: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM11: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM12: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM13: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM14: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM15: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM16: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM17: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM18: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM19: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM2: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM20: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM21: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM22: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM23: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM24: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM25: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM26: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM27: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM28: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM29: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM3: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM30: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM31: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM32: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM33: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM34: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM35: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM36: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM37: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM38: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM39: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM4: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM40: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM41: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM42: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM43: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM44: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM45: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM46: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM47: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM48: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM49: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM5: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM50: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM51: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM52: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM53: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM54: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM55: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM56: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM57: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM58: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM59: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM6: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM60: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM61: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM62: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM63: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM64: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM65: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM66: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM67: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM68: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM69: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM7: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM70: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM71: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM72: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM73: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM74: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM75: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM76: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM77: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM78: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM79: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM8: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM80: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM81: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM82: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM83: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM84: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM85: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM86: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM87: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM88: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM89: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM9: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM90: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM91: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM92: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM93: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM94: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM95: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM96: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM97: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM98: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/DHTMEM99: description: JPEG DHTMem tables fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFBASE0: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE1: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE10: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE11: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE12: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE13: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE14: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE15: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE16: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE17: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE18: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE19: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE2: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE20: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE21: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE22: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE23: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE24: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE25: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE26: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE27: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE28: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE29: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE3: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE30: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE31: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE4: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE5: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE6: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE7: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE8: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFBASE9: description: JPEG HuffSymb tables fields: - - name: HuffBase_RAM_0 - description: HuffBase RAM - bit_offset: 0 - bit_size: 9 - - name: HuffBase_RAM_1 - description: HuffBase RAM - bit_offset: 16 - bit_size: 9 + - name: HuffBase_RAM_0 + description: HuffBase RAM + bit_offset: 0 + bit_size: 9 + - name: HuffBase_RAM_1 + description: HuffBase RAM + bit_offset: 16 + bit_size: 9 fieldset/HUFFENC_AC0_0: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_1: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_10: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_11: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_12: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_13: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_14: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_15: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_16: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_17: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_18: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_19: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_2: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_20: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_21: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_22: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_23: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_24: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_25: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_26: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_27: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_28: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_29: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_3: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_30: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_31: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_32: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_33: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_34: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_35: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_36: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_37: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_38: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_39: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_4: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_40: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_41: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_42: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_43: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_44: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_45: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_46: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_47: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_48: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_49: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_5: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_50: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_51: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_52: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_53: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_54: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_55: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_56: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_57: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_58: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_59: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_6: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_60: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_61: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_62: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_63: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_64: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_65: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_66: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_67: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_68: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_69: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_7: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_70: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_71: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_72: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_73: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_74: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_75: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_76: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_77: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_78: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_79: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_8: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_80: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_81: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_82: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_83: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_84: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_85: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_86: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_87: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC0_9: - description: "JPEG encoder, AC Huffman table 0" + description: JPEG encoder, AC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_0: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_1: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_10: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_11: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_12: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_13: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_14: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_15: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_16: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_17: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_18: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_19: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_2: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_20: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_21: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_22: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_23: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_24: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_25: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_26: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_27: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_28: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_29: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_3: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_30: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_31: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_32: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_33: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_34: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_35: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_36: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_37: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_38: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_39: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_4: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_40: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_41: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_42: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_43: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_44: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_45: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_46: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_47: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_48: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_49: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_5: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_50: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_51: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_52: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_53: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_54: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_55: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_56: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_57: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_58: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_59: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_6: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_60: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_61: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_62: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_63: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_64: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_65: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_66: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_67: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_68: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_69: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_7: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_70: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_71: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_72: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_73: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_74: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_75: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_76: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_77: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_78: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_79: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_8: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_80: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_81: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_82: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_83: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_84: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_85: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_86: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_87: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_AC1_9: - description: "JPEG encoder, AC Huffman table 1" + description: JPEG encoder, AC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_0: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_1: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_2: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_3: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_4: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_5: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_6: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC0_7: - description: "JPEG encoder, DC Huffman table 0" + description: JPEG encoder, DC Huffman table 0 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_0: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_1: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_2: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_3: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_4: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_5: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_6: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFENC_DC1_7: - description: "JPEG encoder, DC Huffman table 1" + description: JPEG encoder, DC Huffman table 1 fields: - - name: DHTMem_RAM - description: DHTMem RAM - bit_offset: 0 - bit_size: 32 + - name: DHTMem_RAM + description: DHTMem RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_0: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_1: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_10: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_11: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_12: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_13: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_14: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_15: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_2: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_3: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_4: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_5: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_6: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_7: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_8: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFMIN_9: description: JPEG HuffMin tables fields: - - name: HuffMin_RAM - description: HuffMin RAM - bit_offset: 0 - bit_size: 32 + - name: HuffMin_RAM + description: HuffMin RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB0: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB1: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB10: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB11: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB12: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB13: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB14: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB15: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB16: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB17: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB18: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB19: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB2: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB20: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB21: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB22: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB23: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB24: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB25: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB26: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB27: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB28: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB29: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB3: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB30: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB31: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB32: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB33: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB34: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB35: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB36: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB37: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB38: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB39: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB4: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB40: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB41: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB42: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB43: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB44: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB45: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB46: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB47: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB48: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB49: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB5: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB50: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB51: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB52: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB53: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB54: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB55: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB56: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB57: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB58: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB59: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB6: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB60: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB61: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB62: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB63: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB64: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB65: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB66: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB67: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB68: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB69: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB7: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB70: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB71: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB72: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB73: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB74: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB75: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB76: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB77: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB78: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB79: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB8: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB80: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB81: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB82: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB83: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/HUFFSYMB9: description: JPEG HUFFSYMB tables fields: - - name: HuffSymb_RAM - description: DHTSymb RAM - bit_offset: 0 - bit_size: 32 + - name: HuffSymb_RAM + description: DHTSymb RAM + bit_offset: 0 + bit_size: 32 fieldset/JPEG_CFR: description: JPEG clear flag register fields: - - name: CEOCF - description: Clear End of Conversion Flag - bit_offset: 5 - bit_size: 1 - - name: CHPDF - description: Clear Header Parsing Done Flag - bit_offset: 6 - bit_size: 1 + - name: CEOCF + description: Clear End of Conversion Flag + bit_offset: 5 + bit_size: 1 + - name: CHPDF + description: Clear Header Parsing Done Flag + bit_offset: 6 + bit_size: 1 fieldset/JPEG_CONFR0: description: JPEG codec configuration register 0 fields: - - name: START - description: Start - bit_offset: 0 - bit_size: 1 + - name: START + description: Start + bit_offset: 0 + bit_size: 1 fieldset/JPEG_CONFR1: description: JPEG codec configuration register 1 fields: - - name: NF - description: Number of color components - bit_offset: 0 - bit_size: 2 - - name: DE - description: Decoding Enable - bit_offset: 3 - bit_size: 1 - - name: COLORSPACE - description: Color Space - bit_offset: 4 - bit_size: 2 - - name: NS - description: Number of components for Scan - bit_offset: 6 - bit_size: 2 - - name: HDR - description: Header Processing - bit_offset: 8 - bit_size: 1 - - name: YSIZE - description: Y Size - bit_offset: 16 - bit_size: 16 + - name: NF + description: Number of color components + bit_offset: 0 + bit_size: 2 + - name: DE + description: Decoding Enable + bit_offset: 3 + bit_size: 1 + - name: COLORSPACE + description: Color Space + bit_offset: 4 + bit_size: 2 + - name: NS + description: Number of components for Scan + bit_offset: 6 + bit_size: 2 + - name: HDR + description: Header Processing + bit_offset: 8 + bit_size: 1 + - name: YSIZE + description: Y Size + bit_offset: 16 + bit_size: 16 fieldset/JPEG_CONFR2: description: JPEG codec configuration register 2 fields: - - name: NMCU - description: Number of MCU - bit_offset: 0 - bit_size: 26 + - name: NMCU + description: Number of MCU + bit_offset: 0 + bit_size: 26 fieldset/JPEG_CONFR3: description: JPEG codec configuration register 3 fields: - - name: XSIZE - description: X size - bit_offset: 16 - bit_size: 16 + - name: XSIZE + description: X size + bit_offset: 16 + bit_size: 16 fieldset/JPEG_CONFR4: description: JPEG codec configuration register 4 fields: - - name: HD - description: Huffman DC - bit_offset: 0 - bit_size: 1 - - name: HA - description: Huffman AC - bit_offset: 1 - bit_size: 1 - - name: QT - description: Quantization Table - bit_offset: 2 - bit_size: 2 - - name: NB - description: Number of Block - bit_offset: 4 - bit_size: 4 - - name: VSF - description: Vertical Sampling Factor - bit_offset: 8 - bit_size: 4 - - name: HSF - description: Horizontal Sampling Factor - bit_offset: 12 - bit_size: 4 + - name: HD + description: Huffman DC + bit_offset: 0 + bit_size: 1 + - name: HA + description: Huffman AC + bit_offset: 1 + bit_size: 1 + - name: QT + description: Quantization Table + bit_offset: 2 + bit_size: 2 + - name: NB + description: Number of Block + bit_offset: 4 + bit_size: 4 + - name: VSF + description: Vertical Sampling Factor + bit_offset: 8 + bit_size: 4 + - name: HSF + description: Horizontal Sampling Factor + bit_offset: 12 + bit_size: 4 fieldset/JPEG_CONFR5: description: JPEG codec configuration register 5 fields: - - name: HD - description: Huffman DC - bit_offset: 0 - bit_size: 1 - - name: HA - description: Huffman AC - bit_offset: 1 - bit_size: 1 - - name: QT - description: Quantization Table - bit_offset: 2 - bit_size: 2 - - name: NB - description: Number of Block - bit_offset: 4 - bit_size: 4 - - name: VSF - description: Vertical Sampling Factor - bit_offset: 8 - bit_size: 4 - - name: HSF - description: Horizontal Sampling Factor - bit_offset: 12 - bit_size: 4 + - name: HD + description: Huffman DC + bit_offset: 0 + bit_size: 1 + - name: HA + description: Huffman AC + bit_offset: 1 + bit_size: 1 + - name: QT + description: Quantization Table + bit_offset: 2 + bit_size: 2 + - name: NB + description: Number of Block + bit_offset: 4 + bit_size: 4 + - name: VSF + description: Vertical Sampling Factor + bit_offset: 8 + bit_size: 4 + - name: HSF + description: Horizontal Sampling Factor + bit_offset: 12 + bit_size: 4 fieldset/JPEG_CONFR6: description: JPEG codec configuration register 6 fields: - - name: HD - description: Huffman DC - bit_offset: 0 - bit_size: 1 - - name: HA - description: Huffman AC - bit_offset: 1 - bit_size: 1 - - name: QT - description: Quantization Table - bit_offset: 2 - bit_size: 2 - - name: NB - description: Number of Block - bit_offset: 4 - bit_size: 4 - - name: VSF - description: Vertical Sampling Factor - bit_offset: 8 - bit_size: 4 - - name: HSF - description: Horizontal Sampling Factor - bit_offset: 12 - bit_size: 4 + - name: HD + description: Huffman DC + bit_offset: 0 + bit_size: 1 + - name: HA + description: Huffman AC + bit_offset: 1 + bit_size: 1 + - name: QT + description: Quantization Table + bit_offset: 2 + bit_size: 2 + - name: NB + description: Number of Block + bit_offset: 4 + bit_size: 4 + - name: VSF + description: Vertical Sampling Factor + bit_offset: 8 + bit_size: 4 + - name: HSF + description: Horizontal Sampling Factor + bit_offset: 12 + bit_size: 4 fieldset/JPEG_CONFR7: description: JPEG codec configuration register 7 fields: - - name: HD - description: Huffman DC - bit_offset: 0 - bit_size: 1 - - name: HA - description: Huffman AC - bit_offset: 1 - bit_size: 1 - - name: QT - description: Quantization Table - bit_offset: 2 - bit_size: 2 - - name: NB - description: Number of Block - bit_offset: 4 - bit_size: 4 - - name: VSF - description: Vertical Sampling Factor - bit_offset: 8 - bit_size: 4 - - name: HSF - description: Horizontal Sampling Factor - bit_offset: 12 - bit_size: 4 + - name: HD + description: Huffman DC + bit_offset: 0 + bit_size: 1 + - name: HA + description: Huffman AC + bit_offset: 1 + bit_size: 1 + - name: QT + description: Quantization Table + bit_offset: 2 + bit_size: 2 + - name: NB + description: Number of Block + bit_offset: 4 + bit_size: 4 + - name: VSF + description: Vertical Sampling Factor + bit_offset: 8 + bit_size: 4 + - name: HSF + description: Horizontal Sampling Factor + bit_offset: 12 + bit_size: 4 fieldset/JPEG_CR: description: JPEG control register fields: - - name: JCEN - description: JPEG Core Enable - bit_offset: 0 - bit_size: 1 - - name: IFTIE - description: Input FIFO Threshold Interrupt Enable - bit_offset: 1 - bit_size: 1 - - name: IFNFIE - description: Input FIFO Not Full Interrupt Enable - bit_offset: 2 - bit_size: 1 - - name: OFTIE - description: Output FIFO Threshold Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: OFNEIE - description: Output FIFO Not Empty Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: EOCIE - description: End of Conversion Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: HPDIE - description: Header Parsing Done Interrupt Enable - bit_offset: 6 - bit_size: 1 - - name: IDMAEN - description: Input DMA Enable - bit_offset: 11 - bit_size: 1 - - name: ODMAEN - description: Output DMA Enable - bit_offset: 12 - bit_size: 1 - - name: IFF - description: Input FIFO Flush - bit_offset: 13 - bit_size: 1 - - name: "OFF" - description: Output FIFO Flush - bit_offset: 14 - bit_size: 1 + - name: JCEN + description: JPEG Core Enable + bit_offset: 0 + bit_size: 1 + - name: IFTIE + description: Input FIFO Threshold Interrupt Enable + bit_offset: 1 + bit_size: 1 + - name: IFNFIE + description: Input FIFO Not Full Interrupt Enable + bit_offset: 2 + bit_size: 1 + - name: OFTIE + description: Output FIFO Threshold Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: OFNEIE + description: Output FIFO Not Empty Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: EOCIE + description: End of Conversion Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: HPDIE + description: Header Parsing Done Interrupt Enable + bit_offset: 6 + bit_size: 1 + - name: IDMAEN + description: Input DMA Enable + bit_offset: 11 + bit_size: 1 + - name: ODMAEN + description: Output DMA Enable + bit_offset: 12 + bit_size: 1 + - name: IFF + description: Input FIFO Flush + bit_offset: 13 + bit_size: 1 + - name: OFF + description: Output FIFO Flush + bit_offset: 14 + bit_size: 1 fieldset/JPEG_DIR: description: JPEG data input register fields: - - name: DATAIN - description: Data Input FIFO - bit_offset: 0 - bit_size: 32 + - name: DATAIN + description: Data Input FIFO + bit_offset: 0 + bit_size: 32 fieldset/JPEG_DOR: description: JPEG data output register fields: - - name: DATAOUT - description: Data Output FIFO - bit_offset: 0 - bit_size: 32 + - name: DATAOUT + description: Data Output FIFO + bit_offset: 0 + bit_size: 32 fieldset/JPEG_SR: description: JPEG status register fields: - - name: IFTF - description: Input FIFO Threshold Flag - bit_offset: 1 - bit_size: 1 - - name: IFNFF - description: Input FIFO Not Full Flag - bit_offset: 2 - bit_size: 1 - - name: OFTF - description: Output FIFO Threshold Flag - bit_offset: 3 - bit_size: 1 - - name: OFNEF - description: Output FIFO Not Empty Flag - bit_offset: 4 - bit_size: 1 - - name: EOCF - description: End of Conversion Flag - bit_offset: 5 - bit_size: 1 - - name: HPDF - description: Header Parsing Done Flag - bit_offset: 6 - bit_size: 1 - - name: COF - description: Codec Operation Flag - bit_offset: 7 - bit_size: 1 + - name: IFTF + description: Input FIFO Threshold Flag + bit_offset: 1 + bit_size: 1 + - name: IFNFF + description: Input FIFO Not Full Flag + bit_offset: 2 + bit_size: 1 + - name: OFTF + description: Output FIFO Threshold Flag + bit_offset: 3 + bit_size: 1 + - name: OFNEF + description: Output FIFO Not Empty Flag + bit_offset: 4 + bit_size: 1 + - name: EOCF + description: End of Conversion Flag + bit_offset: 5 + bit_size: 1 + - name: HPDF + description: Header Parsing Done Flag + bit_offset: 6 + bit_size: 1 + - name: COF + description: Codec Operation Flag + bit_offset: 7 + bit_size: 1 fieldset/QMEM0_0: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_1: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_10: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_11: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_12: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_13: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_14: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_15: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_2: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_3: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_4: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_5: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_6: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_7: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_8: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM0_9: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_0: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_1: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_10: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_11: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_12: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_13: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_14: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_15: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_2: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_3: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_4: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_5: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_6: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_7: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_8: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM1_9: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_0: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_1: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_10: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_11: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_12: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_13: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_14: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_15: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_2: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_3: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_4: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_5: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_6: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_7: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_8: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM2_9: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_0: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_1: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_10: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_11: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_12: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_13: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_14: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_15: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_2: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_3: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_4: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_5: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_6: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_7: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_8: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 fieldset/QMEM3_9: description: JPEG quantization tables fields: - - name: QMem_RAM - description: QMem RAM - bit_offset: 0 - bit_size: 32 + - name: QMem_RAM + description: QMem RAM + bit_offset: 0 + bit_size: 32 diff --git a/data/registers/lcd_v1.yaml b/data/registers/lcd_v1.yaml index 9b76cf5..ddc34e8 100644 --- a/data/registers/lcd_v1.yaml +++ b/data/registers/lcd_v1.yaml @@ -1,141 +1,140 @@ ---- block/LCD: description: Liquid crystal display controller items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: FCR - description: frame control register - byte_offset: 4 - fieldset: FCR - - name: SR - description: status register - byte_offset: 8 - fieldset: SR - - name: CLR - description: clear register - byte_offset: 12 - access: Write - fieldset: CLR - - name: RAM_COM - description: display memory - array: - len: 8 - stride: 8 - byte_offset: 20 - block: RAM_COM + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: FCR + description: frame control register + byte_offset: 4 + fieldset: FCR + - name: SR + description: status register + byte_offset: 8 + fieldset: SR + - name: CLR + description: clear register + byte_offset: 12 + access: Write + fieldset: CLR + - name: RAM_COM + description: display memory + array: + len: 8 + stride: 8 + byte_offset: 20 + block: RAM_COM block/RAM_COM: description: display memory items: - - name: LOW - description: display memory low word - byte_offset: 0 - - name: HIGH - description: display memory high word - byte_offset: 4 + - name: LOW + description: display memory low word + byte_offset: 0 + - name: HIGH + description: display memory high word + byte_offset: 4 fieldset/CLR: description: clear register fields: - - name: SOFC - description: Start of frame flag clear - bit_offset: 1 - bit_size: 1 - - name: UDDC - description: Update display done clear - bit_offset: 3 - bit_size: 1 + - name: SOFC + description: Start of frame flag clear + bit_offset: 1 + bit_size: 1 + - name: UDDC + description: Update display done clear + bit_offset: 3 + bit_size: 1 fieldset/CR: description: control register fields: - - name: LCDEN - description: LCD controller enable - bit_offset: 0 - bit_size: 1 - - name: VSEL - description: Voltage source selection - bit_offset: 1 - bit_size: 1 - - name: DUTY - description: Duty selection - bit_offset: 2 - bit_size: 3 - - name: BIAS - description: Bias selector - bit_offset: 5 - bit_size: 2 - - name: MUX_SEG - description: Mux segment enable - bit_offset: 7 - bit_size: 1 + - name: LCDEN + description: LCD controller enable + bit_offset: 0 + bit_size: 1 + - name: VSEL + description: Voltage source selection + bit_offset: 1 + bit_size: 1 + - name: DUTY + description: Duty selection + bit_offset: 2 + bit_size: 3 + - name: BIAS + description: Bias selector + bit_offset: 5 + bit_size: 2 + - name: MUX_SEG + description: Mux segment enable + bit_offset: 7 + bit_size: 1 fieldset/FCR: description: frame control register fields: - - name: HD - description: High drive enable - bit_offset: 0 - bit_size: 1 - - name: SOFIE - description: Start of frame interrupt enable - bit_offset: 1 - bit_size: 1 - - name: UDDIE - description: Update display done interrupt enable - bit_offset: 3 - bit_size: 1 - - name: PON - description: Pulse ON duration - bit_offset: 4 - bit_size: 3 - - name: DEAD - description: Dead time duration - bit_offset: 7 - bit_size: 3 - - name: CC - description: Contrast control - bit_offset: 10 - bit_size: 3 - - name: BLINKF - description: Blink frequency selection - bit_offset: 13 - bit_size: 3 - - name: BLINK - description: Blink mode selection - bit_offset: 16 - bit_size: 2 - - name: DIV - description: DIV clock divider - bit_offset: 18 - bit_size: 4 - - name: PS - description: PS 16-bit prescaler - bit_offset: 22 - bit_size: 4 + - name: HD + description: High drive enable + bit_offset: 0 + bit_size: 1 + - name: SOFIE + description: Start of frame interrupt enable + bit_offset: 1 + bit_size: 1 + - name: UDDIE + description: Update display done interrupt enable + bit_offset: 3 + bit_size: 1 + - name: PON + description: Pulse ON duration + bit_offset: 4 + bit_size: 3 + - name: DEAD + description: Dead time duration + bit_offset: 7 + bit_size: 3 + - name: CC + description: Contrast control + bit_offset: 10 + bit_size: 3 + - name: BLINKF + description: Blink frequency selection + bit_offset: 13 + bit_size: 3 + - name: BLINK + description: Blink mode selection + bit_offset: 16 + bit_size: 2 + - name: DIV + description: DIV clock divider + bit_offset: 18 + bit_size: 4 + - name: PS + description: PS 16-bit prescaler + bit_offset: 22 + bit_size: 4 fieldset/SR: description: status register fields: - - name: ENS - description: LCD enabled status - bit_offset: 0 - bit_size: 1 - - name: SOF - description: Start of frame flag - bit_offset: 1 - bit_size: 1 - - name: UDR - description: Update display request - bit_offset: 2 - bit_size: 1 - - name: UDD - description: Update Display Done - bit_offset: 3 - bit_size: 1 - - name: RDY - description: Ready flag - bit_offset: 4 - bit_size: 1 - - name: FCRSF - description: LCD Frame Control Register Synchronization flag - bit_offset: 5 - bit_size: 1 + - name: ENS + description: LCD enabled status + bit_offset: 0 + bit_size: 1 + - name: SOF + description: Start of frame flag + bit_offset: 1 + bit_size: 1 + - name: UDR + description: Update display request + bit_offset: 2 + bit_size: 1 + - name: UDD + description: Update Display Done + bit_offset: 3 + bit_size: 1 + - name: RDY + description: Ready flag + bit_offset: 4 + bit_size: 1 + - name: FCRSF + description: LCD Frame Control Register Synchronization flag + bit_offset: 5 + bit_size: 1 diff --git a/data/registers/lcd_v2.yaml b/data/registers/lcd_v2.yaml index c76e775..1b88405 100644 --- a/data/registers/lcd_v2.yaml +++ b/data/registers/lcd_v2.yaml @@ -1,145 +1,144 @@ ---- block/LCD: description: Liquid crystal display controller items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: FCR - description: frame control register - byte_offset: 4 - fieldset: FCR - - name: SR - description: status register - byte_offset: 8 - fieldset: SR - - name: CLR - description: clear register - byte_offset: 12 - access: Write - fieldset: CLR - - name: RAM_COM - description: display memory - array: - len: 8 - stride: 8 - byte_offset: 20 - block: RAM_COM + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: FCR + description: frame control register + byte_offset: 4 + fieldset: FCR + - name: SR + description: status register + byte_offset: 8 + fieldset: SR + - name: CLR + description: clear register + byte_offset: 12 + access: Write + fieldset: CLR + - name: RAM_COM + description: display memory + array: + len: 8 + stride: 8 + byte_offset: 20 + block: RAM_COM block/RAM_COM: description: display memory items: - - name: LOW - description: display memory low word - byte_offset: 0 - - name: HIGH - description: display memory high word - byte_offset: 4 + - name: LOW + description: display memory low word + byte_offset: 0 + - name: HIGH + description: display memory high word + byte_offset: 4 fieldset/CLR: description: clear register fields: - - name: SOFC - description: Start of frame flag clear - bit_offset: 1 - bit_size: 1 - - name: UDDC - description: Update display done clear - bit_offset: 3 - bit_size: 1 + - name: SOFC + description: Start of frame flag clear + bit_offset: 1 + bit_size: 1 + - name: UDDC + description: Update display done clear + bit_offset: 3 + bit_size: 1 fieldset/CR: description: control register fields: - - name: LCDEN - description: LCD controller enable - bit_offset: 0 - bit_size: 1 - - name: VSEL - description: Voltage source selection - bit_offset: 1 - bit_size: 1 - - name: DUTY - description: Duty selection - bit_offset: 2 - bit_size: 3 - - name: BIAS - description: Bias selector - bit_offset: 5 - bit_size: 2 - - name: MUX_SEG - description: Mux segment enable - bit_offset: 7 - bit_size: 1 - - name: BUFEN - description: Voltage output buffer enable - bit_offset: 8 - bit_size: 1 + - name: LCDEN + description: LCD controller enable + bit_offset: 0 + bit_size: 1 + - name: VSEL + description: Voltage source selection + bit_offset: 1 + bit_size: 1 + - name: DUTY + description: Duty selection + bit_offset: 2 + bit_size: 3 + - name: BIAS + description: Bias selector + bit_offset: 5 + bit_size: 2 + - name: MUX_SEG + description: Mux segment enable + bit_offset: 7 + bit_size: 1 + - name: BUFEN + description: Voltage output buffer enable + bit_offset: 8 + bit_size: 1 fieldset/FCR: description: frame control register fields: - - name: HD - description: High drive enable - bit_offset: 0 - bit_size: 1 - - name: SOFIE - description: Start of frame interrupt enable - bit_offset: 1 - bit_size: 1 - - name: UDDIE - description: Update display done interrupt enable - bit_offset: 3 - bit_size: 1 - - name: PON - description: Pulse ON duration - bit_offset: 4 - bit_size: 3 - - name: DEAD - description: Dead time duration - bit_offset: 7 - bit_size: 3 - - name: CC - description: Contrast control - bit_offset: 10 - bit_size: 3 - - name: BLINKF - description: Blink frequency selection - bit_offset: 13 - bit_size: 3 - - name: BLINK - description: Blink mode selection - bit_offset: 16 - bit_size: 2 - - name: DIV - description: DIV clock divider - bit_offset: 18 - bit_size: 4 - - name: PS - description: PS 16-bit prescaler - bit_offset: 22 - bit_size: 4 + - name: HD + description: High drive enable + bit_offset: 0 + bit_size: 1 + - name: SOFIE + description: Start of frame interrupt enable + bit_offset: 1 + bit_size: 1 + - name: UDDIE + description: Update display done interrupt enable + bit_offset: 3 + bit_size: 1 + - name: PON + description: Pulse ON duration + bit_offset: 4 + bit_size: 3 + - name: DEAD + description: Dead time duration + bit_offset: 7 + bit_size: 3 + - name: CC + description: Contrast control + bit_offset: 10 + bit_size: 3 + - name: BLINKF + description: Blink frequency selection + bit_offset: 13 + bit_size: 3 + - name: BLINK + description: Blink mode selection + bit_offset: 16 + bit_size: 2 + - name: DIV + description: DIV clock divider + bit_offset: 18 + bit_size: 4 + - name: PS + description: PS 16-bit prescaler + bit_offset: 22 + bit_size: 4 fieldset/SR: description: status register fields: - - name: ENS - description: LCD enabled status - bit_offset: 0 - bit_size: 1 - - name: SOF - description: Start of frame flag - bit_offset: 1 - bit_size: 1 - - name: UDR - description: Update display request - bit_offset: 2 - bit_size: 1 - - name: UDD - description: Update Display Done - bit_offset: 3 - bit_size: 1 - - name: RDY - description: Ready flag - bit_offset: 4 - bit_size: 1 - - name: FCRSF - description: LCD Frame Control Register Synchronization flag - bit_offset: 5 - bit_size: 1 + - name: ENS + description: LCD enabled status + bit_offset: 0 + bit_size: 1 + - name: SOF + description: Start of frame flag + bit_offset: 1 + bit_size: 1 + - name: UDR + description: Update display request + bit_offset: 2 + bit_size: 1 + - name: UDD + description: Update Display Done + bit_offset: 3 + bit_size: 1 + - name: RDY + description: Ready flag + bit_offset: 4 + bit_size: 1 + - name: FCRSF + description: LCD Frame Control Register Synchronization flag + bit_offset: 5 + bit_size: 1 diff --git a/data/registers/lptim_g0.yaml b/data/registers/lptim_g0.yaml index 553dec5..02dad0f 100644 --- a/data/registers/lptim_g0.yaml +++ b/data/registers/lptim_g0.yaml @@ -1,292 +1,291 @@ ---- block/LPTIM: description: Low power timer items: - - name: ISR - description: Interrupt and Status Register - byte_offset: 0 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt Clear Register - byte_offset: 4 - access: Write - fieldset: ICR - - name: IER - description: Interrupt Enable Register - byte_offset: 8 - fieldset: IER - - name: CFGR - description: Configuration Register - byte_offset: 12 - fieldset: CFGR - - name: CR - description: Control Register - byte_offset: 16 - fieldset: CR - - name: CMP - description: Compare Register - byte_offset: 20 - fieldset: CMP - - name: ARR - description: Autoreload Register - byte_offset: 24 - fieldset: ARR - - name: CNT - description: Counter Register - byte_offset: 28 - access: Read - fieldset: CNT - - name: CFGR2 - description: LPTIM configuration register 2 - byte_offset: 36 - fieldset: CFGR2 + - name: ISR + description: Interrupt and Status Register + byte_offset: 0 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt Clear Register + byte_offset: 4 + access: Write + fieldset: ICR + - name: IER + description: Interrupt Enable Register + byte_offset: 8 + fieldset: IER + - name: CFGR + description: Configuration Register + byte_offset: 12 + fieldset: CFGR + - name: CR + description: Control Register + byte_offset: 16 + fieldset: CR + - name: CMP + description: Compare Register + byte_offset: 20 + fieldset: CMP + - name: ARR + description: Autoreload Register + byte_offset: 24 + fieldset: ARR + - name: CNT + description: Counter Register + byte_offset: 28 + access: Read + fieldset: CNT + - name: CFGR2 + description: LPTIM configuration register 2 + byte_offset: 36 + fieldset: CFGR2 fieldset/ARR: description: Autoreload Register fields: - - name: ARR - description: Auto reload value - bit_offset: 0 - bit_size: 16 + - name: ARR + description: Auto reload value + bit_offset: 0 + bit_size: 16 fieldset/CFGR: description: Configuration Register fields: - - name: CKSEL - description: Clock selector - bit_offset: 0 - bit_size: 1 - enum: CKSEL - - name: CKPOL - description: Clock Polarity - bit_offset: 1 - bit_size: 2 - - name: CKFLT - description: Configurable digital filter for external clock - bit_offset: 3 - bit_size: 2 - - name: TRGFLT - description: Configurable digital filter for trigger - bit_offset: 6 - bit_size: 2 - - name: PRESC - description: Clock prescaler - bit_offset: 9 - bit_size: 3 - enum: PRESC - - name: TRIGSEL - description: Trigger selector - bit_offset: 13 - bit_size: 3 - - name: TRIGEN - description: Trigger enable and polarity - bit_offset: 17 - bit_size: 2 - enum: TRIGEN - - name: TIMOUT - description: Timeout enable - bit_offset: 19 - bit_size: 1 - - name: WAVE - description: Waveform shape - bit_offset: 20 - bit_size: 1 - - name: WAVPOL - description: Waveform shape polarity - bit_offset: 21 - bit_size: 1 - - name: PRELOAD - description: Registers update mode - bit_offset: 22 - bit_size: 1 - - name: COUNTMODE - description: counter mode enabled - bit_offset: 23 - bit_size: 1 - - name: ENC - description: Encoder mode enable - bit_offset: 24 - bit_size: 1 + - name: CKSEL + description: Clock selector + bit_offset: 0 + bit_size: 1 + enum: CKSEL + - name: CKPOL + description: Clock Polarity + bit_offset: 1 + bit_size: 2 + - name: CKFLT + description: Configurable digital filter for external clock + bit_offset: 3 + bit_size: 2 + - name: TRGFLT + description: Configurable digital filter for trigger + bit_offset: 6 + bit_size: 2 + - name: PRESC + description: Clock prescaler + bit_offset: 9 + bit_size: 3 + enum: PRESC + - name: TRIGSEL + description: Trigger selector + bit_offset: 13 + bit_size: 3 + - name: TRIGEN + description: Trigger enable and polarity + bit_offset: 17 + bit_size: 2 + enum: TRIGEN + - name: TIMOUT + description: Timeout enable + bit_offset: 19 + bit_size: 1 + - name: WAVE + description: Waveform shape + bit_offset: 20 + bit_size: 1 + - name: WAVPOL + description: Waveform shape polarity + bit_offset: 21 + bit_size: 1 + - name: PRELOAD + description: Registers update mode + bit_offset: 22 + bit_size: 1 + - name: COUNTMODE + description: counter mode enabled + bit_offset: 23 + bit_size: 1 + - name: ENC + description: Encoder mode enable + bit_offset: 24 + bit_size: 1 fieldset/CFGR2: description: LPTIM configuration register 2 fields: - - name: IN1SEL - description: LPTIMx Input 1 selection - bit_offset: 0 - bit_size: 2 - - name: IN2SEL - description: LPTIM1 Input 2 selection - bit_offset: 4 - bit_size: 2 + - name: IN1SEL + description: LPTIMx Input 1 selection + bit_offset: 0 + bit_size: 2 + - name: IN2SEL + description: LPTIM1 Input 2 selection + bit_offset: 4 + bit_size: 2 fieldset/CMP: description: Compare Register fields: - - name: CMP - description: Compare value - bit_offset: 0 - bit_size: 16 + - name: CMP + description: Compare value + bit_offset: 0 + bit_size: 16 fieldset/CNT: description: Counter Register fields: - - name: CNT - description: Counter value - bit_offset: 0 - bit_size: 16 + - name: CNT + description: Counter value + bit_offset: 0 + bit_size: 16 fieldset/CR: description: Control Register fields: - - name: ENABLE - description: LPTIM Enable - bit_offset: 0 - bit_size: 1 - - name: SNGSTRT - description: LPTIM start in single mode - bit_offset: 1 - bit_size: 1 - - name: CNTSTRT - description: Timer start in continuous mode - bit_offset: 2 - bit_size: 1 - - name: COUNTRST - description: Counter reset - bit_offset: 3 - bit_size: 1 - - name: RSTARE - description: Reset after read enable - bit_offset: 4 - bit_size: 1 + - name: ENABLE + description: LPTIM Enable + bit_offset: 0 + bit_size: 1 + - name: SNGSTRT + description: LPTIM start in single mode + bit_offset: 1 + bit_size: 1 + - name: CNTSTRT + description: Timer start in continuous mode + bit_offset: 2 + bit_size: 1 + - name: COUNTRST + description: Counter reset + bit_offset: 3 + bit_size: 1 + - name: RSTARE + description: Reset after read enable + bit_offset: 4 + bit_size: 1 fieldset/ICR: description: Interrupt Clear Register fields: - - name: CMPMCF - description: compare match Clear Flag - bit_offset: 0 - bit_size: 1 - - name: ARRMCF - description: Autoreload match Clear Flag - bit_offset: 1 - bit_size: 1 - - name: EXTTRIGCF - description: External trigger valid edge Clear Flag - bit_offset: 2 - bit_size: 1 - - name: CMPOKCF - description: Compare register update OK Clear Flag - bit_offset: 3 - bit_size: 1 - - name: ARROKCF - description: Autoreload register update OK Clear Flag - bit_offset: 4 - bit_size: 1 - - name: UPCF - description: Direction change to UP Clear Flag - bit_offset: 5 - bit_size: 1 - - name: DOWNCF - description: Direction change to down Clear Flag - bit_offset: 6 - bit_size: 1 + - name: CMPMCF + description: compare match Clear Flag + bit_offset: 0 + bit_size: 1 + - name: ARRMCF + description: Autoreload match Clear Flag + bit_offset: 1 + bit_size: 1 + - name: EXTTRIGCF + description: External trigger valid edge Clear Flag + bit_offset: 2 + bit_size: 1 + - name: CMPOKCF + description: Compare register update OK Clear Flag + bit_offset: 3 + bit_size: 1 + - name: ARROKCF + description: Autoreload register update OK Clear Flag + bit_offset: 4 + bit_size: 1 + - name: UPCF + description: Direction change to UP Clear Flag + bit_offset: 5 + bit_size: 1 + - name: DOWNCF + description: Direction change to down Clear Flag + bit_offset: 6 + bit_size: 1 fieldset/IER: description: Interrupt Enable Register fields: - - name: CMPMIE - description: Compare match Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: ARRMIE - description: Autoreload match Interrupt Enable - bit_offset: 1 - bit_size: 1 - - name: EXTTRIGIE - description: External trigger valid edge Interrupt Enable - bit_offset: 2 - bit_size: 1 - - name: CMPOKIE - description: Compare register update OK Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: ARROKIE - description: Autoreload register update OK Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: UPIE - description: Direction change to UP Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: DOWNIE - description: Direction change to down Interrupt Enable - bit_offset: 6 - bit_size: 1 + - name: CMPMIE + description: Compare match Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: ARRMIE + description: Autoreload match Interrupt Enable + bit_offset: 1 + bit_size: 1 + - name: EXTTRIGIE + description: External trigger valid edge Interrupt Enable + bit_offset: 2 + bit_size: 1 + - name: CMPOKIE + description: Compare register update OK Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: ARROKIE + description: Autoreload register update OK Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: UPIE + description: Direction change to UP Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: DOWNIE + description: Direction change to down Interrupt Enable + bit_offset: 6 + bit_size: 1 fieldset/ISR: description: Interrupt and Status Register fields: - - name: CMPM - description: Compare match - bit_offset: 0 - bit_size: 1 - - name: ARRM - description: Autoreload match - bit_offset: 1 - bit_size: 1 - - name: EXTTRIG - description: External trigger edge event - bit_offset: 2 - bit_size: 1 - - name: CMPOK - description: Compare register update OK - bit_offset: 3 - bit_size: 1 - - name: ARROK - description: Autoreload register update OK - bit_offset: 4 - bit_size: 1 - - name: UP - description: Counter direction change down to up - bit_offset: 5 - bit_size: 1 - - name: DOWN - description: Counter direction change up to down - bit_offset: 6 - bit_size: 1 + - name: CMPM + description: Compare match + bit_offset: 0 + bit_size: 1 + - name: ARRM + description: Autoreload match + bit_offset: 1 + bit_size: 1 + - name: EXTTRIG + description: External trigger edge event + bit_offset: 2 + bit_size: 1 + - name: CMPOK + description: Compare register update OK + bit_offset: 3 + bit_size: 1 + - name: ARROK + description: Autoreload register update OK + bit_offset: 4 + bit_size: 1 + - name: UP + description: Counter direction change down to up + bit_offset: 5 + bit_size: 1 + - name: DOWN + description: Counter direction change up to down + bit_offset: 6 + bit_size: 1 enum/CKSEL: bit_size: 1 variants: - - name: INTERNAL - description: LPTIM is clocked by internal clock source (APB clock or any of the embedded oscillators) - value: 0 - - name: EXTERNAL - description: LPTIM is clocked by an external clock source through the LPTIM external Input1 - value: 1 + - name: INTERNAL + description: LPTIM is clocked by internal clock source (APB clock or any of the embedded oscillators) + value: 0 + - name: EXTERNAL + description: LPTIM is clocked by an external clock source through the LPTIM external Input1 + value: 1 enum/PRESC: bit_size: 3 variants: - - name: DIV_BY_1 - value: 0 - - name: DIV_BY_2 - value: 1 - - name: DIV_BY_4 - value: 2 - - name: DIV_BY_8 - value: 3 - - name: DIV_BY_16 - value: 4 - - name: DIV_BY_32 - value: 5 - - name: DIV_BY_64 - value: 6 - - name: DIV_BY_128 - value: 7 + - name: DIV_BY_1 + value: 0 + - name: DIV_BY_2 + value: 1 + - name: DIV_BY_4 + value: 2 + - name: DIV_BY_8 + value: 3 + - name: DIV_BY_16 + value: 4 + - name: DIV_BY_32 + value: 5 + - name: DIV_BY_64 + value: 6 + - name: DIV_BY_128 + value: 7 enum/TRIGEN: bit_size: 2 variants: - - name: SOFTWARE - description: software trigger (counting start is initiated by software) - value: 0 - - name: RISING - description: rising edge is the active edge - value: 1 - - name: FALLING - description: rising edge is the active edge - value: 2 - - name: BOTH - description: both edges are active edges - value: 3 + - name: SOFTWARE + description: software trigger (counting start is initiated by software) + value: 0 + - name: RISING + description: rising edge is the active edge + value: 1 + - name: FALLING + description: rising edge is the active edge + value: 2 + - name: BOTH + description: both edges are active edges + value: 3 diff --git a/data/registers/lptim_v1.yaml b/data/registers/lptim_v1.yaml index 839d7c3..7a85c84 100644 --- a/data/registers/lptim_v1.yaml +++ b/data/registers/lptim_v1.yaml @@ -1,223 +1,222 @@ ---- block/LPTIM: description: Low power timer items: - - name: ISR - description: Interrupt and Status Register - byte_offset: 0 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt Clear Register - byte_offset: 4 - access: Write - fieldset: ICR - - name: IER - description: Interrupt Enable Register - byte_offset: 8 - fieldset: IER - - name: CFGR - description: Configuration Register - byte_offset: 12 - fieldset: CFGR - - name: CR - description: Control Register - byte_offset: 16 - fieldset: CR - - name: CMP - description: Compare Register - byte_offset: 20 - fieldset: CMP - - name: ARR - description: Autoreload Register - byte_offset: 24 - fieldset: ARR - - name: CNT - description: Counter Register - byte_offset: 28 - access: Read - fieldset: CNT + - name: ISR + description: Interrupt and Status Register + byte_offset: 0 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt Clear Register + byte_offset: 4 + access: Write + fieldset: ICR + - name: IER + description: Interrupt Enable Register + byte_offset: 8 + fieldset: IER + - name: CFGR + description: Configuration Register + byte_offset: 12 + fieldset: CFGR + - name: CR + description: Control Register + byte_offset: 16 + fieldset: CR + - name: CMP + description: Compare Register + byte_offset: 20 + fieldset: CMP + - name: ARR + description: Autoreload Register + byte_offset: 24 + fieldset: ARR + - name: CNT + description: Counter Register + byte_offset: 28 + access: Read + fieldset: CNT fieldset/ARR: description: Autoreload Register fields: - - name: ARR - description: Auto reload value - bit_offset: 0 - bit_size: 16 + - name: ARR + description: Auto reload value + bit_offset: 0 + bit_size: 16 fieldset/CFGR: description: Configuration Register fields: - - name: CKSEL - description: Clock selector - bit_offset: 0 - bit_size: 1 - - name: CKPOL - description: Clock Polarity - bit_offset: 1 - bit_size: 2 - - name: CKFLT - description: Configurable digital filter for external clock - bit_offset: 3 - bit_size: 2 - - name: TRGFLT - description: Configurable digital filter for trigger - bit_offset: 6 - bit_size: 2 - - name: PRESC - description: Clock prescaler - bit_offset: 9 - bit_size: 3 - - name: TRIGSEL - description: Trigger selector - bit_offset: 13 - bit_size: 3 - - name: TRIGEN - description: Trigger enable and polarity - bit_offset: 17 - bit_size: 2 - - name: TIMOUT - description: Timeout enable - bit_offset: 19 - bit_size: 1 - - name: WAVE - description: Waveform shape - bit_offset: 20 - bit_size: 1 - - name: WAVPOL - description: Waveform shape polarity - bit_offset: 21 - bit_size: 1 - - name: PRELOAD - description: Registers update mode - bit_offset: 22 - bit_size: 1 - - name: COUNTMODE - description: counter mode enabled - bit_offset: 23 - bit_size: 1 - - name: ENC - description: Encoder mode enable - bit_offset: 24 - bit_size: 1 + - name: CKSEL + description: Clock selector + bit_offset: 0 + bit_size: 1 + - name: CKPOL + description: Clock Polarity + bit_offset: 1 + bit_size: 2 + - name: CKFLT + description: Configurable digital filter for external clock + bit_offset: 3 + bit_size: 2 + - name: TRGFLT + description: Configurable digital filter for trigger + bit_offset: 6 + bit_size: 2 + - name: PRESC + description: Clock prescaler + bit_offset: 9 + bit_size: 3 + - name: TRIGSEL + description: Trigger selector + bit_offset: 13 + bit_size: 3 + - name: TRIGEN + description: Trigger enable and polarity + bit_offset: 17 + bit_size: 2 + - name: TIMOUT + description: Timeout enable + bit_offset: 19 + bit_size: 1 + - name: WAVE + description: Waveform shape + bit_offset: 20 + bit_size: 1 + - name: WAVPOL + description: Waveform shape polarity + bit_offset: 21 + bit_size: 1 + - name: PRELOAD + description: Registers update mode + bit_offset: 22 + bit_size: 1 + - name: COUNTMODE + description: counter mode enabled + bit_offset: 23 + bit_size: 1 + - name: ENC + description: Encoder mode enable + bit_offset: 24 + bit_size: 1 fieldset/CMP: description: Compare Register fields: - - name: CMP - description: Compare value - bit_offset: 0 - bit_size: 16 + - name: CMP + description: Compare value + bit_offset: 0 + bit_size: 16 fieldset/CNT: description: Counter Register fields: - - name: CNT - description: Counter value - bit_offset: 0 - bit_size: 16 + - name: CNT + description: Counter value + bit_offset: 0 + bit_size: 16 fieldset/CR: description: Control Register fields: - - name: ENABLE - description: LPTIM Enable - bit_offset: 0 - bit_size: 1 - - name: SNGSTRT - description: LPTIM start in single mode - bit_offset: 1 - bit_size: 1 - - name: CNTSTRT - description: Timer start in continuous mode - bit_offset: 2 - bit_size: 1 + - name: ENABLE + description: LPTIM Enable + bit_offset: 0 + bit_size: 1 + - name: SNGSTRT + description: LPTIM start in single mode + bit_offset: 1 + bit_size: 1 + - name: CNTSTRT + description: Timer start in continuous mode + bit_offset: 2 + bit_size: 1 fieldset/ICR: description: Interrupt Clear Register fields: - - name: CMPMCF - description: compare match Clear Flag - bit_offset: 0 - bit_size: 1 - - name: ARRMCF - description: Autoreload match Clear Flag - bit_offset: 1 - bit_size: 1 - - name: EXTTRIGCF - description: External trigger valid edge Clear Flag - bit_offset: 2 - bit_size: 1 - - name: CMPOKCF - description: Compare register update OK Clear Flag - bit_offset: 3 - bit_size: 1 - - name: ARROKCF - description: Autoreload register update OK Clear Flag - bit_offset: 4 - bit_size: 1 - - name: UPCF - description: Direction change to UP Clear Flag - bit_offset: 5 - bit_size: 1 - - name: DOWNCF - description: Direction change to down Clear Flag - bit_offset: 6 - bit_size: 1 + - name: CMPMCF + description: compare match Clear Flag + bit_offset: 0 + bit_size: 1 + - name: ARRMCF + description: Autoreload match Clear Flag + bit_offset: 1 + bit_size: 1 + - name: EXTTRIGCF + description: External trigger valid edge Clear Flag + bit_offset: 2 + bit_size: 1 + - name: CMPOKCF + description: Compare register update OK Clear Flag + bit_offset: 3 + bit_size: 1 + - name: ARROKCF + description: Autoreload register update OK Clear Flag + bit_offset: 4 + bit_size: 1 + - name: UPCF + description: Direction change to UP Clear Flag + bit_offset: 5 + bit_size: 1 + - name: DOWNCF + description: Direction change to down Clear Flag + bit_offset: 6 + bit_size: 1 fieldset/IER: description: Interrupt Enable Register fields: - - name: CMPMIE - description: Compare match Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: ARRMIE - description: Autoreload match Interrupt Enable - bit_offset: 1 - bit_size: 1 - - name: EXTTRIGIE - description: External trigger valid edge Interrupt Enable - bit_offset: 2 - bit_size: 1 - - name: CMPOKIE - description: Compare register update OK Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: ARROKIE - description: Autoreload register update OK Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: UPIE - description: Direction change to UP Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: DOWNIE - description: Direction change to down Interrupt Enable - bit_offset: 6 - bit_size: 1 + - name: CMPMIE + description: Compare match Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: ARRMIE + description: Autoreload match Interrupt Enable + bit_offset: 1 + bit_size: 1 + - name: EXTTRIGIE + description: External trigger valid edge Interrupt Enable + bit_offset: 2 + bit_size: 1 + - name: CMPOKIE + description: Compare register update OK Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: ARROKIE + description: Autoreload register update OK Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: UPIE + description: Direction change to UP Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: DOWNIE + description: Direction change to down Interrupt Enable + bit_offset: 6 + bit_size: 1 fieldset/ISR: description: Interrupt and Status Register fields: - - name: CMPM - description: Compare match - bit_offset: 0 - bit_size: 1 - - name: ARRM - description: Autoreload match - bit_offset: 1 - bit_size: 1 - - name: EXTTRIG - description: External trigger edge event - bit_offset: 2 - bit_size: 1 - - name: CMPOK - description: Compare register update OK - bit_offset: 3 - bit_size: 1 - - name: ARROK - description: Autoreload register update OK - bit_offset: 4 - bit_size: 1 - - name: UP - description: Counter direction change down to up - bit_offset: 5 - bit_size: 1 - - name: DOWN - description: Counter direction change up to down - bit_offset: 6 - bit_size: 1 + - name: CMPM + description: Compare match + bit_offset: 0 + bit_size: 1 + - name: ARRM + description: Autoreload match + bit_offset: 1 + bit_size: 1 + - name: EXTTRIG + description: External trigger edge event + bit_offset: 2 + bit_size: 1 + - name: CMPOK + description: Compare register update OK + bit_offset: 3 + bit_size: 1 + - name: ARROK + description: Autoreload register update OK + bit_offset: 4 + bit_size: 1 + - name: UP + description: Counter direction change down to up + bit_offset: 5 + bit_size: 1 + - name: DOWN + description: Counter direction change up to down + bit_offset: 6 + bit_size: 1 diff --git a/data/registers/ltdc_v1.yaml b/data/registers/ltdc_v1.yaml index c8c5026..ea6b881 100644 --- a/data/registers/ltdc_v1.yaml +++ b/data/registers/ltdc_v1.yaml @@ -1,757 +1,756 @@ ---- block/LAYER: - description: "Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR" + description: Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR items: - - name: CR - description: Layerx Control Register - byte_offset: 0 - fieldset: CR - - name: WHPCR - description: Layerx Window Horizontal Position Configuration Register - byte_offset: 4 - fieldset: WHPCR - - name: WVPCR - description: Layerx Window Vertical Position Configuration Register - byte_offset: 8 - fieldset: WVPCR - - name: CKCR - description: Layerx Color Keying Configuration Register - byte_offset: 12 - fieldset: CKCR - - name: PFCR - description: Layerx Pixel Format Configuration Register - byte_offset: 16 - fieldset: PFCR - - name: CACR - description: Layerx Constant Alpha Configuration Register - byte_offset: 20 - fieldset: CACR - - name: DCCR - description: Layerx Default Color Configuration Register - byte_offset: 24 - fieldset: DCCR - - name: BFCR - description: Layerx Blending Factors Configuration Register - byte_offset: 28 - fieldset: BFCR - - name: CFBAR - description: Layerx Color Frame Buffer Address Register - byte_offset: 40 - fieldset: CFBAR - - name: CFBLR - description: Layerx Color Frame Buffer Length Register - byte_offset: 44 - fieldset: CFBLR - - name: CFBLNR - description: Layerx ColorFrame Buffer Line Number Register - byte_offset: 48 - fieldset: CFBLNR - - name: CLUTWR - description: Layerx CLUT Write Register - byte_offset: 64 - access: Write - fieldset: CLUTWR + - name: CR + description: Layerx Control Register + byte_offset: 0 + fieldset: CR + - name: WHPCR + description: Layerx Window Horizontal Position Configuration Register + byte_offset: 4 + fieldset: WHPCR + - name: WVPCR + description: Layerx Window Vertical Position Configuration Register + byte_offset: 8 + fieldset: WVPCR + - name: CKCR + description: Layerx Color Keying Configuration Register + byte_offset: 12 + fieldset: CKCR + - name: PFCR + description: Layerx Pixel Format Configuration Register + byte_offset: 16 + fieldset: PFCR + - name: CACR + description: Layerx Constant Alpha Configuration Register + byte_offset: 20 + fieldset: CACR + - name: DCCR + description: Layerx Default Color Configuration Register + byte_offset: 24 + fieldset: DCCR + - name: BFCR + description: Layerx Blending Factors Configuration Register + byte_offset: 28 + fieldset: BFCR + - name: CFBAR + description: Layerx Color Frame Buffer Address Register + byte_offset: 40 + fieldset: CFBAR + - name: CFBLR + description: Layerx Color Frame Buffer Length Register + byte_offset: 44 + fieldset: CFBLR + - name: CFBLNR + description: Layerx ColorFrame Buffer Line Number Register + byte_offset: 48 + fieldset: CFBLNR + - name: CLUTWR + description: Layerx CLUT Write Register + byte_offset: 64 + access: Write + fieldset: CLUTWR block/LTDC: description: LCD-TFT Controller items: - - name: SSCR - description: Synchronization Size Configuration Register - byte_offset: 8 - fieldset: SSCR - - name: BPCR - description: Back Porch Configuration Register - byte_offset: 12 - fieldset: BPCR - - name: AWCR - description: Active Width Configuration Register - byte_offset: 16 - fieldset: AWCR - - name: TWCR - description: Total Width Configuration Register - byte_offset: 20 - fieldset: TWCR - - name: GCR - description: Global Control Register - byte_offset: 24 - fieldset: GCR - - name: SRCR - description: Shadow Reload Configuration Register - byte_offset: 36 - fieldset: SRCR - - name: BCCR - description: Background Color Configuration Register - byte_offset: 44 - fieldset: BCCR - - name: IER - description: Interrupt Enable Register - byte_offset: 52 - fieldset: IER - - name: ISR - description: Interrupt Status Register - byte_offset: 56 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt Clear Register - byte_offset: 60 - access: Write - fieldset: ICR - - name: LIPCR - description: Line Interrupt Position Configuration Register - byte_offset: 64 - fieldset: LIPCR - - name: CPSR - description: Current Position Status Register - byte_offset: 68 - access: Read - fieldset: CPSR - - name: CDSR - description: Current Display Status Register - byte_offset: 72 - access: Read - fieldset: CDSR - - name: LAYER - description: "Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR" - array: - len: 2 - stride: 128 - byte_offset: 132 - block: LAYER + - name: SSCR + description: Synchronization Size Configuration Register + byte_offset: 8 + fieldset: SSCR + - name: BPCR + description: Back Porch Configuration Register + byte_offset: 12 + fieldset: BPCR + - name: AWCR + description: Active Width Configuration Register + byte_offset: 16 + fieldset: AWCR + - name: TWCR + description: Total Width Configuration Register + byte_offset: 20 + fieldset: TWCR + - name: GCR + description: Global Control Register + byte_offset: 24 + fieldset: GCR + - name: SRCR + description: Shadow Reload Configuration Register + byte_offset: 36 + fieldset: SRCR + - name: BCCR + description: Background Color Configuration Register + byte_offset: 44 + fieldset: BCCR + - name: IER + description: Interrupt Enable Register + byte_offset: 52 + fieldset: IER + - name: ISR + description: Interrupt Status Register + byte_offset: 56 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt Clear Register + byte_offset: 60 + access: Write + fieldset: ICR + - name: LIPCR + description: Line Interrupt Position Configuration Register + byte_offset: 64 + fieldset: LIPCR + - name: CPSR + description: Current Position Status Register + byte_offset: 68 + access: Read + fieldset: CPSR + - name: CDSR + description: Current Display Status Register + byte_offset: 72 + access: Read + fieldset: CDSR + - name: LAYER + description: Cluster LAYER%s, containing L?CR, L?WHPCR, L?WVPCR, L?CKCR, L?PFCR, L?CACR, L?DCCR, L?BFCR, L?CFBAR, L?CFBLR, L?CFBLNR, L?CLUTWR + array: + len: 2 + stride: 128 + byte_offset: 132 + block: LAYER fieldset/AWCR: description: Active Width Configuration Register fields: - - name: AAH - description: Accumulated Active Height (in units of horizontal scan line) - bit_offset: 0 - bit_size: 11 - - name: AAW - description: Accumulated Active Width (in units of pixel clock period) - bit_offset: 16 - bit_size: 12 + - name: AAH + description: Accumulated Active Height (in units of horizontal scan line) + bit_offset: 0 + bit_size: 11 + - name: AAW + description: Accumulated Active Width (in units of pixel clock period) + bit_offset: 16 + bit_size: 12 fieldset/BCCR: description: Background Color Configuration Register fields: - - name: BCBLUE - description: Background color blue value - bit_offset: 0 - bit_size: 8 - - name: BCGREEN - description: Background color green value - bit_offset: 8 - bit_size: 8 - - name: BCRED - description: Background color red value - bit_offset: 16 - bit_size: 8 + - name: BCBLUE + description: Background color blue value + bit_offset: 0 + bit_size: 8 + - name: BCGREEN + description: Background color green value + bit_offset: 8 + bit_size: 8 + - name: BCRED + description: Background color red value + bit_offset: 16 + bit_size: 8 fieldset/BFCR: description: Layerx Blending Factors Configuration Register fields: - - name: BF - description: Blending Factor 2 - bit_offset: 0 - bit_size: 3 - array: - len: 2 - stride: 8 - enum: BF2 + - name: BF + description: Blending Factor 2 + bit_offset: 0 + bit_size: 3 + array: + len: 2 + stride: 8 + enum: BF2 fieldset/BPCR: description: Back Porch Configuration Register fields: - - name: AVBP - description: Accumulated Vertical back porch (in units of horizontal scan line) - bit_offset: 0 - bit_size: 11 - - name: AHBP - description: Accumulated Horizontal back porch (in units of pixel clock period) - bit_offset: 16 - bit_size: 12 + - name: AVBP + description: Accumulated Vertical back porch (in units of horizontal scan line) + bit_offset: 0 + bit_size: 11 + - name: AHBP + description: Accumulated Horizontal back porch (in units of pixel clock period) + bit_offset: 16 + bit_size: 12 fieldset/CACR: description: Layerx Constant Alpha Configuration Register fields: - - name: CONSTA - description: Constant Alpha - bit_offset: 0 - bit_size: 8 + - name: CONSTA + description: Constant Alpha + bit_offset: 0 + bit_size: 8 fieldset/CDSR: description: Current Display Status Register fields: - - name: VDES - description: Vertical Data Enable display Status - bit_offset: 0 - bit_size: 1 - enum: VDES - - name: HDES - description: Horizontal Data Enable display Status - bit_offset: 1 - bit_size: 1 - enum: HDES - - name: VSYNCS - description: Vertical Synchronization display Status - bit_offset: 2 - bit_size: 1 - enum: VSYNCS - - name: HSYNCS - description: Horizontal Synchronization display Status - bit_offset: 3 - bit_size: 1 - enum: HSYNCS + - name: VDES + description: Vertical Data Enable display Status + bit_offset: 0 + bit_size: 1 + enum: VDES + - name: HDES + description: Horizontal Data Enable display Status + bit_offset: 1 + bit_size: 1 + enum: HDES + - name: VSYNCS + description: Vertical Synchronization display Status + bit_offset: 2 + bit_size: 1 + enum: VSYNCS + - name: HSYNCS + description: Horizontal Synchronization display Status + bit_offset: 3 + bit_size: 1 + enum: HSYNCS fieldset/CFBAR: description: Layerx Color Frame Buffer Address Register fields: - - name: CFBADD - description: Color Frame Buffer Start Address - bit_offset: 0 - bit_size: 32 + - name: CFBADD + description: Color Frame Buffer Start Address + bit_offset: 0 + bit_size: 32 fieldset/CFBLNR: description: Layerx ColorFrame Buffer Line Number Register fields: - - name: CFBLNBR - description: Frame Buffer Line Number - bit_offset: 0 - bit_size: 11 + - name: CFBLNBR + description: Frame Buffer Line Number + bit_offset: 0 + bit_size: 11 fieldset/CFBLR: description: Layerx Color Frame Buffer Length Register fields: - - name: CFBLL - description: Color Frame Buffer Line Length - bit_offset: 0 - bit_size: 13 - - name: CFBP - description: Color Frame Buffer Pitch in bytes - bit_offset: 16 - bit_size: 13 + - name: CFBLL + description: Color Frame Buffer Line Length + bit_offset: 0 + bit_size: 13 + - name: CFBP + description: Color Frame Buffer Pitch in bytes + bit_offset: 16 + bit_size: 13 fieldset/CKCR: description: Layerx Color Keying Configuration Register fields: - - name: CKBLUE - description: Color Key Blue value - bit_offset: 0 - bit_size: 8 - - name: CKGREEN - description: Color Key Green value - bit_offset: 8 - bit_size: 8 - - name: CKRED - description: Color Key Red value - bit_offset: 16 - bit_size: 8 + - name: CKBLUE + description: Color Key Blue value + bit_offset: 0 + bit_size: 8 + - name: CKGREEN + description: Color Key Green value + bit_offset: 8 + bit_size: 8 + - name: CKRED + description: Color Key Red value + bit_offset: 16 + bit_size: 8 fieldset/CLUTWR: description: Layerx CLUT Write Register fields: - - name: BLUE - description: Blue value - bit_offset: 0 - bit_size: 8 - - name: GREEN - description: Green value - bit_offset: 8 - bit_size: 8 - - name: RED - description: Red value - bit_offset: 16 - bit_size: 8 - - name: CLUTADD - description: CLUT Address - bit_offset: 24 - bit_size: 8 + - name: BLUE + description: Blue value + bit_offset: 0 + bit_size: 8 + - name: GREEN + description: Green value + bit_offset: 8 + bit_size: 8 + - name: RED + description: Red value + bit_offset: 16 + bit_size: 8 + - name: CLUTADD + description: CLUT Address + bit_offset: 24 + bit_size: 8 fieldset/CPSR: description: Current Position Status Register fields: - - name: CYPOS - description: Current Y Position - bit_offset: 0 - bit_size: 16 - - name: CXPOS - description: Current X Position - bit_offset: 16 - bit_size: 16 + - name: CYPOS + description: Current Y Position + bit_offset: 0 + bit_size: 16 + - name: CXPOS + description: Current X Position + bit_offset: 16 + bit_size: 16 fieldset/CR: description: Layerx Control Register fields: - - name: LEN - description: Layer Enable - bit_offset: 0 - bit_size: 1 - enum: LEN - - name: COLKEN - description: Color Keying Enable - bit_offset: 1 - bit_size: 1 - enum: COLKEN - - name: CLUTEN - description: Color Look-Up Table Enable - bit_offset: 4 - bit_size: 1 - enum: CLUTEN + - name: LEN + description: Layer Enable + bit_offset: 0 + bit_size: 1 + enum: LEN + - name: COLKEN + description: Color Keying Enable + bit_offset: 1 + bit_size: 1 + enum: COLKEN + - name: CLUTEN + description: Color Look-Up Table Enable + bit_offset: 4 + bit_size: 1 + enum: CLUTEN fieldset/DCCR: description: Layerx Default Color Configuration Register fields: - - name: DCBLUE - description: Default Color Blue - bit_offset: 0 - bit_size: 8 - - name: DCGREEN - description: Default Color Green - bit_offset: 8 - bit_size: 8 - - name: DCRED - description: Default Color Red - bit_offset: 16 - bit_size: 8 - - name: DCALPHA - description: Default Color Alpha - bit_offset: 24 - bit_size: 8 + - name: DCBLUE + description: Default Color Blue + bit_offset: 0 + bit_size: 8 + - name: DCGREEN + description: Default Color Green + bit_offset: 8 + bit_size: 8 + - name: DCRED + description: Default Color Red + bit_offset: 16 + bit_size: 8 + - name: DCALPHA + description: Default Color Alpha + bit_offset: 24 + bit_size: 8 fieldset/GCR: description: Global Control Register fields: - - name: LTDCEN - description: LCD-TFT controller enable bit - bit_offset: 0 - bit_size: 1 - enum: LTDCEN - - name: DBW - description: Dither Blue Width - bit_offset: 4 - bit_size: 3 - - name: DGW - description: Dither Green Width - bit_offset: 8 - bit_size: 3 - - name: DRW - description: Dither Red Width - bit_offset: 12 - bit_size: 3 - - name: DEN - description: Dither Enable - bit_offset: 16 - bit_size: 1 - enum: DEN - - name: PCPOL - description: Pixel Clock Polarity - bit_offset: 28 - bit_size: 1 - enum: PCPOL - - name: DEPOL - description: Data Enable Polarity - bit_offset: 29 - bit_size: 1 - enum: DEPOL - - name: VSPOL - description: Vertical Synchronization Polarity - bit_offset: 30 - bit_size: 1 - enum: VSPOL - - name: HSPOL - description: Horizontal Synchronization Polarity - bit_offset: 31 - bit_size: 1 - enum: HSPOL + - name: LTDCEN + description: LCD-TFT controller enable bit + bit_offset: 0 + bit_size: 1 + enum: LTDCEN + - name: DBW + description: Dither Blue Width + bit_offset: 4 + bit_size: 3 + - name: DGW + description: Dither Green Width + bit_offset: 8 + bit_size: 3 + - name: DRW + description: Dither Red Width + bit_offset: 12 + bit_size: 3 + - name: DEN + description: Dither Enable + bit_offset: 16 + bit_size: 1 + enum: DEN + - name: PCPOL + description: Pixel Clock Polarity + bit_offset: 28 + bit_size: 1 + enum: PCPOL + - name: DEPOL + description: Data Enable Polarity + bit_offset: 29 + bit_size: 1 + enum: DEPOL + - name: VSPOL + description: Vertical Synchronization Polarity + bit_offset: 30 + bit_size: 1 + enum: VSPOL + - name: HSPOL + description: Horizontal Synchronization Polarity + bit_offset: 31 + bit_size: 1 + enum: HSPOL fieldset/ICR: description: Interrupt Clear Register fields: - - name: CLIF - description: Clears the Line Interrupt Flag - bit_offset: 0 - bit_size: 1 - enum: CLIF - - name: CFUIF - description: Clears the FIFO Underrun Interrupt flag - bit_offset: 1 - bit_size: 1 - enum: CFUIF - - name: CTERRIF - description: Clears the Transfer Error Interrupt Flag - bit_offset: 2 - bit_size: 1 - enum: CTERRIF - - name: CRRIF - description: Clears Register Reload Interrupt Flag - bit_offset: 3 - bit_size: 1 - enum: CRRIF + - name: CLIF + description: Clears the Line Interrupt Flag + bit_offset: 0 + bit_size: 1 + enum: CLIF + - name: CFUIF + description: Clears the FIFO Underrun Interrupt flag + bit_offset: 1 + bit_size: 1 + enum: CFUIF + - name: CTERRIF + description: Clears the Transfer Error Interrupt Flag + bit_offset: 2 + bit_size: 1 + enum: CTERRIF + - name: CRRIF + description: Clears Register Reload Interrupt Flag + bit_offset: 3 + bit_size: 1 + enum: CRRIF fieldset/IER: description: Interrupt Enable Register fields: - - name: LIE - description: Line Interrupt Enable - bit_offset: 0 - bit_size: 1 - enum: LIE - - name: FUIE - description: FIFO Underrun Interrupt Enable - bit_offset: 1 - bit_size: 1 - enum: FUIE - - name: TERRIE - description: Transfer Error Interrupt Enable - bit_offset: 2 - bit_size: 1 - enum: TERRIE - - name: RRIE - description: Register Reload interrupt enable - bit_offset: 3 - bit_size: 1 - enum: RRIE + - name: LIE + description: Line Interrupt Enable + bit_offset: 0 + bit_size: 1 + enum: LIE + - name: FUIE + description: FIFO Underrun Interrupt Enable + bit_offset: 1 + bit_size: 1 + enum: FUIE + - name: TERRIE + description: Transfer Error Interrupt Enable + bit_offset: 2 + bit_size: 1 + enum: TERRIE + - name: RRIE + description: Register Reload interrupt enable + bit_offset: 3 + bit_size: 1 + enum: RRIE fieldset/ISR: description: Interrupt Status Register fields: - - name: LIF - description: Line Interrupt flag - bit_offset: 0 - bit_size: 1 - enum: LIF - - name: FUIF - description: FIFO Underrun Interrupt flag - bit_offset: 1 - bit_size: 1 - enum: FUIF - - name: TERRIF - description: Transfer Error interrupt flag - bit_offset: 2 - bit_size: 1 - enum: TERRIF - - name: RRIF - description: Register Reload Interrupt Flag - bit_offset: 3 - bit_size: 1 - enum: RRIF + - name: LIF + description: Line Interrupt flag + bit_offset: 0 + bit_size: 1 + enum: LIF + - name: FUIF + description: FIFO Underrun Interrupt flag + bit_offset: 1 + bit_size: 1 + enum: FUIF + - name: TERRIF + description: Transfer Error interrupt flag + bit_offset: 2 + bit_size: 1 + enum: TERRIF + - name: RRIF + description: Register Reload Interrupt Flag + bit_offset: 3 + bit_size: 1 + enum: RRIF fieldset/LIPCR: description: Line Interrupt Position Configuration Register fields: - - name: LIPOS - description: Line Interrupt Position - bit_offset: 0 - bit_size: 11 + - name: LIPOS + description: Line Interrupt Position + bit_offset: 0 + bit_size: 11 fieldset/PFCR: description: Layerx Pixel Format Configuration Register fields: - - name: PF - description: Pixel Format - bit_offset: 0 - bit_size: 3 - enum: PF + - name: PF + description: Pixel Format + bit_offset: 0 + bit_size: 3 + enum: PF fieldset/SRCR: description: Shadow Reload Configuration Register fields: - - name: IMR - description: Immediate Reload - bit_offset: 0 - bit_size: 1 - enum: IMR - - name: VBR - description: Vertical Blanking Reload - bit_offset: 1 - bit_size: 1 - enum: VBR + - name: IMR + description: Immediate Reload + bit_offset: 0 + bit_size: 1 + enum: IMR + - name: VBR + description: Vertical Blanking Reload + bit_offset: 1 + bit_size: 1 + enum: VBR fieldset/SSCR: description: Synchronization Size Configuration Register fields: - - name: VSH - description: Vertical Synchronization Height (in units of horizontal scan line) - bit_offset: 0 - bit_size: 11 - - name: HSW - description: Horizontal Synchronization Width (in units of pixel clock period) - bit_offset: 16 - bit_size: 12 + - name: VSH + description: Vertical Synchronization Height (in units of horizontal scan line) + bit_offset: 0 + bit_size: 11 + - name: HSW + description: Horizontal Synchronization Width (in units of pixel clock period) + bit_offset: 16 + bit_size: 12 fieldset/TWCR: description: Total Width Configuration Register fields: - - name: TOTALH - description: Total Height (in units of horizontal scan line) - bit_offset: 0 - bit_size: 11 - - name: TOTALW - description: Total Width (in units of pixel clock period) - bit_offset: 16 - bit_size: 12 + - name: TOTALH + description: Total Height (in units of horizontal scan line) + bit_offset: 0 + bit_size: 11 + - name: TOTALW + description: Total Width (in units of pixel clock period) + bit_offset: 16 + bit_size: 12 fieldset/WHPCR: description: Layerx Window Horizontal Position Configuration Register fields: - - name: WHSTPOS - description: Window Horizontal Start Position - bit_offset: 0 - bit_size: 12 - - name: WHSPPOS - description: Window Horizontal Stop Position - bit_offset: 16 - bit_size: 12 + - name: WHSTPOS + description: Window Horizontal Start Position + bit_offset: 0 + bit_size: 12 + - name: WHSPPOS + description: Window Horizontal Stop Position + bit_offset: 16 + bit_size: 12 fieldset/WVPCR: description: Layerx Window Vertical Position Configuration Register fields: - - name: WVSTPOS - description: Window Vertical Start Position - bit_offset: 0 - bit_size: 11 - - name: WVSPPOS - description: Window Vertical Stop Position - bit_offset: 16 - bit_size: 11 + - name: WVSTPOS + description: Window Vertical Start Position + bit_offset: 0 + bit_size: 11 + - name: WVSPPOS + description: Window Vertical Stop Position + bit_offset: 16 + bit_size: 11 enum/BF2: bit_size: 3 variants: - - name: Constant - description: BF2 = 1 - constant alpha - value: 5 - - name: Pixel - description: BF2 = 1 - pixel alpha * constant alpha - value: 7 + - name: Constant + description: BF2 = 1 - constant alpha + value: 5 + - name: Pixel + description: BF2 = 1 - pixel alpha * constant alpha + value: 7 enum/CFUIF: bit_size: 1 variants: - - name: Clear - description: Clears the FUIF flag in the ISR register - value: 1 + - name: Clear + description: Clears the FUIF flag in the ISR register + value: 1 enum/CLIF: bit_size: 1 variants: - - name: Clear - description: Clears the LIF flag in the ISR register - value: 1 + - name: Clear + description: Clears the LIF flag in the ISR register + value: 1 enum/CLUTEN: bit_size: 1 variants: - - name: Disabled - description: Color look-up table disabled - value: 0 - - name: Enabled - description: Color look-up table enabled - value: 1 + - name: Disabled + description: Color look-up table disabled + value: 0 + - name: Enabled + description: Color look-up table enabled + value: 1 enum/COLKEN: bit_size: 1 variants: - - name: Disabled - description: Color keying disabled - value: 0 - - name: Enabled - description: Color keying enabled - value: 1 + - name: Disabled + description: Color keying disabled + value: 0 + - name: Enabled + description: Color keying enabled + value: 1 enum/CRRIF: bit_size: 1 variants: - - name: Clear - description: Clears the RRIF flag in the ISR register - value: 1 + - name: Clear + description: Clears the RRIF flag in the ISR register + value: 1 enum/CTERRIF: bit_size: 1 variants: - - name: Clear - description: Clears the TERRIF flag in the ISR register - value: 1 + - name: Clear + description: Clears the TERRIF flag in the ISR register + value: 1 enum/DEN: bit_size: 1 variants: - - name: Disabled - description: Dither disabled - value: 0 - - name: Enabled - description: Dither enabled - value: 1 + - name: Disabled + description: Dither disabled + value: 0 + - name: Enabled + description: Dither enabled + value: 1 enum/DEPOL: bit_size: 1 variants: - - name: ActiveLow - description: Data enable polarity is active low - value: 0 - - name: ActiveHigh - description: Data enable polarity is active high - value: 1 + - name: ActiveLow + description: Data enable polarity is active low + value: 0 + - name: ActiveHigh + description: Data enable polarity is active high + value: 1 enum/FUIE: bit_size: 1 variants: - - name: Disabled - description: FIFO underrun interrupt disabled - value: 0 - - name: Enabled - description: FIFO underrun interrupt enabled - value: 1 + - name: Disabled + description: FIFO underrun interrupt disabled + value: 0 + - name: Enabled + description: FIFO underrun interrupt enabled + value: 1 enum/FUIF: bit_size: 1 variants: - - name: NoUnderrun - description: No FIFO underrun - value: 0 - - name: Underrun - description: "FIFO underrun interrupt generated, if one of the layer FIFOs is empty and pixel data is read from the FIFO" - value: 1 + - name: NoUnderrun + description: No FIFO underrun + value: 0 + - name: Underrun + description: FIFO underrun interrupt generated, if one of the layer FIFOs is empty and pixel data is read from the FIFO + value: 1 enum/HDES: bit_size: 1 variants: - - name: NotActive - description: Currently not in horizontal Data Enable phase - value: 0 - - name: Active - description: Currently in horizontal Data Enable phase - value: 1 + - name: NotActive + description: Currently not in horizontal Data Enable phase + value: 0 + - name: Active + description: Currently in horizontal Data Enable phase + value: 1 enum/HSPOL: bit_size: 1 variants: - - name: ActiveLow - description: Horizontal synchronization polarity is active low - value: 0 - - name: ActiveHigh - description: Horizontal synchronization polarity is active high - value: 1 + - name: ActiveLow + description: Horizontal synchronization polarity is active low + value: 0 + - name: ActiveHigh + description: Horizontal synchronization polarity is active high + value: 1 enum/HSYNCS: bit_size: 1 variants: - - name: NotActive - description: Currently not in HSYNC phase - value: 0 - - name: Active - description: Currently in HSYNC phase - value: 1 + - name: NotActive + description: Currently not in HSYNC phase + value: 0 + - name: Active + description: Currently in HSYNC phase + value: 1 enum/IMR: bit_size: 1 variants: - - name: NoEffect - description: This bit is set by software and cleared only by hardware after reload (it cannot be cleared through register write once it is set) - value: 0 - - name: Reload - description: The shadow registers are reloaded immediately. This bit is set by software and cleared only by hardware after reload - value: 1 + - name: NoEffect + description: This bit is set by software and cleared only by hardware after reload (it cannot be cleared through register write once it is set) + value: 0 + - name: Reload + description: The shadow registers are reloaded immediately. This bit is set by software and cleared only by hardware after reload + value: 1 enum/LEN: bit_size: 1 variants: - - name: Disabled - description: Layer disabled - value: 0 - - name: Enabled - description: Layer enabled - value: 1 + - name: Disabled + description: Layer disabled + value: 0 + - name: Enabled + description: Layer enabled + value: 1 enum/LIE: bit_size: 1 variants: - - name: Disabled - description: Line interrupt disabled - value: 0 - - name: Enabled - description: Line interrupt enabled - value: 1 + - name: Disabled + description: Line interrupt disabled + value: 0 + - name: Enabled + description: Line interrupt enabled + value: 1 enum/LIF: bit_size: 1 variants: - - name: NotReached - description: Programmed line not reached - value: 0 - - name: Reached - description: Line interrupt generated when a programmed line is reached - value: 1 + - name: NotReached + description: Programmed line not reached + value: 0 + - name: Reached + description: Line interrupt generated when a programmed line is reached + value: 1 enum/LTDCEN: bit_size: 1 variants: - - name: Disabled - description: LCD-TFT controller disabled - value: 0 - - name: Enabled - description: LCD-TFT controller enabled - value: 1 + - name: Disabled + description: LCD-TFT controller disabled + value: 0 + - name: Enabled + description: LCD-TFT controller enabled + value: 1 enum/PCPOL: bit_size: 1 variants: - - name: RisingEdge - description: Pixel clock on rising edge - value: 0 - - name: FallingEdge - description: Pixel clock on falling edge - value: 1 + - name: RisingEdge + description: Pixel clock on rising edge + value: 0 + - name: FallingEdge + description: Pixel clock on falling edge + value: 1 enum/PF: bit_size: 3 variants: - - name: ARGB8888 - description: ARGB8888 - value: 0 - - name: RGB888 - description: RGB888 - value: 1 - - name: RGB565 - description: RGB565 - value: 2 - - name: ARGB1555 - description: ARGB1555 - value: 3 - - name: ARGB4444 - description: ARGB4444 - value: 4 - - name: L8 - description: L8 (8-bit luminance) - value: 5 - - name: AL44 - description: "AL44 (4-bit alpha, 4-bit luminance)" - value: 6 - - name: AL88 - description: "AL88 (8-bit alpha, 8-bit luminance)" - value: 7 + - name: ARGB8888 + description: ARGB8888 + value: 0 + - name: RGB888 + description: RGB888 + value: 1 + - name: RGB565 + description: RGB565 + value: 2 + - name: ARGB1555 + description: ARGB1555 + value: 3 + - name: ARGB4444 + description: ARGB4444 + value: 4 + - name: L8 + description: L8 (8-bit luminance) + value: 5 + - name: AL44 + description: AL44 (4-bit alpha, 4-bit luminance) + value: 6 + - name: AL88 + description: AL88 (8-bit alpha, 8-bit luminance) + value: 7 enum/RRIE: bit_size: 1 variants: - - name: Disabled - description: Register reload interrupt disabled - value: 0 - - name: Enabled - description: Register reload interrupt enabled - value: 1 + - name: Disabled + description: Register reload interrupt disabled + value: 0 + - name: Enabled + description: Register reload interrupt enabled + value: 1 enum/RRIF: bit_size: 1 variants: - - name: NoReload - description: No register reload - value: 0 - - name: Reload - description: Register reload interrupt generated when a vertical blanking reload occurs (and the first line after the active area is reached) - value: 1 + - name: NoReload + description: No register reload + value: 0 + - name: Reload + description: Register reload interrupt generated when a vertical blanking reload occurs (and the first line after the active area is reached) + value: 1 enum/TERRIE: bit_size: 1 variants: - - name: Disabled - description: Transfer error interrupt disabled - value: 0 - - name: Enabled - description: Transfer error interrupt enabled - value: 1 + - name: Disabled + description: Transfer error interrupt disabled + value: 0 + - name: Enabled + description: Transfer error interrupt enabled + value: 1 enum/TERRIF: bit_size: 1 variants: - - name: NoError - description: No transfer error - value: 0 - - name: Error - description: Transfer error interrupt generated when a bus error occurs - value: 1 + - name: NoError + description: No transfer error + value: 0 + - name: Error + description: Transfer error interrupt generated when a bus error occurs + value: 1 enum/VBR: bit_size: 1 variants: - - name: NoEffect - description: This bit is set by software and cleared only by hardware after reload (it cannot be cleared through register write once it is set) - value: 0 - - name: Reload - description: The shadow registers are reloaded during the vertical blanking period (at the beginning of the first line after the active display area). - value: 1 + - name: NoEffect + description: This bit is set by software and cleared only by hardware after reload (it cannot be cleared through register write once it is set) + value: 0 + - name: Reload + description: The shadow registers are reloaded during the vertical blanking period (at the beginning of the first line after the active display area). + value: 1 enum/VDES: bit_size: 1 variants: - - name: NotActive - description: Currently not in vertical Data Enable phase - value: 0 - - name: Active - description: Currently in vertical Data Enable phase - value: 1 + - name: NotActive + description: Currently not in vertical Data Enable phase + value: 0 + - name: Active + description: Currently in vertical Data Enable phase + value: 1 enum/VSPOL: bit_size: 1 variants: - - name: ActiveLow - description: Vertical synchronization polarity is active low - value: 0 - - name: ActiveHigh - description: Vertical synchronization polarity is active high - value: 1 + - name: ActiveLow + description: Vertical synchronization polarity is active low + value: 0 + - name: ActiveHigh + description: Vertical synchronization polarity is active high + value: 1 enum/VSYNCS: bit_size: 1 variants: - - name: NotActive - description: Currently not in VSYNC phase - value: 0 - - name: Active - description: Currently in VSYNC phase - value: 1 + - name: NotActive + description: Currently not in VSYNC phase + value: 0 + - name: Active + description: Currently in VSYNC phase + value: 1 diff --git a/data/registers/mdios_v1.yaml b/data/registers/mdios_v1.yaml index 2359595..c6f5ed1 100644 --- a/data/registers/mdios_v1.yaml +++ b/data/registers/mdios_v1.yaml @@ -1,149 +1,148 @@ ---- block/MDIOS: description: Management data input/output slave items: - - name: CR - description: MDIOS configuration register - byte_offset: 0 - fieldset: CR - - name: WRFR - description: MDIOS write flag register - byte_offset: 4 - access: Read - fieldset: WRFR - - name: CWRFR - description: MDIOS clear write flag register - byte_offset: 8 - fieldset: CWRFR - - name: RDFR - description: MDIOS read flag register - byte_offset: 12 - access: Read - fieldset: RDFR - - name: CRDFR - description: MDIOS clear read flag register - byte_offset: 16 - fieldset: CRDFR - - name: SR - description: MDIOS status register - byte_offset: 20 - access: Read - fieldset: SR - - name: CLRFR - description: MDIOS clear flag register - byte_offset: 24 - fieldset: CLRFR - - name: DINR - description: MDIOS input data register %s - array: - len: 32 - stride: 4 - byte_offset: 28 - access: Read - fieldset: DINR - - name: DOUTR - description: MDIOS output data register %s - array: - len: 32 - stride: 4 - byte_offset: 156 - fieldset: DOUTR + - name: CR + description: MDIOS configuration register + byte_offset: 0 + fieldset: CR + - name: WRFR + description: MDIOS write flag register + byte_offset: 4 + access: Read + fieldset: WRFR + - name: CWRFR + description: MDIOS clear write flag register + byte_offset: 8 + fieldset: CWRFR + - name: RDFR + description: MDIOS read flag register + byte_offset: 12 + access: Read + fieldset: RDFR + - name: CRDFR + description: MDIOS clear read flag register + byte_offset: 16 + fieldset: CRDFR + - name: SR + description: MDIOS status register + byte_offset: 20 + access: Read + fieldset: SR + - name: CLRFR + description: MDIOS clear flag register + byte_offset: 24 + fieldset: CLRFR + - name: DINR + description: MDIOS input data register %s + array: + len: 32 + stride: 4 + byte_offset: 28 + access: Read + fieldset: DINR + - name: DOUTR + description: MDIOS output data register %s + array: + len: 32 + stride: 4 + byte_offset: 156 + fieldset: DOUTR fieldset/CLRFR: description: MDIOS clear flag register fields: - - name: CPERF - description: Clear the preamble error flag - bit_offset: 0 - bit_size: 1 - - name: CSERF - description: Clear the start error flag - bit_offset: 1 - bit_size: 1 - - name: CTERF - description: Clear the turnaround error flag - bit_offset: 2 - bit_size: 1 + - name: CPERF + description: Clear the preamble error flag + bit_offset: 0 + bit_size: 1 + - name: CSERF + description: Clear the start error flag + bit_offset: 1 + bit_size: 1 + - name: CTERF + description: Clear the turnaround error flag + bit_offset: 2 + bit_size: 1 fieldset/CR: description: MDIOS configuration register fields: - - name: EN - description: Peripheral enable - bit_offset: 0 - bit_size: 1 - - name: WRIE - description: Register write interrupt enable - bit_offset: 1 - bit_size: 1 - - name: RDIE - description: Register Read Interrupt Enable - bit_offset: 2 - bit_size: 1 - - name: EIE - description: Error interrupt enable - bit_offset: 3 - bit_size: 1 - - name: DPC - description: Disable Preamble Check - bit_offset: 7 - bit_size: 1 - - name: PORT_ADDRESS - description: "Slaves's address" - bit_offset: 8 - bit_size: 5 + - name: EN + description: Peripheral enable + bit_offset: 0 + bit_size: 1 + - name: WRIE + description: Register write interrupt enable + bit_offset: 1 + bit_size: 1 + - name: RDIE + description: Register Read Interrupt Enable + bit_offset: 2 + bit_size: 1 + - name: EIE + description: Error interrupt enable + bit_offset: 3 + bit_size: 1 + - name: DPC + description: Disable Preamble Check + bit_offset: 7 + bit_size: 1 + - name: PORT_ADDRESS + description: Slaves's address + bit_offset: 8 + bit_size: 5 fieldset/CRDFR: description: MDIOS clear read flag register fields: - - name: CRDF - description: Clear the read flag - bit_offset: 0 - bit_size: 32 + - name: CRDF + description: Clear the read flag + bit_offset: 0 + bit_size: 32 fieldset/CWRFR: description: MDIOS clear write flag register fields: - - name: CWRF - description: Clear the write flag - bit_offset: 0 - bit_size: 32 + - name: CWRF + description: Clear the write flag + bit_offset: 0 + bit_size: 32 fieldset/DINR: description: MDIOS input data register %s fields: - - name: DIN - description: Input data received from MDIO Master during write frames - bit_offset: 0 - bit_size: 16 + - name: DIN + description: Input data received from MDIO Master during write frames + bit_offset: 0 + bit_size: 16 fieldset/DOUTR: description: MDIOS output data register %s fields: - - name: DOUT - description: Output data sent to MDIO Master during read frames - bit_offset: 0 - bit_size: 16 + - name: DOUT + description: Output data sent to MDIO Master during read frames + bit_offset: 0 + bit_size: 16 fieldset/RDFR: description: MDIOS read flag register fields: - - name: RDF - description: Read flags for MDIO registers 0 to 31 - bit_offset: 0 - bit_size: 32 + - name: RDF + description: Read flags for MDIO registers 0 to 31 + bit_offset: 0 + bit_size: 32 fieldset/SR: description: MDIOS status register fields: - - name: PERF - description: Preamble error flag - bit_offset: 0 - bit_size: 1 - - name: SERF - description: Start error flag - bit_offset: 1 - bit_size: 1 - - name: TERF - description: Turnaround error flag - bit_offset: 2 - bit_size: 1 + - name: PERF + description: Preamble error flag + bit_offset: 0 + bit_size: 1 + - name: SERF + description: Start error flag + bit_offset: 1 + bit_size: 1 + - name: TERF + description: Turnaround error flag + bit_offset: 2 + bit_size: 1 fieldset/WRFR: description: MDIOS write flag register fields: - - name: WRF - description: Write flags for MDIO registers 0 to 31 - bit_offset: 0 - bit_size: 32 + - name: WRF + description: Write flags for MDIO registers 0 to 31 + bit_offset: 0 + bit_size: 32 diff --git a/data/registers/otg_v1.yaml b/data/registers/otg_v1.yaml index 1edc2bd..29dcf16 100644 --- a/data/registers/otg_v1.yaml +++ b/data/registers/otg_v1.yaml @@ -1,1709 +1,1708 @@ ---- block/OTG: description: USB on the go items: - - name: GOTGCTL - description: Control and status register - byte_offset: 0 - fieldset: GOTGCTL - - name: GOTGINT - description: Interrupt register - byte_offset: 4 - fieldset: GOTGINT - - name: GAHBCFG - description: AHB configuration register - byte_offset: 8 - fieldset: GAHBCFG - - name: GUSBCFG - description: USB configuration register - byte_offset: 12 - fieldset: GUSBCFG - - name: GRSTCTL - description: Reset register - byte_offset: 16 - fieldset: GRSTCTL - - name: GINTSTS - description: Core interrupt register - byte_offset: 20 - fieldset: GINTSTS - - name: GINTMSK - description: Interrupt mask register - byte_offset: 24 - fieldset: GINTMSK - - name: GRXSTSR - description: Receive status debug read register - byte_offset: 28 - access: Read - fieldset: GRXSTS - - name: GRXSTSP - description: Status read and pop register - byte_offset: 32 - access: Read - fieldset: GRXSTS - - name: GRXFSIZ - description: Receive FIFO size register - byte_offset: 36 - fieldset: GRXFSIZ - - name: DIEPTXF0 - description: Endpoint 0 transmit FIFO size register (device mode) - byte_offset: 40 - fieldset: FSIZ - - name: HNPTXFSIZ - description: Non-periodic transmit FIFO size register (host mode) - byte_offset: 40 - fieldset: FSIZ - - name: HNPTXSTS - description: Non-periodic transmit FIFO/queue status register (host mode) - byte_offset: 44 - access: Read - fieldset: HNPTXSTS - - name: GI2CCTL - description: OTG I2C access register - byte_offset: 48 - fieldset: GI2CCTL - - name: GCCFG_V1 - description: "General core configuration register, for core_id 0x0000_1xxx" - byte_offset: 56 - fieldset: GCCFG_V1 - - name: GCCFG_V2 - description: "General core configuration register, for core_id 0x0000_[23]xxx" - byte_offset: 56 - fieldset: GCCFG_V2 - - name: CID - description: Core ID register - byte_offset: 60 - fieldset: CID - - name: GLPMCFG - description: OTG core LPM configuration register - byte_offset: 84 - fieldset: GLPMCFG - - name: HPTXFSIZ - description: Host periodic transmit FIFO size register - byte_offset: 256 - fieldset: FSIZ - - name: DIEPTXF - description: Device IN endpoint transmit FIFO size register - array: - len: 7 - stride: 4 - byte_offset: 260 - fieldset: FSIZ - - name: HCFG - description: Host configuration register - byte_offset: 1024 - fieldset: HCFG - - name: HFIR - description: Host frame interval register - byte_offset: 1028 - fieldset: HFIR - - name: HFNUM - description: Host frame number/frame time remaining register - byte_offset: 1032 - access: Read - fieldset: HFNUM - - name: HPTXSTS - description: Periodic transmit FIFO/queue status register - byte_offset: 1040 - fieldset: HPTXSTS - - name: HAINT - description: Host all channels interrupt register - byte_offset: 1044 - access: Read - fieldset: HAINT - - name: HAINTMSK - description: Host all channels interrupt mask register - byte_offset: 1048 - fieldset: HAINTMSK - - name: HPRT - description: Host port control and status register - byte_offset: 1088 - fieldset: HPRT - - name: HCCHAR - description: Host channel characteristics register - array: - len: 12 - stride: 32 - byte_offset: 1280 - fieldset: HCCHAR - - name: HCSPLT - description: Host channel split control register - array: - len: 12 - stride: 32 - byte_offset: 1284 - - name: HCINT - description: Host channel interrupt register - array: - len: 12 - stride: 32 - byte_offset: 1288 - fieldset: HCINT - - name: HCINTMSK - description: Host channel mask register - array: - len: 12 - stride: 32 - byte_offset: 1292 - fieldset: HCINTMSK - - name: HCTSIZ - description: Host channel transfer size register - array: - len: 12 - stride: 32 - byte_offset: 1296 - fieldset: HCTSIZ - - name: DCFG - description: Device configuration register - byte_offset: 2048 - fieldset: DCFG - - name: DCTL - description: Device control register - byte_offset: 2052 - fieldset: DCTL - - name: DSTS - description: Device status register - byte_offset: 2056 - access: Read - fieldset: DSTS - - name: DIEPMSK - description: Device IN endpoint common interrupt mask register - byte_offset: 2064 - fieldset: DIEPMSK - - name: DOEPMSK - description: Device OUT endpoint common interrupt mask register - byte_offset: 2068 - fieldset: DOEPMSK - - name: DAINT - description: Device all endpoints interrupt register - byte_offset: 2072 - access: Read - fieldset: DAINT - - name: DAINTMSK - description: All endpoints interrupt mask register - byte_offset: 2076 - fieldset: DAINTMSK - - name: DVBUSDIS - description: Device VBUS discharge time register - byte_offset: 2088 - fieldset: DVBUSDIS - - name: DVBUSPULSE - description: Device VBUS pulsing time register - byte_offset: 2092 - fieldset: DVBUSPULSE - - name: DIEPEMPMSK - description: Device IN endpoint FIFO empty interrupt mask register - byte_offset: 2100 - fieldset: DIEPEMPMSK - - name: DIEPCTL - description: Device IN endpoint control register - array: - len: 16 - stride: 32 - byte_offset: 2304 - fieldset: DIEPCTL - - name: DIEPINT - description: Device IN endpoint interrupt register - array: - len: 16 - stride: 32 - byte_offset: 2312 - fieldset: DIEPINT - - name: DIEPTSIZ - description: Device IN endpoint transfer size register - array: - len: 16 - stride: 32 - byte_offset: 2320 - fieldset: DIEPTSIZ - - name: DTXFSTS - description: Device IN endpoint transmit FIFO status register - array: - len: 16 - stride: 32 - byte_offset: 2328 - access: Read - fieldset: DTXFSTS - - name: DOEPCTL - description: Device OUT endpoint control register - array: - len: 16 - stride: 32 - byte_offset: 2816 - fieldset: DOEPCTL - - name: DOEPINT - description: Device OUT endpoint interrupt register - array: - len: 16 - stride: 32 - byte_offset: 2824 - fieldset: DOEPINT - - name: DOEPTSIZ - description: Device OUT endpoint transfer size register - array: - len: 16 - stride: 32 - byte_offset: 2832 - fieldset: DOEPTSIZ - - name: PCGCCTL - description: Power and clock gating control register - byte_offset: 3584 - fieldset: PCGCCTL - - name: FIFO - description: Device endpoint / host channel FIFO register - array: - len: 16 - stride: 4096 - byte_offset: 4096 - fieldset: FIFO + - name: GOTGCTL + description: Control and status register + byte_offset: 0 + fieldset: GOTGCTL + - name: GOTGINT + description: Interrupt register + byte_offset: 4 + fieldset: GOTGINT + - name: GAHBCFG + description: AHB configuration register + byte_offset: 8 + fieldset: GAHBCFG + - name: GUSBCFG + description: USB configuration register + byte_offset: 12 + fieldset: GUSBCFG + - name: GRSTCTL + description: Reset register + byte_offset: 16 + fieldset: GRSTCTL + - name: GINTSTS + description: Core interrupt register + byte_offset: 20 + fieldset: GINTSTS + - name: GINTMSK + description: Interrupt mask register + byte_offset: 24 + fieldset: GINTMSK + - name: GRXSTSR + description: Receive status debug read register + byte_offset: 28 + access: Read + fieldset: GRXSTS + - name: GRXSTSP + description: Status read and pop register + byte_offset: 32 + access: Read + fieldset: GRXSTS + - name: GRXFSIZ + description: Receive FIFO size register + byte_offset: 36 + fieldset: GRXFSIZ + - name: DIEPTXF0 + description: Endpoint 0 transmit FIFO size register (device mode) + byte_offset: 40 + fieldset: FSIZ + - name: HNPTXFSIZ + description: Non-periodic transmit FIFO size register (host mode) + byte_offset: 40 + fieldset: FSIZ + - name: HNPTXSTS + description: Non-periodic transmit FIFO/queue status register (host mode) + byte_offset: 44 + access: Read + fieldset: HNPTXSTS + - name: GI2CCTL + description: OTG I2C access register + byte_offset: 48 + fieldset: GI2CCTL + - name: GCCFG_V1 + description: General core configuration register, for core_id 0x0000_1xxx + byte_offset: 56 + fieldset: GCCFG_V1 + - name: GCCFG_V2 + description: General core configuration register, for core_id 0x0000_[23]xxx + byte_offset: 56 + fieldset: GCCFG_V2 + - name: CID + description: Core ID register + byte_offset: 60 + fieldset: CID + - name: GLPMCFG + description: OTG core LPM configuration register + byte_offset: 84 + fieldset: GLPMCFG + - name: HPTXFSIZ + description: Host periodic transmit FIFO size register + byte_offset: 256 + fieldset: FSIZ + - name: DIEPTXF + description: Device IN endpoint transmit FIFO size register + array: + len: 7 + stride: 4 + byte_offset: 260 + fieldset: FSIZ + - name: HCFG + description: Host configuration register + byte_offset: 1024 + fieldset: HCFG + - name: HFIR + description: Host frame interval register + byte_offset: 1028 + fieldset: HFIR + - name: HFNUM + description: Host frame number/frame time remaining register + byte_offset: 1032 + access: Read + fieldset: HFNUM + - name: HPTXSTS + description: Periodic transmit FIFO/queue status register + byte_offset: 1040 + fieldset: HPTXSTS + - name: HAINT + description: Host all channels interrupt register + byte_offset: 1044 + access: Read + fieldset: HAINT + - name: HAINTMSK + description: Host all channels interrupt mask register + byte_offset: 1048 + fieldset: HAINTMSK + - name: HPRT + description: Host port control and status register + byte_offset: 1088 + fieldset: HPRT + - name: HCCHAR + description: Host channel characteristics register + array: + len: 12 + stride: 32 + byte_offset: 1280 + fieldset: HCCHAR + - name: HCSPLT + description: Host channel split control register + array: + len: 12 + stride: 32 + byte_offset: 1284 + - name: HCINT + description: Host channel interrupt register + array: + len: 12 + stride: 32 + byte_offset: 1288 + fieldset: HCINT + - name: HCINTMSK + description: Host channel mask register + array: + len: 12 + stride: 32 + byte_offset: 1292 + fieldset: HCINTMSK + - name: HCTSIZ + description: Host channel transfer size register + array: + len: 12 + stride: 32 + byte_offset: 1296 + fieldset: HCTSIZ + - name: DCFG + description: Device configuration register + byte_offset: 2048 + fieldset: DCFG + - name: DCTL + description: Device control register + byte_offset: 2052 + fieldset: DCTL + - name: DSTS + description: Device status register + byte_offset: 2056 + access: Read + fieldset: DSTS + - name: DIEPMSK + description: Device IN endpoint common interrupt mask register + byte_offset: 2064 + fieldset: DIEPMSK + - name: DOEPMSK + description: Device OUT endpoint common interrupt mask register + byte_offset: 2068 + fieldset: DOEPMSK + - name: DAINT + description: Device all endpoints interrupt register + byte_offset: 2072 + access: Read + fieldset: DAINT + - name: DAINTMSK + description: All endpoints interrupt mask register + byte_offset: 2076 + fieldset: DAINTMSK + - name: DVBUSDIS + description: Device VBUS discharge time register + byte_offset: 2088 + fieldset: DVBUSDIS + - name: DVBUSPULSE + description: Device VBUS pulsing time register + byte_offset: 2092 + fieldset: DVBUSPULSE + - name: DIEPEMPMSK + description: Device IN endpoint FIFO empty interrupt mask register + byte_offset: 2100 + fieldset: DIEPEMPMSK + - name: DIEPCTL + description: Device IN endpoint control register + array: + len: 16 + stride: 32 + byte_offset: 2304 + fieldset: DIEPCTL + - name: DIEPINT + description: Device IN endpoint interrupt register + array: + len: 16 + stride: 32 + byte_offset: 2312 + fieldset: DIEPINT + - name: DIEPTSIZ + description: Device IN endpoint transfer size register + array: + len: 16 + stride: 32 + byte_offset: 2320 + fieldset: DIEPTSIZ + - name: DTXFSTS + description: Device IN endpoint transmit FIFO status register + array: + len: 16 + stride: 32 + byte_offset: 2328 + access: Read + fieldset: DTXFSTS + - name: DOEPCTL + description: Device OUT endpoint control register + array: + len: 16 + stride: 32 + byte_offset: 2816 + fieldset: DOEPCTL + - name: DOEPINT + description: Device OUT endpoint interrupt register + array: + len: 16 + stride: 32 + byte_offset: 2824 + fieldset: DOEPINT + - name: DOEPTSIZ + description: Device OUT endpoint transfer size register + array: + len: 16 + stride: 32 + byte_offset: 2832 + fieldset: DOEPTSIZ + - name: PCGCCTL + description: Power and clock gating control register + byte_offset: 3584 + fieldset: PCGCCTL + - name: FIFO + description: Device endpoint / host channel FIFO register + array: + len: 16 + stride: 4096 + byte_offset: 4096 + fieldset: FIFO fieldset/CID: description: Core ID register fields: - - name: PRODUCT_ID - description: Product ID field - bit_offset: 0 - bit_size: 32 + - name: PRODUCT_ID + description: Product ID field + bit_offset: 0 + bit_size: 32 fieldset/DAINT: description: Device all endpoints interrupt register fields: - - name: IEPINT - description: IN endpoint interrupt bits - bit_offset: 0 - bit_size: 16 - - name: OEPINT - description: OUT endpoint interrupt bits - bit_offset: 16 - bit_size: 16 + - name: IEPINT + description: IN endpoint interrupt bits + bit_offset: 0 + bit_size: 16 + - name: OEPINT + description: OUT endpoint interrupt bits + bit_offset: 16 + bit_size: 16 fieldset/DAINTMSK: description: All endpoints interrupt mask register fields: - - name: IEPM - description: IN EP interrupt mask bits - bit_offset: 0 - bit_size: 16 - - name: OEPM - description: OUT EP interrupt mask bits - bit_offset: 16 - bit_size: 16 + - name: IEPM + description: IN EP interrupt mask bits + bit_offset: 0 + bit_size: 16 + - name: OEPM + description: OUT EP interrupt mask bits + bit_offset: 16 + bit_size: 16 fieldset/DCFG: description: Device configuration register fields: - - name: DSPD - description: Device speed - bit_offset: 0 - bit_size: 2 - enum: DSPD - - name: NZLSOHSK - description: Non-zero-length status OUT handshake - bit_offset: 2 - bit_size: 1 - - name: DAD - description: Device address - bit_offset: 4 - bit_size: 7 - - name: PFIVL - description: Periodic frame interval - bit_offset: 11 - bit_size: 2 - enum: PFIVL - - name: XCVRDLY - description: Transceiver delay - bit_offset: 14 - bit_size: 1 + - name: DSPD + description: Device speed + bit_offset: 0 + bit_size: 2 + enum: DSPD + - name: NZLSOHSK + description: Non-zero-length status OUT handshake + bit_offset: 2 + bit_size: 1 + - name: DAD + description: Device address + bit_offset: 4 + bit_size: 7 + - name: PFIVL + description: Periodic frame interval + bit_offset: 11 + bit_size: 2 + enum: PFIVL + - name: XCVRDLY + description: Transceiver delay + bit_offset: 14 + bit_size: 1 fieldset/DCTL: description: Device control register fields: - - name: RWUSIG - description: Remote wakeup signaling - bit_offset: 0 - bit_size: 1 - - name: SDIS - description: Soft disconnect - bit_offset: 1 - bit_size: 1 - - name: GINSTS - description: Global IN NAK status - bit_offset: 2 - bit_size: 1 - - name: GONSTS - description: Global OUT NAK status - bit_offset: 3 - bit_size: 1 - - name: TCTL - description: Test control - bit_offset: 4 - bit_size: 3 - - name: SGINAK - description: Set global IN NAK - bit_offset: 7 - bit_size: 1 - - name: CGINAK - description: Clear global IN NAK - bit_offset: 8 - bit_size: 1 - - name: SGONAK - description: Set global OUT NAK - bit_offset: 9 - bit_size: 1 - - name: CGONAK - description: Clear global OUT NAK - bit_offset: 10 - bit_size: 1 - - name: POPRGDNE - description: Power-on programming done - bit_offset: 11 - bit_size: 1 + - name: RWUSIG + description: Remote wakeup signaling + bit_offset: 0 + bit_size: 1 + - name: SDIS + description: Soft disconnect + bit_offset: 1 + bit_size: 1 + - name: GINSTS + description: Global IN NAK status + bit_offset: 2 + bit_size: 1 + - name: GONSTS + description: Global OUT NAK status + bit_offset: 3 + bit_size: 1 + - name: TCTL + description: Test control + bit_offset: 4 + bit_size: 3 + - name: SGINAK + description: Set global IN NAK + bit_offset: 7 + bit_size: 1 + - name: CGINAK + description: Clear global IN NAK + bit_offset: 8 + bit_size: 1 + - name: SGONAK + description: Set global OUT NAK + bit_offset: 9 + bit_size: 1 + - name: CGONAK + description: Clear global OUT NAK + bit_offset: 10 + bit_size: 1 + - name: POPRGDNE + description: Power-on programming done + bit_offset: 11 + bit_size: 1 fieldset/DIEPCTL: description: Device endpoint control register fields: - - name: MPSIZ - description: MPSIZ - bit_offset: 0 - bit_size: 11 - - name: USBAEP - description: USBAEP - bit_offset: 15 - bit_size: 1 - - name: EONUM_DPID - description: EONUM/DPID - bit_offset: 16 - bit_size: 1 - - name: NAKSTS - description: NAKSTS - bit_offset: 17 - bit_size: 1 - - name: EPTYP - description: EPTYP - bit_offset: 18 - bit_size: 2 - enum: EPTYP - - name: SNPM - description: SNPM - bit_offset: 20 - bit_size: 1 - - name: STALL - description: STALL - bit_offset: 21 - bit_size: 1 - - name: TXFNUM - description: TXFNUM - bit_offset: 22 - bit_size: 4 - - name: CNAK - description: CNAK - bit_offset: 26 - bit_size: 1 - - name: SNAK - description: SNAK - bit_offset: 27 - bit_size: 1 - - name: SD0PID_SEVNFRM - description: SD0PID/SEVNFRM - bit_offset: 28 - bit_size: 1 - - name: SODDFRM_SD1PID - description: SODDFRM/SD1PID - bit_offset: 29 - bit_size: 1 - - name: EPDIS - description: EPDIS - bit_offset: 30 - bit_size: 1 - - name: EPENA - description: EPENA - bit_offset: 31 - bit_size: 1 + - name: MPSIZ + description: MPSIZ + bit_offset: 0 + bit_size: 11 + - name: USBAEP + description: USBAEP + bit_offset: 15 + bit_size: 1 + - name: EONUM_DPID + description: EONUM/DPID + bit_offset: 16 + bit_size: 1 + - name: NAKSTS + description: NAKSTS + bit_offset: 17 + bit_size: 1 + - name: EPTYP + description: EPTYP + bit_offset: 18 + bit_size: 2 + enum: EPTYP + - name: SNPM + description: SNPM + bit_offset: 20 + bit_size: 1 + - name: STALL + description: STALL + bit_offset: 21 + bit_size: 1 + - name: TXFNUM + description: TXFNUM + bit_offset: 22 + bit_size: 4 + - name: CNAK + description: CNAK + bit_offset: 26 + bit_size: 1 + - name: SNAK + description: SNAK + bit_offset: 27 + bit_size: 1 + - name: SD0PID_SEVNFRM + description: SD0PID/SEVNFRM + bit_offset: 28 + bit_size: 1 + - name: SODDFRM_SD1PID + description: SODDFRM/SD1PID + bit_offset: 29 + bit_size: 1 + - name: EPDIS + description: EPDIS + bit_offset: 30 + bit_size: 1 + - name: EPENA + description: EPENA + bit_offset: 31 + bit_size: 1 fieldset/DIEPEMPMSK: description: Device IN endpoint FIFO empty interrupt mask register fields: - - name: INEPTXFEM - description: IN EP Tx FIFO empty interrupt mask bits - bit_offset: 0 - bit_size: 16 + - name: INEPTXFEM + description: IN EP Tx FIFO empty interrupt mask bits + bit_offset: 0 + bit_size: 16 fieldset/DIEPINT: description: Device endpoint interrupt register fields: - - name: XFRC - description: XFRC - bit_offset: 0 - bit_size: 1 - - name: EPDISD - description: EPDISD - bit_offset: 1 - bit_size: 1 - - name: TOC - description: TOC - bit_offset: 3 - bit_size: 1 - - name: ITTXFE - description: ITTXFE - bit_offset: 4 - bit_size: 1 - - name: INEPNE - description: INEPNE - bit_offset: 6 - bit_size: 1 - - name: TXFE - description: TXFE - bit_offset: 7 - bit_size: 1 + - name: XFRC + description: XFRC + bit_offset: 0 + bit_size: 1 + - name: EPDISD + description: EPDISD + bit_offset: 1 + bit_size: 1 + - name: TOC + description: TOC + bit_offset: 3 + bit_size: 1 + - name: ITTXFE + description: ITTXFE + bit_offset: 4 + bit_size: 1 + - name: INEPNE + description: INEPNE + bit_offset: 6 + bit_size: 1 + - name: TXFE + description: TXFE + bit_offset: 7 + bit_size: 1 fieldset/DIEPMSK: description: Device IN endpoint common interrupt mask register fields: - - name: XFRCM - description: Transfer completed interrupt mask - bit_offset: 0 - bit_size: 1 - - name: EPDM - description: Endpoint disabled interrupt mask - bit_offset: 1 - bit_size: 1 - - name: TOM - description: Timeout condition mask (Non-isochronous endpoints) - bit_offset: 3 - bit_size: 1 - - name: ITTXFEMSK - description: IN token received when TxFIFO empty mask - bit_offset: 4 - bit_size: 1 - - name: INEPNMM - description: IN token received with EP mismatch mask - bit_offset: 5 - bit_size: 1 - - name: INEPNEM - description: IN endpoint NAK effective mask - bit_offset: 6 - bit_size: 1 + - name: XFRCM + description: Transfer completed interrupt mask + bit_offset: 0 + bit_size: 1 + - name: EPDM + description: Endpoint disabled interrupt mask + bit_offset: 1 + bit_size: 1 + - name: TOM + description: Timeout condition mask (Non-isochronous endpoints) + bit_offset: 3 + bit_size: 1 + - name: ITTXFEMSK + description: IN token received when TxFIFO empty mask + bit_offset: 4 + bit_size: 1 + - name: INEPNMM + description: IN token received with EP mismatch mask + bit_offset: 5 + bit_size: 1 + - name: INEPNEM + description: IN endpoint NAK effective mask + bit_offset: 6 + bit_size: 1 fieldset/DIEPTSIZ: description: Device endpoint transfer size register fields: - - name: XFRSIZ - description: Transfer size - bit_offset: 0 - bit_size: 19 - - name: PKTCNT - description: Packet count - bit_offset: 19 - bit_size: 10 - - name: MCNT - description: Multi count - bit_offset: 29 - bit_size: 2 + - name: XFRSIZ + description: Transfer size + bit_offset: 0 + bit_size: 19 + - name: PKTCNT + description: Packet count + bit_offset: 19 + bit_size: 10 + - name: MCNT + description: Multi count + bit_offset: 29 + bit_size: 2 fieldset/DOEPCTL: description: Device endpoint control register fields: - - name: MPSIZ - description: MPSIZ - bit_offset: 0 - bit_size: 11 - - name: USBAEP - description: USBAEP - bit_offset: 15 - bit_size: 1 - - name: EONUM_DPID - description: EONUM/DPID - bit_offset: 16 - bit_size: 1 - - name: NAKSTS - description: NAKSTS - bit_offset: 17 - bit_size: 1 - - name: EPTYP - description: EPTYP - bit_offset: 18 - bit_size: 2 - enum: EPTYP - - name: SNPM - description: SNPM - bit_offset: 20 - bit_size: 1 - - name: STALL - description: STALL - bit_offset: 21 - bit_size: 1 - - name: CNAK - description: CNAK - bit_offset: 26 - bit_size: 1 - - name: SNAK - description: SNAK - bit_offset: 27 - bit_size: 1 - - name: SD0PID_SEVNFRM - description: SD0PID/SEVNFRM - bit_offset: 28 - bit_size: 1 - - name: SODDFRM - description: SODDFRM - bit_offset: 29 - bit_size: 1 - - name: EPDIS - description: EPDIS - bit_offset: 30 - bit_size: 1 - - name: EPENA - description: EPENA - bit_offset: 31 - bit_size: 1 + - name: MPSIZ + description: MPSIZ + bit_offset: 0 + bit_size: 11 + - name: USBAEP + description: USBAEP + bit_offset: 15 + bit_size: 1 + - name: EONUM_DPID + description: EONUM/DPID + bit_offset: 16 + bit_size: 1 + - name: NAKSTS + description: NAKSTS + bit_offset: 17 + bit_size: 1 + - name: EPTYP + description: EPTYP + bit_offset: 18 + bit_size: 2 + enum: EPTYP + - name: SNPM + description: SNPM + bit_offset: 20 + bit_size: 1 + - name: STALL + description: STALL + bit_offset: 21 + bit_size: 1 + - name: CNAK + description: CNAK + bit_offset: 26 + bit_size: 1 + - name: SNAK + description: SNAK + bit_offset: 27 + bit_size: 1 + - name: SD0PID_SEVNFRM + description: SD0PID/SEVNFRM + bit_offset: 28 + bit_size: 1 + - name: SODDFRM + description: SODDFRM + bit_offset: 29 + bit_size: 1 + - name: EPDIS + description: EPDIS + bit_offset: 30 + bit_size: 1 + - name: EPENA + description: EPENA + bit_offset: 31 + bit_size: 1 fieldset/DOEPINT: description: Device endpoint interrupt register fields: - - name: XFRC - description: XFRC - bit_offset: 0 - bit_size: 1 - - name: EPDISD - description: EPDISD - bit_offset: 1 - bit_size: 1 - - name: STUP - description: STUP - bit_offset: 3 - bit_size: 1 - - name: OTEPDIS - description: OTEPDIS - bit_offset: 4 - bit_size: 1 - - name: B2BSTUP - description: B2BSTUP - bit_offset: 6 - bit_size: 1 + - name: XFRC + description: XFRC + bit_offset: 0 + bit_size: 1 + - name: EPDISD + description: EPDISD + bit_offset: 1 + bit_size: 1 + - name: STUP + description: STUP + bit_offset: 3 + bit_size: 1 + - name: OTEPDIS + description: OTEPDIS + bit_offset: 4 + bit_size: 1 + - name: B2BSTUP + description: B2BSTUP + bit_offset: 6 + bit_size: 1 fieldset/DOEPMSK: description: Device OUT endpoint common interrupt mask register fields: - - name: XFRCM - description: Transfer completed interrupt mask - bit_offset: 0 - bit_size: 1 - - name: EPDM - description: Endpoint disabled interrupt mask - bit_offset: 1 - bit_size: 1 - - name: STUPM - description: SETUP phase done mask - bit_offset: 3 - bit_size: 1 - - name: OTEPDM - description: OUT token received when endpoint disabled mask - bit_offset: 4 - bit_size: 1 + - name: XFRCM + description: Transfer completed interrupt mask + bit_offset: 0 + bit_size: 1 + - name: EPDM + description: Endpoint disabled interrupt mask + bit_offset: 1 + bit_size: 1 + - name: STUPM + description: SETUP phase done mask + bit_offset: 3 + bit_size: 1 + - name: OTEPDM + description: OUT token received when endpoint disabled mask + bit_offset: 4 + bit_size: 1 fieldset/DOEPTSIZ: description: Device OUT endpoint transfer size register fields: - - name: XFRSIZ - description: Transfer size - bit_offset: 0 - bit_size: 19 - - name: PKTCNT - description: Packet count - bit_offset: 19 - bit_size: 10 - - name: RXDPID_STUPCNT - description: Received data PID/SETUP packet count - bit_offset: 29 - bit_size: 2 + - name: XFRSIZ + description: Transfer size + bit_offset: 0 + bit_size: 19 + - name: PKTCNT + description: Packet count + bit_offset: 19 + bit_size: 10 + - name: RXDPID_STUPCNT + description: Received data PID/SETUP packet count + bit_offset: 29 + bit_size: 2 fieldset/DSTS: description: Device status register fields: - - name: SUSPSTS - description: Suspend status - bit_offset: 0 - bit_size: 1 - - name: ENUMSPD - description: Enumerated speed - bit_offset: 1 - bit_size: 2 - enum: DSPD - - name: EERR - description: Erratic error - bit_offset: 3 - bit_size: 1 - - name: FNSOF - description: Frame number of the received SOF - bit_offset: 8 - bit_size: 14 + - name: SUSPSTS + description: Suspend status + bit_offset: 0 + bit_size: 1 + - name: ENUMSPD + description: Enumerated speed + bit_offset: 1 + bit_size: 2 + enum: DSPD + - name: EERR + description: Erratic error + bit_offset: 3 + bit_size: 1 + - name: FNSOF + description: Frame number of the received SOF + bit_offset: 8 + bit_size: 14 fieldset/DTXFSTS: description: Device IN endpoint transmit FIFO status register fields: - - name: INEPTFSAV - description: IN endpoint TxFIFO space available - bit_offset: 0 - bit_size: 16 + - name: INEPTFSAV + description: IN endpoint TxFIFO space available + bit_offset: 0 + bit_size: 16 fieldset/DVBUSDIS: description: Device VBUS discharge time register fields: - - name: VBUSDT - description: Device VBUS discharge time - bit_offset: 0 - bit_size: 16 + - name: VBUSDT + description: Device VBUS discharge time + bit_offset: 0 + bit_size: 16 fieldset/DVBUSPULSE: description: Device VBUS pulsing time register fields: - - name: DVBUSP - description: Device VBUS pulsing time - bit_offset: 0 - bit_size: 12 + - name: DVBUSP + description: Device VBUS pulsing time + bit_offset: 0 + bit_size: 12 fieldset/FIFO: description: FIFO register fields: - - name: DATA - description: Data - bit_offset: 0 - bit_size: 32 + - name: DATA + description: Data + bit_offset: 0 + bit_size: 32 fieldset/FSIZ: description: FIFO size register fields: - - name: SA - description: RAM start address - bit_offset: 0 - bit_size: 16 - - name: FD - description: FIFO depth - bit_offset: 16 - bit_size: 16 + - name: SA + description: RAM start address + bit_offset: 0 + bit_size: 16 + - name: FD + description: FIFO depth + bit_offset: 16 + bit_size: 16 fieldset/GAHBCFG: description: AHB configuration register fields: - - name: GINT - description: Global interrupt mask - bit_offset: 0 - bit_size: 1 - - name: HBSTLEN - description: Burst length/type - bit_offset: 1 - bit_size: 4 - - name: DMAEN - description: DMA enable - bit_offset: 5 - bit_size: 1 - - name: TXFELVL - description: TxFIFO empty level - bit_offset: 7 - bit_size: 1 - - name: PTXFELVL - description: Periodic TxFIFO empty level - bit_offset: 8 - bit_size: 1 + - name: GINT + description: Global interrupt mask + bit_offset: 0 + bit_size: 1 + - name: HBSTLEN + description: Burst length/type + bit_offset: 1 + bit_size: 4 + - name: DMAEN + description: DMA enable + bit_offset: 5 + bit_size: 1 + - name: TXFELVL + description: TxFIFO empty level + bit_offset: 7 + bit_size: 1 + - name: PTXFELVL + description: Periodic TxFIFO empty level + bit_offset: 8 + bit_size: 1 fieldset/GCCFG_V1: description: General core configuration register fields: - - name: PWRDWN - description: Power down - bit_offset: 16 - bit_size: 1 - - name: VBUSASEN - description: "Enable the VBUS \"A\" sensing device" - bit_offset: 18 - bit_size: 1 - - name: VBUSBSEN - description: "Enable the VBUS \"B\" sensing device" - bit_offset: 19 - bit_size: 1 - - name: SOFOUTEN - description: SOF output enable - bit_offset: 20 - bit_size: 1 - - name: NOVBUSSENS - description: VBUS sensing disable - bit_offset: 21 - bit_size: 1 + - name: PWRDWN + description: Power down + bit_offset: 16 + bit_size: 1 + - name: VBUSASEN + description: Enable the VBUS "A" sensing device + bit_offset: 18 + bit_size: 1 + - name: VBUSBSEN + description: Enable the VBUS "B" sensing device + bit_offset: 19 + bit_size: 1 + - name: SOFOUTEN + description: SOF output enable + bit_offset: 20 + bit_size: 1 + - name: NOVBUSSENS + description: VBUS sensing disable + bit_offset: 21 + bit_size: 1 fieldset/GCCFG_V2: description: General core configuration register fields: - - name: DCDET - description: Data contact detection (DCD) status - bit_offset: 0 - bit_size: 1 - - name: PDET - description: Primary detection (PD) status - bit_offset: 1 - bit_size: 1 - - name: SDET - description: Secondary detection (SD) status - bit_offset: 2 - bit_size: 1 - - name: PS2DET - description: DM pull-up detection status - bit_offset: 3 - bit_size: 1 - - name: PWRDWN - description: Power down - bit_offset: 16 - bit_size: 1 - - name: BCDEN - description: Battery charging detector (BCD) enable - bit_offset: 17 - bit_size: 1 - - name: DCDEN - description: Data contact detection (DCD) mode enable - bit_offset: 18 - bit_size: 1 - - name: PDEN - description: Primary detection (PD) mode enable - bit_offset: 19 - bit_size: 1 - - name: SDEN - description: Secondary detection (SD) mode enable - bit_offset: 20 - bit_size: 1 - - name: VBDEN - description: USB VBUS detection enable - bit_offset: 21 - bit_size: 1 - - name: PHYHSEN - description: Internal high-speed PHY enable. - bit_offset: 23 - bit_size: 1 + - name: DCDET + description: Data contact detection (DCD) status + bit_offset: 0 + bit_size: 1 + - name: PDET + description: Primary detection (PD) status + bit_offset: 1 + bit_size: 1 + - name: SDET + description: Secondary detection (SD) status + bit_offset: 2 + bit_size: 1 + - name: PS2DET + description: DM pull-up detection status + bit_offset: 3 + bit_size: 1 + - name: PWRDWN + description: Power down + bit_offset: 16 + bit_size: 1 + - name: BCDEN + description: Battery charging detector (BCD) enable + bit_offset: 17 + bit_size: 1 + - name: DCDEN + description: Data contact detection (DCD) mode enable + bit_offset: 18 + bit_size: 1 + - name: PDEN + description: Primary detection (PD) mode enable + bit_offset: 19 + bit_size: 1 + - name: SDEN + description: Secondary detection (SD) mode enable + bit_offset: 20 + bit_size: 1 + - name: VBDEN + description: USB VBUS detection enable + bit_offset: 21 + bit_size: 1 + - name: PHYHSEN + description: Internal high-speed PHY enable. + bit_offset: 23 + bit_size: 1 fieldset/GI2CCTL: description: I2C access register fields: - - name: RWDATA - description: I2C Read/Write Data - bit_offset: 0 - bit_size: 8 - - name: REGADDR - description: I2C Register Address - bit_offset: 8 - bit_size: 8 - - name: ADDR - description: I2C Address - bit_offset: 16 - bit_size: 7 - - name: I2CEN - description: I2C Enable - bit_offset: 23 - bit_size: 1 - - name: ACK - description: I2C ACK - bit_offset: 24 - bit_size: 1 - - name: I2CDEVADR - description: I2C Device Address - bit_offset: 26 - bit_size: 2 - - name: I2CDATSE0 - description: I2C DatSe0 USB mode - bit_offset: 28 - bit_size: 1 - - name: RW - description: Read/Write Indicator - bit_offset: 30 - bit_size: 1 - - name: BSYDNE - description: I2C Busy/Done - bit_offset: 31 - bit_size: 1 + - name: RWDATA + description: I2C Read/Write Data + bit_offset: 0 + bit_size: 8 + - name: REGADDR + description: I2C Register Address + bit_offset: 8 + bit_size: 8 + - name: ADDR + description: I2C Address + bit_offset: 16 + bit_size: 7 + - name: I2CEN + description: I2C Enable + bit_offset: 23 + bit_size: 1 + - name: ACK + description: I2C ACK + bit_offset: 24 + bit_size: 1 + - name: I2CDEVADR + description: I2C Device Address + bit_offset: 26 + bit_size: 2 + - name: I2CDATSE0 + description: I2C DatSe0 USB mode + bit_offset: 28 + bit_size: 1 + - name: RW + description: Read/Write Indicator + bit_offset: 30 + bit_size: 1 + - name: BSYDNE + description: I2C Busy/Done + bit_offset: 31 + bit_size: 1 fieldset/GINTMSK: description: Interrupt mask register fields: - - name: MMISM - description: Mode mismatch interrupt mask - bit_offset: 1 - bit_size: 1 - - name: OTGINT - description: OTG interrupt mask - bit_offset: 2 - bit_size: 1 - - name: SOFM - description: Start of frame mask - bit_offset: 3 - bit_size: 1 - - name: RXFLVLM - description: Receive FIFO non-empty mask - bit_offset: 4 - bit_size: 1 - - name: NPTXFEM - description: Non-periodic TxFIFO empty mask - bit_offset: 5 - bit_size: 1 - - name: GINAKEFFM - description: Global non-periodic IN NAK effective mask - bit_offset: 6 - bit_size: 1 - - name: GONAKEFFM - description: Global OUT NAK effective mask - bit_offset: 7 - bit_size: 1 - - name: ESUSPM - description: Early suspend mask - bit_offset: 10 - bit_size: 1 - - name: USBSUSPM - description: USB suspend mask - bit_offset: 11 - bit_size: 1 - - name: USBRST - description: USB reset mask - bit_offset: 12 - bit_size: 1 - - name: ENUMDNEM - description: Enumeration done mask - bit_offset: 13 - bit_size: 1 - - name: ISOODRPM - description: Isochronous OUT packet dropped interrupt mask - bit_offset: 14 - bit_size: 1 - - name: EOPFM - description: End of periodic frame interrupt mask - bit_offset: 15 - bit_size: 1 - - name: EPMISM - description: Endpoint mismatch interrupt mask - bit_offset: 17 - bit_size: 1 - - name: IEPINT - description: IN endpoints interrupt mask - bit_offset: 18 - bit_size: 1 - - name: OEPINT - description: OUT endpoints interrupt mask - bit_offset: 19 - bit_size: 1 - - name: IISOIXFRM - description: Incomplete isochronous IN transfer mask - bit_offset: 20 - bit_size: 1 - - name: IPXFRM_IISOOXFRM - description: Incomplete periodic transfer mask (host mode) / Incomplete isochronous OUT transfer mask (device mode) - bit_offset: 21 - bit_size: 1 - - name: FSUSPM - description: Data fetch suspended mask - bit_offset: 22 - bit_size: 1 - - name: RSTDE - description: Reset detected interrupt mask - bit_offset: 23 - bit_size: 1 - - name: PRTIM - description: Host port interrupt mask - bit_offset: 24 - bit_size: 1 - - name: HCIM - description: Host channels interrupt mask - bit_offset: 25 - bit_size: 1 - - name: PTXFEM - description: Periodic TxFIFO empty mask - bit_offset: 26 - bit_size: 1 - - name: LPMINTM - description: LPM interrupt mask - bit_offset: 27 - bit_size: 1 - - name: CIDSCHGM - description: Connector ID status change mask - bit_offset: 28 - bit_size: 1 - - name: DISCINT - description: Disconnect detected interrupt mask - bit_offset: 29 - bit_size: 1 - - name: SRQIM - description: Session request/new session detected interrupt mask - bit_offset: 30 - bit_size: 1 - - name: WUIM - description: Resume/remote wakeup detected interrupt mask - bit_offset: 31 - bit_size: 1 + - name: MMISM + description: Mode mismatch interrupt mask + bit_offset: 1 + bit_size: 1 + - name: OTGINT + description: OTG interrupt mask + bit_offset: 2 + bit_size: 1 + - name: SOFM + description: Start of frame mask + bit_offset: 3 + bit_size: 1 + - name: RXFLVLM + description: Receive FIFO non-empty mask + bit_offset: 4 + bit_size: 1 + - name: NPTXFEM + description: Non-periodic TxFIFO empty mask + bit_offset: 5 + bit_size: 1 + - name: GINAKEFFM + description: Global non-periodic IN NAK effective mask + bit_offset: 6 + bit_size: 1 + - name: GONAKEFFM + description: Global OUT NAK effective mask + bit_offset: 7 + bit_size: 1 + - name: ESUSPM + description: Early suspend mask + bit_offset: 10 + bit_size: 1 + - name: USBSUSPM + description: USB suspend mask + bit_offset: 11 + bit_size: 1 + - name: USBRST + description: USB reset mask + bit_offset: 12 + bit_size: 1 + - name: ENUMDNEM + description: Enumeration done mask + bit_offset: 13 + bit_size: 1 + - name: ISOODRPM + description: Isochronous OUT packet dropped interrupt mask + bit_offset: 14 + bit_size: 1 + - name: EOPFM + description: End of periodic frame interrupt mask + bit_offset: 15 + bit_size: 1 + - name: EPMISM + description: Endpoint mismatch interrupt mask + bit_offset: 17 + bit_size: 1 + - name: IEPINT + description: IN endpoints interrupt mask + bit_offset: 18 + bit_size: 1 + - name: OEPINT + description: OUT endpoints interrupt mask + bit_offset: 19 + bit_size: 1 + - name: IISOIXFRM + description: Incomplete isochronous IN transfer mask + bit_offset: 20 + bit_size: 1 + - name: IPXFRM_IISOOXFRM + description: Incomplete periodic transfer mask (host mode) / Incomplete isochronous OUT transfer mask (device mode) + bit_offset: 21 + bit_size: 1 + - name: FSUSPM + description: Data fetch suspended mask + bit_offset: 22 + bit_size: 1 + - name: RSTDE + description: Reset detected interrupt mask + bit_offset: 23 + bit_size: 1 + - name: PRTIM + description: Host port interrupt mask + bit_offset: 24 + bit_size: 1 + - name: HCIM + description: Host channels interrupt mask + bit_offset: 25 + bit_size: 1 + - name: PTXFEM + description: Periodic TxFIFO empty mask + bit_offset: 26 + bit_size: 1 + - name: LPMINTM + description: LPM interrupt mask + bit_offset: 27 + bit_size: 1 + - name: CIDSCHGM + description: Connector ID status change mask + bit_offset: 28 + bit_size: 1 + - name: DISCINT + description: Disconnect detected interrupt mask + bit_offset: 29 + bit_size: 1 + - name: SRQIM + description: Session request/new session detected interrupt mask + bit_offset: 30 + bit_size: 1 + - name: WUIM + description: Resume/remote wakeup detected interrupt mask + bit_offset: 31 + bit_size: 1 fieldset/GINTSTS: description: Core interrupt register fields: - - name: CMOD - description: Current mode of operation - bit_offset: 0 - bit_size: 1 - - name: MMIS - description: Mode mismatch interrupt - bit_offset: 1 - bit_size: 1 - - name: OTGINT - description: OTG interrupt - bit_offset: 2 - bit_size: 1 - - name: SOF - description: Start of frame - bit_offset: 3 - bit_size: 1 - - name: RXFLVL - description: RxFIFO non-empty - bit_offset: 4 - bit_size: 1 - - name: NPTXFE - description: Non-periodic TxFIFO empty - bit_offset: 5 - bit_size: 1 - - name: GINAKEFF - description: Global IN non-periodic NAK effective - bit_offset: 6 - bit_size: 1 - - name: GOUTNAKEFF - description: Global OUT NAK effective - bit_offset: 7 - bit_size: 1 - - name: ESUSP - description: Early suspend - bit_offset: 10 - bit_size: 1 - - name: USBSUSP - description: USB suspend - bit_offset: 11 - bit_size: 1 - - name: USBRST - description: USB reset - bit_offset: 12 - bit_size: 1 - - name: ENUMDNE - description: Enumeration done - bit_offset: 13 - bit_size: 1 - - name: ISOODRP - description: Isochronous OUT packet dropped interrupt - bit_offset: 14 - bit_size: 1 - - name: EOPF - description: End of periodic frame interrupt - bit_offset: 15 - bit_size: 1 - - name: IEPINT - description: IN endpoint interrupt - bit_offset: 18 - bit_size: 1 - - name: OEPINT - description: OUT endpoint interrupt - bit_offset: 19 - bit_size: 1 - - name: IISOIXFR - description: Incomplete isochronous IN transfer - bit_offset: 20 - bit_size: 1 - - name: IPXFR_INCOMPISOOUT - description: Incomplete periodic transfer (host mode) / Incomplete isochronous OUT transfer (device mode) - bit_offset: 21 - bit_size: 1 - - name: DATAFSUSP - description: Data fetch suspended - bit_offset: 22 - bit_size: 1 - - name: HPRTINT - description: Host port interrupt - bit_offset: 24 - bit_size: 1 - - name: HCINT - description: Host channels interrupt - bit_offset: 25 - bit_size: 1 - - name: PTXFE - description: Periodic TxFIFO empty - bit_offset: 26 - bit_size: 1 - - name: CIDSCHG - description: Connector ID status change - bit_offset: 28 - bit_size: 1 - - name: DISCINT - description: Disconnect detected interrupt - bit_offset: 29 - bit_size: 1 - - name: SRQINT - description: Session request/new session detected interrupt - bit_offset: 30 - bit_size: 1 - - name: WKUPINT - description: Resume/remote wakeup detected interrupt - bit_offset: 31 - bit_size: 1 + - name: CMOD + description: Current mode of operation + bit_offset: 0 + bit_size: 1 + - name: MMIS + description: Mode mismatch interrupt + bit_offset: 1 + bit_size: 1 + - name: OTGINT + description: OTG interrupt + bit_offset: 2 + bit_size: 1 + - name: SOF + description: Start of frame + bit_offset: 3 + bit_size: 1 + - name: RXFLVL + description: RxFIFO non-empty + bit_offset: 4 + bit_size: 1 + - name: NPTXFE + description: Non-periodic TxFIFO empty + bit_offset: 5 + bit_size: 1 + - name: GINAKEFF + description: Global IN non-periodic NAK effective + bit_offset: 6 + bit_size: 1 + - name: GOUTNAKEFF + description: Global OUT NAK effective + bit_offset: 7 + bit_size: 1 + - name: ESUSP + description: Early suspend + bit_offset: 10 + bit_size: 1 + - name: USBSUSP + description: USB suspend + bit_offset: 11 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 12 + bit_size: 1 + - name: ENUMDNE + description: Enumeration done + bit_offset: 13 + bit_size: 1 + - name: ISOODRP + description: Isochronous OUT packet dropped interrupt + bit_offset: 14 + bit_size: 1 + - name: EOPF + description: End of periodic frame interrupt + bit_offset: 15 + bit_size: 1 + - name: IEPINT + description: IN endpoint interrupt + bit_offset: 18 + bit_size: 1 + - name: OEPINT + description: OUT endpoint interrupt + bit_offset: 19 + bit_size: 1 + - name: IISOIXFR + description: Incomplete isochronous IN transfer + bit_offset: 20 + bit_size: 1 + - name: IPXFR_INCOMPISOOUT + description: Incomplete periodic transfer (host mode) / Incomplete isochronous OUT transfer (device mode) + bit_offset: 21 + bit_size: 1 + - name: DATAFSUSP + description: Data fetch suspended + bit_offset: 22 + bit_size: 1 + - name: HPRTINT + description: Host port interrupt + bit_offset: 24 + bit_size: 1 + - name: HCINT + description: Host channels interrupt + bit_offset: 25 + bit_size: 1 + - name: PTXFE + description: Periodic TxFIFO empty + bit_offset: 26 + bit_size: 1 + - name: CIDSCHG + description: Connector ID status change + bit_offset: 28 + bit_size: 1 + - name: DISCINT + description: Disconnect detected interrupt + bit_offset: 29 + bit_size: 1 + - name: SRQINT + description: Session request/new session detected interrupt + bit_offset: 30 + bit_size: 1 + - name: WKUPINT + description: Resume/remote wakeup detected interrupt + bit_offset: 31 + bit_size: 1 fieldset/GLPMCFG: description: Core LPM configuration register fields: - - name: LPMEN - description: LPM support enable - bit_offset: 0 - bit_size: 1 - - name: LPMACK - description: LPM token acknowledge enable - bit_offset: 1 - bit_size: 1 - - name: BESL - description: Best effort service latency - bit_offset: 2 - bit_size: 4 - - name: REMWAKE - description: bRemoteWake value - bit_offset: 6 - bit_size: 1 - - name: L1SSEN - description: L1 Shallow Sleep enable - bit_offset: 7 - bit_size: 1 - - name: BESLTHRS - description: BESL threshold - bit_offset: 8 - bit_size: 4 - - name: L1DSEN - description: L1 deep sleep enable - bit_offset: 12 - bit_size: 1 - - name: LPMRST - description: LPM response - bit_offset: 13 - bit_size: 2 - - name: SLPSTS - description: Port sleep status - bit_offset: 15 - bit_size: 1 - - name: L1RSMOK - description: Sleep State Resume OK - bit_offset: 16 - bit_size: 1 - - name: LPMCHIDX - description: LPM Channel Index - bit_offset: 17 - bit_size: 4 - - name: LPMRCNT - description: LPM retry count - bit_offset: 21 - bit_size: 3 - - name: SNDLPM - description: Send LPM transaction - bit_offset: 24 - bit_size: 1 - - name: LPMRCNTSTS - description: LPM retry count status - bit_offset: 25 - bit_size: 3 - - name: ENBESL - description: Enable best effort service latency - bit_offset: 28 - bit_size: 1 + - name: LPMEN + description: LPM support enable + bit_offset: 0 + bit_size: 1 + - name: LPMACK + description: LPM token acknowledge enable + bit_offset: 1 + bit_size: 1 + - name: BESL + description: Best effort service latency + bit_offset: 2 + bit_size: 4 + - name: REMWAKE + description: bRemoteWake value + bit_offset: 6 + bit_size: 1 + - name: L1SSEN + description: L1 Shallow Sleep enable + bit_offset: 7 + bit_size: 1 + - name: BESLTHRS + description: BESL threshold + bit_offset: 8 + bit_size: 4 + - name: L1DSEN + description: L1 deep sleep enable + bit_offset: 12 + bit_size: 1 + - name: LPMRST + description: LPM response + bit_offset: 13 + bit_size: 2 + - name: SLPSTS + description: Port sleep status + bit_offset: 15 + bit_size: 1 + - name: L1RSMOK + description: Sleep State Resume OK + bit_offset: 16 + bit_size: 1 + - name: LPMCHIDX + description: LPM Channel Index + bit_offset: 17 + bit_size: 4 + - name: LPMRCNT + description: LPM retry count + bit_offset: 21 + bit_size: 3 + - name: SNDLPM + description: Send LPM transaction + bit_offset: 24 + bit_size: 1 + - name: LPMRCNTSTS + description: LPM retry count status + bit_offset: 25 + bit_size: 3 + - name: ENBESL + description: Enable best effort service latency + bit_offset: 28 + bit_size: 1 fieldset/GNPTXSTS: description: Non-periodic transmit FIFO/queue status register fields: - - name: NPTXFSAV - description: Non-periodic TxFIFO space available - bit_offset: 0 - bit_size: 16 - - name: NPTQXSAV - description: Non-periodic transmit request queue space available - bit_offset: 16 - bit_size: 8 - - name: NPTXQTOP - description: Top of the non-periodic transmit request queue - bit_offset: 24 - bit_size: 7 + - name: NPTXFSAV + description: Non-periodic TxFIFO space available + bit_offset: 0 + bit_size: 16 + - name: NPTQXSAV + description: Non-periodic transmit request queue space available + bit_offset: 16 + bit_size: 8 + - name: NPTXQTOP + description: Top of the non-periodic transmit request queue + bit_offset: 24 + bit_size: 7 fieldset/GOTGCTL: description: Control and status register fields: - - name: SRQSCS - description: Session request success - bit_offset: 0 - bit_size: 1 - - name: SRQ - description: Session request - bit_offset: 1 - bit_size: 1 - - name: VBVALOEN - description: VBUS valid override enable - bit_offset: 2 - bit_size: 1 - - name: VBVALOVAL - description: VBUS valid override value - bit_offset: 3 - bit_size: 1 - - name: AVALOEN - description: A-peripheral session valid override enable - bit_offset: 4 - bit_size: 1 - - name: AVALOVAL - description: A-peripheral session valid override value - bit_offset: 5 - bit_size: 1 - - name: BVALOEN - description: B-peripheral session valid override enable - bit_offset: 6 - bit_size: 1 - - name: BVALOVAL - description: B-peripheral session valid override value - bit_offset: 7 - bit_size: 1 - - name: HNGSCS - description: Host negotiation success - bit_offset: 8 - bit_size: 1 - - name: HNPRQ - description: HNP request - bit_offset: 9 - bit_size: 1 - - name: HSHNPEN - description: Host set HNP enable - bit_offset: 10 - bit_size: 1 - - name: DHNPEN - description: Device HNP enabled - bit_offset: 11 - bit_size: 1 - - name: EHEN - description: Embedded host enable - bit_offset: 12 - bit_size: 1 - - name: CIDSTS - description: Connector ID status - bit_offset: 16 - bit_size: 1 - - name: DBCT - description: Long/short debounce time - bit_offset: 17 - bit_size: 1 - - name: ASVLD - description: A-session valid - bit_offset: 18 - bit_size: 1 - - name: BSVLD - description: B-session valid - bit_offset: 19 - bit_size: 1 + - name: SRQSCS + description: Session request success + bit_offset: 0 + bit_size: 1 + - name: SRQ + description: Session request + bit_offset: 1 + bit_size: 1 + - name: VBVALOEN + description: VBUS valid override enable + bit_offset: 2 + bit_size: 1 + - name: VBVALOVAL + description: VBUS valid override value + bit_offset: 3 + bit_size: 1 + - name: AVALOEN + description: A-peripheral session valid override enable + bit_offset: 4 + bit_size: 1 + - name: AVALOVAL + description: A-peripheral session valid override value + bit_offset: 5 + bit_size: 1 + - name: BVALOEN + description: B-peripheral session valid override enable + bit_offset: 6 + bit_size: 1 + - name: BVALOVAL + description: B-peripheral session valid override value + bit_offset: 7 + bit_size: 1 + - name: HNGSCS + description: Host negotiation success + bit_offset: 8 + bit_size: 1 + - name: HNPRQ + description: HNP request + bit_offset: 9 + bit_size: 1 + - name: HSHNPEN + description: Host set HNP enable + bit_offset: 10 + bit_size: 1 + - name: DHNPEN + description: Device HNP enabled + bit_offset: 11 + bit_size: 1 + - name: EHEN + description: Embedded host enable + bit_offset: 12 + bit_size: 1 + - name: CIDSTS + description: Connector ID status + bit_offset: 16 + bit_size: 1 + - name: DBCT + description: Long/short debounce time + bit_offset: 17 + bit_size: 1 + - name: ASVLD + description: A-session valid + bit_offset: 18 + bit_size: 1 + - name: BSVLD + description: B-session valid + bit_offset: 19 + bit_size: 1 fieldset/GOTGINT: description: Interrupt register fields: - - name: SEDET - description: Session end detected - bit_offset: 2 - bit_size: 1 - - name: SRSSCHG - description: Session request success status change - bit_offset: 8 - bit_size: 1 - - name: HNSSCHG - description: Host negotiation success status change - bit_offset: 9 - bit_size: 1 - - name: HNGDET - description: Host negotiation detected - bit_offset: 17 - bit_size: 1 - - name: ADTOCHG - description: A-device timeout change - bit_offset: 18 - bit_size: 1 - - name: DBCDNE - description: Debounce done - bit_offset: 19 - bit_size: 1 - - name: IDCHNG - description: ID input pin changed - bit_offset: 20 - bit_size: 1 + - name: SEDET + description: Session end detected + bit_offset: 2 + bit_size: 1 + - name: SRSSCHG + description: Session request success status change + bit_offset: 8 + bit_size: 1 + - name: HNSSCHG + description: Host negotiation success status change + bit_offset: 9 + bit_size: 1 + - name: HNGDET + description: Host negotiation detected + bit_offset: 17 + bit_size: 1 + - name: ADTOCHG + description: A-device timeout change + bit_offset: 18 + bit_size: 1 + - name: DBCDNE + description: Debounce done + bit_offset: 19 + bit_size: 1 + - name: IDCHNG + description: ID input pin changed + bit_offset: 20 + bit_size: 1 fieldset/GRSTCTL: description: Reset register fields: - - name: CSRST - description: Core soft reset - bit_offset: 0 - bit_size: 1 - - name: HSRST - description: HCLK soft reset - bit_offset: 1 - bit_size: 1 - - name: FCRST - description: Host frame counter reset - bit_offset: 2 - bit_size: 1 - - name: RXFFLSH - description: RxFIFO flush - bit_offset: 4 - bit_size: 1 - - name: TXFFLSH - description: TxFIFO flush - bit_offset: 5 - bit_size: 1 - - name: TXFNUM - description: TxFIFO number - bit_offset: 6 - bit_size: 5 - - name: DMAREQ - description: DMA request signal enabled for USB OTG HS - bit_offset: 30 - bit_size: 1 - - name: AHBIDL - description: AHB master idle - bit_offset: 31 - bit_size: 1 + - name: CSRST + description: Core soft reset + bit_offset: 0 + bit_size: 1 + - name: HSRST + description: HCLK soft reset + bit_offset: 1 + bit_size: 1 + - name: FCRST + description: Host frame counter reset + bit_offset: 2 + bit_size: 1 + - name: RXFFLSH + description: RxFIFO flush + bit_offset: 4 + bit_size: 1 + - name: TXFFLSH + description: TxFIFO flush + bit_offset: 5 + bit_size: 1 + - name: TXFNUM + description: TxFIFO number + bit_offset: 6 + bit_size: 5 + - name: DMAREQ + description: DMA request signal enabled for USB OTG HS + bit_offset: 30 + bit_size: 1 + - name: AHBIDL + description: AHB master idle + bit_offset: 31 + bit_size: 1 fieldset/GRXFSIZ: description: Receive FIFO size register fields: - - name: RXFD - description: RxFIFO depth - bit_offset: 0 - bit_size: 16 + - name: RXFD + description: RxFIFO depth + bit_offset: 0 + bit_size: 16 fieldset/GRXSTS: description: Status read and pop register fields: - - name: EPNUM - description: Endpoint number (device mode) / Channel number (host mode) - bit_offset: 0 - bit_size: 4 - - name: BCNT - description: Byte count - bit_offset: 4 - bit_size: 11 - - name: DPID - description: Data PID - bit_offset: 15 - bit_size: 2 - enum: DPID - - name: PKTSTSD - description: Packet status (device mode) - bit_offset: 17 - bit_size: 4 - enum: PKTSTSD - - name: PKTSTSH - description: Packet status (host mode) - bit_offset: 17 - bit_size: 4 - enum: PKTSTSH - - name: FRMNUM - description: Frame number (device mode) - bit_offset: 21 - bit_size: 4 + - name: EPNUM + description: Endpoint number (device mode) / Channel number (host mode) + bit_offset: 0 + bit_size: 4 + - name: BCNT + description: Byte count + bit_offset: 4 + bit_size: 11 + - name: DPID + description: Data PID + bit_offset: 15 + bit_size: 2 + enum: DPID + - name: PKTSTSD + description: Packet status (device mode) + bit_offset: 17 + bit_size: 4 + enum: PKTSTSD + - name: PKTSTSH + description: Packet status (host mode) + bit_offset: 17 + bit_size: 4 + enum: PKTSTSH + - name: FRMNUM + description: Frame number (device mode) + bit_offset: 21 + bit_size: 4 fieldset/GUSBCFG: description: USB configuration register fields: - - name: TOCAL - description: FS timeout calibration - bit_offset: 0 - bit_size: 3 - - name: PHYSEL - description: Full-speed internal serial transceiver enable - bit_offset: 6 - bit_size: 1 - - name: SRPCAP - description: SRP-capable - bit_offset: 8 - bit_size: 1 - - name: HNPCAP - description: HNP-capable - bit_offset: 9 - bit_size: 1 - - name: TRDT - description: USB turnaround time - bit_offset: 10 - bit_size: 4 - - name: PHYLPCS - description: PHY Low-power clock select - bit_offset: 15 - bit_size: 1 - - name: ULPIFSLS - description: ULPI FS/LS select - bit_offset: 17 - bit_size: 1 - - name: ULPIAR - description: ULPI Auto-resume - bit_offset: 18 - bit_size: 1 - - name: ULPICSM - description: ULPI Clock SuspendM - bit_offset: 19 - bit_size: 1 - - name: ULPIEVBUSD - description: ULPI External VBUS Drive - bit_offset: 20 - bit_size: 1 - - name: ULPIEVBUSI - description: ULPI external VBUS indicator - bit_offset: 21 - bit_size: 1 - - name: TSDPS - description: TermSel DLine pulsing selection - bit_offset: 22 - bit_size: 1 - - name: PCCI - description: Indicator complement - bit_offset: 23 - bit_size: 1 - - name: PTCI - description: Indicator pass through - bit_offset: 24 - bit_size: 1 - - name: ULPIIPD - description: ULPI interface protect disable - bit_offset: 25 - bit_size: 1 - - name: FHMOD - description: Force host mode - bit_offset: 29 - bit_size: 1 - - name: FDMOD - description: Force device mode - bit_offset: 30 - bit_size: 1 - - name: CTXPKT - description: Corrupt Tx packet - bit_offset: 31 - bit_size: 1 + - name: TOCAL + description: FS timeout calibration + bit_offset: 0 + bit_size: 3 + - name: PHYSEL + description: Full-speed internal serial transceiver enable + bit_offset: 6 + bit_size: 1 + - name: SRPCAP + description: SRP-capable + bit_offset: 8 + bit_size: 1 + - name: HNPCAP + description: HNP-capable + bit_offset: 9 + bit_size: 1 + - name: TRDT + description: USB turnaround time + bit_offset: 10 + bit_size: 4 + - name: PHYLPCS + description: PHY Low-power clock select + bit_offset: 15 + bit_size: 1 + - name: ULPIFSLS + description: ULPI FS/LS select + bit_offset: 17 + bit_size: 1 + - name: ULPIAR + description: ULPI Auto-resume + bit_offset: 18 + bit_size: 1 + - name: ULPICSM + description: ULPI Clock SuspendM + bit_offset: 19 + bit_size: 1 + - name: ULPIEVBUSD + description: ULPI External VBUS Drive + bit_offset: 20 + bit_size: 1 + - name: ULPIEVBUSI + description: ULPI external VBUS indicator + bit_offset: 21 + bit_size: 1 + - name: TSDPS + description: TermSel DLine pulsing selection + bit_offset: 22 + bit_size: 1 + - name: PCCI + description: Indicator complement + bit_offset: 23 + bit_size: 1 + - name: PTCI + description: Indicator pass through + bit_offset: 24 + bit_size: 1 + - name: ULPIIPD + description: ULPI interface protect disable + bit_offset: 25 + bit_size: 1 + - name: FHMOD + description: Force host mode + bit_offset: 29 + bit_size: 1 + - name: FDMOD + description: Force device mode + bit_offset: 30 + bit_size: 1 + - name: CTXPKT + description: Corrupt Tx packet + bit_offset: 31 + bit_size: 1 fieldset/HAINT: description: Host all channels interrupt register fields: - - name: HAINT - description: Channel interrupts - bit_offset: 0 - bit_size: 16 + - name: HAINT + description: Channel interrupts + bit_offset: 0 + bit_size: 16 fieldset/HAINTMSK: description: Host all channels interrupt mask register fields: - - name: HAINTM - description: Channel interrupt mask - bit_offset: 0 - bit_size: 16 + - name: HAINTM + description: Channel interrupt mask + bit_offset: 0 + bit_size: 16 fieldset/HCCHAR: description: Host channel characteristics register fields: - - name: MPSIZ - description: Maximum packet size - bit_offset: 0 - bit_size: 11 - - name: EPNUM - description: Endpoint number - bit_offset: 11 - bit_size: 4 - - name: EPDIR - description: Endpoint direction - bit_offset: 15 - bit_size: 1 - - name: LSDEV - description: Low-speed device - bit_offset: 17 - bit_size: 1 - - name: EPTYP - description: Endpoint type - bit_offset: 18 - bit_size: 2 - enum: EPTYP - - name: MCNT - description: Multicount - bit_offset: 20 - bit_size: 2 - - name: DAD - description: Device address - bit_offset: 22 - bit_size: 7 - - name: ODDFRM - description: Odd frame - bit_offset: 29 - bit_size: 1 - - name: CHDIS - description: Channel disable - bit_offset: 30 - bit_size: 1 - - name: CHENA - description: Channel enable - bit_offset: 31 - bit_size: 1 + - name: MPSIZ + description: Maximum packet size + bit_offset: 0 + bit_size: 11 + - name: EPNUM + description: Endpoint number + bit_offset: 11 + bit_size: 4 + - name: EPDIR + description: Endpoint direction + bit_offset: 15 + bit_size: 1 + - name: LSDEV + description: Low-speed device + bit_offset: 17 + bit_size: 1 + - name: EPTYP + description: Endpoint type + bit_offset: 18 + bit_size: 2 + enum: EPTYP + - name: MCNT + description: Multicount + bit_offset: 20 + bit_size: 2 + - name: DAD + description: Device address + bit_offset: 22 + bit_size: 7 + - name: ODDFRM + description: Odd frame + bit_offset: 29 + bit_size: 1 + - name: CHDIS + description: Channel disable + bit_offset: 30 + bit_size: 1 + - name: CHENA + description: Channel enable + bit_offset: 31 + bit_size: 1 fieldset/HCFG: description: Host configuration register fields: - - name: FSLSPCS - description: FS/LS PHY clock select - bit_offset: 0 - bit_size: 2 - - name: FSLSS - description: FS- and LS-only support - bit_offset: 2 - bit_size: 1 + - name: FSLSPCS + description: FS/LS PHY clock select + bit_offset: 0 + bit_size: 2 + - name: FSLSS + description: FS- and LS-only support + bit_offset: 2 + bit_size: 1 fieldset/HCINT: description: Host channel interrupt register fields: - - name: XFRC - description: Transfer completed - bit_offset: 0 - bit_size: 1 - - name: CHH - description: Channel halted - bit_offset: 1 - bit_size: 1 - - name: STALL - description: STALL response received interrupt - bit_offset: 3 - bit_size: 1 - - name: NAK - description: NAK response received interrupt - bit_offset: 4 - bit_size: 1 - - name: ACK - description: ACK response received/transmitted interrupt - bit_offset: 5 - bit_size: 1 - - name: TXERR - description: Transaction error - bit_offset: 7 - bit_size: 1 - - name: BBERR - description: Babble error - bit_offset: 8 - bit_size: 1 - - name: FRMOR - description: Frame overrun - bit_offset: 9 - bit_size: 1 - - name: DTERR - description: Data toggle error - bit_offset: 10 - bit_size: 1 + - name: XFRC + description: Transfer completed + bit_offset: 0 + bit_size: 1 + - name: CHH + description: Channel halted + bit_offset: 1 + bit_size: 1 + - name: STALL + description: STALL response received interrupt + bit_offset: 3 + bit_size: 1 + - name: NAK + description: NAK response received interrupt + bit_offset: 4 + bit_size: 1 + - name: ACK + description: ACK response received/transmitted interrupt + bit_offset: 5 + bit_size: 1 + - name: TXERR + description: Transaction error + bit_offset: 7 + bit_size: 1 + - name: BBERR + description: Babble error + bit_offset: 8 + bit_size: 1 + - name: FRMOR + description: Frame overrun + bit_offset: 9 + bit_size: 1 + - name: DTERR + description: Data toggle error + bit_offset: 10 + bit_size: 1 fieldset/HCINTMSK: description: Host channel mask register fields: - - name: XFRCM - description: Transfer completed mask - bit_offset: 0 - bit_size: 1 - - name: CHHM - description: Channel halted mask - bit_offset: 1 - bit_size: 1 - - name: STALLM - description: STALL response received interrupt mask - bit_offset: 3 - bit_size: 1 - - name: NAKM - description: NAK response received interrupt mask - bit_offset: 4 - bit_size: 1 - - name: ACKM - description: ACK response received/transmitted interrupt mask - bit_offset: 5 - bit_size: 1 - - name: NYET - description: Response received interrupt mask - bit_offset: 6 - bit_size: 1 - - name: TXERRM - description: Transaction error mask - bit_offset: 7 - bit_size: 1 - - name: BBERRM - description: Babble error mask - bit_offset: 8 - bit_size: 1 - - name: FRMORM - description: Frame overrun mask - bit_offset: 9 - bit_size: 1 - - name: DTERRM - description: Data toggle error mask - bit_offset: 10 - bit_size: 1 + - name: XFRCM + description: Transfer completed mask + bit_offset: 0 + bit_size: 1 + - name: CHHM + description: Channel halted mask + bit_offset: 1 + bit_size: 1 + - name: STALLM + description: STALL response received interrupt mask + bit_offset: 3 + bit_size: 1 + - name: NAKM + description: NAK response received interrupt mask + bit_offset: 4 + bit_size: 1 + - name: ACKM + description: ACK response received/transmitted interrupt mask + bit_offset: 5 + bit_size: 1 + - name: NYET + description: Response received interrupt mask + bit_offset: 6 + bit_size: 1 + - name: TXERRM + description: Transaction error mask + bit_offset: 7 + bit_size: 1 + - name: BBERRM + description: Babble error mask + bit_offset: 8 + bit_size: 1 + - name: FRMORM + description: Frame overrun mask + bit_offset: 9 + bit_size: 1 + - name: DTERRM + description: Data toggle error mask + bit_offset: 10 + bit_size: 1 fieldset/HCTSIZ: description: Host channel transfer size register fields: - - name: XFRSIZ - description: Transfer size - bit_offset: 0 - bit_size: 19 - - name: PKTCNT - description: Packet count - bit_offset: 19 - bit_size: 10 - - name: DPID - description: Data PID - bit_offset: 29 - bit_size: 2 + - name: XFRSIZ + description: Transfer size + bit_offset: 0 + bit_size: 19 + - name: PKTCNT + description: Packet count + bit_offset: 19 + bit_size: 10 + - name: DPID + description: Data PID + bit_offset: 29 + bit_size: 2 fieldset/HFIR: description: Host frame interval register fields: - - name: FRIVL - description: Frame interval - bit_offset: 0 - bit_size: 16 + - name: FRIVL + description: Frame interval + bit_offset: 0 + bit_size: 16 fieldset/HFNUM: description: Host frame number/frame time remaining register fields: - - name: FRNUM - description: Frame number - bit_offset: 0 - bit_size: 16 - - name: FTREM - description: Frame time remaining - bit_offset: 16 - bit_size: 16 + - name: FRNUM + description: Frame number + bit_offset: 0 + bit_size: 16 + - name: FTREM + description: Frame time remaining + bit_offset: 16 + bit_size: 16 fieldset/HNPTXSTS: description: Non-periodic transmit FIFO/queue status register fields: - - name: NPTXFSAV - description: Non-periodic TxFIFO space available - bit_offset: 0 - bit_size: 16 - - name: NPTQXSAV - description: Non-periodic transmit request queue space available - bit_offset: 16 - bit_size: 8 - - name: NPTXQTOP - description: Top of the non-periodic transmit request queue - bit_offset: 24 - bit_size: 7 + - name: NPTXFSAV + description: Non-periodic TxFIFO space available + bit_offset: 0 + bit_size: 16 + - name: NPTQXSAV + description: Non-periodic transmit request queue space available + bit_offset: 16 + bit_size: 8 + - name: NPTXQTOP + description: Top of the non-periodic transmit request queue + bit_offset: 24 + bit_size: 7 fieldset/HPRT: description: Host port control and status register fields: - - name: PCSTS - description: Port connect status - bit_offset: 0 - bit_size: 1 - - name: PCDET - description: Port connect detected - bit_offset: 1 - bit_size: 1 - - name: PENA - description: Port enable - bit_offset: 2 - bit_size: 1 - - name: PENCHNG - description: Port enable/disable change - bit_offset: 3 - bit_size: 1 - - name: POCA - description: Port overcurrent active - bit_offset: 4 - bit_size: 1 - - name: POCCHNG - description: Port overcurrent change - bit_offset: 5 - bit_size: 1 - - name: PRES - description: Port resume - bit_offset: 6 - bit_size: 1 - - name: PSUSP - description: Port suspend - bit_offset: 7 - bit_size: 1 - - name: PRST - description: Port reset - bit_offset: 8 - bit_size: 1 - - name: PLSTS - description: Port line status - bit_offset: 10 - bit_size: 2 - - name: PPWR - description: Port power - bit_offset: 12 - bit_size: 1 - - name: PTCTL - description: Port test control - bit_offset: 13 - bit_size: 4 - - name: PSPD - description: Port speed - bit_offset: 17 - bit_size: 2 + - name: PCSTS + description: Port connect status + bit_offset: 0 + bit_size: 1 + - name: PCDET + description: Port connect detected + bit_offset: 1 + bit_size: 1 + - name: PENA + description: Port enable + bit_offset: 2 + bit_size: 1 + - name: PENCHNG + description: Port enable/disable change + bit_offset: 3 + bit_size: 1 + - name: POCA + description: Port overcurrent active + bit_offset: 4 + bit_size: 1 + - name: POCCHNG + description: Port overcurrent change + bit_offset: 5 + bit_size: 1 + - name: PRES + description: Port resume + bit_offset: 6 + bit_size: 1 + - name: PSUSP + description: Port suspend + bit_offset: 7 + bit_size: 1 + - name: PRST + description: Port reset + bit_offset: 8 + bit_size: 1 + - name: PLSTS + description: Port line status + bit_offset: 10 + bit_size: 2 + - name: PPWR + description: Port power + bit_offset: 12 + bit_size: 1 + - name: PTCTL + description: Port test control + bit_offset: 13 + bit_size: 4 + - name: PSPD + description: Port speed + bit_offset: 17 + bit_size: 2 fieldset/HPTXSTS: description: Periodic transmit FIFO/queue status register fields: - - name: PTXFSAVL - description: Periodic transmit data FIFO space available - bit_offset: 0 - bit_size: 16 - - name: PTXQSAV - description: Periodic transmit request queue space available - bit_offset: 16 - bit_size: 8 - - name: PTXQTOP - description: Top of the periodic transmit request queue - bit_offset: 24 - bit_size: 8 + - name: PTXFSAVL + description: Periodic transmit data FIFO space available + bit_offset: 0 + bit_size: 16 + - name: PTXQSAV + description: Periodic transmit request queue space available + bit_offset: 16 + bit_size: 8 + - name: PTXQTOP + description: Top of the periodic transmit request queue + bit_offset: 24 + bit_size: 8 fieldset/PCGCCTL: description: Power and clock gating control register fields: - - name: STPPCLK - description: Stop PHY clock - bit_offset: 0 - bit_size: 1 - - name: GATEHCLK - description: Gate HCLK - bit_offset: 1 - bit_size: 1 - - name: PHYSUSP - description: PHY Suspended - bit_offset: 4 - bit_size: 1 + - name: STPPCLK + description: Stop PHY clock + bit_offset: 0 + bit_size: 1 + - name: GATEHCLK + description: Gate HCLK + bit_offset: 1 + bit_size: 1 + - name: PHYSUSP + description: PHY Suspended + bit_offset: 4 + bit_size: 1 enum/DPID: bit_size: 2 variants: - - name: DATA0 - value: 0 - - name: DATA2 - value: 1 - - name: DATA1 - value: 2 - - name: MDATA - value: 3 + - name: DATA0 + value: 0 + - name: DATA2 + value: 1 + - name: DATA1 + value: 2 + - name: MDATA + value: 3 enum/DSPD: bit_size: 2 variants: - - name: HIGH_SPEED - description: High speed - value: 0 - - name: FULL_SPEED_EXTERNAL - description: Full speed using external ULPI PHY - value: 1 - - name: FULL_SPEED_INTERNAL - description: Full speed using internal embedded PHY - value: 3 + - name: HIGH_SPEED + description: High speed + value: 0 + - name: FULL_SPEED_EXTERNAL + description: Full speed using external ULPI PHY + value: 1 + - name: FULL_SPEED_INTERNAL + description: Full speed using internal embedded PHY + value: 3 enum/EPTYP: bit_size: 2 variants: - - name: CONTROL - value: 0 - - name: ISOCHRONOUS - value: 1 - - name: BULK - value: 2 - - name: INTERRUPT - value: 3 + - name: CONTROL + value: 0 + - name: ISOCHRONOUS + value: 1 + - name: BULK + value: 2 + - name: INTERRUPT + value: 3 enum/PFIVL: bit_size: 2 variants: - - name: FRAME_INTERVAL_80 - description: 80% of the frame interval - value: 0 - - name: FRAME_INTERVAL_85 - description: 85% of the frame interval - value: 1 - - name: FRAME_INTERVAL_90 - description: 90% of the frame interval - value: 2 - - name: FRAME_INTERVAL_95 - description: 95% of the frame interval - value: 3 + - name: FRAME_INTERVAL_80 + description: 80% of the frame interval + value: 0 + - name: FRAME_INTERVAL_85 + description: 85% of the frame interval + value: 1 + - name: FRAME_INTERVAL_90 + description: 90% of the frame interval + value: 2 + - name: FRAME_INTERVAL_95 + description: 95% of the frame interval + value: 3 enum/PKTSTSD: bit_size: 4 variants: - - name: OUT_NAK - description: Global OUT NAK (triggers an interrupt) - value: 1 - - name: OUT_DATA_RX - description: OUT data packet received - value: 2 - - name: OUT_DATA_DONE - description: OUT transfer completed (triggers an interrupt) - value: 3 - - name: SETUP_DATA_DONE - description: SETUP transaction completed (triggers an interrupt) - value: 4 - - name: SETUP_DATA_RX - description: SETUP data packet received - value: 6 + - name: OUT_NAK + description: Global OUT NAK (triggers an interrupt) + value: 1 + - name: OUT_DATA_RX + description: OUT data packet received + value: 2 + - name: OUT_DATA_DONE + description: OUT transfer completed (triggers an interrupt) + value: 3 + - name: SETUP_DATA_DONE + description: SETUP transaction completed (triggers an interrupt) + value: 4 + - name: SETUP_DATA_RX + description: SETUP data packet received + value: 6 enum/PKTSTSH: bit_size: 4 variants: - - name: IN_DATA_RX - description: IN data packet received - value: 2 - - name: IN_DATA_DONE - description: IN transfer completed (triggers an interrupt) - value: 3 - - name: DATA_TOGGLE_ERR - description: Data toggle error (triggers an interrupt) - value: 5 - - name: CHANNEL_HALTED - description: Channel halted (triggers an interrupt) - value: 7 + - name: IN_DATA_RX + description: IN data packet received + value: 2 + - name: IN_DATA_DONE + description: IN transfer completed (triggers an interrupt) + value: 3 + - name: DATA_TOGGLE_ERR + description: Data toggle error (triggers an interrupt) + value: 5 + - name: CHANNEL_HALTED + description: Channel halted (triggers an interrupt) + value: 7 diff --git a/data/registers/pwr_c0.yaml b/data/registers/pwr_c0.yaml index eb0628c..0c7c7e1 100644 --- a/data/registers/pwr_c0.yaml +++ b/data/registers/pwr_c0.yaml @@ -1,134 +1,133 @@ ---- block/PWR: description: PWR address block description items: - - name: CR1 - description: PWR control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR3 - description: PWR control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: PWR control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: PWR status register 1 - byte_offset: 16 - fieldset: SR1 - - name: SR2 - description: PWR status register 2 - byte_offset: 20 - fieldset: SR2 - - name: SCR - description: PWR status clear register - byte_offset: 24 - fieldset: SCR - - name: PUCR - description: PWR Port pull-up control register - array: - len: 6 - stride: 8 - byte_offset: 32 - fieldset: PCR - - name: PDCR - description: PWR Port pull-down control register - array: - len: 6 - stride: 8 - byte_offset: 36 - fieldset: PCR + - name: CR1 + description: PWR control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR3 + description: PWR control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: PWR control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: PWR status register 1 + byte_offset: 16 + fieldset: SR1 + - name: SR2 + description: PWR status register 2 + byte_offset: 20 + fieldset: SR2 + - name: SCR + description: PWR status clear register + byte_offset: 24 + fieldset: SCR + - name: PUCR + description: PWR Port pull-up control register + array: + len: 6 + stride: 8 + byte_offset: 32 + fieldset: PCR + - name: PDCR + description: PWR Port pull-down control register + array: + len: 6 + stride: 8 + byte_offset: 36 + fieldset: PCR fieldset/CR1: description: PWR control register 1 fields: - - name: LPMS - description: "Low-power mode selection\r These bits select the low-power mode entered when CPU enters deepsleep mode.\r 1XX: Shutdown mode" - bit_offset: 0 - bit_size: 3 - - name: FPD_STOP - description: "Flash memory powered down during Stop mode\r This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Stop mode." - bit_offset: 3 - bit_size: 1 - - name: FPD_SLP - description: "Flash memory powered down during Sleep mode\r This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Sleep mode." - bit_offset: 5 - bit_size: 1 + - name: LPMS + description: "Low-power mode selection\r These bits select the low-power mode entered when CPU enters deepsleep mode.\r 1XX: Shutdown mode" + bit_offset: 0 + bit_size: 3 + - name: FPD_STOP + description: "Flash memory powered down during Stop mode\r This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Stop mode." + bit_offset: 3 + bit_size: 1 + - name: FPD_SLP + description: "Flash memory powered down during Sleep mode\r This bit determines whether the Flash memory is put in power-down mode or remains in idle mode when the device enters Sleep mode." + bit_offset: 5 + bit_size: 1 fieldset/CR3: description: PWR control register 3 fields: - - name: EWUP - description: Enable Wakeup pin - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: APC - description: "Apply pull-up and pull-down configuration\r This bit determines whether the I/O pull-up and pull-down configurations defined in the PWR_PUCRx and PWR_PDCRx registers are applied." - bit_offset: 10 - bit_size: 1 - - name: EIWUL - description: "Enable internal wakeup line\r When set, a rising edge on the internal wakeup line triggers a wakeup event." - bit_offset: 15 - bit_size: 1 + - name: EWUP + description: Enable Wakeup pin + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: APC + description: "Apply pull-up and pull-down configuration\r This bit determines whether the I/O pull-up and pull-down configurations defined in the PWR_PUCRx and PWR_PDCRx registers are applied." + bit_offset: 10 + bit_size: 1 + - name: EIWUL + description: "Enable internal wakeup line\r When set, a rising edge on the internal wakeup line triggers a wakeup event." + bit_offset: 15 + bit_size: 1 fieldset/CR4: description: PWR control register 4 fields: - - name: WP - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: WP + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/SCR: description: PWR status clear register fields: - - name: CWUF - description: Clear Wakeup flag - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: CSBF - description: "Clear standby flag\r Setting this bit clears the SBF flag in the PWR_SR1 register." - bit_offset: 8 - bit_size: 1 + - name: CWUF + description: Clear Wakeup flag + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: CSBF + description: "Clear standby flag\r Setting this bit clears the SBF flag in the PWR_SR1 register." + bit_offset: 8 + bit_size: 1 fieldset/SR1: description: PWR status register 1 fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: SBF - description: "Standby/Shutdown flag\r This bit is set by hardware when the device enters Standby or Shutdown mode and is cleared by setting the CSBF bit in the PWR_SCR register, or by a power-on reset. It is not cleared by the system reset." - bit_offset: 8 - bit_size: 1 - - name: WUFI - description: "Wakeup flag internal\r This bit is set when a wakeup condition is detected on the internal wakeup line. It is cleared when all internal wakeup sources are cleared." - bit_offset: 15 - bit_size: 1 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: SBF + description: "Standby/Shutdown flag\r This bit is set by hardware when the device enters Standby or Shutdown mode and is cleared by setting the CSBF bit in the PWR_SCR register, or by a power-on reset. It is not cleared by the system reset." + bit_offset: 8 + bit_size: 1 + - name: WUFI + description: "Wakeup flag internal\r This bit is set when a wakeup condition is detected on the internal wakeup line. It is cleared when all internal wakeup sources are cleared." + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: PWR status register 2 fields: - - name: FLASH_RDY - description: "Flash ready flag\r This bit is set by hardware to indicate when the Flash memory is ready to be accessed after wakeup from power-down. To place the Flash memory in power-down, set either FPD_SLP or FPD_STP bit.\r Note: If the system boots from SRAM, the user application must wait till FLASH_RDY bit is set, prior to jumping to Flash memory." - bit_offset: 7 - bit_size: 1 + - name: FLASH_RDY + description: "Flash ready flag\r This bit is set by hardware to indicate when the Flash memory is ready to be accessed after wakeup from power-down. To place the Flash memory in power-down, set either FPD_SLP or FPD_STP bit.\r Note: If the system boots from SRAM, the user application must wait till FLASH_RDY bit is set, prior to jumping to Flash memory." + bit_offset: 7 + bit_size: 1 diff --git a/data/registers/pwr_f2.yaml b/data/registers/pwr_f2.yaml index c9ff8bd..6b3c36d 100644 --- a/data/registers/pwr_f2.yaml +++ b/data/registers/pwr_f2.yaml @@ -1,84 +1,83 @@ ---- block/PWR: description: Power control items: - - name: CR - description: power control register - byte_offset: 0 - fieldset: CR - - name: CSR - description: power control/status register - byte_offset: 4 - fieldset: CSR + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR fieldset/CR: description: power control register fields: - - name: LPDS - description: Low-power deep sleep - bit_offset: 0 - bit_size: 1 - - name: PDDS - description: Power down deepsleep - bit_offset: 1 - bit_size: 1 - enum: PDDS - - name: CWUF - description: Clear wakeup flag - bit_offset: 2 - bit_size: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 3 - bit_size: 1 - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: PVD level selection - bit_offset: 5 - bit_size: 3 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: FPDS - description: Flash power down in Stop mode - bit_offset: 9 - bit_size: 1 + - name: LPDS + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: FPDS + description: Flash power down in Stop mode + bit_offset: 9 + bit_size: 1 fieldset/CSR: description: power control/status register fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - - name: SBF - description: Standby flag - bit_offset: 1 - bit_size: 1 - - name: PVDO - description: PVD output - bit_offset: 2 - bit_size: 1 - - name: BRR - description: Backup regulator ready - bit_offset: 3 - bit_size: 1 - - name: EWUP - description: Enable WKUP pin - bit_offset: 8 - bit_size: 1 - - name: BRE - description: Backup regulator enable - bit_offset: 9 - bit_size: 1 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: BRR + description: Backup regulator ready + bit_offset: 3 + bit_size: 1 + - name: EWUP + description: Enable WKUP pin + bit_offset: 8 + bit_size: 1 + - name: BRE + description: Backup regulator enable + bit_offset: 9 + bit_size: 1 enum/PDDS: bit_size: 1 variants: - - name: STOP_MODE - description: Enter Stop mode when the CPU enters deepsleep - value: 0 - - name: STANDBY_MODE - description: Enter Standby mode when the CPU enters deepsleep - value: 1 + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 diff --git a/data/registers/pwr_f3.yaml b/data/registers/pwr_f3.yaml index d83cca3..383d25a 100644 --- a/data/registers/pwr_f3.yaml +++ b/data/registers/pwr_f3.yaml @@ -1,86 +1,85 @@ ---- block/PWR: description: Power control items: - - name: CR - description: power control register - byte_offset: 0 - fieldset: CR - - name: CSR - description: power control/status register - byte_offset: 4 - fieldset: CSR + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR fieldset/CR: description: power control register fields: - - name: LPDS - description: Low-power deep sleep - bit_offset: 0 - bit_size: 1 - - name: PDDS - description: Power down deepsleep - bit_offset: 1 - bit_size: 1 - enum: PDDS - - name: CWUF - description: Clear wakeup flag - bit_offset: 2 - bit_size: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 3 - bit_size: 1 - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: PVD level selection - bit_offset: 5 - bit_size: 3 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: ENSD - description: ENable SD1 ADC - bit_offset: 9 - bit_size: 1 - array: - len: 3 - stride: 1 + - name: LPDS + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: ENSD + description: ENable SD1 ADC + bit_offset: 9 + bit_size: 1 + array: + len: 3 + stride: 1 fieldset/CSR: description: power control/status register fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - - name: SBF - description: Standby flag - bit_offset: 1 - bit_size: 1 - - name: PVDO - description: PVD output - bit_offset: 2 - bit_size: 1 - - name: VREFINTRDYF - description: Internal voltage reference ready flag - bit_offset: 3 - bit_size: 1 - - name: EWUP - description: Enable WKUP1 pin - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: VREFINTRDYF + description: Internal voltage reference ready flag + bit_offset: 3 + bit_size: 1 + - name: EWUP + description: Enable WKUP1 pin + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 enum/PDDS: bit_size: 1 variants: - - name: STOP_MODE - description: Enter Stop mode when the CPU enters deepsleep - value: 0 - - name: STANDBY_MODE - description: Enter Standby mode when the CPU enters deepsleep - value: 1 + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 diff --git a/data/registers/pwr_f4.yaml b/data/registers/pwr_f4.yaml index 9a9d68e..5e2252a 100644 --- a/data/registers/pwr_f4.yaml +++ b/data/registers/pwr_f4.yaml @@ -1,153 +1,152 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: power control register - byte_offset: 0 - fieldset: CR1 - - name: CSR1 - description: power control/status register - byte_offset: 4 - fieldset: CSR1 + - name: CR1 + description: power control register + byte_offset: 0 + fieldset: CR1 + - name: CSR1 + description: power control/status register + byte_offset: 4 + fieldset: CSR1 fieldset/CR1: description: power control register fields: - - name: LPDS - description: Low-power deep sleep - bit_offset: 0 - bit_size: 1 - - name: PDDS - description: Power down deepsleep - bit_offset: 1 - bit_size: 1 - enum: PDDS - - name: CWUF - description: Clear wakeup flag - bit_offset: 2 - bit_size: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 3 - bit_size: 1 - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: PVD level selection - bit_offset: 5 - bit_size: 3 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: FPDS - description: Flash power down in Stop mode - bit_offset: 9 - bit_size: 1 - - name: LPLVDS - description: Low-Power Regulator Low Voltage in deepsleep - bit_offset: 10 - bit_size: 1 - - name: MRLVDS - description: Main regulator low voltage in deepsleep mode - bit_offset: 11 - bit_size: 1 - - name: ADCDC1 - description: ADCDC1 - bit_offset: 13 - bit_size: 1 - - name: VOS - description: Regulator voltage scaling output selection - bit_offset: 14 - bit_size: 2 - enum: VOS - - name: ODEN - description: "Over-drive enable (STM32F4[23] ONLY)" - bit_offset: 16 - bit_size: 1 - - name: ODSWEN - description: "Over-drive switching enabled (STM32F4[23] ONLY)" - bit_offset: 17 - bit_size: 1 - - name: UDEN - description: "Under-drive enable in stop mode (STM32F4[23] ONLY)" - bit_offset: 18 - bit_size: 2 - - name: FMSSR - description: Flash Memory Stop while System Run - bit_offset: 20 - bit_size: 1 - - name: FISSR - description: Flash Interface Stop while System Run - bit_offset: 21 - bit_size: 1 + - name: LPDS + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: FPDS + description: Flash power down in Stop mode + bit_offset: 9 + bit_size: 1 + - name: LPLVDS + description: Low-Power Regulator Low Voltage in deepsleep + bit_offset: 10 + bit_size: 1 + - name: MRLVDS + description: Main regulator low voltage in deepsleep mode + bit_offset: 11 + bit_size: 1 + - name: ADCDC1 + description: ADCDC1 + bit_offset: 13 + bit_size: 1 + - name: VOS + description: Regulator voltage scaling output selection + bit_offset: 14 + bit_size: 2 + enum: VOS + - name: ODEN + description: Over-drive enable (STM32F4[23] ONLY) + bit_offset: 16 + bit_size: 1 + - name: ODSWEN + description: Over-drive switching enabled (STM32F4[23] ONLY) + bit_offset: 17 + bit_size: 1 + - name: UDEN + description: Under-drive enable in stop mode (STM32F4[23] ONLY) + bit_offset: 18 + bit_size: 2 + - name: FMSSR + description: Flash Memory Stop while System Run + bit_offset: 20 + bit_size: 1 + - name: FISSR + description: Flash Interface Stop while System Run + bit_offset: 21 + bit_size: 1 fieldset/CSR1: description: power control/status register fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - - name: SBF - description: Standby flag - bit_offset: 1 - bit_size: 1 - - name: PVDO - description: PVD output - bit_offset: 2 - bit_size: 1 - - name: BRR - description: Backup regulator ready - bit_offset: 3 - bit_size: 1 - - name: EWUP2 - description: Enable WKUP2 pin - bit_offset: 7 - bit_size: 1 - - name: EWUP - description: Enable WKUP pin - bit_offset: 8 - bit_size: 1 - - name: BRE - description: Backup regulator enable - bit_offset: 9 - bit_size: 1 - - name: VOSRDY - description: "Regulator voltage scaling output selection ready bit (STM32F4[23] ONLY)" - bit_offset: 14 - bit_size: 1 - - name: ODRDY - description: "Over-drive mode ready (STM32F4[23] ONLY)" - bit_offset: 16 - bit_size: 1 - - name: ODSWRDY - description: "Over-drive mode switching ready (STM32F4[23] ONLY)" - bit_offset: 17 - bit_size: 1 - - name: UDRDY - description: Under-drive ready flag - bit_offset: 18 - bit_size: 2 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: BRR + description: Backup regulator ready + bit_offset: 3 + bit_size: 1 + - name: EWUP2 + description: Enable WKUP2 pin + bit_offset: 7 + bit_size: 1 + - name: EWUP + description: Enable WKUP pin + bit_offset: 8 + bit_size: 1 + - name: BRE + description: Backup regulator enable + bit_offset: 9 + bit_size: 1 + - name: VOSRDY + description: Regulator voltage scaling output selection ready bit (STM32F4[23] ONLY) + bit_offset: 14 + bit_size: 1 + - name: ODRDY + description: Over-drive mode ready (STM32F4[23] ONLY) + bit_offset: 16 + bit_size: 1 + - name: ODSWRDY + description: Over-drive mode switching ready (STM32F4[23] ONLY) + bit_offset: 17 + bit_size: 1 + - name: UDRDY + description: Under-drive ready flag + bit_offset: 18 + bit_size: 2 enum/PDDS: bit_size: 1 variants: - - name: STOP_MODE - description: Enter Stop mode when the CPU enters deepsleep - value: 0 - - name: STANDBY_MODE - description: Enter Standby mode when the CPU enters deepsleep - value: 1 + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 enum/VOS: bit_size: 2 variants: - - name: SCALE3 - description: "Scale 3 mode (STM32F4[23] ONLY)" - value: 1 - - name: SCALE2 - description: Scale 2 mode - value: 2 - - name: SCALE1 - description: Scale 1 mode (reset value) - value: 3 + - name: SCALE3 + description: Scale 3 mode (STM32F4[23] ONLY) + value: 1 + - name: SCALE2 + description: Scale 2 mode + value: 2 + - name: SCALE1 + description: Scale 1 mode (reset value) + value: 3 diff --git a/data/registers/pwr_f7.yaml b/data/registers/pwr_f7.yaml index 3eafd3c..876d2f2 100644 --- a/data/registers/pwr_f7.yaml +++ b/data/registers/pwr_f7.yaml @@ -1,179 +1,178 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: power control register - byte_offset: 0 - fieldset: CR1 - - name: CSR1 - description: power control/status register - byte_offset: 4 - fieldset: CSR1 - - name: CR2 - description: power control register - byte_offset: 8 - fieldset: CR2 - - name: CSR2 - description: power control/status register - byte_offset: 12 - fieldset: CSR2 + - name: CR1 + description: power control register + byte_offset: 0 + fieldset: CR1 + - name: CSR1 + description: power control/status register + byte_offset: 4 + fieldset: CSR1 + - name: CR2 + description: power control register + byte_offset: 8 + fieldset: CR2 + - name: CSR2 + description: power control/status register + byte_offset: 12 + fieldset: CSR2 fieldset/CR1: description: power control register fields: - - name: LPDS - description: Low-power deep sleep - bit_offset: 0 - bit_size: 1 - - name: PDDS - description: Power down deepsleep - bit_offset: 1 - bit_size: 1 - enum: PDDS - - name: CSBF - description: Clear standby flag - bit_offset: 3 - bit_size: 1 - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: PVD level selection - bit_offset: 5 - bit_size: 3 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: FPDS - description: Flash power down in Stop mode - bit_offset: 9 - bit_size: 1 - - name: LPUDS - description: Low-power regulator in deepsleep under-drive mode - bit_offset: 10 - bit_size: 1 - - name: MRUDS - description: Main regulator in deepsleep under-drive mode - bit_offset: 11 - bit_size: 1 - - name: ADCDC1 - description: ADCDC1 - bit_offset: 13 - bit_size: 1 - - name: VOS - description: Regulator voltage scaling output selection - bit_offset: 14 - bit_size: 2 - enum: VOS - - name: ODEN - description: Over-drive enable - bit_offset: 16 - bit_size: 1 - - name: ODSWEN - description: Over-drive switching enabled - bit_offset: 17 - bit_size: 1 - - name: UDEN - description: Under-drive enable in stop mode - bit_offset: 18 - bit_size: 2 + - name: LPDS + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: FPDS + description: Flash power down in Stop mode + bit_offset: 9 + bit_size: 1 + - name: LPUDS + description: Low-power regulator in deepsleep under-drive mode + bit_offset: 10 + bit_size: 1 + - name: MRUDS + description: Main regulator in deepsleep under-drive mode + bit_offset: 11 + bit_size: 1 + - name: ADCDC1 + description: ADCDC1 + bit_offset: 13 + bit_size: 1 + - name: VOS + description: Regulator voltage scaling output selection + bit_offset: 14 + bit_size: 2 + enum: VOS + - name: ODEN + description: Over-drive enable + bit_offset: 16 + bit_size: 1 + - name: ODSWEN + description: Over-drive switching enabled + bit_offset: 17 + bit_size: 1 + - name: UDEN + description: Under-drive enable in stop mode + bit_offset: 18 + bit_size: 2 fieldset/CR2: description: power control register fields: - - name: CWUPF - description: Clear Wakeup Pin flag for PA0 - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: WUPP - description: Wakeup pin polarity bit for PA0 - bit_offset: 8 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: CWUPF + description: Clear Wakeup Pin flag for PA0 + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WUPP + description: Wakeup pin polarity bit for PA0 + bit_offset: 8 + bit_size: 1 + array: + len: 6 + stride: 1 fieldset/CSR1: description: power control/status register fields: - - name: WUIF - description: Wakeup internal flag - bit_offset: 0 - bit_size: 1 - - name: SBF - description: Standby flag - bit_offset: 1 - bit_size: 1 - - name: PVDO - description: PVD output - bit_offset: 2 - bit_size: 1 - - name: BRR - description: Backup regulator ready - bit_offset: 3 - bit_size: 1 - - name: EIWUP - description: Enable internal wakeup - bit_offset: 8 - bit_size: 1 - - name: BRE - description: Backup regulator enable - bit_offset: 9 - bit_size: 1 - - name: VOSRDY - description: Regulator voltage scaling output selection ready bit - bit_offset: 14 - bit_size: 1 - - name: ODRDY - description: Over-drive mode ready - bit_offset: 16 - bit_size: 1 - - name: ODSWRDY - description: Over-drive mode switching ready - bit_offset: 17 - bit_size: 1 - - name: UDRDY - description: Under-drive ready flag - bit_offset: 18 - bit_size: 2 + - name: WUIF + description: Wakeup internal flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: BRR + description: Backup regulator ready + bit_offset: 3 + bit_size: 1 + - name: EIWUP + description: Enable internal wakeup + bit_offset: 8 + bit_size: 1 + - name: BRE + description: Backup regulator enable + bit_offset: 9 + bit_size: 1 + - name: VOSRDY + description: Regulator voltage scaling output selection ready bit + bit_offset: 14 + bit_size: 1 + - name: ODRDY + description: Over-drive mode ready + bit_offset: 16 + bit_size: 1 + - name: ODSWRDY + description: Over-drive mode switching ready + bit_offset: 17 + bit_size: 1 + - name: UDRDY + description: Under-drive ready flag + bit_offset: 18 + bit_size: 2 fieldset/CSR2: description: power control/status register fields: - - name: WUPF - description: Wakeup Pin flag for PA0 - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: EWUP - description: Enable Wakeup pin for PA0 - bit_offset: 8 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: WUPF + description: Wakeup Pin flag for PA0 + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: EWUP + description: Enable Wakeup pin for PA0 + bit_offset: 8 + bit_size: 1 + array: + len: 6 + stride: 1 enum/PDDS: bit_size: 1 variants: - - name: STOP_MODE - description: Enter Stop mode when the CPU enters deepsleep - value: 0 - - name: STANDBY_MODE - description: Enter Standby mode when the CPU enters deepsleep - value: 1 + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 enum/VOS: bit_size: 2 variants: - - name: SCALE3 - description: Scale 3 mode - value: 1 - - name: SCALE2 - description: Scale 2 mode - value: 2 - - name: SCALE1 - description: Scale 1 mode (reset value) - value: 3 + - name: SCALE3 + description: Scale 3 mode + value: 1 + - name: SCALE2 + description: Scale 2 mode + value: 2 + - name: SCALE1 + description: Scale 1 mode (reset value) + value: 3 diff --git a/data/registers/pwr_g0.yaml b/data/registers/pwr_g0.yaml index ad52698..59dd168 100644 --- a/data/registers/pwr_g0.yaml +++ b/data/registers/pwr_g0.yaml @@ -1,204 +1,203 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: Power control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Power control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Power control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: Power control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: Power status register 1 - byte_offset: 16 - access: Read - fieldset: SR1 - - name: SR2 - description: Power status register 2 - byte_offset: 20 - access: Read - fieldset: SR2 - - name: SCR - description: Power status clear register - byte_offset: 24 - access: Write - fieldset: SCR - - name: PUCR - description: Power Port pull-up control register - array: - len: 6 - stride: 8 - byte_offset: 32 - fieldset: PCR - - name: PDCR - description: Power Port pull-down control register - array: - len: 6 - stride: 8 - byte_offset: 36 - fieldset: PCR + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: PUCR + description: Power Port pull-up control register + array: + len: 6 + stride: 8 + byte_offset: 32 + fieldset: PCR + - name: PDCR + description: Power Port pull-down control register + array: + len: 6 + stride: 8 + byte_offset: 36 + fieldset: PCR fieldset/CR1: description: Power control register 1 fields: - - name: LPMS - description: Low-power mode selection - bit_offset: 0 - bit_size: 3 - - name: FPD_STOP - description: Flash memory powered down during Stop mode - bit_offset: 3 - bit_size: 1 - - name: FPD_LPRUN - description: Flash memory powered down during Low-power run mode - bit_offset: 4 - bit_size: 1 - - name: FPD_LPSLP - description: Flash memory powered down during Low-power sleep mode - bit_offset: 5 - bit_size: 1 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 9 - bit_size: 2 - - name: LPR - description: Low-power run - bit_offset: 14 - bit_size: 1 + - name: LPMS + description: Low-power mode selection + bit_offset: 0 + bit_size: 3 + - name: FPD_STOP + description: Flash memory powered down during Stop mode + bit_offset: 3 + bit_size: 1 + - name: FPD_LPRUN + description: Flash memory powered down during Low-power run mode + bit_offset: 4 + bit_size: 1 + - name: FPD_LPSLP + description: Flash memory powered down during Low-power sleep mode + bit_offset: 5 + bit_size: 1 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 9 + bit_size: 2 + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 fieldset/CR2: description: Power control register 2 fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 0 - bit_size: 1 - - name: PVDFT - description: Power voltage detector falling threshold selection - bit_offset: 1 - bit_size: 3 - - name: PVDRT - description: Power voltage detector rising threshold selection - bit_offset: 4 - bit_size: 3 + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + - name: PVDFT + description: Power voltage detector falling threshold selection + bit_offset: 1 + bit_size: 3 + - name: PVDRT + description: Power voltage detector rising threshold selection + bit_offset: 4 + bit_size: 3 fieldset/CR3: description: Power control register 3 fields: - - name: EWUP - description: Enable Wakeup pin - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: RRS - description: SRAM retention in Standby mode - bit_offset: 8 - bit_size: 1 - - name: ULPEN - description: Enable the periodical sampling mode for PDR detection - bit_offset: 9 - bit_size: 1 - - name: APC - description: Apply pull-up and pull-down configuration - bit_offset: 10 - bit_size: 1 - - name: EIWUL - description: Enable internal wakeup line - bit_offset: 15 - bit_size: 1 + - name: EWUP + description: Enable Wakeup pin + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: RRS + description: SRAM retention in Standby mode + bit_offset: 8 + bit_size: 1 + - name: ULPEN + description: Enable the periodical sampling mode for PDR detection + bit_offset: 9 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration + bit_offset: 10 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line + bit_offset: 15 + bit_size: 1 fieldset/CR4: description: Power control register 4 fields: - - name: WP - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: VBE - description: VBAT battery charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT battery charging resistor selection - bit_offset: 9 - bit_size: 1 + - name: WP + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/SCR: description: Power status clear register fields: - - name: CWUF - description: Clear Wakeup flag - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 8 - bit_size: 1 + - name: CWUF + description: Clear Wakeup flag + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 8 + bit_size: 1 fieldset/SR1: description: Power status register 1 fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: SBF - description: Standby flag - bit_offset: 8 - bit_size: 1 - - name: WUFI - description: Wakeup flag internal - bit_offset: 15 - bit_size: 1 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: SBF + description: Standby flag + bit_offset: 8 + bit_size: 1 + - name: WUFI + description: Wakeup flag internal + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: Power status register 2 fields: - - name: FLASH_RDY - description: Flash ready flag - bit_offset: 7 - bit_size: 1 - - name: REGLPS - description: Low-power regulator started - bit_offset: 8 - bit_size: 1 - - name: REGLPF - description: Low-power regulator flag - bit_offset: 9 - bit_size: 1 - - name: VOSF - description: Voltage scaling flag - bit_offset: 10 - bit_size: 1 - - name: PVDO - description: Power voltage detector output - bit_offset: 11 - bit_size: 1 + - name: FLASH_RDY + description: Flash ready flag + bit_offset: 7 + bit_size: 1 + - name: REGLPS + description: Low-power regulator started + bit_offset: 8 + bit_size: 1 + - name: REGLPF + description: Low-power regulator flag + bit_offset: 9 + bit_size: 1 + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 diff --git a/data/registers/pwr_g4.yaml b/data/registers/pwr_g4.yaml index f942f95..c3c257b 100644 --- a/data/registers/pwr_g4.yaml +++ b/data/registers/pwr_g4.yaml @@ -1,283 +1,282 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: Power control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Power control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Power control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: Power control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: Power status register 1 - byte_offset: 16 - access: Read - fieldset: SR1 - - name: SR2 - description: Power status register 2 - byte_offset: 20 - access: Read - fieldset: SR2 - - name: SCR - description: Power status clear register - byte_offset: 24 - access: Write - fieldset: SCR - - name: PUCR - description: Power Port pull-up control register - array: - len: 7 - stride: 8 - byte_offset: 32 - fieldset: PCR - - name: PDCR - description: Power Port pull-down control register - array: - len: 7 - stride: 8 - byte_offset: 36 - fieldset: PCR - - name: CR5 - description: Power control register 5 - byte_offset: 128 - fieldset: CR5 + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: PUCR + description: Power Port pull-up control register + array: + len: 7 + stride: 8 + byte_offset: 32 + fieldset: PCR + - name: PDCR + description: Power Port pull-down control register + array: + len: 7 + stride: 8 + byte_offset: 36 + fieldset: PCR + - name: CR5 + description: Power control register 5 + byte_offset: 128 + fieldset: CR5 fieldset/CR1: description: Power control register 1 fields: - - name: LPMS - description: Low-power mode selection - bit_offset: 0 - bit_size: 3 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 9 - bit_size: 2 - - name: LPR - description: Low-power run - bit_offset: 14 - bit_size: 1 + - name: LPMS + description: Low-power mode selection + bit_offset: 0 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 9 + bit_size: 2 + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 fieldset/CR2: description: Power control register 2 fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 0 - bit_size: 1 - - name: PLS - description: Power voltage detector level selection - bit_offset: 1 - bit_size: 3 - - name: PVMEN1 - description: "Peripheral voltage monitoring 1 enable: VDDA vs. COMP min voltage" - bit_offset: 4 - bit_size: 1 - - name: PVMEN2 - description: "Peripheral voltage monitoring 2 enable: VDDA vs. Fast DAC min voltage" - bit_offset: 5 - bit_size: 1 - - name: PVMEN3 - description: "Peripheral voltage monitoring 3 enable: VDDA vs. ADC min voltage 1.62V" - bit_offset: 6 - bit_size: 1 - - name: PVMEN4 - description: "Peripheral voltage monitoring 4 enable: VDDA vs. OPAMP/DAC min voltage" - bit_offset: 7 - bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: Power voltage detector level selection + bit_offset: 1 + bit_size: 3 + - name: PVMEN1 + description: 'Peripheral voltage monitoring 1 enable: VDDA vs. COMP min voltage' + bit_offset: 4 + bit_size: 1 + - name: PVMEN2 + description: 'Peripheral voltage monitoring 2 enable: VDDA vs. Fast DAC min voltage' + bit_offset: 5 + bit_size: 1 + - name: PVMEN3 + description: 'Peripheral voltage monitoring 3 enable: VDDA vs. ADC min voltage 1.62V' + bit_offset: 6 + bit_size: 1 + - name: PVMEN4 + description: 'Peripheral voltage monitoring 4 enable: VDDA vs. OPAMP/DAC min voltage' + bit_offset: 7 + bit_size: 1 fieldset/CR3: description: Power control register 3 fields: - - name: EWUP1 - description: Enable Wakeup pin WKUP1 - bit_offset: 0 - bit_size: 1 - - name: EWUP2 - description: Enable Wakeup pin WKUP2 - bit_offset: 1 - bit_size: 1 - - name: EWUP3 - description: Enable Wakeup pin WKUP3 - bit_offset: 2 - bit_size: 1 - - name: EWUP4 - description: Enable Wakeup pin WKUP4 - bit_offset: 3 - bit_size: 1 - - name: EWUP5 - description: Enable Wakeup pin WKUP5 - bit_offset: 4 - bit_size: 1 - - name: RRS - description: SRAM2 retention in Standby mode - bit_offset: 8 - bit_size: 1 - - name: APC - description: Apply pull-up and pull-down configuration - bit_offset: 10 - bit_size: 1 - - name: UCPD1_STDBY - description: STDBY - bit_offset: 13 - bit_size: 1 - - name: UCPD1_DBDIS - description: DBDIS - bit_offset: 14 - bit_size: 1 - - name: EIWUL - description: Enable external WakeUp line - bit_offset: 15 - bit_size: 1 + - name: EWUP1 + description: Enable Wakeup pin WKUP1 + bit_offset: 0 + bit_size: 1 + - name: EWUP2 + description: Enable Wakeup pin WKUP2 + bit_offset: 1 + bit_size: 1 + - name: EWUP3 + description: Enable Wakeup pin WKUP3 + bit_offset: 2 + bit_size: 1 + - name: EWUP4 + description: Enable Wakeup pin WKUP4 + bit_offset: 3 + bit_size: 1 + - name: EWUP5 + description: Enable Wakeup pin WKUP5 + bit_offset: 4 + bit_size: 1 + - name: RRS + description: SRAM2 retention in Standby mode + bit_offset: 8 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration + bit_offset: 10 + bit_size: 1 + - name: UCPD1_STDBY + description: STDBY + bit_offset: 13 + bit_size: 1 + - name: UCPD1_DBDIS + description: DBDIS + bit_offset: 14 + bit_size: 1 + - name: EIWUL + description: Enable external WakeUp line + bit_offset: 15 + bit_size: 1 fieldset/CR4: description: Power control register 4 fields: - - name: WP1 - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - - name: WP2 - description: Wakeup pin WKUP2 polarity - bit_offset: 1 - bit_size: 1 - - name: WP3 - description: Wakeup pin WKUP3 polarity - bit_offset: 2 - bit_size: 1 - - name: WP4 - description: Wakeup pin WKUP4 polarity - bit_offset: 3 - bit_size: 1 - - name: WP5 - description: Wakeup pin WKUP5 polarity - bit_offset: 4 - bit_size: 1 - - name: VBE - description: VBAT battery charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT battery charging resistor selection - bit_offset: 9 - bit_size: 1 + - name: WP1 + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + - name: WP2 + description: Wakeup pin WKUP2 polarity + bit_offset: 1 + bit_size: 1 + - name: WP3 + description: Wakeup pin WKUP3 polarity + bit_offset: 2 + bit_size: 1 + - name: WP4 + description: Wakeup pin WKUP4 polarity + bit_offset: 3 + bit_size: 1 + - name: WP5 + description: Wakeup pin WKUP5 polarity + bit_offset: 4 + bit_size: 1 + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 fieldset/CR5: description: Power control register 5 fields: - - name: R1MODE - description: Main regular range 1 mode - bit_offset: 0 - bit_size: 1 + - name: R1MODE + description: Main regular range 1 mode + bit_offset: 0 + bit_size: 1 fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/SCR: description: Power status clear register fields: - - name: CWUF1 - description: Clear wakeup flag 1 - bit_offset: 0 - bit_size: 1 - - name: CWUF2 - description: Clear wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Clear wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Clear wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Clear wakeup flag 5 - bit_offset: 4 - bit_size: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 8 - bit_size: 1 + - name: CWUF1 + description: Clear wakeup flag 1 + bit_offset: 0 + bit_size: 1 + - name: CWUF2 + description: Clear wakeup flag 2 + bit_offset: 1 + bit_size: 1 + - name: CWUF3 + description: Clear wakeup flag 3 + bit_offset: 2 + bit_size: 1 + - name: CWUF4 + description: Clear wakeup flag 4 + bit_offset: 3 + bit_size: 1 + - name: CWUF5 + description: Clear wakeup flag 5 + bit_offset: 4 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 8 + bit_size: 1 fieldset/SR1: description: Power status register 1 fields: - - name: WUF1 - description: Wakeup flag 1 - bit_offset: 0 - bit_size: 1 - - name: WUF2 - description: Wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: WUF3 - description: Wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: WUF4 - description: Wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: WUF5 - description: Wakeup flag 5 - bit_offset: 4 - bit_size: 1 - - name: SBF - description: Standby flag - bit_offset: 8 - bit_size: 1 - - name: WUFI - description: Wakeup flag internal - bit_offset: 15 - bit_size: 1 + - name: WUF1 + description: Wakeup flag 1 + bit_offset: 0 + bit_size: 1 + - name: WUF2 + description: Wakeup flag 2 + bit_offset: 1 + bit_size: 1 + - name: WUF3 + description: Wakeup flag 3 + bit_offset: 2 + bit_size: 1 + - name: WUF4 + description: Wakeup flag 4 + bit_offset: 3 + bit_size: 1 + - name: WUF5 + description: Wakeup flag 5 + bit_offset: 4 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 8 + bit_size: 1 + - name: WUFI + description: Wakeup flag internal + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: Power status register 2 fields: - - name: REGLPS - description: Low-power regulator started - bit_offset: 8 - bit_size: 1 - - name: REGLPF - description: Low-power regulator flag - bit_offset: 9 - bit_size: 1 - - name: VOSF - description: Voltage scaling flag - bit_offset: 10 - bit_size: 1 - - name: PVDO - description: Power voltage detector output - bit_offset: 11 - bit_size: 1 - - name: PVMO1 - description: "Peripheral voltage monitoring output: VDDUSB vs. 1.2 V" - bit_offset: 12 - bit_size: 1 - - name: PVMO2 - description: "Peripheral voltage monitoring output: VDDIO2 vs. 0.9 V" - bit_offset: 13 - bit_size: 1 - - name: PVMO3 - description: "Peripheral voltage monitoring output: VDDA vs. 1.62 V" - bit_offset: 14 - bit_size: 1 - - name: PVMO4 - description: "Peripheral voltage monitoring output: VDDA vs. 2.2 V" - bit_offset: 15 - bit_size: 1 + - name: REGLPS + description: Low-power regulator started + bit_offset: 8 + bit_size: 1 + - name: REGLPF + description: Low-power regulator flag + bit_offset: 9 + bit_size: 1 + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 + - name: PVMO1 + description: 'Peripheral voltage monitoring output: VDDUSB vs. 1.2 V' + bit_offset: 12 + bit_size: 1 + - name: PVMO2 + description: 'Peripheral voltage monitoring output: VDDIO2 vs. 0.9 V' + bit_offset: 13 + bit_size: 1 + - name: PVMO3 + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + bit_offset: 14 + bit_size: 1 + - name: PVMO4 + description: 'Peripheral voltage monitoring output: VDDA vs. 2.2 V' + bit_offset: 15 + bit_size: 1 diff --git a/data/registers/pwr_h5.yaml b/data/registers/pwr_h5.yaml index 66c1dec..5620f22 100644 --- a/data/registers/pwr_h5.yaml +++ b/data/registers/pwr_h5.yaml @@ -1,582 +1,581 @@ ---- block/PWR: description: Power control items: - - name: PMCR - description: PWR power mode control register - byte_offset: 0 - fieldset: PMCR - - name: PMSR - description: PWR status register - byte_offset: 4 - fieldset: PMSR - - name: VOSCR - description: PWR voltage scaling control register - byte_offset: 16 - fieldset: VOSCR - - name: VOSSR - description: PWR voltage scaling status register - byte_offset: 20 - fieldset: VOSSR - - name: BDCR - description: PWR Backup domain control register - byte_offset: 32 - fieldset: BDCR - - name: DBPCR - description: PWR Backup domain control register - byte_offset: 36 - fieldset: DBPCR - - name: BDSR - description: PWR Backup domain status register - byte_offset: 40 - fieldset: BDSR - - name: UCPDR - description: PWR USB Type-C power delivery register - byte_offset: 44 - fieldset: UCPDR - - name: SCCR - description: PWR supply configuration control register - byte_offset: 48 - fieldset: SCCR - - name: VMCR - description: PWR voltage monitor control register - byte_offset: 52 - fieldset: VMCR - - name: USBSCR - description: PWR USB supply control register - byte_offset: 56 - fieldset: USBSCR - - name: VMSR - description: PWR voltage monitor status register - byte_offset: 60 - fieldset: VMSR - - name: WUSCR - description: PWR wakeup status clear register - byte_offset: 64 - fieldset: WUSCR - - name: WUSR - description: PWR wakeup status register - byte_offset: 68 - fieldset: WUSR - - name: WUCR - description: PWR wakeup configuration register - byte_offset: 72 - fieldset: WUCR - - name: IORETR - description: PWR I/O retention register - byte_offset: 80 - fieldset: IORETR - - name: SECCFGR - description: PWR security configuration register - byte_offset: 256 - fieldset: SECCFGR - - name: PRIVCFGR - description: PWR privilege configuration register - byte_offset: 260 - fieldset: PRIVCFGR + - name: PMCR + description: PWR power mode control register + byte_offset: 0 + fieldset: PMCR + - name: PMSR + description: PWR status register + byte_offset: 4 + fieldset: PMSR + - name: VOSCR + description: PWR voltage scaling control register + byte_offset: 16 + fieldset: VOSCR + - name: VOSSR + description: PWR voltage scaling status register + byte_offset: 20 + fieldset: VOSSR + - name: BDCR + description: PWR Backup domain control register + byte_offset: 32 + fieldset: BDCR + - name: DBPCR + description: PWR Backup domain control register + byte_offset: 36 + fieldset: DBPCR + - name: BDSR + description: PWR Backup domain status register + byte_offset: 40 + fieldset: BDSR + - name: UCPDR + description: PWR USB Type-C power delivery register + byte_offset: 44 + fieldset: UCPDR + - name: SCCR + description: PWR supply configuration control register + byte_offset: 48 + fieldset: SCCR + - name: VMCR + description: PWR voltage monitor control register + byte_offset: 52 + fieldset: VMCR + - name: USBSCR + description: PWR USB supply control register + byte_offset: 56 + fieldset: USBSCR + - name: VMSR + description: PWR voltage monitor status register + byte_offset: 60 + fieldset: VMSR + - name: WUSCR + description: PWR wakeup status clear register + byte_offset: 64 + fieldset: WUSCR + - name: WUSR + description: PWR wakeup status register + byte_offset: 68 + fieldset: WUSR + - name: WUCR + description: PWR wakeup configuration register + byte_offset: 72 + fieldset: WUCR + - name: IORETR + description: PWR I/O retention register + byte_offset: 80 + fieldset: IORETR + - name: SECCFGR + description: PWR security configuration register + byte_offset: 256 + fieldset: SECCFGR + - name: PRIVCFGR + description: PWR privilege configuration register + byte_offset: 260 + fieldset: PRIVCFGR fieldset/BDCR: description: PWR Backup domain control register fields: - - name: BREN - description: "Backup RAM retention in Standby and VBAT modes\r When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled.\r If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in \tRun and Stop modes. However its content is lost in Standby and VBAT modes.\r If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and VBAT modes." - bit_offset: 0 - bit_size: 1 - - name: MONEN - description: Backup domain voltage and temperature monitoring enable - bit_offset: 1 - bit_size: 1 - - name: VBE - description: "VBAT charging enable\r Note: Reset only by POR,." - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT charging resistor selection - bit_offset: 9 - bit_size: 1 - enum: VBRS + - name: BREN + description: "Backup RAM retention in Standby and VBAT modes\r When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled.\r If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in \tRun and Stop modes. However its content is lost in Standby and VBAT modes.\r If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and VBAT modes." + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: Backup domain voltage and temperature monitoring enable + bit_offset: 1 + bit_size: 1 + - name: VBE + description: "VBAT charging enable\r Note: Reset only by POR,." + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 9 + bit_size: 1 + enum: VBRS fieldset/BDSR: description: PWR Backup domain status register fields: - - name: BRRDY - description: "backup regulator ready\r This bit is set by hardware to indicate that the backup regulator is ready." - bit_offset: 16 - bit_size: 1 - - name: VBATL - description: VBAT level monitoring versus low threshold - bit_offset: 20 - bit_size: 1 - - name: VBATH - description: VBAT level monitoring versus high threshold - bit_offset: 21 - bit_size: 1 - - name: TEMPL - description: temperature level monitoring versus low threshold - bit_offset: 22 - bit_size: 1 - - name: TEMPH - description: temperature level monitoring versus high threshold - bit_offset: 23 - bit_size: 1 + - name: BRRDY + description: "backup regulator ready\r This bit is set by hardware to indicate that the backup regulator is ready." + bit_offset: 16 + bit_size: 1 + - name: VBATL + description: VBAT level monitoring versus low threshold + bit_offset: 20 + bit_size: 1 + - name: VBATH + description: VBAT level monitoring versus high threshold + bit_offset: 21 + bit_size: 1 + - name: TEMPL + description: temperature level monitoring versus low threshold + bit_offset: 22 + bit_size: 1 + - name: TEMPH + description: temperature level monitoring versus high threshold + bit_offset: 23 + bit_size: 1 fieldset/DBPCR: description: PWR Backup domain control register fields: - - name: DBP - description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write \taccess. This bit must be set to enable write access to these registers." - bit_offset: 0 - bit_size: 1 + - name: DBP + description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write \taccess. This bit must be set to enable write access to these registers." + bit_offset: 0 + bit_size: 1 fieldset/IORETR: description: PWR I/O retention register fields: - - name: IORETEN - description: "IO retention enable:\r When entering into standby mode, the output is sampled, and apply to the output IO during the standby power mode. \r Note: the IO state is not retained if the DBG_STANDBY bit is set in DBGMCU_CR register." - bit_offset: 0 - bit_size: 1 - - name: JTAGIORETEN - description: "IO retention enable for JTAG IOs\r when entering into standby mode, the output is sampled, and apply to the output IO during the standby power mode" - bit_offset: 16 - bit_size: 1 + - name: IORETEN + description: "IO retention enable:\r When entering into standby mode, the output is sampled, and apply to the output IO during the standby power mode. \r Note: the IO state is not retained if the DBG_STANDBY bit is set in DBGMCU_CR register." + bit_offset: 0 + bit_size: 1 + - name: JTAGIORETEN + description: "IO retention enable for JTAG IOs\r when entering into standby mode, the output is sampled, and apply to the output IO during the standby power mode" + bit_offset: 16 + bit_size: 1 fieldset/PMCR: description: PWR power mode control register fields: - - name: LPMS - description: "low-power mode selection\r This bit defines the Deepsleep mode." - bit_offset: 0 - bit_size: 1 - - name: SVOS - description: "system Stop mode voltage scaling selection\r These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance." - bit_offset: 2 - bit_size: 2 - enum: SVOS - - name: CSSF - description: "clear Standby and Stop flags (always read as 0)\r This bit is cleared to 0 by hardware." - bit_offset: 7 - bit_size: 1 - - name: FLPS - description: "Flash memory low-power mode in Stop mode\r This bit is used to obtain the best trade-off between low-power consumption and restart time when exiting from Stop mode.\r When it is set, the Flash memory enters low-power mode when the CPU domain is in Stop mode.\r Note: When system enters stop mode with SVOS5 enabled, Flash memory is automatically forced in low-power mode." - bit_offset: 9 - bit_size: 1 - - name: BOOSTE - description: "analog switch VBOOST control\r This bit enables the booster to guarantee the analog switch AC performance when the VDD supply voltage is below 2.7 V (reduction of the total harmonic distortion to have the same switch performance over the full supply voltage range) The VDD supply voltage can be monitored through the PVD and the PLS bits." - bit_offset: 12 - bit_size: 1 - - name: AVD_READY - description: "analog voltage ready\r This bit is only used when the analog switch boost needs to be enabled (see BOOSTE bit).\r It must be set by software when the expected VDDA analog supply level is available.\r The correct analog supply level is indicated by the AVDO bit (PWR_VMSR register) after setting the AVDEN bit (PWR_VMCR register) and selecting the supply level to be monitored \t(ALS bits)." - bit_offset: 13 - bit_size: 1 - - name: ETHERNETSO - description: ETHERNET RAM shut-off in Stop mode. - bit_offset: 16 - bit_size: 1 - - name: SRAM3SO - description: AHB SRAM3 shut-off in Stop mode. - bit_offset: 23 - bit_size: 1 - - name: SRAM2_16SO - description: AHB SRAM2 16-Kbyte shut-off in Stop mode. - bit_offset: 24 - bit_size: 1 - - name: SRAM2_48SO - description: AHB SRAM2 48-Kbyte shut-off in Stop mode. - bit_offset: 25 - bit_size: 1 - - name: SRAM1SO - description: AHB SRAM1 shut-off in Stop mode - bit_offset: 26 - bit_size: 1 + - name: LPMS + description: "low-power mode selection\r This bit defines the Deepsleep mode." + bit_offset: 0 + bit_size: 1 + - name: SVOS + description: "system Stop mode voltage scaling selection\r These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance." + bit_offset: 2 + bit_size: 2 + enum: SVOS + - name: CSSF + description: "clear Standby and Stop flags (always read as 0)\r This bit is cleared to 0 by hardware." + bit_offset: 7 + bit_size: 1 + - name: FLPS + description: "Flash memory low-power mode in Stop mode\r This bit is used to obtain the best trade-off between low-power consumption and restart time when exiting from Stop mode.\r When it is set, the Flash memory enters low-power mode when the CPU domain is in Stop mode.\r Note: When system enters stop mode with SVOS5 enabled, Flash memory is automatically forced in low-power mode." + bit_offset: 9 + bit_size: 1 + - name: BOOSTE + description: "analog switch VBOOST control\r This bit enables the booster to guarantee the analog switch AC performance when the VDD supply voltage is below 2.7 V (reduction of the total harmonic distortion to have the same switch performance over the full supply voltage range) The VDD supply voltage can be monitored through the PVD and the PLS bits." + bit_offset: 12 + bit_size: 1 + - name: AVD_READY + description: "analog voltage ready\r This bit is only used when the analog switch boost needs to be enabled (see BOOSTE bit).\r It must be set by software when the expected VDDA analog supply level is available.\r The correct analog supply level is indicated by the AVDO bit (PWR_VMSR register) after setting the AVDEN bit (PWR_VMCR register) and selecting the supply level to be monitored \t(ALS bits)." + bit_offset: 13 + bit_size: 1 + - name: ETHERNETSO + description: ETHERNET RAM shut-off in Stop mode. + bit_offset: 16 + bit_size: 1 + - name: SRAM3SO + description: AHB SRAM3 shut-off in Stop mode. + bit_offset: 23 + bit_size: 1 + - name: SRAM2_16SO + description: AHB SRAM2 16-Kbyte shut-off in Stop mode. + bit_offset: 24 + bit_size: 1 + - name: SRAM2_48SO + description: AHB SRAM2 48-Kbyte shut-off in Stop mode. + bit_offset: 25 + bit_size: 1 + - name: SRAM1SO + description: AHB SRAM1 shut-off in Stop mode + bit_offset: 26 + bit_size: 1 fieldset/PMSR: description: PWR status register fields: - - name: STOPF - description: "Stop flag\r This bit is set by hardware and cleared only by any reset or by setting the CSSF bit." - bit_offset: 5 - bit_size: 1 - - name: SBF - description: "System standby flag\r This bit is set by hardware and cleared only by a POR or by setting the CSSF bit." - bit_offset: 6 - bit_size: 1 + - name: STOPF + description: "Stop flag\r This bit is set by hardware and cleared only by any reset or by setting the CSSF bit." + bit_offset: 5 + bit_size: 1 + - name: SBF + description: "System standby flag\r This bit is set by hardware and cleared only by a POR or by setting the CSSF bit." + bit_offset: 6 + bit_size: 1 fieldset/PRIVCFGR: description: PWR privilege configuration register fields: - - name: SPRIV - description: "PWR secure functions privilege configuration\r Set and reset by software. This bit can be written only by a secure privileged access." - bit_offset: 0 - bit_size: 1 - enum: PRIV - - name: NSPRIV - description: "PWR non-secure functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access, secure or non-secure." - bit_offset: 1 - bit_size: 1 - enum: PRIV + - name: SPRIV + description: "PWR secure functions privilege configuration\r Set and reset by software. This bit can be written only by a secure privileged access." + bit_offset: 0 + bit_size: 1 + enum: PRIV + - name: NSPRIV + description: "PWR non-secure functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access, secure or non-secure." + bit_offset: 1 + bit_size: 1 + enum: PRIV fieldset/SCCR: description: PWR supply configuration control register fields: - - name: BYPASS - description: power management unit bypass - bit_offset: 0 - bit_size: 1 - - name: LDOEN - description: "LDO enable \r The value is set by hardware when the package uses the LDO regulator." - bit_offset: 8 - bit_size: 1 - - name: SMPSEN - description: "SMPS enable \r The value is set by hardware when the package uses the SMPS regulator." - bit_offset: 9 - bit_size: 1 + - name: BYPASS + description: power management unit bypass + bit_offset: 0 + bit_size: 1 + - name: LDOEN + description: "LDO enable \r The value is set by hardware when the package uses the LDO regulator." + bit_offset: 8 + bit_size: 1 + - name: SMPSEN + description: "SMPS enable \r The value is set by hardware when the package uses the SMPS regulator." + bit_offset: 9 + bit_size: 1 fieldset/SECCFGR: description: PWR security configuration register fields: - - name: WUP1SEC - description: WUPx secure protection - bit_offset: 0 - bit_size: 1 - enum: SEC - - name: WUP2SEC - description: WUPx secure protection - bit_offset: 1 - bit_size: 1 - enum: SEC - - name: WUP3SEC - description: WUPx secure protection - bit_offset: 2 - bit_size: 1 - enum: SEC - - name: WUP4SEC - description: WUPx secure protection - bit_offset: 3 - bit_size: 1 - enum: SEC - - name: WUP5SEC - description: WUPx secure protection - bit_offset: 4 - bit_size: 1 - enum: SEC - - name: WUP6SEC - description: WUPx secure protection - bit_offset: 5 - bit_size: 1 - enum: SEC - - name: WUP7SEC - description: WUPx secure protection - bit_offset: 6 - bit_size: 1 - enum: SEC - - name: WUP8SEC - description: WUPx secure protection - bit_offset: 7 - bit_size: 1 - enum: SEC - - name: RETSEC - description: retention secure protection - bit_offset: 11 - bit_size: 1 - enum: SEC - - name: LPMSEC - description: low-power modes secure protection - bit_offset: 12 - bit_size: 1 - enum: SEC - - name: SCMSEC - description: supply configuration and monitoring secure protection. - bit_offset: 13 - bit_size: 1 - enum: SEC - - name: VBSEC - description: backup domain secure protection - bit_offset: 14 - bit_size: 1 - enum: SEC - - name: VUSBSEC - description: voltage USB secure protection - bit_offset: 15 - bit_size: 1 - enum: SEC + - name: WUP1SEC + description: WUPx secure protection + bit_offset: 0 + bit_size: 1 + enum: SEC + - name: WUP2SEC + description: WUPx secure protection + bit_offset: 1 + bit_size: 1 + enum: SEC + - name: WUP3SEC + description: WUPx secure protection + bit_offset: 2 + bit_size: 1 + enum: SEC + - name: WUP4SEC + description: WUPx secure protection + bit_offset: 3 + bit_size: 1 + enum: SEC + - name: WUP5SEC + description: WUPx secure protection + bit_offset: 4 + bit_size: 1 + enum: SEC + - name: WUP6SEC + description: WUPx secure protection + bit_offset: 5 + bit_size: 1 + enum: SEC + - name: WUP7SEC + description: WUPx secure protection + bit_offset: 6 + bit_size: 1 + enum: SEC + - name: WUP8SEC + description: WUPx secure protection + bit_offset: 7 + bit_size: 1 + enum: SEC + - name: RETSEC + description: retention secure protection + bit_offset: 11 + bit_size: 1 + enum: SEC + - name: LPMSEC + description: low-power modes secure protection + bit_offset: 12 + bit_size: 1 + enum: SEC + - name: SCMSEC + description: supply configuration and monitoring secure protection. + bit_offset: 13 + bit_size: 1 + enum: SEC + - name: VBSEC + description: backup domain secure protection + bit_offset: 14 + bit_size: 1 + enum: SEC + - name: VUSBSEC + description: voltage USB secure protection + bit_offset: 15 + bit_size: 1 + enum: SEC fieldset/UCPDR: description: PWR USB Type-C power delivery register fields: - - name: UCPD_DBDIS - description: "USB Type-C and power delivery dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all case, either to stop this pull-down or to hand over control to the UCPD (which should therefore be initialized before doing the disable)." - bit_offset: 0 - bit_size: 1 - - name: UCPD_STBY - description: "USB Type-c and Power delivery Standby mode\r When set, this bit is used to memorize the UCPD configuration in Standby mode. This bit must be written to 1 just before entering Standby mode when using UCPD, and it must be written to 0 after exiting the standby mode and before writing any UCPD register." - bit_offset: 1 - bit_size: 1 + - name: UCPD_DBDIS + description: "USB Type-C and power delivery dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all case, either to stop this pull-down or to hand over control to the UCPD (which should therefore be initialized before doing the disable)." + bit_offset: 0 + bit_size: 1 + - name: UCPD_STBY + description: "USB Type-c and Power delivery Standby mode\r When set, this bit is used to memorize the UCPD configuration in Standby mode. This bit must be written to 1 just before entering Standby mode when using UCPD, and it must be written to 0 after exiting the standby mode and before writing any UCPD register." + bit_offset: 1 + bit_size: 1 fieldset/USBSCR: description: PWR USB supply control register fields: - - name: USB33DEN - description: VDDUSB voltage level detector enable - bit_offset: 24 - bit_size: 1 - - name: USB33SV - description: "independent USB supply valid\r This bit is used to validate the VDDUSB supply for electrical and logical isolation purpose. Setting this bit is mandatory to use the USBFS peripheral. If VDDUSB is not always present in the application, the VDDUSB voltage monitor can be used to determine whether this supply is ready or not." - bit_offset: 25 - bit_size: 1 + - name: USB33DEN + description: VDDUSB voltage level detector enable + bit_offset: 24 + bit_size: 1 + - name: USB33SV + description: "independent USB supply valid\r This bit is used to validate the VDDUSB supply for electrical and logical isolation purpose. Setting this bit is mandatory to use the USBFS peripheral. If VDDUSB is not always present in the application, the VDDUSB voltage monitor can be used to determine whether this supply is ready or not." + bit_offset: 25 + bit_size: 1 fieldset/VMCR: description: PWR voltage monitor control register fields: - - name: PVDE - description: PVD enable - bit_offset: 0 - bit_size: 1 - - name: PLS - description: "programmable voltage detector (PVD) level selection\r These bits select the voltage threshold detected by the PVD." - bit_offset: 1 - bit_size: 3 - enum: PLS - - name: AVDEN - description: peripheral voltage monitor on VDDA enable - bit_offset: 8 - bit_size: 1 - - name: ALS - description: "analog voltage detector (AVD) level selection\r These bits select the voltage threshold detected by the AVD." - bit_offset: 9 - bit_size: 2 - enum: ALS + - name: PVDE + description: PVD enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: "programmable voltage detector (PVD) level selection\r These bits select the voltage threshold detected by the PVD." + bit_offset: 1 + bit_size: 3 + enum: PLS + - name: AVDEN + description: peripheral voltage monitor on VDDA enable + bit_offset: 8 + bit_size: 1 + - name: ALS + description: "analog voltage detector (AVD) level selection\r These bits select the voltage threshold detected by the AVD." + bit_offset: 9 + bit_size: 2 + enum: ALS fieldset/VMSR: description: PWR voltage monitor status register fields: - - name: AVDO - description: "analog voltage detector output on VDDA\r This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit.\r Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after standby or reset until the AVDEN bit is set." - bit_offset: 19 - bit_size: 1 - enum: AVDO - - name: VDDIO2RDY - description: "voltage detector output on VDDIO2\r This bit is set and cleared by hardware." - bit_offset: 20 - bit_size: 1 - - name: PVDO - description: "programmable voltage detect output\r This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit.\r Note: Since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set." - bit_offset: 22 - bit_size: 1 - enum: PVDO - - name: USB33RDY - description: VDDUSB ready - bit_offset: 24 - bit_size: 1 + - name: AVDO + description: "analog voltage detector output on VDDA\r This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit.\r Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after standby or reset until the AVDEN bit is set." + bit_offset: 19 + bit_size: 1 + enum: AVDO + - name: VDDIO2RDY + description: "voltage detector output on VDDIO2\r This bit is set and cleared by hardware." + bit_offset: 20 + bit_size: 1 + - name: PVDO + description: "programmable voltage detect output\r This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit.\r Note: Since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set." + bit_offset: 22 + bit_size: 1 + enum: PVDO + - name: USB33RDY + description: VDDUSB ready + bit_offset: 24 + bit_size: 1 fieldset/VOSCR: description: PWR voltage scaling control register fields: - - name: VOS - description: "voltage scaling selection according to performance\r These bits control the VCORE voltage level and allow to obtain the best trade-off between power consumption and performance:\r - In bypass mode, these bits must also be set according to the external provided core voltage level and related performance.\r - When increasing the performance, the voltage scaling must be changed before increasing the system frequency.\r - When decreasing performance, the system frequency must first be decreased before changing the voltage scaling." - bit_offset: 4 - bit_size: 2 - enum: VOS + - name: VOS + description: "voltage scaling selection according to performance\r These bits control the VCORE voltage level and allow to obtain the best trade-off between power consumption and performance:\r - In bypass mode, these bits must also be set according to the external provided core voltage level and related performance.\r - When increasing the performance, the voltage scaling must be changed before increasing the system frequency.\r - When decreasing performance, the system frequency must first be decreased before changing the voltage scaling." + bit_offset: 4 + bit_size: 2 + enum: VOS fieldset/VOSSR: description: PWR voltage scaling status register fields: - - name: VOSRDY - description: Ready bit for VCORE voltage scaling output selection. - bit_offset: 3 - bit_size: 1 - - name: ACTVOSRDY - description: Voltage level ready for currently used VOS - bit_offset: 13 - bit_size: 1 - - name: ACTVOS - description: "voltage output scaling currently applied to VCORE\r This field provides the last VOS value." - bit_offset: 14 - bit_size: 2 - enum: ACTVOS + - name: VOSRDY + description: Ready bit for VCORE voltage scaling output selection. + bit_offset: 3 + bit_size: 1 + - name: ACTVOSRDY + description: Voltage level ready for currently used VOS + bit_offset: 13 + bit_size: 1 + - name: ACTVOS + description: "voltage output scaling currently applied to VCORE\r This field provides the last VOS value." + bit_offset: 14 + bit_size: 2 + enum: ACTVOS fieldset/WUCR: description: PWR wakeup configuration register fields: - - name: WUPEN - description: "enable wakeup pin WUPx\r These bits are set and cleared by software.\r Note: an additional wakeup event is detected if WUPx pin is enabled (by setting the WUPENx bit) when WUPx pin level is already high when WUPPx selects rising edge, or low when WUPPx selects falling edge." - bit_offset: 0 - bit_size: 1 - array: - len: 8 - stride: 1 - - name: WUPP - description: "wakeup pin polarity bit for WUPx\r These bits define the polarity used for event detection on WUPx external wakeup pin." - bit_offset: 8 - bit_size: 1 - array: - len: 8 - stride: 1 - enum: WUPP - - name: WUPPUPD - description: "wakeup pin pull configuration for WKUPx\r These bits define the I/O pad pull configuration used when WUPENx = 1. The associated GPIO port pull configuration must be set to the same value or to 00. The wakeup pin pull configuration is kept in Standby mode." - bit_offset: 16 - bit_size: 2 - array: - len: 8 - stride: 2 - enum: WUPPUPD + - name: WUPEN + description: "enable wakeup pin WUPx\r These bits are set and cleared by software.\r Note: an additional wakeup event is detected if WUPx pin is enabled (by setting the WUPENx bit) when WUPx pin level is already high when WUPPx selects rising edge, or low when WUPPx selects falling edge." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 + - name: WUPP + description: "wakeup pin polarity bit for WUPx\r These bits define the polarity used for event detection on WUPx external wakeup pin." + bit_offset: 8 + bit_size: 1 + array: + len: 8 + stride: 1 + enum: WUPP + - name: WUPPUPD + description: "wakeup pin pull configuration for WKUPx\r These bits define the I/O pad pull configuration used when WUPENx = 1. The associated GPIO port pull configuration must be set to the same value or to 00. The wakeup pin pull configuration is kept in Standby mode." + bit_offset: 16 + bit_size: 2 + array: + len: 8 + stride: 2 + enum: WUPPUPD fieldset/WUSCR: description: PWR wakeup status clear register fields: - - name: CWUF - description: "clear wakeup pin flag for WUFx\r These bits are always read as 0." - bit_offset: 0 - bit_size: 1 - array: - len: 8 - stride: 1 + - name: CWUF + description: "clear wakeup pin flag for WUFx\r These bits are always read as 0." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 fieldset/WUSR: description: PWR wakeup status register fields: - - name: WUF - description: "wakeup pin WUFx flag\r This bit is set by hardware and cleared only by a RESET pin or by setting the CWUFx bit in PWR_WUSCR register." - bit_offset: 0 - bit_size: 1 - array: - len: 8 - stride: 1 + - name: WUF + description: "wakeup pin WUFx flag\r This bit is set by hardware and cleared only by a RESET pin or by setting the CWUFx bit in PWR_WUSCR register." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 enum/ACTVOS: bit_size: 2 variants: - - name: B_0x0 - description: VOS3 (lowest power) - value: 0 - - name: B_0x1 - description: VOS2 - value: 1 - - name: B_0x2 - description: VOS1 - value: 2 - - name: B_0x3 - description: VOS0 (highest frequency) - value: 3 + - name: B_0x0 + description: VOS3 (lowest power) + value: 0 + - name: B_0x1 + description: VOS2 + value: 1 + - name: B_0x2 + description: VOS1 + value: 2 + - name: B_0x3 + description: VOS0 (highest frequency) + value: 3 enum/ALS: bit_size: 2 variants: - - name: B_0x0 - description: 1.7 V - value: 0 - - name: B_0x1 - description: 2.1 V - value: 1 - - name: B_0x2 - description: 2.5 V - value: 2 - - name: B_0x3 - description: 2.8 V - value: 3 + - name: B_0x0 + description: 1.7 V + value: 0 + - name: B_0x1 + description: 2.1 V + value: 1 + - name: B_0x2 + description: 2.5 V + value: 2 + - name: B_0x3 + description: 2.8 V + value: 3 enum/AVDO: bit_size: 1 variants: - - name: B_0x0 - description: "VDDA is equal or higher than the AVD threshold selected with the ALS[2:0] bits." - value: 0 - - name: B_0x1 - description: "VDDA is lower than the AVD threshold selected with the ALS[2:0] bits." - value: 1 + - name: B_0x0 + description: VDDA is equal or higher than the AVD threshold selected with the ALS[2:0] bits. + value: 0 + - name: B_0x1 + description: VDDA is lower than the AVD threshold selected with the ALS[2:0] bits. + value: 1 enum/PLS: bit_size: 3 variants: - - name: B_0x0 - description: 1.95 V - value: 0 - - name: B_0x1 - description: 2.1 V - value: 1 - - name: B_0x2 - description: 2.25 V - value: 2 - - name: B_0x3 - description: 2.4 V - value: 3 - - name: B_0x4 - description: 2.55 V - value: 4 - - name: B_0x5 - description: 2.7 V - value: 5 - - name: B_0x6 - description: 2.85 V - value: 6 - - name: B_0x7 - description: PVD_IN pin - value: 7 + - name: B_0x0 + description: 1.95 V + value: 0 + - name: B_0x1 + description: 2.1 V + value: 1 + - name: B_0x2 + description: 2.25 V + value: 2 + - name: B_0x3 + description: 2.4 V + value: 3 + - name: B_0x4 + description: 2.55 V + value: 4 + - name: B_0x5 + description: 2.7 V + value: 5 + - name: B_0x6 + description: 2.85 V + value: 6 + - name: B_0x7 + description: PVD_IN pin + value: 7 enum/PRIV: bit_size: 1 variants: - - name: B_0x0 - description: Read and write to PWR secure functions can be done by privileged or unprivileged access. - value: 0 - - name: B_0x1 - description: Read and write to PWR secure functions can be done by privileged access only. - value: 1 + - name: B_0x0 + description: Read and write to PWR secure functions can be done by privileged or unprivileged access. + value: 0 + - name: B_0x1 + description: Read and write to PWR secure functions can be done by privileged access only. + value: 1 enum/PVDO: bit_size: 1 variants: - - name: B_0x0 - description: "VDD is equal or higher than the PVD threshold selected through the PLS[2:0] bits." - value: 0 - - name: B_0x1 - description: "VDD is lower than the PVD threshold selected through the PLS[2:0] bits." - value: 1 + - name: B_0x0 + description: VDD is equal or higher than the PVD threshold selected through the PLS[2:0] bits. + value: 0 + - name: B_0x1 + description: VDD is lower than the PVD threshold selected through the PLS[2:0] bits. + value: 1 enum/SEC: bit_size: 1 variants: - - name: B_0x0 - description: PWR_SCCR and PWR_VMCR can be read and written with secure or non-secure access. - value: 0 - - name: B_0x1 - description: PWR_SCCR and PWR_VMCR can be read and written only with secure access. - value: 1 + - name: B_0x0 + description: PWR_SCCR and PWR_VMCR can be read and written with secure or non-secure access. + value: 0 + - name: B_0x1 + description: PWR_SCCR and PWR_VMCR can be read and written only with secure access. + value: 1 enum/SVOS: bit_size: 2 variants: - - name: B_0x0 - description: reserved - value: 0 - - name: B_0x1 - description: SVOS5 scale 5 - value: 1 - - name: B_0x2 - description: SVOS4 scale 4 - value: 2 - - name: B_0x3 - description: SVOS3 scale 3 (default). - value: 3 + - name: B_0x0 + description: reserved + value: 0 + - name: B_0x1 + description: SVOS5 scale 5 + value: 1 + - name: B_0x2 + description: SVOS4 scale 4 + value: 2 + - name: B_0x3 + description: SVOS3 scale 3 (default). + value: 3 enum/VBRS: bit_size: 1 variants: - - name: B_0x0 - description: Charge VBAT through a 5 kΩ resistor. - value: 0 - - name: B_0x1 - description: Charge VBAT through a 1.5 kΩ resistor. - value: 1 + - name: B_0x0 + description: Charge VBAT through a 5 kΩ resistor. + value: 0 + - name: B_0x1 + description: Charge VBAT through a 1.5 kΩ resistor. + value: 1 enum/VOS: bit_size: 2 variants: - - name: Scale3 - description: scale 3 (default) - value: 0 - - name: Scale2 - description: scale 2 - value: 1 - - name: Scale1 - description: scale 1 - value: 2 - - name: Scale0 - description: scale 0 - value: 3 + - name: Scale3 + description: scale 3 (default) + value: 0 + - name: Scale2 + description: scale 2 + value: 1 + - name: Scale1 + description: scale 1 + value: 2 + - name: Scale0 + description: scale 0 + value: 3 enum/WUPP: bit_size: 1 variants: - - name: B_0x0 - description: detection on high level (rising edge) - value: 0 - - name: B_0x1 - description: detection on low level (falling edge) - value: 1 + - name: B_0x0 + description: detection on high level (rising edge) + value: 0 + - name: B_0x1 + description: detection on low level (falling edge) + value: 1 enum/WUPPUPD: bit_size: 2 variants: - - name: B_0x0 - description: no pull-up - value: 0 - - name: B_0x1 - description: pull-up - value: 1 - - name: B_0x2 - description: pull-down - value: 2 - - name: B_0x3 - description: reserved - value: 3 + - name: B_0x0 + description: no pull-up + value: 0 + - name: B_0x1 + description: pull-up + value: 1 + - name: B_0x2 + description: pull-down + value: 2 + - name: B_0x3 + description: reserved + value: 3 diff --git a/data/registers/pwr_h50.yaml b/data/registers/pwr_h50.yaml index 932e941..9b3949c 100644 --- a/data/registers/pwr_h50.yaml +++ b/data/registers/pwr_h50.yaml @@ -1,446 +1,445 @@ ---- block/PWR: description: Power control items: - - name: PMCR - description: PWR power mode control register - byte_offset: 0 - fieldset: PMCR - - name: PMSR - description: PWR status register - byte_offset: 4 - fieldset: PMSR - - name: VOSCR - description: PWR voltage scaling control register - byte_offset: 16 - fieldset: VOSCR - - name: VOSSR - description: PWR voltage scaling status register - byte_offset: 20 - fieldset: VOSSR - - name: BDCR - description: PWR Backup domain control register - byte_offset: 32 - fieldset: BDCR - - name: DBPCR - description: PWR disable backup protection control register - byte_offset: 36 - fieldset: DBPCR - - name: BDSR - description: PWR Backup domain status register - byte_offset: 40 - fieldset: BDSR - - name: SCCR - description: PWR supply configuration control register - byte_offset: 48 - fieldset: SCCR - - name: VMCR - description: PWR voltage monitor control register - byte_offset: 52 - fieldset: VMCR - - name: VMSR - description: PWR voltage monitor status register - byte_offset: 60 - fieldset: VMSR - - name: WUSCR - description: PWR wakeup status clear register - byte_offset: 64 - fieldset: WUSCR - - name: WUSR - description: PWR wakeup status register - byte_offset: 68 - fieldset: WUSR - - name: WUCR - description: PWR wakeup configuration register - byte_offset: 72 - fieldset: WUCR - - name: IORETR - description: PWR I/O retention register - byte_offset: 80 - fieldset: IORETR - - name: PRIVCFGR - description: PWR privilege configuration register - byte_offset: 260 - fieldset: PRIVCFGR + - name: PMCR + description: PWR power mode control register + byte_offset: 0 + fieldset: PMCR + - name: PMSR + description: PWR status register + byte_offset: 4 + fieldset: PMSR + - name: VOSCR + description: PWR voltage scaling control register + byte_offset: 16 + fieldset: VOSCR + - name: VOSSR + description: PWR voltage scaling status register + byte_offset: 20 + fieldset: VOSSR + - name: BDCR + description: PWR Backup domain control register + byte_offset: 32 + fieldset: BDCR + - name: DBPCR + description: PWR disable backup protection control register + byte_offset: 36 + fieldset: DBPCR + - name: BDSR + description: PWR Backup domain status register + byte_offset: 40 + fieldset: BDSR + - name: SCCR + description: PWR supply configuration control register + byte_offset: 48 + fieldset: SCCR + - name: VMCR + description: PWR voltage monitor control register + byte_offset: 52 + fieldset: VMCR + - name: VMSR + description: PWR voltage monitor status register + byte_offset: 60 + fieldset: VMSR + - name: WUSCR + description: PWR wakeup status clear register + byte_offset: 64 + fieldset: WUSCR + - name: WUSR + description: PWR wakeup status register + byte_offset: 68 + fieldset: WUSR + - name: WUCR + description: PWR wakeup configuration register + byte_offset: 72 + fieldset: WUCR + - name: IORETR + description: PWR I/O retention register + byte_offset: 80 + fieldset: IORETR + - name: PRIVCFGR + description: PWR privilege configuration register + byte_offset: 260 + fieldset: PRIVCFGR fieldset/BDCR: description: PWR Backup domain control register fields: - - name: BREN - description: "Backup RAM retention in Standby and VBAT modes\r When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled.\r If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in \tRun and Stop modes. However its content is lost in Standby and VBAT modes.\r If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and VBAT modes." - bit_offset: 0 - bit_size: 1 - - name: MONEN - description: Backup domain voltage and temperature monitoring enable - bit_offset: 1 - bit_size: 1 - - name: VBE - description: "VBAT charging enable\r Note: Reset only by POR,." - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT charging resistor selection - bit_offset: 9 - bit_size: 1 - enum: VBRS + - name: BREN + description: "Backup RAM retention in Standby and VBAT modes\r When this bit set, the backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled.\r If BREN is cleared, the backup regulator is switched off. The backup RAM can still be used in \tRun and Stop modes. However its content is lost in Standby and VBAT modes.\r If BREN is set, the application must wait till the backup regulator ready flag (BRRDY) is set to indicate that the data written into the SRAM is maintained in Standby and VBAT modes." + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: Backup domain voltage and temperature monitoring enable + bit_offset: 1 + bit_size: 1 + - name: VBE + description: "VBAT charging enable\r Note: Reset only by POR,." + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 9 + bit_size: 1 + enum: VBRS fieldset/BDSR: description: PWR Backup domain status register fields: - - name: BRRDY - description: "backup regulator ready\r This bit is set by hardware to indicate that the backup regulator is ready." - bit_offset: 16 - bit_size: 1 - - name: VBATL - description: VBAT level monitoring versus low threshold - bit_offset: 20 - bit_size: 1 - - name: VBATH - description: VBAT level monitoring versus high threshold - bit_offset: 21 - bit_size: 1 - - name: TEMPL - description: temperature level monitoring versus low threshold - bit_offset: 22 - bit_size: 1 - - name: TEMPH - description: temperature level monitoring versus high threshold - bit_offset: 23 - bit_size: 1 + - name: BRRDY + description: "backup regulator ready\r This bit is set by hardware to indicate that the backup regulator is ready." + bit_offset: 16 + bit_size: 1 + - name: VBATL + description: VBAT level monitoring versus low threshold + bit_offset: 20 + bit_size: 1 + - name: VBATH + description: VBAT level monitoring versus high threshold + bit_offset: 21 + bit_size: 1 + - name: TEMPL + description: temperature level monitoring versus low threshold + bit_offset: 22 + bit_size: 1 + - name: TEMPH + description: temperature level monitoring versus high threshold + bit_offset: 23 + bit_size: 1 fieldset/DBPCR: description: PWR disable backup protection control register fields: - - name: DBP - description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write \taccess. This bit must be set to enable write access to these registers." - bit_offset: 0 - bit_size: 1 + - name: DBP + description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write \taccess. This bit must be set to enable write access to these registers." + bit_offset: 0 + bit_size: 1 fieldset/IORETR: description: PWR I/O retention register fields: - - name: IORETEN - description: "IO retention enable:\r When entering into standby mode, the output is sampled, and applied to the output IO during the standby power mode. \r Note: the IO state is not retained if the DBG_STANDBY bit is set in DBGMCU_CR register." - bit_offset: 0 - bit_size: 1 - - name: JTAGIORETEN - description: "IO retention enable for JTAG IOs\r when entering into standby mode, the output is sampled, and applied to the output IO during the standby power mode" - bit_offset: 16 - bit_size: 1 + - name: IORETEN + description: "IO retention enable:\r When entering into standby mode, the output is sampled, and applied to the output IO during the standby power mode. \r Note: the IO state is not retained if the DBG_STANDBY bit is set in DBGMCU_CR register." + bit_offset: 0 + bit_size: 1 + - name: JTAGIORETEN + description: "IO retention enable for JTAG IOs\r when entering into standby mode, the output is sampled, and applied to the output IO during the standby power mode" + bit_offset: 16 + bit_size: 1 fieldset/PMCR: description: PWR power mode control register fields: - - name: LPMS - description: "low-power mode selection\r This bit defines the Deepsleep mode." - bit_offset: 0 - bit_size: 1 - - name: SVOS - description: "system Stop mode voltage scaling selection\r These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance." - bit_offset: 2 - bit_size: 2 - enum: SVOS - - name: CSSF - description: "clear Standby and Stop flags (always read as 0)\r This bit is cleared to 0 by hardware." - bit_offset: 7 - bit_size: 1 - - name: FLPS - description: "Flash memory low-power mode in Stop mode\r This bit is used to obtain the best trade-off between low-power consumption and restart time when exiting from Stop mode.\r When it is set, the Flash memory enters low-power mode when the CPU domain is in Stop mode.\r Note: When system enters stop mode with SVOS5 enabled, Flash memory is automatically forced in low-power mode." - bit_offset: 9 - bit_size: 1 - - name: BOOSTE - description: "analog switch VBOOST control\r This bit enables the booster to guarantee the analog switch AC performance when the VDD supply voltage is below 2.7 V (reduction of the total harmonic distortion to have the same switch performance over the full supply voltage range) The VDD supply voltage can be monitored through the PVD and the PLS bits." - bit_offset: 12 - bit_size: 1 - - name: AVD_READY - description: "analog voltage ready\r This bit is only used when the analog switch boost needs to be enabled (see BOOSTE bit).\r It must be set by software when the expected VDDA analog supply level is available.\r The correct analog supply level is indicated by the AVDO bit (PWR_VMSR register) after setting the AVDEN bit (PWR_VMCR register) and selecting the supply level to be monitored \t(ALS bits)." - bit_offset: 13 - bit_size: 1 - - name: SRAM2SO - description: AHB SRAM2 shut-off in Stop mode. - bit_offset: 25 - bit_size: 1 - - name: SRAM1SO - description: AHB SRAM1 shut-off in Stop mode - bit_offset: 26 - bit_size: 1 + - name: LPMS + description: "low-power mode selection\r This bit defines the Deepsleep mode." + bit_offset: 0 + bit_size: 1 + - name: SVOS + description: "system Stop mode voltage scaling selection\r These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance." + bit_offset: 2 + bit_size: 2 + enum: SVOS + - name: CSSF + description: "clear Standby and Stop flags (always read as 0)\r This bit is cleared to 0 by hardware." + bit_offset: 7 + bit_size: 1 + - name: FLPS + description: "Flash memory low-power mode in Stop mode\r This bit is used to obtain the best trade-off between low-power consumption and restart time when exiting from Stop mode.\r When it is set, the Flash memory enters low-power mode when the CPU domain is in Stop mode.\r Note: When system enters stop mode with SVOS5 enabled, Flash memory is automatically forced in low-power mode." + bit_offset: 9 + bit_size: 1 + - name: BOOSTE + description: "analog switch VBOOST control\r This bit enables the booster to guarantee the analog switch AC performance when the VDD supply voltage is below 2.7 V (reduction of the total harmonic distortion to have the same switch performance over the full supply voltage range) The VDD supply voltage can be monitored through the PVD and the PLS bits." + bit_offset: 12 + bit_size: 1 + - name: AVD_READY + description: "analog voltage ready\r This bit is only used when the analog switch boost needs to be enabled (see BOOSTE bit).\r It must be set by software when the expected VDDA analog supply level is available.\r The correct analog supply level is indicated by the AVDO bit (PWR_VMSR register) after setting the AVDEN bit (PWR_VMCR register) and selecting the supply level to be monitored \t(ALS bits)." + bit_offset: 13 + bit_size: 1 + - name: SRAM2SO + description: AHB SRAM2 shut-off in Stop mode. + bit_offset: 25 + bit_size: 1 + - name: SRAM1SO + description: AHB SRAM1 shut-off in Stop mode + bit_offset: 26 + bit_size: 1 fieldset/PMSR: description: PWR status register fields: - - name: STOPF - description: "Stop flag\r This bit is set by hardware and cleared only by any reset or by setting the CSSF bit." - bit_offset: 5 - bit_size: 1 - - name: SBF - description: "System standby flag\r This bit is set by hardware and cleared only by a POR or by setting the CSSF bit." - bit_offset: 6 - bit_size: 1 + - name: STOPF + description: "Stop flag\r This bit is set by hardware and cleared only by any reset or by setting the CSSF bit." + bit_offset: 5 + bit_size: 1 + - name: SBF + description: "System standby flag\r This bit is set by hardware and cleared only by a POR or by setting the CSSF bit." + bit_offset: 6 + bit_size: 1 fieldset/PRIVCFGR: description: PWR privilege configuration register fields: - - name: NSPRIV - description: "PWR functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access." - bit_offset: 1 - bit_size: 1 - enum: PRIV + - name: NSPRIV + description: "PWR functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access." + bit_offset: 1 + bit_size: 1 + enum: PRIV fieldset/SCCR: description: PWR supply configuration control register fields: - - name: BYPASS - description: power management unit bypass - bit_offset: 0 - bit_size: 1 - - name: LDOEN - description: "LDO enable \r The value is set by hardware when the package uses the LDO regulator." - bit_offset: 8 - bit_size: 1 + - name: BYPASS + description: power management unit bypass + bit_offset: 0 + bit_size: 1 + - name: LDOEN + description: "LDO enable \r The value is set by hardware when the package uses the LDO regulator." + bit_offset: 8 + bit_size: 1 fieldset/VMCR: description: PWR voltage monitor control register fields: - - name: PVDE - description: PVD enable - bit_offset: 0 - bit_size: 1 - - name: PLS - description: "programmable voltage detector (PVD) level selection\r These bits select the voltage threshold detected by the PVD." - bit_offset: 1 - bit_size: 3 - enum: PLS - - name: AVDEN - description: peripheral voltage monitor on VDDA enable - bit_offset: 8 - bit_size: 1 - - name: ALS - description: "analog voltage detector (AVD) level selection\r These bits select the voltage threshold detected by the AVD." - bit_offset: 9 - bit_size: 2 - enum: ALS + - name: PVDE + description: PVD enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: "programmable voltage detector (PVD) level selection\r These bits select the voltage threshold detected by the PVD." + bit_offset: 1 + bit_size: 3 + enum: PLS + - name: AVDEN + description: peripheral voltage monitor on VDDA enable + bit_offset: 8 + bit_size: 1 + - name: ALS + description: "analog voltage detector (AVD) level selection\r These bits select the voltage threshold detected by the AVD." + bit_offset: 9 + bit_size: 2 + enum: ALS fieldset/VMSR: description: PWR voltage monitor status register fields: - - name: AVDO - description: "analog voltage detector output on VDDA\r This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit.\r Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after standby or reset until the AVDEN bit is set." - bit_offset: 19 - bit_size: 1 - enum: AVDO - - name: VDDIO2RDY - description: "voltage detector output on VDDIO2\r This bit is set and cleared by hardware." - bit_offset: 20 - bit_size: 1 - - name: PVDO - description: "programmable voltage detect output\r This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit.\r Note: Since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set." - bit_offset: 22 - bit_size: 1 - enum: PVDO + - name: AVDO + description: "analog voltage detector output on VDDA\r This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit.\r Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after standby or reset until the AVDEN bit is set." + bit_offset: 19 + bit_size: 1 + enum: AVDO + - name: VDDIO2RDY + description: "voltage detector output on VDDIO2\r This bit is set and cleared by hardware." + bit_offset: 20 + bit_size: 1 + - name: PVDO + description: "programmable voltage detect output\r This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit.\r Note: Since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set." + bit_offset: 22 + bit_size: 1 + enum: PVDO fieldset/VOSCR: description: PWR voltage scaling control register fields: - - name: VOS - description: "voltage scaling selection according to performance\r These bits control the VCORE voltage level and allow to obtain the best trade-off between power consumption and performance:\r - In bypass mode, these bits must also be set according to the external provided core voltage level and related performance.\r - When increasing the performance, the voltage scaling must be changed before increasing the system frequency.\r - When decreasing performance, the system frequency must first be decreased before changing the voltage scaling." - bit_offset: 4 - bit_size: 2 - enum: VOS + - name: VOS + description: "voltage scaling selection according to performance\r These bits control the VCORE voltage level and allow to obtain the best trade-off between power consumption and performance:\r - In bypass mode, these bits must also be set according to the external provided core voltage level and related performance.\r - When increasing the performance, the voltage scaling must be changed before increasing the system frequency.\r - When decreasing performance, the system frequency must first be decreased before changing the voltage scaling." + bit_offset: 4 + bit_size: 2 + enum: VOS fieldset/VOSSR: description: PWR voltage scaling status register fields: - - name: VOSRDY - description: Ready bit for VCORE voltage scaling output selection. - bit_offset: 3 - bit_size: 1 - - name: ACTVOSRDY - description: Voltage level ready for currently used VOS - bit_offset: 13 - bit_size: 1 - - name: ACTVOS - description: "voltage output scaling currently applied to VCORE\r This field provides the last VOS value." - bit_offset: 14 - bit_size: 2 - enum: ACTVOS + - name: VOSRDY + description: Ready bit for VCORE voltage scaling output selection. + bit_offset: 3 + bit_size: 1 + - name: ACTVOSRDY + description: Voltage level ready for currently used VOS + bit_offset: 13 + bit_size: 1 + - name: ACTVOS + description: "voltage output scaling currently applied to VCORE\r This field provides the last VOS value." + bit_offset: 14 + bit_size: 2 + enum: ACTVOS fieldset/WUCR: description: PWR wakeup configuration register fields: - - name: WUPEN - description: "enable wakeup pin WUPx\r These bits are set and cleared by software.\r Note: an additional wakeup event is detected if WUPx pin is enabled (by setting the WUPENx bit) when WUPx pin level is already high when WUPPx selects rising edge, or low when WUPPx selects falling edge." - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: WUPP - description: "wakeup pin polarity bit for WUPx\r These bits define the polarity used for event detection on WUPx external wakeup pin." - bit_offset: 8 - bit_size: 1 - array: - len: 5 - stride: 1 - enum: WUPP - - name: WUPPUPD - description: "wakeup pin pull configuration for WKUPx\r These bits define the I/O pad pull configuration used when WUPENx = 1. The associated GPIO port pull configuration must be set to the same value or to 00. The wakeup pin pull configuration is kept in Standby mode." - bit_offset: 16 - bit_size: 2 - array: - len: 5 - stride: 2 - enum: WUPPUPD + - name: WUPEN + description: "enable wakeup pin WUPx\r These bits are set and cleared by software.\r Note: an additional wakeup event is detected if WUPx pin is enabled (by setting the WUPENx bit) when WUPx pin level is already high when WUPPx selects rising edge, or low when WUPPx selects falling edge." + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: WUPP + description: "wakeup pin polarity bit for WUPx\r These bits define the polarity used for event detection on WUPx external wakeup pin." + bit_offset: 8 + bit_size: 1 + array: + len: 5 + stride: 1 + enum: WUPP + - name: WUPPUPD + description: "wakeup pin pull configuration for WKUPx\r These bits define the I/O pad pull configuration used when WUPENx = 1. The associated GPIO port pull configuration must be set to the same value or to 00. The wakeup pin pull configuration is kept in Standby mode." + bit_offset: 16 + bit_size: 2 + array: + len: 5 + stride: 2 + enum: WUPPUPD fieldset/WUSCR: description: PWR wakeup status clear register fields: - - name: CWUF - description: "clear wakeup pin flag for WUFx\r These bits are always read as 0." - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 + - name: CWUF + description: "clear wakeup pin flag for WUFx\r These bits are always read as 0." + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 fieldset/WUSR: description: PWR wakeup status register fields: - - name: WUF - description: "wakeup pin WUFx flag\r This bit is set by hardware and cleared only by a RESET pin or by setting the CWUFx bit in PWR_WUSCR register." - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 + - name: WUF + description: "wakeup pin WUFx flag\r This bit is set by hardware and cleared only by a RESET pin or by setting the CWUFx bit in PWR_WUSCR register." + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 enum/ACTVOS: bit_size: 2 variants: - - name: B_0x0 - description: VOS3 (lowest power) - value: 0 - - name: B_0x1 - description: VOS2 - value: 1 - - name: B_0x2 - description: VOS1 - value: 2 - - name: B_0x3 - description: VOS0 (highest frequency) - value: 3 + - name: B_0x0 + description: VOS3 (lowest power) + value: 0 + - name: B_0x1 + description: VOS2 + value: 1 + - name: B_0x2 + description: VOS1 + value: 2 + - name: B_0x3 + description: VOS0 (highest frequency) + value: 3 enum/ALS: bit_size: 2 variants: - - name: B_0x0 - description: 1.7 V - value: 0 - - name: B_0x1 - description: 2.1 V - value: 1 - - name: B_0x2 - description: 2.5 V - value: 2 - - name: B_0x3 - description: 2.8 V - value: 3 + - name: B_0x0 + description: 1.7 V + value: 0 + - name: B_0x1 + description: 2.1 V + value: 1 + - name: B_0x2 + description: 2.5 V + value: 2 + - name: B_0x3 + description: 2.8 V + value: 3 enum/AVDO: bit_size: 1 variants: - - name: B_0x0 - description: "VDDA is equal or higher than the AVD threshold selected with the ALS[2:0] bits." - value: 0 - - name: B_0x1 - description: "VDDA is lower than the AVD threshold selected with the ALS[2:0] bits." - value: 1 + - name: B_0x0 + description: VDDA is equal or higher than the AVD threshold selected with the ALS[2:0] bits. + value: 0 + - name: B_0x1 + description: VDDA is lower than the AVD threshold selected with the ALS[2:0] bits. + value: 1 enum/PLS: bit_size: 3 variants: - - name: B_0x0 - description: 1.95 V - value: 0 - - name: B_0x1 - description: 2.1 V - value: 1 - - name: B_0x2 - description: 2.25 V - value: 2 - - name: B_0x3 - description: 2.4 V - value: 3 - - name: B_0x4 - description: 2.55 V - value: 4 - - name: B_0x5 - description: 2.7 V - value: 5 - - name: B_0x6 - description: 2.85 V - value: 6 - - name: B_0x7 - description: PVD_IN pin - value: 7 + - name: B_0x0 + description: 1.95 V + value: 0 + - name: B_0x1 + description: 2.1 V + value: 1 + - name: B_0x2 + description: 2.25 V + value: 2 + - name: B_0x3 + description: 2.4 V + value: 3 + - name: B_0x4 + description: 2.55 V + value: 4 + - name: B_0x5 + description: 2.7 V + value: 5 + - name: B_0x6 + description: 2.85 V + value: 6 + - name: B_0x7 + description: PVD_IN pin + value: 7 enum/PRIV: bit_size: 1 variants: - - name: B_0x0 - description: Read and write to PWR functions can be done by privileged or unprivileged access. - value: 0 - - name: B_0x1 - description: Read and write to PWR functions can be done by privileged access only. - value: 1 + - name: B_0x0 + description: Read and write to PWR functions can be done by privileged or unprivileged access. + value: 0 + - name: B_0x1 + description: Read and write to PWR functions can be done by privileged access only. + value: 1 enum/PVDO: bit_size: 1 variants: - - name: B_0x0 - description: "VDD is equal or higher than the PVD threshold selected through the PLS[2:0] bits." - value: 0 - - name: B_0x1 - description: "VDD is lower than the PVD threshold selected through the PLS[2:0] bits." - value: 1 + - name: B_0x0 + description: VDD is equal or higher than the PVD threshold selected through the PLS[2:0] bits. + value: 0 + - name: B_0x1 + description: VDD is lower than the PVD threshold selected through the PLS[2:0] bits. + value: 1 enum/SVOS: bit_size: 2 variants: - - name: B_0x0 - description: reserved - value: 0 - - name: B_0x1 - description: SVOS5 scale 5 - value: 1 - - name: B_0x2 - description: SVOS4 scale 4 - value: 2 - - name: B_0x3 - description: SVOS3 scale 3 (default). - value: 3 + - name: B_0x0 + description: reserved + value: 0 + - name: B_0x1 + description: SVOS5 scale 5 + value: 1 + - name: B_0x2 + description: SVOS4 scale 4 + value: 2 + - name: B_0x3 + description: SVOS3 scale 3 (default). + value: 3 enum/VBRS: bit_size: 1 variants: - - name: B_0x0 - description: Charge VBAT through a 5 kΩ resistor. - value: 0 - - name: B_0x1 - description: Charge VBAT through a 1.5 kΩ resistor. - value: 1 + - name: B_0x0 + description: Charge VBAT through a 5 kΩ resistor. + value: 0 + - name: B_0x1 + description: Charge VBAT through a 1.5 kΩ resistor. + value: 1 enum/VOS: bit_size: 2 variants: - - name: Scale3 - description: scale 3 (default) - value: 0 - - name: Scale2 - description: scale 2 - value: 1 - - name: Scale1 - description: scale 1 - value: 2 - - name: Scale0 - description: scale 0 - value: 3 + - name: Scale3 + description: scale 3 (default) + value: 0 + - name: Scale2 + description: scale 2 + value: 1 + - name: Scale1 + description: scale 1 + value: 2 + - name: Scale0 + description: scale 0 + value: 3 enum/WUPP: bit_size: 1 variants: - - name: B_0x0 - description: detection on high level (rising edge) - value: 0 - - name: B_0x1 - description: detection on low level (falling edge) - value: 1 + - name: B_0x0 + description: detection on high level (rising edge) + value: 0 + - name: B_0x1 + description: detection on low level (falling edge) + value: 1 enum/WUPPUPD: bit_size: 2 variants: - - name: B_0x0 - description: no pull-up - value: 0 - - name: B_0x1 - description: pull-up - value: 1 - - name: B_0x2 - description: pull-down - value: 2 - - name: B_0x3 - description: reserved - value: 3 + - name: B_0x0 + description: no pull-up + value: 0 + - name: B_0x1 + description: pull-up + value: 1 + - name: B_0x2 + description: pull-down + value: 2 + - name: B_0x3 + description: reserved + value: 3 diff --git a/data/registers/pwr_h7.yaml b/data/registers/pwr_h7.yaml index 9649635..44f6fd3 100644 --- a/data/registers/pwr_h7.yaml +++ b/data/registers/pwr_h7.yaml @@ -1,252 +1,251 @@ ---- block/PWR: description: PWR items: - - name: CR1 - description: PWR control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CSR1 - description: PWR control status register 1 - byte_offset: 4 - access: Read - fieldset: CSR1 - - name: CR2 - description: "This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection." - byte_offset: 8 - fieldset: CR2 - - name: CR3 - description: "Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value." - byte_offset: 12 - fieldset: CR3 - - name: CPUCR - description: This register allows controlling CPU1 power. - byte_offset: 16 - fieldset: CPUCR - - name: D3CR - description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software - byte_offset: 24 - fieldset: D3CR - - name: WKUPCR - description: "reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared)." - byte_offset: 32 - fieldset: WKUPCR - - name: WKUPFR - description: "reset only by system reset, not reset by wakeup from Standby mode" - byte_offset: 36 - fieldset: WKUPFR - - name: WKUPEPR - description: "Reset only by system reset, not reset by wakeup from Standby mode" - byte_offset: 40 - fieldset: WKUPEPR + - name: CR1 + description: PWR control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CSR1 + description: PWR control status register 1 + byte_offset: 4 + access: Read + fieldset: CSR1 + - name: CR2 + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. + byte_offset: 8 + fieldset: CR2 + - name: CR3 + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' + byte_offset: 12 + fieldset: CR3 + - name: CPUCR + description: This register allows controlling CPU1 power. + byte_offset: 16 + fieldset: CPUCR + - name: D3CR + description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software + byte_offset: 24 + fieldset: D3CR + - name: WKUPCR + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). + byte_offset: 32 + fieldset: WKUPCR + - name: WKUPFR + description: reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 36 + fieldset: WKUPFR + - name: WKUPEPR + description: Reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 40 + fieldset: WKUPEPR fieldset/CPUCR: description: This register allows controlling CPU1 power. fields: - - name: PDDS_D1 - description: D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain. - bit_offset: 0 - bit_size: 1 - - name: PDDS_D2 - description: D2 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for D2 domain. - bit_offset: 1 - bit_size: 1 - - name: PDDS_D3 - description: System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain. - bit_offset: 2 - bit_size: 1 - - name: STOPF - description: STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit. - bit_offset: 5 - bit_size: 1 - - name: SBF - description: System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU1 CSSF bit - bit_offset: 6 - bit_size: 1 - - name: SBF_D1 - description: "D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode." - bit_offset: 7 - bit_size: 1 - - name: SBF_D2 - description: "D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode." - bit_offset: 8 - bit_size: 1 - - name: CSSF - description: "Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware." - bit_offset: 9 - bit_size: 1 - - name: RUN_D3 - description: Keep system D3 domain in Run mode regardless of the CPU sub-systems modes - bit_offset: 11 - bit_size: 1 + - name: PDDS_D1 + description: D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain. + bit_offset: 0 + bit_size: 1 + - name: PDDS_D2 + description: D2 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for D2 domain. + bit_offset: 1 + bit_size: 1 + - name: PDDS_D3 + description: System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain. + bit_offset: 2 + bit_size: 1 + - name: STOPF + description: STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit. + bit_offset: 5 + bit_size: 1 + - name: SBF + description: System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU1 CSSF bit + bit_offset: 6 + bit_size: 1 + - name: SBF_D1 + description: D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode. + bit_offset: 7 + bit_size: 1 + - name: SBF_D2 + description: D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode. + bit_offset: 8 + bit_size: 1 + - name: CSSF + description: Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware. + bit_offset: 9 + bit_size: 1 + - name: RUN_D3 + description: Keep system D3 domain in Run mode regardless of the CPU sub-systems modes + bit_offset: 11 + bit_size: 1 fieldset/CR1: description: PWR control register 1 fields: - - name: LPDS - description: "Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit)" - bit_offset: 0 - bit_size: 1 - - name: PVDE - description: Programmable voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: "Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details." - bit_offset: 5 - bit_size: 3 - - name: DBP - description: "Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers." - bit_offset: 8 - bit_size: 1 - - name: FLPS - description: "Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode." - bit_offset: 9 - bit_size: 1 - - name: SVOS - description: "System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance." - bit_offset: 14 - bit_size: 2 - - name: AVDEN - description: Peripheral voltage monitor on VDDA enable - bit_offset: 16 - bit_size: 1 - - name: ALS - description: Analog voltage detector level selection These bits select the voltage threshold detected by the AVD. - bit_offset: 17 - bit_size: 2 + - name: LPDS + description: Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit) + bit_offset: 0 + bit_size: 1 + - name: PVDE + description: Programmable voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: 'Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.' + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers. + bit_offset: 8 + bit_size: 1 + - name: FLPS + description: Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode. + bit_offset: 9 + bit_size: 1 + - name: SVOS + description: System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance. + bit_offset: 14 + bit_size: 2 + - name: AVDEN + description: Peripheral voltage monitor on VDDA enable + bit_offset: 16 + bit_size: 1 + - name: ALS + description: Analog voltage detector level selection These bits select the voltage threshold detected by the AVD. + bit_offset: 17 + bit_size: 2 fieldset/CR2: - description: "This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection." + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. fields: - - name: BREN - description: "Backup regulator enable When set, the Backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled. If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However, its content will be lost in Standby and VBAT modes. If BREN is set, the application must wait till the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM will be maintained in Standby and VBAT modes." - bit_offset: 0 - bit_size: 1 - - name: MONEN - description: "VBAT and temperature monitoring enable When set, the VBAT supply and temperature monitoring is enabled." - bit_offset: 4 - bit_size: 1 - - name: BRRDY - description: Backup regulator ready This bit is set by hardware to indicate that the Backup regulator is ready. - bit_offset: 16 - bit_size: 1 - - name: VBATL - description: VBAT level monitoring versus low threshold - bit_offset: 20 - bit_size: 1 - - name: VBATH - description: VBAT level monitoring versus high threshold - bit_offset: 21 - bit_size: 1 - - name: TEMPL - description: Temperature level monitoring versus low threshold - bit_offset: 22 - bit_size: 1 - - name: TEMPH - description: Temperature level monitoring versus high threshold - bit_offset: 23 - bit_size: 1 + - name: BREN + description: Backup regulator enable When set, the Backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled. If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However, its content will be lost in Standby and VBAT modes. If BREN is set, the application must wait till the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM will be maintained in Standby and VBAT modes. + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: VBAT and temperature monitoring enable When set, the VBAT supply and temperature monitoring is enabled. + bit_offset: 4 + bit_size: 1 + - name: BRRDY + description: Backup regulator ready This bit is set by hardware to indicate that the Backup regulator is ready. + bit_offset: 16 + bit_size: 1 + - name: VBATL + description: VBAT level monitoring versus low threshold + bit_offset: 20 + bit_size: 1 + - name: VBATH + description: VBAT level monitoring versus high threshold + bit_offset: 21 + bit_size: 1 + - name: TEMPL + description: Temperature level monitoring versus low threshold + bit_offset: 22 + bit_size: 1 + - name: TEMPH + description: Temperature level monitoring versus high threshold + bit_offset: 23 + bit_size: 1 fieldset/CR3: - description: "Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value." + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' fields: - - name: BYPASS - description: Power management unit bypass - bit_offset: 0 - bit_size: 1 - - name: LDOEN - description: Low drop-out regulator enable - bit_offset: 1 - bit_size: 1 - - name: SCUEN - description: SD converter Enable - bit_offset: 2 - bit_size: 1 - - name: VBE - description: VBAT charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT charging resistor selection - bit_offset: 9 - bit_size: 1 - - name: USB33DEN - description: VDD33USB voltage level detector enable. - bit_offset: 24 - bit_size: 1 - - name: USBREGEN - description: USB regulator enable. - bit_offset: 25 - bit_size: 1 - - name: USB33RDY - description: USB supply ready. - bit_offset: 26 - bit_size: 1 + - name: BYPASS + description: Power management unit bypass + bit_offset: 0 + bit_size: 1 + - name: LDOEN + description: Low drop-out regulator enable + bit_offset: 1 + bit_size: 1 + - name: SCUEN + description: SD converter Enable + bit_offset: 2 + bit_size: 1 + - name: VBE + description: VBAT charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: USB33DEN + description: VDD33USB voltage level detector enable. + bit_offset: 24 + bit_size: 1 + - name: USBREGEN + description: USB regulator enable. + bit_offset: 25 + bit_size: 1 + - name: USB33RDY + description: USB supply ready. + bit_offset: 26 + bit_size: 1 fieldset/CSR1: description: PWR control status register 1 fields: - - name: PVDO - description: "Programmable voltage detect output This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit. Note: since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set." - bit_offset: 4 - bit_size: 1 - - name: ACTVOSRDY - description: Voltage levels ready bit for currently used VOS and SDLEVEL This bit is set to 1 by hardware when the voltage regulator and the SD converter are both disabled and Bypass mode is selected in PWR control register 3 (PWR_CR3). - bit_offset: 13 - bit_size: 1 - - name: ACTVOS - description: VOS currently applied for VCORE voltage scaling selection. These bits reflect the last VOS value applied to the PMU. - bit_offset: 14 - bit_size: 2 - - name: AVDO - description: "Analog voltage detector output on VDDA This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit. Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the AVDEN bit is set." - bit_offset: 16 - bit_size: 1 + - name: PVDO + description: 'Programmable voltage detect output This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit. Note: since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set.' + bit_offset: 4 + bit_size: 1 + - name: ACTVOSRDY + description: Voltage levels ready bit for currently used VOS and SDLEVEL This bit is set to 1 by hardware when the voltage regulator and the SD converter are both disabled and Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: ACTVOS + description: VOS currently applied for VCORE voltage scaling selection. These bits reflect the last VOS value applied to the PMU. + bit_offset: 14 + bit_size: 2 + - name: AVDO + description: 'Analog voltage detector output on VDDA This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit. Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the AVDEN bit is set.' + bit_offset: 16 + bit_size: 1 fieldset/D3CR: description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software fields: - - name: VOSRDY - description: VOS Ready bit for VCORE voltage scaling output selection. This bit is set to 1 by hardware when Bypass mode is selected in PWR control register 3 (PWR_CR3). - bit_offset: 13 - bit_size: 1 - - name: VOS - description: "Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling." - bit_offset: 14 - bit_size: 2 + - name: VOSRDY + description: VOS Ready bit for VCORE voltage scaling output selection. This bit is set to 1 by hardware when Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: VOS + description: 'Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling.' + bit_offset: 14 + bit_size: 2 fieldset/WKUPCR: - description: "reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared)." + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). fields: - - name: WKUPC - description: Clear Wakeup pin flag for WKUP. These bits are always read as 0. - bit_offset: 0 - bit_size: 6 + - name: WKUPC + description: Clear Wakeup pin flag for WKUP. These bits are always read as 0. + bit_offset: 0 + bit_size: 6 fieldset/WKUPEPR: - description: "Reset only by system reset, not reset by wakeup from Standby mode" + description: Reset only by system reset, not reset by wakeup from Standby mode fields: - - name: WKUPEN - description: "Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge." - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: WKUPP - description: Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin. - bit_offset: 8 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: WKUPPUPD - description: Wakeup pin pull configuration - bit_offset: 16 - bit_size: 2 - array: - len: 6 - stride: 2 + - name: WKUPEN + description: 'Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.' + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPP + description: Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin. + bit_offset: 8 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPPUPD + description: Wakeup pin pull configuration + bit_offset: 16 + bit_size: 2 + array: + len: 6 + stride: 2 fieldset/WKUPFR: - description: "reset only by system reset, not reset by wakeup from Standby mode" + description: reset only by system reset, not reset by wakeup from Standby mode fields: - - name: WKUPF - description: Wakeup pin WKUPF flag. This bit is set by hardware and cleared only by a Reset pin or by setting the WKUPCn+1 bit in the PWR wakeup clear register (PWR_WKUPCR). - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: WKUPF + description: Wakeup pin WKUPF flag. This bit is set by hardware and cleared only by a Reset pin or by setting the WKUPCn+1 bit in the PWR wakeup clear register (PWR_WKUPCR). + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 diff --git a/data/registers/pwr_h7smps.yaml b/data/registers/pwr_h7smps.yaml index 49cc3b8..5d6032c 100644 --- a/data/registers/pwr_h7smps.yaml +++ b/data/registers/pwr_h7smps.yaml @@ -1,264 +1,263 @@ ---- block/PWR: description: PWR items: - - name: CR1 - description: PWR control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CSR1 - description: PWR control status register 1 - byte_offset: 4 - access: Read - fieldset: CSR1 - - name: CR2 - description: "This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection." - byte_offset: 8 - fieldset: CR2 - - name: CR3 - description: "Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value." - byte_offset: 12 - fieldset: CR3 - - name: CPUCR - description: This register allows controlling CPU1 power. - byte_offset: 16 - fieldset: CPUCR - - name: D3CR - description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software - byte_offset: 24 - fieldset: D3CR - - name: WKUPCR - description: "reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared)." - byte_offset: 32 - fieldset: WKUPCR - - name: WKUPFR - description: "reset only by system reset, not reset by wakeup from Standby mode" - byte_offset: 36 - fieldset: WKUPFR - - name: WKUPEPR - description: "Reset only by system reset, not reset by wakeup from Standby mode" - byte_offset: 40 - fieldset: WKUPEPR + - name: CR1 + description: PWR control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CSR1 + description: PWR control status register 1 + byte_offset: 4 + access: Read + fieldset: CSR1 + - name: CR2 + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. + byte_offset: 8 + fieldset: CR2 + - name: CR3 + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' + byte_offset: 12 + fieldset: CR3 + - name: CPUCR + description: This register allows controlling CPU1 power. + byte_offset: 16 + fieldset: CPUCR + - name: D3CR + description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software + byte_offset: 24 + fieldset: D3CR + - name: WKUPCR + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). + byte_offset: 32 + fieldset: WKUPCR + - name: WKUPFR + description: reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 36 + fieldset: WKUPFR + - name: WKUPEPR + description: Reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 40 + fieldset: WKUPEPR fieldset/CPUCR: description: This register allows controlling CPU1 power. fields: - - name: PDDS_D1 - description: D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain. - bit_offset: 0 - bit_size: 1 - - name: PDDS_D2 - description: D2 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for D2 domain. - bit_offset: 1 - bit_size: 1 - - name: PDDS_D3 - description: System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain. - bit_offset: 2 - bit_size: 1 - - name: STOPF - description: STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit. - bit_offset: 5 - bit_size: 1 - - name: SBF - description: System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU1 CSSF bit - bit_offset: 6 - bit_size: 1 - - name: SBF_D1 - description: "D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode." - bit_offset: 7 - bit_size: 1 - - name: SBF_D2 - description: "D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode." - bit_offset: 8 - bit_size: 1 - - name: CSSF - description: "Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware." - bit_offset: 9 - bit_size: 1 - - name: RUN_D3 - description: Keep system D3 domain in Run mode regardless of the CPU sub-systems modes - bit_offset: 11 - bit_size: 1 + - name: PDDS_D1 + description: D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain. + bit_offset: 0 + bit_size: 1 + - name: PDDS_D2 + description: D2 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for D2 domain. + bit_offset: 1 + bit_size: 1 + - name: PDDS_D3 + description: System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain. + bit_offset: 2 + bit_size: 1 + - name: STOPF + description: STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit. + bit_offset: 5 + bit_size: 1 + - name: SBF + description: System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU1 CSSF bit + bit_offset: 6 + bit_size: 1 + - name: SBF_D1 + description: D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode. + bit_offset: 7 + bit_size: 1 + - name: SBF_D2 + description: D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode. + bit_offset: 8 + bit_size: 1 + - name: CSSF + description: Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware. + bit_offset: 9 + bit_size: 1 + - name: RUN_D3 + description: Keep system D3 domain in Run mode regardless of the CPU sub-systems modes + bit_offset: 11 + bit_size: 1 fieldset/CR1: description: PWR control register 1 fields: - - name: LPDS - description: "Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit)" - bit_offset: 0 - bit_size: 1 - - name: PVDE - description: Programmable voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: "Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details." - bit_offset: 5 - bit_size: 3 - - name: DBP - description: "Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers." - bit_offset: 8 - bit_size: 1 - - name: FLPS - description: "Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode." - bit_offset: 9 - bit_size: 1 - - name: SVOS - description: "System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance." - bit_offset: 14 - bit_size: 2 - - name: AVDEN - description: Peripheral voltage monitor on VDDA enable - bit_offset: 16 - bit_size: 1 - - name: ALS - description: Analog voltage detector level selection These bits select the voltage threshold detected by the AVD. - bit_offset: 17 - bit_size: 2 + - name: LPDS + description: Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit) + bit_offset: 0 + bit_size: 1 + - name: PVDE + description: Programmable voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: 'Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.' + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers. + bit_offset: 8 + bit_size: 1 + - name: FLPS + description: Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode. + bit_offset: 9 + bit_size: 1 + - name: SVOS + description: System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance. + bit_offset: 14 + bit_size: 2 + - name: AVDEN + description: Peripheral voltage monitor on VDDA enable + bit_offset: 16 + bit_size: 1 + - name: ALS + description: Analog voltage detector level selection These bits select the voltage threshold detected by the AVD. + bit_offset: 17 + bit_size: 2 fieldset/CR2: - description: "This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection." + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. fields: - - name: BREN - description: "Backup regulator enable When set, the Backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled. If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However, its content will be lost in Standby and VBAT modes. If BREN is set, the application must wait till the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM will be maintained in Standby and VBAT modes." - bit_offset: 0 - bit_size: 1 - - name: MONEN - description: "VBAT and temperature monitoring enable When set, the VBAT supply and temperature monitoring is enabled." - bit_offset: 4 - bit_size: 1 - - name: BRRDY - description: Backup regulator ready This bit is set by hardware to indicate that the Backup regulator is ready. - bit_offset: 16 - bit_size: 1 - - name: VBATL - description: VBAT level monitoring versus low threshold - bit_offset: 20 - bit_size: 1 - - name: VBATH - description: VBAT level monitoring versus high threshold - bit_offset: 21 - bit_size: 1 - - name: TEMPL - description: Temperature level monitoring versus low threshold - bit_offset: 22 - bit_size: 1 - - name: TEMPH - description: Temperature level monitoring versus high threshold - bit_offset: 23 - bit_size: 1 + - name: BREN + description: Backup regulator enable When set, the Backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled. If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However, its content will be lost in Standby and VBAT modes. If BREN is set, the application must wait till the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM will be maintained in Standby and VBAT modes. + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: VBAT and temperature monitoring enable When set, the VBAT supply and temperature monitoring is enabled. + bit_offset: 4 + bit_size: 1 + - name: BRRDY + description: Backup regulator ready This bit is set by hardware to indicate that the Backup regulator is ready. + bit_offset: 16 + bit_size: 1 + - name: VBATL + description: VBAT level monitoring versus low threshold + bit_offset: 20 + bit_size: 1 + - name: VBATH + description: VBAT level monitoring versus high threshold + bit_offset: 21 + bit_size: 1 + - name: TEMPL + description: Temperature level monitoring versus low threshold + bit_offset: 22 + bit_size: 1 + - name: TEMPH + description: Temperature level monitoring versus high threshold + bit_offset: 23 + bit_size: 1 fieldset/CR3: - description: "Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value." + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' fields: - - name: BYPASS - description: Power management unit bypass - bit_offset: 0 - bit_size: 1 - - name: LDOEN - description: Low drop-out regulator enable - bit_offset: 1 - bit_size: 1 - - name: SDEN - description: SD converter Enable - bit_offset: 2 - bit_size: 1 - - name: SDEXTHP - description: Step-down converter forced ON and in High Power MR mode - bit_offset: 3 - bit_size: 1 - - name: SDLEVEL - description: Step-down converter voltage output level selection - bit_offset: 4 - bit_size: 2 - - name: VBE - description: VBAT charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT charging resistor selection - bit_offset: 9 - bit_size: 1 - - name: SDEXTRDY - description: SMPS step-down converter external supply ready - bit_offset: 16 - bit_size: 1 - - name: USB33DEN - description: VDD33USB voltage level detector enable. - bit_offset: 24 - bit_size: 1 - - name: USBREGEN - description: USB regulator enable. - bit_offset: 25 - bit_size: 1 - - name: USB33RDY - description: USB supply ready. - bit_offset: 26 - bit_size: 1 + - name: BYPASS + description: Power management unit bypass + bit_offset: 0 + bit_size: 1 + - name: LDOEN + description: Low drop-out regulator enable + bit_offset: 1 + bit_size: 1 + - name: SDEN + description: SD converter Enable + bit_offset: 2 + bit_size: 1 + - name: SDEXTHP + description: Step-down converter forced ON and in High Power MR mode + bit_offset: 3 + bit_size: 1 + - name: SDLEVEL + description: Step-down converter voltage output level selection + bit_offset: 4 + bit_size: 2 + - name: VBE + description: VBAT charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: SDEXTRDY + description: SMPS step-down converter external supply ready + bit_offset: 16 + bit_size: 1 + - name: USB33DEN + description: VDD33USB voltage level detector enable. + bit_offset: 24 + bit_size: 1 + - name: USBREGEN + description: USB regulator enable. + bit_offset: 25 + bit_size: 1 + - name: USB33RDY + description: USB supply ready. + bit_offset: 26 + bit_size: 1 fieldset/CSR1: description: PWR control status register 1 fields: - - name: PVDO - description: "Programmable voltage detect output This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit. Note: since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set." - bit_offset: 4 - bit_size: 1 - - name: ACTVOSRDY - description: Voltage levels ready bit for currently used VOS and SDLEVEL This bit is set to 1 by hardware when the voltage regulator and the SD converter are both disabled and Bypass mode is selected in PWR control register 3 (PWR_CR3). - bit_offset: 13 - bit_size: 1 - - name: ACTVOS - description: VOS currently applied for VCORE voltage scaling selection. These bits reflect the last VOS value applied to the PMU. - bit_offset: 14 - bit_size: 2 - - name: AVDO - description: "Analog voltage detector output on VDDA This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit. Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the AVDEN bit is set." - bit_offset: 16 - bit_size: 1 + - name: PVDO + description: 'Programmable voltage detect output This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit. Note: since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set.' + bit_offset: 4 + bit_size: 1 + - name: ACTVOSRDY + description: Voltage levels ready bit for currently used VOS and SDLEVEL This bit is set to 1 by hardware when the voltage regulator and the SD converter are both disabled and Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: ACTVOS + description: VOS currently applied for VCORE voltage scaling selection. These bits reflect the last VOS value applied to the PMU. + bit_offset: 14 + bit_size: 2 + - name: AVDO + description: 'Analog voltage detector output on VDDA This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit. Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the AVDEN bit is set.' + bit_offset: 16 + bit_size: 1 fieldset/D3CR: description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software fields: - - name: VOSRDY - description: VOS Ready bit for VCORE voltage scaling output selection. This bit is set to 1 by hardware when Bypass mode is selected in PWR control register 3 (PWR_CR3). - bit_offset: 13 - bit_size: 1 - - name: VOS - description: "Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling." - bit_offset: 14 - bit_size: 2 + - name: VOSRDY + description: VOS Ready bit for VCORE voltage scaling output selection. This bit is set to 1 by hardware when Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: VOS + description: 'Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling.' + bit_offset: 14 + bit_size: 2 fieldset/WKUPCR: - description: "reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared)." + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). fields: - - name: WKUPC - description: Clear Wakeup pin flag for WKUP. These bits are always read as 0. - bit_offset: 0 - bit_size: 6 + - name: WKUPC + description: Clear Wakeup pin flag for WKUP. These bits are always read as 0. + bit_offset: 0 + bit_size: 6 fieldset/WKUPEPR: - description: "Reset only by system reset, not reset by wakeup from Standby mode" + description: Reset only by system reset, not reset by wakeup from Standby mode fields: - - name: WKUPEN - description: "Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge." - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: WKUPP - description: Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin. - bit_offset: 8 - bit_size: 1 - array: - len: 6 - stride: 1 - - name: WKUPPUPD - description: Wakeup pin pull configuration - bit_offset: 16 - bit_size: 2 - array: - len: 6 - stride: 2 + - name: WKUPEN + description: 'Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.' + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPP + description: Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin. + bit_offset: 8 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPPUPD + description: Wakeup pin pull configuration + bit_offset: 16 + bit_size: 2 + array: + len: 6 + stride: 2 fieldset/WKUPFR: - description: "reset only by system reset, not reset by wakeup from Standby mode" + description: reset only by system reset, not reset by wakeup from Standby mode fields: - - name: WKUPF - description: Wakeup pin WKUPF flag. This bit is set by hardware and cleared only by a Reset pin or by setting the WKUPCn+1 bit in the PWR wakeup clear register (PWR_WKUPCR). - bit_offset: 0 - bit_size: 1 - array: - len: 6 - stride: 1 + - name: WKUPF + description: Wakeup pin WKUPF flag. This bit is set by hardware and cleared only by a Reset pin or by setting the WKUPCn+1 bit in the PWR wakeup clear register (PWR_WKUPCR). + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 diff --git a/data/registers/pwr_l0.yaml b/data/registers/pwr_l0.yaml index 40aaa6b..d5b1545 100644 --- a/data/registers/pwr_l0.yaml +++ b/data/registers/pwr_l0.yaml @@ -1,239 +1,232 @@ ---- block/PWR: description: Power control items: - - name: CR - description: power control register - byte_offset: 0 - fieldset: CR - - name: CSR - description: power control/status register - byte_offset: 4 - fieldset: CSR + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR fieldset/CR: description: power control register fields: - - name: LPSDSR - description: Low-power deepsleep/Sleep/Low-power run - bit_offset: 0 - bit_size: 1 - enum: MODE - - name: PDDS - description: Power down deepsleep - bit_offset: 1 - bit_size: 1 - enum: PDDS - - name: CWUF - description: Clear wakeup flag - bit_offset: 2 - bit_size: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 3 - bit_size: 1 - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: PVD level selection - bit_offset: 5 - bit_size: 3 - enum: PLS - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: ULP - description: Ultra-low-power mode - bit_offset: 9 - bit_size: 1 - - name: FWU - description: Fast wakeup - bit_offset: 10 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 11 - bit_size: 2 - enum: VOS - - name: DS_EE_KOFF - description: Deep sleep mode with Flash memory kept off - bit_offset: 13 - bit_size: 1 - enum: DS_EE_KOFF - - name: LPRUN - description: Low power run mode - bit_offset: 14 - bit_size: 1 - enum: MODE - - name: LPDS - description: Regulator in Low-power deepsleep mode - bit_offset: 16 - bit_size: 1 - enum: MODE + - name: LPSDSR + description: Low-power deepsleep/Sleep/Low-power run + bit_offset: 0 + bit_size: 1 + enum: MODE + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + enum: PLS + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: ULP + description: Ultra-low-power mode + bit_offset: 9 + bit_size: 1 + - name: FWU + description: Fast wakeup + bit_offset: 10 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 11 + bit_size: 2 + enum: VOS + - name: DS_EE_KOFF + description: Deep sleep mode with Flash memory kept off + bit_offset: 13 + bit_size: 1 + enum: DS_EE_KOFF + - name: LPRUN + description: Low power run mode + bit_offset: 14 + bit_size: 1 + enum: MODE + - name: LPDS + description: Regulator in Low-power deepsleep mode + bit_offset: 16 + bit_size: 1 + enum: MODE fieldset/CSR: description: power control/status register fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - enum_read: WUFR - - name: SBF - description: Standby flag - bit_offset: 1 - bit_size: 1 - enum_read: SBFR - - name: PVDO - description: PVD output - bit_offset: 2 - bit_size: 1 - enum_read: PVDOR - - name: VREFINTRDYF - description: Internal voltage reference ready flag - bit_offset: 3 - bit_size: 1 - enum_read: VREFINTRDYFR - - name: VOSF - description: Voltage Scaling select flag - bit_offset: 4 - bit_size: 1 - enum_read: VOSFR - - name: REGLPF - description: Regulator LP flag - bit_offset: 5 - bit_size: 1 - enum_read: REGLPFR - - name: EWUP1 - description: Enable WKUP pin 1 - bit_offset: 8 - bit_size: 1 - - name: EWUP2 - description: Enable WKUP pin 2 - bit_offset: 9 - bit_size: 1 - - name: EWUP3 - description: Enable WKUP pin 3 - bit_offset: 10 - bit_size: 1 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: VREFINTRDYF + description: Internal voltage reference ready flag + bit_offset: 3 + bit_size: 1 + - name: VOSF + description: Voltage Scaling select flag + bit_offset: 4 + bit_size: 1 + - name: REGLPF + description: Regulator LP flag + bit_offset: 5 + bit_size: 1 + - name: EWUP1 + description: Enable WKUP pin 1 + bit_offset: 8 + bit_size: 1 + - name: EWUP2 + description: Enable WKUP pin 2 + bit_offset: 9 + bit_size: 1 + - name: EWUP3 + description: Enable WKUP pin 3 + bit_offset: 10 + bit_size: 1 enum/DS_EE_KOFF: bit_size: 1 variants: - - name: NVMWakeUp - description: NVM woken up when exiting from Deepsleep mode even if the bit RUN_PD is set - value: 0 - - name: NVMSleep - description: NVM not woken up when exiting from low-power mode (if the bit RUN_PD is set) - value: 1 + - name: NVMWakeUp + description: NVM woken up when exiting from Deepsleep mode even if the bit RUN_PD is set + value: 0 + - name: NVMSleep + description: NVM not woken up when exiting from low-power mode (if the bit RUN_PD is set) + value: 1 enum/MODE: bit_size: 1 variants: - - name: MAIN_MODE - description: Voltage regulator in Main mode - value: 0 - - name: LOW_POWER_MODE - description: Voltage regulator switches to low-power mode - value: 1 + - name: MAIN_MODE + description: Voltage regulator in Main mode + value: 0 + - name: LOW_POWER_MODE + description: Voltage regulator switches to low-power mode + value: 1 enum/PDDS: bit_size: 1 variants: - - name: STOP_MODE - description: Enter Stop mode when the CPU enters deepsleep - value: 0 - - name: STANDBY_MODE - description: Enter Standby mode when the CPU enters deepsleep - value: 1 + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 enum/PLS: bit_size: 3 variants: - - name: V1_9 - description: 1.9 V - value: 0 - - name: V2_1 - description: 2.1 V - value: 1 - - name: V2_3 - description: 2.3 V - value: 2 - - name: V2_5 - description: 2.5 V - value: 3 - - name: V2_7 - description: 2.7 V - value: 4 - - name: V2_9 - description: 2.9 V - value: 5 - - name: V3_1 - description: 3.1 V - value: 6 - - name: External - description: External input analog voltage (Compare internally to VREFINT) - value: 7 + - name: V1_9 + description: 1.9 V + value: 0 + - name: V2_1 + description: 2.1 V + value: 1 + - name: V2_3 + description: 2.3 V + value: 2 + - name: V2_5 + description: 2.5 V + value: 3 + - name: V2_7 + description: 2.7 V + value: 4 + - name: V2_9 + description: 2.9 V + value: 5 + - name: V3_1 + description: 3.1 V + value: 6 + - name: External + description: External input analog voltage (Compare internally to VREFINT) + value: 7 enum/PVDOR: bit_size: 1 variants: - - name: AboveThreshold - description: "VDD is higher than the PVD threshold selected with the PLS[2:0] bits" - value: 0 - - name: BelowThreshold - description: "VDD is lower than the PVD threshold selected with the PLS[2:0] bits" - value: 1 + - name: AboveThreshold + description: VDD is higher than the PVD threshold selected with the PLS[2:0] bits + value: 0 + - name: BelowThreshold + description: VDD is lower than the PVD threshold selected with the PLS[2:0] bits + value: 1 enum/REGLPFR: bit_size: 1 variants: - - name: Ready - description: Regulator is ready in Main mode - value: 0 - - name: NotReady - description: Regulator voltage is in low-power mode - value: 1 + - name: Ready + description: Regulator is ready in Main mode + value: 0 + - name: NotReady + description: Regulator voltage is in low-power mode + value: 1 enum/SBFR: bit_size: 1 variants: - - name: NoStandbyEvent - description: Device has not been in Standby mode - value: 0 - - name: StandbyEvent - description: Device has been in Standby mode - value: 1 + - name: NoStandbyEvent + description: Device has not been in Standby mode + value: 0 + - name: StandbyEvent + description: Device has been in Standby mode + value: 1 enum/VOS: bit_size: 2 variants: - - name: V1_8 - description: 1.8 V (range 1) - value: 1 - - name: V1_5 - description: 1.5 V (range 2) - value: 2 - - name: V1_2 - description: 1.2 V (range 3) - value: 3 + - name: V1_8 + description: 1.8 V (range 1) + value: 1 + - name: V1_5 + description: 1.5 V (range 2) + value: 2 + - name: V1_2 + description: 1.2 V (range 3) + value: 3 enum/VOSFR: bit_size: 1 variants: - - name: Ready - description: Regulator is ready in the selected voltage range - value: 0 - - name: NotReady - description: Regulator voltage output is changing to the required VOS level - value: 1 + - name: Ready + description: Regulator is ready in the selected voltage range + value: 0 + - name: NotReady + description: Regulator voltage output is changing to the required VOS level + value: 1 enum/VREFINTRDYFR: bit_size: 1 variants: - - name: NotReady - description: VREFINT is OFF - value: 0 - - name: Ready - description: VREFINT is ready - value: 1 + - name: NotReady + description: VREFINT is OFF + value: 0 + - name: Ready + description: VREFINT is ready + value: 1 enum/WUFR: bit_size: 1 variants: - - name: NoWakeupEvent - description: No wakeup event occurred - value: 0 - - name: WakeupEvent - description: "A wakeup event was received from the WKUP pin or from the RTC alarm (Alarm A or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup)" - value: 1 + - name: NoWakeupEvent + description: No wakeup event occurred + value: 0 + - name: WakeupEvent + description: A wakeup event was received from the WKUP pin or from the RTC alarm (Alarm A or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup) + value: 1 diff --git a/data/registers/pwr_l1.yaml b/data/registers/pwr_l1.yaml index 3b48ba0..d81ef0b 100644 --- a/data/registers/pwr_l1.yaml +++ b/data/registers/pwr_l1.yaml @@ -1,103 +1,102 @@ ---- block/PWR: description: Power control items: - - name: CR - description: power control register - byte_offset: 0 - fieldset: CR - - name: CSR - description: power control/status register - byte_offset: 4 - fieldset: CSR + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR fieldset/CR: description: power control register fields: - - name: LPSDSR - description: Low-power deep sleep - bit_offset: 0 - bit_size: 1 - - name: PDDS - description: Power down deepsleep - bit_offset: 1 - bit_size: 1 - enum: PDDS - - name: CWUF - description: Clear wakeup flag - bit_offset: 2 - bit_size: 1 - - name: CSBF - description: Clear standby flag - bit_offset: 3 - bit_size: 1 - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PLS - description: PVD level selection - bit_offset: 5 - bit_size: 3 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: ULP - description: Ultralow power mode - bit_offset: 9 - bit_size: 1 - - name: FWU - description: Fast wakeup - bit_offset: 10 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 11 - bit_size: 2 - - name: LPRUN - description: Low power run mode - bit_offset: 14 - bit_size: 1 + - name: LPSDSR + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: ULP + description: Ultralow power mode + bit_offset: 9 + bit_size: 1 + - name: FWU + description: Fast wakeup + bit_offset: 10 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 11 + bit_size: 2 + - name: LPRUN + description: Low power run mode + bit_offset: 14 + bit_size: 1 fieldset/CSR: description: power control/status register fields: - - name: WUF - description: Wakeup flag - bit_offset: 0 - bit_size: 1 - - name: SBF - description: Standby flag - bit_offset: 1 - bit_size: 1 - - name: PVDO - description: PVD output - bit_offset: 2 - bit_size: 1 - - name: VREFINTRDYF - description: Internal voltage reference (VREFINT) ready flag - bit_offset: 3 - bit_size: 1 - - name: VOSF - description: Voltage Scaling select flag - bit_offset: 4 - bit_size: 1 - - name: REGLPF - description: Regulator LP flag - bit_offset: 5 - bit_size: 1 - - name: EWUP - description: Enable WKUP pin 1 - bit_offset: 8 - bit_size: 1 - array: - len: 3 - stride: 1 + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: VREFINTRDYF + description: Internal voltage reference (VREFINT) ready flag + bit_offset: 3 + bit_size: 1 + - name: VOSF + description: Voltage Scaling select flag + bit_offset: 4 + bit_size: 1 + - name: REGLPF + description: Regulator LP flag + bit_offset: 5 + bit_size: 1 + - name: EWUP + description: Enable WKUP pin 1 + bit_offset: 8 + bit_size: 1 + array: + len: 3 + stride: 1 enum/PDDS: bit_size: 1 variants: - - name: STOP_MODE - description: Enter Stop mode when the CPU enters deepsleep - value: 0 - - name: STANDBY_MODE - description: Enter Standby mode when the CPU enters deepsleep - value: 1 + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 diff --git a/data/registers/pwr_l4.yaml b/data/registers/pwr_l4.yaml index 96e69b7..dd0025d 100644 --- a/data/registers/pwr_l4.yaml +++ b/data/registers/pwr_l4.yaml @@ -1,323 +1,322 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: Power control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Power control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Power control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: Power control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: Power status register 1 - byte_offset: 16 - access: Read - fieldset: SR1 - - name: SR2 - description: Power status register 2 - byte_offset: 20 - access: Read - fieldset: SR2 - - name: SCR - description: Power status clear register - byte_offset: 24 - access: Write - fieldset: SCR - - name: PUCR - description: Power Port A pull-up control register - array: - len: 8 - stride: 8 - byte_offset: 32 - fieldset: PCR - - name: PDCR - description: Power Port A pull-down control register - array: - len: 8 - stride: 8 - byte_offset: 36 - fieldset: PCR + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: PUCR + description: Power Port A pull-up control register + array: + len: 8 + stride: 8 + byte_offset: 32 + fieldset: PCR + - name: PDCR + description: Power Port A pull-down control register + array: + len: 8 + stride: 8 + byte_offset: 36 + fieldset: PCR fieldset/CR1: description: Power control register 1 fields: - - name: LPMS - description: Low-power mode selection - bit_offset: 0 - bit_size: 3 - enum: LPMS - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 9 - bit_size: 2 - enum: VOS - - name: LPR - description: Low-power run - bit_offset: 14 - bit_size: 1 - enum: LPR + - name: LPMS + description: Low-power mode selection + bit_offset: 0 + bit_size: 3 + enum: LPMS + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 9 + bit_size: 2 + enum: VOS + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 + enum: LPR fieldset/CR2: description: Power control register 2 fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 0 - bit_size: 1 - - name: PLS - description: Power voltage detector level selection - bit_offset: 1 - bit_size: 3 - enum: PLS - - name: PVME1 - description: "Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V" - bit_offset: 4 - bit_size: 1 - - name: PVME2 - description: "Peripheral voltage monitoring 2 enable: VDDIO2 vs. 0.9V" - bit_offset: 5 - bit_size: 1 - - name: PVME3 - description: "Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V" - bit_offset: 6 - bit_size: 1 - - name: PVME4 - description: "Peripheral voltage monitoring 4 enable: VDDA vs. 2.2V" - bit_offset: 7 - bit_size: 1 - - name: IOSV - description: VDDIO2 Independent I/Os supply valid - bit_offset: 9 - bit_size: 1 - - name: USV - description: VDDUSB USB supply valid - bit_offset: 10 - bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: Power voltage detector level selection + bit_offset: 1 + bit_size: 3 + enum: PLS + - name: PVME1 + description: 'Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V' + bit_offset: 4 + bit_size: 1 + - name: PVME2 + description: 'Peripheral voltage monitoring 2 enable: VDDIO2 vs. 0.9V' + bit_offset: 5 + bit_size: 1 + - name: PVME3 + description: 'Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V' + bit_offset: 6 + bit_size: 1 + - name: PVME4 + description: 'Peripheral voltage monitoring 4 enable: VDDA vs. 2.2V' + bit_offset: 7 + bit_size: 1 + - name: IOSV + description: VDDIO2 Independent I/Os supply valid + bit_offset: 9 + bit_size: 1 + - name: USV + description: VDDUSB USB supply valid + bit_offset: 10 + bit_size: 1 fieldset/CR3: description: Power control register 3 fields: - - name: EWUP - description: Enable Wakeup pin WKUP - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: RRS - description: SRAM2 retention in Standby mode - bit_offset: 8 - bit_size: 1 - enum: RRS - - name: APC - description: Apply pull-up and pull-down configuration - bit_offset: 10 - bit_size: 1 - - name: EWF - description: Enable internal wakeup line - bit_offset: 15 - bit_size: 1 + - name: EWUP + description: Enable Wakeup pin WKUP + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: RRS + description: SRAM2 retention in Standby mode + bit_offset: 8 + bit_size: 1 + enum: RRS + - name: APC + description: Apply pull-up and pull-down configuration + bit_offset: 10 + bit_size: 1 + - name: EWF + description: Enable internal wakeup line + bit_offset: 15 + bit_size: 1 fieldset/CR4: description: Power control register 4 fields: - - name: WP1 - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - - name: WP2 - description: Wakeup pin WKUP2 polarity - bit_offset: 1 - bit_size: 1 - - name: WP3 - description: Wakeup pin WKUP3 polarity - bit_offset: 2 - bit_size: 1 - - name: WP4 - description: Wakeup pin WKUP4 polarity - bit_offset: 3 - bit_size: 1 - - name: WP5 - description: Wakeup pin WKUP5 polarity - bit_offset: 4 - bit_size: 1 - - name: VBE - description: VBAT battery charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT battery charging resistor selection - bit_offset: 9 - bit_size: 1 + - name: WP1 + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + - name: WP2 + description: Wakeup pin WKUP2 polarity + bit_offset: 1 + bit_size: 1 + - name: WP3 + description: Wakeup pin WKUP3 polarity + bit_offset: 2 + bit_size: 1 + - name: WP4 + description: Wakeup pin WKUP4 polarity + bit_offset: 3 + bit_size: 1 + - name: WP5 + description: Wakeup pin WKUP5 polarity + bit_offset: 4 + bit_size: 1 + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/SCR: description: Power status clear register fields: - - name: CWUF - description: Clear wakeup flag - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SBF - description: Clear standby flag - bit_offset: 8 - bit_size: 1 + - name: CWUF + description: Clear wakeup flag + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SBF + description: Clear standby flag + bit_offset: 8 + bit_size: 1 fieldset/SR1: description: Power status register 1 fields: - - name: CWUF1 - description: Wakeup flag 1 - bit_offset: 0 - bit_size: 1 - - name: CWUF2 - description: Wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Wakeup flag 5 - bit_offset: 4 - bit_size: 1 - - name: CSBF - description: Standby flag - bit_offset: 8 - bit_size: 1 - - name: WUFI - description: Wakeup flag internal - bit_offset: 15 - bit_size: 1 + - name: CWUF1 + description: Wakeup flag 1 + bit_offset: 0 + bit_size: 1 + - name: CWUF2 + description: Wakeup flag 2 + bit_offset: 1 + bit_size: 1 + - name: CWUF3 + description: Wakeup flag 3 + bit_offset: 2 + bit_size: 1 + - name: CWUF4 + description: Wakeup flag 4 + bit_offset: 3 + bit_size: 1 + - name: CWUF5 + description: Wakeup flag 5 + bit_offset: 4 + bit_size: 1 + - name: CSBF + description: Standby flag + bit_offset: 8 + bit_size: 1 + - name: WUFI + description: Wakeup flag internal + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: Power status register 2 fields: - - name: REGLPS - description: Low-power regulator started - bit_offset: 8 - bit_size: 1 - - name: REGLPF - description: Low-power regulator flag - bit_offset: 9 - bit_size: 1 - - name: VOSF - description: Voltage scaling flag - bit_offset: 10 - bit_size: 1 - - name: PVDO - description: Power voltage detector output - bit_offset: 11 - bit_size: 1 - - name: PVMO1 - description: "Peripheral voltage monitoring output: VDDUSB vs. 1.2 V" - bit_offset: 12 - bit_size: 1 - - name: PVMO2 - description: "Peripheral voltage monitoring output: VDDIO2 vs. 0.9 V" - bit_offset: 13 - bit_size: 1 - - name: PVMO3 - description: "Peripheral voltage monitoring output: VDDA vs. 1.62 V" - bit_offset: 14 - bit_size: 1 - - name: PVMO4 - description: "Peripheral voltage monitoring output: VDDA vs. 2.2 V" - bit_offset: 15 - bit_size: 1 + - name: REGLPS + description: Low-power regulator started + bit_offset: 8 + bit_size: 1 + - name: REGLPF + description: Low-power regulator flag + bit_offset: 9 + bit_size: 1 + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 + - name: PVMO1 + description: 'Peripheral voltage monitoring output: VDDUSB vs. 1.2 V' + bit_offset: 12 + bit_size: 1 + - name: PVMO2 + description: 'Peripheral voltage monitoring output: VDDIO2 vs. 0.9 V' + bit_offset: 13 + bit_size: 1 + - name: PVMO3 + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + bit_offset: 14 + bit_size: 1 + - name: PVMO4 + description: 'Peripheral voltage monitoring output: VDDA vs. 2.2 V' + bit_offset: 15 + bit_size: 1 enum/LPMS: bit_size: 3 variants: - - name: Stop0 - description: Stop 0 mode - value: 0 - - name: Stop1 - description: Stop 1 mode - value: 1 - - name: Stop2 - description: Stop 2 mode - value: 2 - - name: Standby - description: Standby mode - value: 3 - - name: Shutdown - description: Shutdown mode - value: 4 + - name: Stop0 + description: Stop 0 mode + value: 0 + - name: Stop1 + description: Stop 1 mode + value: 1 + - name: Stop2 + description: Stop 2 mode + value: 2 + - name: Standby + description: Standby mode + value: 3 + - name: Shutdown + description: Shutdown mode + value: 4 enum/LPR: bit_size: 1 variants: - - name: MainMode - description: Voltage regulator in Main mode - value: 0 - - name: LowPowerMode - description: Voltage regulator in low-power mode - value: 1 + - name: MainMode + description: Voltage regulator in Main mode + value: 0 + - name: LowPowerMode + description: Voltage regulator in low-power mode + value: 1 enum/PLS: bit_size: 3 variants: - - name: V2_0 - description: 2.0V - value: 0 - - name: V2_2 - description: 2.2V - value: 1 - - name: V2_4 - description: 2.4V - value: 2 - - name: V2_5 - description: 2.5V - value: 3 - - name: V2_6 - description: 2.6V - value: 4 - - name: V2_8 - description: 2.8V - value: 5 - - name: V2_9 - description: 2.9V - value: 6 - - name: External - description: External input analog voltage PVD_IN (compared internally to VREFINT) - value: 7 + - name: V2_0 + description: 2.0V + value: 0 + - name: V2_2 + description: 2.2V + value: 1 + - name: V2_4 + description: 2.4V + value: 2 + - name: V2_5 + description: 2.5V + value: 3 + - name: V2_6 + description: 2.6V + value: 4 + - name: V2_8 + description: 2.8V + value: 5 + - name: V2_9 + description: 2.9V + value: 6 + - name: External + description: External input analog voltage PVD_IN (compared internally to VREFINT) + value: 7 enum/RRS: bit_size: 1 variants: - - name: PowerOff - description: SRAM2 powered off in Standby mode (SRAM2 content lost) - value: 0 - - name: OnLPR - description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) - value: 1 + - name: PowerOff + description: SRAM2 powered off in Standby mode (SRAM2 content lost) + value: 0 + - name: OnLPR + description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) + value: 1 enum/VOS: bit_size: 2 variants: - - name: Range1 - description: Range 1 - value: 1 - - name: Range2 - description: Range 2 - value: 2 + - name: Range1 + description: Range 1 + value: 1 + - name: Range2 + description: Range 2 + value: 2 diff --git a/data/registers/pwr_l5.yaml b/data/registers/pwr_l5.yaml index 040b20f..5c2a32a 100644 --- a/data/registers/pwr_l5.yaml +++ b/data/registers/pwr_l5.yaml @@ -1,407 +1,406 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: Power control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Power control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Power control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: Power control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: Power status register 1 - byte_offset: 16 - access: Read - fieldset: SR1 - - name: SR2 - description: Power status register 2 - byte_offset: 20 - access: Read - fieldset: SR2 - - name: SCR - description: Power status clear register - byte_offset: 24 - access: Write - fieldset: SCR - - name: PUCR - description: Power Port A pull-up control register - array: - len: 8 - stride: 8 - byte_offset: 32 - fieldset: PCR - - name: PDCR - description: Power Port A pull-down control register - array: - len: 8 - stride: 8 - byte_offset: 36 - fieldset: PCR - - name: SECCFGR - description: Power secure configuration register - byte_offset: 120 - fieldset: SECCFGR - - name: PRIVCFGR - description: Power privilege configuration register - byte_offset: 128 - fieldset: PRIVCFGR + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: PUCR + description: Power Port A pull-up control register + array: + len: 8 + stride: 8 + byte_offset: 32 + fieldset: PCR + - name: PDCR + description: Power Port A pull-down control register + array: + len: 8 + stride: 8 + byte_offset: 36 + fieldset: PCR + - name: SECCFGR + description: Power secure configuration register + byte_offset: 120 + fieldset: SECCFGR + - name: PRIVCFGR + description: Power privilege configuration register + byte_offset: 128 + fieldset: PRIVCFGR fieldset/CR1: description: Power control register 1 fields: - - name: LPMS - description: Low-power mode selection - bit_offset: 0 - bit_size: 3 - enum: LPMS - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 9 - bit_size: 2 - enum: VOS - - name: LPR - description: Low-power run - bit_offset: 14 - bit_size: 1 - enum: LPR + - name: LPMS + description: Low-power mode selection + bit_offset: 0 + bit_size: 3 + enum: LPMS + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 9 + bit_size: 2 + enum: VOS + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 + enum: LPR fieldset/CR2: description: Power control register 2 fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 0 - bit_size: 1 - - name: PLS - description: Power voltage detector level selection - bit_offset: 1 - bit_size: 3 - enum: PLS - - name: PVME1 - description: "Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V" - bit_offset: 4 - bit_size: 1 - - name: PVME2 - description: "Peripheral voltage monitoring 2 enable: VDDIO2 vs. 0.9V" - bit_offset: 5 - bit_size: 1 - - name: PVME3 - description: "Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V" - bit_offset: 6 - bit_size: 1 - - name: PVME4 - description: "Peripheral voltage monitoring 4 enable: VDDA vs. 2.2V" - bit_offset: 7 - bit_size: 1 - - name: IOSV - description: VDDIO2 Independent I/Os supply valid - bit_offset: 9 - bit_size: 1 - - name: USV - description: VDDUSB USB supply valid - bit_offset: 10 - bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: Power voltage detector level selection + bit_offset: 1 + bit_size: 3 + enum: PLS + - name: PVME1 + description: 'Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V' + bit_offset: 4 + bit_size: 1 + - name: PVME2 + description: 'Peripheral voltage monitoring 2 enable: VDDIO2 vs. 0.9V' + bit_offset: 5 + bit_size: 1 + - name: PVME3 + description: 'Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V' + bit_offset: 6 + bit_size: 1 + - name: PVME4 + description: 'Peripheral voltage monitoring 4 enable: VDDA vs. 2.2V' + bit_offset: 7 + bit_size: 1 + - name: IOSV + description: VDDIO2 Independent I/Os supply valid + bit_offset: 9 + bit_size: 1 + - name: USV + description: VDDUSB USB supply valid + bit_offset: 10 + bit_size: 1 fieldset/CR3: description: Power control register 3 fields: - - name: EWUP - description: Enable Wakeup pin WKUP - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: RRS - description: SRAM2 retention in Standby mode - bit_offset: 8 - bit_size: 2 - enum: RRS - - name: APC - description: Apply pull-up and pull-down configuration - bit_offset: 10 - bit_size: 1 - - name: ULPMEN - description: ULPMEN - bit_offset: 11 - bit_size: 1 - - name: UCPD_STDBY - description: UCPD_STDBY - bit_offset: 13 - bit_size: 1 - - name: UCPD_DBDIS - description: UCPD_DBDIS - bit_offset: 14 - bit_size: 1 + - name: EWUP + description: Enable Wakeup pin WKUP + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: RRS + description: SRAM2 retention in Standby mode + bit_offset: 8 + bit_size: 2 + enum: RRS + - name: APC + description: Apply pull-up and pull-down configuration + bit_offset: 10 + bit_size: 1 + - name: ULPMEN + description: ULPMEN + bit_offset: 11 + bit_size: 1 + - name: UCPD_STDBY + description: UCPD_STDBY + bit_offset: 13 + bit_size: 1 + - name: UCPD_DBDIS + description: UCPD_DBDIS + bit_offset: 14 + bit_size: 1 fieldset/CR4: description: Power control register 4 fields: - - name: WP1 - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - - name: WP2 - description: Wakeup pin WKUP2 polarity - bit_offset: 1 - bit_size: 1 - - name: WP3 - description: Wakeup pin WKUP3 polarity - bit_offset: 2 - bit_size: 1 - - name: WP4 - description: Wakeup pin WKUP4 polarity - bit_offset: 3 - bit_size: 1 - - name: WP5 - description: Wakeup pin WKUP5 polarity - bit_offset: 4 - bit_size: 1 - - name: VBE - description: VBAT battery charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT battery charging resistor selection - bit_offset: 9 - bit_size: 1 - - name: SMPSBYP - description: SMPSBYP - bit_offset: 12 - bit_size: 1 - - name: EXTSMPSEN - description: EXTSMPSEN - bit_offset: 13 - bit_size: 1 - - name: SMPSFSTEN - description: SMPSFSTEN - bit_offset: 14 - bit_size: 1 - - name: SMPSLPEN - description: SMPSLPEN - bit_offset: 15 - bit_size: 1 + - name: WP1 + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + - name: WP2 + description: Wakeup pin WKUP2 polarity + bit_offset: 1 + bit_size: 1 + - name: WP3 + description: Wakeup pin WKUP3 polarity + bit_offset: 2 + bit_size: 1 + - name: WP4 + description: Wakeup pin WKUP4 polarity + bit_offset: 3 + bit_size: 1 + - name: WP5 + description: Wakeup pin WKUP5 polarity + bit_offset: 4 + bit_size: 1 + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: SMPSBYP + description: SMPSBYP + bit_offset: 12 + bit_size: 1 + - name: EXTSMPSEN + description: EXTSMPSEN + bit_offset: 13 + bit_size: 1 + - name: SMPSFSTEN + description: SMPSFSTEN + bit_offset: 14 + bit_size: 1 + - name: SMPSLPEN + description: SMPSLPEN + bit_offset: 15 + bit_size: 1 fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/PRIVCFGR: description: Power privilege configuration register fields: - - name: PRIV - description: PRIV - bit_offset: 0 - bit_size: 1 + - name: PRIV + description: PRIV + bit_offset: 0 + bit_size: 1 fieldset/SCR: description: Power status clear register fields: - - name: CWUF - description: Clear wakeup flag - bit_offset: 0 - bit_size: 1 - array: - len: 5 - stride: 1 - - name: SBF - description: Clear standby flag - bit_offset: 8 - bit_size: 1 + - name: CWUF + description: Clear wakeup flag + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SBF + description: Clear standby flag + bit_offset: 8 + bit_size: 1 fieldset/SECCFGR: description: Power secure configuration register fields: - - name: WUP1SEC - description: WKUP1 pin security - bit_offset: 0 - bit_size: 1 - - name: WUP2SEC - description: WKUP2 pin security - bit_offset: 1 - bit_size: 1 - - name: WUP3SEC - description: WKUP3 pin security - bit_offset: 2 - bit_size: 1 - - name: WUP4SEC - description: WKUP4 pin security - bit_offset: 3 - bit_size: 1 - - name: WUP5SEC - description: WKUP5 pin security - bit_offset: 4 - bit_size: 1 - - name: LPMSEC - description: LPMSEC - bit_offset: 8 - bit_size: 1 - - name: VDMSEC - description: VDMSEC - bit_offset: 9 - bit_size: 1 - - name: VBSEC - description: VBSEC - bit_offset: 10 - bit_size: 1 - - name: APCSEC - description: APCSEC - bit_offset: 11 - bit_size: 1 + - name: WUP1SEC + description: WKUP1 pin security + bit_offset: 0 + bit_size: 1 + - name: WUP2SEC + description: WKUP2 pin security + bit_offset: 1 + bit_size: 1 + - name: WUP3SEC + description: WKUP3 pin security + bit_offset: 2 + bit_size: 1 + - name: WUP4SEC + description: WKUP4 pin security + bit_offset: 3 + bit_size: 1 + - name: WUP5SEC + description: WKUP5 pin security + bit_offset: 4 + bit_size: 1 + - name: LPMSEC + description: LPMSEC + bit_offset: 8 + bit_size: 1 + - name: VDMSEC + description: VDMSEC + bit_offset: 9 + bit_size: 1 + - name: VBSEC + description: VBSEC + bit_offset: 10 + bit_size: 1 + - name: APCSEC + description: APCSEC + bit_offset: 11 + bit_size: 1 fieldset/SR1: description: Power status register 1 fields: - - name: CWUF1 - description: Wakeup flag 1 - bit_offset: 0 - bit_size: 1 - - name: CWUF2 - description: Wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Wakeup flag 5 - bit_offset: 4 - bit_size: 1 - - name: CSBF - description: Standby flag - bit_offset: 8 - bit_size: 1 - - name: WUFI - description: Wakeup flag internal - bit_offset: 15 - bit_size: 1 + - name: CWUF1 + description: Wakeup flag 1 + bit_offset: 0 + bit_size: 1 + - name: CWUF2 + description: Wakeup flag 2 + bit_offset: 1 + bit_size: 1 + - name: CWUF3 + description: Wakeup flag 3 + bit_offset: 2 + bit_size: 1 + - name: CWUF4 + description: Wakeup flag 4 + bit_offset: 3 + bit_size: 1 + - name: CWUF5 + description: Wakeup flag 5 + bit_offset: 4 + bit_size: 1 + - name: CSBF + description: Standby flag + bit_offset: 8 + bit_size: 1 + - name: WUFI + description: Wakeup flag internal + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: Power status register 2 fields: - - name: REGLPS - description: Low-power regulator started - bit_offset: 8 - bit_size: 1 - - name: REGLPF - description: Low-power regulator flag - bit_offset: 9 - bit_size: 1 - - name: VOSF - description: Voltage scaling flag - bit_offset: 10 - bit_size: 1 - - name: PVDO - description: Power voltage detector output - bit_offset: 11 - bit_size: 1 - - name: PVMO1 - description: "Peripheral voltage monitoring output: VDDUSB vs. 1.2 V" - bit_offset: 12 - bit_size: 1 - - name: PVMO2 - description: "Peripheral voltage monitoring output: VDDIO2 vs. 0.9 V" - bit_offset: 13 - bit_size: 1 - - name: PVMO3 - description: "Peripheral voltage monitoring output: VDDA vs. 1.62 V" - bit_offset: 14 - bit_size: 1 - - name: PVMO4 - description: "Peripheral voltage monitoring output: VDDA vs. 2.2 V" - bit_offset: 15 - bit_size: 1 + - name: REGLPS + description: Low-power regulator started + bit_offset: 8 + bit_size: 1 + - name: REGLPF + description: Low-power regulator flag + bit_offset: 9 + bit_size: 1 + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 + - name: PVMO1 + description: 'Peripheral voltage monitoring output: VDDUSB vs. 1.2 V' + bit_offset: 12 + bit_size: 1 + - name: PVMO2 + description: 'Peripheral voltage monitoring output: VDDIO2 vs. 0.9 V' + bit_offset: 13 + bit_size: 1 + - name: PVMO3 + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + bit_offset: 14 + bit_size: 1 + - name: PVMO4 + description: 'Peripheral voltage monitoring output: VDDA vs. 2.2 V' + bit_offset: 15 + bit_size: 1 enum/LPMS: bit_size: 3 variants: - - name: Stop0 - description: Stop 0 mode - value: 0 - - name: Stop1 - description: Stop 1 mode - value: 1 - - name: Stop2 - description: Stop 2 mode - value: 2 - - name: Standby - description: Standby mode - value: 3 - - name: Shutdown - description: Shutdown mode - value: 4 + - name: Stop0 + description: Stop 0 mode + value: 0 + - name: Stop1 + description: Stop 1 mode + value: 1 + - name: Stop2 + description: Stop 2 mode + value: 2 + - name: Standby + description: Standby mode + value: 3 + - name: Shutdown + description: Shutdown mode + value: 4 enum/LPR: bit_size: 1 variants: - - name: MainMode - description: Voltage regulator in Main mode - value: 0 - - name: LowPowerMode - description: Voltage regulator in low-power mode - value: 1 + - name: MainMode + description: Voltage regulator in Main mode + value: 0 + - name: LowPowerMode + description: Voltage regulator in low-power mode + value: 1 enum/PLS: bit_size: 3 variants: - - name: V2_0 - description: 2.0V - value: 0 - - name: V2_2 - description: 2.2V - value: 1 - - name: V2_4 - description: 2.4V - value: 2 - - name: V2_5 - description: 2.5V - value: 3 - - name: V2_6 - description: 2.6V - value: 4 - - name: V2_8 - description: 2.8V - value: 5 - - name: V2_9 - description: 2.9V - value: 6 - - name: External - description: External input analog voltage PVD_IN (compared internally to VREFINT) - value: 7 + - name: V2_0 + description: 2.0V + value: 0 + - name: V2_2 + description: 2.2V + value: 1 + - name: V2_4 + description: 2.4V + value: 2 + - name: V2_5 + description: 2.5V + value: 3 + - name: V2_6 + description: 2.6V + value: 4 + - name: V2_8 + description: 2.8V + value: 5 + - name: V2_9 + description: 2.9V + value: 6 + - name: External + description: External input analog voltage PVD_IN (compared internally to VREFINT) + value: 7 enum/RRS: bit_size: 2 variants: - - name: PowerOff - description: SRAM2 powered off in Standby mode (SRAM2 content lost) - value: 0 - - name: OnLPR - description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) - value: 1 - - name: OnLPRTop4kb - description: Only the upper 4 Kbytes of SRAM2 are powered by the low-power regulator in Standby mode (upper 4 Kbytes of SRAM2 content 0x2003 F000 - 0x2003 FFFF is kept). - value: 2 + - name: PowerOff + description: SRAM2 powered off in Standby mode (SRAM2 content lost) + value: 0 + - name: OnLPR + description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) + value: 1 + - name: OnLPRTop4kb + description: Only the upper 4 Kbytes of SRAM2 are powered by the low-power regulator in Standby mode (upper 4 Kbytes of SRAM2 content 0x2003 F000 - 0x2003 FFFF is kept). + value: 2 enum/VOS: bit_size: 2 variants: - - name: Range0 - description: Range 0 - value: 0 - - name: Range1 - description: Range 1 - value: 1 - - name: Range2 - description: Range 2 - value: 2 + - name: Range0 + description: Range 0 + value: 0 + - name: Range1 + description: Range 1 + value: 1 + - name: Range2 + description: Range 2 + value: 2 diff --git a/data/registers/pwr_u5.yaml b/data/registers/pwr_u5.yaml index c118bb1..a15a403 100644 --- a/data/registers/pwr_u5.yaml +++ b/data/registers/pwr_u5.yaml @@ -1,951 +1,950 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: PWR control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: PWR control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: PWR control register 3 - byte_offset: 8 - fieldset: CR3 - - name: VOSR - description: PWR voltage scaling register - byte_offset: 12 - fieldset: VOSR - - name: SVMCR - description: PWR supply voltage monitoring control register - byte_offset: 16 - fieldset: SVMCR - - name: WUCR1 - description: PWR wakeup control register 1 - byte_offset: 20 - fieldset: WUCR1 - - name: WUCR2 - description: PWR wakeup control register 2 - byte_offset: 24 - fieldset: WUCR2 - - name: WUCR3 - description: PWR wakeup control register 3 - byte_offset: 28 - fieldset: WUCR3 - - name: BDCR1 - description: PWR Backup domain control register 1 - byte_offset: 32 - fieldset: BDCR1 - - name: BDCR2 - description: PWR Backup domain control register 2 - byte_offset: 36 - fieldset: BDCR2 - - name: DBPR - description: PWR disable Backup domain register - byte_offset: 40 - fieldset: DBPR - - name: UCPDR - description: PWR USB Type-C™ and Power Delivery register - byte_offset: 44 - fieldset: UCPDR - - name: SECCFGR - description: PWR security configuration register - byte_offset: 48 - fieldset: SECCFGR - - name: PRIVCFGR - description: PWR privilege control register - byte_offset: 52 - fieldset: PRIVCFGR - - name: SR - description: PWR status register - byte_offset: 56 - fieldset: SR - - name: SVMSR - byte_offset: 60 - fieldset: SVMSR - - name: BDSR - description: PWR Backup domain status register - byte_offset: 64 - fieldset: BDSR - - name: WUSR - description: PWR wakeup status register - byte_offset: 68 - fieldset: WUSR - - name: WUSCR - description: PWR wakeup status clear register - byte_offset: 72 - fieldset: WUSCR - - name: APCR - description: PWR apply pull configuration register - byte_offset: 76 - fieldset: APCR - - name: PUCR - description: Power Port pull-up control register - array: - len: 9 - stride: 8 - byte_offset: 80 - fieldset: PCR - - name: PDCR - description: Power Port pull-down control register - array: - len: 9 - stride: 8 - byte_offset: 84 - fieldset: PCR + - name: CR1 + description: PWR control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: PWR control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: PWR control register 3 + byte_offset: 8 + fieldset: CR3 + - name: VOSR + description: PWR voltage scaling register + byte_offset: 12 + fieldset: VOSR + - name: SVMCR + description: PWR supply voltage monitoring control register + byte_offset: 16 + fieldset: SVMCR + - name: WUCR1 + description: PWR wakeup control register 1 + byte_offset: 20 + fieldset: WUCR1 + - name: WUCR2 + description: PWR wakeup control register 2 + byte_offset: 24 + fieldset: WUCR2 + - name: WUCR3 + description: PWR wakeup control register 3 + byte_offset: 28 + fieldset: WUCR3 + - name: BDCR1 + description: PWR Backup domain control register 1 + byte_offset: 32 + fieldset: BDCR1 + - name: BDCR2 + description: PWR Backup domain control register 2 + byte_offset: 36 + fieldset: BDCR2 + - name: DBPR + description: PWR disable Backup domain register + byte_offset: 40 + fieldset: DBPR + - name: UCPDR + description: PWR USB Type-C™ and Power Delivery register + byte_offset: 44 + fieldset: UCPDR + - name: SECCFGR + description: PWR security configuration register + byte_offset: 48 + fieldset: SECCFGR + - name: PRIVCFGR + description: PWR privilege control register + byte_offset: 52 + fieldset: PRIVCFGR + - name: SR + description: PWR status register + byte_offset: 56 + fieldset: SR + - name: SVMSR + byte_offset: 60 + fieldset: SVMSR + - name: BDSR + description: PWR Backup domain status register + byte_offset: 64 + fieldset: BDSR + - name: WUSR + description: PWR wakeup status register + byte_offset: 68 + fieldset: WUSR + - name: WUSCR + description: PWR wakeup status clear register + byte_offset: 72 + fieldset: WUSCR + - name: APCR + description: PWR apply pull configuration register + byte_offset: 76 + fieldset: APCR + - name: PUCR + description: Power Port pull-up control register + array: + len: 9 + stride: 8 + byte_offset: 80 + fieldset: PCR + - name: PDCR + description: Power Port pull-down control register + array: + len: 9 + stride: 8 + byte_offset: 84 + fieldset: PCR fieldset/APCR: description: PWR apply pull configuration register fields: - - name: APC - description: "Apply pull-up and pull-down configuration\r When this bit is set, the I/O pull-up and pull-down configurations defined in PUCRx and PDCRx are applied. When this bit is cleared, PUCRx and PDCRx are not applied to the I/Os." - bit_offset: 0 - bit_size: 1 + - name: APC + description: "Apply pull-up and pull-down configuration\r When this bit is set, the I/O pull-up and pull-down configurations defined in PUCRx and PDCRx are applied. When this bit is cleared, PUCRx and PDCRx are not applied to the I/Os." + bit_offset: 0 + bit_size: 1 fieldset/BDCR1: description: PWR Backup domain control register 1 fields: - - name: BREN - description: "Backup RAM retention in Standby and VBAT modes\r When this bit is set, the backup RAM content is kept in Standby and VBAT modes.\r If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS.\r Note: Backup RAM cannot be preserved in Shutdown mode." - bit_offset: 0 - bit_size: 1 - - name: MONEN - description: Backup domain voltage and temperature monitoring enable - bit_offset: 4 - bit_size: 1 + - name: BREN + description: "Backup RAM retention in Standby and VBAT modes\r When this bit is set, the backup RAM content is kept in Standby and VBAT modes.\r If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS.\r Note: Backup RAM cannot be preserved in Shutdown mode." + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: Backup domain voltage and temperature monitoring enable + bit_offset: 4 + bit_size: 1 fieldset/BDCR2: description: PWR Backup domain control register 2 fields: - - name: VBE - description: VBAT charging enable - bit_offset: 0 - bit_size: 1 - enum: VBE - - name: VBRS - description: VBAT charging resistor selection - bit_offset: 1 - bit_size: 1 - enum: VBRS + - name: VBE + description: VBAT charging enable + bit_offset: 0 + bit_size: 1 + enum: VBE + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 1 + bit_size: 1 + enum: VBRS fieldset/BDSR: description: PWR Backup domain status register fields: - - name: VBATH - description: Backup domain voltage level monitoring versus high threshold - bit_offset: 1 - bit_size: 1 - enum: VBATH - - name: TEMPL - description: Temperature level monitoring versus low threshold - bit_offset: 2 - bit_size: 1 - enum: TEMPL - - name: TEMPH - description: Temperature level monitoring versus high threshold - bit_offset: 3 - bit_size: 1 - enum: TEMPH + - name: VBATH + description: Backup domain voltage level monitoring versus high threshold + bit_offset: 1 + bit_size: 1 + enum: VBATH + - name: TEMPL + description: Temperature level monitoring versus low threshold + bit_offset: 2 + bit_size: 1 + enum: TEMPL + - name: TEMPH + description: Temperature level monitoring versus high threshold + bit_offset: 3 + bit_size: 1 + enum: TEMPH fieldset/CR1: description: PWR control register 1 fields: - - name: LPMS - description: "Low-power mode selection\r These bits select the low-power mode entered when the CPU enters the Deepsleep mode.\r 10x: Standby mode (Standby mode also entered if LPMS=11X in CR1\r with BREN=1 in BDCR1)\r 11x: Shutdown mode if BREN = 0 in BDCR1" - bit_offset: 0 - bit_size: 3 - enum: LPMS - - name: RRSB1 - description: "SRAM2 page 1 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 1 content in Stop 3 and Standby modes. The SRAM2 page 1 corresponds to the first 8 Kbytes of the SRAM2\r (from SRAM2 base address to SRAM2 base address + 0x1FFF).\r Note: This bit has no effect in Shutdown mode." - bit_offset: 5 - bit_size: 1 - enum: RRSB - - name: RRSB2 - description: "SRAM2 page 2 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 2 content in Stop 3 and Standby modes. The SRAM2 page 2 corresponds to the last 56 Kbytes of the SRAM2\r (from SRAM2 base address + 0x2000 to SRAM2 base address + 0xFFFF).\r Note: This bit has no effect in Shutdown mode." - bit_offset: 6 - bit_size: 1 - enum: RRSB - - name: ULPMEN - description: "BOR ultra-low power mode\r This bit is used to reduce the consumption by configuring the BOR in discontinuous mode.\r This bit must be set to reach the lowest power consumption in the low-power modes." - bit_offset: 7 - bit_size: 1 - - name: SRAM1PD - description: "SRAM1 power down\r This bit is used to reduce the consumption by powering off the SRAM1." - bit_offset: 8 - bit_size: 1 - enum: SRAMPD - - name: SRAM2PD - description: "SRAM2 power down\r This bit is used to reduce the consumption by powering off the SRAM2." - bit_offset: 9 - bit_size: 1 - enum: SRAMPD - - name: SRAM3PD - description: "SRAM3 power down\r This bit is used to reduce the consumption by powering off the SRAM3." - bit_offset: 10 - bit_size: 1 - enum: SRAMPD - - name: SRAM4PD - description: "SRAM4 power down\r This bit is used to reduce the consumption by powering off the SRAM4." - bit_offset: 11 - bit_size: 1 - enum: SRAMPD + - name: LPMS + description: "Low-power mode selection\r These bits select the low-power mode entered when the CPU enters the Deepsleep mode.\r 10x: Standby mode (Standby mode also entered if LPMS=11X in CR1\r with BREN=1 in BDCR1)\r 11x: Shutdown mode if BREN = 0 in BDCR1" + bit_offset: 0 + bit_size: 3 + enum: LPMS + - name: RRSB1 + description: "SRAM2 page 1 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 1 content in Stop 3 and Standby modes. The SRAM2 page 1 corresponds to the first 8 Kbytes of the SRAM2\r (from SRAM2 base address to SRAM2 base address + 0x1FFF).\r Note: This bit has no effect in Shutdown mode." + bit_offset: 5 + bit_size: 1 + enum: RRSB + - name: RRSB2 + description: "SRAM2 page 2 retention in Stop 3 and Standby modes\r This bit is used to keep the SRAM2 page 2 content in Stop 3 and Standby modes. The SRAM2 page 2 corresponds to the last 56 Kbytes of the SRAM2\r (from SRAM2 base address + 0x2000 to SRAM2 base address + 0xFFFF).\r Note: This bit has no effect in Shutdown mode." + bit_offset: 6 + bit_size: 1 + enum: RRSB + - name: ULPMEN + description: "BOR ultra-low power mode\r This bit is used to reduce the consumption by configuring the BOR in discontinuous mode.\r This bit must be set to reach the lowest power consumption in the low-power modes." + bit_offset: 7 + bit_size: 1 + - name: SRAM1PD + description: "SRAM1 power down\r This bit is used to reduce the consumption by powering off the SRAM1." + bit_offset: 8 + bit_size: 1 + enum: SRAMPD + - name: SRAM2PD + description: "SRAM2 power down\r This bit is used to reduce the consumption by powering off the SRAM2." + bit_offset: 9 + bit_size: 1 + enum: SRAMPD + - name: SRAM3PD + description: "SRAM3 power down\r This bit is used to reduce the consumption by powering off the SRAM3." + bit_offset: 10 + bit_size: 1 + enum: SRAMPD + - name: SRAM4PD + description: "SRAM4 power down\r This bit is used to reduce the consumption by powering off the SRAM4." + bit_offset: 11 + bit_size: 1 + enum: SRAMPD fieldset/CR2: description: PWR control register 2 fields: - - name: SRAM1PDS1 - description: "SRAM1 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 0 - bit_size: 1 - enum: PDS - - name: SRAM1PDS2 - description: "SRAM1 page 2 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 1 - bit_size: 1 - enum: PDS - - name: SRAM1PDS3 - description: "SRAM1 page 3 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 2 - bit_size: 1 - enum: PDS - - name: SRAM2PDS1 - description: "SRAM2 page 1 (8 Kbytes) power-down in Stop modes (Stop 0, 1, 2)\r Note: The SRAM2 page 1 retention in Stop 3 is controlled by RRSB1 bit in CR1." - bit_offset: 4 - bit_size: 1 - enum: PDS - - name: SRAM2PDS2 - description: "SRAM2 page 2 (56 Kbytes) power-down in Stop modes (Stop 0, 1, 2)\r Note: The SRAM2 page 2 retention in Stop 3 is controlled by RRSB2 bit in CR1." - bit_offset: 5 - bit_size: 1 - enum: PDS - - name: SRAM4PDS - description: "SRAM4 power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 6 - bit_size: 1 - enum: PDS - - name: ICRAMPDS - description: "ICACHE SRAM power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 8 - bit_size: 1 - enum: PDS - - name: DC1RAMPDS - description: "DCACHE1 SRAM power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 9 - bit_size: 1 - enum: PDS - - name: DMA2DRAMPDS - description: "DMA2D SRAM power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 10 - bit_size: 1 - enum: PDS - - name: PRAMPDS - description: "FMAC, FDCAN and USB peripherals SRAM power-down in Stop modes (Stop0,1,2,3)" - bit_offset: 11 - bit_size: 1 - enum: PDS - - name: PKARAMPDS - description: PKA SRAM power-down - bit_offset: 12 - bit_size: 1 - enum: PDS - - name: SRAM4FWU - description: "SRAM4 fast wakeup from Stop 0, Stop 1 and Stop 2 modes\r This bit is used to obtain the best trade-off between low-power consumption and wakeup time. SRAM4 wakeup time increases the wakeup time when exiting Stop 0, 1 and 2 modes, and also increases the LPDMA access time to SRAM4 during Stop modes." - bit_offset: 13 - bit_size: 1 - enum: SRAMFWU - - name: FLASHFWU - description: "Flash memory fast wakeup from Stop 0 and Stop 1 modes\r This bit is used to obtain the best trade-off between low-power consumption and wakeup time when exiting the Stop 0 or Stop 1 modes.\r When this bit is set, the Flash memory remains in normal mode in Stop 0 and Stop 1 modes, which offers a faster startup time with higher consumption." - bit_offset: 14 - bit_size: 1 - enum: FLASHFWU - - name: SRAM3PDS1 - description: "SRAM3 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 16 - bit_size: 1 - enum: PDS - - name: SRAM3PDS2 - description: "SRAM3 page 2 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 17 - bit_size: 1 - enum: PDS - - name: SRAM3PDS3 - description: "SRAM3 page 3 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 18 - bit_size: 1 - enum: PDS - - name: SRAM3PDS4 - description: "SRAM3 page 4 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 19 - bit_size: 1 - enum: PDS - - name: SRAM3PDS5 - description: "SRAM3 page 5 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 20 - bit_size: 1 - enum: PDS - - name: SRAM3PDS6 - description: "SRAM3 page 6 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 21 - bit_size: 1 - enum: PDS - - name: SRAM3PDS7 - description: "SRAM3 page 7 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 22 - bit_size: 1 - enum: PDS - - name: SRAM3PDS8 - description: "SRAM3 page 8 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3)" - bit_offset: 23 - bit_size: 1 - enum: PDS - - name: SRDRUN - description: SmartRun domain in Run mode - bit_offset: 31 - bit_size: 1 + - name: SRAM1PDS1 + description: SRAM1 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 0 + bit_size: 1 + enum: PDS + - name: SRAM1PDS2 + description: SRAM1 page 2 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 1 + bit_size: 1 + enum: PDS + - name: SRAM1PDS3 + description: SRAM1 page 3 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 2 + bit_size: 1 + enum: PDS + - name: SRAM2PDS1 + description: "SRAM2 page 1 (8 Kbytes) power-down in Stop modes (Stop 0, 1, 2)\r Note: The SRAM2 page 1 retention in Stop 3 is controlled by RRSB1 bit in CR1." + bit_offset: 4 + bit_size: 1 + enum: PDS + - name: SRAM2PDS2 + description: "SRAM2 page 2 (56 Kbytes) power-down in Stop modes (Stop 0, 1, 2)\r Note: The SRAM2 page 2 retention in Stop 3 is controlled by RRSB2 bit in CR1." + bit_offset: 5 + bit_size: 1 + enum: PDS + - name: SRAM4PDS + description: SRAM4 power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 6 + bit_size: 1 + enum: PDS + - name: ICRAMPDS + description: ICACHE SRAM power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 8 + bit_size: 1 + enum: PDS + - name: DC1RAMPDS + description: DCACHE1 SRAM power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 9 + bit_size: 1 + enum: PDS + - name: DMA2DRAMPDS + description: DMA2D SRAM power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 10 + bit_size: 1 + enum: PDS + - name: PRAMPDS + description: FMAC, FDCAN and USB peripherals SRAM power-down in Stop modes (Stop0,1,2,3) + bit_offset: 11 + bit_size: 1 + enum: PDS + - name: PKARAMPDS + description: PKA SRAM power-down + bit_offset: 12 + bit_size: 1 + enum: PDS + - name: SRAM4FWU + description: "SRAM4 fast wakeup from Stop 0, Stop 1 and Stop 2 modes\r This bit is used to obtain the best trade-off between low-power consumption and wakeup time. SRAM4 wakeup time increases the wakeup time when exiting Stop 0, 1 and 2 modes, and also increases the LPDMA access time to SRAM4 during Stop modes." + bit_offset: 13 + bit_size: 1 + enum: SRAMFWU + - name: FLASHFWU + description: "Flash memory fast wakeup from Stop 0 and Stop 1 modes\r This bit is used to obtain the best trade-off between low-power consumption and wakeup time when exiting the Stop 0 or Stop 1 modes.\r When this bit is set, the Flash memory remains in normal mode in Stop 0 and Stop 1 modes, which offers a faster startup time with higher consumption." + bit_offset: 14 + bit_size: 1 + enum: FLASHFWU + - name: SRAM3PDS1 + description: SRAM3 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 16 + bit_size: 1 + enum: PDS + - name: SRAM3PDS2 + description: SRAM3 page 2 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 17 + bit_size: 1 + enum: PDS + - name: SRAM3PDS3 + description: SRAM3 page 3 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 18 + bit_size: 1 + enum: PDS + - name: SRAM3PDS4 + description: SRAM3 page 4 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 19 + bit_size: 1 + enum: PDS + - name: SRAM3PDS5 + description: SRAM3 page 5 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 20 + bit_size: 1 + enum: PDS + - name: SRAM3PDS6 + description: SRAM3 page 6 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 21 + bit_size: 1 + enum: PDS + - name: SRAM3PDS7 + description: SRAM3 page 7 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 22 + bit_size: 1 + enum: PDS + - name: SRAM3PDS8 + description: SRAM3 page 8 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) + bit_offset: 23 + bit_size: 1 + enum: PDS + - name: SRDRUN + description: SmartRun domain in Run mode + bit_offset: 31 + bit_size: 1 fieldset/CR3: description: PWR control register 3 fields: - - name: REGSEL - description: "Regulator selection\r Note: REGSEL is reserved and must be kept at reset value in packages without SMPS." - bit_offset: 1 - bit_size: 1 - enum: REGSEL - - name: FSTEN - description: Fast soft start - bit_offset: 2 - bit_size: 1 + - name: REGSEL + description: "Regulator selection\r Note: REGSEL is reserved and must be kept at reset value in packages without SMPS." + bit_offset: 1 + bit_size: 1 + enum: REGSEL + - name: FSTEN + description: Fast soft start + bit_offset: 2 + bit_size: 1 fieldset/DBPR: description: PWR disable Backup domain register fields: - - name: DBP - description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write access. This bit must be set to enable the write access to these registers." - bit_offset: 0 - bit_size: 1 - enum: DBP + - name: DBP + description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write access. This bit must be set to enable the write access to these registers." + bit_offset: 0 + bit_size: 1 + enum: DBP fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/PRIVCFGR: description: PWR privilege control register fields: - - name: SPRIV - description: "PWR secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access." - bit_offset: 0 - bit_size: 1 - enum: PRIV - - name: NSPRIV - description: "PWR non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure." - bit_offset: 1 - bit_size: 1 - enum: PRIV + - name: SPRIV + description: "PWR secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access." + bit_offset: 0 + bit_size: 1 + enum: PRIV + - name: NSPRIV + description: "PWR non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure." + bit_offset: 1 + bit_size: 1 + enum: PRIV fieldset/SECCFGR: description: PWR security configuration register fields: - - name: WUP1SEC - description: WUP1 secure protection - bit_offset: 0 - bit_size: 1 - enum: SEC - - name: WUP2SEC - description: WUP2 secure protection - bit_offset: 1 - bit_size: 1 - enum: SEC - - name: WUP3SEC - description: WUP3 secure protection - bit_offset: 2 - bit_size: 1 - enum: SEC - - name: WUP4SEC - description: WUP4 secure protection - bit_offset: 3 - bit_size: 1 - enum: SEC - - name: WUP5SEC - description: WUP5 secure protection - bit_offset: 4 - bit_size: 1 - enum: SEC - - name: WUP6SEC - description: WUP6 secure protection - bit_offset: 5 - bit_size: 1 - enum: SEC - - name: WUP7SEC - description: WUP7 secure protection - bit_offset: 6 - bit_size: 1 - enum: SEC - - name: WUP8SEC - description: WUP8 secure protection - bit_offset: 7 - bit_size: 1 - enum: SEC - - name: LPMSEC - description: Low-power modes secure protection - bit_offset: 12 - bit_size: 1 - enum: SEC - - name: VDMSEC - description: Voltage detection and monitoring secure protection - bit_offset: 13 - bit_size: 1 - enum: SEC - - name: VBSEC - description: Backup domain secure protection - bit_offset: 14 - bit_size: 1 - enum: SEC - - name: APCSEC - description: Pull-up/pull-down secure protection - bit_offset: 15 - bit_size: 1 - enum: SEC + - name: WUP1SEC + description: WUP1 secure protection + bit_offset: 0 + bit_size: 1 + enum: SEC + - name: WUP2SEC + description: WUP2 secure protection + bit_offset: 1 + bit_size: 1 + enum: SEC + - name: WUP3SEC + description: WUP3 secure protection + bit_offset: 2 + bit_size: 1 + enum: SEC + - name: WUP4SEC + description: WUP4 secure protection + bit_offset: 3 + bit_size: 1 + enum: SEC + - name: WUP5SEC + description: WUP5 secure protection + bit_offset: 4 + bit_size: 1 + enum: SEC + - name: WUP6SEC + description: WUP6 secure protection + bit_offset: 5 + bit_size: 1 + enum: SEC + - name: WUP7SEC + description: WUP7 secure protection + bit_offset: 6 + bit_size: 1 + enum: SEC + - name: WUP8SEC + description: WUP8 secure protection + bit_offset: 7 + bit_size: 1 + enum: SEC + - name: LPMSEC + description: Low-power modes secure protection + bit_offset: 12 + bit_size: 1 + enum: SEC + - name: VDMSEC + description: Voltage detection and monitoring secure protection + bit_offset: 13 + bit_size: 1 + enum: SEC + - name: VBSEC + description: Backup domain secure protection + bit_offset: 14 + bit_size: 1 + enum: SEC + - name: APCSEC + description: Pull-up/pull-down secure protection + bit_offset: 15 + bit_size: 1 + enum: SEC fieldset/SR: description: PWR status register fields: - - name: CSSF - description: "Clear Stop and Standby flags\r This bit is protected against non-secure access when LPMSEC=1 in SECCFGR.\r This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1.\r Writing 1 to this bit clears the STOPF and SBF flags." - bit_offset: 0 - bit_size: 1 - - name: STOPF - description: "Stop flag\r This bit is set by hardware when the device enters a Stop mode, and is cleared by software by writing 1 to the CSSF bit." - bit_offset: 1 - bit_size: 1 - - name: SBF - description: "Standby flag\r This bit is set by hardware when the device enters the Standby mode, and is cleared by writing 1 to the CSSF bit, or by a power-on reset. It is not cleared by the system reset." - bit_offset: 2 - bit_size: 1 + - name: CSSF + description: "Clear Stop and Standby flags\r This bit is protected against non-secure access when LPMSEC=1 in SECCFGR.\r This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1.\r Writing 1 to this bit clears the STOPF and SBF flags." + bit_offset: 0 + bit_size: 1 + - name: STOPF + description: "Stop flag\r This bit is set by hardware when the device enters a Stop mode, and is cleared by software by writing 1 to the CSSF bit." + bit_offset: 1 + bit_size: 1 + - name: SBF + description: "Standby flag\r This bit is set by hardware when the device enters the Standby mode, and is cleared by writing 1 to the CSSF bit, or by a power-on reset. It is not cleared by the system reset." + bit_offset: 2 + bit_size: 1 fieldset/SVMCR: description: PWR supply voltage monitoring control register fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 4 - bit_size: 1 - - name: PVDLS - description: "Power voltage detector level selection\r These bits select the voltage threshold detected by the power voltage detector:" - bit_offset: 5 - bit_size: 3 - enum: PVDLS - - name: UVMEN - description: VDDUSB independent USB voltage monitor enable - bit_offset: 24 - bit_size: 1 - - name: IO2VMEN - description: VDDIO2 independent I/Os voltage monitor enable - bit_offset: 25 - bit_size: 1 - - name: AVM1EN - description: VDDA independent analog supply voltage monitor 1 enable (1.6V threshold) - bit_offset: 26 - bit_size: 1 - - name: AVM2EN - description: VDDA independent analog supply voltage monitor 2 enable (1.8V threshold) - bit_offset: 27 - bit_size: 1 - - name: USV - description: VDDUSB independent USB supply valid - bit_offset: 28 - bit_size: 1 - - name: IO2SV - description: "VDDIO2 independent I/Os supply valid\r This bit is used to validate the VDDIO2 supply for electrical and logical isolation purpose.\r Setting this bit is mandatory to use PG[15:2]. If VDDIO2 is not always present in the application, the VDDIO2 voltage monitor can be used to determine whether this supply is ready or not." - bit_offset: 29 - bit_size: 1 - - name: ASV - description: VDDA independent analog supply valid - bit_offset: 30 - bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PVDLS + description: "Power voltage detector level selection\r These bits select the voltage threshold detected by the power voltage detector:" + bit_offset: 5 + bit_size: 3 + enum: PVDLS + - name: UVMEN + description: VDDUSB independent USB voltage monitor enable + bit_offset: 24 + bit_size: 1 + - name: IO2VMEN + description: VDDIO2 independent I/Os voltage monitor enable + bit_offset: 25 + bit_size: 1 + - name: AVM1EN + description: VDDA independent analog supply voltage monitor 1 enable (1.6V threshold) + bit_offset: 26 + bit_size: 1 + - name: AVM2EN + description: VDDA independent analog supply voltage monitor 2 enable (1.8V threshold) + bit_offset: 27 + bit_size: 1 + - name: USV + description: VDDUSB independent USB supply valid + bit_offset: 28 + bit_size: 1 + - name: IO2SV + description: "VDDIO2 independent I/Os supply valid\r This bit is used to validate the VDDIO2 supply for electrical and logical isolation purpose.\r Setting this bit is mandatory to use PG[15:2]. If VDDIO2 is not always present in the application, the VDDIO2 voltage monitor can be used to determine whether this supply is ready or not." + bit_offset: 29 + bit_size: 1 + - name: ASV + description: VDDA independent analog supply valid + bit_offset: 30 + bit_size: 1 fieldset/SVMSR: fields: - - name: REGS - description: Regulator selection - bit_offset: 1 - bit_size: 1 - enum: REGSEL - - name: PVDO - description: VDD voltage detector output - bit_offset: 4 - bit_size: 1 - enum: PVDO - - name: ACTVOSRDY - description: Voltage level ready for currently used VOS - bit_offset: 15 - bit_size: 1 - - name: ACTVOS - description: "VOS currently applied to VCORE\r This field provides the last VOS value." - bit_offset: 16 - bit_size: 2 - enum: ACTVOS - - name: VDDUSBRDY - description: VDDUSB ready - bit_offset: 24 - bit_size: 1 - - name: VDDIO2RDY - description: VDDIO2 ready - bit_offset: 25 - bit_size: 1 - - name: VDDA1RDY - description: VDDA ready versus 1.6V voltage monitor - bit_offset: 26 - bit_size: 1 - - name: VDDA2RDY - description: VDDA ready versus 1.8V voltage monitor - bit_offset: 27 - bit_size: 1 + - name: REGS + description: Regulator selection + bit_offset: 1 + bit_size: 1 + enum: REGSEL + - name: PVDO + description: VDD voltage detector output + bit_offset: 4 + bit_size: 1 + enum: PVDO + - name: ACTVOSRDY + description: Voltage level ready for currently used VOS + bit_offset: 15 + bit_size: 1 + - name: ACTVOS + description: "VOS currently applied to VCORE\r This field provides the last VOS value." + bit_offset: 16 + bit_size: 2 + enum: ACTVOS + - name: VDDUSBRDY + description: VDDUSB ready + bit_offset: 24 + bit_size: 1 + - name: VDDIO2RDY + description: VDDIO2 ready + bit_offset: 25 + bit_size: 1 + - name: VDDA1RDY + description: VDDA ready versus 1.6V voltage monitor + bit_offset: 26 + bit_size: 1 + - name: VDDA2RDY + description: VDDA ready versus 1.8V voltage monitor + bit_offset: 27 + bit_size: 1 fieldset/UCPDR: description: PWR USB Type-C™ and Power Delivery register fields: - - name: UCPD_DBDIS - description: "UCPD dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to handover control to the UCPD (the UCPD must be initialized before doing the disable)." - bit_offset: 0 - bit_size: 1 - - name: UCPD_STBY - description: "UCPD Standby mode\r When set, this bit is used to memorize the UCPD configuration in Standby mode.\r This bit must be written to 1 just before entering Standby mode when using UCPD.\r It must be written to 0 after exiting the Standby mode and before writing any UCPD registers." - bit_offset: 1 - bit_size: 1 + - name: UCPD_DBDIS + description: "UCPD dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to handover control to the UCPD (the UCPD must be initialized before doing the disable)." + bit_offset: 0 + bit_size: 1 + - name: UCPD_STBY + description: "UCPD Standby mode\r When set, this bit is used to memorize the UCPD configuration in Standby mode.\r This bit must be written to 1 just before entering Standby mode when using UCPD.\r It must be written to 0 after exiting the Standby mode and before writing any UCPD registers." + bit_offset: 1 + bit_size: 1 fieldset/VOSR: description: PWR voltage scaling register fields: - - name: BOOSTRDY - description: "EPOD booster ready\r This bit is set to 1 by hardware when the power booster startup time is reached. The system clock frequency can be switched higher than 50 MHz only after this bit is set." - bit_offset: 14 - bit_size: 1 - - name: VOSRDY - description: Ready bit for VCORE voltage scaling output selection - bit_offset: 15 - bit_size: 1 - - name: VOS - description: "Voltage scaling range selection\r This field is protected against non-secure access when SYSCLKSEC=1 in RCC_SECCFGR. It is protected against unprivileged access when SYSCLKSEC=1 in RCC_SECCFGR and SPRIV=1 in PRIVCFGR, or when SYSCLKSEC=0 and NSPRIV=1." - bit_offset: 16 - bit_size: 2 - enum: VOS - - name: BOOSTEN - description: EPOD booster enable - bit_offset: 18 - bit_size: 1 + - name: BOOSTRDY + description: "EPOD booster ready\r This bit is set to 1 by hardware when the power booster startup time is reached. The system clock frequency can be switched higher than 50 MHz only after this bit is set." + bit_offset: 14 + bit_size: 1 + - name: VOSRDY + description: Ready bit for VCORE voltage scaling output selection + bit_offset: 15 + bit_size: 1 + - name: VOS + description: "Voltage scaling range selection\r This field is protected against non-secure access when SYSCLKSEC=1 in RCC_SECCFGR. It is protected against unprivileged access when SYSCLKSEC=1 in RCC_SECCFGR and SPRIV=1 in PRIVCFGR, or when SYSCLKSEC=0 and NSPRIV=1." + bit_offset: 16 + bit_size: 2 + enum: VOS + - name: BOOSTEN + description: EPOD booster enable + bit_offset: 18 + bit_size: 1 fieldset/WUCR1: description: PWR wakeup control register 1 fields: - - name: WUPEN1 - description: Wakeup pin WKUP1 enable - bit_offset: 0 - bit_size: 1 - - name: WUPEN2 - description: Wakeup pin WKUP2 enable - bit_offset: 1 - bit_size: 1 - - name: WUPEN3 - description: Wakeup pin WKUP3 enable - bit_offset: 2 - bit_size: 1 - - name: WUPEN4 - description: Wakeup pin WKUP4 enable - bit_offset: 3 - bit_size: 1 - - name: WUPEN5 - description: Wakeup pin WKUP5 enable - bit_offset: 4 - bit_size: 1 - - name: WUPEN6 - description: Wakeup pin WKUP6 enable - bit_offset: 5 - bit_size: 1 - - name: WUPEN7 - description: Wakeup pin WKUP7 enable - bit_offset: 6 - bit_size: 1 - - name: WUPEN8 - description: Wakeup pin WKUP8 enable - bit_offset: 7 - bit_size: 1 + - name: WUPEN1 + description: Wakeup pin WKUP1 enable + bit_offset: 0 + bit_size: 1 + - name: WUPEN2 + description: Wakeup pin WKUP2 enable + bit_offset: 1 + bit_size: 1 + - name: WUPEN3 + description: Wakeup pin WKUP3 enable + bit_offset: 2 + bit_size: 1 + - name: WUPEN4 + description: Wakeup pin WKUP4 enable + bit_offset: 3 + bit_size: 1 + - name: WUPEN5 + description: Wakeup pin WKUP5 enable + bit_offset: 4 + bit_size: 1 + - name: WUPEN6 + description: Wakeup pin WKUP6 enable + bit_offset: 5 + bit_size: 1 + - name: WUPEN7 + description: Wakeup pin WKUP7 enable + bit_offset: 6 + bit_size: 1 + - name: WUPEN8 + description: Wakeup pin WKUP8 enable + bit_offset: 7 + bit_size: 1 fieldset/WUCR2: description: PWR wakeup control register 2 fields: - - name: WUPP1 - description: "Wakeup pin WKUP1 polarity.\r This bit must be configured when WUPEN1 = 0." - bit_offset: 0 - bit_size: 1 - enum: WUPP - - name: WUPP2 - description: "Wakeup pin WKUP2 polarity\r This bit must be configured when WUPEN2 = 0." - bit_offset: 1 - bit_size: 1 - enum: WUPP - - name: WUPP3 - description: "Wakeup pin WKUP3 polarity\r This bit must be configured when WUPEN3 = 0." - bit_offset: 2 - bit_size: 1 - enum: WUPP - - name: WUPP4 - description: "Wakeup pin WKUP4 polarity\r This bit must be configured when WUPEN4 = 0." - bit_offset: 3 - bit_size: 1 - enum: WUPP - - name: WUPP5 - description: "Wakeup pin WKUP5 polarity\r This bit must be configured when WUPEN5 = 0." - bit_offset: 4 - bit_size: 1 - enum: WUPP - - name: WUPP6 - description: "Wakeup pin WKUP6 polarity\r This bit must be configured when WUPEN6 = 0." - bit_offset: 5 - bit_size: 1 - enum: WUPP - - name: WUPP7 - description: "Wakeup pin WKUP7 polarity\r This bit must be configured when WUPEN7 = 0." - bit_offset: 6 - bit_size: 1 - enum: WUPP - - name: WUPP8 - description: "Wakeup pin WKUP8 polarity\r This bit must be configured when WUPEN8=0." - bit_offset: 7 - bit_size: 1 - enum: WUPP + - name: WUPP1 + description: "Wakeup pin WKUP1 polarity.\r This bit must be configured when WUPEN1 = 0." + bit_offset: 0 + bit_size: 1 + enum: WUPP + - name: WUPP2 + description: "Wakeup pin WKUP2 polarity\r This bit must be configured when WUPEN2 = 0." + bit_offset: 1 + bit_size: 1 + enum: WUPP + - name: WUPP3 + description: "Wakeup pin WKUP3 polarity\r This bit must be configured when WUPEN3 = 0." + bit_offset: 2 + bit_size: 1 + enum: WUPP + - name: WUPP4 + description: "Wakeup pin WKUP4 polarity\r This bit must be configured when WUPEN4 = 0." + bit_offset: 3 + bit_size: 1 + enum: WUPP + - name: WUPP5 + description: "Wakeup pin WKUP5 polarity\r This bit must be configured when WUPEN5 = 0." + bit_offset: 4 + bit_size: 1 + enum: WUPP + - name: WUPP6 + description: "Wakeup pin WKUP6 polarity\r This bit must be configured when WUPEN6 = 0." + bit_offset: 5 + bit_size: 1 + enum: WUPP + - name: WUPP7 + description: "Wakeup pin WKUP7 polarity\r This bit must be configured when WUPEN7 = 0." + bit_offset: 6 + bit_size: 1 + enum: WUPP + - name: WUPP8 + description: "Wakeup pin WKUP8 polarity\r This bit must be configured when WUPEN8=0." + bit_offset: 7 + bit_size: 1 + enum: WUPP fieldset/WUCR3: description: PWR wakeup control register 3 fields: - - name: WUSEL1 - description: "Wakeup pin WKUP1 selection\r This field must be configured when WUPEN1 = 0." - bit_offset: 0 - bit_size: 2 - enum: WUSEL - - name: WUSEL2 - description: "Wakeup pin WKUP2 selection\r This field must be configured when WUPEN2 = 0." - bit_offset: 2 - bit_size: 2 - enum: WUSEL - - name: WUSEL3 - description: "Wakeup pin WKUP3 selection\r This field must be configured when WUPEN3 = 0." - bit_offset: 4 - bit_size: 2 - enum: WUSEL - - name: WUSEL4 - description: "Wakeup pin WKUP4 selection\r This field must be configured when WUPEN4 = 0." - bit_offset: 6 - bit_size: 2 - enum: WUSEL - - name: WUSEL5 - description: "Wakeup pin WKUP5 selection\r This field must be configured when WUPEN5 = 0." - bit_offset: 8 - bit_size: 2 - enum: WUSEL - - name: WUSEL6 - description: "Wakeup pin WKUP6 selection\r This field must be configured when WUPEN6 = 0." - bit_offset: 10 - bit_size: 2 - enum: WUSEL - - name: WUSEL7 - description: "Wakeup pin WKUP7 selection\r This field must be configured when WUPEN7 = 0." - bit_offset: 12 - bit_size: 2 - enum: WUSEL - - name: WUSEL8 - description: "Wakeup pin WKUP8 selection\r This field must be configured when WUPEN8 = 0." - bit_offset: 14 - bit_size: 2 - enum: WUSEL + - name: WUSEL1 + description: "Wakeup pin WKUP1 selection\r This field must be configured when WUPEN1 = 0." + bit_offset: 0 + bit_size: 2 + enum: WUSEL + - name: WUSEL2 + description: "Wakeup pin WKUP2 selection\r This field must be configured when WUPEN2 = 0." + bit_offset: 2 + bit_size: 2 + enum: WUSEL + - name: WUSEL3 + description: "Wakeup pin WKUP3 selection\r This field must be configured when WUPEN3 = 0." + bit_offset: 4 + bit_size: 2 + enum: WUSEL + - name: WUSEL4 + description: "Wakeup pin WKUP4 selection\r This field must be configured when WUPEN4 = 0." + bit_offset: 6 + bit_size: 2 + enum: WUSEL + - name: WUSEL5 + description: "Wakeup pin WKUP5 selection\r This field must be configured when WUPEN5 = 0." + bit_offset: 8 + bit_size: 2 + enum: WUSEL + - name: WUSEL6 + description: "Wakeup pin WKUP6 selection\r This field must be configured when WUPEN6 = 0." + bit_offset: 10 + bit_size: 2 + enum: WUSEL + - name: WUSEL7 + description: "Wakeup pin WKUP7 selection\r This field must be configured when WUPEN7 = 0." + bit_offset: 12 + bit_size: 2 + enum: WUSEL + - name: WUSEL8 + description: "Wakeup pin WKUP8 selection\r This field must be configured when WUPEN8 = 0." + bit_offset: 14 + bit_size: 2 + enum: WUSEL fieldset/WUSCR: description: PWR wakeup status clear register fields: - - name: CWUF1 - description: "Wakeup flag 1\r Writing 1 to this bit clears the WUF1 flag in WUSR." - bit_offset: 0 - bit_size: 1 - - name: CWUF2 - description: "Wakeup flag 2\r Writing 1 to this bit clears the WUF2 flag in WUSR." - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: "Wakeup flag 3\r Writing 1 to this bit clears the WUF3 flag in WUSR." - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: "Wakeup flag 4\r Writing 1 to this bit clears the WUF4 flag in WUSR." - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: "Wakeup flag 5\r Writing 1 to this bit clears the WUF5 flag in WUSR." - bit_offset: 4 - bit_size: 1 - - name: CWUF6 - description: "Wakeup flag 6\r Writing 1 to this bit clears the WUF6 flag in WUSR." - bit_offset: 5 - bit_size: 1 - - name: CWUF7 - description: "Wakeup flag 7\r Writing 1 to this bit clears the WUF7 flag in WUSR." - bit_offset: 6 - bit_size: 1 - - name: CWUF8 - description: "Wakeup flag 8\r Writing 1 to this bit clears the WUF8 flag in WUSR." - bit_offset: 7 - bit_size: 1 + - name: CWUF1 + description: "Wakeup flag 1\r Writing 1 to this bit clears the WUF1 flag in WUSR." + bit_offset: 0 + bit_size: 1 + - name: CWUF2 + description: "Wakeup flag 2\r Writing 1 to this bit clears the WUF2 flag in WUSR." + bit_offset: 1 + bit_size: 1 + - name: CWUF3 + description: "Wakeup flag 3\r Writing 1 to this bit clears the WUF3 flag in WUSR." + bit_offset: 2 + bit_size: 1 + - name: CWUF4 + description: "Wakeup flag 4\r Writing 1 to this bit clears the WUF4 flag in WUSR." + bit_offset: 3 + bit_size: 1 + - name: CWUF5 + description: "Wakeup flag 5\r Writing 1 to this bit clears the WUF5 flag in WUSR." + bit_offset: 4 + bit_size: 1 + - name: CWUF6 + description: "Wakeup flag 6\r Writing 1 to this bit clears the WUF6 flag in WUSR." + bit_offset: 5 + bit_size: 1 + - name: CWUF7 + description: "Wakeup flag 7\r Writing 1 to this bit clears the WUF7 flag in WUSR." + bit_offset: 6 + bit_size: 1 + - name: CWUF8 + description: "Wakeup flag 8\r Writing 1 to this bit clears the WUF8 flag in WUSR." + bit_offset: 7 + bit_size: 1 fieldset/WUSR: description: PWR wakeup status register fields: - - name: WUF1 - description: "Wakeup flag 1\r This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0." - bit_offset: 0 - bit_size: 1 - - name: WUF2 - description: "Wakeup flag 2\r This bit is set when a wakeup event is detected on WKUP2 pin. This bit is cleared by writing 1 in the CWUF2 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN2=0." - bit_offset: 1 - bit_size: 1 - - name: WUF3 - description: "Wakeup flag 3\r This bit is set when a wakeup event is detected on WKUP3 pin. This bit is cleared by writing 1 in the CWUF3 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN3=0." - bit_offset: 2 - bit_size: 1 - - name: WUF4 - description: "Wakeup flag 4\r This bit is set when a wakeup event is detected on WKUP4 pin. This bit is cleared by writing 1 in the CWUF4 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN4=0." - bit_offset: 3 - bit_size: 1 - - name: WUF5 - description: "Wakeup flag 5\r This bit is set when a wakeup event is detected on WKUP5 pin. This bit is cleared by writing 1 in the CWUF5 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN5=0." - bit_offset: 4 - bit_size: 1 - - name: WUF6 - description: "Wakeup flag 6\r This bit is set when a wakeup event is detected on WKUP6 pin. This bit is cleared by writing 1 in the CWUF6 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN6=0.\r If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared." - bit_offset: 5 - bit_size: 1 - - name: WUF7 - description: "Wakeup flag 7\r This bit is set when a wakeup event is detected on WKUP7 pin. This bit is cleared by writing 1 in the CWUF7 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN7=0.\r If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared." - bit_offset: 6 - bit_size: 1 - - name: WUF8 - description: "Wakeup flag 8\r This bit is set when a wakeup event is detected on WKUP8 pin. This bit is cleared by writing 1 in the CWUF8 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN8=0.\r If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared." - bit_offset: 7 - bit_size: 1 + - name: WUF1 + description: "Wakeup flag 1\r This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0." + bit_offset: 0 + bit_size: 1 + - name: WUF2 + description: "Wakeup flag 2\r This bit is set when a wakeup event is detected on WKUP2 pin. This bit is cleared by writing 1 in the CWUF2 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN2=0." + bit_offset: 1 + bit_size: 1 + - name: WUF3 + description: "Wakeup flag 3\r This bit is set when a wakeup event is detected on WKUP3 pin. This bit is cleared by writing 1 in the CWUF3 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN3=0." + bit_offset: 2 + bit_size: 1 + - name: WUF4 + description: "Wakeup flag 4\r This bit is set when a wakeup event is detected on WKUP4 pin. This bit is cleared by writing 1 in the CWUF4 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN4=0." + bit_offset: 3 + bit_size: 1 + - name: WUF5 + description: "Wakeup flag 5\r This bit is set when a wakeup event is detected on WKUP5 pin. This bit is cleared by writing 1 in the CWUF5 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN5=0." + bit_offset: 4 + bit_size: 1 + - name: WUF6 + description: "Wakeup flag 6\r This bit is set when a wakeup event is detected on WKUP6 pin. This bit is cleared by writing 1 in the CWUF6 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN6=0.\r If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared." + bit_offset: 5 + bit_size: 1 + - name: WUF7 + description: "Wakeup flag 7\r This bit is set when a wakeup event is detected on WKUP7 pin. This bit is cleared by writing 1 in the CWUF7 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN7=0.\r If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared." + bit_offset: 6 + bit_size: 1 + - name: WUF8 + description: "Wakeup flag 8\r This bit is set when a wakeup event is detected on WKUP8 pin. This bit is cleared by writing 1 in the CWUF8 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN8=0.\r If WUSEL=11, this bit is cleared by hardware when all internal wakeup source are cleared." + bit_offset: 7 + bit_size: 1 enum/ACTVOS: bit_size: 2 variants: - - name: Range4 - description: Range 4 (lowest power) - value: 0 - - name: Range3 - description: Range 3 - value: 1 - - name: Range2 - description: Range 2 - value: 2 - - name: Range1 - description: Range 1 (highest frequency) - value: 3 + - name: Range4 + description: Range 4 (lowest power) + value: 0 + - name: Range3 + description: Range 3 + value: 1 + - name: Range2 + description: Range 2 + value: 2 + - name: Range1 + description: Range 1 (highest frequency) + value: 3 enum/DBP: bit_size: 1 variants: - - name: Disabled - description: Write access to Backup domain disabled - value: 0 - - name: Enabled - description: Write access to Backup domain enabled - value: 1 + - name: Disabled + description: Write access to Backup domain disabled + value: 0 + - name: Enabled + description: Write access to Backup domain enabled + value: 1 enum/FLASHFWU: bit_size: 1 variants: - - name: LowPower - description: Flash memory enters low-power mode in Stop 0 and Stop 1 modes (lower-power consumption). - value: 0 - - name: Normal - description: Flash memory remains in normal mode in Stop 0 and Stop 1 modes (faster wakeup time). - value: 1 + - name: LowPower + description: Flash memory enters low-power mode in Stop 0 and Stop 1 modes (lower-power consumption). + value: 0 + - name: Normal + description: Flash memory remains in normal mode in Stop 0 and Stop 1 modes (faster wakeup time). + value: 1 enum/LPMS: bit_size: 3 variants: - - name: Stop0 - description: Stop 0 mode - value: 0 - - name: Stop1 - description: Stop 1 mode - value: 1 - - name: Stop2 - description: Stop 2 mode - value: 2 - - name: Stop3 - description: Stop 3 mode - value: 3 + - name: Stop0 + description: Stop 0 mode + value: 0 + - name: Stop1 + description: Stop 1 mode + value: 1 + - name: Stop2 + description: Stop 2 mode + value: 2 + - name: Stop3 + description: Stop 3 mode + value: 3 enum/PDS: bit_size: 1 variants: - - name: Retained - description: Content retained in Stop modes - value: 0 - - name: Lost - description: Content lost in Stop modes - value: 1 + - name: Retained + description: Content retained in Stop modes + value: 0 + - name: Lost + description: Content lost in Stop modes + value: 1 enum/PRIV: bit_size: 1 variants: - - name: Unprivileged - description: Read and write to PWR non-secure functions can be done by privileged or unprivileged access. - value: 0 - - name: Privileged - description: Read and write to PWR non-secure functions can be done by privileged access only. - value: 1 + - name: Unprivileged + description: Read and write to PWR non-secure functions can be done by privileged or unprivileged access. + value: 0 + - name: Privileged + description: Read and write to PWR non-secure functions can be done by privileged access only. + value: 1 enum/PVDLS: bit_size: 3 variants: - - name: B_0x0 - description: VPVD0 around 2.0 V - value: 0 - - name: B_0x1 - description: VPVD1 around 2.2 V - value: 1 - - name: B_0x2 - description: VPVD2 around 2.4 V - value: 2 - - name: B_0x3 - description: VPVD3 around 2.5 V - value: 3 - - name: B_0x4 - description: VPVD4 around 2.6 V - value: 4 - - name: B_0x5 - description: VPVD5 around 2.8 V - value: 5 - - name: B_0x6 - description: VPVD6 around 2.9 V - value: 6 - - name: B_0x7 - description: External input analog voltage PVD_IN (compared internally to VREFINT) - value: 7 + - name: B_0x0 + description: VPVD0 around 2.0 V + value: 0 + - name: B_0x1 + description: VPVD1 around 2.2 V + value: 1 + - name: B_0x2 + description: VPVD2 around 2.4 V + value: 2 + - name: B_0x3 + description: VPVD3 around 2.5 V + value: 3 + - name: B_0x4 + description: VPVD4 around 2.6 V + value: 4 + - name: B_0x5 + description: VPVD5 around 2.8 V + value: 5 + - name: B_0x6 + description: VPVD6 around 2.9 V + value: 6 + - name: B_0x7 + description: External input analog voltage PVD_IN (compared internally to VREFINT) + value: 7 enum/PVDO: bit_size: 1 variants: - - name: AboveOrEqual - description: "VDD is equal or above the PVD threshold selected by PVDLS[2:0]." - value: 0 - - name: Below - description: "VDD is below the PVD threshold selected by PVDLS[2:0]." - value: 1 + - name: AboveOrEqual + description: VDD is equal or above the PVD threshold selected by PVDLS[2:0]. + value: 0 + - name: Below + description: VDD is below the PVD threshold selected by PVDLS[2:0]. + value: 1 enum/REGSEL: bit_size: 1 variants: - - name: LDO - description: LDO selected - value: 0 - - name: SMPS - description: SMPS selected - value: 1 + - name: LDO + description: LDO selected + value: 0 + - name: SMPS + description: SMPS selected + value: 1 enum/RRSB: bit_size: 1 variants: - - name: NotRetained - description: SRAM2 page1 content not retained in Stop 3 and Standby modes - value: 0 - - name: Retained - description: SRAM2 page1 content retained in Stop 3 and Standby modes - value: 1 + - name: NotRetained + description: SRAM2 page1 content not retained in Stop 3 and Standby modes + value: 0 + - name: Retained + description: SRAM2 page1 content retained in Stop 3 and Standby modes + value: 1 enum/SEC: bit_size: 1 variants: - - name: NonSecure - description: "CR1, CR2 and CSSF in the SR can be read and written with secure or non-secure access." - value: 0 - - name: Secure - description: "CR1, CR2, and CSSF in the SR can be read and written only with secure access." - value: 1 + - name: NonSecure + description: CR1, CR2 and CSSF in the SR can be read and written with secure or non-secure access. + value: 0 + - name: Secure + description: CR1, CR2, and CSSF in the SR can be read and written only with secure access. + value: 1 enum/SRAMFWU: bit_size: 1 variants: - - name: B_0x0 - description: "SRAM4 enters low-power mode in Stop 0, 1 and 2 modes (source biasing for lower-power consumption)." - value: 0 - - name: B_0x1 - description: "SRAM4 remains in normal mode in Stop 0, 1 and 2 modes (higher consumption but no SRAM4 wakeup time)." - value: 1 + - name: B_0x0 + description: SRAM4 enters low-power mode in Stop 0, 1 and 2 modes (source biasing for lower-power consumption). + value: 0 + - name: B_0x1 + description: SRAM4 remains in normal mode in Stop 0, 1 and 2 modes (higher consumption but no SRAM4 wakeup time). + value: 1 enum/SRAMPD: bit_size: 1 variants: - - name: PoweredOn - description: SRAM1 powered on - value: 0 - - name: PoweredOff - description: SRAM1 powered off - value: 1 + - name: PoweredOn + description: SRAM1 powered on + value: 0 + - name: PoweredOff + description: SRAM1 powered off + value: 1 enum/TEMPH: bit_size: 1 variants: - - name: B_0x0 - description: Temperature < high threshold - value: 0 - - name: B_0x1 - description: Temperature ≥ high threshold - value: 1 + - name: B_0x0 + description: Temperature < high threshold + value: 0 + - name: B_0x1 + description: Temperature ≥ high threshold + value: 1 enum/TEMPL: bit_size: 1 variants: - - name: B_0x0 - description: Temperature > low threshold - value: 0 - - name: B_0x1 - description: Temperature ≤ low threshold - value: 1 + - name: B_0x0 + description: Temperature > low threshold + value: 0 + - name: B_0x1 + description: Temperature ≤ low threshold + value: 1 enum/VBATH: bit_size: 1 variants: - - name: B_0x0 - description: Backup domain voltage level < high threshold - value: 0 - - name: B_0x1 - description: Backup domain voltage level ≥ high threshold - value: 1 + - name: B_0x0 + description: Backup domain voltage level < high threshold + value: 0 + - name: B_0x1 + description: Backup domain voltage level ≥ high threshold + value: 1 enum/VBE: bit_size: 1 variants: - - name: B_0x0 - description: VBAT battery charging disabled - value: 0 - - name: B_0x1 - description: VBAT battery charging enabled - value: 1 + - name: B_0x0 + description: VBAT battery charging disabled + value: 0 + - name: B_0x1 + description: VBAT battery charging enabled + value: 1 enum/VBRS: bit_size: 1 variants: - - name: B_0x0 - description: Charge VBAT through a 5 kΩ resistor - value: 0 - - name: B_0x1 - description: Charge VBAT through a 1.5 kΩ resistor - value: 1 + - name: B_0x0 + description: Charge VBAT through a 5 kΩ resistor + value: 0 + - name: B_0x1 + description: Charge VBAT through a 1.5 kΩ resistor + value: 1 enum/VOS: bit_size: 2 variants: - - name: B_0x0 - description: Range 4 (lowest power) - value: 0 - - name: B_0x1 - description: Range 3 - value: 1 - - name: B_0x2 - description: Range 2 - value: 2 - - name: B_0x3 - description: Range 1 (highest frequency). This value cannot be written when VCOREMEN = 1 in TAMP_OR register. - value: 3 + - name: B_0x0 + description: Range 4 (lowest power) + value: 0 + - name: B_0x1 + description: Range 3 + value: 1 + - name: B_0x2 + description: Range 2 + value: 2 + - name: B_0x3 + description: Range 1 (highest frequency). This value cannot be written when VCOREMEN = 1 in TAMP_OR register. + value: 3 enum/WUPP: bit_size: 1 variants: - - name: B_0x0 - description: Detection on high level (rising edge) - value: 0 - - name: B_0x1 - description: Detection on low level (falling edge) - value: 1 + - name: B_0x0 + description: Detection on high level (rising edge) + value: 0 + - name: B_0x1 + description: Detection on low level (falling edge) + value: 1 enum/WUSEL: bit_size: 2 variants: - - name: B_0x0 - description: WKUP7_0 - value: 0 - - name: B_0x1 - description: WKUP7_1 - value: 1 - - name: B_0x2 - description: WKUP7_2 - value: 2 - - name: B_0x3 - description: WKUP7_3 - value: 3 + - name: B_0x0 + description: WKUP7_0 + value: 0 + - name: B_0x1 + description: WKUP7_1 + value: 1 + - name: B_0x2 + description: WKUP7_2 + value: 2 + - name: B_0x3 + description: WKUP7_3 + value: 3 diff --git a/data/registers/pwr_wb55.yaml b/data/registers/pwr_wb55.yaml index 2d237ab..c371345 100644 --- a/data/registers/pwr_wb55.yaml +++ b/data/registers/pwr_wb55.yaml @@ -1,1116 +1,1115 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: Power control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Power control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Power control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: Power control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: Power status register 1 - byte_offset: 16 - access: Read - fieldset: SR1 - - name: SR2 - description: Power status register 2 - byte_offset: 20 - access: Read - fieldset: SR2 - - name: SCR - description: Power status clear register - byte_offset: 24 - access: Write - fieldset: SCR - - name: CR5 - description: Power control register 5 - byte_offset: 28 - fieldset: CR5 - - name: PUCRA - description: Power Port A pull-up control register - byte_offset: 32 - fieldset: PUCRA - - name: PDCRA - description: Power Port A pull-down control register - byte_offset: 36 - fieldset: PDCRA - - name: PUCRB - description: Power Port B pull-up control register - byte_offset: 40 - fieldset: PUCRB - - name: PDCRB - description: Power Port B pull-down control register - byte_offset: 44 - fieldset: PDCRB - - name: PUCRC - description: Power Port C pull-up control register - byte_offset: 48 - fieldset: PUCRC - - name: PDCRC - description: Power Port C pull-down control register - byte_offset: 52 - fieldset: PDCRC - - name: PUCRD - description: Power Port D pull-up control register - byte_offset: 56 - fieldset: PUCRD - - name: PDCRD - description: Power Port D pull-down control register - byte_offset: 60 - fieldset: PDCRD - - name: PUCRE - description: Power Port E pull-up control register - byte_offset: 64 - fieldset: PUCRE - - name: PDCRE - description: Power Port E pull-down control register - byte_offset: 68 - fieldset: PDCRE - - name: PUCRH - description: Power Port H pull-up control register - byte_offset: 88 - fieldset: PUCRH - - name: PDCRH - description: Power Port H pull-down control register - byte_offset: 92 - fieldset: PDCRH - - name: C2CR1 - description: CPU2 Power control register 1 - byte_offset: 128 - fieldset: C2CR1 - - name: C2CR3 - description: CPU2 Power control register 3 - byte_offset: 132 - fieldset: C2CR3 - - name: EXTSCR - description: Power status clear register - byte_offset: 136 - fieldset: EXTSCR + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: CR5 + description: Power control register 5 + byte_offset: 28 + fieldset: CR5 + - name: PUCRA + description: Power Port A pull-up control register + byte_offset: 32 + fieldset: PUCRA + - name: PDCRA + description: Power Port A pull-down control register + byte_offset: 36 + fieldset: PDCRA + - name: PUCRB + description: Power Port B pull-up control register + byte_offset: 40 + fieldset: PUCRB + - name: PDCRB + description: Power Port B pull-down control register + byte_offset: 44 + fieldset: PDCRB + - name: PUCRC + description: Power Port C pull-up control register + byte_offset: 48 + fieldset: PUCRC + - name: PDCRC + description: Power Port C pull-down control register + byte_offset: 52 + fieldset: PDCRC + - name: PUCRD + description: Power Port D pull-up control register + byte_offset: 56 + fieldset: PUCRD + - name: PDCRD + description: Power Port D pull-down control register + byte_offset: 60 + fieldset: PDCRD + - name: PUCRE + description: Power Port E pull-up control register + byte_offset: 64 + fieldset: PUCRE + - name: PDCRE + description: Power Port E pull-down control register + byte_offset: 68 + fieldset: PDCRE + - name: PUCRH + description: Power Port H pull-up control register + byte_offset: 88 + fieldset: PUCRH + - name: PDCRH + description: Power Port H pull-down control register + byte_offset: 92 + fieldset: PDCRH + - name: C2CR1 + description: CPU2 Power control register 1 + byte_offset: 128 + fieldset: C2CR1 + - name: C2CR3 + description: CPU2 Power control register 3 + byte_offset: 132 + fieldset: C2CR3 + - name: EXTSCR + description: Power status clear register + byte_offset: 136 + fieldset: EXTSCR fieldset/C2CR1: description: CPU2 Power control register 1 fields: - - name: LPMS - description: Low-power mode selection for CPU2 - bit_offset: 0 - bit_size: 3 - - name: FPDR - description: Flash power down mode during LPRun for CPU2 - bit_offset: 4 - bit_size: 1 - - name: FPDS - description: Flash power down mode during LPSleep for CPU2 - bit_offset: 5 - bit_size: 1 - - name: BLEEWKUP - description: BLE external wakeup signal - bit_offset: 14 - bit_size: 1 - - name: _802EWKUP - description: 802.15.4 external wakeup signal - bit_offset: 15 - bit_size: 1 + - name: LPMS + description: Low-power mode selection for CPU2 + bit_offset: 0 + bit_size: 3 + - name: FPDR + description: Flash power down mode during LPRun for CPU2 + bit_offset: 4 + bit_size: 1 + - name: FPDS + description: Flash power down mode during LPSleep for CPU2 + bit_offset: 5 + bit_size: 1 + - name: BLEEWKUP + description: BLE external wakeup signal + bit_offset: 14 + bit_size: 1 + - name: _802EWKUP + description: 802.15.4 external wakeup signal + bit_offset: 15 + bit_size: 1 fieldset/C2CR3: description: CPU2 Power control register 3 fields: - - name: EWUP1 - description: Enable Wakeup pin WKUP1 for CPU2 - bit_offset: 0 - bit_size: 1 - - name: EWUP2 - description: Enable Wakeup pin WKUP2 for CPU2 - bit_offset: 1 - bit_size: 1 - - name: EWUP3 - description: Enable Wakeup pin WKUP3 for CPU2 - bit_offset: 2 - bit_size: 1 - - name: EWUP4 - description: Enable Wakeup pin WKUP4 for CPU2 - bit_offset: 3 - bit_size: 1 - - name: EWUP5 - description: Enable Wakeup pin WKUP5 for CPU2 - bit_offset: 4 - bit_size: 1 - - name: EBLEWUP - description: Enable BLE host wakeup interrupt for CPU2 - bit_offset: 9 - bit_size: 1 - - name: E802WUP - description: Enable 802.15.4 host wakeup interrupt for CPU2 - bit_offset: 10 - bit_size: 1 - - name: APC - description: Apply pull-up and pull-down configuration for CPU2 - bit_offset: 12 - bit_size: 1 - - name: EIWUL - description: Enable internal wakeup line for CPU2 - bit_offset: 15 - bit_size: 1 + - name: EWUP1 + description: Enable Wakeup pin WKUP1 for CPU2 + bit_offset: 0 + bit_size: 1 + - name: EWUP2 + description: Enable Wakeup pin WKUP2 for CPU2 + bit_offset: 1 + bit_size: 1 + - name: EWUP3 + description: Enable Wakeup pin WKUP3 for CPU2 + bit_offset: 2 + bit_size: 1 + - name: EWUP4 + description: Enable Wakeup pin WKUP4 for CPU2 + bit_offset: 3 + bit_size: 1 + - name: EWUP5 + description: Enable Wakeup pin WKUP5 for CPU2 + bit_offset: 4 + bit_size: 1 + - name: EBLEWUP + description: Enable BLE host wakeup interrupt for CPU2 + bit_offset: 9 + bit_size: 1 + - name: E802WUP + description: Enable 802.15.4 host wakeup interrupt for CPU2 + bit_offset: 10 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration for CPU2 + bit_offset: 12 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line for CPU2 + bit_offset: 15 + bit_size: 1 fieldset/CR1: description: Power control register 1 fields: - - name: LPMS - description: Low-power mode selection for CPU1 - bit_offset: 0 - bit_size: 3 - - name: FPDR - description: Flash power down mode during LPRun for CPU1 - bit_offset: 4 - bit_size: 1 - - name: FPDS - description: Flash power down mode during LPsSleep for CPU1 - bit_offset: 5 - bit_size: 1 - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 9 - bit_size: 2 - - name: LPR - description: Low-power run - bit_offset: 14 - bit_size: 1 + - name: LPMS + description: Low-power mode selection for CPU1 + bit_offset: 0 + bit_size: 3 + - name: FPDR + description: Flash power down mode during LPRun for CPU1 + bit_offset: 4 + bit_size: 1 + - name: FPDS + description: Flash power down mode during LPsSleep for CPU1 + bit_offset: 5 + bit_size: 1 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 9 + bit_size: 2 + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 fieldset/CR2: description: Power control register 2 fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 0 - bit_size: 1 - - name: PLS - description: Power voltage detector level selection - bit_offset: 1 - bit_size: 3 - - name: PVME1 - description: "Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V" - bit_offset: 4 - bit_size: 1 - - name: PVME3 - description: "Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V" - bit_offset: 6 - bit_size: 1 - - name: USV - description: VDDUSB USB supply valid - bit_offset: 10 - bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: Power voltage detector level selection + bit_offset: 1 + bit_size: 3 + - name: PVME1 + description: 'Peripheral voltage monitoring 1 enable: VDDUSB vs. 1.2V' + bit_offset: 4 + bit_size: 1 + - name: PVME3 + description: 'Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V' + bit_offset: 6 + bit_size: 1 + - name: USV + description: VDDUSB USB supply valid + bit_offset: 10 + bit_size: 1 fieldset/CR3: description: Power control register 3 fields: - - name: EWUP1 - description: Enable Wakeup pin WKUP1 - bit_offset: 0 - bit_size: 1 - - name: EWUP2 - description: Enable Wakeup pin WKUP2 - bit_offset: 1 - bit_size: 1 - - name: EWUP3 - description: Enable Wakeup pin WKUP3 - bit_offset: 2 - bit_size: 1 - - name: EWUP4 - description: Enable Wakeup pin WKUP4 - bit_offset: 3 - bit_size: 1 - - name: EWUP5 - description: Enable Wakeup pin WKUP5 - bit_offset: 4 - bit_size: 1 - - name: EBORHSDFB - description: Enable BORH and Step Down counverter forced in Bypass interrups for CPU1 - bit_offset: 8 - bit_size: 1 - - name: RRS - description: SRAM2a retention in Standby mode - bit_offset: 9 - bit_size: 1 - - name: APC - description: Apply pull-up and pull-down configuration - bit_offset: 10 - bit_size: 1 - - name: EBLEA - description: Enable BLE end of activity interrupt for CPU1 - bit_offset: 11 - bit_size: 1 - - name: ECRPE - description: Enable critical radio phase end of activity interrupt for CPU1 - bit_offset: 12 - bit_size: 1 - - name: E802A - description: Enable end of activity interrupt for CPU1 - bit_offset: 13 - bit_size: 1 - - name: EC2H - description: Enable CPU2 Hold interrupt for CPU1 - bit_offset: 14 - bit_size: 1 - - name: EIWUL - description: Enable internal wakeup line for CPU1 - bit_offset: 15 - bit_size: 1 + - name: EWUP1 + description: Enable Wakeup pin WKUP1 + bit_offset: 0 + bit_size: 1 + - name: EWUP2 + description: Enable Wakeup pin WKUP2 + bit_offset: 1 + bit_size: 1 + - name: EWUP3 + description: Enable Wakeup pin WKUP3 + bit_offset: 2 + bit_size: 1 + - name: EWUP4 + description: Enable Wakeup pin WKUP4 + bit_offset: 3 + bit_size: 1 + - name: EWUP5 + description: Enable Wakeup pin WKUP5 + bit_offset: 4 + bit_size: 1 + - name: EBORHSDFB + description: Enable BORH and Step Down counverter forced in Bypass interrups for CPU1 + bit_offset: 8 + bit_size: 1 + - name: RRS + description: SRAM2a retention in Standby mode + bit_offset: 9 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration + bit_offset: 10 + bit_size: 1 + - name: EBLEA + description: Enable BLE end of activity interrupt for CPU1 + bit_offset: 11 + bit_size: 1 + - name: ECRPE + description: Enable critical radio phase end of activity interrupt for CPU1 + bit_offset: 12 + bit_size: 1 + - name: E802A + description: Enable end of activity interrupt for CPU1 + bit_offset: 13 + bit_size: 1 + - name: EC2H + description: Enable CPU2 Hold interrupt for CPU1 + bit_offset: 14 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line for CPU1 + bit_offset: 15 + bit_size: 1 fieldset/CR4: description: Power control register 4 fields: - - name: WP1 - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - - name: WP2 - description: Wakeup pin WKUP2 polarity - bit_offset: 1 - bit_size: 1 - - name: WP3 - description: Wakeup pin WKUP3 polarity - bit_offset: 2 - bit_size: 1 - - name: WP4 - description: Wakeup pin WKUP4 polarity - bit_offset: 3 - bit_size: 1 - - name: WP5 - description: Wakeup pin WKUP5 polarity - bit_offset: 4 - bit_size: 1 - - name: VBE - description: VBAT battery charging enable - bit_offset: 8 - bit_size: 1 - - name: VBRS - description: VBAT battery charging resistor selection - bit_offset: 9 - bit_size: 1 - - name: C2BOOT - description: BOOT CPU2 after reset or wakeup from Stop or Standby modes - bit_offset: 15 - bit_size: 1 + - name: WP1 + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + - name: WP2 + description: Wakeup pin WKUP2 polarity + bit_offset: 1 + bit_size: 1 + - name: WP3 + description: Wakeup pin WKUP3 polarity + bit_offset: 2 + bit_size: 1 + - name: WP4 + description: Wakeup pin WKUP4 polarity + bit_offset: 3 + bit_size: 1 + - name: WP5 + description: Wakeup pin WKUP5 polarity + bit_offset: 4 + bit_size: 1 + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: C2BOOT + description: BOOT CPU2 after reset or wakeup from Stop or Standby modes + bit_offset: 15 + bit_size: 1 fieldset/CR5: description: Power control register 5 fields: - - name: SDVOS - description: Step Down converter voltage output scaling - bit_offset: 0 - bit_size: 4 - - name: SDSC - description: Step Down converter supplt startup current selection - bit_offset: 4 - bit_size: 3 - - name: BORHC - description: BORH configuration selection - bit_offset: 8 - bit_size: 1 - - name: SMPSCFG - description: VOS configuration selection (non user) - bit_offset: 9 - bit_size: 1 - - name: SDBEN - description: Enable Step Down converter Bypass mode enabled - bit_offset: 14 - bit_size: 1 - - name: SDEB - description: Enable Step Down converter SMPS mode enabled - bit_offset: 15 - bit_size: 1 + - name: SDVOS + description: Step Down converter voltage output scaling + bit_offset: 0 + bit_size: 4 + - name: SDSC + description: Step Down converter supplt startup current selection + bit_offset: 4 + bit_size: 3 + - name: BORHC + description: BORH configuration selection + bit_offset: 8 + bit_size: 1 + - name: SMPSCFG + description: VOS configuration selection (non user) + bit_offset: 9 + bit_size: 1 + - name: SDBEN + description: Enable Step Down converter Bypass mode enabled + bit_offset: 14 + bit_size: 1 + - name: SDEB + description: Enable Step Down converter SMPS mode enabled + bit_offset: 15 + bit_size: 1 fieldset/EXTSCR: description: Power status clear register fields: - - name: C1CSSF - description: Clear CPU1 Stop Standby flags - bit_offset: 0 - bit_size: 1 - - name: C2CSSF - description: Clear CPU2 Stop Standby flags - bit_offset: 1 - bit_size: 1 - - name: CCRPF - description: Clear Critical Radio system phase - bit_offset: 2 - bit_size: 1 - - name: C1SBF - description: System Standby flag for CPU1 - bit_offset: 8 - bit_size: 1 - - name: C1STOPF - description: System Stop flag for CPU1 - bit_offset: 9 - bit_size: 1 - - name: C2SBF - description: System Standby flag for CPU2 - bit_offset: 10 - bit_size: 1 - - name: C2STOPF - description: System Stop flag for CPU2 - bit_offset: 11 - bit_size: 1 - - name: CRPF - description: Critical Radio system phase - bit_offset: 13 - bit_size: 1 - - name: C1DS - description: CPU1 deepsleep mode - bit_offset: 14 - bit_size: 1 - - name: C2DS - description: CPU2 deepsleep mode - bit_offset: 15 - bit_size: 1 + - name: C1CSSF + description: Clear CPU1 Stop Standby flags + bit_offset: 0 + bit_size: 1 + - name: C2CSSF + description: Clear CPU2 Stop Standby flags + bit_offset: 1 + bit_size: 1 + - name: CCRPF + description: Clear Critical Radio system phase + bit_offset: 2 + bit_size: 1 + - name: C1SBF + description: System Standby flag for CPU1 + bit_offset: 8 + bit_size: 1 + - name: C1STOPF + description: System Stop flag for CPU1 + bit_offset: 9 + bit_size: 1 + - name: C2SBF + description: System Standby flag for CPU2 + bit_offset: 10 + bit_size: 1 + - name: C2STOPF + description: System Stop flag for CPU2 + bit_offset: 11 + bit_size: 1 + - name: CRPF + description: Critical Radio system phase + bit_offset: 13 + bit_size: 1 + - name: C1DS + description: CPU1 deepsleep mode + bit_offset: 14 + bit_size: 1 + - name: C2DS + description: CPU2 deepsleep mode + bit_offset: 15 + bit_size: 1 fieldset/PDCRA: description: Power Port A pull-down control register fields: - - name: PD0 - description: Port A pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port A pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port A pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port A pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port A pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PD5 - description: Port A pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port A pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port A pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port A pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port A pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port A pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port A pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port A pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD14 - description: Port A pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 + - name: PD0 + description: Port A pull-down bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PD1 + description: Port A pull-down bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PD2 + description: Port A pull-down bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PD3 + description: Port A pull-down bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PD4 + description: Port A pull-down bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PD5 + description: Port A pull-down bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PD6 + description: Port A pull-down bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PD7 + description: Port A pull-down bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PD8 + description: Port A pull-down bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PD9 + description: Port A pull-down bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PD10 + description: Port A pull-down bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PD11 + description: Port A pull-down bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PD12 + description: Port A pull-down bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PD14 + description: Port A pull-down bit y (y=0..15) + bit_offset: 14 + bit_size: 1 fieldset/PDCRB: description: Power Port B pull-down control register fields: - - name: PD0 - description: Port B pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port B pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port B pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port B pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD5 - description: Port B pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port B pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port B pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port B pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port B pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port B pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port B pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port B pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD13 - description: Port B pull-down bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PD14 - description: Port B pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PD15 - description: Port B pull-down bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PD0 + description: Port B pull-down bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PD1 + description: Port B pull-down bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PD2 + description: Port B pull-down bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PD3 + description: Port B pull-down bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PD5 + description: Port B pull-down bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PD6 + description: Port B pull-down bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PD7 + description: Port B pull-down bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PD8 + description: Port B pull-down bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PD9 + description: Port B pull-down bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PD10 + description: Port B pull-down bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PD11 + description: Port B pull-down bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PD12 + description: Port B pull-down bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PD13 + description: Port B pull-down bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PD14 + description: Port B pull-down bit y (y=0..15) + bit_offset: 14 + bit_size: 1 + - name: PD15 + description: Port B pull-down bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PDCRC: description: Power Port C pull-down control register fields: - - name: PD0 - description: Port C pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port C pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port C pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port C pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port C pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PD5 - description: Port C pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port C pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port C pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port C pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port C pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port C pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port C pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port C pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD13 - description: Port C pull-down bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PD14 - description: Port C pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PD15 - description: Port C pull-down bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PD0 + description: Port C pull-down bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PD1 + description: Port C pull-down bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PD2 + description: Port C pull-down bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PD3 + description: Port C pull-down bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PD4 + description: Port C pull-down bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PD5 + description: Port C pull-down bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PD6 + description: Port C pull-down bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PD7 + description: Port C pull-down bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PD8 + description: Port C pull-down bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PD9 + description: Port C pull-down bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PD10 + description: Port C pull-down bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PD11 + description: Port C pull-down bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PD12 + description: Port C pull-down bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PD13 + description: Port C pull-down bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PD14 + description: Port C pull-down bit y (y=0..15) + bit_offset: 14 + bit_size: 1 + - name: PD15 + description: Port C pull-down bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PDCRD: description: Power Port D pull-down control register fields: - - name: PD0 - description: Port D pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port D pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port D pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port D pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port D pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PD5 - description: Port D pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port D pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port D pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port D pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port D pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port D pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port D pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port D pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD13 - description: Port D pull-down bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PD14 - description: Port D pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PD15 - description: Port D pull-down bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PD0 + description: Port D pull-down bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PD1 + description: Port D pull-down bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PD2 + description: Port D pull-down bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PD3 + description: Port D pull-down bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PD4 + description: Port D pull-down bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PD5 + description: Port D pull-down bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PD6 + description: Port D pull-down bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PD7 + description: Port D pull-down bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PD8 + description: Port D pull-down bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PD9 + description: Port D pull-down bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PD10 + description: Port D pull-down bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PD11 + description: Port D pull-down bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PD12 + description: Port D pull-down bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PD13 + description: Port D pull-down bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PD14 + description: Port D pull-down bit y (y=0..15) + bit_offset: 14 + bit_size: 1 + - name: PD15 + description: Port D pull-down bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PDCRE: description: Power Port E pull-down control register fields: - - name: PD0 - description: Port E pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port E pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port E pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port E pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port E pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 + - name: PD0 + description: Port E pull-down bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PD1 + description: Port E pull-down bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PD2 + description: Port E pull-down bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PD3 + description: Port E pull-down bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PD4 + description: Port E pull-down bit y (y=0..15) + bit_offset: 4 + bit_size: 1 fieldset/PDCRH: description: Power Port H pull-down control register fields: - - name: PD0 - description: Port H pull-down bit y (y=0..1) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port H pull-down bit y (y=0..1) - bit_offset: 1 - bit_size: 1 - - name: PD3 - description: Port H pull-down bit y (y=0..1) - bit_offset: 3 - bit_size: 1 + - name: PD0 + description: Port H pull-down bit y (y=0..1) + bit_offset: 0 + bit_size: 1 + - name: PD1 + description: Port H pull-down bit y (y=0..1) + bit_offset: 1 + bit_size: 1 + - name: PD3 + description: Port H pull-down bit y (y=0..1) + bit_offset: 3 + bit_size: 1 fieldset/PUCRA: description: Power Port A pull-up control register fields: - - name: PU0 - description: Port A pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port A pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port A pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port A pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port A pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port A pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port A pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port A pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port A pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port A pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port A pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port A pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port A pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port A pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU15 - description: Port A pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PU0 + description: Port A pull-up bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PU1 + description: Port A pull-up bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PU2 + description: Port A pull-up bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PU3 + description: Port A pull-up bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PU4 + description: Port A pull-up bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PU5 + description: Port A pull-up bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PU6 + description: Port A pull-up bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PU7 + description: Port A pull-up bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PU8 + description: Port A pull-up bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PU9 + description: Port A pull-up bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PU10 + description: Port A pull-up bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PU11 + description: Port A pull-up bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PU12 + description: Port A pull-up bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PU13 + description: Port A pull-up bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PU15 + description: Port A pull-up bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PUCRB: description: Power Port B pull-up control register fields: - - name: PU0 - description: Port B pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port B pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port B pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port B pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port B pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port B pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port B pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port B pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port B pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port B pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port B pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port B pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port B pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port B pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU14 - description: Port B pull-up bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PU15 - description: Port B pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PU0 + description: Port B pull-up bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PU1 + description: Port B pull-up bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PU2 + description: Port B pull-up bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PU3 + description: Port B pull-up bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PU4 + description: Port B pull-up bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PU5 + description: Port B pull-up bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PU6 + description: Port B pull-up bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PU7 + description: Port B pull-up bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PU8 + description: Port B pull-up bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PU9 + description: Port B pull-up bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PU10 + description: Port B pull-up bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PU11 + description: Port B pull-up bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PU12 + description: Port B pull-up bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PU13 + description: Port B pull-up bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PU14 + description: Port B pull-up bit y (y=0..15) + bit_offset: 14 + bit_size: 1 + - name: PU15 + description: Port B pull-up bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PUCRC: description: Power Port C pull-up control register fields: - - name: PU0 - description: Port C pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port C pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port C pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port C pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port C pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port C pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port C pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port C pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port C pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port C pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port C pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port C pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port C pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port C pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU14 - description: Port C pull-up bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PU15 - description: Port C pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PU0 + description: Port C pull-up bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PU1 + description: Port C pull-up bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PU2 + description: Port C pull-up bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PU3 + description: Port C pull-up bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PU4 + description: Port C pull-up bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PU5 + description: Port C pull-up bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PU6 + description: Port C pull-up bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PU7 + description: Port C pull-up bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PU8 + description: Port C pull-up bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PU9 + description: Port C pull-up bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PU10 + description: Port C pull-up bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PU11 + description: Port C pull-up bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PU12 + description: Port C pull-up bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PU13 + description: Port C pull-up bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PU14 + description: Port C pull-up bit y (y=0..15) + bit_offset: 14 + bit_size: 1 + - name: PU15 + description: Port C pull-up bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PUCRD: description: Power Port D pull-up control register fields: - - name: PU0 - description: Port D pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port D pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port D pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port D pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port D pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port D pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port D pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port D pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port D pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port D pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port D pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port D pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port D pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port D pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU14 - description: Port D pull-up bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PU15 - description: Port D pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 + - name: PU0 + description: Port D pull-up bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PU1 + description: Port D pull-up bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PU2 + description: Port D pull-up bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PU3 + description: Port D pull-up bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PU4 + description: Port D pull-up bit y (y=0..15) + bit_offset: 4 + bit_size: 1 + - name: PU5 + description: Port D pull-up bit y (y=0..15) + bit_offset: 5 + bit_size: 1 + - name: PU6 + description: Port D pull-up bit y (y=0..15) + bit_offset: 6 + bit_size: 1 + - name: PU7 + description: Port D pull-up bit y (y=0..15) + bit_offset: 7 + bit_size: 1 + - name: PU8 + description: Port D pull-up bit y (y=0..15) + bit_offset: 8 + bit_size: 1 + - name: PU9 + description: Port D pull-up bit y (y=0..15) + bit_offset: 9 + bit_size: 1 + - name: PU10 + description: Port D pull-up bit y (y=0..15) + bit_offset: 10 + bit_size: 1 + - name: PU11 + description: Port D pull-up bit y (y=0..15) + bit_offset: 11 + bit_size: 1 + - name: PU12 + description: Port D pull-up bit y (y=0..15) + bit_offset: 12 + bit_size: 1 + - name: PU13 + description: Port D pull-up bit y (y=0..15) + bit_offset: 13 + bit_size: 1 + - name: PU14 + description: Port D pull-up bit y (y=0..15) + bit_offset: 14 + bit_size: 1 + - name: PU15 + description: Port D pull-up bit y (y=0..15) + bit_offset: 15 + bit_size: 1 fieldset/PUCRE: description: Power Port E pull-up control register fields: - - name: PU0 - description: Port E pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port E pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port E pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port E pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port E pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 + - name: PU0 + description: Port E pull-up bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + - name: PU1 + description: Port E pull-up bit y (y=0..15) + bit_offset: 1 + bit_size: 1 + - name: PU2 + description: Port E pull-up bit y (y=0..15) + bit_offset: 2 + bit_size: 1 + - name: PU3 + description: Port E pull-up bit y (y=0..15) + bit_offset: 3 + bit_size: 1 + - name: PU4 + description: Port E pull-up bit y (y=0..15) + bit_offset: 4 + bit_size: 1 fieldset/PUCRH: description: Power Port H pull-up control register fields: - - name: PU0 - description: Port H pull-up bit y (y=0..1) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port H pull-up bit y (y=0..1) - bit_offset: 1 - bit_size: 1 - - name: PU3 - description: Port H pull-up bit y (y=0..1) - bit_offset: 3 - bit_size: 1 + - name: PU0 + description: Port H pull-up bit y (y=0..1) + bit_offset: 0 + bit_size: 1 + - name: PU1 + description: Port H pull-up bit y (y=0..1) + bit_offset: 1 + bit_size: 1 + - name: PU3 + description: Port H pull-up bit y (y=0..1) + bit_offset: 3 + bit_size: 1 fieldset/SCR: description: Power status clear register fields: - - name: CWUF1 - description: Clear wakeup flag 1 - bit_offset: 0 - bit_size: 1 - - name: CWUF2 - description: Clear wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Clear wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Clear wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Clear wakeup flag 5 - bit_offset: 4 - bit_size: 1 - - name: CSMPSFBF - description: Clear SMPS Step Down converter forced in Bypass interrupt flag - bit_offset: 7 - bit_size: 1 - - name: CBORHF - description: Clear BORH interrupt flag - bit_offset: 8 - bit_size: 1 - - name: CBLEWUF - description: Clear BLE wakeup interrupt flag - bit_offset: 9 - bit_size: 1 - - name: C802WUF - description: Clear 802.15.4 wakeup interrupt flag - bit_offset: 10 - bit_size: 1 - - name: CCRPEF - description: Clear critical radio phase end of activity interrupt flag - bit_offset: 11 - bit_size: 1 - - name: CBLEAF - description: Clear BLE end of activity interrupt flag - bit_offset: 12 - bit_size: 1 - - name: C802AF - description: Clear 802.15.4 end of activity interrupt flag - bit_offset: 13 - bit_size: 1 - - name: CC2HF - description: Clear CPU2 Hold interrupt flag - bit_offset: 14 - bit_size: 1 + - name: CWUF1 + description: Clear wakeup flag 1 + bit_offset: 0 + bit_size: 1 + - name: CWUF2 + description: Clear wakeup flag 2 + bit_offset: 1 + bit_size: 1 + - name: CWUF3 + description: Clear wakeup flag 3 + bit_offset: 2 + bit_size: 1 + - name: CWUF4 + description: Clear wakeup flag 4 + bit_offset: 3 + bit_size: 1 + - name: CWUF5 + description: Clear wakeup flag 5 + bit_offset: 4 + bit_size: 1 + - name: CSMPSFBF + description: Clear SMPS Step Down converter forced in Bypass interrupt flag + bit_offset: 7 + bit_size: 1 + - name: CBORHF + description: Clear BORH interrupt flag + bit_offset: 8 + bit_size: 1 + - name: CBLEWUF + description: Clear BLE wakeup interrupt flag + bit_offset: 9 + bit_size: 1 + - name: C802WUF + description: Clear 802.15.4 wakeup interrupt flag + bit_offset: 10 + bit_size: 1 + - name: CCRPEF + description: Clear critical radio phase end of activity interrupt flag + bit_offset: 11 + bit_size: 1 + - name: CBLEAF + description: Clear BLE end of activity interrupt flag + bit_offset: 12 + bit_size: 1 + - name: C802AF + description: Clear 802.15.4 end of activity interrupt flag + bit_offset: 13 + bit_size: 1 + - name: CC2HF + description: Clear CPU2 Hold interrupt flag + bit_offset: 14 + bit_size: 1 fieldset/SR1: description: Power status register 1 fields: - - name: CWUF1 - description: Wakeup flag 1 - bit_offset: 0 - bit_size: 1 - - name: CWUF2 - description: Wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Wakeup flag 5 - bit_offset: 4 - bit_size: 1 - - name: SDFBF - description: Step Down converter forced in Bypass interrupt flag - bit_offset: 7 - bit_size: 1 - - name: BORHF - description: BORH interrupt flag - bit_offset: 8 - bit_size: 1 - - name: BLEWUF - description: BLE wakeup interrupt flag - bit_offset: 9 - bit_size: 1 - - name: _802WUF - description: 802.15.4 wakeup interrupt flag - bit_offset: 10 - bit_size: 1 - - name: CRPEF - description: Enable critical radio phase end of activity interrupt flag - bit_offset: 11 - bit_size: 1 - - name: BLEAF - description: BLE end of activity interrupt flag - bit_offset: 12 - bit_size: 1 - - name: AF802 - description: 802.15.4 end of activity interrupt flag - bit_offset: 13 - bit_size: 1 - - name: C2HF - description: CPU2 Hold interrupt flag - bit_offset: 14 - bit_size: 1 - - name: WUFI - description: Internal Wakeup interrupt flag - bit_offset: 15 - bit_size: 1 + - name: CWUF1 + description: Wakeup flag 1 + bit_offset: 0 + bit_size: 1 + - name: CWUF2 + description: Wakeup flag 2 + bit_offset: 1 + bit_size: 1 + - name: CWUF3 + description: Wakeup flag 3 + bit_offset: 2 + bit_size: 1 + - name: CWUF4 + description: Wakeup flag 4 + bit_offset: 3 + bit_size: 1 + - name: CWUF5 + description: Wakeup flag 5 + bit_offset: 4 + bit_size: 1 + - name: SDFBF + description: Step Down converter forced in Bypass interrupt flag + bit_offset: 7 + bit_size: 1 + - name: BORHF + description: BORH interrupt flag + bit_offset: 8 + bit_size: 1 + - name: BLEWUF + description: BLE wakeup interrupt flag + bit_offset: 9 + bit_size: 1 + - name: _802WUF + description: 802.15.4 wakeup interrupt flag + bit_offset: 10 + bit_size: 1 + - name: CRPEF + description: Enable critical radio phase end of activity interrupt flag + bit_offset: 11 + bit_size: 1 + - name: BLEAF + description: BLE end of activity interrupt flag + bit_offset: 12 + bit_size: 1 + - name: AF802 + description: 802.15.4 end of activity interrupt flag + bit_offset: 13 + bit_size: 1 + - name: C2HF + description: CPU2 Hold interrupt flag + bit_offset: 14 + bit_size: 1 + - name: WUFI + description: Internal Wakeup interrupt flag + bit_offset: 15 + bit_size: 1 fieldset/SR2: description: Power status register 2 fields: - - name: SDBF - description: Step Down converter Bypass mode flag - bit_offset: 0 - bit_size: 1 - - name: SDSMPSF - description: Step Down converter SMPS mode flag - bit_offset: 1 - bit_size: 1 - - name: REGLPS - description: Low-power regulator started - bit_offset: 8 - bit_size: 1 - - name: REGLPF - description: Low-power regulator flag - bit_offset: 9 - bit_size: 1 - - name: VOSF - description: Voltage scaling flag - bit_offset: 10 - bit_size: 1 - - name: PVDO - description: Power voltage detector output - bit_offset: 11 - bit_size: 1 - - name: PVMO1 - description: "Peripheral voltage monitoring output: VDDUSB vs. 1.2 V" - bit_offset: 12 - bit_size: 1 - - name: PVMO3 - description: "Peripheral voltage monitoring output: VDDA vs. 1.62 V" - bit_offset: 14 - bit_size: 1 + - name: SDBF + description: Step Down converter Bypass mode flag + bit_offset: 0 + bit_size: 1 + - name: SDSMPSF + description: Step Down converter SMPS mode flag + bit_offset: 1 + bit_size: 1 + - name: REGLPS + description: Low-power regulator started + bit_offset: 8 + bit_size: 1 + - name: REGLPF + description: Low-power regulator flag + bit_offset: 9 + bit_size: 1 + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 + - name: PVMO1 + description: 'Peripheral voltage monitoring output: VDDUSB vs. 1.2 V' + bit_offset: 12 + bit_size: 1 + - name: PVMO3 + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + bit_offset: 14 + bit_size: 1 diff --git a/data/registers/pwr_wl5.yaml b/data/registers/pwr_wl5.yaml index c9a0e77..5b067bb 100644 --- a/data/registers/pwr_wl5.yaml +++ b/data/registers/pwr_wl5.yaml @@ -1,822 +1,821 @@ ---- block/PWR: description: Power control items: - - name: CR1 - description: Power control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Power control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Power control register 3 - byte_offset: 8 - fieldset: CR3 - - name: CR4 - description: Power control register 4 - byte_offset: 12 - fieldset: CR4 - - name: SR1 - description: Power status register 1 - byte_offset: 16 - access: Read - fieldset: SR1 - - name: SR2 - description: Power status register 2 - byte_offset: 20 - access: Read - fieldset: SR2 - - name: SCR - description: Power status clear register - byte_offset: 24 - access: Write - fieldset: SCR - - name: CR5 - description: Power control register 5 - byte_offset: 28 - fieldset: CR5 - - name: PUCR - description: Power Port pull-up control register - array: - len: 8 - stride: 8 - byte_offset: 32 - fieldset: PCR - - name: PDCR - description: Power Port pull-down control register - array: - len: 8 - stride: 8 - byte_offset: 36 - fieldset: PCR - - name: C2CR1 - description: "Power CPU2 control register 1 [dual core device only]" - byte_offset: 128 - fieldset: C2CR1 - - name: C2CR3 - description: "Power CPU2 control register 3 [dual core device only]" - byte_offset: 132 - fieldset: C2CR3 - - name: EXTSCR - description: Power extended status and status clear register - byte_offset: 136 - fieldset: EXTSCR - - name: SECCFGR - description: "Power security configuration register [dual core device only]" - byte_offset: 140 - fieldset: SECCFGR - - name: SUBGHZSPICR - description: Power SPI3 control register - byte_offset: 144 - fieldset: SUBGHZSPICR - - name: RSSCMDR - description: "RSS Command register [dual core device only]" - byte_offset: 152 - fieldset: RSSCMDR + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: CR5 + description: Power control register 5 + byte_offset: 28 + fieldset: CR5 + - name: PUCR + description: Power Port pull-up control register + array: + len: 8 + stride: 8 + byte_offset: 32 + fieldset: PCR + - name: PDCR + description: Power Port pull-down control register + array: + len: 8 + stride: 8 + byte_offset: 36 + fieldset: PCR + - name: C2CR1 + description: Power CPU2 control register 1 [dual core device only] + byte_offset: 128 + fieldset: C2CR1 + - name: C2CR3 + description: Power CPU2 control register 3 [dual core device only] + byte_offset: 132 + fieldset: C2CR3 + - name: EXTSCR + description: Power extended status and status clear register + byte_offset: 136 + fieldset: EXTSCR + - name: SECCFGR + description: Power security configuration register [dual core device only] + byte_offset: 140 + fieldset: SECCFGR + - name: SUBGHZSPICR + description: Power SPI3 control register + byte_offset: 144 + fieldset: SUBGHZSPICR + - name: RSSCMDR + description: RSS Command register [dual core device only] + byte_offset: 152 + fieldset: RSSCMDR fieldset/C2CR1: - description: "Power CPU2 control register 1 [dual core device only]" + description: Power CPU2 control register 1 [dual core device only] fields: - - name: LPMS - description: Low-power mode selection for CPU2 - bit_offset: 0 - bit_size: 3 - - name: FPDR - description: Flash memory power down mode during LPRun for CPU2 - bit_offset: 4 - bit_size: 1 - - name: FPDS - description: Flash memory power down mode during LPSleep for CPU2 - bit_offset: 5 - bit_size: 1 + - name: LPMS + description: Low-power mode selection for CPU2 + bit_offset: 0 + bit_size: 3 + - name: FPDR + description: Flash memory power down mode during LPRun for CPU2 + bit_offset: 4 + bit_size: 1 + - name: FPDS + description: Flash memory power down mode during LPSleep for CPU2 + bit_offset: 5 + bit_size: 1 fieldset/C2CR3: - description: "Power CPU2 control register 3 [dual core device only]" + description: Power CPU2 control register 3 [dual core device only] fields: - - name: EWUP - description: Enable Wakeup pin WKUP1 for CPU2 - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: EWPVD - description: Enable wakeup PVD for CPU2 - bit_offset: 8 - bit_size: 1 - - name: APC - description: Apply pull-up and pull-down configuration for CPU2 - bit_offset: 10 - bit_size: 1 - - name: EWRFBUSY - description: EWRFBUSY - bit_offset: 11 - bit_size: 1 - - name: EWRFIRQ - description: akeup for CPU2 - bit_offset: 13 - bit_size: 1 - - name: EIWUL - description: Enable internal wakeup line for CPU2 - bit_offset: 15 - bit_size: 1 + - name: EWUP + description: Enable Wakeup pin WKUP1 for CPU2 + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: EWPVD + description: Enable wakeup PVD for CPU2 + bit_offset: 8 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration for CPU2 + bit_offset: 10 + bit_size: 1 + - name: EWRFBUSY + description: EWRFBUSY + bit_offset: 11 + bit_size: 1 + - name: EWRFIRQ + description: akeup for CPU2 + bit_offset: 13 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line for CPU2 + bit_offset: 15 + bit_size: 1 fieldset/CR1: description: Power control register 1 fields: - - name: LPMS - description: Low-power mode selection for CPU1 - bit_offset: 0 - bit_size: 3 - enum: LPMS - - name: SUBGHZSPINSSSEL - description: sub-GHz SPI NSS source select - bit_offset: 3 - bit_size: 1 - enum: SUBGHZSPINSSSEL - - name: FPDR - description: Flash memory power down mode during LPRun for CPU1 - bit_offset: 4 - bit_size: 1 - enum: FPDR - - name: FPDS - description: Flash memory power down mode during LPSleep for CPU1 - bit_offset: 5 - bit_size: 1 - enum: FPDS - - name: DBP - description: Disable backup domain write protection - bit_offset: 8 - bit_size: 1 - - name: VOS - description: Voltage scaling range selection - bit_offset: 9 - bit_size: 2 - enum: VOS - - name: LPR - description: Low-power run - bit_offset: 14 - bit_size: 1 - enum: LPR + - name: LPMS + description: Low-power mode selection for CPU1 + bit_offset: 0 + bit_size: 3 + enum: LPMS + - name: SUBGHZSPINSSSEL + description: sub-GHz SPI NSS source select + bit_offset: 3 + bit_size: 1 + enum: SUBGHZSPINSSSEL + - name: FPDR + description: Flash memory power down mode during LPRun for CPU1 + bit_offset: 4 + bit_size: 1 + enum: FPDR + - name: FPDS + description: Flash memory power down mode during LPSleep for CPU1 + bit_offset: 5 + bit_size: 1 + enum: FPDS + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: VOS + description: Voltage scaling range selection + bit_offset: 9 + bit_size: 2 + enum: VOS + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 + enum: LPR fieldset/CR2: description: Power control register 2 fields: - - name: PVDE - description: Power voltage detector enable - bit_offset: 0 - bit_size: 1 - enum: PVDE - - name: PLS - description: Power voltage detector level selection. - bit_offset: 1 - bit_size: 3 - enum: PLS - - name: PVME - description: "Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V" - bit_offset: 6 - bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + enum: PVDE + - name: PLS + description: Power voltage detector level selection. + bit_offset: 1 + bit_size: 3 + enum: PLS + - name: PVME + description: 'Peripheral voltage monitoring 3 enable: VDDA vs. 1.62V' + bit_offset: 6 + bit_size: 1 fieldset/CR3: description: Power control register 3 fields: - - name: EWUP - description: Enable Wakeup pin WKUP1 for CPU1 - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: EULPEN - description: Ultra-low-power enable - bit_offset: 7 - bit_size: 1 - - name: EWPVD - description: Enable wakeup PVD for CPU1 - bit_offset: 8 - bit_size: 1 - - name: RRS - description: SRAM2 retention in Standby mode - bit_offset: 9 - bit_size: 1 - enum: RRS - - name: APC - description: Apply pull-up and pull-down configuration from CPU1 - bit_offset: 10 - bit_size: 1 - - name: EWRFBUSY - description: Enable Radio BUSY Wakeup from Standby for CPU1 - bit_offset: 11 - bit_size: 1 - enum: EWRFBUSY - - name: EWRFIRQ - description: akeup for CPU1 - bit_offset: 13 - bit_size: 1 - enum: EWRFIRQ - - name: EC2H - description: nable CPU2 Hold interrupt for CPU1 - bit_offset: 14 - bit_size: 1 - - name: EIWUL - description: Enable internal wakeup line for CPU1 - bit_offset: 15 - bit_size: 1 + - name: EWUP + description: Enable Wakeup pin WKUP1 for CPU1 + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: EULPEN + description: Ultra-low-power enable + bit_offset: 7 + bit_size: 1 + - name: EWPVD + description: Enable wakeup PVD for CPU1 + bit_offset: 8 + bit_size: 1 + - name: RRS + description: SRAM2 retention in Standby mode + bit_offset: 9 + bit_size: 1 + enum: RRS + - name: APC + description: Apply pull-up and pull-down configuration from CPU1 + bit_offset: 10 + bit_size: 1 + - name: EWRFBUSY + description: Enable Radio BUSY Wakeup from Standby for CPU1 + bit_offset: 11 + bit_size: 1 + enum: EWRFBUSY + - name: EWRFIRQ + description: akeup for CPU1 + bit_offset: 13 + bit_size: 1 + enum: EWRFIRQ + - name: EC2H + description: nable CPU2 Hold interrupt for CPU1 + bit_offset: 14 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line for CPU1 + bit_offset: 15 + bit_size: 1 fieldset/CR4: description: Power control register 4 fields: - - name: WP - description: Wakeup pin WKUP1 polarity - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 1 - enum: WP - - name: VBE - description: VBAT battery charging enable - bit_offset: 8 - bit_size: 1 - enum: VBE - - name: VBRS - description: VBAT battery charging resistor selection - bit_offset: 9 - bit_size: 1 - enum: VBRS - - name: WRFBUSYP - description: Wakeup Radio BUSY polarity - bit_offset: 11 - bit_size: 1 - enum: WRFBUSYP - - name: C2BOOT - description: oot CPU2 after reset or wakeup from Stop or Standby modes. - bit_offset: 15 - bit_size: 1 + - name: WP + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 1 + enum: WP + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + enum: VBE + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 + enum: VBRS + - name: WRFBUSYP + description: Wakeup Radio BUSY polarity + bit_offset: 11 + bit_size: 1 + enum: WRFBUSYP + - name: C2BOOT + description: oot CPU2 after reset or wakeup from Stop or Standby modes. + bit_offset: 15 + bit_size: 1 fieldset/CR5: description: Power control register 5 fields: - - name: RFEOLEN - description: Enable Radio End Of Life detector enabled - bit_offset: 14 - bit_size: 1 - enum: RFEOLEN - - name: SMPSEN - description: Enable SMPS Step Down converter SMPS mode enabled. - bit_offset: 15 - bit_size: 1 - enum: SMPSEN + - name: RFEOLEN + description: Enable Radio End Of Life detector enabled + bit_offset: 14 + bit_size: 1 + enum: RFEOLEN + - name: SMPSEN + description: Enable SMPS Step Down converter SMPS mode enabled. + bit_offset: 15 + bit_size: 1 + enum: SMPSEN fieldset/EXTSCR: description: Power extended status and status clear register fields: - - name: C1CSSF - description: Clear CPU1 Stop Standby flags - bit_offset: 0 - bit_size: 1 - - name: C2CSSF - description: lear CPU2 Stop Standby flags - bit_offset: 1 - bit_size: 1 - - name: C1SBF - description: System Standby flag for CPU1. (no core states retained) - bit_offset: 8 - bit_size: 1 - enum: CSBF - - name: C1STOP2F - description: System Stop2 flag for CPU1. (partial core states retained) - bit_offset: 9 - bit_size: 1 - enum: CSTOPF - - name: C1STOPF - description: "System Stop0, 1 flag for CPU1. (All core states retained)" - bit_offset: 10 - bit_size: 1 - enum: CSTOPF - - name: C2SBF - description: ystem Standby flag for CPU2. (no core states retained) - bit_offset: 11 - bit_size: 1 - - name: C2STOP2F - description: ystem Stop2 flag for CPU2. (partial core states retained) - bit_offset: 12 - bit_size: 1 - - name: C2STOPF - description: "ystem Stop0, 1 flag for CPU2. (All core states retained)" - bit_offset: 13 - bit_size: 1 - - name: C1DS - description: CPU1 deepsleep mode - bit_offset: 14 - bit_size: 1 - enum: CDS - - name: C2DS - description: PU2 deepsleep mode - bit_offset: 15 - bit_size: 1 + - name: C1CSSF + description: Clear CPU1 Stop Standby flags + bit_offset: 0 + bit_size: 1 + - name: C2CSSF + description: lear CPU2 Stop Standby flags + bit_offset: 1 + bit_size: 1 + - name: C1SBF + description: System Standby flag for CPU1. (no core states retained) + bit_offset: 8 + bit_size: 1 + enum: CSBF + - name: C1STOP2F + description: System Stop2 flag for CPU1. (partial core states retained) + bit_offset: 9 + bit_size: 1 + enum: CSTOPF + - name: C1STOPF + description: System Stop0, 1 flag for CPU1. (All core states retained) + bit_offset: 10 + bit_size: 1 + enum: CSTOPF + - name: C2SBF + description: ystem Standby flag for CPU2. (no core states retained) + bit_offset: 11 + bit_size: 1 + - name: C2STOP2F + description: ystem Stop2 flag for CPU2. (partial core states retained) + bit_offset: 12 + bit_size: 1 + - name: C2STOPF + description: ystem Stop0, 1 flag for CPU2. (All core states retained) + bit_offset: 13 + bit_size: 1 + - name: C1DS + description: CPU1 deepsleep mode + bit_offset: 14 + bit_size: 1 + enum: CDS + - name: C2DS + description: PU2 deepsleep mode + bit_offset: 15 + bit_size: 1 fieldset/PCR: description: Power Port pull control register fields: - - name: P - description: Port pull bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - array: - len: 16 - stride: 1 + - name: P + description: Port pull bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 fieldset/RSSCMDR: - description: "RSS Command register [dual core device only]" + description: RSS Command register [dual core device only] fields: - - name: RSSCMD - description: RSS command - bit_offset: 0 - bit_size: 8 + - name: RSSCMD + description: RSS command + bit_offset: 0 + bit_size: 8 fieldset/SCR: description: Power status clear register fields: - - name: CWUF - description: Clear wakeup flag 1 - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: CWPVDF - description: Clear wakeup PVD interrupt flag - bit_offset: 8 - bit_size: 1 - - name: CWRFBUSYF - description: Clear wakeup Radio BUSY flag - bit_offset: 11 - bit_size: 1 - - name: CC2HF - description: lear CPU2 Hold interrupt flag - bit_offset: 14 - bit_size: 1 + - name: CWUF + description: Clear wakeup flag 1 + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: CWPVDF + description: Clear wakeup PVD interrupt flag + bit_offset: 8 + bit_size: 1 + - name: CWRFBUSYF + description: Clear wakeup Radio BUSY flag + bit_offset: 11 + bit_size: 1 + - name: CC2HF + description: lear CPU2 Hold interrupt flag + bit_offset: 14 + bit_size: 1 fieldset/SECCFGR: - description: "Power security configuration register [dual core device only]" + description: Power security configuration register [dual core device only] fields: - - name: C2EWILA - description: wakeup on CPU2 illegal access interrupt enable - bit_offset: 15 - bit_size: 1 + - name: C2EWILA + description: wakeup on CPU2 illegal access interrupt enable + bit_offset: 15 + bit_size: 1 fieldset/SR1: description: Power status register 1 fields: - - name: WUF - description: Wakeup flag 1 - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 1 - enum: WUF - - name: WPVDF - description: Wakeup PVD flag - bit_offset: 8 - bit_size: 1 - enum: WPVDF - - name: WRFBUSYF - description: Radio BUSY wakeup flag - bit_offset: 11 - bit_size: 1 - enum: WRFBUSYF - - name: C2HF - description: PU2 Hold interrupt flag - bit_offset: 14 - bit_size: 1 - - name: WUFI - description: Internal wakeup interrupt flag - bit_offset: 15 - bit_size: 1 - enum: WUFI + - name: WUF + description: Wakeup flag 1 + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 1 + enum: WUF + - name: WPVDF + description: Wakeup PVD flag + bit_offset: 8 + bit_size: 1 + enum: WPVDF + - name: WRFBUSYF + description: Radio BUSY wakeup flag + bit_offset: 11 + bit_size: 1 + enum: WRFBUSYF + - name: C2HF + description: PU2 Hold interrupt flag + bit_offset: 14 + bit_size: 1 + - name: WUFI + description: Internal wakeup interrupt flag + bit_offset: 15 + bit_size: 1 + enum: WUFI fieldset/SR2: description: Power status register 2 fields: - - name: C2BOOTS - description: PU2 boot/wakeup request source information - bit_offset: 0 - bit_size: 1 - - name: RFBUSYS - description: Radio BUSY signal status - bit_offset: 1 - bit_size: 1 - enum: RFBUSYS - - name: RFBUSYMS - description: Radio BUSY masked signal status - bit_offset: 2 - bit_size: 1 - enum: RFBUSYMS - - name: SMPSRDY - description: SMPS ready flag - bit_offset: 3 - bit_size: 1 - enum: SMPSRDY - - name: LDORDY - description: LDO ready flag - bit_offset: 4 - bit_size: 1 - enum: LDORDY - - name: RFEOLF - description: Radio end of life flag - bit_offset: 5 - bit_size: 1 - enum: RFEOLF - - name: REGMRS - description: regulator2 low power flag - bit_offset: 6 - bit_size: 1 - enum: REGMRS - - name: FLASHRDY - description: Flash ready - bit_offset: 7 - bit_size: 1 - enum: FLASHRDY - - name: REGLPS - description: regulator1 started - bit_offset: 8 - bit_size: 1 - enum: REGLPS - - name: REGLPF - description: regulator1 low power flag - bit_offset: 9 - bit_size: 1 - enum: REGLPF - - name: VOSF - description: Voltage scaling flag - bit_offset: 10 - bit_size: 1 - enum: VOSF - - name: PVDO - description: Power voltage detector output - bit_offset: 11 - bit_size: 1 - enum: PVDO - - name: PVMO - description: "Peripheral voltage monitoring output: VDDA vs. 1.62 V" - bit_offset: 14 - bit_size: 1 - enum: PVMO + - name: C2BOOTS + description: PU2 boot/wakeup request source information + bit_offset: 0 + bit_size: 1 + - name: RFBUSYS + description: Radio BUSY signal status + bit_offset: 1 + bit_size: 1 + enum: RFBUSYS + - name: RFBUSYMS + description: Radio BUSY masked signal status + bit_offset: 2 + bit_size: 1 + enum: RFBUSYMS + - name: SMPSRDY + description: SMPS ready flag + bit_offset: 3 + bit_size: 1 + enum: SMPSRDY + - name: LDORDY + description: LDO ready flag + bit_offset: 4 + bit_size: 1 + enum: LDORDY + - name: RFEOLF + description: Radio end of life flag + bit_offset: 5 + bit_size: 1 + enum: RFEOLF + - name: REGMRS + description: regulator2 low power flag + bit_offset: 6 + bit_size: 1 + enum: REGMRS + - name: FLASHRDY + description: Flash ready + bit_offset: 7 + bit_size: 1 + enum: FLASHRDY + - name: REGLPS + description: regulator1 started + bit_offset: 8 + bit_size: 1 + enum: REGLPS + - name: REGLPF + description: regulator1 low power flag + bit_offset: 9 + bit_size: 1 + enum: REGLPF + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + enum: VOSF + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 + enum: PVDO + - name: PVMO + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + bit_offset: 14 + bit_size: 1 + enum: PVMO fieldset/SUBGHZSPICR: description: Power SPI3 control register fields: - - name: NSS - description: sub-GHz SPI NSS control - bit_offset: 15 - bit_size: 1 - enum: NSS + - name: NSS + description: sub-GHz SPI NSS control + bit_offset: 15 + bit_size: 1 + enum: NSS enum/CDS: bit_size: 1 variants: - - name: RunningOrSleep - description: CPU is running or in sleep - value: 0 - - name: DeepSleep - description: CPU is in Deep-Sleep - value: 1 + - name: RunningOrSleep + description: CPU is running or in sleep + value: 0 + - name: DeepSleep + description: CPU is in Deep-Sleep + value: 1 enum/CSBF: bit_size: 1 variants: - - name: NoStandby - description: System has not been in Standby mode - value: 0 - - name: Standby - description: System has been in Standby mode - value: 1 + - name: NoStandby + description: System has not been in Standby mode + value: 0 + - name: Standby + description: System has been in Standby mode + value: 1 enum/CSTOPF: bit_size: 1 variants: - - name: NoStop - description: System has not been in Stop 2 mode - value: 0 - - name: Stop - description: System has been in Stop 2 mode - value: 1 + - name: NoStop + description: System has not been in Stop 2 mode + value: 0 + - name: Stop + description: System has been in Stop 2 mode + value: 1 enum/EWRFBUSY: bit_size: 1 variants: - - name: Disabled - description: Radio Busy is disabled and does not trigger a wakeup from Standby event to CPUwhen a rising or a falling edge occurs - value: 0 - - name: Enabled - description: Radio Busy is enabled and triggers a wakeup from Standby event to CPUwhen a rising or a falling edge occurs. The active edge is configured via the WRFBUSYP bit in PWR_CR4 - value: 1 + - name: Disabled + description: Radio Busy is disabled and does not trigger a wakeup from Standby event to CPUwhen a rising or a falling edge occurs + value: 0 + - name: Enabled + description: Radio Busy is enabled and triggers a wakeup from Standby event to CPUwhen a rising or a falling edge occurs. The active edge is configured via the WRFBUSYP bit in PWR_CR4 + value: 1 enum/EWRFIRQ: bit_size: 1 variants: - - name: Disabled - description: "Radio IRQ[2:0] is disabled and does not trigger a wakeup from Standby event to CPU." - value: 0 - - name: Enabled - description: "Radio IRQ[2:0] is enabled and triggers a wakeup from Standby event to CPU." - value: 1 + - name: Disabled + description: Radio IRQ[2:0] is disabled and does not trigger a wakeup from Standby event to CPU. + value: 0 + - name: Enabled + description: Radio IRQ[2:0] is enabled and triggers a wakeup from Standby event to CPU. + value: 1 enum/FLASHRDY: bit_size: 1 variants: - - name: NotReady - description: Flash memory not ready to be accessed - value: 0 - - name: Ready - description: Flash memory ready to be accessed - value: 1 + - name: NotReady + description: Flash memory not ready to be accessed + value: 0 + - name: Ready + description: Flash memory ready to be accessed + value: 1 enum/FPDR: bit_size: 1 variants: - - name: Idle - description: Flash memory in Idle mode when system is in LPRun mode - value: 0 - - name: PowerDown - description: Flash memory in Power-down mode when system is in LPRun mode - value: 1 + - name: Idle + description: Flash memory in Idle mode when system is in LPRun mode + value: 0 + - name: PowerDown + description: Flash memory in Power-down mode when system is in LPRun mode + value: 1 enum/FPDS: bit_size: 1 variants: - - name: Idle - description: Flash memory in Idle mode when system is in LPSleep mode - value: 0 - - name: PowerDown - description: Flash memory in Power-down mode when system is in LPSleep mode - value: 1 + - name: Idle + description: Flash memory in Idle mode when system is in LPSleep mode + value: 0 + - name: PowerDown + description: Flash memory in Power-down mode when system is in LPSleep mode + value: 1 enum/LDORDY: bit_size: 1 variants: - - name: NotReady - description: LDO not ready or off - value: 0 - - name: Ready - description: LDO ready - value: 1 + - name: NotReady + description: LDO not ready or off + value: 0 + - name: Ready + description: LDO ready + value: 1 enum/LPMS: bit_size: 3 variants: - - name: Stop0 - description: Stop 0 mode - value: 0 - - name: Stop1 - description: Stop 1 mode - value: 1 - - name: Stop2 - description: Stop 2 mode - value: 2 - - name: Standby - description: Standby mode - value: 3 - - name: Shutdown - description: Shutdown mode - value: 4 + - name: Stop0 + description: Stop 0 mode + value: 0 + - name: Stop1 + description: Stop 1 mode + value: 1 + - name: Stop2 + description: Stop 2 mode + value: 2 + - name: Standby + description: Standby mode + value: 3 + - name: Shutdown + description: Shutdown mode + value: 4 enum/LPR: bit_size: 1 variants: - - name: MainMode - description: Voltage regulator in Main mode in Low-power run mode - value: 0 - - name: LowPowerMode - description: Voltage regulator in low-power mode in Low-power run mode - value: 1 + - name: MainMode + description: Voltage regulator in Main mode in Low-power run mode + value: 0 + - name: LowPowerMode + description: Voltage regulator in low-power mode in Low-power run mode + value: 1 enum/NSS: bit_size: 1 variants: - - name: Low - description: Sub-GHz SPI NSS signal at level low - value: 0 - - name: High - description: Sub-GHz SPI NSS signal is at level high - value: 1 + - name: Low + description: Sub-GHz SPI NSS signal at level low + value: 0 + - name: High + description: Sub-GHz SPI NSS signal is at level high + value: 1 enum/PLS: bit_size: 3 variants: - - name: V2_0 - description: 2.0V - value: 0 - - name: V2_2 - description: 2.2V - value: 1 - - name: V2_4 - description: 2.4V - value: 2 - - name: V2_5 - description: 2.5V - value: 3 - - name: V2_6 - description: 2.6V - value: 4 - - name: V2_8 - description: 2.8V - value: 5 - - name: V2_9 - description: 2.9V - value: 6 - - name: External - description: External input analog voltage PVD_IN (compared internally to VREFINT) - value: 7 + - name: V2_0 + description: 2.0V + value: 0 + - name: V2_2 + description: 2.2V + value: 1 + - name: V2_4 + description: 2.4V + value: 2 + - name: V2_5 + description: 2.5V + value: 3 + - name: V2_6 + description: 2.6V + value: 4 + - name: V2_8 + description: 2.8V + value: 5 + - name: V2_9 + description: 2.9V + value: 6 + - name: External + description: External input analog voltage PVD_IN (compared internally to VREFINT) + value: 7 enum/PVDE: bit_size: 1 variants: - - name: Disabled - description: PVD Disabled - value: 0 - - name: Enabled - description: PVD Enabled - value: 1 + - name: Disabled + description: PVD Disabled + value: 0 + - name: Enabled + description: PVD Enabled + value: 1 enum/PVDO: bit_size: 1 variants: - - name: Above - description: VDD or voltage level on PVD_IN above the selected PVD threshold - value: 0 - - name: Below - description: VDD or voltage level on PVD_IN below the selected PVD threshold - value: 1 + - name: Above + description: VDD or voltage level on PVD_IN above the selected PVD threshold + value: 0 + - name: Below + description: VDD or voltage level on PVD_IN below the selected PVD threshold + value: 1 enum/PVMO: bit_size: 1 variants: - - name: Above - description: VDDA voltage above PVM3 threshold (around 1.62 V) - value: 0 - - name: Below - description: VDDA voltage below PVM3 threshold (around 1.62 V) - value: 1 + - name: Above + description: VDDA voltage above PVM3 threshold (around 1.62 V) + value: 0 + - name: Below + description: VDDA voltage below PVM3 threshold (around 1.62 V) + value: 1 enum/REGLPF: bit_size: 1 variants: - - name: Main - description: Main regulator (MR) ready and used - value: 0 - - name: LowPower - description: Low-power regulator (LPR) used - value: 1 + - name: Main + description: Main regulator (MR) ready and used + value: 0 + - name: LowPower + description: Low-power regulator (LPR) used + value: 1 enum/REGLPS: bit_size: 1 variants: - - name: NotReady - description: LPR not ready - value: 0 - - name: Ready - description: LPR ready - value: 1 + - name: NotReady + description: LPR not ready + value: 0 + - name: Ready + description: LPR ready + value: 1 enum/REGMRS: bit_size: 1 variants: - - name: V_DD - description: Main regulator supplied directly from VDD - value: 0 - - name: LDO_SMPS - description: Main regulator supplied through LDO or SMPS - value: 1 + - name: V_DD + description: Main regulator supplied directly from VDD + value: 0 + - name: LDO_SMPS + description: Main regulator supplied through LDO or SMPS + value: 1 enum/RFBUSYMS: bit_size: 1 variants: - - name: NotBusy - description: radio busy masked signal low (not busy) - value: 0 - - name: Busy - description: radio busy masked signal high (busy) - value: 1 + - name: NotBusy + description: radio busy masked signal low (not busy) + value: 0 + - name: Busy + description: radio busy masked signal high (busy) + value: 1 enum/RFBUSYS: bit_size: 1 variants: - - name: NotBusy - description: radio busy signal low (not busy) - value: 0 - - name: Busy - description: radio busy signal high (busy) - value: 1 + - name: NotBusy + description: radio busy signal low (not busy) + value: 0 + - name: Busy + description: radio busy signal high (busy) + value: 1 enum/RFEOLEN: bit_size: 1 variants: - - name: Disabled - description: Radio end-of-life detector disabled - value: 0 - - name: Enabled - description: Radio end-of-life detector enabled - value: 1 + - name: Disabled + description: Radio end-of-life detector disabled + value: 0 + - name: Enabled + description: Radio end-of-life detector enabled + value: 1 enum/RFEOLF: bit_size: 1 variants: - - name: Above - description: Supply voltage above radio end-of-life operating low level - value: 0 - - name: Below - description: Supply voltage below radio end-of-life operating low level - value: 1 + - name: Above + description: Supply voltage above radio end-of-life operating low level + value: 0 + - name: Below + description: Supply voltage below radio end-of-life operating low level + value: 1 enum/RRS: bit_size: 1 variants: - - name: PowerOff - description: SRAM2 powered off in Standby mode (SRAM2 content lost) - value: 0 - - name: OnLPR - description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) - value: 1 + - name: PowerOff + description: SRAM2 powered off in Standby mode (SRAM2 content lost) + value: 0 + - name: OnLPR + description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) + value: 1 enum/SMPSEN: bit_size: 1 variants: - - name: Disabled - description: SMPS step-down converter SMPS mode disabled (LDO mode enabled) - value: 0 - - name: Enabled - description: SMPS step-down converter SMPS mode enabled - value: 1 + - name: Disabled + description: SMPS step-down converter SMPS mode disabled (LDO mode enabled) + value: 0 + - name: Enabled + description: SMPS step-down converter SMPS mode enabled + value: 1 enum/SMPSRDY: bit_size: 1 variants: - - name: NotReady - description: SMPS step-down converter not ready or off - value: 0 - - name: Ready - description: SMPS step-down converter ready - value: 1 + - name: NotReady + description: SMPS step-down converter not ready or off + value: 0 + - name: Ready + description: SMPS step-down converter ready + value: 1 enum/SUBGHZSPINSSSEL: bit_size: 1 variants: - - name: SUBGHZSPICR - description: sub-GHz SPI NSS signal driven from PWR_SUBGHZSPICR.NSS (RFBUSYMS functionality enabled) - value: 0 - - name: LPTIM3 - description: sub-GHz SPI NSS signal driven from LPTIM3_OUT (RFBUSYMS functionality disabled) - value: 1 + - name: SUBGHZSPICR + description: sub-GHz SPI NSS signal driven from PWR_SUBGHZSPICR.NSS (RFBUSYMS functionality enabled) + value: 0 + - name: LPTIM3 + description: sub-GHz SPI NSS signal driven from LPTIM3_OUT (RFBUSYMS functionality disabled) + value: 1 enum/VBE: bit_size: 1 variants: - - name: Disabled - description: VBAT battery charging disabled - value: 0 - - name: Enabled - description: VBAT battery charging enabled - value: 1 + - name: Disabled + description: VBAT battery charging disabled + value: 0 + - name: Enabled + description: VBAT battery charging enabled + value: 1 enum/VBRS: bit_size: 1 variants: - - name: R5k - description: VBAT charging through a 5 kΩ resistor - value: 0 - - name: R1_5k - description: VBAT charging through a 1.5 kΩ resistor - value: 1 + - name: R5k + description: VBAT charging through a 5 kΩ resistor + value: 0 + - name: R1_5k + description: VBAT charging through a 1.5 kΩ resistor + value: 1 enum/VOS: bit_size: 2 variants: - - name: V1_2 - description: 1.2 V (range 1) - value: 1 - - name: V1_0 - description: 1.0 V (range 2) - value: 2 + - name: V1_2 + description: 1.2 V (range 1) + value: 1 + - name: V1_0 + description: 1.0 V (range 2) + value: 2 enum/VOSF: bit_size: 1 variants: - - name: Ready - description: Regulator ready in the selected voltage range - value: 0 - - name: Change - description: Regulator output voltage changed to the required voltage level - value: 1 + - name: Ready + description: Regulator ready in the selected voltage range + value: 0 + - name: Change + description: Regulator output voltage changed to the required voltage level + value: 1 enum/WP: bit_size: 1 variants: - - name: RisingEdge - description: Detection on high level (rising edge) - value: 0 - - name: FallingEdge - description: Detection on low level (falling edge) - value: 1 + - name: RisingEdge + description: Detection on high level (rising edge) + value: 0 + - name: FallingEdge + description: Detection on low level (falling edge) + value: 1 enum/WPVDF: bit_size: 1 variants: - - name: Clear - description: No wakeup event detected on PVD - value: 0 - - name: Wakeup - description: Wakeup event detected on PVD - value: 1 + - name: Clear + description: No wakeup event detected on PVD + value: 0 + - name: Wakeup + description: Wakeup event detected on PVD + value: 1 enum/WRFBUSYF: bit_size: 1 variants: - - name: Clear - description: No wakeup event detected on radio busy - value: 0 - - name: Wakeup - description: Wakeup event detected on radio busy - value: 1 + - name: Clear + description: No wakeup event detected on radio busy + value: 0 + - name: Wakeup + description: Wakeup event detected on radio busy + value: 1 enum/WRFBUSYP: bit_size: 1 variants: - - name: RisingEdge - description: Detection on high level (rising edge) - value: 0 - - name: FallingEdge - description: Detection on low level (falling edge) - value: 1 + - name: RisingEdge + description: Detection on high level (rising edge) + value: 0 + - name: FallingEdge + description: Detection on low level (falling edge) + value: 1 enum/WUF: bit_size: 1 variants: - - name: Clear - description: No wakeup event detected on WKUP3 - value: 0 - - name: Wakeup - description: Wakeup event detected on WKUP3 - value: 1 + - name: Clear + description: No wakeup event detected on WKUP3 + value: 0 + - name: Wakeup + description: Wakeup event detected on WKUP3 + value: 1 enum/WUFI: bit_size: 1 variants: - - name: Clear - description: All internal wakeup sources are cleared - value: 0 - - name: Wakeup - description: wakeup is detected on the internal wakeup line - value: 1 + - name: Clear + description: All internal wakeup sources are cleared + value: 0 + - name: Wakeup + description: wakeup is detected on the internal wakeup line + value: 1 diff --git a/data/registers/quadspi_v1.yaml b/data/registers/quadspi_v1.yaml index d2012ba..ecf3e50 100644 --- a/data/registers/quadspi_v1.yaml +++ b/data/registers/quadspi_v1.yaml @@ -1,300 +1,299 @@ ---- block/QUADSPI: description: QuadSPI interface items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: DCR - description: device configuration register - byte_offset: 4 - fieldset: DCR - - name: SR - description: status register - byte_offset: 8 - access: Read - fieldset: SR - - name: FCR - description: flag clear register - byte_offset: 12 - fieldset: FCR - - name: DLR - description: data length register - byte_offset: 16 - fieldset: DLR - - name: CCR - description: communication configuration register - byte_offset: 20 - fieldset: CCR - - name: AR - description: address register - byte_offset: 24 - fieldset: AR - - name: ABR - description: ABR - byte_offset: 28 - fieldset: ABR - - name: DR - description: data register - byte_offset: 32 - fieldset: DR - - name: PSMKR - description: polling status mask register - byte_offset: 36 - fieldset: PSMKR - - name: PSMAR - description: polling status match register - byte_offset: 40 - fieldset: PSMAR - - name: PIR - description: polling interval register - byte_offset: 44 - fieldset: PIR - - name: LPTR - description: low-power timeout register - byte_offset: 48 - fieldset: LPTR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: DCR + description: device configuration register + byte_offset: 4 + fieldset: DCR + - name: SR + description: status register + byte_offset: 8 + access: Read + fieldset: SR + - name: FCR + description: flag clear register + byte_offset: 12 + fieldset: FCR + - name: DLR + description: data length register + byte_offset: 16 + fieldset: DLR + - name: CCR + description: communication configuration register + byte_offset: 20 + fieldset: CCR + - name: AR + description: address register + byte_offset: 24 + fieldset: AR + - name: ABR + description: ABR + byte_offset: 28 + fieldset: ABR + - name: DR + description: data register + byte_offset: 32 + fieldset: DR + - name: PSMKR + description: polling status mask register + byte_offset: 36 + fieldset: PSMKR + - name: PSMAR + description: polling status match register + byte_offset: 40 + fieldset: PSMAR + - name: PIR + description: polling interval register + byte_offset: 44 + fieldset: PIR + - name: LPTR + description: low-power timeout register + byte_offset: 48 + fieldset: LPTR fieldset/ABR: description: ABR fields: - - name: ALTERNATE - description: ALTERNATE - bit_offset: 0 - bit_size: 32 + - name: ALTERNATE + description: ALTERNATE + bit_offset: 0 + bit_size: 32 fieldset/AR: description: address register fields: - - name: ADDRESS - description: Address - bit_offset: 0 - bit_size: 32 + - name: ADDRESS + description: Address + bit_offset: 0 + bit_size: 32 fieldset/CCR: description: communication configuration register fields: - - name: INSTRUCTION - description: Instruction - bit_offset: 0 - bit_size: 8 - - name: IMODE - description: Instruction mode - bit_offset: 8 - bit_size: 2 - - name: ADMODE - description: Address mode - bit_offset: 10 - bit_size: 2 - - name: ADSIZE - description: Address size - bit_offset: 12 - bit_size: 2 - - name: ABMODE - description: Alternate bytes mode - bit_offset: 14 - bit_size: 2 - - name: ABSIZE - description: Alternate bytes size - bit_offset: 16 - bit_size: 2 - - name: DCYC - description: Number of dummy cycles - bit_offset: 18 - bit_size: 5 - - name: DMODE - description: Data mode - bit_offset: 24 - bit_size: 2 - - name: FMODE - description: Functional mode - bit_offset: 26 - bit_size: 2 - - name: SIOO - description: Send instruction only once mode - bit_offset: 28 - bit_size: 1 - - name: FRCM - description: Free-running clock mode (not available on all chips!) - bit_offset: 29 - bit_size: 1 - - name: DHHC - description: DDR hold half cycle - bit_offset: 30 - bit_size: 1 - - name: DDRM - description: Double data rate mode - bit_offset: 31 - bit_size: 1 + - name: INSTRUCTION + description: Instruction + bit_offset: 0 + bit_size: 8 + - name: IMODE + description: Instruction mode + bit_offset: 8 + bit_size: 2 + - name: ADMODE + description: Address mode + bit_offset: 10 + bit_size: 2 + - name: ADSIZE + description: Address size + bit_offset: 12 + bit_size: 2 + - name: ABMODE + description: Alternate bytes mode + bit_offset: 14 + bit_size: 2 + - name: ABSIZE + description: Alternate bytes size + bit_offset: 16 + bit_size: 2 + - name: DCYC + description: Number of dummy cycles + bit_offset: 18 + bit_size: 5 + - name: DMODE + description: Data mode + bit_offset: 24 + bit_size: 2 + - name: FMODE + description: Functional mode + bit_offset: 26 + bit_size: 2 + - name: SIOO + description: Send instruction only once mode + bit_offset: 28 + bit_size: 1 + - name: FRCM + description: Free-running clock mode (not available on all chips!) + bit_offset: 29 + bit_size: 1 + - name: DHHC + description: DDR hold half cycle + bit_offset: 30 + bit_size: 1 + - name: DDRM + description: Double data rate mode + bit_offset: 31 + bit_size: 1 fieldset/CR: description: control register fields: - - name: EN - description: Enable - bit_offset: 0 - bit_size: 1 - - name: ABORT - description: Abort request - bit_offset: 1 - bit_size: 1 - - name: DMAEN - description: DMA enable (not available on all chips!) - bit_offset: 2 - bit_size: 1 - - name: TCEN - description: Timeout counter enable - bit_offset: 3 - bit_size: 1 - - name: SSHIFT - description: Sample shift - bit_offset: 4 - bit_size: 1 - - name: DFM - description: Dual-flash mode - bit_offset: 6 - bit_size: 1 - - name: FSEL - description: FLASH memory selection - bit_offset: 7 - bit_size: 1 - - name: FTHRES - description: IFO threshold level - bit_offset: 8 - bit_size: 5 - - name: TEIE - description: Transfer error interrupt enable - bit_offset: 16 - bit_size: 1 - - name: TCIE - description: Transfer complete interrupt enable - bit_offset: 17 - bit_size: 1 - - name: FTIE - description: FIFO threshold interrupt enable - bit_offset: 18 - bit_size: 1 - - name: SMIE - description: Status match interrupt enable - bit_offset: 19 - bit_size: 1 - - name: TOIE - description: TimeOut interrupt enable - bit_offset: 20 - bit_size: 1 - - name: APMS - description: Automatic poll mode stop - bit_offset: 22 - bit_size: 1 - - name: PMM - description: Polling match mode - bit_offset: 23 - bit_size: 1 - - name: PRESCALER - description: Clock prescaler - bit_offset: 24 - bit_size: 8 + - name: EN + description: Enable + bit_offset: 0 + bit_size: 1 + - name: ABORT + description: Abort request + bit_offset: 1 + bit_size: 1 + - name: DMAEN + description: DMA enable (not available on all chips!) + bit_offset: 2 + bit_size: 1 + - name: TCEN + description: Timeout counter enable + bit_offset: 3 + bit_size: 1 + - name: SSHIFT + description: Sample shift + bit_offset: 4 + bit_size: 1 + - name: DFM + description: Dual-flash mode + bit_offset: 6 + bit_size: 1 + - name: FSEL + description: FLASH memory selection + bit_offset: 7 + bit_size: 1 + - name: FTHRES + description: IFO threshold level + bit_offset: 8 + bit_size: 5 + - name: TEIE + description: Transfer error interrupt enable + bit_offset: 16 + bit_size: 1 + - name: TCIE + description: Transfer complete interrupt enable + bit_offset: 17 + bit_size: 1 + - name: FTIE + description: FIFO threshold interrupt enable + bit_offset: 18 + bit_size: 1 + - name: SMIE + description: Status match interrupt enable + bit_offset: 19 + bit_size: 1 + - name: TOIE + description: TimeOut interrupt enable + bit_offset: 20 + bit_size: 1 + - name: APMS + description: Automatic poll mode stop + bit_offset: 22 + bit_size: 1 + - name: PMM + description: Polling match mode + bit_offset: 23 + bit_size: 1 + - name: PRESCALER + description: Clock prescaler + bit_offset: 24 + bit_size: 8 fieldset/DCR: description: device configuration register fields: - - name: CKMODE - description: Mode 0 / mode 3 - bit_offset: 0 - bit_size: 1 - - name: CSHT - description: Chip select high time - bit_offset: 8 - bit_size: 3 - - name: FSIZE - description: FLASH memory size - bit_offset: 16 - bit_size: 5 + - name: CKMODE + description: Mode 0 / mode 3 + bit_offset: 0 + bit_size: 1 + - name: CSHT + description: Chip select high time + bit_offset: 8 + bit_size: 3 + - name: FSIZE + description: FLASH memory size + bit_offset: 16 + bit_size: 5 fieldset/DLR: description: data length register fields: - - name: DL - description: Data length - bit_offset: 0 - bit_size: 32 + - name: DL + description: Data length + bit_offset: 0 + bit_size: 32 fieldset/DR: description: data register fields: - - name: DATA - description: Data - bit_offset: 0 - bit_size: 32 + - name: DATA + description: Data + bit_offset: 0 + bit_size: 32 fieldset/FCR: description: flag clear register fields: - - name: CTEF - description: Clear transfer error flag - bit_offset: 0 - bit_size: 1 - - name: CTCF - description: Clear transfer complete flag - bit_offset: 1 - bit_size: 1 - - name: CSMF - description: Clear status match flag - bit_offset: 3 - bit_size: 1 - - name: CTOF - description: Clear timeout flag - bit_offset: 4 - bit_size: 1 + - name: CTEF + description: Clear transfer error flag + bit_offset: 0 + bit_size: 1 + - name: CTCF + description: Clear transfer complete flag + bit_offset: 1 + bit_size: 1 + - name: CSMF + description: Clear status match flag + bit_offset: 3 + bit_size: 1 + - name: CTOF + description: Clear timeout flag + bit_offset: 4 + bit_size: 1 fieldset/LPTR: description: low-power timeout register fields: - - name: TIMEOUT - description: Timeout period - bit_offset: 0 - bit_size: 16 + - name: TIMEOUT + description: Timeout period + bit_offset: 0 + bit_size: 16 fieldset/PIR: description: polling interval register fields: - - name: INTERVAL - description: Polling interval - bit_offset: 0 - bit_size: 16 + - name: INTERVAL + description: Polling interval + bit_offset: 0 + bit_size: 16 fieldset/PSMAR: description: polling status match register fields: - - name: MATCH - description: Status match - bit_offset: 0 - bit_size: 32 + - name: MATCH + description: Status match + bit_offset: 0 + bit_size: 32 fieldset/PSMKR: description: polling status mask register fields: - - name: MASK - description: Status mask - bit_offset: 0 - bit_size: 32 + - name: MASK + description: Status mask + bit_offset: 0 + bit_size: 32 fieldset/SR: description: status register fields: - - name: TEF - description: Transfer error flag - bit_offset: 0 - bit_size: 1 - - name: TCF - description: Transfer complete flag - bit_offset: 1 - bit_size: 1 - - name: FTF - description: FIFO threshold flag - bit_offset: 2 - bit_size: 1 - - name: SMF - description: Status match flag - bit_offset: 3 - bit_size: 1 - - name: TOF - description: Timeout flag - bit_offset: 4 - bit_size: 1 - - name: BUSY - description: Busy - bit_offset: 5 - bit_size: 1 - - name: FLEVEL - description: FIFO level - bit_offset: 8 - bit_size: 7 + - name: TEF + description: Transfer error flag + bit_offset: 0 + bit_size: 1 + - name: TCF + description: Transfer complete flag + bit_offset: 1 + bit_size: 1 + - name: FTF + description: FIFO threshold flag + bit_offset: 2 + bit_size: 1 + - name: SMF + description: Status match flag + bit_offset: 3 + bit_size: 1 + - name: TOF + description: Timeout flag + bit_offset: 4 + bit_size: 1 + - name: BUSY + description: Busy + bit_offset: 5 + bit_size: 1 + - name: FLEVEL + description: FIFO level + bit_offset: 8 + bit_size: 7 diff --git a/data/registers/rcc_c0.yaml b/data/registers/rcc_c0.yaml index 90df91f..e5072d4 100644 --- a/data/registers/rcc_c0.yaml +++ b/data/registers/rcc_c0.yaml @@ -1,964 +1,963 @@ ---- block/RCC: description: RCC address block description items: - - name: CR - description: RCC clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: RCC internal clock source calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: RCC clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: CIER - description: RCC clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: RCC clock interrupt flag register - byte_offset: 28 - fieldset: CIFR - - name: CICR - description: RCC clock interrupt clear register - byte_offset: 32 - fieldset: CICR - - name: GPIORSTR - description: RCC I/O port reset register - byte_offset: 36 - fieldset: GPIORSTR - - name: AHBRSTR - description: RCC AHB peripheral reset register - byte_offset: 40 - fieldset: AHBRSTR - - name: APBRSTR1 - description: RCC APB peripheral reset register 1 - byte_offset: 44 - fieldset: APBRSTR1 - - name: APBRSTR2 - description: RCC APB peripheral reset register 2 - byte_offset: 48 - fieldset: APBRSTR2 - - name: GPIOENR - description: RCC I/O port clock enable register - byte_offset: 52 - fieldset: GPIOENR - - name: AHBENR - description: RCC AHB peripheral clock enable register - byte_offset: 56 - fieldset: AHBENR - - name: APBENR1 - description: RCC APB peripheral clock enable register 1 - byte_offset: 60 - fieldset: APBENR1 - - name: APBENR2 - description: RCC APB peripheral clock enable register 2 - byte_offset: 64 - fieldset: APBENR2 - - name: GPIOSMENR - description: RCC I/O port in Sleep mode clock enable register - byte_offset: 68 - fieldset: GPIOSMENR - - name: AHBSMENR - description: RCC AHB peripheral clock enable in Sleep/Stop mode register - byte_offset: 72 - fieldset: AHBSMENR - - name: APBSMENR1 - description: RCC APB peripheral clock enable in Sleep/Stop mode register 1 - byte_offset: 76 - fieldset: APBSMENR1 - - name: APBSMENR2 - description: RCC APB peripheral clock enable in Sleep/Stop mode register 2 - byte_offset: 80 - fieldset: APBSMENR2 - - name: CCIPR - description: RCC peripherals independent clock configuration register - byte_offset: 84 - fieldset: CCIPR - - name: CSR1 - description: RCC control/status register 1 - byte_offset: 92 - fieldset: CSR1 - - name: CSR2 - description: RCC control/status register 2 - byte_offset: 96 - fieldset: CSR2 + - name: CR + description: RCC clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: RCC internal clock source calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: RCC clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: CIER + description: RCC clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: RCC clock interrupt flag register + byte_offset: 28 + fieldset: CIFR + - name: CICR + description: RCC clock interrupt clear register + byte_offset: 32 + fieldset: CICR + - name: GPIORSTR + description: RCC I/O port reset register + byte_offset: 36 + fieldset: GPIORSTR + - name: AHBRSTR + description: RCC AHB peripheral reset register + byte_offset: 40 + fieldset: AHBRSTR + - name: APBRSTR1 + description: RCC APB peripheral reset register 1 + byte_offset: 44 + fieldset: APBRSTR1 + - name: APBRSTR2 + description: RCC APB peripheral reset register 2 + byte_offset: 48 + fieldset: APBRSTR2 + - name: GPIOENR + description: RCC I/O port clock enable register + byte_offset: 52 + fieldset: GPIOENR + - name: AHBENR + description: RCC AHB peripheral clock enable register + byte_offset: 56 + fieldset: AHBENR + - name: APBENR1 + description: RCC APB peripheral clock enable register 1 + byte_offset: 60 + fieldset: APBENR1 + - name: APBENR2 + description: RCC APB peripheral clock enable register 2 + byte_offset: 64 + fieldset: APBENR2 + - name: GPIOSMENR + description: RCC I/O port in Sleep mode clock enable register + byte_offset: 68 + fieldset: GPIOSMENR + - name: AHBSMENR + description: RCC AHB peripheral clock enable in Sleep/Stop mode register + byte_offset: 72 + fieldset: AHBSMENR + - name: APBSMENR1 + description: RCC APB peripheral clock enable in Sleep/Stop mode register 1 + byte_offset: 76 + fieldset: APBSMENR1 + - name: APBSMENR2 + description: RCC APB peripheral clock enable in Sleep/Stop mode register 2 + byte_offset: 80 + fieldset: APBSMENR2 + - name: CCIPR + description: RCC peripherals independent clock configuration register + byte_offset: 84 + fieldset: CCIPR + - name: CSR1 + description: RCC control/status register 1 + byte_offset: 92 + fieldset: CSR1 + - name: CSR2 + description: RCC control/status register 2 + byte_offset: 96 + fieldset: CSR2 fieldset/AHBENR: description: RCC AHB peripheral clock enable register fields: - - name: DMA1EN - description: "DMA1 and DMAMUX clock enable\r Set and cleared by software.\r DMAMUX is enabled as long as at least one DMA peripheral is enabled." - bit_offset: 0 - bit_size: 1 - - name: FLASHEN - description: "Flash memory interface clock enable\r Set and cleared by software.\r This bit can only be cleared when the Flash memory is in power down mode." - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: "CRC clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 + - name: DMA1EN + description: "DMA1 and DMAMUX clock enable\r Set and cleared by software.\r DMAMUX is enabled as long as at least one DMA peripheral is enabled." + bit_offset: 0 + bit_size: 1 + - name: FLASHEN + description: "Flash memory interface clock enable\r Set and cleared by software.\r This bit can only be cleared when the Flash memory is in power down mode." + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: "CRC clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 fieldset/AHBRSTR: description: RCC AHB peripheral reset register fields: - - name: DMA1RST - description: "DMA1 and DMAMUX reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: FLASHRST - description: "Flash memory interface reset\r Set and cleared by software.\r This bit can only be set when the Flash memory is in power down mode." - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: "CRC reset\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 + - name: DMA1RST + description: "DMA1 and DMAMUX reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: FLASHRST + description: "Flash memory interface reset\r Set and cleared by software.\r This bit can only be set when the Flash memory is in power down mode." + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: "CRC reset\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 fieldset/AHBSMENR: description: RCC AHB peripheral clock enable in Sleep/Stop mode register fields: - - name: DMA1SMEN - description: "DMA1 and DMAMUX clock enable during Sleep mode\r Set and cleared by software.\r Clock to DMAMUX during Sleep mode is enabled as long as the clock in Sleep mode is enabled to at least one DMA peripheral." - bit_offset: 0 - bit_size: 1 - - name: FLASHSMEN - description: "Flash memory interface clock enable during Sleep mode\r Set and cleared by software.\r This bit can be activated only when the Flash memory is in power down mode." - bit_offset: 8 - bit_size: 1 - - name: SRAMSMEN - description: "SRAM clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: "CRC clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 + - name: DMA1SMEN + description: "DMA1 and DMAMUX clock enable during Sleep mode\r Set and cleared by software.\r Clock to DMAMUX during Sleep mode is enabled as long as the clock in Sleep mode is enabled to at least one DMA peripheral." + bit_offset: 0 + bit_size: 1 + - name: FLASHSMEN + description: "Flash memory interface clock enable during Sleep mode\r Set and cleared by software.\r This bit can be activated only when the Flash memory is in power down mode." + bit_offset: 8 + bit_size: 1 + - name: SRAMSMEN + description: "SRAM clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: "CRC clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 fieldset/APBENR1: description: RCC APB peripheral clock enable register 1 fields: - - name: TIM3EN - description: "TIM3 timer clock enable\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: RTCAPBEN - description: "RTC APB clock enable\r Set and cleared by software." - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: "WWDG clock enable\r Set by software to enable the window watchdog clock. Cleared by hardware system reset\r This bit can also be set by hardware if the WWDG_SW option bit is 0." - bit_offset: 11 - bit_size: 1 - - name: USART2EN - description: "USART2 clock enable\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: I2C1EN - description: "I2C1 clock enable\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: DBGEN - description: "Debug support clock enable\r Set and cleared by software." - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: "Power interface clock enable\r Set and cleared by software." - bit_offset: 28 - bit_size: 1 + - name: TIM3EN + description: "TIM3 timer clock enable\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: RTCAPBEN + description: "RTC APB clock enable\r Set and cleared by software." + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: "WWDG clock enable\r Set by software to enable the window watchdog clock. Cleared by hardware system reset\r This bit can also be set by hardware if the WWDG_SW option bit is 0." + bit_offset: 11 + bit_size: 1 + - name: USART2EN + description: "USART2 clock enable\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: I2C1EN + description: "I2C1 clock enable\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: DBGEN + description: "Debug support clock enable\r Set and cleared by software." + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: "Power interface clock enable\r Set and cleared by software." + bit_offset: 28 + bit_size: 1 fieldset/APBENR2: description: RCC APB peripheral clock enable register 2 fields: - - name: SYSCFGEN - description: "SYSCFG clock enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: TIM1EN - description: "TIM1 timer clock enable\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: "SPI1 clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: "USART1 clock enable\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: TIM14EN - description: "TIM14 timer clock enable\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: TIM16EN - description: "TIM16 timer clock enable\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: "TIM16 timer clock enable\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: ADCEN - description: "ADC clock enable\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 + - name: SYSCFGEN + description: "SYSCFG clock enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: TIM1EN + description: "TIM1 timer clock enable\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: "SPI1 clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: "USART1 clock enable\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: TIM14EN + description: "TIM14 timer clock enable\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: TIM16EN + description: "TIM16 timer clock enable\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: "TIM16 timer clock enable\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: ADCEN + description: "ADC clock enable\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 fieldset/APBRSTR1: description: RCC APB peripheral reset register 1 fields: - - name: TIM3RST - description: "TIM3 timer reset\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: USART2RST - description: "USART2 reset\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: I2C1RST - description: "I2C1 reset\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: DBGRST - description: "Debug support reset\r Set and cleared by software." - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: "Power interface reset\r Set and cleared by software." - bit_offset: 28 - bit_size: 1 + - name: TIM3RST + description: "TIM3 timer reset\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: USART2RST + description: "USART2 reset\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: I2C1RST + description: "I2C1 reset\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: DBGRST + description: "Debug support reset\r Set and cleared by software." + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: "Power interface reset\r Set and cleared by software." + bit_offset: 28 + bit_size: 1 fieldset/APBRSTR2: description: RCC APB peripheral reset register 2 fields: - - name: SYSCFGRST - description: "SYSCFG reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: TIM1RST - description: "TIM1 timer reset\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: "SPI1 reset\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: "USART1 reset\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: TIM14RST - description: "TIM14 timer reset\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: TIM16RST - description: "TIM16 timer reset\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: "TIM16 timer reset\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: ADCRST - description: "ADC reset\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 + - name: SYSCFGRST + description: "SYSCFG reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: TIM1RST + description: "TIM1 timer reset\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: "SPI1 reset\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: "USART1 reset\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: TIM14RST + description: "TIM14 timer reset\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: TIM16RST + description: "TIM16 timer reset\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: "TIM16 timer reset\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: ADCRST + description: "ADC reset\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 fieldset/APBSMENR1: description: RCC APB peripheral clock enable in Sleep/Stop mode register 1 fields: - - name: TIM3SMEN - description: "TIM3 timer clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: RTCAPBSMEN - description: "RTC APB clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: "WWDG clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: USART2SMEN - description: "USART2 clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: I2C1SMEN - description: "I2C1 clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: DBGSMEN - description: "Debug support clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 27 - bit_size: 1 - - name: PWRSMEN - description: "Power interface clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 28 - bit_size: 1 + - name: TIM3SMEN + description: "TIM3 timer clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: RTCAPBSMEN + description: "RTC APB clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: "WWDG clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: USART2SMEN + description: "USART2 clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: I2C1SMEN + description: "I2C1 clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: DBGSMEN + description: "Debug support clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 27 + bit_size: 1 + - name: PWRSMEN + description: "Power interface clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 28 + bit_size: 1 fieldset/APBSMENR2: description: RCC APB peripheral clock enable in Sleep/Stop mode register 2 fields: - - name: SYSCFGSMEN - description: "SYSCFG clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: TIM1SMEN - description: "TIM1 timer clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: "SPI1 clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: "USART1 clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: TIM14SMEN - description: "TIM14 timer clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: TIM16SMEN - description: "TIM16 timer clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: "TIM16 timer clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: ADCSMEN - description: "ADC clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 + - name: SYSCFGSMEN + description: "SYSCFG clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: TIM1SMEN + description: "TIM1 timer clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: "SPI1 clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: "USART1 clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: TIM14SMEN + description: "TIM14 timer clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: TIM16SMEN + description: "TIM16 timer clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: "TIM16 timer clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: ADCSMEN + description: "ADC clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 fieldset/CCIPR: description: RCC peripherals independent clock configuration register fields: - - name: USART1SEL - description: "USART1 clock source selection\r This bitfield is controlled by software to select USART1 clock source as follows:" - bit_offset: 0 - bit_size: 2 - enum: USART1SEL - - name: I2C1SEL - description: "I2C1 clock source selection\r This bitfield is controlled by software to select I2C1 clock source as follows:" - bit_offset: 12 - bit_size: 2 - enum: I2C1SEL - - name: I2S1SEL - description: "I2S1 clock source selection\r This bitfield is controlled by software to select I2S1 clock source as follows:" - bit_offset: 14 - bit_size: 2 - enum: I2S1SEL - - name: ADCSEL - description: "ADCs clock source selection\r This bitfield is controlled by software to select the clock source for ADC:" - bit_offset: 30 - bit_size: 2 - enum: ADCSEL + - name: USART1SEL + description: "USART1 clock source selection\r This bitfield is controlled by software to select USART1 clock source as follows:" + bit_offset: 0 + bit_size: 2 + enum: USART1SEL + - name: I2C1SEL + description: "I2C1 clock source selection\r This bitfield is controlled by software to select I2C1 clock source as follows:" + bit_offset: 12 + bit_size: 2 + enum: I2C1SEL + - name: I2S1SEL + description: "I2S1 clock source selection\r This bitfield is controlled by software to select I2S1 clock source as follows:" + bit_offset: 14 + bit_size: 2 + enum: I2S1SEL + - name: ADCSEL + description: "ADCs clock source selection\r This bitfield is controlled by software to select the clock source for ADC:" + bit_offset: 30 + bit_size: 2 + enum: ADCSEL fieldset/CFGR: description: RCC clock configuration register fields: - - name: SW - description: "System clock switch\r This bitfield is controlled by software and hardware. The bitfield selects the clock for SYSCLK as follows:\r Others: Reserved\r The setting is forced by hardware to 000 (HSISYS selected) when the MCU exits Stop, or Standby, or Shutdown mode, or when the setting is 001 (HSE selected) and HSE oscillator failure is detected." - bit_offset: 0 - bit_size: 3 - enum: SW - - name: SWS - description: "System clock switch status\r This bitfield is controlled by hardware to indicate the clock source used as system clock:\r Others: Reserved" - bit_offset: 3 - bit_size: 3 - enum: SW - - name: HPRE - description: "AHB prescaler\r This bitfield is controlled by software. To produce HCLK clock, it sets the division factor of SYSCLK clock as follows:\r 0xxx: 1" - bit_offset: 8 - bit_size: 4 - enum: HPRE - - name: PPRE - description: "APB prescaler\r This bitfield is controlled by software. To produce PCLK clock, it sets the division factor of HCLK clock as follows:\r 0xx: 1" - bit_offset: 12 - bit_size: 3 - enum: PPRE - - name: MCO2SEL - description: "Microcontroller clock output 2 clock selector\r This bitfield is controlled by software. It sets the clock selector for MCO2 output as follows:\r This bitfield is controlled by software. It sets the clock selector for MCO output as follows:\r Note: This clock output may have some truncated cycles at startup or during MCO2 clock source switching." - bit_offset: 16 - bit_size: 4 - enum: MCOSEL - - name: MCO2PRE - description: "Microcontroller clock output 2 prescaler\r This bitfield is controlled by software. It sets the division factor of the clock sent to the MCO2 output as follows:\r ...\r It is highly recommended to set this field before the MCO2 output is enabled." - bit_offset: 20 - bit_size: 4 - enum: MCOPRE - - name: MCOSEL - description: "Microcontroller clock output clock selector\r This bitfield is controlled by software. It sets the clock selector for MCO output as follows:\r Note: This clock output may have some truncated cycles at startup or during MCO clock source switching. Any other value means no clock on MCO." - bit_offset: 24 - bit_size: 4 - enum: MCOSEL - - name: MCOPRE - description: "Microcontroller clock output prescaler\r This bitfield is controlled by software. It sets the division factor of the clock sent to the MCO output as follows:\r ...\r It is highly recommended to set this field before the MCO output is enabled." - bit_offset: 28 - bit_size: 4 - enum: MCOPRE + - name: SW + description: "System clock switch\r This bitfield is controlled by software and hardware. The bitfield selects the clock for SYSCLK as follows:\r Others: Reserved\r The setting is forced by hardware to 000 (HSISYS selected) when the MCU exits Stop, or Standby, or Shutdown mode, or when the setting is 001 (HSE selected) and HSE oscillator failure is detected." + bit_offset: 0 + bit_size: 3 + enum: SW + - name: SWS + description: "System clock switch status\r This bitfield is controlled by hardware to indicate the clock source used as system clock:\r Others: Reserved" + bit_offset: 3 + bit_size: 3 + enum: SW + - name: HPRE + description: "AHB prescaler\r This bitfield is controlled by software. To produce HCLK clock, it sets the division factor of SYSCLK clock as follows:\r 0xxx: 1" + bit_offset: 8 + bit_size: 4 + enum: HPRE + - name: PPRE + description: "APB prescaler\r This bitfield is controlled by software. To produce PCLK clock, it sets the division factor of HCLK clock as follows:\r 0xx: 1" + bit_offset: 12 + bit_size: 3 + enum: PPRE + - name: MCO2SEL + description: "Microcontroller clock output 2 clock selector\r This bitfield is controlled by software. It sets the clock selector for MCO2 output as follows:\r This bitfield is controlled by software. It sets the clock selector for MCO output as follows:\r Note: This clock output may have some truncated cycles at startup or during MCO2 clock source switching." + bit_offset: 16 + bit_size: 4 + enum: MCOSEL + - name: MCO2PRE + description: "Microcontroller clock output 2 prescaler\r This bitfield is controlled by software. It sets the division factor of the clock sent to the MCO2 output as follows:\r ...\r It is highly recommended to set this field before the MCO2 output is enabled." + bit_offset: 20 + bit_size: 4 + enum: MCOPRE + - name: MCOSEL + description: "Microcontroller clock output clock selector\r This bitfield is controlled by software. It sets the clock selector for MCO output as follows:\r Note: This clock output may have some truncated cycles at startup or during MCO clock source switching. Any other value means no clock on MCO." + bit_offset: 24 + bit_size: 4 + enum: MCOSEL + - name: MCOPRE + description: "Microcontroller clock output prescaler\r This bitfield is controlled by software. It sets the division factor of the clock sent to the MCO output as follows:\r ...\r It is highly recommended to set this field before the MCO output is enabled." + bit_offset: 28 + bit_size: 4 + enum: MCOPRE fieldset/CICR: description: RCC clock interrupt clear register fields: - - name: LSIRDYC - description: "LSI ready interrupt clear\r This bit is set by software to clear the LSIRDYF flag." - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: "LSE ready interrupt clear\r This bit is set by software to clear the LSERDYF flag." - bit_offset: 1 - bit_size: 1 - - name: HSIRDYC - description: "HSI16 ready interrupt clear\r This bit is set software to clear the HSIRDYF flag." - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: "HSE ready interrupt clear\r This bit is set by software to clear the HSERDYF flag." - bit_offset: 4 - bit_size: 1 - - name: CSSC - description: "Clock security system interrupt clear\r This bit is set by software to clear the HSECSSF flag." - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: "LSE Clock security system interrupt clear\r This bit is set by software to clear the LSECSSF flag." - bit_offset: 9 - bit_size: 1 + - name: LSIRDYC + description: "LSI ready interrupt clear\r This bit is set by software to clear the LSIRDYF flag." + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: "LSE ready interrupt clear\r This bit is set by software to clear the LSERDYF flag." + bit_offset: 1 + bit_size: 1 + - name: HSIRDYC + description: "HSI16 ready interrupt clear\r This bit is set software to clear the HSIRDYF flag." + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: "HSE ready interrupt clear\r This bit is set by software to clear the HSERDYF flag." + bit_offset: 4 + bit_size: 1 + - name: CSSC + description: "Clock security system interrupt clear\r This bit is set by software to clear the HSECSSF flag." + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: "LSE Clock security system interrupt clear\r This bit is set by software to clear the LSECSSF flag." + bit_offset: 9 + bit_size: 1 fieldset/CIER: description: RCC clock interrupt enable register fields: - - name: LSIRDYIE - description: "LSI ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSI oscillator stabilization:" - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: "LSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSE oscillator stabilization:" - bit_offset: 1 - bit_size: 1 - - name: HSIRDYIE - description: "HSI16 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI16 oscillator stabilization:" - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: "HSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSE oscillator stabilization:" - bit_offset: 4 - bit_size: 1 + - name: LSIRDYIE + description: "LSI ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSI oscillator stabilization:" + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: "LSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSE oscillator stabilization:" + bit_offset: 1 + bit_size: 1 + - name: HSIRDYIE + description: "HSI16 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI16 oscillator stabilization:" + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: "HSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSE oscillator stabilization:" + bit_offset: 4 + bit_size: 1 fieldset/CIFR: description: RCC clock interrupt flag register fields: - - name: LSIRDYF - description: "LSI ready interrupt flag\r This flag indicates a pending interrupt upon LSE clock getting ready.\r Set by hardware when the LSI clock becomes stable and LSIRDYDIE is set.\r Cleared by software setting the LSIRDYC bit." - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: "LSE ready interrupt flag\r This flag indicates a pending interrupt upon LSE clock getting ready.\r Set by hardware when the LSE clock becomes stable and LSERDYDIE is set.\r Cleared by software setting the LSERDYC bit." - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: "HSI16 ready interrupt flag\r This flag indicates a pending interrupt upon HSI16 clock getting ready.\r Set by hardware when the HSI16 clock becomes stable and HSIRDYIE is set in response to setting the HSION (refer to ). When HSION is not set but the HSI16 oscillator is enabled by the peripheral through a clock request, this bit is not set and no interrupt is generated.\r Cleared by software setting the HSIRDYC bit." - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: "HSE ready interrupt flag\r This flag indicates a pending interrupt upon HSE clock getting ready.\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set.\r Cleared by software setting the HSERDYC bit." - bit_offset: 4 - bit_size: 1 - - name: CSSF - description: "HSE clock security system interrupt flag\r This flag indicates a pending interrupt upon HSE clock failure.\r Set by hardware when a failure is detected in the HSE oscillator.\r Cleared by software setting the CSSC bit." - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: "LSE clock security system interrupt flag\r This flag indicates a pending interrupt upon LSE clock failure.\r Set by hardware when a failure is detected in the LSE oscillator.\r Cleared by software by setting the LSECSSC bit." - bit_offset: 9 - bit_size: 1 + - name: LSIRDYF + description: "LSI ready interrupt flag\r This flag indicates a pending interrupt upon LSE clock getting ready.\r Set by hardware when the LSI clock becomes stable and LSIRDYDIE is set.\r Cleared by software setting the LSIRDYC bit." + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: "LSE ready interrupt flag\r This flag indicates a pending interrupt upon LSE clock getting ready.\r Set by hardware when the LSE clock becomes stable and LSERDYDIE is set.\r Cleared by software setting the LSERDYC bit." + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: "HSI16 ready interrupt flag\r This flag indicates a pending interrupt upon HSI16 clock getting ready.\r Set by hardware when the HSI16 clock becomes stable and HSIRDYIE is set in response to setting the HSION (refer to ). When HSION is not set but the HSI16 oscillator is enabled by the peripheral through a clock request, this bit is not set and no interrupt is generated.\r Cleared by software setting the HSIRDYC bit." + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: "HSE ready interrupt flag\r This flag indicates a pending interrupt upon HSE clock getting ready.\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set.\r Cleared by software setting the HSERDYC bit." + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: "HSE clock security system interrupt flag\r This flag indicates a pending interrupt upon HSE clock failure.\r Set by hardware when a failure is detected in the HSE oscillator.\r Cleared by software setting the CSSC bit." + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: "LSE clock security system interrupt flag\r This flag indicates a pending interrupt upon LSE clock failure.\r Set by hardware when a failure is detected in the LSE oscillator.\r Cleared by software by setting the LSECSSC bit." + bit_offset: 9 + bit_size: 1 fieldset/CR: description: RCC clock control register fields: - - name: SYSDIV - description: "System clock division factor\r This bitfield controlled by software sets the division factor of the system clock divider to produce SYSCLK clock:" - bit_offset: 2 - bit_size: 3 - enum: SYSDIV - - name: HSIKERDIV - description: "HSI48 kernel clock division factor\r This bitfield controlled by software sets the division factor of the kernel clock divider to produce HSIKER clock:" - bit_offset: 5 - bit_size: 3 - enum: HSIKERDIV - - name: HSION - description: "HSI48 clock enable\r Set and cleared by software and hardware, with hardware taking priority.\r Kept low by hardware as long as the device is in a low-power mode.\r Kept high by hardware as long as the system is clocked with a clock derived from HSI48. This includes the exit from low-power modes and the system clock fall-back to HSI48 upon failing HSE oscillator clock selected as system clock source." - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: "HSI48 always-enable for peripheral kernels.\r Set and cleared by software.\r Setting the bit activates the HSI48 oscillator in Run and Stop modes, regardless of the HSION bit state. The HSI48 clock can only feed USART1, USART2, and I2C1 peripherals configured with HSI48 as kernel clock.\r Note: Keeping the HSI48 active in Stop mode allows speeding up the serial interface communication as the HSI48 clock is ready immediately upon exiting Stop mode." - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: "HSI48 clock ready flag\r Set by hardware when the HSI48 oscillator is enabled through HSION and ready to use (stable).\r Note: Upon clearing HSION, HSIRDY goes low after six HSI48 clock cycles." - bit_offset: 10 - bit_size: 1 - - name: HSIDIV - description: "HSI48 clock division factor\r This bitfield controlled by software sets the division factor of the HSI48 clock divider to produce HSISYS clock:" - bit_offset: 11 - bit_size: 3 - enum: HSIDIV - - name: HSEON - description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE oscillator when entering Stop, or Standby, or Shutdown mode. This bit cannot be cleared if the HSE oscillator is used directly or indirectly as the system clock." - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable and ready for use.\r Note: Upon clearing HSEON, HSERDY goes low after six HSE clock cycles." - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: "HSE crystal oscillator bypass\r Set and cleared by software.\r When the bit is set, the internal HSE oscillator is bypassed for use of an external clock. The external clock must then be enabled with the HSEON bit set. Write access to the bit is only effective when the HSE oscillator is disabled." - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: "Clock security system enable\r Set by software to enable the clock security system. When the bit is set, the clock detector is enabled by hardware when the HSE oscillator is ready, and disabled by hardware if a HSE clock failure is detected. The bit is cleared by hardware upon reset." - bit_offset: 19 - bit_size: 1 + - name: SYSDIV + description: "System clock division factor\r This bitfield controlled by software sets the division factor of the system clock divider to produce SYSCLK clock:" + bit_offset: 2 + bit_size: 3 + enum: SYSDIV + - name: HSIKERDIV + description: "HSI48 kernel clock division factor\r This bitfield controlled by software sets the division factor of the kernel clock divider to produce HSIKER clock:" + bit_offset: 5 + bit_size: 3 + enum: HSIKERDIV + - name: HSION + description: "HSI48 clock enable\r Set and cleared by software and hardware, with hardware taking priority.\r Kept low by hardware as long as the device is in a low-power mode.\r Kept high by hardware as long as the system is clocked with a clock derived from HSI48. This includes the exit from low-power modes and the system clock fall-back to HSI48 upon failing HSE oscillator clock selected as system clock source." + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: "HSI48 always-enable for peripheral kernels.\r Set and cleared by software.\r Setting the bit activates the HSI48 oscillator in Run and Stop modes, regardless of the HSION bit state. The HSI48 clock can only feed USART1, USART2, and I2C1 peripherals configured with HSI48 as kernel clock.\r Note: Keeping the HSI48 active in Stop mode allows speeding up the serial interface communication as the HSI48 clock is ready immediately upon exiting Stop mode." + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: "HSI48 clock ready flag\r Set by hardware when the HSI48 oscillator is enabled through HSION and ready to use (stable).\r Note: Upon clearing HSION, HSIRDY goes low after six HSI48 clock cycles." + bit_offset: 10 + bit_size: 1 + - name: HSIDIV + description: "HSI48 clock division factor\r This bitfield controlled by software sets the division factor of the HSI48 clock divider to produce HSISYS clock:" + bit_offset: 11 + bit_size: 3 + enum: HSIDIV + - name: HSEON + description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE oscillator when entering Stop, or Standby, or Shutdown mode. This bit cannot be cleared if the HSE oscillator is used directly or indirectly as the system clock." + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable and ready for use.\r Note: Upon clearing HSEON, HSERDY goes low after six HSE clock cycles." + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: "HSE crystal oscillator bypass\r Set and cleared by software.\r When the bit is set, the internal HSE oscillator is bypassed for use of an external clock. The external clock must then be enabled with the HSEON bit set. Write access to the bit is only effective when the HSE oscillator is disabled." + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: "Clock security system enable\r Set by software to enable the clock security system. When the bit is set, the clock detector is enabled by hardware when the HSE oscillator is ready, and disabled by hardware if a HSE clock failure is detected. The bit is cleared by hardware upon reset." + bit_offset: 19 + bit_size: 1 fieldset/CSR1: description: RCC control/status register 1 fields: - - name: LSEON - description: "LSE oscillator enable\r Set and cleared by software to enable LSE oscillator:" - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: "LSE oscillator ready\r Set and cleared by hardware to indicate when the external 32 kHz oscillator is ready (stable):\r After the LSEON bit is cleared, LSERDY goes low after 6 external low-speed oscillator clock cycles." - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: "LSE oscillator bypass\r Set and cleared by software to bypass the LSE oscillator (in debug mode).\r This bit can be written only when the external 32 kHz oscillator is disabled (LSEON=0 and LSERDY=0)." - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: "LSE oscillator drive capability\r Set by software to select the LSE oscillator drive capability as follows:\r Applicable when the LSE oscillator is in Xtal mode, as opposed to bypass mode." - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: "CSS on LSE enable\r Set by software to enable the clock security system on LSE (32 kHz) oscillator as follows:\r LSECSSON must be enabled after the LSE oscillator is enabled (LSEON bit enabled) and ready (LSERDY flag set by hardware), and after the RTCSEL bit is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD\r =1). In that case the software must disable the LSECSSON bit." - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: "CSS on LSE failure Detection\r Set by hardware to indicate when a failure is detected by the clock security system\r on the external 32 kHz oscillator (LSE):" - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: "RTC clock source selection\r Set by software to select the clock source for the RTC as follows:\r Once the RTC clock source is selected, it cannot be changed anymore unless the RTC domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The RTCRST bit can be used to reset this bitfield to 00." - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: "RTC clock enable\r Set and cleared by software. The bit enables clock to RTC and TAMP." - bit_offset: 15 - bit_size: 1 - - name: RTCRST - description: "RTC domain software reset\r Set and cleared by software to reset the RTC domain:" - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: "Low-speed clock output selection\r Set and cleared by software to select the low-speed output clock:" - bit_offset: 25 - bit_size: 1 - enum: LSCOSEL + - name: LSEON + description: "LSE oscillator enable\r Set and cleared by software to enable LSE oscillator:" + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: "LSE oscillator ready\r Set and cleared by hardware to indicate when the external 32 kHz oscillator is ready (stable):\r After the LSEON bit is cleared, LSERDY goes low after 6 external low-speed oscillator clock cycles." + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: "LSE oscillator bypass\r Set and cleared by software to bypass the LSE oscillator (in debug mode).\r This bit can be written only when the external 32 kHz oscillator is disabled (LSEON=0 and LSERDY=0)." + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: "LSE oscillator drive capability\r Set by software to select the LSE oscillator drive capability as follows:\r Applicable when the LSE oscillator is in Xtal mode, as opposed to bypass mode." + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: "CSS on LSE enable\r Set by software to enable the clock security system on LSE (32 kHz) oscillator as follows:\r LSECSSON must be enabled after the LSE oscillator is enabled (LSEON bit enabled) and ready (LSERDY flag set by hardware), and after the RTCSEL bit is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD\r =1). In that case the software must disable the LSECSSON bit." + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: "CSS on LSE failure Detection\r Set by hardware to indicate when a failure is detected by the clock security system\r on the external 32 kHz oscillator (LSE):" + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: "RTC clock source selection\r Set by software to select the clock source for the RTC as follows:\r Once the RTC clock source is selected, it cannot be changed anymore unless the RTC domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The RTCRST bit can be used to reset this bitfield to 00." + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: "RTC clock enable\r Set and cleared by software. The bit enables clock to RTC and TAMP." + bit_offset: 15 + bit_size: 1 + - name: RTCRST + description: "RTC domain software reset\r Set and cleared by software to reset the RTC domain:" + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: "Low-speed clock output selection\r Set and cleared by software to select the low-speed output clock:" + bit_offset: 25 + bit_size: 1 + enum: LSCOSEL fieldset/CSR2: description: RCC control/status register 2 fields: - - name: LSION - description: "LSI oscillator enable\r Set and cleared by software to enable/disable the LSI oscillator:" - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is ready (stable):\r After the LSION bit is cleared, LSIRDY goes low after 3 LSI oscillator clock cycles. This bit can be set even if LSION = 0 if the LSI is requested by the Clock Security System on LSE, by the Independent Watchdog or by the RTC." - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: "Remove reset flags\r Set by software to clear the reset flags." - bit_offset: 23 - bit_size: 1 - - name: OBLRSTF - description: "Option byte loader reset flag\r Set by hardware when a reset from the Option byte loading occurs.\r Cleared by setting the RMVF bit." - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: "Pin reset flag\r Set by hardware when a reset from the NRST pin occurs.\r Cleared by setting the RMVF bit." - bit_offset: 26 - bit_size: 1 - - name: PWRRSTF - description: "BOR or POR/PDR flag\r Set by hardware when a BOR or POR/PDR occurs.\r Cleared by setting the RMVF bit." - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: "Software reset flag\r Set by hardware when a software reset occurs.\r Cleared by setting the RMVF bit." - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: "Independent window watchdog reset flag\r Set by hardware when an independent watchdog reset domain occurs.\r Cleared by setting the RMVF bit." - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: "Window watchdog reset flag\r Set by hardware when a window watchdog reset occurs.\r Cleared by setting the RMVF bit." - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: "Low-power reset flag\r Set by hardware when a reset occurs due to illegal Stop, or Standby, or Shutdown mode entry.\r Cleared by setting the RMVF bit.\r This operates only if nRST_STOP, or nRST_STDBY or nRST_SHDW option bits are cleared." - bit_offset: 31 - bit_size: 1 + - name: LSION + description: "LSI oscillator enable\r Set and cleared by software to enable/disable the LSI oscillator:" + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is ready (stable):\r After the LSION bit is cleared, LSIRDY goes low after 3 LSI oscillator clock cycles. This bit can be set even if LSION = 0 if the LSI is requested by the Clock Security System on LSE, by the Independent Watchdog or by the RTC." + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: "Remove reset flags\r Set by software to clear the reset flags." + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: "Option byte loader reset flag\r Set by hardware when a reset from the Option byte loading occurs.\r Cleared by setting the RMVF bit." + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: "Pin reset flag\r Set by hardware when a reset from the NRST pin occurs.\r Cleared by setting the RMVF bit." + bit_offset: 26 + bit_size: 1 + - name: PWRRSTF + description: "BOR or POR/PDR flag\r Set by hardware when a BOR or POR/PDR occurs.\r Cleared by setting the RMVF bit." + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: "Software reset flag\r Set by hardware when a software reset occurs.\r Cleared by setting the RMVF bit." + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: "Independent window watchdog reset flag\r Set by hardware when an independent watchdog reset domain occurs.\r Cleared by setting the RMVF bit." + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: "Window watchdog reset flag\r Set by hardware when a window watchdog reset occurs.\r Cleared by setting the RMVF bit." + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: "Low-power reset flag\r Set by hardware when a reset occurs due to illegal Stop, or Standby, or Shutdown mode entry.\r Cleared by setting the RMVF bit.\r This operates only if nRST_STOP, or nRST_STDBY or nRST_SHDW option bits are cleared." + bit_offset: 31 + bit_size: 1 fieldset/GPIOENR: description: RCC I/O port clock enable register fields: - - name: GPIOAEN - description: "I/O port A clock enable\r This bit is set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: "I/O port B clock enable\r This bit is set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: "I/O port C clock enable\r This bit is set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: "I/O port D clock enable\r This bit is set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOFEN - description: "I/O port F clock enable\r This bit is set and cleared by software." - bit_offset: 5 - bit_size: 1 + - name: GPIOAEN + description: "I/O port A clock enable\r This bit is set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: "I/O port B clock enable\r This bit is set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: "I/O port C clock enable\r This bit is set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: "I/O port D clock enable\r This bit is set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOFEN + description: "I/O port F clock enable\r This bit is set and cleared by software." + bit_offset: 5 + bit_size: 1 fieldset/GPIORSTR: description: RCC I/O port reset register fields: - - name: GPIOARST - description: "I/O port A reset\r This bit is set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: "I/O port B reset\r This bit is set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: "I/O port C reset\r This bit is set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: "I/O port D reset\r This bit is set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOFRST - description: "I/O port F reset\r This bit is set and cleared by software." - bit_offset: 5 - bit_size: 1 + - name: GPIOARST + description: "I/O port A reset\r This bit is set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: "I/O port B reset\r This bit is set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: "I/O port C reset\r This bit is set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: "I/O port D reset\r This bit is set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOFRST + description: "I/O port F reset\r This bit is set and cleared by software." + bit_offset: 5 + bit_size: 1 fieldset/GPIOSMENR: description: RCC I/O port in Sleep mode clock enable register fields: - - name: GPIOASMEN - description: "I/O port A clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: "I/O port B clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: "I/O port C clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: "I/O port D clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOFSMEN - description: "I/O port F clock enable during Sleep mode\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 + - name: GPIOASMEN + description: "I/O port A clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: "I/O port B clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: "I/O port C clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: "I/O port D clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOFSMEN + description: "I/O port F clock enable during Sleep mode\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 fieldset/ICSCR: description: RCC internal clock source calibration register fields: - - name: HSICAL - description: "HSI48 clock calibration\r This bitfield directly acts on the HSI48 clock frequency. Its value is a sum of an internal factory-programmed number and the value of the HSITRIM[6:0] bitfield. In the factory, the internal number is set to calibrate the HSI48 clock frequency to 48 MHz (with HSITRIM[6:0] left at its reset value). Refer to the device datasheet for HSI48 calibration accuracy and for the frequency trimming granularity.\r Note: The trimming effect presents discontinuities at HSICAL[7:0] multiples of 64." - bit_offset: 0 - bit_size: 8 - - name: HSITRIM - description: "HSI48 clock trimming\r The value of this bitfield contributes to the HSICAL[7:0] bitfield value.\r It allows HSI48 clock frequency user trimming.\r The HSI48 frequency accuracy as stated in the device datasheet applies when this bitfield is left at its reset value." - bit_offset: 8 - bit_size: 7 + - name: HSICAL + description: "HSI48 clock calibration\r This bitfield directly acts on the HSI48 clock frequency. Its value is a sum of an internal factory-programmed number and the value of the HSITRIM[6:0] bitfield. In the factory, the internal number is set to calibrate the HSI48 clock frequency to 48 MHz (with HSITRIM[6:0] left at its reset value). Refer to the device datasheet for HSI48 calibration accuracy and for the frequency trimming granularity.\r Note: The trimming effect presents discontinuities at HSICAL[7:0] multiples of 64." + bit_offset: 0 + bit_size: 8 + - name: HSITRIM + description: "HSI48 clock trimming\r The value of this bitfield contributes to the HSICAL[7:0] bitfield value.\r It allows HSI48 clock frequency user trimming.\r The HSI48 frequency accuracy as stated in the device datasheet applies when this bitfield is left at its reset value." + bit_offset: 8 + bit_size: 7 enum/ADCSEL: bit_size: 2 variants: - - name: SYSCLK - description: System clock - value: 0 - - name: HSIKER - description: HSIKER - value: 2 + - name: SYSCLK + description: System clock + value: 0 + - name: HSIKER + description: HSIKER + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK is divided by 2 - value: 8 - - name: Div4 - description: SYSCLK is divided by 4 - value: 9 - - name: Div8 - description: SYSCLK is divided by 8 - value: 10 - - name: Div16 - description: SYSCLK is divided by 16 - value: 11 - - name: Div64 - description: SYSCLK is divided by 64 - value: 12 - - name: Div128 - description: SYSCLK is divided by 128 - value: 13 - - name: Div256 - description: SYSCLK is divided by 256 - value: 14 - - name: Div512 - description: SYSCLK is divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK is divided by 2 + value: 8 + - name: Div4 + description: SYSCLK is divided by 4 + value: 9 + - name: Div8 + description: SYSCLK is divided by 8 + value: 10 + - name: Div16 + description: SYSCLK is divided by 16 + value: 11 + - name: Div64 + description: SYSCLK is divided by 64 + value: 12 + - name: Div128 + description: SYSCLK is divided by 128 + value: 13 + - name: Div256 + description: SYSCLK is divided by 256 + value: 14 + - name: Div512 + description: SYSCLK is divided by 512 + value: 15 enum/HSIDIV: bit_size: 3 variants: - - name: Div1 - description: HSI clock is not divided - value: 0 - - name: Div2 - description: HSI clock is divided by 2 - value: 1 - - name: Div4 - description: HSI clock is divided by 4 - value: 2 - - name: Div8 - description: HSI clock is divided by 8 - value: 3 - - name: Div16 - description: HSI clock is divided by 16 - value: 4 - - name: Div32 - description: HSI clock is divided by 32 - value: 5 - - name: Div64 - description: HSI clock is divided by 64 - value: 6 - - name: Div128 - description: HSI clock is divided by 128 - value: 7 + - name: Div1 + description: HSI clock is not divided + value: 0 + - name: Div2 + description: HSI clock is divided by 2 + value: 1 + - name: Div4 + description: HSI clock is divided by 4 + value: 2 + - name: Div8 + description: HSI clock is divided by 8 + value: 3 + - name: Div16 + description: HSI clock is divided by 16 + value: 4 + - name: Div32 + description: HSI clock is divided by 32 + value: 5 + - name: Div64 + description: HSI clock is divided by 64 + value: 6 + - name: Div128 + description: HSI clock is divided by 128 + value: 7 enum/HSIKERDIV: bit_size: 3 variants: - - name: Div1 - description: "1" - value: 0 - - name: Div2 - description: "2" - value: 1 - - name: Div3 - description: 3 (reset value) - value: 2 - - name: Div4 - description: "4" - value: 3 - - name: Div5 - description: "5" - value: 4 - - name: Div6 - description: "6" - value: 5 - - name: Div7 - description: "7" - value: 6 - - name: Div8 - description: "8" - value: 7 + - name: Div1 + description: '1' + value: 0 + - name: Div2 + description: '2' + value: 1 + - name: Div3 + description: 3 (reset value) + value: 2 + - name: Div4 + description: '4' + value: 3 + - name: Div5 + description: '5' + value: 4 + - name: Div6 + description: '6' + value: 5 + - name: Div7 + description: '7' + value: 6 + - name: Div8 + description: '8' + value: 7 enum/I2C1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK - value: 0 - - name: SYSCLK - description: SYSCLK - value: 1 - - name: HSIKER - description: HSIKER - value: 2 + - name: PCLK + description: PCLK + value: 0 + - name: SYSCLK + description: SYSCLK + value: 1 + - name: HSIKER + description: HSIKER + value: 2 enum/I2S1SEL: bit_size: 2 variants: - - name: SYSCLK - description: SYSCLK - value: 0 - - name: HSIKER - description: HSIKER - value: 2 - - name: I2S_CKIN - description: I2S_CKIN - value: 3 + - name: SYSCLK + description: SYSCLK + value: 0 + - name: HSIKER + description: HSIKER + value: 2 + - name: I2S_CKIN + description: I2S_CKIN + value: 3 enum/LSCOSEL: bit_size: 1 variants: - - name: LSI - description: LSI - value: 0 - - name: LSE - description: LSE - value: 1 + - name: LSI + description: LSI + value: 0 + - name: LSE + description: LSE + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low driving capability - value: 0 - - name: MediumLow - description: Medium low driving capability - value: 1 - - name: MediumHigh - description: Medium high driving capability - value: 2 - - name: High - description: High driving capability - value: 3 + - name: Low + description: Low driving capability + value: 0 + - name: MediumLow + description: Medium low driving capability + value: 1 + - name: MediumHigh + description: Medium high driving capability + value: 2 + - name: High + description: High driving capability + value: 3 enum/MCOPRE: bit_size: 4 variants: - - name: Div1 - description: MCO2 not divided - value: 0 - - name: Div2 - description: MCO clock is divided by 2 - value: 1 - - name: Div4 - description: MCO clock is divided by 4 - value: 2 - - name: Div8 - description: MCO clock is divided by 8 - value: 3 - - name: Div16 - description: MCO clock is divided divided by 16 - value: 4 - - name: Div32 - description: MCO clock is divided divided by 32 - value: 5 - - name: Div64 - description: MCO clock is divided divided by 64 - value: 6 - - name: Div128 - description: MCO clock is divided divided by 128 - value: 7 + - name: Div1 + description: MCO2 not divided + value: 0 + - name: Div2 + description: MCO clock is divided by 2 + value: 1 + - name: Div4 + description: MCO clock is divided by 4 + value: 2 + - name: Div8 + description: MCO clock is divided by 8 + value: 3 + - name: Div16 + description: MCO clock is divided divided by 16 + value: 4 + - name: Div32 + description: MCO clock is divided divided by 32 + value: 5 + - name: Div64 + description: MCO clock is divided divided by 64 + value: 6 + - name: Div128 + description: MCO clock is divided divided by 128 + value: 7 enum/MCOSEL: bit_size: 4 variants: - - name: NoClock - description: "No clock, MCO output disabled" - value: 0 - - name: SYSCLK - description: SYSCLK selected as MCO source - value: 1 - - name: HSI48 - description: HSI48 selected as MCO source - value: 3 - - name: HSE - description: HSE selected as MCO source - value: 4 - - name: LSI - description: LSI selected as MCO source - value: 6 - - name: LSE - description: LSE selected as MCO source - value: 7 + - name: NoClock + description: No clock, MCO output disabled + value: 0 + - name: SYSCLK + description: SYSCLK selected as MCO source + value: 1 + - name: HSI48 + description: HSI48 selected as MCO source + value: 3 + - name: HSE + description: HSE selected as MCO source + value: 4 + - name: LSI + description: LSI selected as MCO source + value: 6 + - name: LSE + description: LSE selected as MCO source + value: 7 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK is divided by 2 - value: 4 - - name: Div4 - description: HCLK is divided by 4 - value: 5 - - name: Div8 - description: HCLK is divided by 8 - value: 6 - - name: Div16 - description: HCLK is divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK is divided by 2 + value: 4 + - name: Div4 + description: HCLK is divided by 4 + value: 5 + - name: Div8 + description: HCLK is divided by 8 + value: 6 + - name: Div16 + description: HCLK is divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock used as RTC clock - value: 0 - - name: LSE - description: LSE used as RTC clock - value: 1 - - name: LSI - description: LSI used as RTC clock - value: 2 - - name: HSE_Div32 - description: HSE divided by 32 used as RTC clock - value: 3 + - name: NoClock + description: No clock used as RTC clock + value: 0 + - name: LSE + description: LSE used as RTC clock + value: 1 + - name: LSI + description: LSI used as RTC clock + value: 2 + - name: HSE_Div32 + description: HSE divided by 32 used as RTC clock + value: 3 enum/SW: bit_size: 3 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: LSI - description: LSI selected as system clock - value: 3 - - name: LSE - description: LSE selected as system clock - value: 4 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: LSI + description: LSI selected as system clock + value: 3 + - name: LSE + description: LSE selected as system clock + value: 4 enum/SYSDIV: bit_size: 3 variants: - - name: Div1 - description: "1" - value: 0 - - name: Div2 - description: "2" - value: 1 - - name: Div3 - description: 3 (reset value) - value: 2 - - name: Div4 - description: "4" - value: 3 - - name: Div5 - description: "5" - value: 4 - - name: Div6 - description: "6" - value: 5 - - name: Div7 - description: "7" - value: 6 - - name: Div8 - description: "8" - value: 7 + - name: Div1 + description: '1' + value: 0 + - name: Div2 + description: '2' + value: 1 + - name: Div3 + description: 3 (reset value) + value: 2 + - name: Div4 + description: '4' + value: 3 + - name: Div5 + description: '5' + value: 4 + - name: Div6 + description: '6' + value: 5 + - name: Div7 + description: '7' + value: 6 + - name: Div8 + description: '8' + value: 7 enum/USART1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK - value: 0 - - name: SYSCLK - description: SYSCLK - value: 1 - - name: HSIKER - description: HSIKER - value: 2 - - name: LSE - description: LSE - value: 3 + - name: PCLK + description: PCLK + value: 0 + - name: SYSCLK + description: SYSCLK + value: 1 + - name: HSIKER + description: HSIKER + value: 2 + - name: LSE + description: LSE + value: 3 diff --git a/data/registers/rcc_f0.yaml b/data/registers/rcc_f0.yaml index d2b860f..3516d11 100644 --- a/data/registers/rcc_f0.yaml +++ b/data/registers/rcc_f0.yaml @@ -1,1099 +1,1098 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: Clock configuration register (RCC_CFGR) - byte_offset: 4 - fieldset: CFGR - - name: CIR - description: Clock interrupt register (RCC_CIR) - byte_offset: 8 - fieldset: CIR - - name: APB2RSTR - description: APB2 peripheral reset register (RCC_APB2RSTR) - byte_offset: 12 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register (RCC_APB1RSTR) - byte_offset: 16 - fieldset: APB1RSTR - - name: AHBENR - description: AHB Peripheral Clock enable register (RCC_AHBENR) - byte_offset: 20 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register (RCC_APB2ENR) - byte_offset: 24 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register (RCC_APB1ENR) - byte_offset: 28 - fieldset: APB1ENR - - name: BDCR - description: Backup domain control register (RCC_BDCR) - byte_offset: 32 - fieldset: BDCR - - name: CSR - description: Control/status register (RCC_CSR) - byte_offset: 36 - fieldset: CSR - - name: AHBRSTR - description: AHB peripheral reset register - byte_offset: 40 - fieldset: AHBRSTR - - name: CFGR2 - description: Clock configuration register 2 - byte_offset: 44 - fieldset: CFGR2 - - name: CFGR3 - description: Clock configuration register 3 - byte_offset: 48 - fieldset: CFGR3 - - name: CR2 - description: Clock control register 2 - byte_offset: 52 - fieldset: CR2 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 40 + fieldset: AHBRSTR + - name: CFGR2 + description: Clock configuration register 2 + byte_offset: 44 + fieldset: CFGR2 + - name: CFGR3 + description: Clock configuration register 3 + byte_offset: 48 + fieldset: CFGR3 + - name: CR2 + description: Clock control register 2 + byte_offset: 52 + fieldset: CR2 fieldset/AHBENR: description: AHB Peripheral Clock enable register (RCC_AHBENR) fields: - - name: DMAEN - description: DMA clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: SRAMEN - description: SRAM interface clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 4 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 17 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 18 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 19 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 20 - bit_size: 1 - - name: GPIOEEN - description: I/O port E clock enable - bit_offset: 21 - bit_size: 1 - - name: GPIOFEN - description: I/O port F clock enable - bit_offset: 22 - bit_size: 1 - - name: TSCEN - description: Touch sensing controller clock enable - bit_offset: 24 - bit_size: 1 + - name: DMAEN + description: DMA clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 17 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 18 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 19 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 20 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 21 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 22 + bit_size: 1 + - name: TSCEN + description: Touch sensing controller clock enable + bit_offset: 24 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral reset register fields: - - name: GPIOARST - description: I/O port A reset - bit_offset: 17 - bit_size: 1 - - name: GPIOBRST - description: I/O port B reset - bit_offset: 18 - bit_size: 1 - - name: GPIOCRST - description: I/O port C reset - bit_offset: 19 - bit_size: 1 - - name: GPIODRST - description: I/O port D reset - bit_offset: 20 - bit_size: 1 - - name: GPIOERST - description: I/O port E reset - bit_offset: 21 - bit_size: 1 - - name: GPIOFRST - description: I/O port F reset - bit_offset: 22 - bit_size: 1 - - name: TSCRST - description: Touch sensing controller reset - bit_offset: 24 - bit_size: 1 + - name: GPIOARST + description: I/O port A reset + bit_offset: 17 + bit_size: 1 + - name: GPIOBRST + description: I/O port B reset + bit_offset: 18 + bit_size: 1 + - name: GPIOCRST + description: I/O port C reset + bit_offset: 19 + bit_size: 1 + - name: GPIODRST + description: I/O port D reset + bit_offset: 20 + bit_size: 1 + - name: GPIOERST + description: I/O port E reset + bit_offset: 21 + bit_size: 1 + - name: GPIOFRST + description: I/O port F reset + bit_offset: 22 + bit_size: 1 + - name: TSCRST + description: Touch sensing controller reset + bit_offset: 24 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register (RCC_APB1ENR) fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 timer clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM14EN - description: Timer 14 clock enable - bit_offset: 8 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: USART4EN - description: USART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: USART5EN - description: USART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB interface clock enable - bit_offset: 23 - bit_size: 1 - - name: CANEN - description: CAN interface clock enable - bit_offset: 25 - bit_size: 1 - - name: CRSEN - description: Clock Recovery System interface clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: CECEN - description: HDMI CEC interface clock enable - bit_offset: 30 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 timer clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM14EN + description: Timer 14 clock enable + bit_offset: 8 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: USART4EN + description: USART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: USART5EN + description: USART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB interface clock enable + bit_offset: 23 + bit_size: 1 + - name: CANEN + description: CAN interface clock enable + bit_offset: 25 + bit_size: 1 + - name: CRSEN + description: Clock Recovery System interface clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: CECEN + description: HDMI CEC interface clock enable + bit_offset: 30 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register (RCC_APB1RSTR) fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 timer reset - bit_offset: 5 - bit_size: 1 - - name: TIM14RST - description: Timer 14 reset - bit_offset: 8 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: USART4RST - description: USART4 reset - bit_offset: 19 - bit_size: 1 - - name: USART5RST - description: USART5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USB interface reset - bit_offset: 23 - bit_size: 1 - - name: CANRST - description: CAN interface reset - bit_offset: 25 - bit_size: 1 - - name: CRSRST - description: Clock Recovery System interface reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 - - name: CECRST - description: HDMI CEC reset - bit_offset: 30 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 timer reset + bit_offset: 5 + bit_size: 1 + - name: TIM14RST + description: Timer 14 reset + bit_offset: 8 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: USART4RST + description: USART4 reset + bit_offset: 19 + bit_size: 1 + - name: USART5RST + description: USART5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB interface reset + bit_offset: 23 + bit_size: 1 + - name: CANRST + description: CAN interface reset + bit_offset: 25 + bit_size: 1 + - name: CRSRST + description: Clock Recovery System interface reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: CECRST + description: HDMI CEC reset + bit_offset: 30 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register (RCC_APB2ENR) fields: - - name: SYSCFGEN - description: SYSCFG clock enable - bit_offset: 0 - bit_size: 1 - - name: USART6EN - description: USART6 clock enable - bit_offset: 5 - bit_size: 1 - - name: USART7EN - description: USART7 clock enable - bit_offset: 6 - bit_size: 1 - - name: USART8EN - description: USART8 clock enable - bit_offset: 7 - bit_size: 1 - - name: ADCEN - description: ADC 1 interface clock enable - bit_offset: 9 - bit_size: 1 - - name: TIM1EN - description: TIM1 Timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: DBGMCUEN - description: MCU debug module clock enable - bit_offset: 22 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: USART6EN + description: USART6 clock enable + bit_offset: 5 + bit_size: 1 + - name: USART7EN + description: USART7 clock enable + bit_offset: 6 + bit_size: 1 + - name: USART8EN + description: USART8 clock enable + bit_offset: 7 + bit_size: 1 + - name: ADCEN + description: ADC 1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: TIM1EN + description: TIM1 Timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: DBGMCUEN + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register (RCC_APB2RSTR) fields: - - name: SYSCFGRST - description: SYSCFG and COMP reset - bit_offset: 0 - bit_size: 1 - - name: USART6RST - description: USART6 reset - bit_offset: 5 - bit_size: 1 - - name: USART7RST - description: USART7 reset - bit_offset: 6 - bit_size: 1 - - name: USART8RST - description: USART8 reset - bit_offset: 7 - bit_size: 1 - - name: ADCRST - description: ADC interface reset - bit_offset: 9 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: DBGMCURST - description: Debug MCU reset - bit_offset: 22 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFG and COMP reset + bit_offset: 0 + bit_size: 1 + - name: USART6RST + description: USART6 reset + bit_offset: 5 + bit_size: 1 + - name: USART7RST + description: USART7 reset + bit_offset: 6 + bit_size: 1 + - name: USART8RST + description: USART8 reset + bit_offset: 7 + bit_size: 1 + - name: ADCRST + description: ADC interface reset + bit_offset: 9 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: DBGMCURST + description: Debug MCU reset + bit_offset: 22 + bit_size: 1 fieldset/BDCR: description: Backup domain control register (RCC_BDCR) fields: - - name: LSEON - description: External Low Speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External Low Speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External Low Speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: Clock configuration register (RCC_CFGR) fields: - - name: SW - description: System clock Switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System Clock Switch Status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE - description: APB Low speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: ADCPRE - description: APCPRE is deprecated. See ADC field in CFGR2 register. - bit_offset: 14 - bit_size: 1 - - name: PLLSRC - description: PLL input clock source - bit_offset: 15 - bit_size: 2 - enum: PLLSRC - - name: PLLXTPRE - description: "HSE divider for PLL entry. Same bit as PREDIC[0] from CFGR2 register. Refer to it for its meaning" - bit_offset: 17 - bit_size: 1 - enum: PLLXTPRE - - name: PLLMUL - description: PLL Multiplication Factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: MCO - description: Microcontroller clock output - bit_offset: 24 - bit_size: 3 - enum: MCO - - name: MCOPRE - description: Microcontroller Clock Output Prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE - - name: PLLNODIV - description: PLL clock not divided for MCO - bit_offset: 31 - bit_size: 1 - enum: PLLNODIV + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: ADCPRE + description: APCPRE is deprecated. See ADC field in CFGR2 register. + bit_offset: 14 + bit_size: 1 + - name: PLLSRC + description: PLL input clock source + bit_offset: 15 + bit_size: 2 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry. Same bit as PREDIC[0] from CFGR2 register. Refer to it for its meaning + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCO + - name: MCOPRE + description: Microcontroller Clock Output Prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE + - name: PLLNODIV + description: PLL clock not divided for MCO + bit_offset: 31 + bit_size: 1 + enum: PLLNODIV fieldset/CFGR2: description: Clock configuration register 2 fields: - - name: PREDIV - description: PREDIV division factor - bit_offset: 0 - bit_size: 4 - enum: PREDIV + - name: PREDIV + description: PREDIV division factor + bit_offset: 0 + bit_size: 4 + enum: PREDIV fieldset/CFGR3: description: Clock configuration register 3 fields: - - name: USART1SW - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - enum: USARTSW - - name: I2C1SW - description: I2C1 clock source selection - bit_offset: 4 - bit_size: 1 - enum: ICSW - - name: CECSW - description: HDMI CEC clock source selection - bit_offset: 6 - bit_size: 1 - enum: CECSW - - name: USBSW - description: USB clock source selection - bit_offset: 7 - bit_size: 1 - enum: USBSW - - name: ADCSW - description: ADCSW is deprecated. See ADC field in CFGR2 register. - bit_offset: 8 - bit_size: 1 - - name: USART2SW - description: USART2 clock source selection - bit_offset: 16 - bit_size: 2 - enum: USARTSW - - name: USART3SW - description: USART3 clock source - bit_offset: 18 - bit_size: 2 - enum: USARTSW + - name: USART1SW + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: USARTSW + - name: I2C1SW + description: I2C1 clock source selection + bit_offset: 4 + bit_size: 1 + enum: ICSW + - name: CECSW + description: HDMI CEC clock source selection + bit_offset: 6 + bit_size: 1 + enum: CECSW + - name: USBSW + description: USB clock source selection + bit_offset: 7 + bit_size: 1 + enum: USBSW + - name: ADCSW + description: ADCSW is deprecated. See ADC field in CFGR2 register. + bit_offset: 8 + bit_size: 1 + - name: USART2SW + description: USART2 clock source selection + bit_offset: 16 + bit_size: 2 + enum: USARTSW + - name: USART3SW + description: USART3 clock source + bit_offset: 18 + bit_size: 2 + enum: USARTSW fieldset/CIR: description: Clock interrupt register (RCC_CIR) fields: - - name: LSIRDYF - description: LSI Ready Interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE Ready Interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI Ready Interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE Ready Interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL Ready Interrupt flag - bit_offset: 4 - bit_size: 1 - - name: HSI14RDYF - description: HSI14 ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: HSI48RDYF - description: HSI48 ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: CSSF - description: Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI Ready Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE Ready Interrupt Enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI Ready Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE Ready Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL Ready Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: HSI14RDYIE - description: HSI14 ready interrupt enable - bit_offset: 13 - bit_size: 1 - - name: HSI48RDYIE - description: HSI48 ready interrupt enable - bit_offset: 14 - bit_size: 1 - - name: LSIRDYC - description: LSI Ready Interrupt Clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE Ready Interrupt Clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI Ready Interrupt Clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE Ready Interrupt Clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL Ready Interrupt Clear - bit_offset: 20 - bit_size: 1 - - name: HSI14RDYC - description: HSI 14 MHz Ready Interrupt Clear - bit_offset: 21 - bit_size: 1 - - name: HSI48RDYC - description: HSI48 Ready Interrupt Clear - bit_offset: 22 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: HSI14RDYF + description: HSI14 ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: HSI48RDYF + description: HSI48 ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: HSI14RDYIE + description: HSI14 ready interrupt enable + bit_offset: 13 + bit_size: 1 + - name: HSI48RDYIE + description: HSI48 ready interrupt enable + bit_offset: 14 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: HSI14RDYC + description: HSI 14 MHz Ready Interrupt Clear + bit_offset: 21 + bit_size: 1 + - name: HSI48RDYC + description: HSI48 Ready Interrupt Clear + bit_offset: 22 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal High Speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal High Speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal High Speed clock Calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: External High Speed clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: External High Speed clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: External High Speed clock Bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CR2: description: Clock control register 2 fields: - - name: HSI14ON - description: HSI14 clock enable - bit_offset: 0 - bit_size: 1 - - name: HSI14RDY - description: HR14 clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSI14DIS - description: HSI14 clock request from ADC disable - bit_offset: 2 - bit_size: 1 - - name: HSI14TRIM - description: HSI14 clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSI14CAL - description: HSI14 clock calibration - bit_offset: 8 - bit_size: 8 - - name: HSI48ON - description: HSI48 clock enable - bit_offset: 16 - bit_size: 1 - - name: HSI48RDY - description: HSI48 clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSI48CAL - description: HSI48 factory clock calibration - bit_offset: 24 - bit_size: 8 + - name: HSI14ON + description: HSI14 clock enable + bit_offset: 0 + bit_size: 1 + - name: HSI14RDY + description: HR14 clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSI14DIS + description: HSI14 clock request from ADC disable + bit_offset: 2 + bit_size: 1 + - name: HSI14TRIM + description: HSI14 clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSI14CAL + description: HSI14 clock calibration + bit_offset: 8 + bit_size: 8 + - name: HSI48ON + description: HSI48 clock enable + bit_offset: 16 + bit_size: 1 + - name: HSI48RDY + description: HSI48 clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSI48CAL + description: HSI48 factory clock calibration + bit_offset: 24 + bit_size: 8 fieldset/CSR: description: Control/status register (RCC_CSR) fields: - - name: LSION - description: Internal low speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: V18PWRRSTF - description: 1.8 V domain reset flag - bit_offset: 23 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: V18PWRRSTF + description: 1.8 V domain reset flag + bit_offset: 23 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 enum/CECSW: bit_size: 1 variants: - - name: HSI_Div244 - description: HSI clock divided by 244 selected as CEC clock source - value: 0 - - name: LSE - description: LSE clock selected as CEC clock source - value: 1 + - name: HSI_Div244 + description: HSI clock divided by 244 selected as CEC clock source + value: 0 + - name: LSE + description: LSE clock selected as CEC clock source + value: 1 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/ICSW: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as I2C clock source - value: 0 - - name: SYSCLK - description: SYSCLK clock selected as I2C clock source - value: 1 + - name: HSI + description: HSI clock selected as I2C clock source + value: 0 + - name: SYSCLK + description: SYSCLK clock selected as I2C clock source + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low drive capacity - value: 0 - - name: MediumHigh - description: Medium-high drive capacity - value: 1 - - name: MediumLow - description: Medium-low drive capacity - value: 2 - - name: High - description: High drive capacity - value: 3 + - name: Low + description: Low drive capacity + value: 0 + - name: MediumHigh + description: Medium-high drive capacity + value: 1 + - name: MediumLow + description: Medium-low drive capacity + value: 2 + - name: High + description: High drive capacity + value: 3 enum/MCO: bit_size: 3 variants: - - name: NoMCO - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: HSI14 - description: Internal RC 14 MHz (HSI14) oscillator clock selected - value: 1 - - name: LSI - description: Internal low speed (LSI) oscillator clock selected - value: 2 - - name: LSE - description: External low speed (LSE) oscillator clock selected - value: 3 - - name: SYSCLK - description: System clock selected - value: 4 - - name: HSI - description: Internal RC 8 MHz (HSI) oscillator clock selected - value: 5 - - name: HSE - description: External 4-32 MHz (HSE) oscillator clock selected - value: 6 - - name: PLL - description: "PLL clock selected (divided by 1 or 2, depending en PLLNODIV)" - value: 7 - - name: HSI48 - description: Internal RC 48 MHz (HSI48) oscillator clock selected - value: 8 + - name: NoMCO + description: MCO output disabled, no clock on MCO + value: 0 + - name: HSI14 + description: Internal RC 14 MHz (HSI14) oscillator clock selected + value: 1 + - name: LSI + description: Internal low speed (LSI) oscillator clock selected + value: 2 + - name: LSE + description: External low speed (LSE) oscillator clock selected + value: 3 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: Internal RC 8 MHz (HSI) oscillator clock selected + value: 5 + - name: HSE + description: External 4-32 MHz (HSE) oscillator clock selected + value: 6 + - name: PLL + description: PLL clock selected (divided by 1 or 2, depending en PLLNODIV) + value: 7 + - name: HSI48 + description: Internal RC 48 MHz (HSI48) oscillator clock selected + value: 8 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: MCO is divided by 1 - value: 0 - - name: Div2 - description: MCO is divided by 2 - value: 1 - - name: Div4 - description: MCO is divided by 4 - value: 2 - - name: Div8 - description: MCO is divided by 8 - value: 3 - - name: Div16 - description: MCO is divided by 16 - value: 4 - - name: Div32 - description: MCO is divided by 32 - value: 5 - - name: Div64 - description: MCO is divided by 64 - value: 6 - - name: Div128 - description: MCO is divided by 128 - value: 7 + - name: Div1 + description: MCO is divided by 1 + value: 0 + - name: Div2 + description: MCO is divided by 2 + value: 1 + - name: Div4 + description: MCO is divided by 4 + value: 2 + - name: Div8 + description: MCO is divided by 8 + value: 3 + - name: Div16 + description: MCO is divided by 16 + value: 4 + - name: Div32 + description: MCO is divided by 32 + value: 5 + - name: Div64 + description: MCO is divided by 64 + value: 6 + - name: Div128 + description: MCO is divided by 128 + value: 7 enum/PLLMUL: bit_size: 4 variants: - - name: Mul2 - description: PLL input clock x2 - value: 0 - - name: Mul3 - description: PLL input clock x3 - value: 1 - - name: Mul4 - description: PLL input clock x4 - value: 2 - - name: Mul5 - description: PLL input clock x5 - value: 3 - - name: Mul6 - description: PLL input clock x6 - value: 4 - - name: Mul7 - description: PLL input clock x7 - value: 5 - - name: Mul8 - description: PLL input clock x8 - value: 6 - - name: Mul9 - description: PLL input clock x9 - value: 7 - - name: Mul10 - description: PLL input clock x10 - value: 8 - - name: Mul11 - description: PLL input clock x11 - value: 9 - - name: Mul12 - description: PLL input clock x12 - value: 10 - - name: Mul13 - description: PLL input clock x13 - value: 11 - - name: Mul14 - description: PLL input clock x14 - value: 12 - - name: Mul15 - description: PLL input clock x15 - value: 13 - - name: Mul16 - description: PLL input clock x16 - value: 14 - - name: Mul16x - description: PLL input clock x16 - value: 15 + - name: Mul2 + description: PLL input clock x2 + value: 0 + - name: Mul3 + description: PLL input clock x3 + value: 1 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul10 + description: PLL input clock x10 + value: 8 + - name: Mul11 + description: PLL input clock x11 + value: 9 + - name: Mul12 + description: PLL input clock x12 + value: 10 + - name: Mul13 + description: PLL input clock x13 + value: 11 + - name: Mul14 + description: PLL input clock x14 + value: 12 + - name: Mul15 + description: PLL input clock x15 + value: 13 + - name: Mul16 + description: PLL input clock x16 + value: 14 + - name: Mul16x + description: PLL input clock x16 + value: 15 enum/PLLNODIV: bit_size: 1 variants: - - name: Div2 - description: PLL is divided by 2 for MCO - value: 0 - - name: Div1 - description: PLL is not divided for MCO - value: 1 + - name: Div2 + description: PLL is divided by 2 for MCO + value: 0 + - name: Div1 + description: PLL is not divided for MCO + value: 1 enum/PLLSRC: bit_size: 2 variants: - - name: HSI_Div2 - description: HSI divided by 2 selected as PLL input clock - value: 0 - - name: HSI_Div_PREDIV - description: NOT ALLOWED IN F0x0 - HSI divided by PREDIV selected as PLL input clock - value: 1 - - name: HSE_Div_PREDIV - description: HSE divided by PREDIV selected as PLL input clock - value: 2 - - name: HSI48_Div_PREDIV - description: NOT ALLOWED IN F0x0 - HSI48 divided by PREDIV selected as PLL input clock - value: 3 + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSI_Div_PREDIV + description: NOT ALLOWED IN F0x0 - HSI divided by PREDIV selected as PLL input clock + value: 1 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 2 + - name: HSI48_Div_PREDIV + description: NOT ALLOWED IN F0x0 - HSI48 divided by PREDIV selected as PLL input clock + value: 3 enum/PLLXTPRE: bit_size: 1 variants: - - name: Div1 - description: HSE clock not divided - value: 0 - - name: Div2 - description: HSE clock divided by 2 - value: 1 + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/PREDIV: bit_size: 4 variants: - - name: Div1 - description: PREDIV input clock not divided - value: 0 - - name: Div2 - description: PREDIV input clock divided by 2 - value: 1 - - name: Div3 - description: PREDIV input clock divided by 3 - value: 2 - - name: Div4 - description: PREDIV input clock divided by 4 - value: 3 - - name: Div5 - description: PREDIV input clock divided by 5 - value: 4 - - name: Div6 - description: PREDIV input clock divided by 6 - value: 5 - - name: Div7 - description: PREDIV input clock divided by 7 - value: 6 - - name: Div8 - description: PREDIV input clock divided by 8 - value: 7 - - name: Div9 - description: PREDIV input clock divided by 9 - value: 8 - - name: Div10 - description: PREDIV input clock divided by 10 - value: 9 - - name: Div11 - description: PREDIV input clock divided by 11 - value: 10 - - name: Div12 - description: PREDIV input clock divided by 12 - value: 11 - - name: Div13 - description: PREDIV input clock divided by 13 - value: 12 - - name: Div14 - description: PREDIV input clock divided by 14 - value: 13 - - name: Div15 - description: PREDIV input clock divided by 15 - value: 14 - - name: Div16 - description: PREDIV input clock divided by 16 - value: 15 + - name: Div1 + description: PREDIV input clock not divided + value: 0 + - name: Div2 + description: PREDIV input clock divided by 2 + value: 1 + - name: Div3 + description: PREDIV input clock divided by 3 + value: 2 + - name: Div4 + description: PREDIV input clock divided by 4 + value: 3 + - name: Div5 + description: PREDIV input clock divided by 5 + value: 4 + - name: Div6 + description: PREDIV input clock divided by 6 + value: 5 + - name: Div7 + description: PREDIV input clock divided by 7 + value: 6 + - name: Div8 + description: PREDIV input clock divided by 8 + value: 7 + - name: Div9 + description: PREDIV input clock divided by 9 + value: 8 + - name: Div10 + description: PREDIV input clock divided by 10 + value: 9 + - name: Div11 + description: PREDIV input clock divided by 11 + value: 10 + - name: Div12 + description: PREDIV input clock divided by 12 + value: 11 + - name: Div13 + description: PREDIV input clock divided by 13 + value: 12 + - name: Div14 + description: PREDIV input clock divided by 14 + value: 13 + - name: Div15 + description: PREDIV input clock divided by 15 + value: 14 + - name: Div16 + description: PREDIV input clock divided by 16 + value: 15 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 - - name: HSI48 - description: HSI48 selected as system clock (when available) - value: 3 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 + - name: HSI48 + description: HSI48 selected as system clock (when available) + value: 3 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 - - name: HSI48 - description: HSI48 used as system clock (when avaiable) - value: 3 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 + - name: HSI48 + description: HSI48 used as system clock (when avaiable) + value: 3 enum/USARTSW: bit_size: 2 variants: - - name: PCLK - description: PCLK selected as USART clock source - value: 0 - - name: SYSCLK - description: SYSCLK selected as USART clock source - value: 1 - - name: LSE - description: LSE selected as USART clock source - value: 2 - - name: HSI - description: HSI selected as USART clock source - value: 3 + - name: PCLK + description: PCLK selected as USART clock source + value: 0 + - name: SYSCLK + description: SYSCLK selected as USART clock source + value: 1 + - name: LSE + description: LSE selected as USART clock source + value: 2 + - name: HSI + description: HSI selected as USART clock source + value: 3 enum/USBSW: bit_size: 1 variants: - - name: HSI48 - description: NOT ALLOWED IN F0x0 - HSI48 selected as USB clock source - value: 0 - - name: PLLCLK - description: PLL clock selected as USB clock source - value: 1 + - name: HSI48 + description: NOT ALLOWED IN F0x0 - HSI48 selected as USB clock source + value: 0 + - name: PLLCLK + description: PLL clock selected as USB clock source + value: 1 diff --git a/data/registers/rcc_f1.yaml b/data/registers/rcc_f1.yaml index a96555a..f9fdcc3 100644 --- a/data/registers/rcc_f1.yaml +++ b/data/registers/rcc_f1.yaml @@ -1,852 +1,851 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: Clock configuration register (RCC_CFGR) - byte_offset: 4 - fieldset: CFGR - - name: CIR - description: Clock interrupt register (RCC_CIR) - byte_offset: 8 - fieldset: CIR - - name: APB2RSTR - description: APB2 peripheral reset register (RCC_APB2RSTR) - byte_offset: 12 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register (RCC_APB1RSTR) - byte_offset: 16 - fieldset: APB1RSTR - - name: AHBENR - description: AHB Peripheral Clock enable register (RCC_AHBENR) - byte_offset: 20 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register (RCC_APB2ENR) - byte_offset: 24 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register (RCC_APB1ENR) - byte_offset: 28 - fieldset: APB1ENR - - name: BDCR - description: Backup domain control register (RCC_BDCR) - byte_offset: 32 - fieldset: BDCR - - name: CSR - description: Control/status register (RCC_CSR) - byte_offset: 36 - fieldset: CSR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR fieldset/AHBENR: description: AHB Peripheral Clock enable register (RCC_AHBENR) fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: SRAMEN - description: SRAM interface clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 4 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 6 - bit_size: 1 - - name: FSMCEN - description: FSMC clock enable - bit_offset: 8 - bit_size: 1 - - name: SDIOEN - description: SDIO clock enable - bit_offset: 10 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: FSMCEN + description: FSMC clock enable + bit_offset: 8 + bit_size: 1 + - name: SDIOEN + description: SDIO clock enable + bit_offset: 10 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register (RCC_APB1ENR) fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: Timer 4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: Timer 5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: Timer 12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: Timer 13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: Timer 14 clock enable - bit_offset: 8 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI 3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART 3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART 4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART 5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB clock enable - bit_offset: 23 - bit_size: 1 - - name: CANEN - description: CAN clock enable - bit_offset: 25 - bit_size: 1 - - name: BKPEN - description: Backup interface clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: Timer 5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: Timer 12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: Timer 13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: Timer 14 clock enable + bit_offset: 8 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART 4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART 5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB clock enable + bit_offset: 23 + bit_size: 1 + - name: CANEN + description: CAN clock enable + bit_offset: 25 + bit_size: 1 + - name: BKPEN + description: Backup interface clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register (RCC_APB1RSTR) fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: Timer 4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: Timer 5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: Timer 12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: Timer 13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: Timer 14 reset - bit_offset: 8 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: USART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: USART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USB reset - bit_offset: 23 - bit_size: 1 - - name: CANRST - description: CAN reset - bit_offset: 25 - bit_size: 1 - - name: BKPRST - description: Backup interface reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: Timer 5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: Timer 12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: Timer 13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: Timer 14 reset + bit_offset: 8 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: USART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: USART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 23 + bit_size: 1 + - name: CANRST + description: CAN reset + bit_offset: 25 + bit_size: 1 + - name: BKPRST + description: Backup interface reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register (RCC_APB2ENR) fields: - - name: AFIOEN - description: Alternate function I/O clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOEEN - description: I/O port E clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOFEN - description: I/O port F clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOGEN - description: I/O port G clock enable - bit_offset: 8 - bit_size: 1 - - name: ADC1EN - description: ADC 1 interface clock enable - bit_offset: 9 - bit_size: 1 - - name: ADC2EN - description: ADC 2 interface clock enable - bit_offset: 10 - bit_size: 1 - - name: TIM1EN - description: TIM1 Timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: TIM8 Timer clock enable - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: ADC3EN - description: ADC3 interface clock enable - bit_offset: 15 - bit_size: 1 - - name: TIM9EN - description: TIM9 Timer clock enable - bit_offset: 19 - bit_size: 1 - - name: TIM10EN - description: TIM10 Timer clock enable - bit_offset: 20 - bit_size: 1 - - name: TIM11EN - description: TIM11 Timer clock enable - bit_offset: 21 - bit_size: 1 + - name: AFIOEN + description: Alternate function I/O clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOGEN + description: I/O port G clock enable + bit_offset: 8 + bit_size: 1 + - name: ADC1EN + description: ADC 1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: ADC2EN + description: ADC 2 interface clock enable + bit_offset: 10 + bit_size: 1 + - name: TIM1EN + description: TIM1 Timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: TIM8 Timer clock enable + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: ADC3EN + description: ADC3 interface clock enable + bit_offset: 15 + bit_size: 1 + - name: TIM9EN + description: TIM9 Timer clock enable + bit_offset: 19 + bit_size: 1 + - name: TIM10EN + description: TIM10 Timer clock enable + bit_offset: 20 + bit_size: 1 + - name: TIM11EN + description: TIM11 Timer clock enable + bit_offset: 21 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register (RCC_APB2RSTR) fields: - - name: AFIORST - description: Alternate function I/O reset - bit_offset: 0 - bit_size: 1 - - name: GPIOARST - description: IO port A reset - bit_offset: 2 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 3 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 4 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 5 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 6 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 7 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 8 - bit_size: 1 - - name: ADC1RST - description: ADC 1 interface reset - bit_offset: 9 - bit_size: 1 - - name: ADC2RST - description: ADC 2 interface reset - bit_offset: 10 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: TIM8 timer reset - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: ADC3RST - description: ADC 3 interface reset - bit_offset: 15 - bit_size: 1 - - name: TIM9RST - description: TIM9 timer reset - bit_offset: 19 - bit_size: 1 - - name: TIM10RST - description: TIM10 timer reset - bit_offset: 20 - bit_size: 1 - - name: TIM11RST - description: TIM11 timer reset - bit_offset: 21 - bit_size: 1 + - name: AFIORST + description: Alternate function I/O reset + bit_offset: 0 + bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 2 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 3 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 4 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 5 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 6 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 7 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 8 + bit_size: 1 + - name: ADC1RST + description: ADC 1 interface reset + bit_offset: 9 + bit_size: 1 + - name: ADC2RST + description: ADC 2 interface reset + bit_offset: 10 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: TIM8 timer reset + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: ADC3RST + description: ADC 3 interface reset + bit_offset: 15 + bit_size: 1 + - name: TIM9RST + description: TIM9 timer reset + bit_offset: 19 + bit_size: 1 + - name: TIM10RST + description: TIM10 timer reset + bit_offset: 20 + bit_size: 1 + - name: TIM11RST + description: TIM11 timer reset + bit_offset: 21 + bit_size: 1 fieldset/BDCR: description: Backup domain control register (RCC_BDCR) fields: - - name: LSEON - description: External Low Speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External Low Speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External Low Speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: Clock configuration register (RCC_CFGR) fields: - - name: SW - description: System clock Switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System Clock Switch Status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE1 - - name: PPRE2 - description: APB High speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE1 - - name: ADCPRE - description: ADC prescaler - bit_offset: 14 - bit_size: 2 - enum: ADCPRE - - name: PLLSRC - description: PLL entry clock source - bit_offset: 16 - bit_size: 1 - enum: PLLSRC - - name: PLLXTPRE - description: HSE divider for PLL entry - bit_offset: 17 - bit_size: 1 - enum: PLLXTPRE - - name: PLLMUL - description: PLL Multiplication Factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: USBPRE - description: USB prescaler - bit_offset: 22 - bit_size: 1 - enum: USBPRE - - name: MCO - description: Microcontroller clock output - bit_offset: 24 - bit_size: 3 - enum: MCO + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE1 + - name: PPRE2 + description: APB High speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE1 + - name: ADCPRE + description: ADC prescaler + bit_offset: 14 + bit_size: 2 + enum: ADCPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 16 + bit_size: 1 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: USBPRE + description: USB prescaler + bit_offset: 22 + bit_size: 1 + enum: USBPRE + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCO fieldset/CIR: description: Clock interrupt register (RCC_CIR) fields: - - name: LSIRDYF - description: LSI Ready Interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE Ready Interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI Ready Interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE Ready Interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL Ready Interrupt flag - bit_offset: 4 - bit_size: 1 - - name: CSSF - description: Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI Ready Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE Ready Interrupt Enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI Ready Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE Ready Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL Ready Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: LSIRDYC - description: LSI Ready Interrupt Clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE Ready Interrupt Clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI Ready Interrupt Clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE Ready Interrupt Clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL Ready Interrupt Clear - bit_offset: 20 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal High Speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal High Speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal High Speed clock Calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: External High Speed clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: External High Speed clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: External High Speed clock Bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: Control/status register (RCC_CSR) fields: - - name: LSION - description: Internal low speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 enum/ADCPRE: bit_size: 2 variants: - - name: Div2 - description: PCLK2 divided by 2 - value: 0 - - name: Div4 - description: PCLK2 divided by 4 - value: 1 - - name: Div6 - description: PCLK2 divided by 6 - value: 2 - - name: Div8 - description: PCLK2 divided by 8 - value: 3 + - name: Div2 + description: PCLK2 divided by 2 + value: 0 + - name: Div4 + description: PCLK2 divided by 4 + value: 1 + - name: Div6 + description: PCLK2 divided by 6 + value: 2 + - name: Div8 + description: PCLK2 divided by 8 + value: 3 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/MCO: bit_size: 3 variants: - - name: NoMCO - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: SYSCLK - description: System clock selected - value: 4 - - name: HSI - description: HSI oscillator clock selected - value: 5 - - name: HSE - description: HSE oscillator clock selected - value: 6 - - name: PLL - description: PLL clock divided by 2 selected - value: 7 + - name: NoMCO + description: MCO output disabled, no clock on MCO + value: 0 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: HSI oscillator clock selected + value: 5 + - name: HSE + description: HSE oscillator clock selected + value: 6 + - name: PLL + description: PLL clock divided by 2 selected + value: 7 enum/PLLMUL: bit_size: 4 variants: - - name: Mul2 - description: PLL input clock x2 - value: 0 - - name: Mul3 - description: PLL input clock x3 - value: 1 - - name: Mul4 - description: PLL input clock x4 - value: 2 - - name: Mul5 - description: PLL input clock x5 - value: 3 - - name: Mul6 - description: PLL input clock x6 - value: 4 - - name: Mul7 - description: PLL input clock x7 - value: 5 - - name: Mul8 - description: PLL input clock x8 - value: 6 - - name: Mul9 - description: PLL input clock x9 - value: 7 - - name: Mul10 - description: PLL input clock x10 - value: 8 - - name: Mul11 - description: PLL input clock x11 - value: 9 - - name: Mul12 - description: PLL input clock x12 - value: 10 - - name: Mul13 - description: PLL input clock x13 - value: 11 - - name: Mul14 - description: PLL input clock x14 - value: 12 - - name: Mul15 - description: PLL input clock x15 - value: 13 - - name: Mul16 - description: PLL input clock x16 - value: 14 - - name: Mul16x - description: PLL input clock x16 - value: 15 + - name: Mul2 + description: PLL input clock x2 + value: 0 + - name: Mul3 + description: PLL input clock x3 + value: 1 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul10 + description: PLL input clock x10 + value: 8 + - name: Mul11 + description: PLL input clock x11 + value: 9 + - name: Mul12 + description: PLL input clock x12 + value: 10 + - name: Mul13 + description: PLL input clock x13 + value: 11 + - name: Mul14 + description: PLL input clock x14 + value: 12 + - name: Mul15 + description: PLL input clock x15 + value: 13 + - name: Mul16 + description: PLL input clock x16 + value: 14 + - name: Mul16x + description: PLL input clock x16 + value: 15 enum/PLLSRC: bit_size: 1 variants: - - name: HSI_Div2 - description: HSI divided by 2 selected as PLL input clock - value: 0 - - name: HSE_Div_PREDIV - description: HSE divided by PREDIV selected as PLL input clock - value: 1 + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 1 enum/PLLXTPRE: bit_size: 1 variants: - - name: Div1 - description: HSE clock not divided - value: 0 - - name: Div2 - description: HSE clock divided by 2 - value: 1 + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 enum/PPRE1: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 - description: PLL clock is divided by 1.5 - value: 0 - - name: DIV1 - description: PLL clock is not divided - value: 1 + - name: DIV1_5 + description: PLL clock is divided by 1.5 + value: 0 + - name: DIV1 + description: PLL clock is not divided + value: 1 diff --git a/data/registers/rcc_f100.yaml b/data/registers/rcc_f100.yaml index a094e0b..113c63a 100644 --- a/data/registers/rcc_f100.yaml +++ b/data/registers/rcc_f100.yaml @@ -1,865 +1,864 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: Clock configuration register (RCC_CFGR) - byte_offset: 4 - fieldset: CFGR - - name: CIR - description: Clock interrupt register (RCC_CIR) - byte_offset: 8 - fieldset: CIR - - name: APB2RSTR - description: APB2 peripheral reset register (RCC_APB2RSTR) - byte_offset: 12 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register (RCC_APB1RSTR) - byte_offset: 16 - fieldset: APB1RSTR - - name: AHBENR - description: AHB Peripheral Clock enable register (RCC_AHBENR) - byte_offset: 20 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register (RCC_APB2ENR) - byte_offset: 24 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register (RCC_APB1ENR) - byte_offset: 28 - fieldset: APB1ENR - - name: BDCR - description: Backup domain control register (RCC_BDCR) - byte_offset: 32 - fieldset: BDCR - - name: CSR - description: Control/status register (RCC_CSR) - byte_offset: 36 - fieldset: CSR - - name: CFGR2 - description: Clock configuration register 2 - byte_offset: 44 - fieldset: CFGR2 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR + - name: CFGR2 + description: Clock configuration register 2 + byte_offset: 44 + fieldset: CFGR2 fieldset/AHBENR: description: AHB Peripheral Clock enable register (RCC_AHBENR) fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: SRAMEN - description: SRAM interface clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 4 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 6 - bit_size: 1 - - name: FSMCEN - description: FSMC clock enable - bit_offset: 8 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: FSMCEN + description: FSMC clock enable + bit_offset: 8 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register (RCC_APB1ENR) fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: Timer 4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: Timer 5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: Timer 12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: Timer 13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: Timer 14 clock enable - bit_offset: 8 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI 3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART 3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART 4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART 5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: BKPEN - description: Backup interface clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: CECEN - description: CEC clock enable - bit_offset: 30 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: Timer 5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: Timer 12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: Timer 13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: Timer 14 clock enable + bit_offset: 8 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART 4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART 5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: BKPEN + description: Backup interface clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: CECEN + description: CEC clock enable + bit_offset: 30 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register (RCC_APB1RSTR) fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: Timer 4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: Timer 5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: Timer 12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: Timer 13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: Timer 14 reset - bit_offset: 8 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: USART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: USART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: BKPRST - description: Backup interface reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 - - name: CECRST - description: CEC reset - bit_offset: 30 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: Timer 5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: Timer 12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: Timer 13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: Timer 14 reset + bit_offset: 8 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: USART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: USART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: BKPRST + description: Backup interface reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: CECRST + description: CEC reset + bit_offset: 30 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register (RCC_APB2ENR) fields: - - name: AFIOEN - description: Alternate function I/O clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOEEN - description: I/O port E clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOFEN - description: I/O port F clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOGEN - description: I/O port G clock enable - bit_offset: 8 - bit_size: 1 - - name: ADC1EN - description: ADC 1 interface clock enable - bit_offset: 9 - bit_size: 1 - - name: TIM1EN - description: TIM1 Timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: TIM15 Timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 Timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 Timer clock enable - bit_offset: 18 - bit_size: 1 + - name: AFIOEN + description: Alternate function I/O clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOGEN + description: I/O port G clock enable + bit_offset: 8 + bit_size: 1 + - name: ADC1EN + description: ADC 1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: TIM1EN + description: TIM1 Timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: TIM15 Timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 Timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 Timer clock enable + bit_offset: 18 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register (RCC_APB2RSTR) fields: - - name: AFIORST - description: Alternate function I/O reset - bit_offset: 0 - bit_size: 1 - - name: GPIOARST - description: IO port A reset - bit_offset: 2 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 3 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 4 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 5 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 6 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 7 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 8 - bit_size: 1 - - name: ADC1RST - description: ADC 1 interface reset - bit_offset: 9 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 + - name: AFIORST + description: Alternate function I/O reset + bit_offset: 0 + bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 2 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 3 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 4 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 5 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 6 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 7 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 8 + bit_size: 1 + - name: ADC1RST + description: ADC 1 interface reset + bit_offset: 9 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 fieldset/BDCR: description: Backup domain control register (RCC_BDCR) fields: - - name: LSEON - description: External Low Speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External Low Speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External Low Speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: Clock configuration register (RCC_CFGR) fields: - - name: SW - description: System clock Switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System Clock Switch Status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE1 - - name: PPRE2 - description: APB High speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE1 - - name: ADCPRE - description: ADC prescaler - bit_offset: 14 - bit_size: 2 - enum: ADCPRE - - name: PLLSRC - description: PLL entry clock source - bit_offset: 16 - bit_size: 1 - enum: PLLSRC - - name: PLLXTPRE - description: HSE divider for PLL entry - bit_offset: 17 - bit_size: 1 - enum: PLLXTPRE - - name: PLLMUL - description: PLL Multiplication Factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: MCO - description: Microcontroller clock output - bit_offset: 24 - bit_size: 3 - enum: MCO + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE1 + - name: PPRE2 + description: APB High speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE1 + - name: ADCPRE + description: ADC prescaler + bit_offset: 14 + bit_size: 2 + enum: ADCPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 16 + bit_size: 1 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCO fieldset/CFGR2: description: Clock configuration register 2 fields: - - name: PREDIV1 - description: PREDIV1 division factor - bit_offset: 0 - bit_size: 4 - enum: PREDIV1 + - name: PREDIV1 + description: PREDIV1 division factor + bit_offset: 0 + bit_size: 4 + enum: PREDIV1 fieldset/CIR: description: Clock interrupt register (RCC_CIR) fields: - - name: LSIRDYF - description: LSI Ready Interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE Ready Interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI Ready Interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE Ready Interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL Ready Interrupt flag - bit_offset: 4 - bit_size: 1 - - name: CSSF - description: Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI Ready Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE Ready Interrupt Enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI Ready Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE Ready Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL Ready Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: LSIRDYC - description: LSI Ready Interrupt Clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE Ready Interrupt Clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI Ready Interrupt Clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE Ready Interrupt Clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL Ready Interrupt Clear - bit_offset: 20 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal High Speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal High Speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal High Speed clock Calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: External High Speed clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: External High Speed clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: External High Speed clock Bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: Control/status register (RCC_CSR) fields: - - name: LSION - description: Internal low speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 enum/ADCPRE: bit_size: 2 variants: - - name: Div2 - description: PCLK2 divided by 2 - value: 0 - - name: Div4 - description: PCLK2 divided by 4 - value: 1 - - name: Div6 - description: PCLK2 divided by 6 - value: 2 - - name: Div8 - description: PCLK2 divided by 8 - value: 3 + - name: Div2 + description: PCLK2 divided by 2 + value: 0 + - name: Div4 + description: PCLK2 divided by 4 + value: 1 + - name: Div6 + description: PCLK2 divided by 6 + value: 2 + - name: Div8 + description: PCLK2 divided by 8 + value: 3 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/MCO: bit_size: 3 variants: - - name: NoMCO - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: SYSCLK - description: System clock selected - value: 4 - - name: HSI - description: HSI oscillator clock selected - value: 5 - - name: HSE - description: HSE oscillator clock selected - value: 6 - - name: PLL - description: PLL clock divided by 2 selected - value: 7 + - name: NoMCO + description: MCO output disabled, no clock on MCO + value: 0 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: HSI oscillator clock selected + value: 5 + - name: HSE + description: HSE oscillator clock selected + value: 6 + - name: PLL + description: PLL clock divided by 2 selected + value: 7 enum/PLLMUL: bit_size: 4 variants: - - name: Mul2 - description: PLL input clock x2 - value: 0 - - name: Mul3 - description: PLL input clock x3 - value: 1 - - name: Mul4 - description: PLL input clock x4 - value: 2 - - name: Mul5 - description: PLL input clock x5 - value: 3 - - name: Mul6 - description: PLL input clock x6 - value: 4 - - name: Mul7 - description: PLL input clock x7 - value: 5 - - name: Mul8 - description: PLL input clock x8 - value: 6 - - name: Mul9 - description: PLL input clock x9 - value: 7 - - name: Mul10 - description: PLL input clock x10 - value: 8 - - name: Mul11 - description: PLL input clock x11 - value: 9 - - name: Mul12 - description: PLL input clock x12 - value: 10 - - name: Mul13 - description: PLL input clock x13 - value: 11 - - name: Mul14 - description: PLL input clock x14 - value: 12 - - name: Mul15 - description: PLL input clock x15 - value: 13 - - name: Mul16 - description: PLL input clock x16 - value: 14 - - name: Mul16x - description: PLL input clock x16 - value: 15 + - name: Mul2 + description: PLL input clock x2 + value: 0 + - name: Mul3 + description: PLL input clock x3 + value: 1 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul10 + description: PLL input clock x10 + value: 8 + - name: Mul11 + description: PLL input clock x11 + value: 9 + - name: Mul12 + description: PLL input clock x12 + value: 10 + - name: Mul13 + description: PLL input clock x13 + value: 11 + - name: Mul14 + description: PLL input clock x14 + value: 12 + - name: Mul15 + description: PLL input clock x15 + value: 13 + - name: Mul16 + description: PLL input clock x16 + value: 14 + - name: Mul16x + description: PLL input clock x16 + value: 15 enum/PLLSRC: bit_size: 1 variants: - - name: HSI_Div2 - description: HSI divided by 2 selected as PLL input clock - value: 0 - - name: HSE_Div_PREDIV - description: HSE divided by PREDIV selected as PLL input clock - value: 1 + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 1 enum/PLLXTPRE: bit_size: 1 variants: - - name: Div1 - description: HSE clock not divided - value: 0 - - name: Div2 - description: HSE clock divided by 2 - value: 1 + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 enum/PPRE1: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/PREDIV1: bit_size: 4 variants: - - name: Div1 - description: PREDIV input clock not divided - value: 0 - - name: Div2 - description: PREDIV input clock divided by 2 - value: 1 - - name: Div3 - description: PREDIV input clock divided by 3 - value: 2 - - name: Div4 - description: PREDIV input clock divided by 4 - value: 3 - - name: Div5 - description: PREDIV input clock divided by 5 - value: 4 - - name: Div6 - description: PREDIV input clock divided by 6 - value: 5 - - name: Div7 - description: PREDIV input clock divided by 7 - value: 6 - - name: Div8 - description: PREDIV input clock divided by 8 - value: 7 - - name: Div9 - description: PREDIV input clock divided by 9 - value: 8 - - name: Div10 - description: PREDIV input clock divided by 10 - value: 9 - - name: Div11 - description: PREDIV input clock divided by 11 - value: 10 - - name: Div12 - description: PREDIV input clock divided by 12 - value: 11 - - name: Div13 - description: PREDIV input clock divided by 13 - value: 12 - - name: Div14 - description: PREDIV input clock divided by 14 - value: 13 - - name: Div15 - description: PREDIV input clock divided by 15 - value: 14 - - name: Div16 - description: PREDIV input clock divided by 16 - value: 15 + - name: Div1 + description: PREDIV input clock not divided + value: 0 + - name: Div2 + description: PREDIV input clock divided by 2 + value: 1 + - name: Div3 + description: PREDIV input clock divided by 3 + value: 2 + - name: Div4 + description: PREDIV input clock divided by 4 + value: 3 + - name: Div5 + description: PREDIV input clock divided by 5 + value: 4 + - name: Div6 + description: PREDIV input clock divided by 6 + value: 5 + - name: Div7 + description: PREDIV input clock divided by 7 + value: 6 + - name: Div8 + description: PREDIV input clock divided by 8 + value: 7 + - name: Div9 + description: PREDIV input clock divided by 9 + value: 8 + - name: Div10 + description: PREDIV input clock divided by 10 + value: 9 + - name: Div11 + description: PREDIV input clock divided by 11 + value: 10 + - name: Div12 + description: PREDIV input clock divided by 12 + value: 11 + - name: Div13 + description: PREDIV input clock divided by 13 + value: 12 + - name: Div14 + description: PREDIV input clock divided by 14 + value: 13 + - name: Div15 + description: PREDIV input clock divided by 15 + value: 14 + - name: Div16 + description: PREDIV input clock divided by 16 + value: 15 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 diff --git a/data/registers/rcc_f1cl.yaml b/data/registers/rcc_f1cl.yaml index e48898f..dbaf3a6 100644 --- a/data/registers/rcc_f1cl.yaml +++ b/data/registers/rcc_f1cl.yaml @@ -1,961 +1,960 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: Clock configuration register (RCC_CFGR) - byte_offset: 4 - fieldset: CFGR - - name: CIR - description: Clock interrupt register (RCC_CIR) - byte_offset: 8 - fieldset: CIR - - name: APB2RSTR - description: APB2 peripheral reset register (RCC_APB2RSTR) - byte_offset: 12 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register (RCC_APB1RSTR) - byte_offset: 16 - fieldset: APB1RSTR - - name: AHBENR - description: AHB Peripheral Clock enable register (RCC_AHBENR) - byte_offset: 20 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register (RCC_APB2ENR) - byte_offset: 24 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register (RCC_APB1ENR) - byte_offset: 28 - fieldset: APB1ENR - - name: BDCR - description: Backup domain control register (RCC_BDCR) - byte_offset: 32 - fieldset: BDCR - - name: CSR - description: Control/status register (RCC_CSR) - byte_offset: 36 - fieldset: CSR - - name: AHBRSTR - description: AHB peripheral clock reset register (RCC_AHBRSTR) - byte_offset: 40 - fieldset: AHBRSTR - - name: CFGR2 - description: Clock configuration register 2 - byte_offset: 44 - fieldset: CFGR2 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR + - name: AHBRSTR + description: AHB peripheral clock reset register (RCC_AHBRSTR) + byte_offset: 40 + fieldset: AHBRSTR + - name: CFGR2 + description: Clock configuration register 2 + byte_offset: 44 + fieldset: CFGR2 fieldset/AHBENR: description: AHB Peripheral Clock enable register (RCC_AHBENR) fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: SRAMEN - description: SRAM interface clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 4 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB OTG FS clock enable - bit_offset: 12 - bit_size: 1 - - name: ETHEN - description: Ethernet MAC clock enable - bit_offset: 14 - bit_size: 1 - - name: ETHTXEN - description: Ethernet MAC TX clock enable - bit_offset: 15 - bit_size: 1 - - name: ETHRXEN - description: Ethernet MAC RX clock enable - bit_offset: 16 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB OTG FS clock enable + bit_offset: 12 + bit_size: 1 + - name: ETHEN + description: Ethernet MAC clock enable + bit_offset: 14 + bit_size: 1 + - name: ETHTXEN + description: Ethernet MAC TX clock enable + bit_offset: 15 + bit_size: 1 + - name: ETHRXEN + description: Ethernet MAC RX clock enable + bit_offset: 16 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral clock reset register (RCC_AHBRSTR) fields: - - name: USB_OTG_FSRST - description: USB OTG FS reset - bit_offset: 12 - bit_size: 1 - - name: ETHRST - description: Ethernet MAC reset - bit_offset: 14 - bit_size: 1 + - name: USB_OTG_FSRST + description: USB OTG FS reset + bit_offset: 12 + bit_size: 1 + - name: ETHRST + description: Ethernet MAC reset + bit_offset: 14 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register (RCC_APB1ENR) fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: Timer 4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: Timer 5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI 3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART 3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART 4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART 5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: CAN1EN - description: CAN1 clock enable - bit_offset: 25 - bit_size: 1 - - name: CAN2EN - description: CAN2 clock enable - bit_offset: 26 - bit_size: 1 - - name: BKPEN - description: Backup interface clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: Timer 5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART 4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART 5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: CAN1EN + description: CAN1 clock enable + bit_offset: 25 + bit_size: 1 + - name: CAN2EN + description: CAN2 clock enable + bit_offset: 26 + bit_size: 1 + - name: BKPEN + description: Backup interface clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register (RCC_APB1RSTR) fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: Timer 4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: Timer 5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: USART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: USART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: CAN1RST - description: CAN1 reset - bit_offset: 25 - bit_size: 1 - - name: CAN2RST - description: CAN2 reset - bit_offset: 26 - bit_size: 1 - - name: BKPRST - description: Backup interface reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: Timer 5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: USART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: USART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: CAN1RST + description: CAN1 reset + bit_offset: 25 + bit_size: 1 + - name: CAN2RST + description: CAN2 reset + bit_offset: 26 + bit_size: 1 + - name: BKPRST + description: Backup interface reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register (RCC_APB2ENR) fields: - - name: AFIOEN - description: Alternate function I/O clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOEEN - description: I/O port E clock enable - bit_offset: 6 - bit_size: 1 - - name: ADC1EN - description: ADC 1 interface clock enable - bit_offset: 9 - bit_size: 1 - - name: ADC2EN - description: ADC 2 interface clock enable - bit_offset: 10 - bit_size: 1 - - name: TIM1EN - description: TIM1 Timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 + - name: AFIOEN + description: Alternate function I/O clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 6 + bit_size: 1 + - name: ADC1EN + description: ADC 1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: ADC2EN + description: ADC 2 interface clock enable + bit_offset: 10 + bit_size: 1 + - name: TIM1EN + description: TIM1 Timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register (RCC_APB2RSTR) fields: - - name: AFIORST - description: Alternate function I/O reset - bit_offset: 0 - bit_size: 1 - - name: GPIOARST - description: IO port A reset - bit_offset: 2 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 3 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 4 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 5 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 6 - bit_size: 1 - - name: ADC1RST - description: ADC 1 interface reset - bit_offset: 9 - bit_size: 1 - - name: ADC2RST - description: ADC 2 interface reset - bit_offset: 10 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 + - name: AFIORST + description: Alternate function I/O reset + bit_offset: 0 + bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 2 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 3 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 4 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 5 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 6 + bit_size: 1 + - name: ADC1RST + description: ADC 1 interface reset + bit_offset: 9 + bit_size: 1 + - name: ADC2RST + description: ADC 2 interface reset + bit_offset: 10 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 fieldset/BDCR: description: Backup domain control register (RCC_BDCR) fields: - - name: LSEON - description: External Low Speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External Low Speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External Low Speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: Clock configuration register (RCC_CFGR) fields: - - name: SW - description: System clock Switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System Clock Switch Status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE1 - - name: PPRE2 - description: APB High speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE1 - - name: ADCPRE - description: ADC prescaler - bit_offset: 14 - bit_size: 2 - enum: ADCPRE - - name: PLLSRC - description: PLL entry clock source - bit_offset: 16 - bit_size: 1 - enum: PLLSRC - - name: PLLXTPRE - description: HSE divider for PLL entry - bit_offset: 17 - bit_size: 1 - enum: PLLXTPRE - - name: PLLMUL - description: PLL Multiplication Factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: USBPRE - description: USB prescaler - bit_offset: 22 - bit_size: 1 - enum: USBPRE - - name: MCO - description: Microcontroller clock output - bit_offset: 24 - bit_size: 4 - enum: MCO + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE1 + - name: PPRE2 + description: APB High speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE1 + - name: ADCPRE + description: ADC prescaler + bit_offset: 14 + bit_size: 2 + enum: ADCPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 16 + bit_size: 1 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: USBPRE + description: USB prescaler + bit_offset: 22 + bit_size: 1 + enum: USBPRE + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 4 + enum: MCO fieldset/CFGR2: description: Clock configuration register2 (RCC_CFGR2) fields: - - name: PREDIV1 - description: PREDIV1 division factor - bit_offset: 0 - bit_size: 4 - enum: PREDIV1 - - name: PREDIV2 - description: PREDIV2 division factor - bit_offset: 4 - bit_size: 4 - enum: PREDIV1 - - name: PLL2MUL - description: PLL2 Multiplication Factor - bit_offset: 8 - bit_size: 4 - enum: PLL2MUL - - name: PLL3MUL - description: PLL3 Multiplication Factor - bit_offset: 12 - bit_size: 4 - enum: PLL2MUL - - name: PREDIV1SRC - description: PREDIV1 entry clock source - bit_offset: 16 - bit_size: 1 - enum: PREDIV1SRC - - name: I2S2SRC - description: I2S2 clock source - bit_offset: 17 - bit_size: 1 - enum: I2S2SRC - - name: I2S3SRC - description: I2S3 clock source - bit_offset: 18 - bit_size: 1 - enum: I2S2SRC + - name: PREDIV1 + description: PREDIV1 division factor + bit_offset: 0 + bit_size: 4 + enum: PREDIV1 + - name: PREDIV2 + description: PREDIV2 division factor + bit_offset: 4 + bit_size: 4 + enum: PREDIV1 + - name: PLL2MUL + description: PLL2 Multiplication Factor + bit_offset: 8 + bit_size: 4 + enum: PLL2MUL + - name: PLL3MUL + description: PLL3 Multiplication Factor + bit_offset: 12 + bit_size: 4 + enum: PLL2MUL + - name: PREDIV1SRC + description: PREDIV1 entry clock source + bit_offset: 16 + bit_size: 1 + enum: PREDIV1SRC + - name: I2S2SRC + description: I2S2 clock source + bit_offset: 17 + bit_size: 1 + enum: I2S2SRC + - name: I2S3SRC + description: I2S3 clock source + bit_offset: 18 + bit_size: 1 + enum: I2S2SRC fieldset/CIR: description: Clock interrupt register (RCC_CIR) fields: - - name: LSIRDYF - description: LSI Ready Interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE Ready Interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI Ready Interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE Ready Interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL Ready Interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLL2RDYF - description: PLL2 Ready Interrupt flag - bit_offset: 5 - bit_size: 1 - - name: PLL3RDYF - description: PLL3 Ready Interrupt flag - bit_offset: 6 - bit_size: 1 - - name: CSSF - description: Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI Ready Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE Ready Interrupt Enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI Ready Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE Ready Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL Ready Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: PLL2RDYIE - description: PLL2 Ready Interrupt Enable - bit_offset: 13 - bit_size: 1 - - name: PLL3RDYIE - description: PLL3 Ready Interrupt Enable - bit_offset: 14 - bit_size: 1 - - name: LSIRDYC - description: LSI Ready Interrupt Clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE Ready Interrupt Clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI Ready Interrupt Clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE Ready Interrupt Clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL Ready Interrupt Clear - bit_offset: 20 - bit_size: 1 - - name: PLL2RDYC - description: PLL2 Ready Interrupt Clear - bit_offset: 21 - bit_size: 1 - - name: PLL3RDYC - description: PLL3 Ready Interrupt Clear - bit_offset: 22 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLL2RDYF + description: PLL2 Ready Interrupt flag + bit_offset: 5 + bit_size: 1 + - name: PLL3RDYF + description: PLL3 Ready Interrupt flag + bit_offset: 6 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: PLL2RDYIE + description: PLL2 Ready Interrupt Enable + bit_offset: 13 + bit_size: 1 + - name: PLL3RDYIE + description: PLL3 Ready Interrupt Enable + bit_offset: 14 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: PLL2RDYC + description: PLL2 Ready Interrupt Clear + bit_offset: 21 + bit_size: 1 + - name: PLL3RDYC + description: PLL3 Ready Interrupt Clear + bit_offset: 22 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal High Speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal High Speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal High Speed clock Calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: External High Speed clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: External High Speed clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: External High Speed clock Bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLL2ON - description: PLL2 enable - bit_offset: 26 - bit_size: 1 - - name: PLL2RDY - description: PLL2 clock ready flag - bit_offset: 27 - bit_size: 1 - - name: PLL3ON - description: PLL3 enable - bit_offset: 28 - bit_size: 1 - - name: PLL3RDY - description: PLL3 clock ready flag - bit_offset: 29 - bit_size: 1 + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLL2ON + description: PLL2 enable + bit_offset: 26 + bit_size: 1 + - name: PLL2RDY + description: PLL2 clock ready flag + bit_offset: 27 + bit_size: 1 + - name: PLL3ON + description: PLL3 enable + bit_offset: 28 + bit_size: 1 + - name: PLL3RDY + description: PLL3 clock ready flag + bit_offset: 29 + bit_size: 1 fieldset/CSR: description: Control/status register (RCC_CSR) fields: - - name: LSION - description: Internal low speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 enum/ADCPRE: bit_size: 2 variants: - - name: Div2 - description: PCLK2 divided by 2 - value: 0 - - name: Div4 - description: PCLK2 divided by 4 - value: 1 - - name: Div6 - description: PCLK2 divided by 6 - value: 2 - - name: Div8 - description: PCLK2 divided by 8 - value: 3 + - name: Div2 + description: PCLK2 divided by 2 + value: 0 + - name: Div4 + description: PCLK2 divided by 4 + value: 1 + - name: Div6 + description: PCLK2 divided by 6 + value: 2 + - name: Div8 + description: PCLK2 divided by 8 + value: 3 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/I2S2SRC: bit_size: 1 variants: - - name: SYSCLK - description: System clock (SYSCLK) selected as I2S clock entry - value: 0 - - name: PLL3 - description: PLL3 VCO clock selected as I2S clock entry - value: 1 + - name: SYSCLK + description: System clock (SYSCLK) selected as I2S clock entry + value: 0 + - name: PLL3 + description: PLL3 VCO clock selected as I2S clock entry + value: 1 enum/MCO: bit_size: 4 variants: - - name: NoMCO - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: SYSCLK - description: System clock selected - value: 4 - - name: HSI - description: HSI oscillator clock selected - value: 5 - - name: HSE - description: HSE oscillator clock selected - value: 6 - - name: PLL - description: PLL clock divided by 2 selected - value: 7 - - name: PLL2 - description: PLL2 clock selected - value: 8 - - name: PLL3DIV2 - description: PLL3 clock divided by 2 selected - value: 9 - - name: XT1 - description: XT1 external oscillator selected - value: 10 - - name: PLL3 - description: PLL3 clock selected - value: 11 + - name: NoMCO + description: MCO output disabled, no clock on MCO + value: 0 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: HSI oscillator clock selected + value: 5 + - name: HSE + description: HSE oscillator clock selected + value: 6 + - name: PLL + description: PLL clock divided by 2 selected + value: 7 + - name: PLL2 + description: PLL2 clock selected + value: 8 + - name: PLL3DIV2 + description: PLL3 clock divided by 2 selected + value: 9 + - name: XT1 + description: XT1 external oscillator selected + value: 10 + - name: PLL3 + description: PLL3 clock selected + value: 11 enum/PLL2MUL: bit_size: 4 variants: - - name: Mul8 - description: PLL clock entry x8 - value: 6 - - name: Mul9 - description: PLL clock entry x9 - value: 7 - - name: Mul10 - description: PLL clock entry x10 - value: 8 - - name: Mul11 - description: PLL clock entry x11 - value: 9 - - name: Mul12 - description: PLL clock entry x12 - value: 10 - - name: Mul13 - description: PLL clock entry x13 - value: 11 - - name: Mul14 - description: PLL clock entry x14 - value: 12 - - name: Mul16 - description: PLL clock entry x16 - value: 14 - - name: Mul20 - description: PLL clock entry x20 - value: 15 + - name: Mul8 + description: PLL clock entry x8 + value: 6 + - name: Mul9 + description: PLL clock entry x9 + value: 7 + - name: Mul10 + description: PLL clock entry x10 + value: 8 + - name: Mul11 + description: PLL clock entry x11 + value: 9 + - name: Mul12 + description: PLL clock entry x12 + value: 10 + - name: Mul13 + description: PLL clock entry x13 + value: 11 + - name: Mul14 + description: PLL clock entry x14 + value: 12 + - name: Mul16 + description: PLL clock entry x16 + value: 14 + - name: Mul20 + description: PLL clock entry x20 + value: 15 enum/PLLMUL: bit_size: 4 variants: - - name: Mul4 - description: PLL input clock x4 - value: 2 - - name: Mul5 - description: PLL input clock x5 - value: 3 - - name: Mul6 - description: PLL input clock x6 - value: 4 - - name: Mul7 - description: PLL input clock x7 - value: 5 - - name: Mul8 - description: PLL input clock x8 - value: 6 - - name: Mul9 - description: PLL input clock x9 - value: 7 - - name: Mul6_5 - description: PLL input clock x6.5 - value: 13 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul6_5 + description: PLL input clock x6.5 + value: 13 enum/PLLSRC: bit_size: 1 variants: - - name: HSI_Div2 - description: HSI divided by 2 selected as PLL input clock - value: 0 - - name: HSE_Div_PREDIV - description: HSE divided by PREDIV selected as PLL input clock - value: 1 + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 1 enum/PLLXTPRE: bit_size: 1 variants: - - name: Div1 - description: HSE clock not divided - value: 0 - - name: Div2 - description: HSE clock divided by 2 - value: 1 + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 enum/PPRE1: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/PREDIV1: bit_size: 4 variants: - - name: Div1 - description: PREDIV input clock not divided - value: 0 - - name: Div2 - description: PREDIV input clock divided by 2 - value: 1 - - name: Div3 - description: PREDIV input clock divided by 3 - value: 2 - - name: Div4 - description: PREDIV input clock divided by 4 - value: 3 - - name: Div5 - description: PREDIV input clock divided by 5 - value: 4 - - name: Div6 - description: PREDIV input clock divided by 6 - value: 5 - - name: Div7 - description: PREDIV input clock divided by 7 - value: 6 - - name: Div8 - description: PREDIV input clock divided by 8 - value: 7 - - name: Div9 - description: PREDIV input clock divided by 9 - value: 8 - - name: Div10 - description: PREDIV input clock divided by 10 - value: 9 - - name: Div11 - description: PREDIV input clock divided by 11 - value: 10 - - name: Div12 - description: PREDIV input clock divided by 12 - value: 11 - - name: Div13 - description: PREDIV input clock divided by 13 - value: 12 - - name: Div14 - description: PREDIV input clock divided by 14 - value: 13 - - name: Div15 - description: PREDIV input clock divided by 15 - value: 14 - - name: Div16 - description: PREDIV input clock divided by 16 - value: 15 + - name: Div1 + description: PREDIV input clock not divided + value: 0 + - name: Div2 + description: PREDIV input clock divided by 2 + value: 1 + - name: Div3 + description: PREDIV input clock divided by 3 + value: 2 + - name: Div4 + description: PREDIV input clock divided by 4 + value: 3 + - name: Div5 + description: PREDIV input clock divided by 5 + value: 4 + - name: Div6 + description: PREDIV input clock divided by 6 + value: 5 + - name: Div7 + description: PREDIV input clock divided by 7 + value: 6 + - name: Div8 + description: PREDIV input clock divided by 8 + value: 7 + - name: Div9 + description: PREDIV input clock divided by 9 + value: 8 + - name: Div10 + description: PREDIV input clock divided by 10 + value: 9 + - name: Div11 + description: PREDIV input clock divided by 11 + value: 10 + - name: Div12 + description: PREDIV input clock divided by 12 + value: 11 + - name: Div13 + description: PREDIV input clock divided by 13 + value: 12 + - name: Div14 + description: PREDIV input clock divided by 14 + value: 13 + - name: Div15 + description: PREDIV input clock divided by 15 + value: 14 + - name: Div16 + description: PREDIV input clock divided by 16 + value: 15 enum/PREDIV1SRC: bit_size: 1 variants: - - name: HSE - description: HSE oscillator clock selected as PREDIV1 clock entry - value: 0 - - name: PLL2 - description: PLL2 selected as PREDIV1 clock entry - value: 1 + - name: HSE + description: HSE oscillator clock selected as PREDIV1 clock entry + value: 0 + - name: PLL2 + description: PLL2 selected as PREDIV1 clock entry + value: 1 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 - description: PLL clock is divided by 1.5 - value: 0 - - name: DIV1 - description: PLL clock is not divided - value: 1 + - name: DIV1_5 + description: PLL clock is divided by 1.5 + value: 0 + - name: DIV1 + description: PLL clock is not divided + value: 1 diff --git a/data/registers/rcc_f2.yaml b/data/registers/rcc_f2.yaml index 2f35de9..c6ab4d6 100644 --- a/data/registers/rcc_f2.yaml +++ b/data/registers/rcc_f2.yaml @@ -1,1352 +1,1351 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: clock control register - byte_offset: 0 - fieldset: CR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 4 - fieldset: PLLCFGR - - name: CFGR - description: clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: CIR - description: clock interrupt register - byte_offset: 12 - fieldset: CIR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 16 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 20 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 24 - fieldset: AHB3RSTR - - name: APB1RSTR - description: APB1 peripheral reset register - byte_offset: 32 - fieldset: APB1RSTR - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 36 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock register - byte_offset: 48 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 52 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 56 - fieldset: AHB3ENR - - name: APB1ENR - description: APB1 peripheral clock enable register - byte_offset: 64 - fieldset: APB1ENR - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 68 - fieldset: APB2ENR - - name: AHB1LPENR - description: AHB1 peripheral clock enable in low power mode register - byte_offset: 80 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: AHB2 peripheral clock enable in low power mode register - byte_offset: 84 - fieldset: AHB2LPENR - - name: AHB3LPENR - description: AHB3 peripheral clock enable in low power mode register - byte_offset: 88 - fieldset: AHB3LPENR - - name: APB1LPENR - description: APB1 peripheral clock enable in low power mode register - byte_offset: 96 - fieldset: APB1LPENR - - name: APB2LPENR - description: APB2 peripheral clock enabled in low power mode register - byte_offset: 100 - fieldset: APB2LPENR - - name: BDCR - description: Backup domain control register - byte_offset: 112 - fieldset: BDCR - - name: CSR - description: clock control & status register - byte_offset: 116 - fieldset: CSR - - name: SSCGR - description: spread spectrum clock generation register - byte_offset: 128 - fieldset: SSCGR - - name: PLLI2SCFGR - description: PLLI2S configuration register - byte_offset: 132 - fieldset: PLLI2SCFGR + - name: CR + description: clock control register + byte_offset: 0 + fieldset: CR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 4 + fieldset: PLLCFGR + - name: CFGR + description: clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: CIR + description: clock interrupt register + byte_offset: 12 + fieldset: CIR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 16 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 20 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 24 + fieldset: AHB3RSTR + - name: APB1RSTR + description: APB1 peripheral reset register + byte_offset: 32 + fieldset: APB1RSTR + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 36 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock register + byte_offset: 48 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 52 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 56 + fieldset: AHB3ENR + - name: APB1ENR + description: APB1 peripheral clock enable register + byte_offset: 64 + fieldset: APB1ENR + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 68 + fieldset: APB2ENR + - name: AHB1LPENR + description: AHB1 peripheral clock enable in low power mode register + byte_offset: 80 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: AHB2 peripheral clock enable in low power mode register + byte_offset: 84 + fieldset: AHB2LPENR + - name: AHB3LPENR + description: AHB3 peripheral clock enable in low power mode register + byte_offset: 88 + fieldset: AHB3LPENR + - name: APB1LPENR + description: APB1 peripheral clock enable in low power mode register + byte_offset: 96 + fieldset: APB1LPENR + - name: APB2LPENR + description: APB2 peripheral clock enabled in low power mode register + byte_offset: 100 + fieldset: APB2LPENR + - name: BDCR + description: Backup domain control register + byte_offset: 112 + fieldset: BDCR + - name: CSR + description: clock control & status register + byte_offset: 116 + fieldset: CSR + - name: SSCGR + description: spread spectrum clock generation register + byte_offset: 128 + fieldset: SSCGR + - name: PLLI2SCFGR + description: PLLI2S configuration register + byte_offset: 132 + fieldset: PLLI2SCFGR fieldset/AHB1ENR: description: AHB1 peripheral clock register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: IO port I clock enable - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: BKPSRAMEN - description: Backup SRAM interface clock enable - bit_offset: 18 - bit_size: 1 - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 21 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 22 - bit_size: 1 - - name: ETHEN - description: Ethernet MAC clock enable - bit_offset: 25 - bit_size: 1 - - name: ETHTXEN - description: Ethernet Transmission clock enable - bit_offset: 26 - bit_size: 1 - - name: ETHRXEN - description: Ethernet Reception clock enable - bit_offset: 27 - bit_size: 1 - - name: ETHPTPEN - description: Ethernet PTP clock enable - bit_offset: 28 - bit_size: 1 - - name: USB_OTG_HSEN - description: USB OTG HS clock enable - bit_offset: 29 - bit_size: 1 - - name: USB_OTG_HSULPIEN - description: USB OTG HSULPI clock enable - bit_offset: 30 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: IO port I clock enable + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: BKPSRAMEN + description: Backup SRAM interface clock enable + bit_offset: 18 + bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 21 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 22 + bit_size: 1 + - name: ETHEN + description: Ethernet MAC clock enable + bit_offset: 25 + bit_size: 1 + - name: ETHTXEN + description: Ethernet Transmission clock enable + bit_offset: 26 + bit_size: 1 + - name: ETHRXEN + description: Ethernet Reception clock enable + bit_offset: 27 + bit_size: 1 + - name: ETHPTPEN + description: Ethernet PTP clock enable + bit_offset: 28 + bit_size: 1 + - name: USB_OTG_HSEN + description: USB OTG HS clock enable + bit_offset: 29 + bit_size: 1 + - name: USB_OTG_HSULPIEN + description: USB OTG HSULPI clock enable + bit_offset: 30 + bit_size: 1 fieldset/AHB1LPENR: description: AHB1 peripheral clock enable in low power mode register fields: - - name: GPIOALPEN - description: IO port A clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: IO port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: IO port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: IO port D clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: IO port E clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: IO port F clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: IO port G clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: IO port H clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: IO port I clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: CRCLPEN - description: CRC clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: FLASHLPEN - description: Flash interface clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM 1interface clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: SRAM2LPEN - description: SRAM 2 interface clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: BKPSRAMLPEN - description: Backup SRAM interface clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: DMA1LPEN - description: DMA1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: ETHLPEN - description: Ethernet MAC clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: ETHTXLPEN - description: Ethernet transmission clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: ETHRXLPEN - description: Ethernet reception clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: ETHPTPLPEN - description: Ethernet PTP clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: USB_OTG_HSLPEN - description: USB OTG HS clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: USB_OTG_HSULPILPEN - description: USB OTG HS ULPI clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 + - name: GPIOALPEN + description: IO port A clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: IO port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: IO port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: IO port D clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: IO port E clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: IO port F clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: IO port G clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: IO port H clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: IO port I clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: CRCLPEN + description: CRC clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: FLASHLPEN + description: Flash interface clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM 1interface clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: SRAM2LPEN + description: SRAM 2 interface clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: BKPSRAMLPEN + description: Backup SRAM interface clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: DMA1LPEN + description: DMA1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: ETHLPEN + description: Ethernet MAC clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: ETHTXLPEN + description: Ethernet transmission clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: ETHRXLPEN + description: Ethernet reception clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: ETHPTPLPEN + description: Ethernet PTP clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: USB_OTG_HSLPEN + description: USB OTG HS clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: USB_OTG_HSULPILPEN + description: USB OTG HS ULPI clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: IO port I reset - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: DMA1RST - description: DMA2 reset - bit_offset: 21 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 22 - bit_size: 1 - - name: ETHRST - description: Ethernet MAC reset - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HSRST - description: USB OTG HS module reset - bit_offset: 29 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: IO port I reset + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: DMA1RST + description: DMA2 reset + bit_offset: 21 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 22 + bit_size: 1 + - name: ETHRST + description: Ethernet MAC reset + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HSRST + description: USB OTG HS module reset + bit_offset: 29 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: DCMIEN - description: Camera interface enable - bit_offset: 0 - bit_size: 1 - - name: CRYPEN - description: Cryptographic modules clock enable - bit_offset: 4 - bit_size: 1 - - name: HASHEN - description: Hash modules clock enable - bit_offset: 5 - bit_size: 1 - - name: RNGEN - description: Random number generator clock enable - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB OTG FS clock enable - bit_offset: 7 - bit_size: 1 + - name: DCMIEN + description: Camera interface enable + bit_offset: 0 + bit_size: 1 + - name: CRYPEN + description: Cryptographic modules clock enable + bit_offset: 4 + bit_size: 1 + - name: HASHEN + description: Hash modules clock enable + bit_offset: 5 + bit_size: 1 + - name: RNGEN + description: Random number generator clock enable + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB OTG FS clock enable + bit_offset: 7 + bit_size: 1 fieldset/AHB2LPENR: description: AHB2 peripheral clock enable in low power mode register fields: - - name: DCMILPEN - description: Camera interface enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: CRYPLPEN - description: Cryptography modules clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: HASHLPEN - description: Hash modules clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: RNGLPEN - description: Random number generator clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSLPEN - description: USB OTG FS clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 + - name: DCMILPEN + description: Camera interface enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: CRYPLPEN + description: Cryptography modules clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: HASHLPEN + description: Hash modules clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: RNGLPEN + description: Random number generator clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSLPEN + description: USB OTG FS clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: DCMIRST - description: Camera interface reset - bit_offset: 0 - bit_size: 1 - - name: CRYPRST - description: Cryptographic module reset - bit_offset: 4 - bit_size: 1 - - name: HSAHRST - description: Hash module reset - bit_offset: 5 - bit_size: 1 - - name: RNGRST - description: Random number generator module reset - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSRST - description: USB OTG FS module reset - bit_offset: 7 - bit_size: 1 + - name: DCMIRST + description: Camera interface reset + bit_offset: 0 + bit_size: 1 + - name: CRYPRST + description: Cryptographic module reset + bit_offset: 4 + bit_size: 1 + - name: HSAHRST + description: Hash module reset + bit_offset: 5 + bit_size: 1 + - name: RNGRST + description: Random number generator module reset + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSRST + description: USB OTG FS module reset + bit_offset: 7 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: FSMCEN - description: Flexible static memory controller module clock enable - bit_offset: 0 - bit_size: 1 + - name: FSMCEN + description: Flexible static memory controller module clock enable + bit_offset: 0 + bit_size: 1 fieldset/AHB3LPENR: description: AHB3 peripheral clock enable in low power mode register fields: - - name: FSMCLPEN - description: Flexible static memory controller module clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 + - name: FSMCLPEN + description: Flexible static memory controller module clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: FSMCRST - description: Flexible static memory controller module reset - bit_offset: 0 - bit_size: 1 + - name: FSMCRST + description: Flexible static memory controller module reset + bit_offset: 0 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register fields: - - name: TIM2EN - description: TIM2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: TIM12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: TIM13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: TIM14 clock enable - bit_offset: 8 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: CAN1EN - description: CAN 1 clock enable - bit_offset: 25 - bit_size: 1 - - name: CAN2EN - description: CAN 2 clock enable - bit_offset: 26 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM2EN + description: TIM2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: TIM12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: TIM13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: TIM14 clock enable + bit_offset: 8 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: CAN1EN + description: CAN 1 clock enable + bit_offset: 25 + bit_size: 1 + - name: CAN2EN + description: CAN 2 clock enable + bit_offset: 26 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB1LPENR: description: APB1 peripheral clock enable in low power mode register fields: - - name: TIM2LPEN - description: TIM2 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: TIM3 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: TIM4 clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: TIM5 clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: TIM7 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: TIM12 clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: TIM13 clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: TIM14 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: WWDGLPEN - description: Window watchdog clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: SPI3 clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: USART2LPEN - description: USART2 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART3 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: UART4 clock enable during Sleep mode - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: UART5 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: I2C3LPEN - description: I2C3 clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: CAN1LPEN - description: CAN 1 clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: CAN2LPEN - description: CAN 2 clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: PWRLPEN - description: Power interface clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: DACLPEN - description: DAC interface clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 + - name: TIM2LPEN + description: TIM2 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: TIM3 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: TIM4 clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: TIM5 clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: TIM7 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: TIM12 clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: TIM13 clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: TIM14 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: WWDGLPEN + description: Window watchdog clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: SPI3 clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: USART2LPEN + description: USART2 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART3 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: UART4 clock enable during Sleep mode + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: UART5 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: I2C3LPEN + description: I2C3 clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: CAN1LPEN + description: CAN 1 clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: CAN2LPEN + description: CAN 2 clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: PWRLPEN + description: Power interface clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: DACLPEN + description: DAC interface clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register fields: - - name: TIM2RST - description: TIM2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: TIM12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: TIM13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: TIM14 reset - bit_offset: 8 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI 2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI 3 reset - bit_offset: 15 - bit_size: 1 - - name: UART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: UART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: USART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: USART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C 1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C 2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: CAN1RST - description: CAN1 reset - bit_offset: 25 - bit_size: 1 - - name: CAN2RST - description: CAN2 reset - bit_offset: 26 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC reset - bit_offset: 29 - bit_size: 1 + - name: TIM2RST + description: TIM2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: TIM12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: TIM13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: TIM14 reset + bit_offset: 8 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI 2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI 3 reset + bit_offset: 15 + bit_size: 1 + - name: UART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: UART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: USART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: USART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C 1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C 2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: CAN1RST + description: CAN1 reset + bit_offset: 25 + bit_size: 1 + - name: CAN2RST + description: CAN2 reset + bit_offset: 26 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC reset + bit_offset: 29 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: TIM1EN - description: TIM1 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM8EN - description: TIM8 clock enable - bit_offset: 1 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 clock enable - bit_offset: 5 - bit_size: 1 - - name: ADC1EN - description: ADC1 clock enable - bit_offset: 8 - bit_size: 1 - - name: ADC2EN - description: ADC2 clock enable - bit_offset: 9 - bit_size: 1 - - name: ADC3EN - description: ADC3 clock enable - bit_offset: 10 - bit_size: 1 - - name: SDIOEN - description: SDIO clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: SYSCFGEN - description: System configuration controller clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM9EN - description: TIM9 clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM10EN - description: TIM10 clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM11EN - description: TIM11 clock enable - bit_offset: 18 - bit_size: 1 + - name: TIM1EN + description: TIM1 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM8EN + description: TIM8 clock enable + bit_offset: 1 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 clock enable + bit_offset: 5 + bit_size: 1 + - name: ADC1EN + description: ADC1 clock enable + bit_offset: 8 + bit_size: 1 + - name: ADC2EN + description: ADC2 clock enable + bit_offset: 9 + bit_size: 1 + - name: ADC3EN + description: ADC3 clock enable + bit_offset: 10 + bit_size: 1 + - name: SDIOEN + description: SDIO clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: SYSCFGEN + description: System configuration controller clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM9EN + description: TIM9 clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM10EN + description: TIM10 clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM11EN + description: TIM11 clock enable + bit_offset: 18 + bit_size: 1 fieldset/APB2LPENR: description: APB2 peripheral clock enabled in low power mode register fields: - - name: TIM1LPEN - description: TIM1 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM8LPEN - description: TIM8 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: USART1LPEN - description: USART1 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: ADC1LPEN - description: ADC1 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: ADC2LPEN - description: ADC2 clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: ADC3LPEN - description: ADC 3 clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: SDIOLPEN - description: SDIO clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: SPI 1 clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: SYSCFGLPEN - description: System configuration controller clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: TIM9LPEN - description: TIM9 clock enable during sleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM10LPEN - description: TIM10 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM11LPEN - description: TIM11 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM8LPEN + description: TIM8 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: USART1LPEN + description: USART1 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: ADC1LPEN + description: ADC1 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: ADC2LPEN + description: ADC2 clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: ADC3LPEN + description: ADC 3 clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: SDIOLPEN + description: SDIO clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: SPI 1 clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: SYSCFGLPEN + description: System configuration controller clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: TIM9LPEN + description: TIM9 clock enable during sleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM10LPEN + description: TIM10 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM11LPEN + description: TIM11 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: TIM1RST - description: TIM1 reset - bit_offset: 0 - bit_size: 1 - - name: TIM8RST - description: TIM8 reset - bit_offset: 1 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 4 - bit_size: 1 - - name: USART6RST - description: USART6 reset - bit_offset: 5 - bit_size: 1 - - name: ADCRST - description: ADC interface reset (common to all ADCs) - bit_offset: 8 - bit_size: 1 - - name: SDIORST - description: SDIO reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: SYSCFGRST - description: System configuration controller reset - bit_offset: 14 - bit_size: 1 - - name: TIM9RST - description: TIM9 reset - bit_offset: 16 - bit_size: 1 - - name: TIM10RST - description: TIM10 reset - bit_offset: 17 - bit_size: 1 - - name: TIM11RST - description: TIM11 reset - bit_offset: 18 - bit_size: 1 + - name: TIM1RST + description: TIM1 reset + bit_offset: 0 + bit_size: 1 + - name: TIM8RST + description: TIM8 reset + bit_offset: 1 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 4 + bit_size: 1 + - name: USART6RST + description: USART6 reset + bit_offset: 5 + bit_size: 1 + - name: ADCRST + description: ADC interface reset (common to all ADCs) + bit_offset: 8 + bit_size: 1 + - name: SDIORST + description: SDIO reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: SYSCFGRST + description: System configuration controller reset + bit_offset: 14 + bit_size: 1 + - name: TIM9RST + description: TIM9 reset + bit_offset: 16 + bit_size: 1 + - name: TIM10RST + description: TIM10 reset + bit_offset: 17 + bit_size: 1 + - name: TIM11RST + description: TIM11 reset + bit_offset: 18 + bit_size: 1 fieldset/BDCR: description: Backup domain control register fields: - - name: LSEON - description: External low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External low-speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External low-speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 10 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 13 - bit_size: 3 - enum: PPRE - - name: RTCPRE - description: HSE division factor for RTC clock - bit_offset: 16 - bit_size: 5 - - name: MCO1 - description: Microcontroller clock output 1 - bit_offset: 21 - bit_size: 2 - enum: MCO1 - - name: I2SSRC - description: I2S clock selection - bit_offset: 23 - bit_size: 1 - enum: ISSRC - - name: MCO1PRE - description: MCO1 prescaler - bit_offset: 24 - bit_size: 3 - enum: MCOPRE - - name: MCO2PRE - description: MCO2 prescaler - bit_offset: 27 - bit_size: 3 - enum: MCOPRE - - name: MCO2 - description: Microcontroller clock output 2 - bit_offset: 30 - bit_size: 2 - enum: MCO2 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 10 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 13 + bit_size: 3 + enum: PPRE + - name: RTCPRE + description: HSE division factor for RTC clock + bit_offset: 16 + bit_size: 5 + - name: MCO1 + description: Microcontroller clock output 1 + bit_offset: 21 + bit_size: 2 + enum: MCO1 + - name: I2SSRC + description: I2S clock selection + bit_offset: 23 + bit_size: 1 + enum: ISSRC + - name: MCO1PRE + description: MCO1 prescaler + bit_offset: 24 + bit_size: 3 + enum: MCOPRE + - name: MCO2PRE + description: MCO2 prescaler + bit_offset: 27 + bit_size: 3 + enum: MCOPRE + - name: MCO2 + description: Microcontroller clock output 2 + bit_offset: 30 + bit_size: 2 + enum: MCO2 fieldset/CIR: description: clock interrupt register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: Main PLL (PLL) ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLI2SRDYF - description: PLLI2S ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: Main PLL (PLL) ready interrupt enable - bit_offset: 12 - bit_size: 1 - - name: PLLI2SRDYIE - description: PLLI2S ready interrupt enable - bit_offset: 13 - bit_size: 1 - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: Main PLL(PLL) ready interrupt clear - bit_offset: 20 - bit_size: 1 - - name: PLLI2SRDYC - description: PLLI2S ready interrupt clear - bit_offset: 21 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: Main PLL (PLL) ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLI2SRDYF + description: PLLI2S ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: Main PLL (PLL) ready interrupt enable + bit_offset: 12 + bit_size: 1 + - name: PLLI2SRDYIE + description: PLLI2S ready interrupt enable + bit_offset: 13 + bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: Main PLL(PLL) ready interrupt clear + bit_offset: 20 + bit_size: 1 + - name: PLLI2SRDYC + description: PLLI2S ready interrupt clear + bit_offset: 21 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal high-speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal high-speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal high-speed clock calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL (PLL) enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL (PLL) clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLLI2SON - description: PLLI2S enable - bit_offset: 26 - bit_size: 1 - - name: PLLI2SRDY - description: PLLI2S clock ready flag - bit_offset: 27 - bit_size: 1 + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal high-speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal high-speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal high-speed clock calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL (PLL) enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL (PLL) clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLLI2SON + description: PLLI2S enable + bit_offset: 26 + bit_size: 1 + - name: PLLI2SRDY + description: PLLI2S clock ready flag + bit_offset: 27 + bit_size: 1 fieldset/CSR: description: clock control & status register fields: - - name: LSION - description: Internal low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 25 - bit_size: 1 - - name: PADRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: WDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 25 + bit_size: 1 + - name: PADRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: WDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLM - description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock - bit_offset: 0 - bit_size: 6 - - name: PLLN - description: Main PLL (PLL) multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLP - description: Main PLL (PLL) division factor for main system clock - bit_offset: 16 - bit_size: 2 - enum: PLLP - - name: PLLSRC - description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source - bit_offset: 22 - bit_size: 1 - enum: PLLSRC - - name: PLLQ - description: "Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks" - bit_offset: 24 - bit_size: 4 + - name: PLLM + description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock + bit_offset: 0 + bit_size: 6 + - name: PLLN + description: Main PLL (PLL) multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLP + description: Main PLL (PLL) division factor for main system clock + bit_offset: 16 + bit_size: 2 + enum: PLLP + - name: PLLSRC + description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source + bit_offset: 22 + bit_size: 1 + enum: PLLSRC + - name: PLLQ + description: Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks + bit_offset: 24 + bit_size: 4 fieldset/PLLI2SCFGR: description: PLLI2S configuration register fields: - - name: PLLI2SN - description: PLLI2S multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLI2SR - description: PLLI2S division factor for I2S clocks - bit_offset: 28 - bit_size: 3 + - name: PLLI2SN + description: PLLI2S multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLI2SR + description: PLLI2S division factor for I2S clocks + bit_offset: 28 + bit_size: 3 fieldset/SSCGR: description: spread spectrum clock generation register fields: - - name: MODPER - description: Modulation period - bit_offset: 0 - bit_size: 13 - - name: INCSTEP - description: Incrementation step - bit_offset: 13 - bit_size: 15 - - name: SPREADSEL - description: Spread Select - bit_offset: 30 - bit_size: 1 - enum: SPREADSEL - - name: SSCGEN - description: Spread spectrum modulation enable - bit_offset: 31 - bit_size: 1 + - name: MODPER + description: Modulation period + bit_offset: 0 + bit_size: 13 + - name: INCSTEP + description: Incrementation step + bit_offset: 13 + bit_size: 15 + - name: SPREADSEL + description: Spread Select + bit_offset: 30 + bit_size: 1 + enum: SPREADSEL + - name: SSCGEN + description: Spread spectrum modulation enable + bit_offset: 31 + bit_size: 1 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/ISSRC: bit_size: 1 variants: - - name: PLLI2S - description: PLLI2S clock used as I2S clock source - value: 0 - - name: CKIN - description: External clock mapped on the I2S_CKIN pin used as I2S clock source - value: 1 + - name: PLLI2S + description: PLLI2S clock used as I2S clock source + value: 0 + - name: CKIN + description: External clock mapped on the I2S_CKIN pin used as I2S clock source + value: 1 enum/MCO1: bit_size: 2 variants: - - name: HSI - description: HSI clock selected - value: 0 - - name: LSE - description: LSE oscillator selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: HSI + description: HSI clock selected + value: 0 + - name: LSE + description: LSE oscillator selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCO2: bit_size: 2 variants: - - name: SYSCLK - description: System clock (SYSCLK) selected - value: 0 - - name: PLLI2S - description: PLLI2S clock selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: SYSCLK + description: System clock (SYSCLK) selected + value: 0 + - name: PLLI2S + description: PLLI2S clock selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 4 - - name: Div3 - description: Division by 3 - value: 5 - - name: Div4 - description: Division by 4 - value: 6 - - name: Div5 - description: Division by 5 - value: 7 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 4 + - name: Div3 + description: Division by 3 + value: 5 + - name: Div4 + description: Division by 4 + value: 6 + - name: Div5 + description: Division by 5 + value: 7 enum/PLLP: bit_size: 2 variants: - - name: Div2 - description: PLLP=2 - value: 0 - - name: Div4 - description: PLLP=4 - value: 1 - - name: Div6 - description: PLLP=6 - value: 2 - - name: Div8 - description: PLLP=8 - value: 3 + - name: Div2 + description: PLLP=2 + value: 0 + - name: Div4 + description: PLLP=4 + value: 1 + - name: Div6 + description: PLLP=6 + value: 2 + - name: Div8 + description: PLLP=8 + value: 3 enum/PLLSRC: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as PLL and PLLI2S clock entry - value: 0 - - name: HSE - description: HSE oscillator clock selected as PLL and PLLI2S clock entry - value: 1 + - name: HSI + description: HSI clock selected as PLL and PLLI2S clock entry + value: 0 + - name: HSE + description: HSE oscillator clock selected as PLL and PLLI2S clock entry + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SPREADSEL: bit_size: 1 variants: - - name: Center - description: Center spread - value: 0 - - name: Down - description: Down spread - value: 1 + - name: Center + description: Center spread + value: 0 + - name: Down + description: Down spread + value: 1 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 diff --git a/data/registers/rcc_f3.yaml b/data/registers/rcc_f3.yaml index 3516fef..cbe8c42 100644 --- a/data/registers/rcc_f3.yaml +++ b/data/registers/rcc_f3.yaml @@ -1,1295 +1,1294 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: Clock configuration register (RCC_CFGR) - byte_offset: 4 - fieldset: CFGR - - name: CIR - description: Clock interrupt register (RCC_CIR) - byte_offset: 8 - fieldset: CIR - - name: APB2RSTR - description: APB2 peripheral reset register (RCC_APB2RSTR) - byte_offset: 12 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register (RCC_APB1RSTR) - byte_offset: 16 - fieldset: APB1RSTR - - name: AHBENR - description: AHB Peripheral Clock enable register (RCC_AHBENR) - byte_offset: 20 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register (RCC_APB2ENR) - byte_offset: 24 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register (RCC_APB1ENR) - byte_offset: 28 - fieldset: APB1ENR - - name: BDCR - description: Backup domain control register (RCC_BDCR) - byte_offset: 32 - fieldset: BDCR - - name: CSR - description: Control/status register (RCC_CSR) - byte_offset: 36 - fieldset: CSR - - name: AHBRSTR - description: AHB peripheral reset register - byte_offset: 40 - fieldset: AHBRSTR - - name: CFGR2 - description: Clock configuration register 2 - byte_offset: 44 - fieldset: CFGR2 - - name: CFGR3 - description: Clock configuration register 3 - byte_offset: 48 - fieldset: CFGR3 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 40 + fieldset: AHBRSTR + - name: CFGR2 + description: Clock configuration register 2 + byte_offset: 44 + fieldset: CFGR2 + - name: CFGR3 + description: Clock configuration register 3 + byte_offset: 48 + fieldset: CFGR3 fieldset/AHBENR: description: AHB Peripheral Clock enable register (RCC_AHBENR) fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: SRAMEN - description: SRAM interface clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 4 - bit_size: 1 - - name: FMCEN - description: FMC clock enable - bit_offset: 5 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 16 - bit_size: 1 - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 17 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 18 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 19 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 20 - bit_size: 1 - - name: GPIOEEN - description: I/O port E clock enable - bit_offset: 21 - bit_size: 1 - - name: GPIOFEN - description: I/O port F clock enable - bit_offset: 22 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 23 - bit_size: 1 - - name: TSCEN - description: Touch sensing controller clock enable - bit_offset: 24 - bit_size: 1 - - name: ADC12EN - description: ADC1 and ADC2 clock enable - bit_offset: 28 - bit_size: 1 - - name: ADC34EN - description: ADC3 and ADC4 clock enable - bit_offset: 29 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: FMCEN + description: FMC clock enable + bit_offset: 5 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 16 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 17 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 18 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 19 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 20 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 21 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 22 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 23 + bit_size: 1 + - name: TSCEN + description: Touch sensing controller clock enable + bit_offset: 24 + bit_size: 1 + - name: ADC12EN + description: ADC1 and ADC2 clock enable + bit_offset: 28 + bit_size: 1 + - name: ADC34EN + description: ADC3 and ADC4 clock enable + bit_offset: 29 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral reset register fields: - - name: FMCRST - description: FMC reset - bit_offset: 5 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 16 - bit_size: 1 - - name: GPIOARST - description: I/O port A reset - bit_offset: 17 - bit_size: 1 - - name: GPIOBRST - description: I/O port B reset - bit_offset: 18 - bit_size: 1 - - name: GPIOCRST - description: I/O port C reset - bit_offset: 19 - bit_size: 1 - - name: GPIODRST - description: I/O port D reset - bit_offset: 20 - bit_size: 1 - - name: GPIOERST - description: I/O port E reset - bit_offset: 21 - bit_size: 1 - - name: GPIOFRST - description: I/O port F reset - bit_offset: 22 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 23 - bit_size: 1 - - name: TSCRST - description: Touch sensing controller reset - bit_offset: 24 - bit_size: 1 - - name: ADC12RST - description: ADC1 and ADC2 reset - bit_offset: 28 - bit_size: 1 - - name: ADC34RST - description: ADC3 and ADC4 reset - bit_offset: 29 - bit_size: 1 + - name: FMCRST + description: FMC reset + bit_offset: 5 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 16 + bit_size: 1 + - name: GPIOARST + description: I/O port A reset + bit_offset: 17 + bit_size: 1 + - name: GPIOBRST + description: I/O port B reset + bit_offset: 18 + bit_size: 1 + - name: GPIOCRST + description: I/O port C reset + bit_offset: 19 + bit_size: 1 + - name: GPIODRST + description: I/O port D reset + bit_offset: 20 + bit_size: 1 + - name: GPIOERST + description: I/O port E reset + bit_offset: 21 + bit_size: 1 + - name: GPIOFRST + description: I/O port F reset + bit_offset: 22 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 23 + bit_size: 1 + - name: TSCRST + description: Touch sensing controller reset + bit_offset: 24 + bit_size: 1 + - name: ADC12RST + description: ADC1 and ADC2 reset + bit_offset: 28 + bit_size: 1 + - name: ADC34RST + description: ADC3 and ADC4 reset + bit_offset: 29 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register (RCC_APB1ENR) fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: Timer 4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI 3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART 3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB clock enable - bit_offset: 23 - bit_size: 1 - - name: CANEN - description: CAN clock enable - bit_offset: 25 - bit_size: 1 - - name: DAC2EN - description: DAC2 interface clock enable - bit_offset: 26 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 30 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB clock enable + bit_offset: 23 + bit_size: 1 + - name: CANEN + description: CAN clock enable + bit_offset: 25 + bit_size: 1 + - name: DAC2EN + description: DAC2 interface clock enable + bit_offset: 26 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 30 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register (RCC_APB1RSTR) fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: Timer 14 reset - bit_offset: 2 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USB reset - bit_offset: 23 - bit_size: 1 - - name: CANRST - description: CAN reset - bit_offset: 25 - bit_size: 1 - - name: DAC2RST - description: DAC2 interface reset - bit_offset: 26 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 30 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 14 reset + bit_offset: 2 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 23 + bit_size: 1 + - name: CANRST + description: CAN reset + bit_offset: 25 + bit_size: 1 + - name: DAC2RST + description: DAC2 interface reset + bit_offset: 26 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 30 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register (RCC_APB2ENR) fields: - - name: SYSCFGEN - description: SYSCFG clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM1EN - description: TIM1 Timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: TIM8 Timer clock enable - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI4EN - description: SPI4 clock enable - bit_offset: 15 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: TIM19EN - description: TIM19 timer clock enable - bit_offset: 19 - bit_size: 1 - - name: TIM20EN - description: TIM20 timer clock enable - bit_offset: 20 - bit_size: 1 - - name: DBGMCUEN - description: MCU debug module clock enable - bit_offset: 22 - bit_size: 1 - - name: HRTIM1EN - description: High Resolution Timer 1 clock enable - bit_offset: 29 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM1EN + description: TIM1 Timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: TIM8 Timer clock enable + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI4EN + description: SPI4 clock enable + bit_offset: 15 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: TIM19EN + description: TIM19 timer clock enable + bit_offset: 19 + bit_size: 1 + - name: TIM20EN + description: TIM20 timer clock enable + bit_offset: 20 + bit_size: 1 + - name: DBGMCUEN + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 + - name: HRTIM1EN + description: High Resolution Timer 1 clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register (RCC_APB2RSTR) fields: - - name: SYSCFGRST - description: SYSCFG and COMP reset - bit_offset: 0 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: TIM8 timer reset - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: SPI4RST - description: SPI4 reset - bit_offset: 15 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: TIM19RST - description: TIM19 timer reset - bit_offset: 19 - bit_size: 1 - - name: TIM20RST - description: TIM20 timer reset - bit_offset: 20 - bit_size: 1 - - name: DBGMCURST - description: Debug MCU reset - bit_offset: 22 - bit_size: 1 - - name: HRTIM1RST - description: High Resolution Timer1 reset - bit_offset: 29 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFG and COMP reset + bit_offset: 0 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: TIM8 timer reset + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: SPI4RST + description: SPI4 reset + bit_offset: 15 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: TIM19RST + description: TIM19 timer reset + bit_offset: 19 + bit_size: 1 + - name: TIM20RST + description: TIM20 timer reset + bit_offset: 20 + bit_size: 1 + - name: DBGMCURST + description: Debug MCU reset + bit_offset: 22 + bit_size: 1 + - name: HRTIM1RST + description: High Resolution Timer1 reset + bit_offset: 29 + bit_size: 1 fieldset/BDCR: description: Backup domain control register (RCC_BDCR) fields: - - name: LSEON - description: External Low Speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External Low Speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External Low Speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: Clock configuration register (RCC_CFGR) fields: - - name: SW - description: System clock Switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System Clock Switch Status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: ADCPRE - description: ADC prescaler - bit_offset: 14 - bit_size: 2 - enum: ADCPRE - - name: PLLSRC - description: PLL entry clock source - bit_offset: 15 - bit_size: 2 - enum: PLLSRC - - name: PLLXTPRE - description: HSE divider for PLL entry - bit_offset: 17 - bit_size: 1 - enum: PLLXTPRE - - name: PLLMUL - description: PLL Multiplication Factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: USBPRE - description: USB prescaler - bit_offset: 22 - bit_size: 1 - enum: USBPRE - - name: I2SSRC - description: I2S external clock source selection - bit_offset: 23 - bit_size: 1 - enum: ISSRC - - name: MCO - description: Microcontroller clock output - bit_offset: 24 - bit_size: 3 - enum: MCO - - name: SDPRE - description: SDADC prescaler - bit_offset: 27 - bit_size: 5 - enum: SDPRE - - name: MCOPRE - description: Microcontroller Clock Output Prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE - - name: PLLNODIV - description: Do not divide PLL to MCO - bit_offset: 31 - bit_size: 1 - enum: PLLNODIV + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: ADCPRE + description: ADC prescaler + bit_offset: 14 + bit_size: 2 + enum: ADCPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 15 + bit_size: 2 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: USBPRE + description: USB prescaler + bit_offset: 22 + bit_size: 1 + enum: USBPRE + - name: I2SSRC + description: I2S external clock source selection + bit_offset: 23 + bit_size: 1 + enum: ISSRC + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCO + - name: SDPRE + description: SDADC prescaler + bit_offset: 27 + bit_size: 5 + enum: SDPRE + - name: MCOPRE + description: Microcontroller Clock Output Prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE + - name: PLLNODIV + description: Do not divide PLL to MCO + bit_offset: 31 + bit_size: 1 + enum: PLLNODIV fieldset/CFGR2: description: Clock configuration register 2 fields: - - name: PREDIV - description: PREDIV division factor - bit_offset: 0 - bit_size: 4 - enum: PREDIV - - name: ADC12PRES - description: ADC1 and ADC2 prescaler - bit_offset: 4 - bit_size: 5 - enum: ADCPRES - - name: ADC1PRES - description: ADC1 prescaler - bit_offset: 4 - bit_size: 5 - enum: ADCPRES - - name: ADC34PRES - description: ADC3 and ADC4 prescaler - bit_offset: 9 - bit_size: 5 - enum: ADCPRES + - name: PREDIV + description: PREDIV division factor + bit_offset: 0 + bit_size: 4 + enum: PREDIV + - name: ADC12PRES + description: ADC1 and ADC2 prescaler + bit_offset: 4 + bit_size: 5 + enum: ADCPRES + - name: ADC1PRES + description: ADC1 prescaler + bit_offset: 4 + bit_size: 5 + enum: ADCPRES + - name: ADC34PRES + description: ADC3 and ADC4 prescaler + bit_offset: 9 + bit_size: 5 + enum: ADCPRES fieldset/CFGR3: description: Clock configuration register 3 fields: - - name: USART1SW - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - enum: USARTSW - - name: I2C1SW - description: I2C1 clock source selection - bit_offset: 4 - bit_size: 1 - enum: ICSW - - name: I2C2SW - description: I2C2 clock source selection - bit_offset: 5 - bit_size: 1 - enum: ICSW - - name: CECSW - description: HDMI CEC clock source selection - bit_offset: 6 - bit_size: 1 - enum: CECSW - - name: I2C3SW - description: I2C3 clock source selection - bit_offset: 6 - bit_size: 1 - enum: ICSW - - name: TIM1SW - description: Timer1 clock source selection - bit_offset: 8 - bit_size: 1 - enum: TIMSW - - name: TIM8SW - description: Timer8 clock source selection - bit_offset: 9 - bit_size: 1 - enum: TIMSW - - name: TIM15SW - description: Timer15 clock source selection - bit_offset: 10 - bit_size: 1 - enum: TIMSW - - name: TIM16SW - description: Timer16 clock source selection - bit_offset: 11 - bit_size: 1 - enum: TIMSW - - name: HRTIM1SW - description: Hrtim1 clock source selection - bit_offset: 12 - bit_size: 1 - enum: TIMSW - - name: TIM17SW - description: Timer17 clock source selection - bit_offset: 13 - bit_size: 1 - enum: TIMSW - - name: TIM20SW - description: Timer20 clock source selection - bit_offset: 15 - bit_size: 1 - enum: TIMSW - - name: USART2SW - description: USART2 clock source selection - bit_offset: 16 - bit_size: 2 - enum: USARTSW - - name: USART3SW - description: USART3 clock source selection - bit_offset: 18 - bit_size: 2 - enum: USARTSW - - name: UART4SW - description: UART4 clock source selection - bit_offset: 20 - bit_size: 2 - enum: USARTSW - - name: UART5SW - description: UART5 clock source selection - bit_offset: 22 - bit_size: 2 - enum: USARTSW - - name: TIM2SW - description: Timer2 clock source selection - bit_offset: 24 - bit_size: 1 - enum: TIMSW - - name: TIM34SW - description: Timer34 clock source selection - bit_offset: 25 - bit_size: 1 - enum: TIMSW + - name: USART1SW + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: USARTSW + - name: I2C1SW + description: I2C1 clock source selection + bit_offset: 4 + bit_size: 1 + enum: ICSW + - name: I2C2SW + description: I2C2 clock source selection + bit_offset: 5 + bit_size: 1 + enum: ICSW + - name: CECSW + description: HDMI CEC clock source selection + bit_offset: 6 + bit_size: 1 + enum: CECSW + - name: I2C3SW + description: I2C3 clock source selection + bit_offset: 6 + bit_size: 1 + enum: ICSW + - name: TIM1SW + description: Timer1 clock source selection + bit_offset: 8 + bit_size: 1 + enum: TIMSW + - name: TIM8SW + description: Timer8 clock source selection + bit_offset: 9 + bit_size: 1 + enum: TIMSW + - name: TIM15SW + description: Timer15 clock source selection + bit_offset: 10 + bit_size: 1 + enum: TIMSW + - name: TIM16SW + description: Timer16 clock source selection + bit_offset: 11 + bit_size: 1 + enum: TIMSW + - name: HRTIM1SW + description: Hrtim1 clock source selection + bit_offset: 12 + bit_size: 1 + enum: TIMSW + - name: TIM17SW + description: Timer17 clock source selection + bit_offset: 13 + bit_size: 1 + enum: TIMSW + - name: TIM20SW + description: Timer20 clock source selection + bit_offset: 15 + bit_size: 1 + enum: TIMSW + - name: USART2SW + description: USART2 clock source selection + bit_offset: 16 + bit_size: 2 + enum: USARTSW + - name: USART3SW + description: USART3 clock source selection + bit_offset: 18 + bit_size: 2 + enum: USARTSW + - name: UART4SW + description: UART4 clock source selection + bit_offset: 20 + bit_size: 2 + enum: USARTSW + - name: UART5SW + description: UART5 clock source selection + bit_offset: 22 + bit_size: 2 + enum: USARTSW + - name: TIM2SW + description: Timer2 clock source selection + bit_offset: 24 + bit_size: 1 + enum: TIMSW + - name: TIM34SW + description: Timer34 clock source selection + bit_offset: 25 + bit_size: 1 + enum: TIMSW fieldset/CIR: description: Clock interrupt register (RCC_CIR) fields: - - name: LSIRDYF - description: LSI Ready Interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE Ready Interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI Ready Interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE Ready Interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL Ready Interrupt flag - bit_offset: 4 - bit_size: 1 - - name: CSSF - description: Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI Ready Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE Ready Interrupt Enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI Ready Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE Ready Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL Ready Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: LSIRDYC - description: LSI Ready Interrupt Clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE Ready Interrupt Clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI Ready Interrupt Clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE Ready Interrupt Clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL Ready Interrupt Clear - bit_offset: 20 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal High Speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal High Speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal High Speed clock Calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: External High Speed clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: External High Speed clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: External High Speed clock Bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: Control/status register (RCC_CSR) fields: - - name: LSION - description: Internal low speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: V18PWRRSTF - description: Reset flag of the 1.8 V domain - bit_offset: 23 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: V18PWRRSTF + description: Reset flag of the 1.8 V domain + bit_offset: 23 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 enum/ADCPRE: bit_size: 2 variants: - - name: Div2 - description: PCLK divided by 2 - value: 0 - - name: Div4 - description: PCLK divided by 4 - value: 1 - - name: Div6 - description: PCLK divided by 6 - value: 2 - - name: Div8 - description: PCLK divided by 8 - value: 3 + - name: Div2 + description: PCLK divided by 2 + value: 0 + - name: Div4 + description: PCLK divided by 4 + value: 1 + - name: Div6 + description: PCLK divided by 6 + value: 2 + - name: Div8 + description: PCLK divided by 8 + value: 3 enum/ADCPRES: bit_size: 5 variants: - - name: NoClock - description: No clock - value: 0 - - name: Div1 - description: PLL clock not divided - value: 16 - - name: Div2 - description: PLL clock divided by 2 - value: 17 - - name: Div4 - description: PLL clock divided by 4 - value: 18 - - name: Div6 - description: PLL clock divided by 6 - value: 19 - - name: Div8 - description: PLL clock divided by 8 - value: 20 - - name: Div10 - description: PLL clock divided by 10 - value: 21 - - name: Div12 - description: PLL clock divided by 12 - value: 22 - - name: Div16 - description: PLL clock divided by 16 - value: 23 - - name: Div32 - description: PLL clock divided by 32 - value: 24 - - name: Div64 - description: PLL clock divided by 64 - value: 25 - - name: Div128 - description: PLL clock divided by 128 - value: 26 - - name: Div256 - description: PLL clock divided by 256 - value: 27 + - name: NoClock + description: No clock + value: 0 + - name: Div1 + description: PLL clock not divided + value: 16 + - name: Div2 + description: PLL clock divided by 2 + value: 17 + - name: Div4 + description: PLL clock divided by 4 + value: 18 + - name: Div6 + description: PLL clock divided by 6 + value: 19 + - name: Div8 + description: PLL clock divided by 8 + value: 20 + - name: Div10 + description: PLL clock divided by 10 + value: 21 + - name: Div12 + description: PLL clock divided by 12 + value: 22 + - name: Div16 + description: PLL clock divided by 16 + value: 23 + - name: Div32 + description: PLL clock divided by 32 + value: 24 + - name: Div64 + description: PLL clock divided by 64 + value: 25 + - name: Div128 + description: PLL clock divided by 128 + value: 26 + - name: Div256 + description: PLL clock divided by 256 + value: 27 enum/CECSW: bit_size: 1 variants: - - name: HSI_Div244 - description: HSI clock divided by 244 selected as CEC clock source - value: 0 - - name: LSE - description: LSE clock selected as CEC clock source - value: 1 + - name: HSI_Div244 + description: HSI clock divided by 244 selected as CEC clock source + value: 0 + - name: LSE + description: LSE clock selected as CEC clock source + value: 1 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/ICSW: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as I2C clock source - value: 0 - - name: SYSCLK - description: SYSCLK clock selected as I2C clock source - value: 1 + - name: HSI + description: HSI clock selected as I2C clock source + value: 0 + - name: SYSCLK + description: SYSCLK clock selected as I2C clock source + value: 1 enum/ISSRC: bit_size: 1 variants: - - name: SYSCLK - description: System clock used as I2S clock source - value: 0 - - name: CKIN - description: External clock mapped on the I2S_CKIN pin used as I2S clock source - value: 1 + - name: SYSCLK + description: System clock used as I2S clock source + value: 0 + - name: CKIN + description: External clock mapped on the I2S_CKIN pin used as I2S clock source + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low drive capacity - value: 0 - - name: MediumHigh - description: Medium-high drive capacity - value: 1 - - name: MediumLow - description: Medium-low drive capacity - value: 2 - - name: High - description: High drive capacity - value: 3 + - name: Low + description: Low drive capacity + value: 0 + - name: MediumHigh + description: Medium-high drive capacity + value: 1 + - name: MediumLow + description: Medium-low drive capacity + value: 2 + - name: High + description: High drive capacity + value: 3 enum/MCO: bit_size: 3 variants: - - name: NoMCO - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: LSI - description: Internal low speed (LSI) oscillator clock selected - value: 2 - - name: LSE - description: External low speed (LSE) oscillator clock selected - value: 3 - - name: SYSCLK - description: System clock selected - value: 4 - - name: HSI - description: Internal RC 8 MHz (HSI) oscillator clock selected - value: 5 - - name: HSE - description: External 4-32 MHz (HSE) oscillator clock selected - value: 6 - - name: PLL - description: "PLL clock selected (divided by 1 or 2, depending en PLLNODIV)" - value: 7 + - name: NoMCO + description: MCO output disabled, no clock on MCO + value: 0 + - name: LSI + description: Internal low speed (LSI) oscillator clock selected + value: 2 + - name: LSE + description: External low speed (LSE) oscillator clock selected + value: 3 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: Internal RC 8 MHz (HSI) oscillator clock selected + value: 5 + - name: HSE + description: External 4-32 MHz (HSE) oscillator clock selected + value: 6 + - name: PLL + description: PLL clock selected (divided by 1 or 2, depending en PLLNODIV) + value: 7 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: MCO is divided by 1 - value: 0 - - name: Div2 - description: MCO is divided by 2 - value: 1 - - name: Div4 - description: MCO is divided by 4 - value: 2 - - name: Div8 - description: MCO is divided by 8 - value: 3 - - name: Div16 - description: MCO is divided by 16 - value: 4 - - name: Div32 - description: MCO is divided by 32 - value: 5 - - name: Div64 - description: MCO is divided by 64 - value: 6 - - name: Div128 - description: MCO is divided by 128 - value: 7 + - name: Div1 + description: MCO is divided by 1 + value: 0 + - name: Div2 + description: MCO is divided by 2 + value: 1 + - name: Div4 + description: MCO is divided by 4 + value: 2 + - name: Div8 + description: MCO is divided by 8 + value: 3 + - name: Div16 + description: MCO is divided by 16 + value: 4 + - name: Div32 + description: MCO is divided by 32 + value: 5 + - name: Div64 + description: MCO is divided by 64 + value: 6 + - name: Div128 + description: MCO is divided by 128 + value: 7 enum/PLLMUL: bit_size: 4 variants: - - name: Mul2 - description: PLL input clock x2 - value: 0 - - name: Mul3 - description: PLL input clock x3 - value: 1 - - name: Mul4 - description: PLL input clock x4 - value: 2 - - name: Mul5 - description: PLL input clock x5 - value: 3 - - name: Mul6 - description: PLL input clock x6 - value: 4 - - name: Mul7 - description: PLL input clock x7 - value: 5 - - name: Mul8 - description: PLL input clock x8 - value: 6 - - name: Mul9 - description: PLL input clock x9 - value: 7 - - name: Mul10 - description: PLL input clock x10 - value: 8 - - name: Mul11 - description: PLL input clock x11 - value: 9 - - name: Mul12 - description: PLL input clock x12 - value: 10 - - name: Mul13 - description: PLL input clock x13 - value: 11 - - name: Mul14 - description: PLL input clock x14 - value: 12 - - name: Mul15 - description: PLL input clock x15 - value: 13 - - name: Mul16 - description: PLL input clock x16 - value: 14 - - name: Mul16x - description: PLL input clock x16 - value: 15 + - name: Mul2 + description: PLL input clock x2 + value: 0 + - name: Mul3 + description: PLL input clock x3 + value: 1 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul10 + description: PLL input clock x10 + value: 8 + - name: Mul11 + description: PLL input clock x11 + value: 9 + - name: Mul12 + description: PLL input clock x12 + value: 10 + - name: Mul13 + description: PLL input clock x13 + value: 11 + - name: Mul14 + description: PLL input clock x14 + value: 12 + - name: Mul15 + description: PLL input clock x15 + value: 13 + - name: Mul16 + description: PLL input clock x16 + value: 14 + - name: Mul16x + description: PLL input clock x16 + value: 15 enum/PLLNODIV: bit_size: 1 variants: - - name: Div2 - description: PLL is divided by 2 for MCO - value: 0 - - name: Div1 - description: PLL is not divided for MCO - value: 1 + - name: Div2 + description: PLL is divided by 2 for MCO + value: 0 + - name: Div1 + description: PLL is not divided for MCO + value: 1 enum/PLLSRC: bit_size: 2 variants: - - name: HSI_Div2 - description: HSI divided by 2 selected as PLL input clock - value: 0 - - name: HSI_Div_PREDIV - description: HSI divided by PREDIV selected as PLL input clock - value: 1 - - name: HSE_Div_PREDIV - description: HSE divided by PREDIV selected as PLL input clock - value: 2 + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSI_Div_PREDIV + description: HSI divided by PREDIV selected as PLL input clock + value: 1 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 2 enum/PLLXTPRE: bit_size: 1 variants: - - name: Div1 - description: HSE clock not divided - value: 0 - - name: Div2 - description: HSE clock divided by 2 - value: 1 + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/PREDIV: bit_size: 4 variants: - - name: Div1 - description: PREDIV input clock not divided - value: 0 - - name: Div2 - description: PREDIV input clock divided by 2 - value: 1 - - name: Div3 - description: PREDIV input clock divided by 3 - value: 2 - - name: Div4 - description: PREDIV input clock divided by 4 - value: 3 - - name: Div5 - description: PREDIV input clock divided by 5 - value: 4 - - name: Div6 - description: PREDIV input clock divided by 6 - value: 5 - - name: Div7 - description: PREDIV input clock divided by 7 - value: 6 - - name: Div8 - description: PREDIV input clock divided by 8 - value: 7 - - name: Div9 - description: PREDIV input clock divided by 9 - value: 8 - - name: Div10 - description: PREDIV input clock divided by 10 - value: 9 - - name: Div11 - description: PREDIV input clock divided by 11 - value: 10 - - name: Div12 - description: PREDIV input clock divided by 12 - value: 11 - - name: Div13 - description: PREDIV input clock divided by 13 - value: 12 - - name: Div14 - description: PREDIV input clock divided by 14 - value: 13 - - name: Div15 - description: PREDIV input clock divided by 15 - value: 14 - - name: Div16 - description: PREDIV input clock divided by 16 - value: 15 + - name: Div1 + description: PREDIV input clock not divided + value: 0 + - name: Div2 + description: PREDIV input clock divided by 2 + value: 1 + - name: Div3 + description: PREDIV input clock divided by 3 + value: 2 + - name: Div4 + description: PREDIV input clock divided by 4 + value: 3 + - name: Div5 + description: PREDIV input clock divided by 5 + value: 4 + - name: Div6 + description: PREDIV input clock divided by 6 + value: 5 + - name: Div7 + description: PREDIV input clock divided by 7 + value: 6 + - name: Div8 + description: PREDIV input clock divided by 8 + value: 7 + - name: Div9 + description: PREDIV input clock divided by 9 + value: 8 + - name: Div10 + description: PREDIV input clock divided by 10 + value: 9 + - name: Div11 + description: PREDIV input clock divided by 11 + value: 10 + - name: Div12 + description: PREDIV input clock divided by 12 + value: 11 + - name: Div13 + description: PREDIV input clock divided by 13 + value: 12 + - name: Div14 + description: PREDIV input clock divided by 14 + value: 13 + - name: Div15 + description: PREDIV input clock divided by 15 + value: 14 + - name: Div16 + description: PREDIV input clock divided by 16 + value: 15 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SDPRE: bit_size: 5 variants: - - name: Div2 - description: SYSCLK divided by 2 - value: 0 - - name: Div4 - description: SYSCLK divided by 4 - value: 17 - - name: Div6 - description: SYSCLK divided by 6 - value: 18 - - name: Div8 - description: SYSCLK divided by 8 - value: 19 - - name: Div10 - description: SYSCLK divided by 10 - value: 20 - - name: Div12 - description: SYSCLK divided by 12 - value: 21 - - name: Div14 - description: SYSCLK divided by 14 - value: 22 - - name: Div16 - description: SYSCLK divided by 16 - value: 23 - - name: Div20 - description: SYSCLK divided by 20 - value: 24 - - name: Div24 - description: SYSCLK divided by 24 - value: 25 - - name: Div28 - description: SYSCLK divided by 28 - value: 26 - - name: Div32 - description: SYSCLK divided by 32 - value: 27 - - name: Div36 - description: SYSCLK divided by 36 - value: 28 - - name: Div40 - description: SYSCLK divided by 40 - value: 29 - - name: Div44 - description: SYSCLK divided by 44 - value: 30 - - name: Div48 - description: SYSCLK divided by 48 - value: 31 + - name: Div2 + description: SYSCLK divided by 2 + value: 0 + - name: Div4 + description: SYSCLK divided by 4 + value: 17 + - name: Div6 + description: SYSCLK divided by 6 + value: 18 + - name: Div8 + description: SYSCLK divided by 8 + value: 19 + - name: Div10 + description: SYSCLK divided by 10 + value: 20 + - name: Div12 + description: SYSCLK divided by 12 + value: 21 + - name: Div14 + description: SYSCLK divided by 14 + value: 22 + - name: Div16 + description: SYSCLK divided by 16 + value: 23 + - name: Div20 + description: SYSCLK divided by 20 + value: 24 + - name: Div24 + description: SYSCLK divided by 24 + value: 25 + - name: Div28 + description: SYSCLK divided by 28 + value: 26 + - name: Div32 + description: SYSCLK divided by 32 + value: 27 + - name: Div36 + description: SYSCLK divided by 36 + value: 28 + - name: Div40 + description: SYSCLK divided by 40 + value: 29 + - name: Div44 + description: SYSCLK divided by 44 + value: 30 + - name: Div48 + description: SYSCLK divided by 48 + value: 31 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/TIMSW: bit_size: 1 variants: - - name: PCLK2 - description: PCLK2 clock (doubled frequency when prescaled) - value: 0 - - name: PLL - description: PLL vco output (running up to 144 MHz) - value: 1 + - name: PCLK2 + description: PCLK2 clock (doubled frequency when prescaled) + value: 0 + - name: PLL + description: PLL vco output (running up to 144 MHz) + value: 1 enum/USARTSW: bit_size: 2 variants: - - name: PCLK - description: PCLK selected as USART clock source - value: 0 - - name: SYSCLK - description: SYSCLK selected as USART clock source - value: 1 - - name: LSE - description: LSE selected as USART clock source - value: 2 - - name: HSI - description: HSI selected as USART clock source - value: 3 + - name: PCLK + description: PCLK selected as USART clock source + value: 0 + - name: SYSCLK + description: SYSCLK selected as USART clock source + value: 1 + - name: LSE + description: LSE selected as USART clock source + value: 2 + - name: HSI + description: HSI selected as USART clock source + value: 3 enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 - description: PLL clock is divided by 1.5 - value: 0 - - name: DIV1 - description: PLL clock is not divided - value: 1 + - name: DIV1_5 + description: PLL clock is divided by 1.5 + value: 0 + - name: DIV1 + description: PLL clock is not divided + value: 1 diff --git a/data/registers/rcc_f3_v2.yaml b/data/registers/rcc_f3_v2.yaml index 7e4dfab..9d2c291 100644 --- a/data/registers/rcc_f3_v2.yaml +++ b/data/registers/rcc_f3_v2.yaml @@ -1,1271 +1,1270 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: CFGR - description: Clock configuration register (RCC_CFGR) - byte_offset: 4 - fieldset: CFGR - - name: CIR - description: Clock interrupt register (RCC_CIR) - byte_offset: 8 - fieldset: CIR - - name: APB2RSTR - description: APB2 peripheral reset register (RCC_APB2RSTR) - byte_offset: 12 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register (RCC_APB1RSTR) - byte_offset: 16 - fieldset: APB1RSTR - - name: AHBENR - description: AHB Peripheral Clock enable register (RCC_AHBENR) - byte_offset: 20 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register (RCC_APB2ENR) - byte_offset: 24 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register (RCC_APB1ENR) - byte_offset: 28 - fieldset: APB1ENR - - name: BDCR - description: Backup domain control register (RCC_BDCR) - byte_offset: 32 - fieldset: BDCR - - name: CSR - description: Control/status register (RCC_CSR) - byte_offset: 36 - fieldset: CSR - - name: AHBRSTR - description: AHB peripheral reset register - byte_offset: 40 - fieldset: AHBRSTR - - name: CFGR2 - description: Clock configuration register 2 - byte_offset: 44 - fieldset: CFGR2 - - name: CFGR3 - description: Clock configuration register 3 - byte_offset: 48 - fieldset: CFGR3 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: CFGR + description: Clock configuration register (RCC_CFGR) + byte_offset: 4 + fieldset: CFGR + - name: CIR + description: Clock interrupt register (RCC_CIR) + byte_offset: 8 + fieldset: CIR + - name: APB2RSTR + description: APB2 peripheral reset register (RCC_APB2RSTR) + byte_offset: 12 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register (RCC_APB1RSTR) + byte_offset: 16 + fieldset: APB1RSTR + - name: AHBENR + description: AHB Peripheral Clock enable register (RCC_AHBENR) + byte_offset: 20 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register (RCC_APB2ENR) + byte_offset: 24 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register (RCC_APB1ENR) + byte_offset: 28 + fieldset: APB1ENR + - name: BDCR + description: Backup domain control register (RCC_BDCR) + byte_offset: 32 + fieldset: BDCR + - name: CSR + description: Control/status register (RCC_CSR) + byte_offset: 36 + fieldset: CSR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 40 + fieldset: AHBRSTR + - name: CFGR2 + description: Clock configuration register 2 + byte_offset: 44 + fieldset: CFGR2 + - name: CFGR3 + description: Clock configuration register 3 + byte_offset: 48 + fieldset: CFGR3 fieldset/AHBENR: description: AHB Peripheral Clock enable register (RCC_AHBENR) fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: SRAMEN - description: SRAM interface clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 4 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 17 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 18 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 19 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 20 - bit_size: 1 - - name: GPIOEEN - description: I/O port E clock enable - bit_offset: 21 - bit_size: 1 - - name: GPIOFEN - description: I/O port F clock enable - bit_offset: 22 - bit_size: 1 - - name: TSCEN - description: Touch sensing controller clock enable - bit_offset: 24 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: SRAMEN + description: SRAM interface clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 4 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 17 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 18 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 19 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 20 + bit_size: 1 + - name: GPIOEEN + description: I/O port E clock enable + bit_offset: 21 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 22 + bit_size: 1 + - name: TSCEN + description: Touch sensing controller clock enable + bit_offset: 24 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral reset register fields: - - name: GPIOARST - description: I/O port A reset - bit_offset: 17 - bit_size: 1 - - name: GPIOBRST - description: I/O port B reset - bit_offset: 18 - bit_size: 1 - - name: GPIOCRST - description: I/O port C reset - bit_offset: 19 - bit_size: 1 - - name: GPIODRST - description: I/O port D reset - bit_offset: 20 - bit_size: 1 - - name: GPIOERST - description: I/O port E reset - bit_offset: 21 - bit_size: 1 - - name: GPIOFRST - description: I/O port F reset - bit_offset: 22 - bit_size: 1 - - name: TSCRST - description: Touch sensing controller reset - bit_offset: 24 - bit_size: 1 + - name: GPIOARST + description: I/O port A reset + bit_offset: 17 + bit_size: 1 + - name: GPIOBRST + description: I/O port B reset + bit_offset: 18 + bit_size: 1 + - name: GPIOCRST + description: I/O port C reset + bit_offset: 19 + bit_size: 1 + - name: GPIODRST + description: I/O port D reset + bit_offset: 20 + bit_size: 1 + - name: GPIOERST + description: I/O port E reset + bit_offset: 21 + bit_size: 1 + - name: GPIOFRST + description: I/O port F reset + bit_offset: 22 + bit_size: 1 + - name: TSCRST + description: Touch sensing controller reset + bit_offset: 24 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register (RCC_APB1ENR) fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: Timer 4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: Timer 5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: Timer 12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: Timer 13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: Timer 14 clock enable - bit_offset: 8 - bit_size: 1 - - name: TIM18EN - description: Timer 18 clock enable - bit_offset: 9 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI 3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART 3 clock enable - bit_offset: 18 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB clock enable - bit_offset: 23 - bit_size: 1 - - name: CANEN - description: CAN clock enable - bit_offset: 25 - bit_size: 1 - - name: DAC2EN - description: DAC2 interface clock enable - bit_offset: 26 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: CECEN - description: HDMI CEC interface clock enable - bit_offset: 30 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: Timer 5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: Timer 12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: Timer 13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: Timer 14 clock enable + bit_offset: 8 + bit_size: 1 + - name: TIM18EN + description: Timer 18 clock enable + bit_offset: 9 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB clock enable + bit_offset: 23 + bit_size: 1 + - name: CANEN + description: CAN clock enable + bit_offset: 25 + bit_size: 1 + - name: DAC2EN + description: DAC2 interface clock enable + bit_offset: 26 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: CECEN + description: HDMI CEC interface clock enable + bit_offset: 30 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register (RCC_APB1RSTR) fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: Timer 14 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: Timer 5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: Timer 12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: Timer 13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: Timer 14 reset - bit_offset: 8 - bit_size: 1 - - name: TIM18RST - description: Timer 18 reset - bit_offset: 9 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USB reset - bit_offset: 23 - bit_size: 1 - - name: CANRST - description: CAN reset - bit_offset: 25 - bit_size: 1 - - name: DAC2RST - description: DAC2 interface reset - bit_offset: 26 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 - - name: CECRST - description: HDMI CEC reset - bit_offset: 30 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 14 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: Timer 5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: Timer 12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: Timer 13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: Timer 14 reset + bit_offset: 8 + bit_size: 1 + - name: TIM18RST + description: Timer 18 reset + bit_offset: 9 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 23 + bit_size: 1 + - name: CANRST + description: CAN reset + bit_offset: 25 + bit_size: 1 + - name: DAC2RST + description: DAC2 interface reset + bit_offset: 26 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: CECRST + description: HDMI CEC reset + bit_offset: 30 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register (RCC_APB2ENR) fields: - - name: SYSCFGEN - description: SYSCFG clock enable - bit_offset: 0 - bit_size: 1 - - name: ADCEN - description: ADC 1 interface clock enable - bit_offset: 9 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: TIM19EN - description: TIM19 timer clock enable - bit_offset: 19 - bit_size: 1 - - name: DBGMCUEN - description: MCU debug module clock enable - bit_offset: 22 - bit_size: 1 - - name: SDADC1EN - description: SDADC1 (Sigma Delta ADC 1) clock enable - bit_offset: 24 - bit_size: 1 - - name: SDADC2EN - description: SDADC2 (Sigma Delta ADC 2) clock enable - bit_offset: 25 - bit_size: 1 - - name: SDADC3EN - description: SDADC3 (Sigma Delta ADC 3) clock enable - bit_offset: 26 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: ADCEN + description: ADC 1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: TIM19EN + description: TIM19 timer clock enable + bit_offset: 19 + bit_size: 1 + - name: DBGMCUEN + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 + - name: SDADC1EN + description: SDADC1 (Sigma Delta ADC 1) clock enable + bit_offset: 24 + bit_size: 1 + - name: SDADC2EN + description: SDADC2 (Sigma Delta ADC 2) clock enable + bit_offset: 25 + bit_size: 1 + - name: SDADC3EN + description: SDADC3 (Sigma Delta ADC 3) clock enable + bit_offset: 26 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register (RCC_APB2RSTR) fields: - - name: SYSCFGRST - description: SYSCFG and COMP reset - bit_offset: 0 - bit_size: 1 - - name: ADCRST - description: ADC interface reset - bit_offset: 9 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: TIM19RST - description: TIM19 timer reset - bit_offset: 19 - bit_size: 1 - - name: DBGMCURST - description: MCU debug module clock enable - bit_offset: 22 - bit_size: 1 - - name: SDADC1RST - description: SDADC1 (Sigma delta ADC 1) reset - bit_offset: 24 - bit_size: 1 - - name: SDADC2RST - description: SDADC2 (Sigma delta ADC 2) reset - bit_offset: 25 - bit_size: 1 - - name: SDADC3RST - description: SDADC3 (Sigma delta ADC 3) reset - bit_offset: 26 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFG and COMP reset + bit_offset: 0 + bit_size: 1 + - name: ADCRST + description: ADC interface reset + bit_offset: 9 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: TIM19RST + description: TIM19 timer reset + bit_offset: 19 + bit_size: 1 + - name: DBGMCURST + description: MCU debug module clock enable + bit_offset: 22 + bit_size: 1 + - name: SDADC1RST + description: SDADC1 (Sigma delta ADC 1) reset + bit_offset: 24 + bit_size: 1 + - name: SDADC2RST + description: SDADC2 (Sigma delta ADC 2) reset + bit_offset: 25 + bit_size: 1 + - name: SDADC3RST + description: SDADC3 (Sigma delta ADC 3) reset + bit_offset: 26 + bit_size: 1 fieldset/BDCR: description: Backup domain control register (RCC_BDCR) fields: - - name: LSEON - description: External Low Speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External Low Speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External Low Speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External Low Speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External Low Speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External Low Speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: Clock configuration register (RCC_CFGR) fields: - - name: SW - description: System clock Switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System Clock Switch Status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: ADCPRE - description: ADC prescaler - bit_offset: 14 - bit_size: 2 - enum: ADCPRE - - name: PLLSRC - description: PLL entry clock source - bit_offset: 15 - bit_size: 2 - enum: PLLSRC - - name: PLLXTPRE - description: HSE divider for PLL entry - bit_offset: 17 - bit_size: 1 - enum: PLLXTPRE - - name: PLLMUL - description: PLL Multiplication Factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: USBPRE - description: USB prescaler - bit_offset: 22 - bit_size: 1 - enum: USBPRE - - name: I2SSRC - description: I2S external clock source selection - bit_offset: 23 - bit_size: 1 - enum: ISSRC - - name: MCO - description: Microcontroller clock output - bit_offset: 24 - bit_size: 3 - enum: MCO - - name: SDPRE - description: SDADC prescaler - bit_offset: 27 - bit_size: 5 - enum: SDPRE - - name: MCOPRE - description: Microcontroller Clock Output Prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE - - name: PLLNODIV - description: Do not divide PLL to MCO - bit_offset: 31 - bit_size: 1 - enum: PLLNODIV + - name: SW + description: System clock Switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System Clock Switch Status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: ADCPRE + description: ADC prescaler + bit_offset: 14 + bit_size: 2 + enum: ADCPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 15 + bit_size: 2 + enum: PLLSRC + - name: PLLXTPRE + description: HSE divider for PLL entry + bit_offset: 17 + bit_size: 1 + enum: PLLXTPRE + - name: PLLMUL + description: PLL Multiplication Factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: USBPRE + description: USB prescaler + bit_offset: 22 + bit_size: 1 + enum: USBPRE + - name: I2SSRC + description: I2S external clock source selection + bit_offset: 23 + bit_size: 1 + enum: ISSRC + - name: MCO + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCO + - name: SDPRE + description: SDADC prescaler + bit_offset: 27 + bit_size: 5 + enum: SDPRE + - name: MCOPRE + description: Microcontroller Clock Output Prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE + - name: PLLNODIV + description: Do not divide PLL to MCO + bit_offset: 31 + bit_size: 1 + enum: PLLNODIV fieldset/CFGR2: description: Clock configuration register 2 fields: - - name: PREDIV - description: PREDIV division factor - bit_offset: 0 - bit_size: 4 - enum: PREDIV - - name: ADC12PRES - description: ADC1 and ADC2 prescaler - bit_offset: 4 - bit_size: 5 - enum: ADCPRES - - name: ADC1PRES - description: ADC1 prescaler - bit_offset: 4 - bit_size: 5 - enum: ADCPRES - - name: ADC34PRES - description: ADC3 and ADC4 prescaler - bit_offset: 9 - bit_size: 5 - enum: ADCPRES + - name: PREDIV + description: PREDIV division factor + bit_offset: 0 + bit_size: 4 + enum: PREDIV + - name: ADC12PRES + description: ADC1 and ADC2 prescaler + bit_offset: 4 + bit_size: 5 + enum: ADCPRES + - name: ADC1PRES + description: ADC1 prescaler + bit_offset: 4 + bit_size: 5 + enum: ADCPRES + - name: ADC34PRES + description: ADC3 and ADC4 prescaler + bit_offset: 9 + bit_size: 5 + enum: ADCPRES fieldset/CFGR3: description: Clock configuration register 3 fields: - - name: USART1SW - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - enum: USARTSW - - name: I2C1SW - description: I2C1 clock source selection - bit_offset: 4 - bit_size: 1 - enum: ICSW - - name: I2C2SW - description: I2C2 clock source selection - bit_offset: 5 - bit_size: 1 - enum: ICSW - - name: CECSW - description: HDMI CEC clock source selection - bit_offset: 6 - bit_size: 1 - enum: CECSW - - name: I2C3SW - description: I2C3 clock source selection - bit_offset: 6 - bit_size: 1 - enum: ICSW - - name: TIM1SW - description: Timer1 clock source selection - bit_offset: 8 - bit_size: 1 - enum: TIMSW - - name: TIM8SW - description: Timer8 clock source selection - bit_offset: 9 - bit_size: 1 - enum: TIMSW - - name: TIM15SW - description: Timer15 clock source selection - bit_offset: 10 - bit_size: 1 - enum: TIMSW - - name: TIM16SW - description: Timer16 clock source selection - bit_offset: 11 - bit_size: 1 - enum: TIMSW - - name: HRTIM1SW - description: Hrtim1 clock source selection - bit_offset: 12 - bit_size: 1 - enum: TIMSW - - name: TIM17SW - description: Timer17 clock source selection - bit_offset: 13 - bit_size: 1 - enum: TIMSW - - name: TIM20SW - description: Timer20 clock source selection - bit_offset: 15 - bit_size: 1 - enum: TIMSW - - name: USART2SW - description: USART2 clock source selection - bit_offset: 16 - bit_size: 2 - enum: USARTSW - - name: USART3SW - description: USART3 clock source selection - bit_offset: 18 - bit_size: 2 - enum: USARTSW - - name: UART4SW - description: UART4 clock source selection - bit_offset: 20 - bit_size: 2 - enum: USARTSW - - name: UART5SW - description: UART5 clock source selection - bit_offset: 22 - bit_size: 2 - enum: USARTSW - - name: TIM2SW - description: Timer2 clock source selection - bit_offset: 24 - bit_size: 1 - enum: TIMSW - - name: TIM34SW - description: Timer34 clock source selection - bit_offset: 25 - bit_size: 1 - enum: TIMSW + - name: USART1SW + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: USARTSW + - name: I2C1SW + description: I2C1 clock source selection + bit_offset: 4 + bit_size: 1 + enum: ICSW + - name: I2C2SW + description: I2C2 clock source selection + bit_offset: 5 + bit_size: 1 + enum: ICSW + - name: CECSW + description: HDMI CEC clock source selection + bit_offset: 6 + bit_size: 1 + enum: CECSW + - name: I2C3SW + description: I2C3 clock source selection + bit_offset: 6 + bit_size: 1 + enum: ICSW + - name: TIM1SW + description: Timer1 clock source selection + bit_offset: 8 + bit_size: 1 + enum: TIMSW + - name: TIM8SW + description: Timer8 clock source selection + bit_offset: 9 + bit_size: 1 + enum: TIMSW + - name: TIM15SW + description: Timer15 clock source selection + bit_offset: 10 + bit_size: 1 + enum: TIMSW + - name: TIM16SW + description: Timer16 clock source selection + bit_offset: 11 + bit_size: 1 + enum: TIMSW + - name: HRTIM1SW + description: Hrtim1 clock source selection + bit_offset: 12 + bit_size: 1 + enum: TIMSW + - name: TIM17SW + description: Timer17 clock source selection + bit_offset: 13 + bit_size: 1 + enum: TIMSW + - name: TIM20SW + description: Timer20 clock source selection + bit_offset: 15 + bit_size: 1 + enum: TIMSW + - name: USART2SW + description: USART2 clock source selection + bit_offset: 16 + bit_size: 2 + enum: USARTSW + - name: USART3SW + description: USART3 clock source selection + bit_offset: 18 + bit_size: 2 + enum: USARTSW + - name: UART4SW + description: UART4 clock source selection + bit_offset: 20 + bit_size: 2 + enum: USARTSW + - name: UART5SW + description: UART5 clock source selection + bit_offset: 22 + bit_size: 2 + enum: USARTSW + - name: TIM2SW + description: Timer2 clock source selection + bit_offset: 24 + bit_size: 1 + enum: TIMSW + - name: TIM34SW + description: Timer34 clock source selection + bit_offset: 25 + bit_size: 1 + enum: TIMSW fieldset/CIR: description: Clock interrupt register (RCC_CIR) fields: - - name: LSIRDYF - description: LSI Ready Interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE Ready Interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI Ready Interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE Ready Interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL Ready Interrupt flag - bit_offset: 4 - bit_size: 1 - - name: CSSF - description: Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI Ready Interrupt Enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE Ready Interrupt Enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI Ready Interrupt Enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE Ready Interrupt Enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL Ready Interrupt Enable - bit_offset: 12 - bit_size: 1 - - name: LSIRDYC - description: LSI Ready Interrupt Clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE Ready Interrupt Clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI Ready Interrupt Clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE Ready Interrupt Clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL Ready Interrupt Clear - bit_offset: 20 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI Ready Interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE Ready Interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI Ready Interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE Ready Interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL Ready Interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI Ready Interrupt Enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE Ready Interrupt Enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI Ready Interrupt Enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE Ready Interrupt Enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL Ready Interrupt Enable + bit_offset: 12 + bit_size: 1 + - name: LSIRDYC + description: LSI Ready Interrupt Clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE Ready Interrupt Clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI Ready Interrupt Clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE Ready Interrupt Clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL Ready Interrupt Clear + bit_offset: 20 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal High Speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal High Speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal High Speed clock Calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: External High Speed clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: External High Speed clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: External High Speed clock Bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: Internal High Speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal High Speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal High Speed clock Calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: External High Speed clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: External High Speed clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: External High Speed clock Bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: Control/status register (RCC_CSR) fields: - - name: LSION - description: Internal low speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: V18PWRRSTF - description: Reset flag of the 1.8 V domain - bit_offset: 23 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: V18PWRRSTF + description: Reset flag of the 1.8 V domain + bit_offset: 23 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 enum/ADCPRE: bit_size: 2 variants: - - name: Div2 - description: PCLK divided by 2 - value: 0 - - name: Div4 - description: PCLK divided by 4 - value: 1 - - name: Div6 - description: PCLK divided by 6 - value: 2 - - name: Div8 - description: PCLK divided by 8 - value: 3 + - name: Div2 + description: PCLK divided by 2 + value: 0 + - name: Div4 + description: PCLK divided by 4 + value: 1 + - name: Div6 + description: PCLK divided by 6 + value: 2 + - name: Div8 + description: PCLK divided by 8 + value: 3 enum/ADCPRES: bit_size: 5 variants: - - name: NoClock - description: No clock - value: 0 - - name: Div1 - description: PLL clock not divided - value: 16 - - name: Div2 - description: PLL clock divided by 2 - value: 17 - - name: Div4 - description: PLL clock divided by 4 - value: 18 - - name: Div6 - description: PLL clock divided by 6 - value: 19 - - name: Div8 - description: PLL clock divided by 8 - value: 20 - - name: Div10 - description: PLL clock divided by 10 - value: 21 - - name: Div12 - description: PLL clock divided by 12 - value: 22 - - name: Div16 - description: PLL clock divided by 16 - value: 23 - - name: Div32 - description: PLL clock divided by 32 - value: 24 - - name: Div64 - description: PLL clock divided by 64 - value: 25 - - name: Div128 - description: PLL clock divided by 128 - value: 26 - - name: Div256 - description: PLL clock divided by 256 - value: 27 + - name: NoClock + description: No clock + value: 0 + - name: Div1 + description: PLL clock not divided + value: 16 + - name: Div2 + description: PLL clock divided by 2 + value: 17 + - name: Div4 + description: PLL clock divided by 4 + value: 18 + - name: Div6 + description: PLL clock divided by 6 + value: 19 + - name: Div8 + description: PLL clock divided by 8 + value: 20 + - name: Div10 + description: PLL clock divided by 10 + value: 21 + - name: Div12 + description: PLL clock divided by 12 + value: 22 + - name: Div16 + description: PLL clock divided by 16 + value: 23 + - name: Div32 + description: PLL clock divided by 32 + value: 24 + - name: Div64 + description: PLL clock divided by 64 + value: 25 + - name: Div128 + description: PLL clock divided by 128 + value: 26 + - name: Div256 + description: PLL clock divided by 256 + value: 27 enum/CECSW: bit_size: 1 variants: - - name: HSI_Div244 - description: HSI clock divided by 244 selected as CEC clock source - value: 0 - - name: LSE - description: LSE clock selected as CEC clock source - value: 1 + - name: HSI_Div244 + description: HSI clock divided by 244 selected as CEC clock source + value: 0 + - name: LSE + description: LSE clock selected as CEC clock source + value: 1 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/ICSW: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as I2C clock source - value: 0 - - name: SYSCLK - description: SYSCLK clock selected as I2C clock source - value: 1 + - name: HSI + description: HSI clock selected as I2C clock source + value: 0 + - name: SYSCLK + description: SYSCLK clock selected as I2C clock source + value: 1 enum/ISSRC: bit_size: 1 variants: - - name: SYSCLK - description: System clock used as I2S clock source - value: 0 - - name: CKIN - description: External clock mapped on the I2S_CKIN pin used as I2S clock source - value: 1 + - name: SYSCLK + description: System clock used as I2S clock source + value: 0 + - name: CKIN + description: External clock mapped on the I2S_CKIN pin used as I2S clock source + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low drive capacity - value: 0 - - name: MediumHigh - description: Medium-high drive capacity - value: 1 - - name: MediumLow - description: Medium-low drive capacity - value: 2 - - name: High - description: High drive capacity - value: 3 + - name: Low + description: Low drive capacity + value: 0 + - name: MediumHigh + description: Medium-high drive capacity + value: 1 + - name: MediumLow + description: Medium-low drive capacity + value: 2 + - name: High + description: High drive capacity + value: 3 enum/MCO: bit_size: 3 variants: - - name: NoMCO - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: LSI - description: Internal low speed (LSI) oscillator clock selected - value: 2 - - name: LSE - description: External low speed (LSE) oscillator clock selected - value: 3 - - name: SYSCLK - description: System clock selected - value: 4 - - name: HSI - description: Internal RC 8 MHz (HSI) oscillator clock selected - value: 5 - - name: HSE - description: External 4-32 MHz (HSE) oscillator clock selected - value: 6 - - name: PLL - description: "PLL clock selected (divided by 1 or 2, depending en PLLNODIV)" - value: 7 + - name: NoMCO + description: MCO output disabled, no clock on MCO + value: 0 + - name: LSI + description: Internal low speed (LSI) oscillator clock selected + value: 2 + - name: LSE + description: External low speed (LSE) oscillator clock selected + value: 3 + - name: SYSCLK + description: System clock selected + value: 4 + - name: HSI + description: Internal RC 8 MHz (HSI) oscillator clock selected + value: 5 + - name: HSE + description: External 4-32 MHz (HSE) oscillator clock selected + value: 6 + - name: PLL + description: PLL clock selected (divided by 1 or 2, depending en PLLNODIV) + value: 7 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: MCO is divided by 1 - value: 0 - - name: Div2 - description: MCO is divided by 2 - value: 1 - - name: Div4 - description: MCO is divided by 4 - value: 2 - - name: Div8 - description: MCO is divided by 8 - value: 3 - - name: Div16 - description: MCO is divided by 16 - value: 4 - - name: Div32 - description: MCO is divided by 32 - value: 5 - - name: Div64 - description: MCO is divided by 64 - value: 6 - - name: Div128 - description: MCO is divided by 128 - value: 7 + - name: Div1 + description: MCO is divided by 1 + value: 0 + - name: Div2 + description: MCO is divided by 2 + value: 1 + - name: Div4 + description: MCO is divided by 4 + value: 2 + - name: Div8 + description: MCO is divided by 8 + value: 3 + - name: Div16 + description: MCO is divided by 16 + value: 4 + - name: Div32 + description: MCO is divided by 32 + value: 5 + - name: Div64 + description: MCO is divided by 64 + value: 6 + - name: Div128 + description: MCO is divided by 128 + value: 7 enum/PLLMUL: bit_size: 4 variants: - - name: Mul2 - description: PLL input clock x2 - value: 0 - - name: Mul3 - description: PLL input clock x3 - value: 1 - - name: Mul4 - description: PLL input clock x4 - value: 2 - - name: Mul5 - description: PLL input clock x5 - value: 3 - - name: Mul6 - description: PLL input clock x6 - value: 4 - - name: Mul7 - description: PLL input clock x7 - value: 5 - - name: Mul8 - description: PLL input clock x8 - value: 6 - - name: Mul9 - description: PLL input clock x9 - value: 7 - - name: Mul10 - description: PLL input clock x10 - value: 8 - - name: Mul11 - description: PLL input clock x11 - value: 9 - - name: Mul12 - description: PLL input clock x12 - value: 10 - - name: Mul13 - description: PLL input clock x13 - value: 11 - - name: Mul14 - description: PLL input clock x14 - value: 12 - - name: Mul15 - description: PLL input clock x15 - value: 13 - - name: Mul16 - description: PLL input clock x16 - value: 14 - - name: Mul16x - description: PLL input clock x16 - value: 15 + - name: Mul2 + description: PLL input clock x2 + value: 0 + - name: Mul3 + description: PLL input clock x3 + value: 1 + - name: Mul4 + description: PLL input clock x4 + value: 2 + - name: Mul5 + description: PLL input clock x5 + value: 3 + - name: Mul6 + description: PLL input clock x6 + value: 4 + - name: Mul7 + description: PLL input clock x7 + value: 5 + - name: Mul8 + description: PLL input clock x8 + value: 6 + - name: Mul9 + description: PLL input clock x9 + value: 7 + - name: Mul10 + description: PLL input clock x10 + value: 8 + - name: Mul11 + description: PLL input clock x11 + value: 9 + - name: Mul12 + description: PLL input clock x12 + value: 10 + - name: Mul13 + description: PLL input clock x13 + value: 11 + - name: Mul14 + description: PLL input clock x14 + value: 12 + - name: Mul15 + description: PLL input clock x15 + value: 13 + - name: Mul16 + description: PLL input clock x16 + value: 14 + - name: Mul16x + description: PLL input clock x16 + value: 15 enum/PLLNODIV: bit_size: 1 variants: - - name: Div2 - description: PLL is divided by 2 for MCO - value: 0 - - name: Div1 - description: PLL is not divided for MCO - value: 1 + - name: Div2 + description: PLL is divided by 2 for MCO + value: 0 + - name: Div1 + description: PLL is not divided for MCO + value: 1 enum/PLLSRC: bit_size: 2 variants: - - name: HSI_Div2 - description: HSI divided by 2 selected as PLL input clock - value: 0 - - name: HSI_Div_PREDIV - description: HSI divided by PREDIV selected as PLL input clock - value: 1 - - name: HSE_Div_PREDIV - description: HSE divided by PREDIV selected as PLL input clock - value: 2 + - name: HSI_Div2 + description: HSI divided by 2 selected as PLL input clock + value: 0 + - name: HSI_Div_PREDIV + description: HSI divided by PREDIV selected as PLL input clock + value: 1 + - name: HSE_Div_PREDIV + description: HSE divided by PREDIV selected as PLL input clock + value: 2 enum/PLLXTPRE: bit_size: 1 variants: - - name: Div1 - description: HSE clock not divided - value: 0 - - name: Div2 - description: HSE clock divided by 2 - value: 1 + - name: Div1 + description: HSE clock not divided + value: 0 + - name: Div2 + description: HSE clock divided by 2 + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/PREDIV: bit_size: 4 variants: - - name: Div1 - description: PREDIV input clock not divided - value: 0 - - name: Div2 - description: PREDIV input clock divided by 2 - value: 1 - - name: Div3 - description: PREDIV input clock divided by 3 - value: 2 - - name: Div4 - description: PREDIV input clock divided by 4 - value: 3 - - name: Div5 - description: PREDIV input clock divided by 5 - value: 4 - - name: Div6 - description: PREDIV input clock divided by 6 - value: 5 - - name: Div7 - description: PREDIV input clock divided by 7 - value: 6 - - name: Div8 - description: PREDIV input clock divided by 8 - value: 7 - - name: Div9 - description: PREDIV input clock divided by 9 - value: 8 - - name: Div10 - description: PREDIV input clock divided by 10 - value: 9 - - name: Div11 - description: PREDIV input clock divided by 11 - value: 10 - - name: Div12 - description: PREDIV input clock divided by 12 - value: 11 - - name: Div13 - description: PREDIV input clock divided by 13 - value: 12 - - name: Div14 - description: PREDIV input clock divided by 14 - value: 13 - - name: Div15 - description: PREDIV input clock divided by 15 - value: 14 - - name: Div16 - description: PREDIV input clock divided by 16 - value: 15 + - name: Div1 + description: PREDIV input clock not divided + value: 0 + - name: Div2 + description: PREDIV input clock divided by 2 + value: 1 + - name: Div3 + description: PREDIV input clock divided by 3 + value: 2 + - name: Div4 + description: PREDIV input clock divided by 4 + value: 3 + - name: Div5 + description: PREDIV input clock divided by 5 + value: 4 + - name: Div6 + description: PREDIV input clock divided by 6 + value: 5 + - name: Div7 + description: PREDIV input clock divided by 7 + value: 6 + - name: Div8 + description: PREDIV input clock divided by 8 + value: 7 + - name: Div9 + description: PREDIV input clock divided by 9 + value: 8 + - name: Div10 + description: PREDIV input clock divided by 10 + value: 9 + - name: Div11 + description: PREDIV input clock divided by 11 + value: 10 + - name: Div12 + description: PREDIV input clock divided by 12 + value: 11 + - name: Div13 + description: PREDIV input clock divided by 13 + value: 12 + - name: Div14 + description: PREDIV input clock divided by 14 + value: 13 + - name: Div15 + description: PREDIV input clock divided by 15 + value: 14 + - name: Div16 + description: PREDIV input clock divided by 16 + value: 15 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SDPRE: bit_size: 5 variants: - - name: Div2 - description: SYSCLK divided by 2 - value: 0 - - name: Div4 - description: SYSCLK divided by 4 - value: 17 - - name: Div6 - description: SYSCLK divided by 6 - value: 18 - - name: Div8 - description: SYSCLK divided by 8 - value: 19 - - name: Div10 - description: SYSCLK divided by 10 - value: 20 - - name: Div12 - description: SYSCLK divided by 12 - value: 21 - - name: Div14 - description: SYSCLK divided by 14 - value: 22 - - name: Div16 - description: SYSCLK divided by 16 - value: 23 - - name: Div20 - description: SYSCLK divided by 20 - value: 24 - - name: Div24 - description: SYSCLK divided by 24 - value: 25 - - name: Div28 - description: SYSCLK divided by 28 - value: 26 - - name: Div32 - description: SYSCLK divided by 32 - value: 27 - - name: Div36 - description: SYSCLK divided by 36 - value: 28 - - name: Div40 - description: SYSCLK divided by 40 - value: 29 - - name: Div44 - description: SYSCLK divided by 44 - value: 30 - - name: Div48 - description: SYSCLK divided by 48 - value: 31 + - name: Div2 + description: SYSCLK divided by 2 + value: 0 + - name: Div4 + description: SYSCLK divided by 4 + value: 17 + - name: Div6 + description: SYSCLK divided by 6 + value: 18 + - name: Div8 + description: SYSCLK divided by 8 + value: 19 + - name: Div10 + description: SYSCLK divided by 10 + value: 20 + - name: Div12 + description: SYSCLK divided by 12 + value: 21 + - name: Div14 + description: SYSCLK divided by 14 + value: 22 + - name: Div16 + description: SYSCLK divided by 16 + value: 23 + - name: Div20 + description: SYSCLK divided by 20 + value: 24 + - name: Div24 + description: SYSCLK divided by 24 + value: 25 + - name: Div28 + description: SYSCLK divided by 28 + value: 26 + - name: Div32 + description: SYSCLK divided by 32 + value: 27 + - name: Div36 + description: SYSCLK divided by 36 + value: 28 + - name: Div40 + description: SYSCLK divided by 40 + value: 29 + - name: Div44 + description: SYSCLK divided by 44 + value: 30 + - name: Div48 + description: SYSCLK divided by 48 + value: 31 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/TIMSW: bit_size: 1 variants: - - name: PCLK2 - description: PCLK2 clock (doubled frequency when prescaled) - value: 0 - - name: PLL - description: PLL vco output (running up to 144 MHz) - value: 1 + - name: PCLK2 + description: PCLK2 clock (doubled frequency when prescaled) + value: 0 + - name: PLL + description: PLL vco output (running up to 144 MHz) + value: 1 enum/USARTSW: bit_size: 2 variants: - - name: PCLK - description: PCLK selected as USART clock source - value: 0 - - name: SYSCLK - description: SYSCLK selected as USART clock source - value: 1 - - name: LSE - description: LSE selected as USART clock source - value: 2 - - name: HSI - description: HSI selected as USART clock source - value: 3 + - name: PCLK + description: PCLK selected as USART clock source + value: 0 + - name: SYSCLK + description: SYSCLK selected as USART clock source + value: 1 + - name: LSE + description: LSE selected as USART clock source + value: 2 + - name: HSI + description: HSI selected as USART clock source + value: 3 enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 - description: PLL clock is divided by 1.5 - value: 0 - - name: DIV1 - description: PLL clock is not divided - value: 1 + - name: DIV1_5 + description: PLL clock is divided by 1.5 + value: 0 + - name: DIV1 + description: PLL clock is not divided + value: 1 diff --git a/data/registers/rcc_f4.yaml b/data/registers/rcc_f4.yaml index b9f138a..c4562e4 100644 --- a/data/registers/rcc_f4.yaml +++ b/data/registers/rcc_f4.yaml @@ -1,2548 +1,2547 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: clock control register - byte_offset: 0 - fieldset: CR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 4 - fieldset: PLLCFGR - - name: CFGR - description: clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: CIR - description: clock interrupt register - byte_offset: 12 - fieldset: CIR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 16 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 20 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 24 - fieldset: AHB3RSTR - - name: APB1RSTR - description: APB1 peripheral reset register - byte_offset: 32 - fieldset: APB1RSTR - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 36 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock register - byte_offset: 48 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 52 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 56 - fieldset: AHB3ENR - - name: APB1ENR - description: APB1 peripheral clock enable register - byte_offset: 64 - fieldset: APB1ENR - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 68 - fieldset: APB2ENR - - name: AHB1LPENR - description: AHB1 peripheral clock enable in low power mode register - byte_offset: 80 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: AHB2 peripheral clock enable in low power mode register - byte_offset: 84 - fieldset: AHB2LPENR - - name: AHB3LPENR - description: AHB3 peripheral clock enable in low power mode register - byte_offset: 88 - fieldset: AHB3LPENR - - name: APB1LPENR - description: APB1 peripheral clock enable in low power mode register - byte_offset: 96 - fieldset: APB1LPENR - - name: APB2LPENR - description: APB2 peripheral clock enabled in low power mode register - byte_offset: 100 - fieldset: APB2LPENR - - name: BDCR - description: Backup domain control register - byte_offset: 112 - fieldset: BDCR - - name: CSR - description: clock control & status register - byte_offset: 116 - fieldset: CSR - - name: SSCGR - description: spread spectrum clock generation register - byte_offset: 128 - fieldset: SSCGR - - name: PLLI2SCFGR - description: PLLI2S configuration register - byte_offset: 132 - fieldset: PLLI2SCFGR - - name: PLLSAICFGR - description: RCC PLL configuration register - byte_offset: 136 - fieldset: PLLSAICFGR - - name: DCKCFGR - description: RCC Dedicated Clock Configuration Register - byte_offset: 140 - fieldset: DCKCFGR - - name: CKGATENR - description: Clocks gated enable register - byte_offset: 144 - fieldset: CKGATENR - - name: DCKCFGR2 - description: DCKCFGR2 register - byte_offset: 148 - fieldset: DCKCFGR2 + - name: CR + description: clock control register + byte_offset: 0 + fieldset: CR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 4 + fieldset: PLLCFGR + - name: CFGR + description: clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: CIR + description: clock interrupt register + byte_offset: 12 + fieldset: CIR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 16 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 20 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 24 + fieldset: AHB3RSTR + - name: APB1RSTR + description: APB1 peripheral reset register + byte_offset: 32 + fieldset: APB1RSTR + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 36 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock register + byte_offset: 48 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 52 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 56 + fieldset: AHB3ENR + - name: APB1ENR + description: APB1 peripheral clock enable register + byte_offset: 64 + fieldset: APB1ENR + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 68 + fieldset: APB2ENR + - name: AHB1LPENR + description: AHB1 peripheral clock enable in low power mode register + byte_offset: 80 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: AHB2 peripheral clock enable in low power mode register + byte_offset: 84 + fieldset: AHB2LPENR + - name: AHB3LPENR + description: AHB3 peripheral clock enable in low power mode register + byte_offset: 88 + fieldset: AHB3LPENR + - name: APB1LPENR + description: APB1 peripheral clock enable in low power mode register + byte_offset: 96 + fieldset: APB1LPENR + - name: APB2LPENR + description: APB2 peripheral clock enabled in low power mode register + byte_offset: 100 + fieldset: APB2LPENR + - name: BDCR + description: Backup domain control register + byte_offset: 112 + fieldset: BDCR + - name: CSR + description: clock control & status register + byte_offset: 116 + fieldset: CSR + - name: SSCGR + description: spread spectrum clock generation register + byte_offset: 128 + fieldset: SSCGR + - name: PLLI2SCFGR + description: PLLI2S configuration register + byte_offset: 132 + fieldset: PLLI2SCFGR + - name: PLLSAICFGR + description: RCC PLL configuration register + byte_offset: 136 + fieldset: PLLSAICFGR + - name: DCKCFGR + description: RCC Dedicated Clock Configuration Register + byte_offset: 140 + fieldset: DCKCFGR + - name: CKGATENR + description: Clocks gated enable register + byte_offset: 144 + fieldset: CKGATENR + - name: DCKCFGR2 + description: DCKCFGR2 register + byte_offset: 148 + fieldset: DCKCFGR2 fieldset/AHB1ENR: description: AHB1 peripheral clock register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: IO port I clock enable - bit_offset: 8 - bit_size: 1 - - name: GPIOJEN - description: IO port J clock enable - bit_offset: 9 - bit_size: 1 - - name: GPIOKEN - description: IO port K clock enable - bit_offset: 10 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: BKPSRAMEN - description: Backup SRAM interface clock enable - bit_offset: 18 - bit_size: 1 - - name: CCMDATARAMEN - description: CCM data RAM clock enable - bit_offset: 20 - bit_size: 1 - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 21 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 22 - bit_size: 1 - - name: DMA2DEN - description: DMA2D clock enable - bit_offset: 23 - bit_size: 1 - - name: ETHEN - description: Ethernet MAC clock enable - bit_offset: 25 - bit_size: 1 - - name: ETHTXEN - description: Ethernet Transmission clock enable - bit_offset: 26 - bit_size: 1 - - name: ETHRXEN - description: Ethernet Reception clock enable - bit_offset: 27 - bit_size: 1 - - name: ETHPTPEN - description: Ethernet PTP clock enable - bit_offset: 28 - bit_size: 1 - - name: USB_OTG_HSEN - description: USB OTG HS clock enable - bit_offset: 29 - bit_size: 1 - - name: USB_OTG_HSULPIEN - description: USB OTG HSULPI clock enable - bit_offset: 30 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: IO port I clock enable + bit_offset: 8 + bit_size: 1 + - name: GPIOJEN + description: IO port J clock enable + bit_offset: 9 + bit_size: 1 + - name: GPIOKEN + description: IO port K clock enable + bit_offset: 10 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: BKPSRAMEN + description: Backup SRAM interface clock enable + bit_offset: 18 + bit_size: 1 + - name: CCMDATARAMEN + description: CCM data RAM clock enable + bit_offset: 20 + bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 21 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 22 + bit_size: 1 + - name: DMA2DEN + description: DMA2D clock enable + bit_offset: 23 + bit_size: 1 + - name: ETHEN + description: Ethernet MAC clock enable + bit_offset: 25 + bit_size: 1 + - name: ETHTXEN + description: Ethernet Transmission clock enable + bit_offset: 26 + bit_size: 1 + - name: ETHRXEN + description: Ethernet Reception clock enable + bit_offset: 27 + bit_size: 1 + - name: ETHPTPEN + description: Ethernet PTP clock enable + bit_offset: 28 + bit_size: 1 + - name: USB_OTG_HSEN + description: USB OTG HS clock enable + bit_offset: 29 + bit_size: 1 + - name: USB_OTG_HSULPIEN + description: USB OTG HSULPI clock enable + bit_offset: 30 + bit_size: 1 fieldset/AHB1LPENR: description: AHB1 peripheral clock enable in low power mode register fields: - - name: GPIOALPEN - description: IO port A clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: IO port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: IO port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: IO port D clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: IO port E clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: IO port F clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: IO port G clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: IO port H clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: IO port I clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: GPIOJLPEN - description: IO port J clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: GPIOKLPEN - description: IO port K clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: CRCLPEN - description: CRC clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: FLASHLPEN - description: Flash interface clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM 1interface clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: SRAM2LPEN - description: SRAM 2 interface clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: BKPSRAMLPEN - description: Backup SRAM interface clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SRAM3LPEN - description: SRAM 3 interface clock enable during Sleep mode - bit_offset: 19 - bit_size: 1 - - name: DMA1LPEN - description: DMA1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: DMA2DLPEN - description: DMA2D clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: ETHLPEN - description: Ethernet MAC clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: ETHTXLPEN - description: Ethernet transmission clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: ETHRXLPEN - description: Ethernet reception clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: ETHPTPLPEN - description: Ethernet PTP clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: USB_OTG_HSLPEN - description: USB OTG HS clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: USB_OTG_HSULPILPEN - description: USB OTG HS ULPI clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 - - name: RNGLPEN - description: RNG clock enable during sleep mode - bit_offset: 31 - bit_size: 1 + - name: GPIOALPEN + description: IO port A clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: IO port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: IO port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: IO port D clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: IO port E clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: IO port F clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: IO port G clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: IO port H clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: IO port I clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: GPIOJLPEN + description: IO port J clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: GPIOKLPEN + description: IO port K clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: CRCLPEN + description: CRC clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: FLASHLPEN + description: Flash interface clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM 1interface clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: SRAM2LPEN + description: SRAM 2 interface clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: BKPSRAMLPEN + description: Backup SRAM interface clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SRAM3LPEN + description: SRAM 3 interface clock enable during Sleep mode + bit_offset: 19 + bit_size: 1 + - name: DMA1LPEN + description: DMA1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: DMA2DLPEN + description: DMA2D clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: ETHLPEN + description: Ethernet MAC clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: ETHTXLPEN + description: Ethernet transmission clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: ETHRXLPEN + description: Ethernet reception clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: ETHPTPLPEN + description: Ethernet PTP clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: USB_OTG_HSLPEN + description: USB OTG HS clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: USB_OTG_HSULPILPEN + description: USB OTG HS ULPI clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 + - name: RNGLPEN + description: RNG clock enable during sleep mode + bit_offset: 31 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: IO port I reset - bit_offset: 8 - bit_size: 1 - - name: GPIOJRST - description: IO port J reset - bit_offset: 9 - bit_size: 1 - - name: GPIOKRST - description: IO port K reset - bit_offset: 10 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: DMA1RST - description: DMA2 reset - bit_offset: 21 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 22 - bit_size: 1 - - name: DMA2DRST - description: DMA2D reset - bit_offset: 23 - bit_size: 1 - - name: ETHRST - description: Ethernet MAC reset - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HSRST - description: USB OTG HS module reset - bit_offset: 29 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: IO port I reset + bit_offset: 8 + bit_size: 1 + - name: GPIOJRST + description: IO port J reset + bit_offset: 9 + bit_size: 1 + - name: GPIOKRST + description: IO port K reset + bit_offset: 10 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: DMA1RST + description: DMA2 reset + bit_offset: 21 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 22 + bit_size: 1 + - name: DMA2DRST + description: DMA2D reset + bit_offset: 23 + bit_size: 1 + - name: ETHRST + description: Ethernet MAC reset + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HSRST + description: USB OTG HS module reset + bit_offset: 29 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: DCMIEN - description: Camera interface enable - bit_offset: 0 - bit_size: 1 - - name: CRYPEN - description: CRYP clock enable - bit_offset: 4 - bit_size: 1 - - name: HASHEN - description: Hash modules clock enable - bit_offset: 5 - bit_size: 1 - - name: RNGEN - description: Random number generator clock enable - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB OTG FS clock enable - bit_offset: 7 - bit_size: 1 + - name: DCMIEN + description: Camera interface enable + bit_offset: 0 + bit_size: 1 + - name: CRYPEN + description: CRYP clock enable + bit_offset: 4 + bit_size: 1 + - name: HASHEN + description: Hash modules clock enable + bit_offset: 5 + bit_size: 1 + - name: RNGEN + description: Random number generator clock enable + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB OTG FS clock enable + bit_offset: 7 + bit_size: 1 fieldset/AHB2LPENR: description: AHB2 peripheral clock enable in low power mode register fields: - - name: DCMILPEN - description: Camera interface enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: FSMCLPEN - description: Flexible memory controller module clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: QSPILPEN - description: QUADSPI memory controller module clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: CRYPLPEN - description: Cryptography modules clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: HASHLPEN - description: Hash modules clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: RNGLPEN - description: Random number generator clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSLPEN - description: USB OTG FS clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 + - name: DCMILPEN + description: Camera interface enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: FSMCLPEN + description: Flexible memory controller module clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: QSPILPEN + description: QUADSPI memory controller module clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: CRYPLPEN + description: Cryptography modules clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: HASHLPEN + description: Hash modules clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: RNGLPEN + description: Random number generator clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSLPEN + description: USB OTG FS clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: DCMIRST - description: Camera interface reset - bit_offset: 0 - bit_size: 1 - - name: CRYPRST - description: CRYP module reset - bit_offset: 4 - bit_size: 1 - - name: HSAHRST - description: Hash module reset - bit_offset: 5 - bit_size: 1 - - name: RNGRST - description: Random number generator module reset - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSRST - description: USB OTG FS module reset - bit_offset: 7 - bit_size: 1 + - name: DCMIRST + description: Camera interface reset + bit_offset: 0 + bit_size: 1 + - name: CRYPRST + description: CRYP module reset + bit_offset: 4 + bit_size: 1 + - name: HSAHRST + description: Hash module reset + bit_offset: 5 + bit_size: 1 + - name: RNGRST + description: Random number generator module reset + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSRST + description: USB OTG FS module reset + bit_offset: 7 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: FMCEN - description: Flexible static memory controller module clock enable - bit_offset: 0 - bit_size: 1 - - name: FSMCEN - description: Flexible static memory controller module clock enable - bit_offset: 0 - bit_size: 1 - - name: QUADSPIEN - description: QUADSPI memory controller module clock enable - bit_offset: 1 - bit_size: 1 + - name: FMCEN + description: Flexible static memory controller module clock enable + bit_offset: 0 + bit_size: 1 + - name: FSMCEN + description: Flexible static memory controller module clock enable + bit_offset: 0 + bit_size: 1 + - name: QUADSPIEN + description: QUADSPI memory controller module clock enable + bit_offset: 1 + bit_size: 1 fieldset/AHB3LPENR: description: AHB3 peripheral clock enable in low power mode register fields: - - name: FMCLPEN - description: Flexible static memory controller module clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: FSMCLPEN - description: Flexible static memory controller module clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: QSPILPEN - description: QUADSPI memory controller module clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 + - name: FMCLPEN + description: Flexible static memory controller module clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: FSMCLPEN + description: Flexible static memory controller module clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: QSPILPEN + description: QUADSPI memory controller module clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: FMCRST - description: Flexible static memory controller module reset - bit_offset: 0 - bit_size: 1 - - name: FSMCRST - description: Flexible static memory controller module reset - bit_offset: 0 - bit_size: 1 - - name: QSPIRST - description: QUADSPI module reset - bit_offset: 1 - bit_size: 1 + - name: FMCRST + description: Flexible static memory controller module reset + bit_offset: 0 + bit_size: 1 + - name: FSMCRST + description: Flexible static memory controller module reset + bit_offset: 0 + bit_size: 1 + - name: QSPIRST + description: QUADSPI module reset + bit_offset: 1 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register fields: - - name: TIM2EN - description: TIM2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: TIM12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: TIM13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: TIM14 clock enable - bit_offset: 8 - bit_size: 1 - - name: LPTIM1EN - description: LPTIM1 clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: SPDIFEN - description: SPDIF-IN clock enable - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: FMPI2C1EN - description: FMPI2C1 clock enable - bit_offset: 24 - bit_size: 1 - - name: CAN1EN - description: CAN 1 clock enable - bit_offset: 25 - bit_size: 1 - - name: CAN2EN - description: CAN 2 clock enable - bit_offset: 26 - bit_size: 1 - - name: CAN3EN - description: CAN 3 clock enable - bit_offset: 27 - bit_size: 1 - - name: CECEN - description: CEC interface clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: UART7EN - description: UART7 clock enable - bit_offset: 30 - bit_size: 1 - - name: UART8EN - description: UART8 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: TIM12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: TIM13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: TIM14 clock enable + bit_offset: 8 + bit_size: 1 + - name: LPTIM1EN + description: LPTIM1 clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: SPDIFEN + description: SPDIF-IN clock enable + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: FMPI2C1EN + description: FMPI2C1 clock enable + bit_offset: 24 + bit_size: 1 + - name: CAN1EN + description: CAN 1 clock enable + bit_offset: 25 + bit_size: 1 + - name: CAN2EN + description: CAN 2 clock enable + bit_offset: 26 + bit_size: 1 + - name: CAN3EN + description: CAN 3 clock enable + bit_offset: 27 + bit_size: 1 + - name: CECEN + description: CEC interface clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: UART7EN + description: UART7 clock enable + bit_offset: 30 + bit_size: 1 + - name: UART8EN + description: UART8 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1LPENR: description: APB1 peripheral clock enable in low power mode register fields: - - name: TIM2LPEN - description: TIM2 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: TIM3 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: TIM4 clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: TIM5 clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: TIM7 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: TIM12 clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: TIM13 clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: TIM14 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: LPTIM1LPEN - description: LPTIM1 clock enable during sleep mode - bit_offset: 9 - bit_size: 1 - - name: RTCAPBLPEN - description: RTC APB clock enable during sleep mode - bit_offset: 10 - bit_size: 1 - - name: WWDGLPEN - description: Window watchdog clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: SPI3 clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SPDIFLPEN - description: SPDIF clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: USART2LPEN - description: USART2 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART3 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: UART4 clock enable during Sleep mode - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: UART5 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: I2C3LPEN - description: I2C3 clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: FMPI2C1LPEN - description: FMPI2C1 clock enable during Sleep - bit_offset: 24 - bit_size: 1 - - name: CAN1LPEN - description: CAN 1 clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: CAN2LPEN - description: CAN 2 clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: CAN3LPEN - description: CAN3 clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: CECLPEN - description: CEC clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: PWRLPEN - description: Power interface clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: DACLPEN - description: DAC interface clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: UART7LPEN - description: UART7 clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 - - name: UART8LPEN - description: UART8 clock enable during Sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: TIM2 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: TIM3 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: TIM4 clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: TIM5 clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: TIM7 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: TIM12 clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: TIM13 clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: TIM14 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: LPTIM1LPEN + description: LPTIM1 clock enable during sleep mode + bit_offset: 9 + bit_size: 1 + - name: RTCAPBLPEN + description: RTC APB clock enable during sleep mode + bit_offset: 10 + bit_size: 1 + - name: WWDGLPEN + description: Window watchdog clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: SPI3 clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SPDIFLPEN + description: SPDIF clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: USART2LPEN + description: USART2 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART3 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: UART4 clock enable during Sleep mode + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: UART5 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: I2C3LPEN + description: I2C3 clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: FMPI2C1LPEN + description: FMPI2C1 clock enable during Sleep + bit_offset: 24 + bit_size: 1 + - name: CAN1LPEN + description: CAN 1 clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: CAN2LPEN + description: CAN 2 clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: CAN3LPEN + description: CAN3 clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: CECLPEN + description: CEC clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: PWRLPEN + description: Power interface clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: DACLPEN + description: DAC interface clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: UART7LPEN + description: UART7 clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 + - name: UART8LPEN + description: UART8 clock enable during Sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register fields: - - name: TIM2RST - description: TIM2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: TIM12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: TIM13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: TIM14 reset - bit_offset: 8 - bit_size: 1 - - name: LPTIM1RST - description: LPTIM1 reset - bit_offset: 9 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI 2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI 3 reset - bit_offset: 15 - bit_size: 1 - - name: SPDIFRST - description: SPDIF-IN reset - bit_offset: 16 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C 1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C 2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: FMPI2C1RST - description: FMPI2C1 reset - bit_offset: 24 - bit_size: 1 - - name: CAN1RST - description: CAN1 reset - bit_offset: 25 - bit_size: 1 - - name: CAN2RST - description: CAN2 reset - bit_offset: 26 - bit_size: 1 - - name: CAN3RST - description: CAN 3 reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC reset - bit_offset: 29 - bit_size: 1 - - name: UART7RST - description: UART 7 reset - bit_offset: 30 - bit_size: 1 - - name: UART8RST - description: UART 8 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: TIM12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: TIM13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: TIM14 reset + bit_offset: 8 + bit_size: 1 + - name: LPTIM1RST + description: LPTIM1 reset + bit_offset: 9 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI 2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI 3 reset + bit_offset: 15 + bit_size: 1 + - name: SPDIFRST + description: SPDIF-IN reset + bit_offset: 16 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C 1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C 2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: FMPI2C1RST + description: FMPI2C1 reset + bit_offset: 24 + bit_size: 1 + - name: CAN1RST + description: CAN1 reset + bit_offset: 25 + bit_size: 1 + - name: CAN2RST + description: CAN2 reset + bit_offset: 26 + bit_size: 1 + - name: CAN3RST + description: CAN 3 reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC reset + bit_offset: 29 + bit_size: 1 + - name: UART7RST + description: UART 7 reset + bit_offset: 30 + bit_size: 1 + - name: UART8RST + description: UART 8 reset + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: TIM1EN - description: TIM1 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM8EN - description: TIM8 clock enable - bit_offset: 1 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 clock enable - bit_offset: 5 - bit_size: 1 - - name: UART9EN - description: UART9 clock enable - bit_offset: 6 - bit_size: 1 - - name: UART10EN - description: UART10 clock enable - bit_offset: 7 - bit_size: 1 - - name: ADC1EN - description: ADC1 clock enable - bit_offset: 8 - bit_size: 1 - - name: ADC2EN - description: ADC2 clock enable - bit_offset: 9 - bit_size: 1 - - name: ADC3EN - description: ADC3 clock enable - bit_offset: 10 - bit_size: 1 - - name: SDIOEN - description: SDIO clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: SPI4EN - description: SPI4 clock enable - bit_offset: 13 - bit_size: 1 - - name: SYSCFGEN - description: System configuration controller clock enable - bit_offset: 14 - bit_size: 1 - - name: EXTITEN - description: EXTI ans external IT clock enable - bit_offset: 15 - bit_size: 1 - - name: TIM9EN - description: TIM9 clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM10EN - description: TIM10 clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM11EN - description: TIM11 clock enable - bit_offset: 18 - bit_size: 1 - - name: SPI5EN - description: SPI5 clock enable - bit_offset: 20 - bit_size: 1 - - name: SPI6EN - description: SPI6 clock enable - bit_offset: 21 - bit_size: 1 - - name: SAI1EN - description: SAI 1 clock enable - bit_offset: 22 - bit_size: 1 - - name: SAI2EN - description: SAI2 clock enable - bit_offset: 23 - bit_size: 1 - - name: DFSDMEN - description: DFSDMEN - bit_offset: 24 - bit_size: 1 - - name: DFSDM2EN - description: DFSDM2 clock enable - bit_offset: 25 - bit_size: 1 - - name: LTDCEN - description: LTDC clock enable - bit_offset: 26 - bit_size: 1 - - name: DSIEN - description: DSI clocks enable - bit_offset: 27 - bit_size: 1 + - name: TIM1EN + description: TIM1 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM8EN + description: TIM8 clock enable + bit_offset: 1 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 clock enable + bit_offset: 5 + bit_size: 1 + - name: UART9EN + description: UART9 clock enable + bit_offset: 6 + bit_size: 1 + - name: UART10EN + description: UART10 clock enable + bit_offset: 7 + bit_size: 1 + - name: ADC1EN + description: ADC1 clock enable + bit_offset: 8 + bit_size: 1 + - name: ADC2EN + description: ADC2 clock enable + bit_offset: 9 + bit_size: 1 + - name: ADC3EN + description: ADC3 clock enable + bit_offset: 10 + bit_size: 1 + - name: SDIOEN + description: SDIO clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: SPI4EN + description: SPI4 clock enable + bit_offset: 13 + bit_size: 1 + - name: SYSCFGEN + description: System configuration controller clock enable + bit_offset: 14 + bit_size: 1 + - name: EXTITEN + description: EXTI ans external IT clock enable + bit_offset: 15 + bit_size: 1 + - name: TIM9EN + description: TIM9 clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM10EN + description: TIM10 clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM11EN + description: TIM11 clock enable + bit_offset: 18 + bit_size: 1 + - name: SPI5EN + description: SPI5 clock enable + bit_offset: 20 + bit_size: 1 + - name: SPI6EN + description: SPI6 clock enable + bit_offset: 21 + bit_size: 1 + - name: SAI1EN + description: SAI 1 clock enable + bit_offset: 22 + bit_size: 1 + - name: SAI2EN + description: SAI2 clock enable + bit_offset: 23 + bit_size: 1 + - name: DFSDMEN + description: DFSDMEN + bit_offset: 24 + bit_size: 1 + - name: DFSDM2EN + description: DFSDM2 clock enable + bit_offset: 25 + bit_size: 1 + - name: LTDCEN + description: LTDC clock enable + bit_offset: 26 + bit_size: 1 + - name: DSIEN + description: DSI clocks enable + bit_offset: 27 + bit_size: 1 fieldset/APB2LPENR: description: APB2 peripheral clock enabled in low power mode register fields: - - name: TIM1LPEN - description: TIM1 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM8LPEN - description: TIM8 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: USART1LPEN - description: USART1 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: UART9LPEN - description: UART9 clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: UART10LPEN - description: UART10 clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: ADC1LPEN - description: ADC1 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: ADC2LPEN - description: ADC2 clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: ADC3LPEN - description: ADC 3 clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: SDIOLPEN - description: SDIO clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: SPI 1 clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: SPI4LPEN - description: SPI4 clock enable during Sleep mode - bit_offset: 13 - bit_size: 1 - - name: SYSCFGLPEN - description: System configuration controller clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: EXTITLPEN - description: EXTI and External IT clock enable during sleep mode - bit_offset: 15 - bit_size: 1 - - name: TIM9LPEN - description: TIM9 clock enable during sleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM10LPEN - description: TIM10 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM11LPEN - description: TIM11 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SPI5LPEN - description: SPI5 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: SPI6LPEN - description: SPI 6 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: SAI1LPEN - description: SAI1 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: SAI2LPEN - description: SAI2 clock enable - bit_offset: 23 - bit_size: 1 - - name: DFSDMLPEN - description: DFSDMLPEN - bit_offset: 24 - bit_size: 1 - - name: DFSDM2LPEN - description: DFSDM2 clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: LTDCLPEN - description: LTDC clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: DSILPEN - description: DSI clocks enable during Sleep mode - bit_offset: 27 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM8LPEN + description: TIM8 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: USART1LPEN + description: USART1 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: UART9LPEN + description: UART9 clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: UART10LPEN + description: UART10 clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: ADC1LPEN + description: ADC1 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: ADC2LPEN + description: ADC2 clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: ADC3LPEN + description: ADC 3 clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: SDIOLPEN + description: SDIO clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: SPI 1 clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: SPI4LPEN + description: SPI4 clock enable during Sleep mode + bit_offset: 13 + bit_size: 1 + - name: SYSCFGLPEN + description: System configuration controller clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: EXTITLPEN + description: EXTI and External IT clock enable during sleep mode + bit_offset: 15 + bit_size: 1 + - name: TIM9LPEN + description: TIM9 clock enable during sleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM10LPEN + description: TIM10 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM11LPEN + description: TIM11 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SPI5LPEN + description: SPI5 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: SPI6LPEN + description: SPI 6 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: SAI1LPEN + description: SAI1 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: SAI2LPEN + description: SAI2 clock enable + bit_offset: 23 + bit_size: 1 + - name: DFSDMLPEN + description: DFSDMLPEN + bit_offset: 24 + bit_size: 1 + - name: DFSDM2LPEN + description: DFSDM2 clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: LTDCLPEN + description: LTDC clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: DSILPEN + description: DSI clocks enable during Sleep mode + bit_offset: 27 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: TIM1RST - description: TIM1 reset - bit_offset: 0 - bit_size: 1 - - name: TIM8RST - description: TIM8 reset - bit_offset: 1 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 4 - bit_size: 1 - - name: USART6RST - description: USART6 reset - bit_offset: 5 - bit_size: 1 - - name: UART9RST - description: UART9 reset - bit_offset: 6 - bit_size: 1 - - name: UART10RST - description: UART10 reset - bit_offset: 7 - bit_size: 1 - - name: ADCRST - description: ADC interface reset (common to all ADCs) - bit_offset: 8 - bit_size: 1 - - name: SDIORST - description: SDIO reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: SPI4RST - description: SPI4 reset - bit_offset: 13 - bit_size: 1 - - name: SYSCFGRST - description: System configuration controller reset - bit_offset: 14 - bit_size: 1 - - name: TIM9RST - description: TIM9 reset - bit_offset: 16 - bit_size: 1 - - name: TIM10RST - description: TIM10 reset - bit_offset: 17 - bit_size: 1 - - name: TIM11RST - description: TIM11 reset - bit_offset: 18 - bit_size: 1 - - name: SPI5RST - description: SPI5 reset - bit_offset: 20 - bit_size: 1 - - name: SPI6RST - description: SPI6 reset - bit_offset: 21 - bit_size: 1 - - name: SAI1RST - description: SAI1 reset - bit_offset: 22 - bit_size: 1 - - name: SAI2RST - description: SAI2 reset - bit_offset: 23 - bit_size: 1 - - name: DFSDMRST - description: DFSDMRST - bit_offset: 24 - bit_size: 1 - - name: DFSDM2RST - description: DFSDM2 reset - bit_offset: 25 - bit_size: 1 - - name: LTDCRST - description: LTDC reset - bit_offset: 26 - bit_size: 1 - - name: DSIRST - description: DSI host reset - bit_offset: 27 - bit_size: 1 + - name: TIM1RST + description: TIM1 reset + bit_offset: 0 + bit_size: 1 + - name: TIM8RST + description: TIM8 reset + bit_offset: 1 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 4 + bit_size: 1 + - name: USART6RST + description: USART6 reset + bit_offset: 5 + bit_size: 1 + - name: UART9RST + description: UART9 reset + bit_offset: 6 + bit_size: 1 + - name: UART10RST + description: UART10 reset + bit_offset: 7 + bit_size: 1 + - name: ADCRST + description: ADC interface reset (common to all ADCs) + bit_offset: 8 + bit_size: 1 + - name: SDIORST + description: SDIO reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: SPI4RST + description: SPI4 reset + bit_offset: 13 + bit_size: 1 + - name: SYSCFGRST + description: System configuration controller reset + bit_offset: 14 + bit_size: 1 + - name: TIM9RST + description: TIM9 reset + bit_offset: 16 + bit_size: 1 + - name: TIM10RST + description: TIM10 reset + bit_offset: 17 + bit_size: 1 + - name: TIM11RST + description: TIM11 reset + bit_offset: 18 + bit_size: 1 + - name: SPI5RST + description: SPI5 reset + bit_offset: 20 + bit_size: 1 + - name: SPI6RST + description: SPI6 reset + bit_offset: 21 + bit_size: 1 + - name: SAI1RST + description: SAI1 reset + bit_offset: 22 + bit_size: 1 + - name: SAI2RST + description: SAI2 reset + bit_offset: 23 + bit_size: 1 + - name: DFSDMRST + description: DFSDMRST + bit_offset: 24 + bit_size: 1 + - name: DFSDM2RST + description: DFSDM2 reset + bit_offset: 25 + bit_size: 1 + - name: LTDCRST + description: LTDC reset + bit_offset: 26 + bit_size: 1 + - name: DSIRST + description: DSI host reset + bit_offset: 27 + bit_size: 1 fieldset/BDCR: description: Backup domain control register fields: - - name: LSEON - description: External low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External low-speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEMOD - description: External low-speed oscillator bypass - bit_offset: 3 - bit_size: 1 - enum: LSEMOD - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External low-speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEMOD + description: External low-speed oscillator bypass + bit_offset: 3 + bit_size: 1 + enum: LSEMOD + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: MCO1EN - description: MCO output enable - bit_offset: 8 - bit_size: 1 - - name: MCO2EN - description: MCO output enable - bit_offset: 9 - bit_size: 1 - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 10 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 13 - bit_size: 3 - enum: PPRE - - name: RTCPRE - description: HSE division factor for RTC clock - bit_offset: 16 - bit_size: 5 - - name: MCO1 - description: Microcontroller clock output 1 - bit_offset: 21 - bit_size: 2 - enum: MCO1 - - name: I2SSRC - description: I2S clock selection - bit_offset: 23 - bit_size: 1 - enum: ISSRC - - name: MCO1PRE - description: MCO1 prescaler - bit_offset: 24 - bit_size: 3 - enum: MCOPRE - - name: MCO2PRE - description: MCO2 prescaler - bit_offset: 27 - bit_size: 3 - enum: MCOPRE - - name: MCO2 - description: Microcontroller clock output 2 - bit_offset: 30 - bit_size: 2 - enum: MCO2 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: MCO1EN + description: MCO output enable + bit_offset: 8 + bit_size: 1 + - name: MCO2EN + description: MCO output enable + bit_offset: 9 + bit_size: 1 + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 10 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 13 + bit_size: 3 + enum: PPRE + - name: RTCPRE + description: HSE division factor for RTC clock + bit_offset: 16 + bit_size: 5 + - name: MCO1 + description: Microcontroller clock output 1 + bit_offset: 21 + bit_size: 2 + enum: MCO1 + - name: I2SSRC + description: I2S clock selection + bit_offset: 23 + bit_size: 1 + enum: ISSRC + - name: MCO1PRE + description: MCO1 prescaler + bit_offset: 24 + bit_size: 3 + enum: MCOPRE + - name: MCO2PRE + description: MCO2 prescaler + bit_offset: 27 + bit_size: 3 + enum: MCOPRE + - name: MCO2 + description: Microcontroller clock output 2 + bit_offset: 30 + bit_size: 2 + enum: MCO2 fieldset/CIR: description: clock interrupt register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: Main PLL (PLL) ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLI2SRDYF - description: PLLI2S ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: PLLSAIRDYF - description: PLLSAI ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: Main PLL (PLL) ready interrupt enable - bit_offset: 12 - bit_size: 1 - - name: PLLI2SRDYIE - description: PLLI2S ready interrupt enable - bit_offset: 13 - bit_size: 1 - - name: PLLSAIRDYIE - description: PLLSAI Ready Interrupt Enable - bit_offset: 14 - bit_size: 1 - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: Main PLL(PLL) ready interrupt clear - bit_offset: 20 - bit_size: 1 - - name: PLLI2SRDYC - description: PLLI2S ready interrupt clear - bit_offset: 21 - bit_size: 1 - - name: PLLSAIRDYC - description: PLLSAI Ready Interrupt Clear - bit_offset: 22 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: Main PLL (PLL) ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLI2SRDYF + description: PLLI2S ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: PLLSAIRDYF + description: PLLSAI ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: Main PLL (PLL) ready interrupt enable + bit_offset: 12 + bit_size: 1 + - name: PLLI2SRDYIE + description: PLLI2S ready interrupt enable + bit_offset: 13 + bit_size: 1 + - name: PLLSAIRDYIE + description: PLLSAI Ready Interrupt Enable + bit_offset: 14 + bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: Main PLL(PLL) ready interrupt clear + bit_offset: 20 + bit_size: 1 + - name: PLLI2SRDYC + description: PLLI2S ready interrupt clear + bit_offset: 21 + bit_size: 1 + - name: PLLSAIRDYC + description: PLLSAI Ready Interrupt Clear + bit_offset: 22 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CKGATENR: description: clocks gated enable register fields: - - name: AHB2APB1_CKEN - description: AHB to APB1 Bridge clock enable - bit_offset: 0 - bit_size: 1 - - name: AHB2APB2_CKEN - description: AHB to APB2 Bridge clock enable - bit_offset: 1 - bit_size: 1 - - name: CM4DBG_CKEN - description: Cortex M4 ETM clock enable - bit_offset: 2 - bit_size: 1 - - name: SPARE_CKEN - description: Spare clock enable - bit_offset: 3 - bit_size: 1 - - name: SRAM_CKEN - description: SRAM controller clock enable - bit_offset: 4 - bit_size: 1 - - name: FLASH_CKEN - description: Flash interface clock enable - bit_offset: 5 - bit_size: 1 - - name: RCC_CKEN - description: RCC clock enable - bit_offset: 6 - bit_size: 1 - - name: EVTCL_CKEN - description: EVTCL clock enable - bit_offset: 7 - bit_size: 1 + - name: AHB2APB1_CKEN + description: AHB to APB1 Bridge clock enable + bit_offset: 0 + bit_size: 1 + - name: AHB2APB2_CKEN + description: AHB to APB2 Bridge clock enable + bit_offset: 1 + bit_size: 1 + - name: CM4DBG_CKEN + description: Cortex M4 ETM clock enable + bit_offset: 2 + bit_size: 1 + - name: SPARE_CKEN + description: Spare clock enable + bit_offset: 3 + bit_size: 1 + - name: SRAM_CKEN + description: SRAM controller clock enable + bit_offset: 4 + bit_size: 1 + - name: FLASH_CKEN + description: Flash interface clock enable + bit_offset: 5 + bit_size: 1 + - name: RCC_CKEN + description: RCC clock enable + bit_offset: 6 + bit_size: 1 + - name: EVTCL_CKEN + description: EVTCL clock enable + bit_offset: 7 + bit_size: 1 fieldset/CR: description: clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal high-speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal high-speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal high-speed clock calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL (PLL) enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL (PLL) clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLLI2SON - description: PLLI2S enable - bit_offset: 26 - bit_size: 1 - - name: PLLI2SRDY - description: PLLI2S clock ready flag - bit_offset: 27 - bit_size: 1 - - name: PLLSAION - description: PLLSAI enable - bit_offset: 28 - bit_size: 1 - - name: PLLSAIRDY - description: PLLSAI clock ready flag - bit_offset: 29 - bit_size: 1 + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal high-speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal high-speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal high-speed clock calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL (PLL) enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL (PLL) clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLLI2SON + description: PLLI2S enable + bit_offset: 26 + bit_size: 1 + - name: PLLI2SRDY + description: PLLI2S clock ready flag + bit_offset: 27 + bit_size: 1 + - name: PLLSAION + description: PLLSAI enable + bit_offset: 28 + bit_size: 1 + - name: PLLSAIRDY + description: PLLSAI clock ready flag + bit_offset: 29 + bit_size: 1 fieldset/CSR: description: clock control & status register fields: - - name: LSION - description: Internal low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 25 - bit_size: 1 - - name: PADRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: WDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 25 + bit_size: 1 + - name: PADRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: WDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/DCKCFGR: description: Dedicated Clock Configuration Register fields: - - name: PLLI2SDIVQ - description: PLLI2S division factor for SAI1 clock - bit_offset: 0 - bit_size: 5 - enum: PLLISDIVQ - - name: PLLI2SDIVR - description: PLLI2S division factor for SAI1 A/B clock - bit_offset: 0 - bit_size: 5 - enum: PLLISDIVR - - name: PLLDIVR - description: PLL division factor for SAI1 A/B clock - bit_offset: 8 - bit_size: 5 - enum: PLLDIVR - - name: PLLSAIDIVQ - description: PLLSAI division factor for SAI1 clock - bit_offset: 8 - bit_size: 5 - enum: PLLSAIDIVQ - - name: CKDFSDM2ASEL - description: DFSDM2 audio clock selection - bit_offset: 14 - bit_size: 1 - enum: CKDFSDMASEL - - name: CKDFSDM1ASEL - description: DFSDM1 audio clock selection - bit_offset: 15 - bit_size: 5 - enum: CKDFSDMASEL - - name: PLLSAIDIVR - description: division factor for LCD_CLK - bit_offset: 16 - bit_size: 2 - enum: PLLSAIDIVR - - name: SAI1ASRC - description: SAI1-A clock source selection - bit_offset: 20 - bit_size: 2 - enum: SAIASRC - - name: SAI1SRC - description: SAI1 clock source selection - bit_offset: 20 - bit_size: 2 - enum: SAI1SRC - - name: SAI1BSRC - description: SAI1-B clock source selection - bit_offset: 22 - bit_size: 2 - enum: SAIBSRC - - name: SAI2SRC - description: SAI2 clock source selection - bit_offset: 22 - bit_size: 2 - enum: SAI2SRC - - name: TIMPRE - description: Timers clocks prescalers selection - bit_offset: 24 - bit_size: 1 - enum: TIMPRE - - name: I2S1SRC - description: I2S APB1 clocks source selection (I2S2/3) - bit_offset: 25 - bit_size: 2 - enum: I2S1SRC - - name: I2SSRC - description: I2SSRC - bit_offset: 25 - bit_size: 2 - enum: ISSRC - - name: CK48MSEL - description: 48 MHz clock source selection - bit_offset: 27 - bit_size: 1 - enum: CKMSEL - - name: I2S2SRC - description: I2S APB2 clocks source selection (I2S1/4/5) - bit_offset: 27 - bit_size: 2 - enum: I2S1SRC - - name: SDIOSEL - description: SDIO clock source selection - bit_offset: 28 - bit_size: 1 - enum: SDIOSEL - - name: DSISEL - description: DSI clock source selection - bit_offset: 29 - bit_size: 1 - enum: DSISEL - - name: CKDFSDM1SEL - description: DFSDM1 Kernel clock selection - bit_offset: 31 - bit_size: 1 - enum: CKDFSDMSEL + - name: PLLI2SDIVQ + description: PLLI2S division factor for SAI1 clock + bit_offset: 0 + bit_size: 5 + enum: PLLISDIVQ + - name: PLLI2SDIVR + description: PLLI2S division factor for SAI1 A/B clock + bit_offset: 0 + bit_size: 5 + enum: PLLISDIVR + - name: PLLDIVR + description: PLL division factor for SAI1 A/B clock + bit_offset: 8 + bit_size: 5 + enum: PLLDIVR + - name: PLLSAIDIVQ + description: PLLSAI division factor for SAI1 clock + bit_offset: 8 + bit_size: 5 + enum: PLLSAIDIVQ + - name: CKDFSDM2ASEL + description: DFSDM2 audio clock selection + bit_offset: 14 + bit_size: 1 + enum: CKDFSDMASEL + - name: CKDFSDM1ASEL + description: DFSDM1 audio clock selection + bit_offset: 15 + bit_size: 5 + enum: CKDFSDMASEL + - name: PLLSAIDIVR + description: division factor for LCD_CLK + bit_offset: 16 + bit_size: 2 + enum: PLLSAIDIVR + - name: SAI1ASRC + description: SAI1-A clock source selection + bit_offset: 20 + bit_size: 2 + enum: SAIASRC + - name: SAI1SRC + description: SAI1 clock source selection + bit_offset: 20 + bit_size: 2 + enum: SAI1SRC + - name: SAI1BSRC + description: SAI1-B clock source selection + bit_offset: 22 + bit_size: 2 + enum: SAIBSRC + - name: SAI2SRC + description: SAI2 clock source selection + bit_offset: 22 + bit_size: 2 + enum: SAI2SRC + - name: TIMPRE + description: Timers clocks prescalers selection + bit_offset: 24 + bit_size: 1 + enum: TIMPRE + - name: I2S1SRC + description: I2S APB1 clocks source selection (I2S2/3) + bit_offset: 25 + bit_size: 2 + enum: I2S1SRC + - name: I2SSRC + description: I2SSRC + bit_offset: 25 + bit_size: 2 + enum: ISSRC + - name: CK48MSEL + description: 48 MHz clock source selection + bit_offset: 27 + bit_size: 1 + enum: CKMSEL + - name: I2S2SRC + description: I2S APB2 clocks source selection (I2S1/4/5) + bit_offset: 27 + bit_size: 2 + enum: I2S1SRC + - name: SDIOSEL + description: SDIO clock source selection + bit_offset: 28 + bit_size: 1 + enum: SDIOSEL + - name: DSISEL + description: DSI clock source selection + bit_offset: 29 + bit_size: 1 + enum: DSISEL + - name: CKDFSDM1SEL + description: DFSDM1 Kernel clock selection + bit_offset: 31 + bit_size: 1 + enum: CKDFSDMSEL fieldset/DCKCFGR2: description: dedicated clocks configuration register 2 fields: - - name: FMPI2C1SEL - description: FMPI2C1 kernel clock source selection - bit_offset: 22 - bit_size: 2 - enum: FMPICSEL - - name: CECSEL - description: HDMI CEC clock source selection - bit_offset: 26 - bit_size: 1 - enum: CECSEL - - name: CK48MSEL - description: SDIO/USB clock selection - bit_offset: 27 - bit_size: 1 - enum: CKMSEL - - name: SDIOSEL - description: SDIO clock selection - bit_offset: 28 - bit_size: 1 - enum: SDIOSEL - - name: SPDIFRXSEL - description: SPDIF clock selection - bit_offset: 29 - bit_size: 1 - enum: SPDIFRXSEL - - name: LPTIM1SEL - description: LPTIM1SEL - bit_offset: 30 - bit_size: 2 - enum: LPTIMSEL + - name: FMPI2C1SEL + description: FMPI2C1 kernel clock source selection + bit_offset: 22 + bit_size: 2 + enum: FMPICSEL + - name: CECSEL + description: HDMI CEC clock source selection + bit_offset: 26 + bit_size: 1 + enum: CECSEL + - name: CK48MSEL + description: SDIO/USB clock selection + bit_offset: 27 + bit_size: 1 + enum: CKMSEL + - name: SDIOSEL + description: SDIO clock selection + bit_offset: 28 + bit_size: 1 + enum: SDIOSEL + - name: SPDIFRXSEL + description: SPDIF clock selection + bit_offset: 29 + bit_size: 1 + enum: SPDIFRXSEL + - name: LPTIM1SEL + description: LPTIM1SEL + bit_offset: 30 + bit_size: 2 + enum: LPTIMSEL fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLM - description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock - bit_offset: 0 - bit_size: 6 - - name: PLLN - description: Main PLL (PLL) multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLP - description: Main PLL (PLL) division factor for main system clock - bit_offset: 16 - bit_size: 2 - enum: PLLP - - name: PLLSRC - description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source - bit_offset: 22 - bit_size: 1 - enum: PLLSRC - - name: PLLQ - description: "Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks" - bit_offset: 24 - bit_size: 4 - - name: PLLR - description: PLL division factor for I2S and System clocks - bit_offset: 28 - bit_size: 3 + - name: PLLM + description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock + bit_offset: 0 + bit_size: 6 + - name: PLLN + description: Main PLL (PLL) multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLP + description: Main PLL (PLL) division factor for main system clock + bit_offset: 16 + bit_size: 2 + enum: PLLP + - name: PLLSRC + description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source + bit_offset: 22 + bit_size: 1 + enum: PLLSRC + - name: PLLQ + description: Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks + bit_offset: 24 + bit_size: 4 + - name: PLLR + description: PLL division factor for I2S and System clocks + bit_offset: 28 + bit_size: 3 fieldset/PLLI2SCFGR: description: PLLI2S configuration register fields: - - name: PLLI2SM - description: Division factor for the audio PLL (PLLI2S) input clock - bit_offset: 0 - bit_size: 6 - - name: PLLI2SN - description: PLLI2S multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLI2SP - description: PLLI2S division factor for SPDIF-IN clock - bit_offset: 16 - bit_size: 2 - enum: PLLISP - - name: PLLI2SSRC - description: PLLI2S entry clock source - bit_offset: 22 - bit_size: 1 - enum: PLLISSRC - - name: PLLI2SQ - description: PLLI2S division factor for USB OTG FS/SDIO/RNG clock - bit_offset: 24 - bit_size: 4 - - name: PLLI2SR - description: PLLI2S division factor for I2S clocks - bit_offset: 28 - bit_size: 3 + - name: PLLI2SM + description: Division factor for the audio PLL (PLLI2S) input clock + bit_offset: 0 + bit_size: 6 + - name: PLLI2SN + description: PLLI2S multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLI2SP + description: PLLI2S division factor for SPDIF-IN clock + bit_offset: 16 + bit_size: 2 + enum: PLLISP + - name: PLLI2SSRC + description: PLLI2S entry clock source + bit_offset: 22 + bit_size: 1 + enum: PLLISSRC + - name: PLLI2SQ + description: PLLI2S division factor for USB OTG FS/SDIO/RNG clock + bit_offset: 24 + bit_size: 4 + - name: PLLI2SR + description: PLLI2S division factor for I2S clocks + bit_offset: 28 + bit_size: 3 fieldset/PLLSAICFGR: description: PLL configuration register fields: - - name: PLLSAIM - description: Division factor for audio PLLSAI input clock - bit_offset: 0 - bit_size: 6 - - name: PLLSAIN - description: PLLSAI division factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLSAIP - description: PLLSAI division factor for 48 MHz clock - bit_offset: 16 - bit_size: 2 - enum: PLLSAIP - - name: PLLSAIQ - description: PLLSAI division factor for SAI1 clock - bit_offset: 24 - bit_size: 4 - - name: PLLSAIR - description: PLLSAI division factor for LCD clock - bit_offset: 28 - bit_size: 3 + - name: PLLSAIM + description: Division factor for audio PLLSAI input clock + bit_offset: 0 + bit_size: 6 + - name: PLLSAIN + description: PLLSAI division factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLSAIP + description: PLLSAI division factor for 48 MHz clock + bit_offset: 16 + bit_size: 2 + enum: PLLSAIP + - name: PLLSAIQ + description: PLLSAI division factor for SAI1 clock + bit_offset: 24 + bit_size: 4 + - name: PLLSAIR + description: PLLSAI division factor for LCD clock + bit_offset: 28 + bit_size: 3 fieldset/SSCGR: description: spread spectrum clock generation register fields: - - name: MODPER - description: Modulation period - bit_offset: 0 - bit_size: 13 - - name: INCSTEP - description: Incrementation step - bit_offset: 13 - bit_size: 15 - - name: SPREADSEL - description: Spread Select - bit_offset: 30 - bit_size: 1 - enum: SPREADSEL - - name: SSCGEN - description: Spread spectrum modulation enable - bit_offset: 31 - bit_size: 1 + - name: MODPER + description: Modulation period + bit_offset: 0 + bit_size: 13 + - name: INCSTEP + description: Incrementation step + bit_offset: 13 + bit_size: 15 + - name: SPREADSEL + description: Spread Select + bit_offset: 30 + bit_size: 1 + enum: SPREADSEL + - name: SSCGEN + description: Spread spectrum modulation enable + bit_offset: 31 + bit_size: 1 enum/CECSEL: bit_size: 1 variants: - - name: LSE - description: LSE clock is selected as HDMI-CEC clock - value: 0 - - name: HSI_Div488 - description: HSI divided by 488 clock is selected as HDMI-CEC clock - value: 1 + - name: LSE + description: LSE clock is selected as HDMI-CEC clock + value: 0 + - name: HSI_Div488 + description: HSI divided by 488 clock is selected as HDMI-CEC clock + value: 1 enum/CKDFSDMASEL: bit_size: 1 variants: - - name: I2S1 - description: CK_I2S_APB1 selected as audio clock - value: 0 - - name: I2S2 - description: CK_I2S_APB2 selected as audio clock - value: 1 + - name: I2S1 + description: CK_I2S_APB1 selected as audio clock + value: 0 + - name: I2S2 + description: CK_I2S_APB2 selected as audio clock + value: 1 enum/CKDFSDMSEL: bit_size: 1 variants: - - name: APB2 - description: APB2 clock used as Kernel clock - value: 0 - - name: SYSCLK - description: System clock used as Kernel clock - value: 1 + - name: APB2 + description: APB2 clock used as Kernel clock + value: 0 + - name: SYSCLK + description: System clock used as Kernel clock + value: 1 enum/CKMSEL: bit_size: 1 variants: - - name: PLL - description: 48MHz clock from PLL is selected - value: 0 - - name: PLLSAI - description: 48MHz clock from PLLSAI is selected - value: 1 + - name: PLL + description: 48MHz clock from PLL is selected + value: 0 + - name: PLLSAI + description: 48MHz clock from PLLSAI is selected + value: 1 enum/DSISEL: bit_size: 1 variants: - - name: DSI_PHY - description: DSI-PHY used as DSI byte lane clock source (usual case) - value: 0 - - name: PLLR - description: "PLLR used as DSI byte lane clock source, used in case DSI PLL and DSI-PHY are off (low power mode)" - value: 1 + - name: DSI_PHY + description: DSI-PHY used as DSI byte lane clock source (usual case) + value: 0 + - name: PLLR + description: PLLR used as DSI byte lane clock source, used in case DSI PLL and DSI-PHY are off (low power mode) + value: 1 enum/FMPICSEL: bit_size: 2 variants: - - name: APB - description: APB clock selected as I2C clock - value: 0 - - name: SYSCLK - description: System clock selected as I2C clock - value: 1 - - name: HSI - description: HSI clock selected as I2C clock - value: 2 + - name: APB + description: APB clock selected as I2C clock + value: 0 + - name: SYSCLK + description: System clock selected as I2C clock + value: 1 + - name: HSI + description: HSI clock selected as I2C clock + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/I2S1SRC: bit_size: 2 variants: - - name: PLLI2SR - description: I2Sx clock frequency = f(PLLI2S_R) - value: 0 - - name: I2S_CKIN - description: I2Sx clock frequency = I2S_CKIN Alternate function input frequency - value: 1 - - name: PLLR - description: I2Sx clock frequency = f(PLL_R) - value: 2 - - name: HSI_HSE - description: "I2Sx clock frequency = HSI/HSE depends on PLLSRC bit (PLLCFGR[22])" - value: 3 + - name: PLLI2SR + description: I2Sx clock frequency = f(PLLI2S_R) + value: 0 + - name: I2S_CKIN + description: I2Sx clock frequency = I2S_CKIN Alternate function input frequency + value: 1 + - name: PLLR + description: I2Sx clock frequency = f(PLL_R) + value: 2 + - name: HSI_HSE + description: I2Sx clock frequency = HSI/HSE depends on PLLSRC bit (PLLCFGR[22]) + value: 3 enum/ISSRC: bit_size: 1 variants: - - name: PLLI2S - description: PLLI2S clock used as I2S clock source - value: 0 - - name: CKIN - description: External clock mapped on the I2S_CKIN pin used as I2S clock source - value: 1 + - name: PLLI2S + description: PLLI2S clock used as I2S clock source + value: 0 + - name: CKIN + description: External clock mapped on the I2S_CKIN pin used as I2S clock source + value: 1 enum/LPTIMSEL: bit_size: 2 variants: - - name: APB1 - description: APB1 clock (PCLK1) selected as LPTILM1 clock - value: 0 - - name: LSI - description: LSI clock is selected as LPTILM1 clock - value: 1 - - name: HSI - description: HSI clock is selected as LPTILM1 clock - value: 2 - - name: LSE - description: LSE clock is selected as LPTILM1 clock - value: 3 + - name: APB1 + description: APB1 clock (PCLK1) selected as LPTILM1 clock + value: 0 + - name: LSI + description: LSI clock is selected as LPTILM1 clock + value: 1 + - name: HSI + description: HSI clock is selected as LPTILM1 clock + value: 2 + - name: LSE + description: LSE clock is selected as LPTILM1 clock + value: 3 enum/LSEMOD: bit_size: 1 variants: - - name: Low - description: LSE oscillator low power mode selection - value: 0 - - name: High - description: LSE oscillator high drive mode selection - value: 1 + - name: Low + description: LSE oscillator low power mode selection + value: 0 + - name: High + description: LSE oscillator high drive mode selection + value: 1 enum/MCO1: bit_size: 2 variants: - - name: HSI - description: HSI clock selected - value: 0 - - name: LSE - description: LSE oscillator selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: HSI + description: HSI clock selected + value: 0 + - name: LSE + description: LSE oscillator selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCO2: bit_size: 2 variants: - - name: SYSCLK - description: System clock (SYSCLK) selected - value: 0 - - name: PLLI2S - description: PLLI2S clock selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: SYSCLK + description: System clock (SYSCLK) selected + value: 0 + - name: PLLI2S + description: PLLI2S clock selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 4 - - name: Div3 - description: Division by 3 - value: 5 - - name: Div4 - description: Division by 4 - value: 6 - - name: Div5 - description: Division by 5 - value: 7 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 4 + - name: Div3 + description: Division by 3 + value: 5 + - name: Div4 + description: Division by 4 + value: 6 + - name: Div5 + description: Division by 5 + value: 7 enum/PLLDIVR: bit_size: 5 variants: - - name: Div1 - description: PLLSAIDIVQ = /1 - value: 0 - - name: Div2 - description: PLLSAIDIVQ = /2 - value: 1 - - name: Div3 - description: PLLSAIDIVQ = /3 - value: 2 - - name: Div4 - description: PLLSAIDIVQ = /4 - value: 3 - - name: Div5 - description: PLLSAIDIVQ = /5 - value: 4 - - name: Div6 - description: PLLSAIDIVQ = /6 - value: 5 - - name: Div7 - description: PLLSAIDIVQ = /7 - value: 6 - - name: Div8 - description: PLLSAIDIVQ = /8 - value: 7 - - name: Div9 - description: PLLSAIDIVQ = /9 - value: 8 - - name: Div10 - description: PLLSAIDIVQ = /10 - value: 9 - - name: Div11 - description: PLLSAIDIVQ = /11 - value: 10 - - name: Div12 - description: PLLSAIDIVQ = /12 - value: 11 - - name: Div13 - description: PLLSAIDIVQ = /13 - value: 12 - - name: Div14 - description: PLLSAIDIVQ = /14 - value: 13 - - name: Div15 - description: PLLSAIDIVQ = /15 - value: 14 - - name: Div16 - description: PLLSAIDIVQ = /16 - value: 15 - - name: Div17 - description: PLLSAIDIVQ = /17 - value: 16 - - name: Div18 - description: PLLSAIDIVQ = /18 - value: 17 - - name: Div19 - description: PLLSAIDIVQ = /19 - value: 18 - - name: Div20 - description: PLLSAIDIVQ = /20 - value: 19 - - name: Div21 - description: PLLSAIDIVQ = /21 - value: 20 - - name: Div22 - description: PLLSAIDIVQ = /22 - value: 21 - - name: Div23 - description: PLLSAIDIVQ = /23 - value: 22 - - name: Div24 - description: PLLSAIDIVQ = /24 - value: 23 - - name: Div25 - description: PLLSAIDIVQ = /25 - value: 24 - - name: Div26 - description: PLLSAIDIVQ = /26 - value: 25 - - name: Div27 - description: PLLSAIDIVQ = /27 - value: 26 - - name: Div28 - description: PLLSAIDIVQ = /28 - value: 27 - - name: Div29 - description: PLLSAIDIVQ = /29 - value: 28 - - name: Div30 - description: PLLSAIDIVQ = /30 - value: 29 - - name: Div31 - description: PLLSAIDIVQ = /31 - value: 30 - - name: Div32 - description: PLLSAIDIVQ = /32 - value: 31 + - name: Div1 + description: PLLSAIDIVQ = /1 + value: 0 + - name: Div2 + description: PLLSAIDIVQ = /2 + value: 1 + - name: Div3 + description: PLLSAIDIVQ = /3 + value: 2 + - name: Div4 + description: PLLSAIDIVQ = /4 + value: 3 + - name: Div5 + description: PLLSAIDIVQ = /5 + value: 4 + - name: Div6 + description: PLLSAIDIVQ = /6 + value: 5 + - name: Div7 + description: PLLSAIDIVQ = /7 + value: 6 + - name: Div8 + description: PLLSAIDIVQ = /8 + value: 7 + - name: Div9 + description: PLLSAIDIVQ = /9 + value: 8 + - name: Div10 + description: PLLSAIDIVQ = /10 + value: 9 + - name: Div11 + description: PLLSAIDIVQ = /11 + value: 10 + - name: Div12 + description: PLLSAIDIVQ = /12 + value: 11 + - name: Div13 + description: PLLSAIDIVQ = /13 + value: 12 + - name: Div14 + description: PLLSAIDIVQ = /14 + value: 13 + - name: Div15 + description: PLLSAIDIVQ = /15 + value: 14 + - name: Div16 + description: PLLSAIDIVQ = /16 + value: 15 + - name: Div17 + description: PLLSAIDIVQ = /17 + value: 16 + - name: Div18 + description: PLLSAIDIVQ = /18 + value: 17 + - name: Div19 + description: PLLSAIDIVQ = /19 + value: 18 + - name: Div20 + description: PLLSAIDIVQ = /20 + value: 19 + - name: Div21 + description: PLLSAIDIVQ = /21 + value: 20 + - name: Div22 + description: PLLSAIDIVQ = /22 + value: 21 + - name: Div23 + description: PLLSAIDIVQ = /23 + value: 22 + - name: Div24 + description: PLLSAIDIVQ = /24 + value: 23 + - name: Div25 + description: PLLSAIDIVQ = /25 + value: 24 + - name: Div26 + description: PLLSAIDIVQ = /26 + value: 25 + - name: Div27 + description: PLLSAIDIVQ = /27 + value: 26 + - name: Div28 + description: PLLSAIDIVQ = /28 + value: 27 + - name: Div29 + description: PLLSAIDIVQ = /29 + value: 28 + - name: Div30 + description: PLLSAIDIVQ = /30 + value: 29 + - name: Div31 + description: PLLSAIDIVQ = /31 + value: 30 + - name: Div32 + description: PLLSAIDIVQ = /32 + value: 31 enum/PLLISDIVQ: bit_size: 5 variants: - - name: Div1 - description: PLLI2SDIVQ = /1 - value: 0 - - name: Div2 - description: PLLI2SDIVQ = /2 - value: 1 - - name: Div3 - description: PLLI2SDIVQ = /3 - value: 2 - - name: Div4 - description: PLLI2SDIVQ = /4 - value: 3 - - name: Div5 - description: PLLI2SDIVQ = /5 - value: 4 - - name: Div6 - description: PLLI2SDIVQ = /6 - value: 5 - - name: Div7 - description: PLLI2SDIVQ = /7 - value: 6 - - name: Div8 - description: PLLI2SDIVQ = /8 - value: 7 - - name: Div9 - description: PLLI2SDIVQ = /9 - value: 8 - - name: Div10 - description: PLLI2SDIVQ = /10 - value: 9 - - name: Div11 - description: PLLI2SDIVQ = /11 - value: 10 - - name: Div12 - description: PLLI2SDIVQ = /12 - value: 11 - - name: Div13 - description: PLLI2SDIVQ = /13 - value: 12 - - name: Div14 - description: PLLI2SDIVQ = /14 - value: 13 - - name: Div15 - description: PLLI2SDIVQ = /15 - value: 14 - - name: Div16 - description: PLLI2SDIVQ = /16 - value: 15 - - name: Div17 - description: PLLI2SDIVQ = /17 - value: 16 - - name: Div18 - description: PLLI2SDIVQ = /18 - value: 17 - - name: Div19 - description: PLLI2SDIVQ = /19 - value: 18 - - name: Div20 - description: PLLI2SDIVQ = /20 - value: 19 - - name: Div21 - description: PLLI2SDIVQ = /21 - value: 20 - - name: Div22 - description: PLLI2SDIVQ = /22 - value: 21 - - name: Div23 - description: PLLI2SDIVQ = /23 - value: 22 - - name: Div24 - description: PLLI2SDIVQ = /24 - value: 23 - - name: Div25 - description: PLLI2SDIVQ = /25 - value: 24 - - name: Div26 - description: PLLI2SDIVQ = /26 - value: 25 - - name: Div27 - description: PLLI2SDIVQ = /27 - value: 26 - - name: Div28 - description: PLLI2SDIVQ = /28 - value: 27 - - name: Div29 - description: PLLI2SDIVQ = /29 - value: 28 - - name: Div30 - description: PLLI2SDIVQ = /30 - value: 29 - - name: Div31 - description: PLLI2SDIVQ = /31 - value: 30 - - name: Div32 - description: PLLI2SDIVQ = /32 - value: 31 + - name: Div1 + description: PLLI2SDIVQ = /1 + value: 0 + - name: Div2 + description: PLLI2SDIVQ = /2 + value: 1 + - name: Div3 + description: PLLI2SDIVQ = /3 + value: 2 + - name: Div4 + description: PLLI2SDIVQ = /4 + value: 3 + - name: Div5 + description: PLLI2SDIVQ = /5 + value: 4 + - name: Div6 + description: PLLI2SDIVQ = /6 + value: 5 + - name: Div7 + description: PLLI2SDIVQ = /7 + value: 6 + - name: Div8 + description: PLLI2SDIVQ = /8 + value: 7 + - name: Div9 + description: PLLI2SDIVQ = /9 + value: 8 + - name: Div10 + description: PLLI2SDIVQ = /10 + value: 9 + - name: Div11 + description: PLLI2SDIVQ = /11 + value: 10 + - name: Div12 + description: PLLI2SDIVQ = /12 + value: 11 + - name: Div13 + description: PLLI2SDIVQ = /13 + value: 12 + - name: Div14 + description: PLLI2SDIVQ = /14 + value: 13 + - name: Div15 + description: PLLI2SDIVQ = /15 + value: 14 + - name: Div16 + description: PLLI2SDIVQ = /16 + value: 15 + - name: Div17 + description: PLLI2SDIVQ = /17 + value: 16 + - name: Div18 + description: PLLI2SDIVQ = /18 + value: 17 + - name: Div19 + description: PLLI2SDIVQ = /19 + value: 18 + - name: Div20 + description: PLLI2SDIVQ = /20 + value: 19 + - name: Div21 + description: PLLI2SDIVQ = /21 + value: 20 + - name: Div22 + description: PLLI2SDIVQ = /22 + value: 21 + - name: Div23 + description: PLLI2SDIVQ = /23 + value: 22 + - name: Div24 + description: PLLI2SDIVQ = /24 + value: 23 + - name: Div25 + description: PLLI2SDIVQ = /25 + value: 24 + - name: Div26 + description: PLLI2SDIVQ = /26 + value: 25 + - name: Div27 + description: PLLI2SDIVQ = /27 + value: 26 + - name: Div28 + description: PLLI2SDIVQ = /28 + value: 27 + - name: Div29 + description: PLLI2SDIVQ = /29 + value: 28 + - name: Div30 + description: PLLI2SDIVQ = /30 + value: 29 + - name: Div31 + description: PLLI2SDIVQ = /31 + value: 30 + - name: Div32 + description: PLLI2SDIVQ = /32 + value: 31 enum/PLLISDIVR: bit_size: 5 variants: - - name: Div1 - description: PLLI2SDIVQ = /1 - value: 0 - - name: Div2 - description: PLLI2SDIVQ = /2 - value: 1 - - name: Div3 - description: PLLI2SDIVQ = /3 - value: 2 - - name: Div4 - description: PLLI2SDIVQ = /4 - value: 3 - - name: Div5 - description: PLLI2SDIVQ = /5 - value: 4 - - name: Div6 - description: PLLI2SDIVQ = /6 - value: 5 - - name: Div7 - description: PLLI2SDIVQ = /7 - value: 6 - - name: Div8 - description: PLLI2SDIVQ = /8 - value: 7 - - name: Div9 - description: PLLI2SDIVQ = /9 - value: 8 - - name: Div10 - description: PLLI2SDIVQ = /10 - value: 9 - - name: Div11 - description: PLLI2SDIVQ = /11 - value: 10 - - name: Div12 - description: PLLI2SDIVQ = /12 - value: 11 - - name: Div13 - description: PLLI2SDIVQ = /13 - value: 12 - - name: Div14 - description: PLLI2SDIVQ = /14 - value: 13 - - name: Div15 - description: PLLI2SDIVQ = /15 - value: 14 - - name: Div16 - description: PLLI2SDIVQ = /16 - value: 15 - - name: Div17 - description: PLLI2SDIVQ = /17 - value: 16 - - name: Div18 - description: PLLI2SDIVQ = /18 - value: 17 - - name: Div19 - description: PLLI2SDIVQ = /19 - value: 18 - - name: Div20 - description: PLLI2SDIVQ = /20 - value: 19 - - name: Div21 - description: PLLI2SDIVQ = /21 - value: 20 - - name: Div22 - description: PLLI2SDIVQ = /22 - value: 21 - - name: Div23 - description: PLLI2SDIVQ = /23 - value: 22 - - name: Div24 - description: PLLI2SDIVQ = /24 - value: 23 - - name: Div25 - description: PLLI2SDIVQ = /25 - value: 24 - - name: Div26 - description: PLLI2SDIVQ = /26 - value: 25 - - name: Div27 - description: PLLI2SDIVQ = /27 - value: 26 - - name: Div28 - description: PLLI2SDIVQ = /28 - value: 27 - - name: Div29 - description: PLLI2SDIVQ = /29 - value: 28 - - name: Div30 - description: PLLI2SDIVQ = /30 - value: 29 - - name: Div31 - description: PLLI2SDIVQ = /31 - value: 30 - - name: Div32 - description: PLLI2SDIVQ = /32 - value: 31 + - name: Div1 + description: PLLI2SDIVQ = /1 + value: 0 + - name: Div2 + description: PLLI2SDIVQ = /2 + value: 1 + - name: Div3 + description: PLLI2SDIVQ = /3 + value: 2 + - name: Div4 + description: PLLI2SDIVQ = /4 + value: 3 + - name: Div5 + description: PLLI2SDIVQ = /5 + value: 4 + - name: Div6 + description: PLLI2SDIVQ = /6 + value: 5 + - name: Div7 + description: PLLI2SDIVQ = /7 + value: 6 + - name: Div8 + description: PLLI2SDIVQ = /8 + value: 7 + - name: Div9 + description: PLLI2SDIVQ = /9 + value: 8 + - name: Div10 + description: PLLI2SDIVQ = /10 + value: 9 + - name: Div11 + description: PLLI2SDIVQ = /11 + value: 10 + - name: Div12 + description: PLLI2SDIVQ = /12 + value: 11 + - name: Div13 + description: PLLI2SDIVQ = /13 + value: 12 + - name: Div14 + description: PLLI2SDIVQ = /14 + value: 13 + - name: Div15 + description: PLLI2SDIVQ = /15 + value: 14 + - name: Div16 + description: PLLI2SDIVQ = /16 + value: 15 + - name: Div17 + description: PLLI2SDIVQ = /17 + value: 16 + - name: Div18 + description: PLLI2SDIVQ = /18 + value: 17 + - name: Div19 + description: PLLI2SDIVQ = /19 + value: 18 + - name: Div20 + description: PLLI2SDIVQ = /20 + value: 19 + - name: Div21 + description: PLLI2SDIVQ = /21 + value: 20 + - name: Div22 + description: PLLI2SDIVQ = /22 + value: 21 + - name: Div23 + description: PLLI2SDIVQ = /23 + value: 22 + - name: Div24 + description: PLLI2SDIVQ = /24 + value: 23 + - name: Div25 + description: PLLI2SDIVQ = /25 + value: 24 + - name: Div26 + description: PLLI2SDIVQ = /26 + value: 25 + - name: Div27 + description: PLLI2SDIVQ = /27 + value: 26 + - name: Div28 + description: PLLI2SDIVQ = /28 + value: 27 + - name: Div29 + description: PLLI2SDIVQ = /29 + value: 28 + - name: Div30 + description: PLLI2SDIVQ = /30 + value: 29 + - name: Div31 + description: PLLI2SDIVQ = /31 + value: 30 + - name: Div32 + description: PLLI2SDIVQ = /32 + value: 31 enum/PLLISP: bit_size: 2 variants: - - name: Div2 - description: PLL*P=2 - value: 0 - - name: Div4 - description: PLL*P=4 - value: 1 - - name: Div6 - description: PLL*P=6 - value: 2 - - name: Div8 - description: PLL*P=8 - value: 3 + - name: Div2 + description: PLL*P=2 + value: 0 + - name: Div4 + description: PLL*P=4 + value: 1 + - name: Div6 + description: PLL*P=6 + value: 2 + - name: Div8 + description: PLL*P=8 + value: 3 enum/PLLISSRC: bit_size: 1 variants: - - name: HSE_HSI - description: HSE or HSI depending on PLLSRC of PLLCFGR - value: 0 - - name: External - description: External AFI clock (CK_PLLI2S_EXT) selected as PLL clock entry - value: 1 + - name: HSE_HSI + description: HSE or HSI depending on PLLSRC of PLLCFGR + value: 0 + - name: External + description: External AFI clock (CK_PLLI2S_EXT) selected as PLL clock entry + value: 1 enum/PLLP: bit_size: 2 variants: - - name: Div2 - description: PLLP=2 - value: 0 - - name: Div4 - description: PLLP=4 - value: 1 - - name: Div6 - description: PLLP=6 - value: 2 - - name: Div8 - description: PLLP=8 - value: 3 + - name: Div2 + description: PLLP=2 + value: 0 + - name: Div4 + description: PLLP=4 + value: 1 + - name: Div6 + description: PLLP=6 + value: 2 + - name: Div8 + description: PLLP=8 + value: 3 enum/PLLSAIDIVQ: bit_size: 5 variants: - - name: Div1 - description: PLLSAIDIVQ = /1 - value: 0 - - name: Div2 - description: PLLSAIDIVQ = /2 - value: 1 - - name: Div3 - description: PLLSAIDIVQ = /3 - value: 2 - - name: Div4 - description: PLLSAIDIVQ = /4 - value: 3 - - name: Div5 - description: PLLSAIDIVQ = /5 - value: 4 - - name: Div6 - description: PLLSAIDIVQ = /6 - value: 5 - - name: Div7 - description: PLLSAIDIVQ = /7 - value: 6 - - name: Div8 - description: PLLSAIDIVQ = /8 - value: 7 - - name: Div9 - description: PLLSAIDIVQ = /9 - value: 8 - - name: Div10 - description: PLLSAIDIVQ = /10 - value: 9 - - name: Div11 - description: PLLSAIDIVQ = /11 - value: 10 - - name: Div12 - description: PLLSAIDIVQ = /12 - value: 11 - - name: Div13 - description: PLLSAIDIVQ = /13 - value: 12 - - name: Div14 - description: PLLSAIDIVQ = /14 - value: 13 - - name: Div15 - description: PLLSAIDIVQ = /15 - value: 14 - - name: Div16 - description: PLLSAIDIVQ = /16 - value: 15 - - name: Div17 - description: PLLSAIDIVQ = /17 - value: 16 - - name: Div18 - description: PLLSAIDIVQ = /18 - value: 17 - - name: Div19 - description: PLLSAIDIVQ = /19 - value: 18 - - name: Div20 - description: PLLSAIDIVQ = /20 - value: 19 - - name: Div21 - description: PLLSAIDIVQ = /21 - value: 20 - - name: Div22 - description: PLLSAIDIVQ = /22 - value: 21 - - name: Div23 - description: PLLSAIDIVQ = /23 - value: 22 - - name: Div24 - description: PLLSAIDIVQ = /24 - value: 23 - - name: Div25 - description: PLLSAIDIVQ = /25 - value: 24 - - name: Div26 - description: PLLSAIDIVQ = /26 - value: 25 - - name: Div27 - description: PLLSAIDIVQ = /27 - value: 26 - - name: Div28 - description: PLLSAIDIVQ = /28 - value: 27 - - name: Div29 - description: PLLSAIDIVQ = /29 - value: 28 - - name: Div30 - description: PLLSAIDIVQ = /30 - value: 29 - - name: Div31 - description: PLLSAIDIVQ = /31 - value: 30 - - name: Div32 - description: PLLSAIDIVQ = /32 - value: 31 + - name: Div1 + description: PLLSAIDIVQ = /1 + value: 0 + - name: Div2 + description: PLLSAIDIVQ = /2 + value: 1 + - name: Div3 + description: PLLSAIDIVQ = /3 + value: 2 + - name: Div4 + description: PLLSAIDIVQ = /4 + value: 3 + - name: Div5 + description: PLLSAIDIVQ = /5 + value: 4 + - name: Div6 + description: PLLSAIDIVQ = /6 + value: 5 + - name: Div7 + description: PLLSAIDIVQ = /7 + value: 6 + - name: Div8 + description: PLLSAIDIVQ = /8 + value: 7 + - name: Div9 + description: PLLSAIDIVQ = /9 + value: 8 + - name: Div10 + description: PLLSAIDIVQ = /10 + value: 9 + - name: Div11 + description: PLLSAIDIVQ = /11 + value: 10 + - name: Div12 + description: PLLSAIDIVQ = /12 + value: 11 + - name: Div13 + description: PLLSAIDIVQ = /13 + value: 12 + - name: Div14 + description: PLLSAIDIVQ = /14 + value: 13 + - name: Div15 + description: PLLSAIDIVQ = /15 + value: 14 + - name: Div16 + description: PLLSAIDIVQ = /16 + value: 15 + - name: Div17 + description: PLLSAIDIVQ = /17 + value: 16 + - name: Div18 + description: PLLSAIDIVQ = /18 + value: 17 + - name: Div19 + description: PLLSAIDIVQ = /19 + value: 18 + - name: Div20 + description: PLLSAIDIVQ = /20 + value: 19 + - name: Div21 + description: PLLSAIDIVQ = /21 + value: 20 + - name: Div22 + description: PLLSAIDIVQ = /22 + value: 21 + - name: Div23 + description: PLLSAIDIVQ = /23 + value: 22 + - name: Div24 + description: PLLSAIDIVQ = /24 + value: 23 + - name: Div25 + description: PLLSAIDIVQ = /25 + value: 24 + - name: Div26 + description: PLLSAIDIVQ = /26 + value: 25 + - name: Div27 + description: PLLSAIDIVQ = /27 + value: 26 + - name: Div28 + description: PLLSAIDIVQ = /28 + value: 27 + - name: Div29 + description: PLLSAIDIVQ = /29 + value: 28 + - name: Div30 + description: PLLSAIDIVQ = /30 + value: 29 + - name: Div31 + description: PLLSAIDIVQ = /31 + value: 30 + - name: Div32 + description: PLLSAIDIVQ = /32 + value: 31 enum/PLLSAIDIVR: bit_size: 2 variants: - - name: Div2 - description: PLLSAIDIVR = /2 - value: 0 - - name: Div4 - description: PLLSAIDIVR = /4 - value: 1 - - name: Div8 - description: PLLSAIDIVR = /8 - value: 2 - - name: Div16 - description: PLLSAIDIVR = /16 - value: 3 + - name: Div2 + description: PLLSAIDIVR = /2 + value: 0 + - name: Div4 + description: PLLSAIDIVR = /4 + value: 1 + - name: Div8 + description: PLLSAIDIVR = /8 + value: 2 + - name: Div16 + description: PLLSAIDIVR = /16 + value: 3 enum/PLLSAIP: bit_size: 2 variants: - - name: Div2 - description: PLL*P=2 - value: 0 - - name: Div4 - description: PLL*P=4 - value: 1 - - name: Div6 - description: PLL*P=6 - value: 2 - - name: Div8 - description: PLL*P=8 - value: 3 + - name: Div2 + description: PLL*P=2 + value: 0 + - name: Div4 + description: PLL*P=4 + value: 1 + - name: Div6 + description: PLL*P=6 + value: 2 + - name: Div8 + description: PLL*P=8 + value: 3 enum/PLLSRC: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as PLL and PLLI2S clock entry - value: 0 - - name: HSE - description: HSE oscillator clock selected as PLL and PLLI2S clock entry - value: 1 + - name: HSI + description: HSI clock selected as PLL and PLLI2S clock entry + value: 0 + - name: HSE + description: HSE oscillator clock selected as PLL and PLLI2S clock entry + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SAI1SRC: bit_size: 2 variants: - - name: PLLSAI - description: SAI1 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ - value: 0 - - name: PLLI2S - description: SAI1 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ - value: 1 - - name: PLLR - description: SAI1 clock frequency = f(PLL_R) - value: 2 - - name: I2S_CKIN - description: I2S_CKIN Alternate function input frequency - value: 3 + - name: PLLSAI + description: SAI1 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ + value: 0 + - name: PLLI2S + description: SAI1 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ + value: 1 + - name: PLLR + description: SAI1 clock frequency = f(PLL_R) + value: 2 + - name: I2S_CKIN + description: I2S_CKIN Alternate function input frequency + value: 3 enum/SAI2SRC: bit_size: 2 variants: - - name: PLLSAI - description: SAI2 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ - value: 0 - - name: PLLI2S - description: SAI2 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ - value: 1 - - name: PLLR - description: SAI2 clock frequency = f(PLL_R) - value: 2 - - name: HSI_HSE - description: SAI2 clock frequency = Alternate function input frequency - value: 3 + - name: PLLSAI + description: SAI2 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ + value: 0 + - name: PLLI2S + description: SAI2 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ + value: 1 + - name: PLLR + description: SAI2 clock frequency = f(PLL_R) + value: 2 + - name: HSI_HSE + description: SAI2 clock frequency = Alternate function input frequency + value: 3 enum/SAIASRC: bit_size: 2 variants: - - name: PLLSAI - description: SAI1-A clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ - value: 0 - - name: PLLI2S - description: SAI1-A clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ - value: 1 - - name: I2S_CKIN - description: SAI1-A clock frequency = Alternate function input frequency - value: 2 + - name: PLLSAI + description: SAI1-A clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ + value: 0 + - name: PLLI2S + description: SAI1-A clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ + value: 1 + - name: I2S_CKIN + description: SAI1-A clock frequency = Alternate function input frequency + value: 2 enum/SAIBSRC: bit_size: 2 variants: - - name: PLLSAI - description: SAI1-B clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ - value: 0 - - name: PLLI2S - description: SAI1-B clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ - value: 1 - - name: I2S_CKIN - description: SAI1-B clock frequency = Alternate function input frequency - value: 2 + - name: PLLSAI + description: SAI1-B clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ + value: 0 + - name: PLLI2S + description: SAI1-B clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ + value: 1 + - name: I2S_CKIN + description: SAI1-B clock frequency = Alternate function input frequency + value: 2 enum/SDIOSEL: bit_size: 1 variants: - - name: CK48M - description: 48 MHz clock is selected as SD clock - value: 0 - - name: SYSCLK - description: System clock is selected as SD clock - value: 1 + - name: CK48M + description: 48 MHz clock is selected as SD clock + value: 0 + - name: SYSCLK + description: System clock is selected as SD clock + value: 1 enum/SPDIFRXSEL: bit_size: 1 variants: - - name: PLL - description: SPDIF-Rx clock from PLL is selected - value: 0 - - name: PLLI2S - description: SPDIF-Rx clock from PLLI2S is selected - value: 1 + - name: PLL + description: SPDIF-Rx clock from PLL is selected + value: 0 + - name: PLLI2S + description: SPDIF-Rx clock from PLLI2S is selected + value: 1 enum/SPREADSEL: bit_size: 1 variants: - - name: Center - description: Center spread - value: 0 - - name: Down - description: Down spread - value: 1 + - name: Center + description: Center spread + value: 0 + - name: Down + description: Down spread + value: 1 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/TIMPRE: bit_size: 1 variants: - - name: Mul2 - description: "If the APB prescaler is configured 1, TIMxCLK = PCLKx. Otherwise, TIMxCLK = 2xPCLKx" - value: 0 - - name: Mul4 - description: "If the APB prescaler is configured 1, 2 or 4, TIMxCLK = HCLK. Otherwise, TIMxCLK = 4xPCLKx" - value: 1 + - name: Mul2 + description: If the APB prescaler is configured 1, TIMxCLK = PCLKx. Otherwise, TIMxCLK = 2xPCLKx + value: 0 + - name: Mul4 + description: If the APB prescaler is configured 1, 2 or 4, TIMxCLK = HCLK. Otherwise, TIMxCLK = 4xPCLKx + value: 1 diff --git a/data/registers/rcc_f410.yaml b/data/registers/rcc_f410.yaml index b65a21e..24d0c29 100644 --- a/data/registers/rcc_f410.yaml +++ b/data/registers/rcc_f410.yaml @@ -1,1007 +1,1006 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: clock control register - byte_offset: 0 - fieldset: CR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 4 - fieldset: PLLCFGR - - name: CFGR - description: clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: CIR - description: clock interrupt register - byte_offset: 12 - fieldset: CIR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 16 - fieldset: AHB1RSTR - - name: APB1RSTR - description: APB1 peripheral reset register - byte_offset: 32 - fieldset: APB1RSTR - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 36 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock register - byte_offset: 48 - fieldset: AHB1ENR - - name: APB1ENR - description: APB1 peripheral clock enable register - byte_offset: 64 - fieldset: APB1ENR - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 68 - fieldset: APB2ENR - - name: AHB1LPENR - description: AHB1 peripheral clock enable in low power mode register - byte_offset: 80 - fieldset: AHB1LPENR - - name: APB1LPENR - description: APB1 peripheral clock enable in low power mode register - byte_offset: 96 - fieldset: APB1LPENR - - name: APB2LPENR - description: APB2 peripheral clock enabled in low power mode register - byte_offset: 100 - fieldset: APB2LPENR - - name: BDCR - description: Backup domain control register - byte_offset: 112 - fieldset: BDCR - - name: CSR - description: clock control & status register - byte_offset: 116 - fieldset: CSR - - name: SSCGR - description: spread spectrum clock generation register - byte_offset: 128 - fieldset: SSCGR - - name: DCKCFGR - description: DCKCFGR register - byte_offset: 140 - fieldset: DCKCFGR - - name: DCKCFGR2 - description: DCKCFGR2 register - byte_offset: 148 - fieldset: DCKCFGR2 + - name: CR + description: clock control register + byte_offset: 0 + fieldset: CR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 4 + fieldset: PLLCFGR + - name: CFGR + description: clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: CIR + description: clock interrupt register + byte_offset: 12 + fieldset: CIR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 16 + fieldset: AHB1RSTR + - name: APB1RSTR + description: APB1 peripheral reset register + byte_offset: 32 + fieldset: APB1RSTR + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 36 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock register + byte_offset: 48 + fieldset: AHB1ENR + - name: APB1ENR + description: APB1 peripheral clock enable register + byte_offset: 64 + fieldset: APB1ENR + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 68 + fieldset: APB2ENR + - name: AHB1LPENR + description: AHB1 peripheral clock enable in low power mode register + byte_offset: 80 + fieldset: AHB1LPENR + - name: APB1LPENR + description: APB1 peripheral clock enable in low power mode register + byte_offset: 96 + fieldset: APB1LPENR + - name: APB2LPENR + description: APB2 peripheral clock enabled in low power mode register + byte_offset: 100 + fieldset: APB2LPENR + - name: BDCR + description: Backup domain control register + byte_offset: 112 + fieldset: BDCR + - name: CSR + description: clock control & status register + byte_offset: 116 + fieldset: CSR + - name: SSCGR + description: spread spectrum clock generation register + byte_offset: 128 + fieldset: SSCGR + - name: DCKCFGR + description: DCKCFGR register + byte_offset: 140 + fieldset: DCKCFGR + - name: DCKCFGR2 + description: DCKCFGR2 register + byte_offset: 148 + fieldset: DCKCFGR2 fieldset/AHB1ENR: description: AHB1 peripheral clock register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 21 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 22 - bit_size: 1 - - name: RNGEN - description: RNG clock enable - bit_offset: 31 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 21 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 22 + bit_size: 1 + - name: RNGEN + description: RNG clock enable + bit_offset: 31 + bit_size: 1 fieldset/AHB1LPENR: description: AHB1 peripheral clock enable in low power mode register fields: - - name: GPIOALPEN - description: IO port A clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: IO port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: IO port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIOHLPEN - description: IO port H clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: CRCLPEN - description: CRC clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: FLASHLPEN - description: Flash interface clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM 1interface clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: DMA1LPEN - description: DMA1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: RNGLPEN - description: RNG clock enable during sleep mode - bit_offset: 31 - bit_size: 1 + - name: GPIOALPEN + description: IO port A clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: IO port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: IO port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIOHLPEN + description: IO port H clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: CRCLPEN + description: CRC clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: FLASHLPEN + description: Flash interface clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM 1interface clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: DMA1LPEN + description: DMA1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: RNGLPEN + description: RNG clock enable during sleep mode + bit_offset: 31 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: DMA1RST - description: DMA2 reset - bit_offset: 21 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 22 - bit_size: 1 - - name: RNGRST - description: RNGRST - bit_offset: 31 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: DMA1RST + description: DMA2 reset + bit_offset: 21 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 22 + bit_size: 1 + - name: RNGRST + description: RNGRST + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register fields: - - name: TIM5EN - description: TIM5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 clock enable - bit_offset: 4 - bit_size: 1 - - name: LPTIM1EN - description: LPTIM1 clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: FMPI2C1EN - description: FMPI2C1 clock enable - bit_offset: 24 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM5EN + description: TIM5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 clock enable + bit_offset: 4 + bit_size: 1 + - name: LPTIM1EN + description: LPTIM1 clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: FMPI2C1EN + description: FMPI2C1 clock enable + bit_offset: 24 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB1LPENR: description: APB1 peripheral clock enable in low power mode register fields: - - name: TIM5LPEN - description: TIM5 clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: LPTIM1LPEN - description: LPTIM1 clock enable during sleep mode - bit_offset: 9 - bit_size: 1 - - name: RTCAPBLPEN - description: RTC APB clock enable during sleep mode - bit_offset: 10 - bit_size: 1 - - name: WWDGLPEN - description: Window watchdog clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: USART2LPEN - description: USART2 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: FMPI2C1LPEN - description: FMPI2C1 clock enable during Sleep - bit_offset: 24 - bit_size: 1 - - name: PWRLPEN - description: Power interface clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: DACLPEN - description: DAC interface clock enable during sleep mode - bit_offset: 29 - bit_size: 1 + - name: TIM5LPEN + description: TIM5 clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: LPTIM1LPEN + description: LPTIM1 clock enable during sleep mode + bit_offset: 9 + bit_size: 1 + - name: RTCAPBLPEN + description: RTC APB clock enable during sleep mode + bit_offset: 10 + bit_size: 1 + - name: WWDGLPEN + description: Window watchdog clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: USART2LPEN + description: USART2 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: FMPI2C1LPEN + description: FMPI2C1 clock enable during Sleep + bit_offset: 24 + bit_size: 1 + - name: PWRLPEN + description: Power interface clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: DACLPEN + description: DAC interface clock enable during sleep mode + bit_offset: 29 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register fields: - - name: TIM5RST - description: TIM5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 reset - bit_offset: 4 - bit_size: 1 - - name: LPTIM1RST - description: LPTIM1 reset - bit_offset: 9 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI 2 reset - bit_offset: 14 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: I2C1RST - description: I2C 1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C 2 reset - bit_offset: 22 - bit_size: 1 - - name: FMPI2C1RST - description: FMPI2C1 reset - bit_offset: 24 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC reset - bit_offset: 29 - bit_size: 1 + - name: TIM5RST + description: TIM5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 reset + bit_offset: 4 + bit_size: 1 + - name: LPTIM1RST + description: LPTIM1 reset + bit_offset: 9 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI 2 reset + bit_offset: 14 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: I2C1RST + description: I2C 1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C 2 reset + bit_offset: 22 + bit_size: 1 + - name: FMPI2C1RST + description: FMPI2C1 reset + bit_offset: 24 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC reset + bit_offset: 29 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: TIM1EN - description: TIM1 clock enable - bit_offset: 0 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 clock enable - bit_offset: 5 - bit_size: 1 - - name: ADC1EN - description: ADC1 clock enable - bit_offset: 8 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: SYSCFGEN - description: System configuration controller clock enable - bit_offset: 14 - bit_size: 1 - - name: EXTITEN - description: EXTI ans external IT clock enable - bit_offset: 15 - bit_size: 1 - - name: TIM9EN - description: TIM9 clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM11EN - description: TIM11 clock enable - bit_offset: 18 - bit_size: 1 - - name: SPI5EN - description: SPI5 clock enable - bit_offset: 20 - bit_size: 1 + - name: TIM1EN + description: TIM1 clock enable + bit_offset: 0 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 clock enable + bit_offset: 5 + bit_size: 1 + - name: ADC1EN + description: ADC1 clock enable + bit_offset: 8 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: SYSCFGEN + description: System configuration controller clock enable + bit_offset: 14 + bit_size: 1 + - name: EXTITEN + description: EXTI ans external IT clock enable + bit_offset: 15 + bit_size: 1 + - name: TIM9EN + description: TIM9 clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM11EN + description: TIM11 clock enable + bit_offset: 18 + bit_size: 1 + - name: SPI5EN + description: SPI5 clock enable + bit_offset: 20 + bit_size: 1 fieldset/APB2LPENR: description: APB2 peripheral clock enabled in low power mode register fields: - - name: TIM1LPEN - description: TIM1 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: USART1LPEN - description: USART1 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: ADC1LPEN - description: ADC1 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: SDIOLPEN - description: SDIO clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: SPI 1 clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: SYSCFGLPEN - description: System configuration controller clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: EXTITLPEN - description: EXTI and External IT clock enable during sleep mode - bit_offset: 15 - bit_size: 1 - - name: TIM9LPEN - description: TIM9 clock enable during sleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM11LPEN - description: TIM11 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SPI5LPEN - description: SPI5 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: USART1LPEN + description: USART1 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: ADC1LPEN + description: ADC1 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: SDIOLPEN + description: SDIO clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: SPI 1 clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: SYSCFGLPEN + description: System configuration controller clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: EXTITLPEN + description: EXTI and External IT clock enable during sleep mode + bit_offset: 15 + bit_size: 1 + - name: TIM9LPEN + description: TIM9 clock enable during sleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM11LPEN + description: TIM11 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SPI5LPEN + description: SPI5 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: TIM1RST - description: TIM1 reset - bit_offset: 0 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 4 - bit_size: 1 - - name: USART6RST - description: USART6 reset - bit_offset: 5 - bit_size: 1 - - name: ADCRST - description: ADC interface reset (common to all ADCs) - bit_offset: 8 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: SYSCFGRST - description: System configuration controller reset - bit_offset: 14 - bit_size: 1 - - name: TIM9RST - description: TIM9 reset - bit_offset: 16 - bit_size: 1 - - name: TIM11RST - description: TIM11 reset - bit_offset: 18 - bit_size: 1 - - name: SPI5RST - description: SPI5 reset - bit_offset: 20 - bit_size: 1 + - name: TIM1RST + description: TIM1 reset + bit_offset: 0 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 4 + bit_size: 1 + - name: USART6RST + description: USART6 reset + bit_offset: 5 + bit_size: 1 + - name: ADCRST + description: ADC interface reset (common to all ADCs) + bit_offset: 8 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: SYSCFGRST + description: System configuration controller reset + bit_offset: 14 + bit_size: 1 + - name: TIM9RST + description: TIM9 reset + bit_offset: 16 + bit_size: 1 + - name: TIM11RST + description: TIM11 reset + bit_offset: 18 + bit_size: 1 + - name: SPI5RST + description: SPI5 reset + bit_offset: 20 + bit_size: 1 fieldset/BDCR: description: Backup domain control register fields: - - name: LSEON - description: External low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External low-speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External low-speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: MCO1EN - description: MCO output enable - bit_offset: 8 - bit_size: 1 - - name: MCO2EN - description: MCO output enable - bit_offset: 9 - bit_size: 1 - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 10 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 13 - bit_size: 3 - enum: PPRE - - name: RTCPRE - description: HSE division factor for RTC clock - bit_offset: 16 - bit_size: 5 - - name: MCO1 - description: Microcontroller clock output 1 - bit_offset: 21 - bit_size: 2 - enum: MCO1 - - name: MCO1PRE - description: MCO1 prescaler - bit_offset: 24 - bit_size: 3 - enum: MCOPRE - - name: MCO2PRE - description: MCO2 prescaler - bit_offset: 27 - bit_size: 3 - enum: MCOPRE - - name: MCO2 - description: Microcontroller clock output 2 - bit_offset: 30 - bit_size: 2 - enum: MCO2 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: MCO1EN + description: MCO output enable + bit_offset: 8 + bit_size: 1 + - name: MCO2EN + description: MCO output enable + bit_offset: 9 + bit_size: 1 + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 10 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 13 + bit_size: 3 + enum: PPRE + - name: RTCPRE + description: HSE division factor for RTC clock + bit_offset: 16 + bit_size: 5 + - name: MCO1 + description: Microcontroller clock output 1 + bit_offset: 21 + bit_size: 2 + enum: MCO1 + - name: MCO1PRE + description: MCO1 prescaler + bit_offset: 24 + bit_size: 3 + enum: MCOPRE + - name: MCO2PRE + description: MCO2 prescaler + bit_offset: 27 + bit_size: 3 + enum: MCOPRE + - name: MCO2 + description: Microcontroller clock output 2 + bit_offset: 30 + bit_size: 2 + enum: MCO2 fieldset/CIR: description: clock interrupt register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: Main PLL (PLL) ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: Main PLL (PLL) ready interrupt enable - bit_offset: 12 - bit_size: 1 - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: Main PLL(PLL) ready interrupt clear - bit_offset: 20 - bit_size: 1 - - name: PLLI2SRDYC - description: PLLI2S ready interrupt clear - bit_offset: 21 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: Main PLL (PLL) ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: Main PLL (PLL) ready interrupt enable + bit_offset: 12 + bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: Main PLL(PLL) ready interrupt clear + bit_offset: 20 + bit_size: 1 + - name: PLLI2SRDYC + description: PLLI2S ready interrupt clear + bit_offset: 21 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal high-speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal high-speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal high-speed clock calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL (PLL) enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL (PLL) clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal high-speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal high-speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal high-speed clock calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL (PLL) enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL (PLL) clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: clock control & status register fields: - - name: LSION - description: Internal low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 25 - bit_size: 1 - - name: PADRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: WDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 25 + bit_size: 1 + - name: PADRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: WDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/DCKCFGR: description: DCKCFGR register fields: - - name: TIMPRE - description: TIMPRE - bit_offset: 24 - bit_size: 1 - enum: TIMPRE - - name: I2SSRC - description: I2SSRC - bit_offset: 25 - bit_size: 2 - enum: ISSRC + - name: TIMPRE + description: TIMPRE + bit_offset: 24 + bit_size: 1 + enum: TIMPRE + - name: I2SSRC + description: I2SSRC + bit_offset: 25 + bit_size: 2 + enum: ISSRC fieldset/DCKCFGR2: description: DCKCFGR2 register fields: - - name: FMPI2C1SEL - description: FMPI2C1 kernel clock source selection - bit_offset: 22 - bit_size: 2 - enum: FMPICSEL - - name: LPTIM1SEL - description: LPTIM1SEL - bit_offset: 30 - bit_size: 2 - enum: LPTIMSEL + - name: FMPI2C1SEL + description: FMPI2C1 kernel clock source selection + bit_offset: 22 + bit_size: 2 + enum: FMPICSEL + - name: LPTIM1SEL + description: LPTIM1SEL + bit_offset: 30 + bit_size: 2 + enum: LPTIMSEL fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLM - description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock - bit_offset: 0 - bit_size: 6 - - name: PLLN - description: Main PLL (PLL) multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLP - description: Main PLL (PLL) division factor for main system clock - bit_offset: 16 - bit_size: 2 - enum: PLLP - - name: PLLSRC - description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source - bit_offset: 22 - bit_size: 1 - enum: PLLSRC - - name: PLLQ - description: "Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks" - bit_offset: 24 - bit_size: 4 - - name: PLLR - description: PLL division factor for I2S and System clocks - bit_offset: 28 - bit_size: 3 + - name: PLLM + description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock + bit_offset: 0 + bit_size: 6 + - name: PLLN + description: Main PLL (PLL) multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLP + description: Main PLL (PLL) division factor for main system clock + bit_offset: 16 + bit_size: 2 + enum: PLLP + - name: PLLSRC + description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source + bit_offset: 22 + bit_size: 1 + enum: PLLSRC + - name: PLLQ + description: Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks + bit_offset: 24 + bit_size: 4 + - name: PLLR + description: PLL division factor for I2S and System clocks + bit_offset: 28 + bit_size: 3 fieldset/SSCGR: description: spread spectrum clock generation register fields: - - name: MODPER - description: Modulation period - bit_offset: 0 - bit_size: 13 - - name: INCSTEP - description: Incrementation step - bit_offset: 13 - bit_size: 15 - - name: SPREADSEL - description: Spread Select - bit_offset: 30 - bit_size: 1 - enum: SPREADSEL - - name: SSCGEN - description: Spread spectrum modulation enable - bit_offset: 31 - bit_size: 1 + - name: MODPER + description: Modulation period + bit_offset: 0 + bit_size: 13 + - name: INCSTEP + description: Incrementation step + bit_offset: 13 + bit_size: 15 + - name: SPREADSEL + description: Spread Select + bit_offset: 30 + bit_size: 1 + enum: SPREADSEL + - name: SSCGEN + description: Spread spectrum modulation enable + bit_offset: 31 + bit_size: 1 enum/FMPICSEL: bit_size: 2 variants: - - name: APB - description: APB clock selected as I2C clock - value: 0 - - name: SYSCLK - description: System clock selected as I2C clock - value: 1 - - name: HSI - description: HSI clock selected as I2C clock - value: 2 + - name: APB + description: APB clock selected as I2C clock + value: 0 + - name: SYSCLK + description: System clock selected as I2C clock + value: 1 + - name: HSI + description: HSI clock selected as I2C clock + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/ISSRC: bit_size: 2 variants: - - name: PLLCLKR - description: I2Sx clock frequency = f(PLLCLK_R) - value: 0 - - name: I2S_CKIN - description: I2Sx clock frequency = I2S_CKIN Alternate function input frequency - value: 1 - - name: HSI_HSE - description: "I2Sx clock frequency = HSI/HSE depends on PLLSRC bit (PLLCFGR[22])" - value: 3 + - name: PLLCLKR + description: I2Sx clock frequency = f(PLLCLK_R) + value: 0 + - name: I2S_CKIN + description: I2Sx clock frequency = I2S_CKIN Alternate function input frequency + value: 1 + - name: HSI_HSE + description: I2Sx clock frequency = HSI/HSE depends on PLLSRC bit (PLLCFGR[22]) + value: 3 enum/LPTIMSEL: bit_size: 2 variants: - - name: APB1 - description: APB1 clock (PCLK1) selected as LPTILM1 clock - value: 0 - - name: LSI - description: LSI clock is selected as LPTILM1 clock - value: 1 - - name: HSI - description: HSI clock is selected as LPTILM1 clock - value: 2 - - name: LSE - description: LSE clock is selected as LPTILM1 clock - value: 3 + - name: APB1 + description: APB1 clock (PCLK1) selected as LPTILM1 clock + value: 0 + - name: LSI + description: LSI clock is selected as LPTILM1 clock + value: 1 + - name: HSI + description: HSI clock is selected as LPTILM1 clock + value: 2 + - name: LSE + description: LSE clock is selected as LPTILM1 clock + value: 3 enum/MCO1: bit_size: 2 variants: - - name: HSI - description: HSI clock selected - value: 0 - - name: LSE - description: LSE oscillator selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: HSI + description: HSI clock selected + value: 0 + - name: LSE + description: LSE oscillator selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCO2: bit_size: 2 variants: - - name: SYSCLK - description: System clock (SYSCLK) selected - value: 0 - - name: PLLI2S - description: PLLI2S clock selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: SYSCLK + description: System clock (SYSCLK) selected + value: 0 + - name: PLLI2S + description: PLLI2S clock selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 4 - - name: Div3 - description: Division by 3 - value: 5 - - name: Div4 - description: Division by 4 - value: 6 - - name: Div5 - description: Division by 5 - value: 7 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 4 + - name: Div3 + description: Division by 3 + value: 5 + - name: Div4 + description: Division by 4 + value: 6 + - name: Div5 + description: Division by 5 + value: 7 enum/PLLP: bit_size: 2 variants: - - name: Div2 - description: PLLP=2 - value: 0 - - name: Div4 - description: PLLP=4 - value: 1 - - name: Div6 - description: PLLP=6 - value: 2 - - name: Div8 - description: PLLP=8 - value: 3 + - name: Div2 + description: PLLP=2 + value: 0 + - name: Div4 + description: PLLP=4 + value: 1 + - name: Div6 + description: PLLP=6 + value: 2 + - name: Div8 + description: PLLP=8 + value: 3 enum/PLLSRC: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as PLL and PLLI2S clock entry - value: 0 - - name: HSE - description: HSE oscillator clock selected as PLL and PLLI2S clock entry - value: 1 + - name: HSI + description: HSI clock selected as PLL and PLLI2S clock entry + value: 0 + - name: HSE + description: HSE oscillator clock selected as PLL and PLLI2S clock entry + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SPREADSEL: bit_size: 1 variants: - - name: Center - description: Center spread - value: 0 - - name: Down - description: Down spread - value: 1 + - name: Center + description: Center spread + value: 0 + - name: Down + description: Down spread + value: 1 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/TIMPRE: bit_size: 1 variants: - - name: Mul2 - description: "If the APB prescaler is configured 1, TIMxCLK = PCLKx. Otherwise, TIMxCLK = 2xPCLKx" - value: 0 - - name: Mul4 - description: "If the APB prescaler is configured 1, 2 or 4, TIMxCLK = HCLK. Otherwise, TIMxCLK = 4xPCLKx" - value: 1 + - name: Mul2 + description: If the APB prescaler is configured 1, TIMxCLK = PCLKx. Otherwise, TIMxCLK = 2xPCLKx + value: 0 + - name: Mul4 + description: If the APB prescaler is configured 1, 2 or 4, TIMxCLK = HCLK. Otherwise, TIMxCLK = 4xPCLKx + value: 1 diff --git a/data/registers/rcc_f7.yaml b/data/registers/rcc_f7.yaml index fc6fe61..3ec71d8 100644 --- a/data/registers/rcc_f7.yaml +++ b/data/registers/rcc_f7.yaml @@ -1,2255 +1,2254 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: clock control register - byte_offset: 0 - fieldset: CR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 4 - fieldset: PLLCFGR - - name: CFGR - description: clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: CIR - description: clock interrupt register - byte_offset: 12 - fieldset: CIR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 16 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 20 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 24 - fieldset: AHB3RSTR - - name: APB1RSTR - description: APB1 peripheral reset register - byte_offset: 32 - fieldset: APB1RSTR - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 36 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock register - byte_offset: 48 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 52 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 56 - fieldset: AHB3ENR - - name: APB1ENR - description: APB1 peripheral clock enable register - byte_offset: 64 - fieldset: APB1ENR - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 68 - fieldset: APB2ENR - - name: AHB1LPENR - description: AHB1 peripheral clock enable in low power mode register - byte_offset: 80 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: AHB2 peripheral clock enable in low power mode register - byte_offset: 84 - fieldset: AHB2LPENR - - name: AHB3LPENR - description: AHB3 peripheral clock enable in low power mode register - byte_offset: 88 - fieldset: AHB3LPENR - - name: APB1LPENR - description: APB1 peripheral clock enable in low power mode register - byte_offset: 96 - fieldset: APB1LPENR - - name: APB2LPENR - description: APB2 peripheral clock enabled in low power mode register - byte_offset: 100 - fieldset: APB2LPENR - - name: BDCR - description: Backup domain control register - byte_offset: 112 - fieldset: BDCR - - name: CSR - description: clock control & status register - byte_offset: 116 - fieldset: CSR - - name: SSCGR - description: spread spectrum clock generation register - byte_offset: 128 - fieldset: SSCGR - - name: PLLI2SCFGR - description: PLLI2S configuration register - byte_offset: 132 - fieldset: PLLI2SCFGR - - name: PLLSAICFGR - description: PLL configuration register - byte_offset: 136 - fieldset: PLLSAICFGR - - name: DCKCFGR1 - description: dedicated clocks configuration register - byte_offset: 140 - fieldset: DCKCFGR1 - - name: DCKCFGR2 - description: dedicated clocks configuration register - byte_offset: 144 - fieldset: DCKCFGR2 + - name: CR + description: clock control register + byte_offset: 0 + fieldset: CR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 4 + fieldset: PLLCFGR + - name: CFGR + description: clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: CIR + description: clock interrupt register + byte_offset: 12 + fieldset: CIR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 16 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 20 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 24 + fieldset: AHB3RSTR + - name: APB1RSTR + description: APB1 peripheral reset register + byte_offset: 32 + fieldset: APB1RSTR + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 36 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock register + byte_offset: 48 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 52 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 56 + fieldset: AHB3ENR + - name: APB1ENR + description: APB1 peripheral clock enable register + byte_offset: 64 + fieldset: APB1ENR + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 68 + fieldset: APB2ENR + - name: AHB1LPENR + description: AHB1 peripheral clock enable in low power mode register + byte_offset: 80 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: AHB2 peripheral clock enable in low power mode register + byte_offset: 84 + fieldset: AHB2LPENR + - name: AHB3LPENR + description: AHB3 peripheral clock enable in low power mode register + byte_offset: 88 + fieldset: AHB3LPENR + - name: APB1LPENR + description: APB1 peripheral clock enable in low power mode register + byte_offset: 96 + fieldset: APB1LPENR + - name: APB2LPENR + description: APB2 peripheral clock enabled in low power mode register + byte_offset: 100 + fieldset: APB2LPENR + - name: BDCR + description: Backup domain control register + byte_offset: 112 + fieldset: BDCR + - name: CSR + description: clock control & status register + byte_offset: 116 + fieldset: CSR + - name: SSCGR + description: spread spectrum clock generation register + byte_offset: 128 + fieldset: SSCGR + - name: PLLI2SCFGR + description: PLLI2S configuration register + byte_offset: 132 + fieldset: PLLI2SCFGR + - name: PLLSAICFGR + description: PLL configuration register + byte_offset: 136 + fieldset: PLLSAICFGR + - name: DCKCFGR1 + description: dedicated clocks configuration register + byte_offset: 140 + fieldset: DCKCFGR1 + - name: DCKCFGR2 + description: dedicated clocks configuration register + byte_offset: 144 + fieldset: DCKCFGR2 fieldset/AHB1ENR: description: AHB1 peripheral clock register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: IO port I clock enable - bit_offset: 8 - bit_size: 1 - - name: GPIOJEN - description: IO port J clock enable - bit_offset: 9 - bit_size: 1 - - name: GPIOKEN - description: IO port K clock enable - bit_offset: 10 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: BKPSRAMEN - description: Backup SRAM interface clock enable - bit_offset: 18 - bit_size: 1 - - name: DTCMRAMEN - description: CCM data RAM clock enable - bit_offset: 20 - bit_size: 1 - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 21 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 22 - bit_size: 1 - - name: DMA2DEN - description: DMA2D clock enable - bit_offset: 23 - bit_size: 1 - - name: ETHEN - description: Ethernet MAC clock enable - bit_offset: 25 - bit_size: 1 - - name: ETHTXEN - description: Ethernet Transmission clock enable - bit_offset: 26 - bit_size: 1 - - name: ETHRXEN - description: Ethernet Reception clock enable - bit_offset: 27 - bit_size: 1 - - name: ETHPTPEN - description: Ethernet PTP clock enable - bit_offset: 28 - bit_size: 1 - - name: USB_OTG_HSEN - description: USB OTG HS clock enable - bit_offset: 29 - bit_size: 1 - - name: USB_OTG_HSULPIEN - description: USB OTG HSULPI clock enable - bit_offset: 30 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: IO port I clock enable + bit_offset: 8 + bit_size: 1 + - name: GPIOJEN + description: IO port J clock enable + bit_offset: 9 + bit_size: 1 + - name: GPIOKEN + description: IO port K clock enable + bit_offset: 10 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: BKPSRAMEN + description: Backup SRAM interface clock enable + bit_offset: 18 + bit_size: 1 + - name: DTCMRAMEN + description: CCM data RAM clock enable + bit_offset: 20 + bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 21 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 22 + bit_size: 1 + - name: DMA2DEN + description: DMA2D clock enable + bit_offset: 23 + bit_size: 1 + - name: ETHEN + description: Ethernet MAC clock enable + bit_offset: 25 + bit_size: 1 + - name: ETHTXEN + description: Ethernet Transmission clock enable + bit_offset: 26 + bit_size: 1 + - name: ETHRXEN + description: Ethernet Reception clock enable + bit_offset: 27 + bit_size: 1 + - name: ETHPTPEN + description: Ethernet PTP clock enable + bit_offset: 28 + bit_size: 1 + - name: USB_OTG_HSEN + description: USB OTG HS clock enable + bit_offset: 29 + bit_size: 1 + - name: USB_OTG_HSULPIEN + description: USB OTG HSULPI clock enable + bit_offset: 30 + bit_size: 1 fieldset/AHB1LPENR: description: AHB1 peripheral clock enable in low power mode register fields: - - name: GPIOALPEN - description: IO port A clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: IO port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: IO port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: IO port D clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: IO port E clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: IO port F clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: IO port G clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: IO port H clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: IO port I clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: GPIOJLPEN - description: IO port J clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: GPIOKLPEN - description: IO port K clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: CRCLPEN - description: CRC clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: AXILPEN - description: AXI to AHB bridge clock enable during Sleep mode - bit_offset: 13 - bit_size: 1 - - name: FLASHLPEN - description: Flash interface clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM 1interface clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: SRAM2LPEN - description: SRAM 2 interface clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: BKPSRAMLPEN - description: Backup SRAM interface clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SRAM3LPEN - description: SRAM 3 interface clock enable during Sleep mode - bit_offset: 19 - bit_size: 1 - - name: DTCMLPEN - description: DTCM RAM interface clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: DMA1LPEN - description: DMA1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: DMA2DLPEN - description: DMA2D clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: ETHLPEN - description: Ethernet MAC clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: ETHTXLPEN - description: Ethernet transmission clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: ETHRXLPEN - description: Ethernet reception clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: ETHPTPLPEN - description: Ethernet PTP clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: USB_OTG_HSLPEN - description: USB OTG HS clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: USB_OTG_HSULPILPEN - description: USB OTG HS ULPI clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 + - name: GPIOALPEN + description: IO port A clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: IO port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: IO port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: IO port D clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: IO port E clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: IO port F clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: IO port G clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: IO port H clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: IO port I clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: GPIOJLPEN + description: IO port J clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: GPIOKLPEN + description: IO port K clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: CRCLPEN + description: CRC clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: AXILPEN + description: AXI to AHB bridge clock enable during Sleep mode + bit_offset: 13 + bit_size: 1 + - name: FLASHLPEN + description: Flash interface clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM 1interface clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: SRAM2LPEN + description: SRAM 2 interface clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: BKPSRAMLPEN + description: Backup SRAM interface clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SRAM3LPEN + description: SRAM 3 interface clock enable during Sleep mode + bit_offset: 19 + bit_size: 1 + - name: DTCMLPEN + description: DTCM RAM interface clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: DMA1LPEN + description: DMA1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: DMA2DLPEN + description: DMA2D clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: ETHLPEN + description: Ethernet MAC clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: ETHTXLPEN + description: Ethernet transmission clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: ETHRXLPEN + description: Ethernet reception clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: ETHPTPLPEN + description: Ethernet PTP clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: USB_OTG_HSLPEN + description: USB OTG HS clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: USB_OTG_HSULPILPEN + description: USB OTG HS ULPI clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: IO port I reset - bit_offset: 8 - bit_size: 1 - - name: GPIOJRST - description: IO port J reset - bit_offset: 9 - bit_size: 1 - - name: GPIOKRST - description: IO port K reset - bit_offset: 10 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: DMA1RST - description: DMA2 reset - bit_offset: 21 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 22 - bit_size: 1 - - name: DMA2DRST - description: DMA2D reset - bit_offset: 23 - bit_size: 1 - - name: ETHRST - description: Ethernet MAC reset - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HSRST - description: USB OTG HS module reset - bit_offset: 29 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: IO port I reset + bit_offset: 8 + bit_size: 1 + - name: GPIOJRST + description: IO port J reset + bit_offset: 9 + bit_size: 1 + - name: GPIOKRST + description: IO port K reset + bit_offset: 10 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: DMA1RST + description: DMA2 reset + bit_offset: 21 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 22 + bit_size: 1 + - name: DMA2DRST + description: DMA2D reset + bit_offset: 23 + bit_size: 1 + - name: ETHRST + description: Ethernet MAC reset + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HSRST + description: USB OTG HS module reset + bit_offset: 29 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: DCMIEN - description: Camera interface enable - bit_offset: 0 - bit_size: 1 - - name: JPEGEN - description: JPEG enable - bit_offset: 1 - bit_size: 1 - - name: AESEN - description: AES module clock enable - bit_offset: 4 - bit_size: 1 - - name: CRYPEN - description: Cryptographic modules clock enable - bit_offset: 4 - bit_size: 1 - - name: HASHEN - description: Hash modules clock enable - bit_offset: 5 - bit_size: 1 - - name: RNGEN - description: Random number generator clock enable - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB OTG FS clock enable - bit_offset: 7 - bit_size: 1 + - name: DCMIEN + description: Camera interface enable + bit_offset: 0 + bit_size: 1 + - name: JPEGEN + description: JPEG enable + bit_offset: 1 + bit_size: 1 + - name: AESEN + description: AES module clock enable + bit_offset: 4 + bit_size: 1 + - name: CRYPEN + description: Cryptographic modules clock enable + bit_offset: 4 + bit_size: 1 + - name: HASHEN + description: Hash modules clock enable + bit_offset: 5 + bit_size: 1 + - name: RNGEN + description: Random number generator clock enable + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB OTG FS clock enable + bit_offset: 7 + bit_size: 1 fieldset/AHB2LPENR: description: AHB2 peripheral clock enable in low power mode register fields: - - name: DCMILPEN - description: Camera interface enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: JPEGLPEN - description: JPEG module enabled during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: AESLPEN - description: AES module clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: CRYPLPEN - description: Cryptography modules clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: HASHLPEN - description: Hash modules clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: RNGLPEN - description: Random number generator clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSLPEN - description: USB OTG FS clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 + - name: DCMILPEN + description: Camera interface enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: JPEGLPEN + description: JPEG module enabled during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: AESLPEN + description: AES module clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: CRYPLPEN + description: Cryptography modules clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: HASHLPEN + description: Hash modules clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: RNGLPEN + description: Random number generator clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSLPEN + description: USB OTG FS clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: DCMIRST - description: Camera interface reset - bit_offset: 0 - bit_size: 1 - - name: AESRST - description: AES module reset - bit_offset: 4 - bit_size: 1 - - name: CRYPRST - description: Cryptographic module reset - bit_offset: 4 - bit_size: 1 - - name: HSAHRST - description: Hash module reset - bit_offset: 5 - bit_size: 1 - - name: RNGRST - description: Random number generator module reset - bit_offset: 6 - bit_size: 1 - - name: USB_OTG_FSRST - description: USB OTG FS module reset - bit_offset: 7 - bit_size: 1 + - name: DCMIRST + description: Camera interface reset + bit_offset: 0 + bit_size: 1 + - name: AESRST + description: AES module reset + bit_offset: 4 + bit_size: 1 + - name: CRYPRST + description: Cryptographic module reset + bit_offset: 4 + bit_size: 1 + - name: HSAHRST + description: Hash module reset + bit_offset: 5 + bit_size: 1 + - name: RNGRST + description: Random number generator module reset + bit_offset: 6 + bit_size: 1 + - name: USB_OTG_FSRST + description: USB OTG FS module reset + bit_offset: 7 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: FMCEN - description: Flexible memory controller module clock enable - bit_offset: 0 - bit_size: 1 - - name: QUADSPIEN - description: Quad SPI memory controller clock enable - bit_offset: 1 - bit_size: 1 + - name: FMCEN + description: Flexible memory controller module clock enable + bit_offset: 0 + bit_size: 1 + - name: QUADSPIEN + description: Quad SPI memory controller clock enable + bit_offset: 1 + bit_size: 1 fieldset/AHB3LPENR: description: AHB3 peripheral clock enable in low power mode register fields: - - name: FMCLPEN - description: Flexible memory controller module clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: QUADSPILPEN - description: Quand SPI memory controller clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 + - name: FMCLPEN + description: Flexible memory controller module clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: QUADSPILPEN + description: Quand SPI memory controller clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: FMCRST - description: Flexible memory controller module reset - bit_offset: 0 - bit_size: 1 - - name: QUADSPIRST - description: Quad SPI memory controller reset - bit_offset: 1 - bit_size: 1 + - name: FMCRST + description: Flexible memory controller module reset + bit_offset: 0 + bit_size: 1 + - name: QUADSPIRST + description: Quad SPI memory controller reset + bit_offset: 1 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register fields: - - name: TIM2EN - description: TIM2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: TIM12 clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: TIM13 clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: TIM14 clock enable - bit_offset: 8 - bit_size: 1 - - name: LPTIM1EN - description: Low power timer 1 clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCEN - description: RTCAPB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: CAN3EN - description: CAN 3 enable - bit_offset: 13 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXEN - description: SPDIF-RX clock enable - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: I2C4EN - description: I2C4 clock enable - bit_offset: 24 - bit_size: 1 - - name: CAN1EN - description: CAN 1 clock enable - bit_offset: 25 - bit_size: 1 - - name: CAN2EN - description: CAN 2 clock enable - bit_offset: 26 - bit_size: 1 - - name: CECEN - description: HDMI-CEN clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: UART7EN - description: UART7 clock enable - bit_offset: 30 - bit_size: 1 - - name: UART8EN - description: UART8 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: TIM12 clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: TIM13 clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: TIM14 clock enable + bit_offset: 8 + bit_size: 1 + - name: LPTIM1EN + description: Low power timer 1 clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCEN + description: RTCAPB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: CAN3EN + description: CAN 3 enable + bit_offset: 13 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXEN + description: SPDIF-RX clock enable + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: I2C4EN + description: I2C4 clock enable + bit_offset: 24 + bit_size: 1 + - name: CAN1EN + description: CAN 1 clock enable + bit_offset: 25 + bit_size: 1 + - name: CAN2EN + description: CAN 2 clock enable + bit_offset: 26 + bit_size: 1 + - name: CECEN + description: HDMI-CEN clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: UART7EN + description: UART7 clock enable + bit_offset: 30 + bit_size: 1 + - name: UART8EN + description: UART8 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1LPENR: description: APB1 peripheral clock enable in low power mode register fields: - - name: TIM2LPEN - description: TIM2 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: TIM3 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: TIM4 clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: TIM5 clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: TIM7 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: TIM12 clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: TIM13 clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: TIM14 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: LPTIM1LPEN - description: low power timer 1 clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: RTCLPEN - description: RTCAPB clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: WWDGLPEN - description: Window watchdog clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: CAN3LPEN - description: CAN 3 clock enable during Sleep mode - bit_offset: 13 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: SPI3 clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXLPEN - description: SPDIF-RX clock enable during sleep mode - bit_offset: 16 - bit_size: 1 - - name: USART2LPEN - description: USART2 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART3 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: UART4 clock enable during Sleep mode - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: UART5 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: I2C3LPEN - description: I2C3 clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: I2C4LPEN - description: I2C4 clock enable during Sleep mode - bit_offset: 24 - bit_size: 1 - - name: CAN1LPEN - description: CAN 1 clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: CAN2LPEN - description: CAN 2 clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: CECLPEN - description: HDMI-CEN clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: PWRLPEN - description: Power interface clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: DACLPEN - description: DAC interface clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: UART7LPEN - description: UART7 clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 - - name: UART8LPEN - description: UART8 clock enable during Sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: TIM2 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: TIM3 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: TIM4 clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: TIM5 clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: TIM7 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: TIM12 clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: TIM13 clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: TIM14 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: LPTIM1LPEN + description: low power timer 1 clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: RTCLPEN + description: RTCAPB clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: WWDGLPEN + description: Window watchdog clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: CAN3LPEN + description: CAN 3 clock enable during Sleep mode + bit_offset: 13 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: SPI3 clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXLPEN + description: SPDIF-RX clock enable during sleep mode + bit_offset: 16 + bit_size: 1 + - name: USART2LPEN + description: USART2 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART3 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: UART4 clock enable during Sleep mode + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: UART5 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: I2C3LPEN + description: I2C3 clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: I2C4LPEN + description: I2C4 clock enable during Sleep mode + bit_offset: 24 + bit_size: 1 + - name: CAN1LPEN + description: CAN 1 clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: CAN2LPEN + description: CAN 2 clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: CECLPEN + description: HDMI-CEN clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: PWRLPEN + description: Power interface clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: DACLPEN + description: DAC interface clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: UART7LPEN + description: UART7 clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 + - name: UART8LPEN + description: UART8 clock enable during Sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register fields: - - name: TIM2RST - description: TIM2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: TIM12 reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: TIM13 reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: TIM14 reset - bit_offset: 8 - bit_size: 1 - - name: LPTIM1RST - description: Low power timer 1 reset - bit_offset: 9 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: CAN3RST - description: CAN 3 reset - bit_offset: 13 - bit_size: 1 - - name: SPI2RST - description: SPI 2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI 3 reset - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXRST - description: SPDIF-RX reset - bit_offset: 16 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: USART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: USART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C 1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C 2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: I2C4RST - description: I2C 4 reset - bit_offset: 24 - bit_size: 1 - - name: CAN1RST - description: CAN1 reset - bit_offset: 25 - bit_size: 1 - - name: CAN2RST - description: CAN2 reset - bit_offset: 26 - bit_size: 1 - - name: CECRST - description: HDMI-CEC reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC reset - bit_offset: 29 - bit_size: 1 - - name: UART7RST - description: UART7 reset - bit_offset: 30 - bit_size: 1 - - name: UART8RST - description: UART8 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: TIM12 reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: TIM13 reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: TIM14 reset + bit_offset: 8 + bit_size: 1 + - name: LPTIM1RST + description: Low power timer 1 reset + bit_offset: 9 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: CAN3RST + description: CAN 3 reset + bit_offset: 13 + bit_size: 1 + - name: SPI2RST + description: SPI 2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI 3 reset + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXRST + description: SPDIF-RX reset + bit_offset: 16 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: USART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: USART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C 1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C 2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: I2C4RST + description: I2C 4 reset + bit_offset: 24 + bit_size: 1 + - name: CAN1RST + description: CAN1 reset + bit_offset: 25 + bit_size: 1 + - name: CAN2RST + description: CAN2 reset + bit_offset: 26 + bit_size: 1 + - name: CECRST + description: HDMI-CEC reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC reset + bit_offset: 29 + bit_size: 1 + - name: UART7RST + description: UART7 reset + bit_offset: 30 + bit_size: 1 + - name: UART8RST + description: UART8 reset + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: TIM1EN - description: TIM1 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM8EN - description: TIM8 clock enable - bit_offset: 1 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 clock enable - bit_offset: 5 - bit_size: 1 - - name: SDMMC2EN - description: SDMMC2 clock enable - bit_offset: 7 - bit_size: 1 - - name: ADC1EN - description: ADC1 clock enable - bit_offset: 8 - bit_size: 1 - - name: ADC2EN - description: ADC2 clock enable - bit_offset: 9 - bit_size: 1 - - name: ADC3EN - description: ADC3 clock enable - bit_offset: 10 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: SPI4EN - description: SPI4 clock enable - bit_offset: 13 - bit_size: 1 - - name: SYSCFGEN - description: System configuration controller clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM9EN - description: TIM9 clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM10EN - description: TIM10 clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM11EN - description: TIM11 clock enable - bit_offset: 18 - bit_size: 1 - - name: SPI5EN - description: SPI5 clock enable - bit_offset: 20 - bit_size: 1 - - name: SPI6EN - description: SPI6 clock enable - bit_offset: 21 - bit_size: 1 - - name: SAI1EN - description: SAI1 clock enable - bit_offset: 22 - bit_size: 1 - - name: SAI2EN - description: SAI2 clock enable - bit_offset: 23 - bit_size: 1 - - name: LTDCEN - description: LTDC clock enable - bit_offset: 26 - bit_size: 1 - - name: DSIEN - description: DSI clock enable - bit_offset: 27 - bit_size: 1 - - name: DFSDM1EN - description: DFSDM1 clock enable - bit_offset: 29 - bit_size: 1 - - name: MDIOSEN - description: MDIO clock enable - bit_offset: 30 - bit_size: 1 - - name: USBPHYCEN - description: USB OTG HS PHY controller clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM1EN + description: TIM1 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM8EN + description: TIM8 clock enable + bit_offset: 1 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 clock enable + bit_offset: 5 + bit_size: 1 + - name: SDMMC2EN + description: SDMMC2 clock enable + bit_offset: 7 + bit_size: 1 + - name: ADC1EN + description: ADC1 clock enable + bit_offset: 8 + bit_size: 1 + - name: ADC2EN + description: ADC2 clock enable + bit_offset: 9 + bit_size: 1 + - name: ADC3EN + description: ADC3 clock enable + bit_offset: 10 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: SPI4EN + description: SPI4 clock enable + bit_offset: 13 + bit_size: 1 + - name: SYSCFGEN + description: System configuration controller clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM9EN + description: TIM9 clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM10EN + description: TIM10 clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM11EN + description: TIM11 clock enable + bit_offset: 18 + bit_size: 1 + - name: SPI5EN + description: SPI5 clock enable + bit_offset: 20 + bit_size: 1 + - name: SPI6EN + description: SPI6 clock enable + bit_offset: 21 + bit_size: 1 + - name: SAI1EN + description: SAI1 clock enable + bit_offset: 22 + bit_size: 1 + - name: SAI2EN + description: SAI2 clock enable + bit_offset: 23 + bit_size: 1 + - name: LTDCEN + description: LTDC clock enable + bit_offset: 26 + bit_size: 1 + - name: DSIEN + description: DSI clock enable + bit_offset: 27 + bit_size: 1 + - name: DFSDM1EN + description: DFSDM1 clock enable + bit_offset: 29 + bit_size: 1 + - name: MDIOSEN + description: MDIO clock enable + bit_offset: 30 + bit_size: 1 + - name: USBPHYCEN + description: USB OTG HS PHY controller clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB2LPENR: description: APB2 peripheral clock enabled in low power mode register fields: - - name: TIM1LPEN - description: TIM1 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM8LPEN - description: TIM8 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: USART1LPEN - description: USART1 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: SDMMC2LPEN - description: SDMMC2 clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: ADC1LPEN - description: ADC1 clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: ADC2LPEN - description: ADC2 clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: ADC3LPEN - description: ADC 3 clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: SDMMC1LPEN - description: SDMMC1 clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: SPI 1 clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: SPI4LPEN - description: SPI 4 clock enable during Sleep mode - bit_offset: 13 - bit_size: 1 - - name: SYSCFGLPEN - description: System configuration controller clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: TIM9LPEN - description: TIM9 clock enable during sleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM10LPEN - description: TIM10 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM11LPEN - description: TIM11 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SPI5LPEN - description: SPI 5 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: SPI6LPEN - description: SPI 6 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: SAI1LPEN - description: SAI1 clock enable during sleep mode - bit_offset: 22 - bit_size: 1 - - name: SAI2LPEN - description: SAI2 clock enable during sleep mode - bit_offset: 23 - bit_size: 1 - - name: LTDCLPEN - description: LTDC clock enable during sleep mode - bit_offset: 26 - bit_size: 1 - - name: DSILPEN - description: DSI clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: DFSDM1LPEN - description: DFSDM1 clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: MDIOSLPEN - description: MDIO clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM8LPEN + description: TIM8 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: USART1LPEN + description: USART1 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: SDMMC2LPEN + description: SDMMC2 clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: ADC1LPEN + description: ADC1 clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: ADC2LPEN + description: ADC2 clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: ADC3LPEN + description: ADC 3 clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: SDMMC1LPEN + description: SDMMC1 clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: SPI 1 clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: SPI4LPEN + description: SPI 4 clock enable during Sleep mode + bit_offset: 13 + bit_size: 1 + - name: SYSCFGLPEN + description: System configuration controller clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: TIM9LPEN + description: TIM9 clock enable during sleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM10LPEN + description: TIM10 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM11LPEN + description: TIM11 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SPI5LPEN + description: SPI 5 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: SPI6LPEN + description: SPI 6 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: SAI1LPEN + description: SAI1 clock enable during sleep mode + bit_offset: 22 + bit_size: 1 + - name: SAI2LPEN + description: SAI2 clock enable during sleep mode + bit_offset: 23 + bit_size: 1 + - name: LTDCLPEN + description: LTDC clock enable during sleep mode + bit_offset: 26 + bit_size: 1 + - name: DSILPEN + description: DSI clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: DFSDM1LPEN + description: DFSDM1 clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: MDIOSLPEN + description: MDIO clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: TIM1RST - description: TIM1 reset - bit_offset: 0 - bit_size: 1 - - name: TIM8RST - description: TIM8 reset - bit_offset: 1 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 4 - bit_size: 1 - - name: USART6RST - description: USART6 reset - bit_offset: 5 - bit_size: 1 - - name: SDMMC2RST - description: SDMMC2 reset - bit_offset: 7 - bit_size: 1 - - name: ADCRST - description: ADC interface reset (common to all ADCs) - bit_offset: 8 - bit_size: 1 - - name: SDMMC1RST - description: SDMMC1 reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: SPI4RST - description: SPI4 reset - bit_offset: 13 - bit_size: 1 - - name: SYSCFGRST - description: System configuration controller reset - bit_offset: 14 - bit_size: 1 - - name: TIM9RST - description: TIM9 reset - bit_offset: 16 - bit_size: 1 - - name: TIM10RST - description: TIM10 reset - bit_offset: 17 - bit_size: 1 - - name: TIM11RST - description: TIM11 reset - bit_offset: 18 - bit_size: 1 - - name: SPI5RST - description: SPI5 reset - bit_offset: 20 - bit_size: 1 - - name: SPI6RST - description: SPI6 reset - bit_offset: 21 - bit_size: 1 - - name: SAI1RST - description: SAI1 reset - bit_offset: 22 - bit_size: 1 - - name: SAI2RST - description: SAI2 reset - bit_offset: 23 - bit_size: 1 - - name: LTDCRST - description: LTDC reset - bit_offset: 26 - bit_size: 1 - - name: DSIRST - description: DSI reset - bit_offset: 27 - bit_size: 1 - - name: DFSDM1RST - description: DFSDM 1 reset - bit_offset: 29 - bit_size: 1 - - name: MDIOSRST - description: MDIOS reset - bit_offset: 30 - bit_size: 1 - - name: USBPHYCRST - description: USB OTG HS PHY controller reset - bit_offset: 31 - bit_size: 1 + - name: TIM1RST + description: TIM1 reset + bit_offset: 0 + bit_size: 1 + - name: TIM8RST + description: TIM8 reset + bit_offset: 1 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 4 + bit_size: 1 + - name: USART6RST + description: USART6 reset + bit_offset: 5 + bit_size: 1 + - name: SDMMC2RST + description: SDMMC2 reset + bit_offset: 7 + bit_size: 1 + - name: ADCRST + description: ADC interface reset (common to all ADCs) + bit_offset: 8 + bit_size: 1 + - name: SDMMC1RST + description: SDMMC1 reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: SPI4RST + description: SPI4 reset + bit_offset: 13 + bit_size: 1 + - name: SYSCFGRST + description: System configuration controller reset + bit_offset: 14 + bit_size: 1 + - name: TIM9RST + description: TIM9 reset + bit_offset: 16 + bit_size: 1 + - name: TIM10RST + description: TIM10 reset + bit_offset: 17 + bit_size: 1 + - name: TIM11RST + description: TIM11 reset + bit_offset: 18 + bit_size: 1 + - name: SPI5RST + description: SPI5 reset + bit_offset: 20 + bit_size: 1 + - name: SPI6RST + description: SPI6 reset + bit_offset: 21 + bit_size: 1 + - name: SAI1RST + description: SAI1 reset + bit_offset: 22 + bit_size: 1 + - name: SAI2RST + description: SAI2 reset + bit_offset: 23 + bit_size: 1 + - name: LTDCRST + description: LTDC reset + bit_offset: 26 + bit_size: 1 + - name: DSIRST + description: DSI reset + bit_offset: 27 + bit_size: 1 + - name: DFSDM1RST + description: DFSDM 1 reset + bit_offset: 29 + bit_size: 1 + - name: MDIOSRST + description: MDIOS reset + bit_offset: 30 + bit_size: 1 + - name: USBPHYCRST + description: USB OTG HS PHY controller reset + bit_offset: 31 + bit_size: 1 fieldset/BDCR: description: Backup domain control register fields: - - name: LSEON - description: External low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: External low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: External low-speed oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: External low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: External low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: External low-speed oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SWS - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB Low speed prescaler (APB1) - bit_offset: 10 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 13 - bit_size: 3 - enum: PPRE - - name: RTCPRE - description: HSE division factor for RTC clock - bit_offset: 16 - bit_size: 5 - - name: MCO1 - description: Microcontroller clock output 1 - bit_offset: 21 - bit_size: 2 - enum: MCO1 - - name: I2SSRC - description: I2S clock selection - bit_offset: 23 - bit_size: 1 - enum: ISSRC - - name: MCO1PRE - description: MCO1 prescaler - bit_offset: 24 - bit_size: 3 - enum: MCOPRE - - name: MCO2PRE - description: MCO2 prescaler - bit_offset: 27 - bit_size: 3 - enum: MCOPRE - - name: MCO2 - description: Microcontroller clock output 2 - bit_offset: 30 - bit_size: 2 - enum: MCO2 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SWS + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB Low speed prescaler (APB1) + bit_offset: 10 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 13 + bit_size: 3 + enum: PPRE + - name: RTCPRE + description: HSE division factor for RTC clock + bit_offset: 16 + bit_size: 5 + - name: MCO1 + description: Microcontroller clock output 1 + bit_offset: 21 + bit_size: 2 + enum: MCO1 + - name: I2SSRC + description: I2S clock selection + bit_offset: 23 + bit_size: 1 + enum: ISSRC + - name: MCO1PRE + description: MCO1 prescaler + bit_offset: 24 + bit_size: 3 + enum: MCOPRE + - name: MCO2PRE + description: MCO2 prescaler + bit_offset: 27 + bit_size: 3 + enum: MCOPRE + - name: MCO2 + description: Microcontroller clock output 2 + bit_offset: 30 + bit_size: 2 + enum: MCO2 fieldset/CIR: description: clock interrupt register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: Main PLL (PLL) ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLI2SRDYF - description: PLLI2S ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: PLLSAIRDYF - description: PLLSAI ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: Main PLL (PLL) ready interrupt enable - bit_offset: 12 - bit_size: 1 - - name: PLLI2SRDYIE - description: PLLI2S ready interrupt enable - bit_offset: 13 - bit_size: 1 - - name: PLLSAIRDYIE - description: PLLSAI Ready Interrupt Enable - bit_offset: 14 - bit_size: 1 - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: Main PLL(PLL) ready interrupt clear - bit_offset: 20 - bit_size: 1 - - name: PLLI2SRDYC - description: PLLI2S ready interrupt clear - bit_offset: 21 - bit_size: 1 - - name: PLLSAIRDYC - description: PLLSAI Ready Interrupt Clear - bit_offset: 22 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: Main PLL (PLL) ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLI2SRDYF + description: PLLI2S ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: PLLSAIRDYF + description: PLLSAI ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: Main PLL (PLL) ready interrupt enable + bit_offset: 12 + bit_size: 1 + - name: PLLI2SRDYIE + description: PLLI2S ready interrupt enable + bit_offset: 13 + bit_size: 1 + - name: PLLSAIRDYIE + description: PLLSAI Ready Interrupt Enable + bit_offset: 14 + bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: Main PLL(PLL) ready interrupt clear + bit_offset: 20 + bit_size: 1 + - name: PLLI2SRDYC + description: PLLI2S ready interrupt clear + bit_offset: 21 + bit_size: 1 + - name: PLLSAIRDYC + description: PLLSAI Ready Interrupt Clear + bit_offset: 22 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal high-speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSITRIM - description: Internal high-speed clock trimming - bit_offset: 3 - bit_size: 5 - - name: HSICAL - description: Internal high-speed clock calibration - bit_offset: 8 - bit_size: 8 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL (PLL) enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL (PLL) clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLLI2SON - description: PLLI2S enable - bit_offset: 26 - bit_size: 1 - - name: PLLI2SRDY - description: PLLI2S clock ready flag - bit_offset: 27 - bit_size: 1 - - name: PLLSAION - description: PLLSAI enable - bit_offset: 28 - bit_size: 1 - - name: PLLSAIRDY - description: PLLSAI clock ready flag - bit_offset: 29 - bit_size: 1 + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal high-speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSITRIM + description: Internal high-speed clock trimming + bit_offset: 3 + bit_size: 5 + - name: HSICAL + description: Internal high-speed clock calibration + bit_offset: 8 + bit_size: 8 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL (PLL) enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL (PLL) clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLLI2SON + description: PLLI2S enable + bit_offset: 26 + bit_size: 1 + - name: PLLI2SRDY + description: PLLI2S clock ready flag + bit_offset: 27 + bit_size: 1 + - name: PLLSAION + description: PLLSAI enable + bit_offset: 28 + bit_size: 1 + - name: PLLSAIRDY + description: PLLSAI clock ready flag + bit_offset: 29 + bit_size: 1 fieldset/CSR: description: clock control & status register fields: - - name: LSION - description: Internal low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 25 - bit_size: 1 - - name: PADRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: WDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 25 + bit_size: 1 + - name: PADRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: WDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/DCKCFGR1: description: dedicated clocks configuration register fields: - - name: PLLI2SDIVQ - description: PLLI2S division factor for SAI1 clock - bit_offset: 0 - bit_size: 5 - enum: PLLISDIVQ - - name: PLLSAIDIVQ - description: PLLSAI division factor for SAI1 clock - bit_offset: 8 - bit_size: 5 - enum: PLLSAIDIVQ - - name: PLLSAIDIVR - description: division factor for LCD_CLK - bit_offset: 16 - bit_size: 2 - enum: PLLSAIDIVR - - name: SAI1SEL - description: SAI1 clock source selection - bit_offset: 20 - bit_size: 2 - enum: SAISEL - - name: SAI2SEL - description: SAI2 clock source selection - bit_offset: 22 - bit_size: 2 - enum: SAISEL - - name: TIMPRE - description: Timers clocks prescalers selection - bit_offset: 24 - bit_size: 1 - enum: TIMPRE - - name: DFSDM1SEL - description: DFSDM1 clock source selection - bit_offset: 25 - bit_size: 1 - enum: DFSDMSEL - - name: ADFSDM1SEL - description: DFSDM1 AUDIO clock source selection - bit_offset: 26 - bit_size: 1 - enum: ADFSDMSEL + - name: PLLI2SDIVQ + description: PLLI2S division factor for SAI1 clock + bit_offset: 0 + bit_size: 5 + enum: PLLISDIVQ + - name: PLLSAIDIVQ + description: PLLSAI division factor for SAI1 clock + bit_offset: 8 + bit_size: 5 + enum: PLLSAIDIVQ + - name: PLLSAIDIVR + description: division factor for LCD_CLK + bit_offset: 16 + bit_size: 2 + enum: PLLSAIDIVR + - name: SAI1SEL + description: SAI1 clock source selection + bit_offset: 20 + bit_size: 2 + enum: SAISEL + - name: SAI2SEL + description: SAI2 clock source selection + bit_offset: 22 + bit_size: 2 + enum: SAISEL + - name: TIMPRE + description: Timers clocks prescalers selection + bit_offset: 24 + bit_size: 1 + enum: TIMPRE + - name: DFSDM1SEL + description: DFSDM1 clock source selection + bit_offset: 25 + bit_size: 1 + enum: DFSDMSEL + - name: ADFSDM1SEL + description: DFSDM1 AUDIO clock source selection + bit_offset: 26 + bit_size: 1 + enum: ADFSDMSEL fieldset/DCKCFGR2: description: dedicated clocks configuration register fields: - - name: USART1SEL - description: USART 1 clock source selection - bit_offset: 0 - bit_size: 2 - enum: USART1SEL - - name: USART2SEL - description: USART 2 clock source selection - bit_offset: 2 - bit_size: 2 - enum: USART2SEL - - name: USART3SEL - description: USART 3 clock source selection - bit_offset: 4 - bit_size: 2 - enum: USART2SEL - - name: UART4SEL - description: UART 4 clock source selection - bit_offset: 6 - bit_size: 2 - enum: USART2SEL - - name: UART5SEL - description: UART 5 clock source selection - bit_offset: 8 - bit_size: 2 - enum: USART2SEL - - name: USART6SEL - description: USART 6 clock source selection - bit_offset: 10 - bit_size: 2 - enum: USART1SEL - - name: UART7SEL - description: UART 7 clock source selection - bit_offset: 12 - bit_size: 2 - enum: USART2SEL - - name: UART8SEL - description: UART 8 clock source selection - bit_offset: 14 - bit_size: 2 - enum: USART2SEL - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 16 - bit_size: 2 - enum: ICSEL - - name: I2C2SEL - description: I2C2 clock source selection - bit_offset: 18 - bit_size: 2 - enum: ICSEL - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 20 - bit_size: 2 - enum: ICSEL - - name: I2C4SEL - description: I2C4 clock source selection - bit_offset: 22 - bit_size: 2 - enum: ICSEL - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 24 - bit_size: 2 - enum: LPTIMSEL - - name: CECSEL - description: HDMI-CEC clock source selection - bit_offset: 26 - bit_size: 1 - enum: CECSEL - - name: CK48MSEL - description: 48MHz clock source selection - bit_offset: 27 - bit_size: 1 - enum: CKMSEL - - name: SDMMC1SEL - description: SDMMC1 clock source selection - bit_offset: 28 - bit_size: 1 - enum: SDMMCSEL - - name: SDMMC2SEL - description: SDMMC2 clock source selection - bit_offset: 29 - bit_size: 1 - enum: SDMMCSEL - - name: DSISEL - description: DSI clock source selection - bit_offset: 30 - bit_size: 1 - enum: DSISEL + - name: USART1SEL + description: USART 1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: USART1SEL + - name: USART2SEL + description: USART 2 clock source selection + bit_offset: 2 + bit_size: 2 + enum: USART2SEL + - name: USART3SEL + description: USART 3 clock source selection + bit_offset: 4 + bit_size: 2 + enum: USART2SEL + - name: UART4SEL + description: UART 4 clock source selection + bit_offset: 6 + bit_size: 2 + enum: USART2SEL + - name: UART5SEL + description: UART 5 clock source selection + bit_offset: 8 + bit_size: 2 + enum: USART2SEL + - name: USART6SEL + description: USART 6 clock source selection + bit_offset: 10 + bit_size: 2 + enum: USART1SEL + - name: UART7SEL + description: UART 7 clock source selection + bit_offset: 12 + bit_size: 2 + enum: USART2SEL + - name: UART8SEL + description: UART 8 clock source selection + bit_offset: 14 + bit_size: 2 + enum: USART2SEL + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 16 + bit_size: 2 + enum: ICSEL + - name: I2C2SEL + description: I2C2 clock source selection + bit_offset: 18 + bit_size: 2 + enum: ICSEL + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 20 + bit_size: 2 + enum: ICSEL + - name: I2C4SEL + description: I2C4 clock source selection + bit_offset: 22 + bit_size: 2 + enum: ICSEL + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 24 + bit_size: 2 + enum: LPTIMSEL + - name: CECSEL + description: HDMI-CEC clock source selection + bit_offset: 26 + bit_size: 1 + enum: CECSEL + - name: CK48MSEL + description: 48MHz clock source selection + bit_offset: 27 + bit_size: 1 + enum: CKMSEL + - name: SDMMC1SEL + description: SDMMC1 clock source selection + bit_offset: 28 + bit_size: 1 + enum: SDMMCSEL + - name: SDMMC2SEL + description: SDMMC2 clock source selection + bit_offset: 29 + bit_size: 1 + enum: SDMMCSEL + - name: DSISEL + description: DSI clock source selection + bit_offset: 30 + bit_size: 1 + enum: DSISEL fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLM - description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock - bit_offset: 0 - bit_size: 6 - - name: PLLN - description: Main PLL (PLL) multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLP - description: Main PLL (PLL) division factor for main system clock - bit_offset: 16 - bit_size: 2 - enum: PLLP - - name: PLLSRC - description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source - bit_offset: 22 - bit_size: 1 - enum: PLLSRC - - name: PLLQ - description: "Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks" - bit_offset: 24 - bit_size: 4 - - name: PLLR - description: PLL division factor for DSI clock - bit_offset: 28 - bit_size: 3 + - name: PLLM + description: Division factor for the main PLL (PLL) and audio PLL (PLLI2S) input clock + bit_offset: 0 + bit_size: 6 + - name: PLLN + description: Main PLL (PLL) multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLP + description: Main PLL (PLL) division factor for main system clock + bit_offset: 16 + bit_size: 2 + enum: PLLP + - name: PLLSRC + description: Main PLL(PLL) and audio PLL (PLLI2S) entry clock source + bit_offset: 22 + bit_size: 1 + enum: PLLSRC + - name: PLLQ + description: Main PLL (PLL) division factor for USB OTG FS, SDIO and random number generator clocks + bit_offset: 24 + bit_size: 4 + - name: PLLR + description: PLL division factor for DSI clock + bit_offset: 28 + bit_size: 3 fieldset/PLLI2SCFGR: description: PLLI2S configuration register fields: - - name: PLLI2SN - description: PLLI2S multiplication factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLI2SP - description: PLLI2S division factor for SPDIFRX clock - bit_offset: 16 - bit_size: 2 - enum: PLLISP - - name: PLLI2SQ - description: PLLI2S division factor for SAI1 clock - bit_offset: 24 - bit_size: 4 - - name: PLLI2SR - description: PLLI2S division factor for I2S clocks - bit_offset: 28 - bit_size: 3 + - name: PLLI2SN + description: PLLI2S multiplication factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLI2SP + description: PLLI2S division factor for SPDIFRX clock + bit_offset: 16 + bit_size: 2 + enum: PLLISP + - name: PLLI2SQ + description: PLLI2S division factor for SAI1 clock + bit_offset: 24 + bit_size: 4 + - name: PLLI2SR + description: PLLI2S division factor for I2S clocks + bit_offset: 28 + bit_size: 3 fieldset/PLLSAICFGR: description: PLL configuration register fields: - - name: PLLSAIN - description: PLLSAI division factor for VCO - bit_offset: 6 - bit_size: 9 - - name: PLLSAIP - description: PLLSAI division factor for 48MHz clock - bit_offset: 16 - bit_size: 2 - enum: PLLSAIP - - name: PLLSAIQ - description: PLLSAI division factor for SAI clock - bit_offset: 24 - bit_size: 4 - - name: PLLSAIR - description: PLLSAI division factor for LCD clock - bit_offset: 28 - bit_size: 3 + - name: PLLSAIN + description: PLLSAI division factor for VCO + bit_offset: 6 + bit_size: 9 + - name: PLLSAIP + description: PLLSAI division factor for 48MHz clock + bit_offset: 16 + bit_size: 2 + enum: PLLSAIP + - name: PLLSAIQ + description: PLLSAI division factor for SAI clock + bit_offset: 24 + bit_size: 4 + - name: PLLSAIR + description: PLLSAI division factor for LCD clock + bit_offset: 28 + bit_size: 3 fieldset/SSCGR: description: spread spectrum clock generation register fields: - - name: MODPER - description: Modulation period - bit_offset: 0 - bit_size: 13 - - name: INCSTEP - description: Incrementation step - bit_offset: 13 - bit_size: 15 - - name: SPREADSEL - description: Spread Select - bit_offset: 30 - bit_size: 1 - enum: SPREADSEL - - name: SSCGEN - description: Spread spectrum modulation enable - bit_offset: 31 - bit_size: 1 + - name: MODPER + description: Modulation period + bit_offset: 0 + bit_size: 13 + - name: INCSTEP + description: Incrementation step + bit_offset: 13 + bit_size: 15 + - name: SPREADSEL + description: Spread Select + bit_offset: 30 + bit_size: 1 + enum: SPREADSEL + - name: SSCGEN + description: Spread spectrum modulation enable + bit_offset: 31 + bit_size: 1 enum/ADFSDMSEL: bit_size: 1 variants: - - name: SAI1 - description: SAI1 clock selected as DFSDM1 Audio clock source - value: 0 - - name: SAI2 - description: SAI2 clock selected as DFSDM1 Audio clock source - value: 1 + - name: SAI1 + description: SAI1 clock selected as DFSDM1 Audio clock source + value: 0 + - name: SAI2 + description: SAI2 clock selected as DFSDM1 Audio clock source + value: 1 enum/CECSEL: bit_size: 1 variants: - - name: LSE - description: LSE clock is selected as HDMI-CEC clock - value: 0 - - name: HSI_Div488 - description: HSI divided by 488 clock is selected as HDMI-CEC clock - value: 1 + - name: LSE + description: LSE clock is selected as HDMI-CEC clock + value: 0 + - name: HSI_Div488 + description: HSI divided by 488 clock is selected as HDMI-CEC clock + value: 1 enum/CKMSEL: bit_size: 1 variants: - - name: PLL - description: 48MHz clock from PLL is selected - value: 0 - - name: PLLSAI - description: 48MHz clock from PLLSAI is selected - value: 1 + - name: PLL + description: 48MHz clock from PLL is selected + value: 0 + - name: PLLSAI + description: 48MHz clock from PLLSAI is selected + value: 1 enum/DFSDMSEL: bit_size: 1 variants: - - name: APB2 - description: APB2 clock (PCLK2) selected as DFSDM1 Kernel clock source - value: 0 - - name: SYSCLK - description: System clock (SYSCLK) clock selected as DFSDM1 Kernel clock source - value: 1 + - name: APB2 + description: APB2 clock (PCLK2) selected as DFSDM1 Kernel clock source + value: 0 + - name: SYSCLK + description: System clock (SYSCLK) clock selected as DFSDM1 Kernel clock source + value: 1 enum/DSISEL: bit_size: 1 variants: - - name: DSI_PHY - description: DSI-PHY used as DSI byte lane clock source (usual case) - value: 0 - - name: PLLR - description: "PLLR used as DSI byte lane clock source, used in case DSI PLL and DSI-PHY are off (low power mode)" - value: 1 + - name: DSI_PHY + description: DSI-PHY used as DSI byte lane clock source (usual case) + value: 0 + - name: PLLR + description: PLLR used as DSI byte lane clock source, used in case DSI PLL and DSI-PHY are off (low power mode) + value: 1 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/ICSEL: bit_size: 2 variants: - - name: APB - description: APB clock selected as I2C clock - value: 0 - - name: SYSCLK - description: System clock selected as I2C clock - value: 1 - - name: HSI - description: HSI clock selected as I2C clock - value: 2 + - name: APB + description: APB clock selected as I2C clock + value: 0 + - name: SYSCLK + description: System clock selected as I2C clock + value: 1 + - name: HSI + description: HSI clock selected as I2C clock + value: 2 enum/ISSRC: bit_size: 1 variants: - - name: PLLI2S - description: PLLI2S clock used as I2S clock source - value: 0 - - name: CKIN - description: External clock mapped on the I2S_CKIN pin used as I2S clock source - value: 1 + - name: PLLI2S + description: PLLI2S clock used as I2S clock source + value: 0 + - name: CKIN + description: External clock mapped on the I2S_CKIN pin used as I2S clock source + value: 1 enum/LPTIMSEL: bit_size: 2 variants: - - name: APB1 - description: APB1 clock (PCLK1) selected as LPTILM1 clock - value: 0 - - name: LSI - description: LSI clock is selected as LPTILM1 clock - value: 1 - - name: HSI - description: HSI clock is selected as LPTILM1 clock - value: 2 - - name: LSE - description: LSE clock is selected as LPTILM1 clock - value: 3 + - name: APB1 + description: APB1 clock (PCLK1) selected as LPTILM1 clock + value: 0 + - name: LSI + description: LSI clock is selected as LPTILM1 clock + value: 1 + - name: HSI + description: HSI clock is selected as LPTILM1 clock + value: 2 + - name: LSE + description: LSE clock is selected as LPTILM1 clock + value: 3 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low drive capacity - value: 0 - - name: MediumHigh - description: Medium-high drive capacity - value: 1 - - name: MediumLow - description: Medium-low drive capacity - value: 2 - - name: High - description: High drive capacity - value: 3 + - name: Low + description: Low drive capacity + value: 0 + - name: MediumHigh + description: Medium-high drive capacity + value: 1 + - name: MediumLow + description: Medium-low drive capacity + value: 2 + - name: High + description: High drive capacity + value: 3 enum/MCO1: bit_size: 2 variants: - - name: HSI - description: HSI clock selected - value: 0 - - name: LSE - description: LSE oscillator selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: HSI + description: HSI clock selected + value: 0 + - name: LSE + description: LSE oscillator selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCO2: bit_size: 2 variants: - - name: SYSCLK - description: System clock (SYSCLK) selected - value: 0 - - name: PLLI2S - description: PLLI2S clock selected - value: 1 - - name: HSE - description: HSE oscillator clock selected - value: 2 - - name: PLL - description: PLL clock selected - value: 3 + - name: SYSCLK + description: System clock (SYSCLK) selected + value: 0 + - name: PLLI2S + description: PLLI2S clock selected + value: 1 + - name: HSE + description: HSE oscillator clock selected + value: 2 + - name: PLL + description: PLL clock selected + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 4 - - name: Div3 - description: Division by 3 - value: 5 - - name: Div4 - description: Division by 4 - value: 6 - - name: Div5 - description: Division by 5 - value: 7 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 4 + - name: Div3 + description: Division by 3 + value: 5 + - name: Div4 + description: Division by 4 + value: 6 + - name: Div5 + description: Division by 5 + value: 7 enum/PLLISDIVQ: bit_size: 5 variants: - - name: Div1 - description: PLLI2SDIVQ = /1 - value: 0 - - name: Div2 - description: PLLI2SDIVQ = /2 - value: 1 - - name: Div3 - description: PLLI2SDIVQ = /3 - value: 2 - - name: Div4 - description: PLLI2SDIVQ = /4 - value: 3 - - name: Div5 - description: PLLI2SDIVQ = /5 - value: 4 - - name: Div6 - description: PLLI2SDIVQ = /6 - value: 5 - - name: Div7 - description: PLLI2SDIVQ = /7 - value: 6 - - name: Div8 - description: PLLI2SDIVQ = /8 - value: 7 - - name: Div9 - description: PLLI2SDIVQ = /9 - value: 8 - - name: Div10 - description: PLLI2SDIVQ = /10 - value: 9 - - name: Div11 - description: PLLI2SDIVQ = /11 - value: 10 - - name: Div12 - description: PLLI2SDIVQ = /12 - value: 11 - - name: Div13 - description: PLLI2SDIVQ = /13 - value: 12 - - name: Div14 - description: PLLI2SDIVQ = /14 - value: 13 - - name: Div15 - description: PLLI2SDIVQ = /15 - value: 14 - - name: Div16 - description: PLLI2SDIVQ = /16 - value: 15 - - name: Div17 - description: PLLI2SDIVQ = /17 - value: 16 - - name: Div18 - description: PLLI2SDIVQ = /18 - value: 17 - - name: Div19 - description: PLLI2SDIVQ = /19 - value: 18 - - name: Div20 - description: PLLI2SDIVQ = /20 - value: 19 - - name: Div21 - description: PLLI2SDIVQ = /21 - value: 20 - - name: Div22 - description: PLLI2SDIVQ = /22 - value: 21 - - name: Div23 - description: PLLI2SDIVQ = /23 - value: 22 - - name: Div24 - description: PLLI2SDIVQ = /24 - value: 23 - - name: Div25 - description: PLLI2SDIVQ = /25 - value: 24 - - name: Div26 - description: PLLI2SDIVQ = /26 - value: 25 - - name: Div27 - description: PLLI2SDIVQ = /27 - value: 26 - - name: Div28 - description: PLLI2SDIVQ = /28 - value: 27 - - name: Div29 - description: PLLI2SDIVQ = /29 - value: 28 - - name: Div30 - description: PLLI2SDIVQ = /30 - value: 29 - - name: Div31 - description: PLLI2SDIVQ = /31 - value: 30 - - name: Div32 - description: PLLI2SDIVQ = /32 - value: 31 + - name: Div1 + description: PLLI2SDIVQ = /1 + value: 0 + - name: Div2 + description: PLLI2SDIVQ = /2 + value: 1 + - name: Div3 + description: PLLI2SDIVQ = /3 + value: 2 + - name: Div4 + description: PLLI2SDIVQ = /4 + value: 3 + - name: Div5 + description: PLLI2SDIVQ = /5 + value: 4 + - name: Div6 + description: PLLI2SDIVQ = /6 + value: 5 + - name: Div7 + description: PLLI2SDIVQ = /7 + value: 6 + - name: Div8 + description: PLLI2SDIVQ = /8 + value: 7 + - name: Div9 + description: PLLI2SDIVQ = /9 + value: 8 + - name: Div10 + description: PLLI2SDIVQ = /10 + value: 9 + - name: Div11 + description: PLLI2SDIVQ = /11 + value: 10 + - name: Div12 + description: PLLI2SDIVQ = /12 + value: 11 + - name: Div13 + description: PLLI2SDIVQ = /13 + value: 12 + - name: Div14 + description: PLLI2SDIVQ = /14 + value: 13 + - name: Div15 + description: PLLI2SDIVQ = /15 + value: 14 + - name: Div16 + description: PLLI2SDIVQ = /16 + value: 15 + - name: Div17 + description: PLLI2SDIVQ = /17 + value: 16 + - name: Div18 + description: PLLI2SDIVQ = /18 + value: 17 + - name: Div19 + description: PLLI2SDIVQ = /19 + value: 18 + - name: Div20 + description: PLLI2SDIVQ = /20 + value: 19 + - name: Div21 + description: PLLI2SDIVQ = /21 + value: 20 + - name: Div22 + description: PLLI2SDIVQ = /22 + value: 21 + - name: Div23 + description: PLLI2SDIVQ = /23 + value: 22 + - name: Div24 + description: PLLI2SDIVQ = /24 + value: 23 + - name: Div25 + description: PLLI2SDIVQ = /25 + value: 24 + - name: Div26 + description: PLLI2SDIVQ = /26 + value: 25 + - name: Div27 + description: PLLI2SDIVQ = /27 + value: 26 + - name: Div28 + description: PLLI2SDIVQ = /28 + value: 27 + - name: Div29 + description: PLLI2SDIVQ = /29 + value: 28 + - name: Div30 + description: PLLI2SDIVQ = /30 + value: 29 + - name: Div31 + description: PLLI2SDIVQ = /31 + value: 30 + - name: Div32 + description: PLLI2SDIVQ = /32 + value: 31 enum/PLLISP: bit_size: 2 variants: - - name: Div2 - description: PLL*P=2 - value: 0 - - name: Div4 - description: PLL*P=4 - value: 1 - - name: Div6 - description: PLL*P=6 - value: 2 - - name: Div8 - description: PLL*P=8 - value: 3 + - name: Div2 + description: PLL*P=2 + value: 0 + - name: Div4 + description: PLL*P=4 + value: 1 + - name: Div6 + description: PLL*P=6 + value: 2 + - name: Div8 + description: PLL*P=8 + value: 3 enum/PLLP: bit_size: 2 variants: - - name: Div2 - description: PLLP=2 - value: 0 - - name: Div4 - description: PLLP=4 - value: 1 - - name: Div6 - description: PLLP=6 - value: 2 - - name: Div8 - description: PLLP=8 - value: 3 + - name: Div2 + description: PLLP=2 + value: 0 + - name: Div4 + description: PLLP=4 + value: 1 + - name: Div6 + description: PLLP=6 + value: 2 + - name: Div8 + description: PLLP=8 + value: 3 enum/PLLSAIDIVQ: bit_size: 5 variants: - - name: Div1 - description: PLLSAIDIVQ = /1 - value: 0 - - name: Div2 - description: PLLSAIDIVQ = /2 - value: 1 - - name: Div3 - description: PLLSAIDIVQ = /3 - value: 2 - - name: Div4 - description: PLLSAIDIVQ = /4 - value: 3 - - name: Div5 - description: PLLSAIDIVQ = /5 - value: 4 - - name: Div6 - description: PLLSAIDIVQ = /6 - value: 5 - - name: Div7 - description: PLLSAIDIVQ = /7 - value: 6 - - name: Div8 - description: PLLSAIDIVQ = /8 - value: 7 - - name: Div9 - description: PLLSAIDIVQ = /9 - value: 8 - - name: Div10 - description: PLLSAIDIVQ = /10 - value: 9 - - name: Div11 - description: PLLSAIDIVQ = /11 - value: 10 - - name: Div12 - description: PLLSAIDIVQ = /12 - value: 11 - - name: Div13 - description: PLLSAIDIVQ = /13 - value: 12 - - name: Div14 - description: PLLSAIDIVQ = /14 - value: 13 - - name: Div15 - description: PLLSAIDIVQ = /15 - value: 14 - - name: Div16 - description: PLLSAIDIVQ = /16 - value: 15 - - name: Div17 - description: PLLSAIDIVQ = /17 - value: 16 - - name: Div18 - description: PLLSAIDIVQ = /18 - value: 17 - - name: Div19 - description: PLLSAIDIVQ = /19 - value: 18 - - name: Div20 - description: PLLSAIDIVQ = /20 - value: 19 - - name: Div21 - description: PLLSAIDIVQ = /21 - value: 20 - - name: Div22 - description: PLLSAIDIVQ = /22 - value: 21 - - name: Div23 - description: PLLSAIDIVQ = /23 - value: 22 - - name: Div24 - description: PLLSAIDIVQ = /24 - value: 23 - - name: Div25 - description: PLLSAIDIVQ = /25 - value: 24 - - name: Div26 - description: PLLSAIDIVQ = /26 - value: 25 - - name: Div27 - description: PLLSAIDIVQ = /27 - value: 26 - - name: Div28 - description: PLLSAIDIVQ = /28 - value: 27 - - name: Div29 - description: PLLSAIDIVQ = /29 - value: 28 - - name: Div30 - description: PLLSAIDIVQ = /30 - value: 29 - - name: Div31 - description: PLLSAIDIVQ = /31 - value: 30 - - name: Div32 - description: PLLSAIDIVQ = /32 - value: 31 + - name: Div1 + description: PLLSAIDIVQ = /1 + value: 0 + - name: Div2 + description: PLLSAIDIVQ = /2 + value: 1 + - name: Div3 + description: PLLSAIDIVQ = /3 + value: 2 + - name: Div4 + description: PLLSAIDIVQ = /4 + value: 3 + - name: Div5 + description: PLLSAIDIVQ = /5 + value: 4 + - name: Div6 + description: PLLSAIDIVQ = /6 + value: 5 + - name: Div7 + description: PLLSAIDIVQ = /7 + value: 6 + - name: Div8 + description: PLLSAIDIVQ = /8 + value: 7 + - name: Div9 + description: PLLSAIDIVQ = /9 + value: 8 + - name: Div10 + description: PLLSAIDIVQ = /10 + value: 9 + - name: Div11 + description: PLLSAIDIVQ = /11 + value: 10 + - name: Div12 + description: PLLSAIDIVQ = /12 + value: 11 + - name: Div13 + description: PLLSAIDIVQ = /13 + value: 12 + - name: Div14 + description: PLLSAIDIVQ = /14 + value: 13 + - name: Div15 + description: PLLSAIDIVQ = /15 + value: 14 + - name: Div16 + description: PLLSAIDIVQ = /16 + value: 15 + - name: Div17 + description: PLLSAIDIVQ = /17 + value: 16 + - name: Div18 + description: PLLSAIDIVQ = /18 + value: 17 + - name: Div19 + description: PLLSAIDIVQ = /19 + value: 18 + - name: Div20 + description: PLLSAIDIVQ = /20 + value: 19 + - name: Div21 + description: PLLSAIDIVQ = /21 + value: 20 + - name: Div22 + description: PLLSAIDIVQ = /22 + value: 21 + - name: Div23 + description: PLLSAIDIVQ = /23 + value: 22 + - name: Div24 + description: PLLSAIDIVQ = /24 + value: 23 + - name: Div25 + description: PLLSAIDIVQ = /25 + value: 24 + - name: Div26 + description: PLLSAIDIVQ = /26 + value: 25 + - name: Div27 + description: PLLSAIDIVQ = /27 + value: 26 + - name: Div28 + description: PLLSAIDIVQ = /28 + value: 27 + - name: Div29 + description: PLLSAIDIVQ = /29 + value: 28 + - name: Div30 + description: PLLSAIDIVQ = /30 + value: 29 + - name: Div31 + description: PLLSAIDIVQ = /31 + value: 30 + - name: Div32 + description: PLLSAIDIVQ = /32 + value: 31 enum/PLLSAIDIVR: bit_size: 2 variants: - - name: Div2 - description: PLLSAIDIVR = /2 - value: 0 - - name: Div4 - description: PLLSAIDIVR = /4 - value: 1 - - name: Div8 - description: PLLSAIDIVR = /8 - value: 2 - - name: Div16 - description: PLLSAIDIVR = /16 - value: 3 + - name: Div2 + description: PLLSAIDIVR = /2 + value: 0 + - name: Div4 + description: PLLSAIDIVR = /4 + value: 1 + - name: Div8 + description: PLLSAIDIVR = /8 + value: 2 + - name: Div16 + description: PLLSAIDIVR = /16 + value: 3 enum/PLLSAIP: bit_size: 2 variants: - - name: Div2 - description: PLL*P=2 - value: 0 - - name: Div4 - description: PLL*P=4 - value: 1 - - name: Div6 - description: PLL*P=6 - value: 2 - - name: Div8 - description: PLL*P=8 - value: 3 + - name: Div2 + description: PLL*P=2 + value: 0 + - name: Div4 + description: PLL*P=4 + value: 1 + - name: Div6 + description: PLL*P=6 + value: 2 + - name: Div8 + description: PLL*P=8 + value: 3 enum/PLLSRC: bit_size: 1 variants: - - name: HSI - description: HSI clock selected as PLL and PLLI2S clock entry - value: 0 - - name: HSE - description: HSE oscillator clock selected as PLL and PLLI2S clock entry - value: 1 + - name: HSI + description: HSI clock selected as PLL and PLLI2S clock entry + value: 0 + - name: HSE + description: HSE oscillator clock selected as PLL and PLLI2S clock entry + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SAISEL: bit_size: 2 variants: - - name: PLLSAI - description: SAI2 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ - value: 0 - - name: PLLI2S - description: SAI2 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ - value: 1 - - name: AFIF - description: SAI2 clock frequency = Alternate function input frequency - value: 2 - - name: HSI_HSE - description: SAI2 clock frequency = HSI or HSE - value: 3 + - name: PLLSAI + description: SAI2 clock frequency = f(PLLSAI_Q) / PLLSAIDIVQ + value: 0 + - name: PLLI2S + description: SAI2 clock frequency = f(PLLI2S_Q) / PLLI2SDIVQ + value: 1 + - name: AFIF + description: SAI2 clock frequency = Alternate function input frequency + value: 2 + - name: HSI_HSE + description: SAI2 clock frequency = HSI or HSE + value: 3 enum/SDMMCSEL: bit_size: 1 variants: - - name: CK48M - description: 48 MHz clock is selected as SD clock - value: 0 - - name: SYSCLK - description: System clock is selected as SD clock - value: 1 + - name: CK48M + description: 48 MHz clock is selected as SD clock + value: 0 + - name: SYSCLK + description: System clock is selected as SD clock + value: 1 enum/SPREADSEL: bit_size: 1 variants: - - name: Center - description: Center spread - value: 0 - - name: Down - description: Down spread - value: 1 + - name: Center + description: Center spread + value: 0 + - name: Down + description: Down spread + value: 1 enum/SW: bit_size: 2 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLL + description: PLL selected as system clock + value: 2 enum/SWS: bit_size: 2 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: HSE + description: HSE oscillator used as system clock + value: 1 + - name: PLL + description: PLL used as system clock + value: 2 enum/TIMPRE: bit_size: 1 variants: - - name: Mul2 - description: "If the APB prescaler is configured 1, TIMxCLK = PCLKx. Otherwise, TIMxCLK = 2xPCLKx" - value: 0 - - name: Mul4 - description: "If the APB prescaler is configured 1, 2 or 4, TIMxCLK = HCLK. Otherwise, TIMxCLK = 4xPCLKx" - value: 1 + - name: Mul2 + description: If the APB prescaler is configured 1, TIMxCLK = PCLKx. Otherwise, TIMxCLK = 2xPCLKx + value: 0 + - name: Mul4 + description: If the APB prescaler is configured 1, 2 or 4, TIMxCLK = HCLK. Otherwise, TIMxCLK = 4xPCLKx + value: 1 enum/USART1SEL: bit_size: 2 variants: - - name: APB2 - description: APB2 clock (PCLK2) is selected as USART clock - value: 0 - - name: SYSCLK - description: System clock is selected as USART clock - value: 1 - - name: HSI - description: HSI clock is selected as USART clock - value: 2 - - name: LSE - description: LSE clock is selected as USART clock - value: 3 + - name: APB2 + description: APB2 clock (PCLK2) is selected as USART clock + value: 0 + - name: SYSCLK + description: System clock is selected as USART clock + value: 1 + - name: HSI + description: HSI clock is selected as USART clock + value: 2 + - name: LSE + description: LSE clock is selected as USART clock + value: 3 enum/USART2SEL: bit_size: 2 variants: - - name: APB1 - description: APB1 clock (PCLK1) is selected as USART clock - value: 0 - - name: SYSCLK - description: System clock is selected as USART clock - value: 1 - - name: HSI - description: HSI clock is selected as USART clock - value: 2 - - name: LSE - description: LSE clock is selected as USART clock - value: 3 + - name: APB1 + description: APB1 clock (PCLK1) is selected as USART clock + value: 0 + - name: SYSCLK + description: System clock is selected as USART clock + value: 1 + - name: HSI + description: HSI clock is selected as USART clock + value: 2 + - name: LSE + description: LSE clock is selected as USART clock + value: 3 diff --git a/data/registers/rcc_g0.yaml b/data/registers/rcc_g0.yaml index 95a1a46..c6856dc 100644 --- a/data/registers/rcc_g0.yaml +++ b/data/registers/rcc_g0.yaml @@ -1,1639 +1,1638 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLSYSCFGR - description: PLL configuration register - byte_offset: 12 - fieldset: PLLSYSCFGR - - name: CRRCR - description: RCC clock recovery RC register - byte_offset: 20 - access: Read - fieldset: CRRCR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: GPIORSTR - description: GPIO reset register - byte_offset: 36 - fieldset: GPIORSTR - - name: AHBRSTR - description: AHB peripheral reset register - byte_offset: 40 - fieldset: AHBRSTR - - name: APBRSTR1 - description: APB peripheral reset register 1 - byte_offset: 44 - fieldset: APBRSTR1 - - name: APBRSTR2 - description: APB peripheral reset register 2 - byte_offset: 48 - fieldset: APBRSTR2 - - name: GPIOENR - description: GPIO clock enable register - byte_offset: 52 - fieldset: GPIOENR - - name: AHBENR - description: AHB peripheral clock enable register - byte_offset: 56 - fieldset: AHBENR - - name: APBENR1 - description: APB peripheral clock enable register 1 - byte_offset: 60 - fieldset: APBENR1 - - name: APBENR2 - description: APB peripheral clock enable register 2 - byte_offset: 64 - fieldset: APBENR2 - - name: GPIOSMENR - description: GPIO in Sleep mode clock enable register - byte_offset: 68 - fieldset: GPIOSMENR - - name: AHBSMENR - description: AHB peripheral clock enable in Sleep mode register - byte_offset: 72 - fieldset: AHBSMENR - - name: APBSMENR1 - description: APB peripheral clock enable in Sleep mode register 1 - byte_offset: 76 - fieldset: APBSMENR1 - - name: APBSMENR2 - description: APB peripheral clock enable in Sleep mode register 2 - byte_offset: 80 - fieldset: APBSMENR2 - - name: CCIPR - description: Peripherals independent clock configuration register - byte_offset: 84 - fieldset: CCIPR - - name: CCIPR2 - description: Peripherals independent clock configuration register 2 - byte_offset: 88 - fieldset: CCIPR2 - - name: BDCR - description: RTC domain control register - byte_offset: 92 - fieldset: BDCR - - name: CSR - description: Control/status register - byte_offset: 96 - fieldset: CSR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLSYSCFGR + description: PLL configuration register + byte_offset: 12 + fieldset: PLLSYSCFGR + - name: CRRCR + description: RCC clock recovery RC register + byte_offset: 20 + access: Read + fieldset: CRRCR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: GPIORSTR + description: GPIO reset register + byte_offset: 36 + fieldset: GPIORSTR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 40 + fieldset: AHBRSTR + - name: APBRSTR1 + description: APB peripheral reset register 1 + byte_offset: 44 + fieldset: APBRSTR1 + - name: APBRSTR2 + description: APB peripheral reset register 2 + byte_offset: 48 + fieldset: APBRSTR2 + - name: GPIOENR + description: GPIO clock enable register + byte_offset: 52 + fieldset: GPIOENR + - name: AHBENR + description: AHB peripheral clock enable register + byte_offset: 56 + fieldset: AHBENR + - name: APBENR1 + description: APB peripheral clock enable register 1 + byte_offset: 60 + fieldset: APBENR1 + - name: APBENR2 + description: APB peripheral clock enable register 2 + byte_offset: 64 + fieldset: APBENR2 + - name: GPIOSMENR + description: GPIO in Sleep mode clock enable register + byte_offset: 68 + fieldset: GPIOSMENR + - name: AHBSMENR + description: AHB peripheral clock enable in Sleep mode register + byte_offset: 72 + fieldset: AHBSMENR + - name: APBSMENR1 + description: APB peripheral clock enable in Sleep mode register 1 + byte_offset: 76 + fieldset: APBSMENR1 + - name: APBSMENR2 + description: APB peripheral clock enable in Sleep mode register 2 + byte_offset: 80 + fieldset: APBSMENR2 + - name: CCIPR + description: Peripherals independent clock configuration register + byte_offset: 84 + fieldset: CCIPR + - name: CCIPR2 + description: Peripherals independent clock configuration register 2 + byte_offset: 88 + fieldset: CCIPR2 + - name: BDCR + description: RTC domain control register + byte_offset: 92 + fieldset: BDCR + - name: CSR + description: Control/status register + byte_offset: 96 + fieldset: CSR fieldset/AHBENR: description: AHB peripheral clock enable register fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: FLASHEN - description: Flash memory interface clock enable - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: AESEN - description: AES hardware accelerator - bit_offset: 16 - bit_size: 1 - - name: RNGEN - description: Random number generator clock enable - bit_offset: 18 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: FLASHEN + description: Flash memory interface clock enable + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: AESEN + description: AES hardware accelerator + bit_offset: 16 + bit_size: 1 + - name: RNGEN + description: Random number generator clock enable + bit_offset: 18 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA1 reset - bit_offset: 1 - bit_size: 1 - - name: FLASHRST - description: FLASH reset - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: AESRST - description: AES hardware accelerator reset - bit_offset: 16 - bit_size: 1 - - name: RNGRST - description: Random number generator reset - bit_offset: 18 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA1 reset + bit_offset: 1 + bit_size: 1 + - name: FLASHRST + description: FLASH reset + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: AESRST + description: AES hardware accelerator reset + bit_offset: 16 + bit_size: 1 + - name: RNGRST + description: Random number generator reset + bit_offset: 18 + bit_size: 1 fieldset/AHBSMENR: description: AHB peripheral clock enable in Sleep mode register fields: - - name: DMA1SMEN - description: DMA1 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: FLASHSMEN - description: Flash memory interface clock enable during Sleep mode - bit_offset: 8 - bit_size: 1 - - name: SRAMSMEN - description: SRAM clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CRC clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: AESSMEN - description: AES hardware accelerator clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: RNGSMEN - description: Random number generator clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: FLASHSMEN + description: Flash memory interface clock enable during Sleep mode + bit_offset: 8 + bit_size: 1 + - name: SRAMSMEN + description: SRAM clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CRC clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: AESSMEN + description: AES hardware accelerator clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: RNGSMEN + description: Random number generator clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 fieldset/APBENR1: description: APB peripheral clock enable register 1 fields: - - name: TIM2EN - description: TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 timer clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 timer clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM6EN - description: TIM6 timer clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 timer clock enable - bit_offset: 5 - bit_size: 1 - - name: LPUART2EN - description: LPUART2 clock enable - bit_offset: 7 - bit_size: 1 - - name: USART5EN - description: USART5EN - bit_offset: 8 - bit_size: 1 - - name: USART6EN - description: USART6EN - bit_offset: 9 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: WWDG clock enable - bit_offset: 11 - bit_size: 1 - - name: FDCANEN - description: USBEN - bit_offset: 12 - bit_size: 1 - - name: USBEN - description: USBEN - bit_offset: 13 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: CRSEN - description: CRSEN - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: USART4EN - description: USART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: LPUART1EN - description: LPUART1 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: CECEN - description: HDMI CEC clock enable - bit_offset: 24 - bit_size: 1 - - name: UCPD1EN - description: UCPD1 clock enable - bit_offset: 25 - bit_size: 1 - - name: UCPD2EN - description: UCPD2 clock enable - bit_offset: 26 - bit_size: 1 - - name: DBGEN - description: Debug support clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DAC1EN - description: DAC1 interface clock enable - bit_offset: 29 - bit_size: 1 - - name: LPTIM2EN - description: LPTIM2 clock enable - bit_offset: 30 - bit_size: 1 - - name: LPTIM1EN - description: LPTIM1 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 timer clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 timer clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM6EN + description: TIM6 timer clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 timer clock enable + bit_offset: 5 + bit_size: 1 + - name: LPUART2EN + description: LPUART2 clock enable + bit_offset: 7 + bit_size: 1 + - name: USART5EN + description: USART5EN + bit_offset: 8 + bit_size: 1 + - name: USART6EN + description: USART6EN + bit_offset: 9 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: WWDG clock enable + bit_offset: 11 + bit_size: 1 + - name: FDCANEN + description: USBEN + bit_offset: 12 + bit_size: 1 + - name: USBEN + description: USBEN + bit_offset: 13 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: CRSEN + description: CRSEN + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: USART4EN + description: USART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: LPUART1EN + description: LPUART1 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: CECEN + description: HDMI CEC clock enable + bit_offset: 24 + bit_size: 1 + - name: UCPD1EN + description: UCPD1 clock enable + bit_offset: 25 + bit_size: 1 + - name: UCPD2EN + description: UCPD2 clock enable + bit_offset: 26 + bit_size: 1 + - name: DBGEN + description: Debug support clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DAC1EN + description: DAC1 interface clock enable + bit_offset: 29 + bit_size: 1 + - name: LPTIM2EN + description: LPTIM2 clock enable + bit_offset: 30 + bit_size: 1 + - name: LPTIM1EN + description: LPTIM1 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APBENR2: description: APB peripheral clock enable register 2 fields: - - name: SYSCFGEN - description: "SYSCFG, COMP and VREFBUF clock enable" - bit_offset: 0 - bit_size: 1 - - name: TIM1EN - description: TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM14EN - description: TIM14 timer clock enable - bit_offset: 15 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM16 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: ADCEN - description: ADC clock enable - bit_offset: 20 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG, COMP and VREFBUF clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM1EN + description: TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM14EN + description: TIM14 timer clock enable + bit_offset: 15 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM16 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: ADCEN + description: ADC clock enable + bit_offset: 20 + bit_size: 1 fieldset/APBRSTR1: description: APB peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 timer reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM4 timer reset - bit_offset: 2 - bit_size: 1 - - name: TIM6RST - description: TIM6 timer reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 timer reset - bit_offset: 5 - bit_size: 1 - - name: LPUART2RST - description: LPUART2RST - bit_offset: 7 - bit_size: 1 - - name: USART5RST - description: USART5RST - bit_offset: 8 - bit_size: 1 - - name: USART6RST - description: USART6RST - bit_offset: 9 - bit_size: 1 - - name: FDCANRST - description: FDCANRST - bit_offset: 12 - bit_size: 1 - - name: USBRST - description: USBRST - bit_offset: 13 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: CRSRST - description: CRSRST - bit_offset: 16 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: USART4RST - description: USART4 reset - bit_offset: 19 - bit_size: 1 - - name: LPUART1RST - description: LPUART1 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3RST reset - bit_offset: 23 - bit_size: 1 - - name: CECRST - description: HDMI CEC reset - bit_offset: 24 - bit_size: 1 - - name: UCPD1RST - description: UCPD1 reset - bit_offset: 25 - bit_size: 1 - - name: UCPD2RST - description: UCPD2 reset - bit_offset: 26 - bit_size: 1 - - name: DBGRST - description: Debug support reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DAC1RST - description: DAC1 interface reset - bit_offset: 29 - bit_size: 1 - - name: LPTIM2RST - description: Low Power Timer 2 reset - bit_offset: 30 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 timer reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM4 timer reset + bit_offset: 2 + bit_size: 1 + - name: TIM6RST + description: TIM6 timer reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 timer reset + bit_offset: 5 + bit_size: 1 + - name: LPUART2RST + description: LPUART2RST + bit_offset: 7 + bit_size: 1 + - name: USART5RST + description: USART5RST + bit_offset: 8 + bit_size: 1 + - name: USART6RST + description: USART6RST + bit_offset: 9 + bit_size: 1 + - name: FDCANRST + description: FDCANRST + bit_offset: 12 + bit_size: 1 + - name: USBRST + description: USBRST + bit_offset: 13 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: CRSRST + description: CRSRST + bit_offset: 16 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: USART4RST + description: USART4 reset + bit_offset: 19 + bit_size: 1 + - name: LPUART1RST + description: LPUART1 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3RST reset + bit_offset: 23 + bit_size: 1 + - name: CECRST + description: HDMI CEC reset + bit_offset: 24 + bit_size: 1 + - name: UCPD1RST + description: UCPD1 reset + bit_offset: 25 + bit_size: 1 + - name: UCPD2RST + description: UCPD2 reset + bit_offset: 26 + bit_size: 1 + - name: DBGRST + description: Debug support reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DAC1RST + description: DAC1 interface reset + bit_offset: 29 + bit_size: 1 + - name: LPTIM2RST + description: Low Power Timer 2 reset + bit_offset: 30 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APBRSTR2: description: APB peripheral reset register 2 fields: - - name: SYSCFGRST - description: "SYSCFG, COMP and VREFBUF reset" - bit_offset: 0 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM14RST - description: TIM14 timer reset - bit_offset: 15 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: ADCRST - description: ADC reset - bit_offset: 20 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFG, COMP and VREFBUF reset + bit_offset: 0 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM14RST + description: TIM14 timer reset + bit_offset: 15 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: ADCRST + description: ADC reset + bit_offset: 20 + bit_size: 1 fieldset/APBSMENR1: description: APB peripheral clock enable in Sleep mode register 1 fields: - - name: TIM2SMEN - description: TIM2 timer clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3SMEN - description: TIM3 timer clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4SMEN - description: TIM4 timer clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM6SMEN - description: TIM6 timer clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7SMEN - description: TIM7 timer clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: LPUART2SMEN - description: LPUART2 clock enable - bit_offset: 7 - bit_size: 1 - - name: USART5SMEN - description: USART5 clock enable - bit_offset: 8 - bit_size: 1 - - name: USART6SMEN - description: USART6 clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC APB clock enable during Sleep mode - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: WWDG clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: FDCANSMEN - description: FDCAN clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: USBSMEN - description: USB clock enable during Sleep mode - bit_offset: 13 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: SPI3SMEN - description: SPI3 clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: CRSSSMEN - description: CRSS clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: USART2SMEN - description: USART2 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: USART3SMEN - description: USART3 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: USART4SMEN - description: USART4 clock enable during Sleep mode - bit_offset: 19 - bit_size: 1 - - name: LPUART1SMEN - description: LPUART1 clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: CECSMEN - description: HDMI CEC clock enable during Sleep mode - bit_offset: 24 - bit_size: 1 - - name: UCPD1SMEN - description: UCPD1 clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 - - name: UCPD2SMEN - description: UCPD2 clock enable during Sleep mode - bit_offset: 26 - bit_size: 1 - - name: DBGSMEN - description: Debug support clock enable during Sleep mode - bit_offset: 27 - bit_size: 1 - - name: PWRSMEN - description: Power interface clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: DAC1SMEN - description: DAC1 interface clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: LPTIM2SMEN - description: Low Power Timer 2 clock enable during Sleep mode - bit_offset: 30 - bit_size: 1 - - name: LPTIM1SMEN - description: Low Power Timer 1 clock enable during Sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: TIM3 timer clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4SMEN + description: TIM4 timer clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM6SMEN + description: TIM6 timer clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7SMEN + description: TIM7 timer clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: LPUART2SMEN + description: LPUART2 clock enable + bit_offset: 7 + bit_size: 1 + - name: USART5SMEN + description: USART5 clock enable + bit_offset: 8 + bit_size: 1 + - name: USART6SMEN + description: USART6 clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC APB clock enable during Sleep mode + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: WWDG clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: FDCANSMEN + description: FDCAN clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: USBSMEN + description: USB clock enable during Sleep mode + bit_offset: 13 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: SPI3SMEN + description: SPI3 clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: CRSSSMEN + description: CRSS clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: USART2SMEN + description: USART2 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: USART3SMEN + description: USART3 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: USART4SMEN + description: USART4 clock enable during Sleep mode + bit_offset: 19 + bit_size: 1 + - name: LPUART1SMEN + description: LPUART1 clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: CECSMEN + description: HDMI CEC clock enable during Sleep mode + bit_offset: 24 + bit_size: 1 + - name: UCPD1SMEN + description: UCPD1 clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 + - name: UCPD2SMEN + description: UCPD2 clock enable during Sleep mode + bit_offset: 26 + bit_size: 1 + - name: DBGSMEN + description: Debug support clock enable during Sleep mode + bit_offset: 27 + bit_size: 1 + - name: PWRSMEN + description: Power interface clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: DAC1SMEN + description: DAC1 interface clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: LPTIM2SMEN + description: Low Power Timer 2 clock enable during Sleep mode + bit_offset: 30 + bit_size: 1 + - name: LPTIM1SMEN + description: Low Power Timer 1 clock enable during Sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APBSMENR2: description: APB peripheral clock enable in Sleep mode register 2 fields: - - name: SYSCFGSMEN - description: "SYSCFG, COMP and VREFBUF clock enable during Sleep mode" - bit_offset: 0 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: TIM14SMEN - description: TIM14 timer clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: TIM15SMEN - description: TIM15 timer clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM16 timer clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: ADCSMEN - description: ADC clock enable during Sleep mode - bit_offset: 20 - bit_size: 1 + - name: SYSCFGSMEN + description: SYSCFG, COMP and VREFBUF clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: TIM14SMEN + description: TIM14 timer clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: TIM15SMEN + description: TIM15 timer clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM16 timer clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: ADCSMEN + description: ADC clock enable during Sleep mode + bit_offset: 20 + bit_size: 1 fieldset/BDCR: description: RTC domain control register fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: CSS on LSE enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: CSS on LSE failure Detection - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: RTC domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low-speed clock output (LSCO) enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low-speed clock output selection - bit_offset: 25 - bit_size: 1 + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: CSS on LSE enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: CSS on LSE failure Detection + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: RTC domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low-speed clock output (LSCO) enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low-speed clock output selection + bit_offset: 25 + bit_size: 1 fieldset/CCIPR: description: Peripherals independent clock configuration register fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - enum: USART1SEL - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - enum: USART2SEL - - name: USART3SEL - description: USART3 clock source selection - bit_offset: 4 - bit_size: 2 - enum: USART3SEL - - name: CECSEL - description: HDMI CEC clock source selection - bit_offset: 6 - bit_size: 1 - enum: CECSEL - - name: LPUART2SEL - description: LPUART2 clock source selection - bit_offset: 8 - bit_size: 2 - enum: LPUART2SEL - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - enum: LPUART1SEL - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - enum: I2C1SEL - - name: I2S2SEL - description: I2S1 clock source selection - bit_offset: 14 - bit_size: 2 - enum: I2C2I2S1SEL - - name: LPTIM1SEL - description: LPTIM1 clock source selection - bit_offset: 18 - bit_size: 2 - enum: LPTIM1SEL - - name: LPTIM2SEL - description: LPTIM2 clock source selection - bit_offset: 20 - bit_size: 2 - enum: LPTIM2SEL - - name: TIM1SEL - description: TIM1 clock source selection - bit_offset: 22 - bit_size: 1 - enum: TIM1SEL - - name: TIM15SEL - description: TIM15 clock source selection - bit_offset: 24 - bit_size: 1 - enum: TIM15SEL - - name: RNGSEL - description: RNG clock source selection - bit_offset: 26 - bit_size: 2 - enum: RNGSEL - - name: RNGDIV - description: Division factor of RNG clock divider - bit_offset: 28 - bit_size: 2 - enum: RNGDIV - - name: ADCSEL - description: ADCs clock source selection - bit_offset: 30 - bit_size: 2 - enum: ADCSEL + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: USART1SEL + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + enum: USART2SEL + - name: USART3SEL + description: USART3 clock source selection + bit_offset: 4 + bit_size: 2 + enum: USART3SEL + - name: CECSEL + description: HDMI CEC clock source selection + bit_offset: 6 + bit_size: 1 + enum: CECSEL + - name: LPUART2SEL + description: LPUART2 clock source selection + bit_offset: 8 + bit_size: 2 + enum: LPUART2SEL + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + enum: LPUART1SEL + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + enum: I2C1SEL + - name: I2S2SEL + description: I2S1 clock source selection + bit_offset: 14 + bit_size: 2 + enum: I2C2I2S1SEL + - name: LPTIM1SEL + description: LPTIM1 clock source selection + bit_offset: 18 + bit_size: 2 + enum: LPTIM1SEL + - name: LPTIM2SEL + description: LPTIM2 clock source selection + bit_offset: 20 + bit_size: 2 + enum: LPTIM2SEL + - name: TIM1SEL + description: TIM1 clock source selection + bit_offset: 22 + bit_size: 1 + enum: TIM1SEL + - name: TIM15SEL + description: TIM15 clock source selection + bit_offset: 24 + bit_size: 1 + enum: TIM15SEL + - name: RNGSEL + description: RNG clock source selection + bit_offset: 26 + bit_size: 2 + enum: RNGSEL + - name: RNGDIV + description: Division factor of RNG clock divider + bit_offset: 28 + bit_size: 2 + enum: RNGDIV + - name: ADCSEL + description: ADCs clock source selection + bit_offset: 30 + bit_size: 2 + enum: ADCSEL fieldset/CCIPR2: description: Peripherals independent clock configuration register 2 fields: - - name: I2S1SEL - description: I2S1SEL - bit_offset: 0 - bit_size: 2 - enum: I2S1SEL - - name: I2S2SEL - description: I2S2SEL - bit_offset: 2 - bit_size: 2 - enum: I2S2SEL - - name: FDCANSEL - description: FDCANSEL - bit_offset: 8 - bit_size: 2 - enum: FDCANSEL - - name: USBSEL - description: USBSEL - bit_offset: 12 - bit_size: 2 - enum: USBSEL + - name: I2S1SEL + description: I2S1SEL + bit_offset: 0 + bit_size: 2 + enum: I2S1SEL + - name: I2S2SEL + description: I2S2SEL + bit_offset: 2 + bit_size: 2 + enum: I2S2SEL + - name: FDCANSEL + description: FDCANSEL + bit_offset: 8 + bit_size: 2 + enum: FDCANSEL + - name: USBSEL + description: USBSEL + bit_offset: 12 + bit_size: 2 + enum: USBSEL fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 3 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 3 - bit_size: 3 - enum: SW - - name: HPRE - description: AHB prescaler - bit_offset: 8 - bit_size: 4 - enum: HPRE - - name: PPRE - description: APB prescaler - bit_offset: 12 - bit_size: 3 - enum: PPRE - - name: MCO2SEL - description: MCO2SEL - bit_offset: 16 - bit_size: 4 - enum: MCOSEL - - name: MCO2PRE - description: MCO2PRE - bit_offset: 20 - bit_size: 4 - enum: MCOPRE - - name: MCOSEL - description: Microcontroller clock output - bit_offset: 24 - bit_size: 3 - enum: MCOSEL - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 3 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 3 + bit_size: 3 + enum: SW + - name: HPRE + description: AHB prescaler + bit_offset: 8 + bit_size: 4 + enum: HPRE + - name: PPRE + description: APB prescaler + bit_offset: 12 + bit_size: 3 + enum: PPRE + - name: MCO2SEL + description: MCO2SEL + bit_offset: 16 + bit_size: 4 + enum: MCOSEL + - name: MCO2PRE + description: MCO2PRE + bit_offset: 20 + bit_size: 4 + enum: MCOPRE + - name: MCOSEL + description: Microcontroller clock output + bit_offset: 24 + bit_size: 3 + enum: MCOSEL + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: HSI48RDYC - description: HSI48RDYC - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLSYSRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: HSI48RDYC + description: HSI48RDYC + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLSYSRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLSYSRDYIE - description: PLL ready interrupt enable - bit_offset: 5 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLSYSRDYIE + description: PLL ready interrupt enable + bit_offset: 5 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSI48RDYF - description: HSI48RDYF - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLSYSRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSI48RDYF + description: HSI48RDYF + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLSYSRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: HSI16 clock enable - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI16 always enable for peripheral kernels - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI16 clock ready flag - bit_offset: 10 - bit_size: 1 - - name: HSIDIV - description: HSI16 clock division factor - bit_offset: 11 - bit_size: 3 - enum: HSIDIV - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE crystal oscillator bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: HSI48ON - description: HSI48ON - bit_offset: 22 - bit_size: 1 - - name: HSI48RDY - description: HSI48RDY - bit_offset: 23 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: HSI16 clock enable + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI16 always enable for peripheral kernels + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI16 clock ready flag + bit_offset: 10 + bit_size: 1 + - name: HSIDIV + description: HSI16 clock division factor + bit_offset: 11 + bit_size: 3 + enum: HSIDIV + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE crystal oscillator bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: HSI48ON + description: HSI48ON + bit_offset: 22 + bit_size: 1 + - name: HSI48RDY + description: HSI48RDY + bit_offset: 23 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CRRCR: description: RCC clock recovery RC register fields: - - name: HSI48CAL - description: HSI48 clock calibration - bit_offset: 0 - bit_size: 9 + - name: HSI48CAL + description: HSI48 clock calibration + bit_offset: 0 + bit_size: 9 fieldset/CSR: description: Control/status register fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flags - bit_offset: 23 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag - bit_offset: 26 - bit_size: 1 - - name: PWRRSTF - description: BOR or POR/PDR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flags + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag + bit_offset: 26 + bit_size: 1 + - name: PWRRSTF + description: BOR or POR/PDR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/GPIOENR: description: GPIO clock enable register fields: - - name: GPIOAEN - description: I/O port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: I/O port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: I/O port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOFEN - description: I/O port F clock enable - bit_offset: 5 - bit_size: 1 + - name: GPIOAEN + description: I/O port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: I/O port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: I/O port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOFEN + description: I/O port F clock enable + bit_offset: 5 + bit_size: 1 fieldset/GPIORSTR: description: GPIO reset register fields: - - name: GPIOARST - description: I/O port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: I/O port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: I/O port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: I/O port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOFRST - description: I/O port F reset - bit_offset: 5 - bit_size: 1 + - name: GPIOARST + description: I/O port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: I/O port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: I/O port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: I/O port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOFRST + description: I/O port F reset + bit_offset: 5 + bit_size: 1 fieldset/GPIOSMENR: description: GPIO in Sleep mode clock enable register fields: - - name: GPIOASMEN - description: I/O port A clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: I/O port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: I/O port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: I/O port D clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOFSMEN - description: I/O port F clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 + - name: GPIOASMEN + description: I/O port A clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: I/O port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: I/O port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: I/O port D clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOFSMEN + description: I/O port F clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: HSICAL - description: HSI16 clock calibration - bit_offset: 0 - bit_size: 8 - - name: HSITRIM - description: HSI16 clock trimming - bit_offset: 8 - bit_size: 7 + - name: HSICAL + description: HSI16 clock calibration + bit_offset: 0 + bit_size: 8 + - name: HSITRIM + description: HSI16 clock trimming + bit_offset: 8 + bit_size: 7 fieldset/PLLSYSCFGR: description: PLL configuration register fields: - - name: PLLSRC - description: PLL input clock source - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLM - description: Division factor M of the PLL input clock divider - bit_offset: 4 - bit_size: 3 - - name: PLLN - description: PLL frequency multiplication factor N - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: PLLPCLK clock output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: PLL VCO division factor P for PLLPCLK clock output - bit_offset: 17 - bit_size: 5 - - name: PLLQEN - description: PLLQCLK clock output enable - bit_offset: 24 - bit_size: 1 - - name: PLLQ - description: PLL VCO division factor Q for PLLQCLK clock output - bit_offset: 25 - bit_size: 3 - - name: PLLREN - description: PLLRCLK clock output enable - bit_offset: 28 - bit_size: 1 - - name: PLLR - description: PLL VCO division factor R for PLLRCLK clock output - bit_offset: 29 - bit_size: 3 + - name: PLLSRC + description: PLL input clock source + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLM + description: Division factor M of the PLL input clock divider + bit_offset: 4 + bit_size: 3 + - name: PLLN + description: PLL frequency multiplication factor N + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: PLLPCLK clock output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: PLL VCO division factor P for PLLPCLK clock output + bit_offset: 17 + bit_size: 5 + - name: PLLQEN + description: PLLQCLK clock output enable + bit_offset: 24 + bit_size: 1 + - name: PLLQ + description: PLL VCO division factor Q for PLLQCLK clock output + bit_offset: 25 + bit_size: 3 + - name: PLLREN + description: PLLRCLK clock output enable + bit_offset: 28 + bit_size: 1 + - name: PLLR + description: PLL VCO division factor R for PLLRCLK clock output + bit_offset: 29 + bit_size: 3 enum/ADCSEL: bit_size: 2 variants: - - name: SYSCLK - description: SYSCLK used as ADC clock source - value: 0 - - name: PLLPCLK - description: PLLPCLK used as ADC clock source - value: 1 - - name: HSI16 - description: HSI16 used as ADC clock source - value: 2 + - name: SYSCLK + description: SYSCLK used as ADC clock source + value: 0 + - name: PLLPCLK + description: PLLPCLK used as ADC clock source + value: 1 + - name: HSI16 + description: HSI16 used as ADC clock source + value: 2 enum/CECSEL: bit_size: 1 variants: - - name: HSI16_Div488 - description: HSI16 divided by 488 used as CEC clock - value: 0 - - name: LSE - description: LSE used as CEC clock - value: 1 + - name: HSI16_Div488 + description: HSI16 divided by 488 used as CEC clock + value: 0 + - name: LSE + description: LSE used as CEC clock + value: 1 enum/FDCANSEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as FDCAN clock source - value: 0 - - name: PLLQCLK - description: PLLQCLK used as FDCAN clock source - value: 1 - - name: HSE - description: HSE used as FDCAN clock source - value: 2 + - name: PCLK + description: PCLK used as FDCAN clock source + value: 0 + - name: PLLQCLK + description: PLLQCLK used as FDCAN clock source + value: 1 + - name: HSE + description: HSE used as FDCAN clock source + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK is divided by 2 - value: 8 - - name: Div4 - description: SYSCLK is divided by 4 - value: 9 - - name: Div8 - description: SYSCLK is divided by 8 - value: 10 - - name: Div16 - description: SYSCLK is divided by 16 - value: 11 - - name: Div64 - description: SYSCLK is divided by 64 - value: 12 - - name: Div128 - description: SYSCLK is divided by 128 - value: 13 - - name: Div256 - description: SYSCLK is divided by 256 - value: 14 - - name: Div512 - description: SYSCLK is divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK is divided by 2 + value: 8 + - name: Div4 + description: SYSCLK is divided by 4 + value: 9 + - name: Div8 + description: SYSCLK is divided by 8 + value: 10 + - name: Div16 + description: SYSCLK is divided by 16 + value: 11 + - name: Div64 + description: SYSCLK is divided by 64 + value: 12 + - name: Div128 + description: SYSCLK is divided by 128 + value: 13 + - name: Div256 + description: SYSCLK is divided by 256 + value: 14 + - name: Div512 + description: SYSCLK is divided by 512 + value: 15 enum/HSIDIV: bit_size: 3 variants: - - name: Div1 - description: HSI clock is not divided - value: 0 - - name: Div2 - description: HSI clock is divided by 2 - value: 1 - - name: Div4 - description: HSI clock is divided by 4 - value: 2 - - name: Div8 - description: HSI clock is divided by 8 - value: 3 - - name: Div16 - description: HSI clock is divided by 16 - value: 4 - - name: Div32 - description: HSI clock is divided by 32 - value: 5 - - name: Div64 - description: HSI clock is divided by 64 - value: 6 - - name: Div128 - description: HSI clock is divided by 128 - value: 7 + - name: Div1 + description: HSI clock is not divided + value: 0 + - name: Div2 + description: HSI clock is divided by 2 + value: 1 + - name: Div4 + description: HSI clock is divided by 4 + value: 2 + - name: Div8 + description: HSI clock is divided by 8 + value: 3 + - name: Div16 + description: HSI clock is divided by 16 + value: 4 + - name: Div32 + description: HSI clock is divided by 32 + value: 5 + - name: Div64 + description: HSI clock is divided by 64 + value: 6 + - name: Div128 + description: HSI clock is divided by 128 + value: 7 enum/I2C1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as I2C1 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as I2C1 clock source - value: 1 - - name: HSI16 - description: HSI16 used as I2C1 clock source - value: 2 + - name: PCLK + description: PCLK used as I2C1 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as I2C1 clock source + value: 1 + - name: HSI16 + description: HSI16 used as I2C1 clock source + value: 2 enum/I2C2I2S1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as I2C2/I2S2 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as I2C2/I2S2 clock source - value: 1 - - name: HSI16 - description: HSI16 used as I2C2/I2S2 clock source - value: 2 - - name: I2S_CKIN - description: External clock used as I2C2/I2S2 clock source - value: 3 + - name: PCLK + description: PCLK used as I2C2/I2S2 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as I2C2/I2S2 clock source + value: 1 + - name: HSI16 + description: HSI16 used as I2C2/I2S2 clock source + value: 2 + - name: I2S_CKIN + description: External clock used as I2C2/I2S2 clock source + value: 3 enum/I2S1SEL: bit_size: 2 variants: - - name: SYSCLK - description: SYSCLK used as I2S1 clock source - value: 0 - - name: PLLPCLK - description: PLLPCLK used as I2S1 clock source - value: 1 - - name: HSI16 - description: HSI used as I2S1 clock source - value: 2 - - name: I2S_CKIN - description: External clock used as I2S1 clock source - value: 3 + - name: SYSCLK + description: SYSCLK used as I2S1 clock source + value: 0 + - name: PLLPCLK + description: PLLPCLK used as I2S1 clock source + value: 1 + - name: HSI16 + description: HSI used as I2S1 clock source + value: 2 + - name: I2S_CKIN + description: External clock used as I2S1 clock source + value: 3 enum/I2S2SEL: bit_size: 2 variants: - - name: SYSCLK - description: SYSCLK used as I2S2 clock source - value: 0 - - name: PLLPCLK - description: PLLPCLK used as I2S2 clock source - value: 1 - - name: HSI16 - description: HSI used as I2S2 clock source - value: 2 - - name: I2S_CKIN - description: External clock used as I2S2 clock source - value: 3 + - name: SYSCLK + description: SYSCLK used as I2S2 clock source + value: 0 + - name: PLLPCLK + description: PLLPCLK used as I2S2 clock source + value: 1 + - name: HSI16 + description: HSI used as I2S2 clock source + value: 2 + - name: I2S_CKIN + description: External clock used as I2S2 clock source + value: 3 enum/LPTIM1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as LPTIM1 clock source - value: 0 - - name: LSI - description: LSI used as LPTIM1 clock source - value: 1 - - name: HSI16 - description: HSI16 used as LPTIM1 clock source - value: 2 - - name: LSE - description: LSE used as LPTIM1 clock source - value: 3 + - name: PCLK + description: PCLK used as LPTIM1 clock source + value: 0 + - name: LSI + description: LSI used as LPTIM1 clock source + value: 1 + - name: HSI16 + description: HSI16 used as LPTIM1 clock source + value: 2 + - name: LSE + description: LSE used as LPTIM1 clock source + value: 3 enum/LPTIM2SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as LPTIM2 clock source - value: 0 - - name: LSI - description: LSI used as LPTIM2 clock source - value: 1 - - name: HSI16 - description: HSI16 used as LPTIM2 clock source - value: 2 - - name: LSE - description: LSE used as LPTIM2 clock source - value: 3 + - name: PCLK + description: PCLK used as LPTIM2 clock source + value: 0 + - name: LSI + description: LSI used as LPTIM2 clock source + value: 1 + - name: HSI16 + description: HSI16 used as LPTIM2 clock source + value: 2 + - name: LSE + description: LSE used as LPTIM2 clock source + value: 3 enum/LPUART1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as LPUART1 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as LPUART1 clock source - value: 1 - - name: HSI16 - description: HSI16 used as LPUART1 clock source - value: 2 - - name: LSE - description: LSE used as LPUART1 clock source - value: 3 + - name: PCLK + description: PCLK used as LPUART1 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as LPUART1 clock source + value: 1 + - name: HSI16 + description: HSI16 used as LPUART1 clock source + value: 2 + - name: LSE + description: LSE used as LPUART1 clock source + value: 3 enum/LPUART2SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as LPUART2 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as LPUART2 clock source - value: 1 - - name: HSI16 - description: HSI16 used as LPUART2 clock source - value: 2 - - name: LSE - description: LSE used as LPUART2 clock source - value: 3 + - name: PCLK + description: PCLK used as LPUART2 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as LPUART2 clock source + value: 1 + - name: HSI16 + description: HSI16 used as LPUART2 clock source + value: 2 + - name: LSE + description: LSE used as LPUART2 clock source + value: 3 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low driving capability - value: 0 - - name: MediumLow - description: Medium low driving capability - value: 1 - - name: MediumHigh - description: Medium high driving capability - value: 2 - - name: High - description: High driving capability - value: 3 + - name: Low + description: Low driving capability + value: 0 + - name: MediumLow + description: Medium low driving capability + value: 1 + - name: MediumHigh + description: Medium high driving capability + value: 2 + - name: High + description: High driving capability + value: 3 enum/MCOPRE: bit_size: 4 variants: - - name: Div1 - description: MCO1 not divided - value: 0 - - name: Div2 - description: MCO clock is divided by 2 - value: 1 - - name: Div4 - description: MCO clock is divided by 4 - value: 2 - - name: Div8 - description: MCO clock is divided by 8 - value: 3 - - name: Div16 - description: MCO clock is divided divided by 16 - value: 4 - - name: Div32 - description: MCO clock is divided divided by 32 - value: 5 - - name: Div64 - description: MCO clock is divided divided by 64 - value: 6 - - name: Div128 - description: MCO clock is divided divided by 128 - value: 7 - - name: Div256 - description: MCO clock is divided divided by 256 - value: 8 - - name: Div512 - description: MCO clock is divided divided by 512 - value: 9 - - name: Div1024 - description: MCO clock is divided divided by 1024 - value: 10 + - name: Div1 + description: MCO1 not divided + value: 0 + - name: Div2 + description: MCO clock is divided by 2 + value: 1 + - name: Div4 + description: MCO clock is divided by 4 + value: 2 + - name: Div8 + description: MCO clock is divided by 8 + value: 3 + - name: Div16 + description: MCO clock is divided divided by 16 + value: 4 + - name: Div32 + description: MCO clock is divided divided by 32 + value: 5 + - name: Div64 + description: MCO clock is divided divided by 64 + value: 6 + - name: Div128 + description: MCO clock is divided divided by 128 + value: 7 + - name: Div256 + description: MCO clock is divided divided by 256 + value: 8 + - name: Div512 + description: MCO clock is divided divided by 512 + value: 9 + - name: Div1024 + description: MCO clock is divided divided by 1024 + value: 10 enum/MCOSEL: bit_size: 4 variants: - - name: NoClock - description: "No clock, MCO output disabled" - value: 0 - - name: SYSCLK - description: SYSCLK selected as MCO source - value: 1 - - name: HSI48 - description: HSI48 selected as MCO source - value: 2 - - name: HSI16 - description: HSI16 selected as MCO source - value: 3 - - name: HSE - description: HSE selected as MCO source - value: 4 - - name: PLLRCLK - description: PLLRCLK selected as MCO source - value: 5 - - name: LSI - description: LSI selected as MCO source - value: 6 - - name: LSE - description: LSE selected as MCO source - value: 7 - - name: PLLPCLK - description: PLLPCLK selected as MCO source - value: 8 - - name: PLLQCLK - description: PLLQCLK selected as MCO source - value: 9 - - name: RTCCLK - description: RTCCLK selected as MCO source - value: 10 - - name: RTC_WKUP - description: RTC_Wakeup selected as MCO source - value: 11 + - name: NoClock + description: No clock, MCO output disabled + value: 0 + - name: SYSCLK + description: SYSCLK selected as MCO source + value: 1 + - name: HSI48 + description: HSI48 selected as MCO source + value: 2 + - name: HSI16 + description: HSI16 selected as MCO source + value: 3 + - name: HSE + description: HSE selected as MCO source + value: 4 + - name: PLLRCLK + description: PLLRCLK selected as MCO source + value: 5 + - name: LSI + description: LSI selected as MCO source + value: 6 + - name: LSE + description: LSE selected as MCO source + value: 7 + - name: PLLPCLK + description: PLLPCLK selected as MCO source + value: 8 + - name: PLLQCLK + description: PLLQCLK selected as MCO source + value: 9 + - name: RTCCLK + description: RTCCLK selected as MCO source + value: 10 + - name: RTC_WKUP + description: RTC_Wakeup selected as MCO source + value: 11 enum/PLLSRC: bit_size: 2 variants: - - name: NoClock - description: No clock selected as PLL entry clock source - value: 0 - - name: HSI16 - description: HSI16 selected as PLL entry clock source - value: 2 - - name: HSE - description: HSE selected as PLL entry clock source - value: 3 + - name: NoClock + description: No clock selected as PLL entry clock source + value: 0 + - name: HSI16 + description: HSI16 selected as PLL entry clock source + value: 2 + - name: HSE + description: HSE selected as PLL entry clock source + value: 3 enum/PPRE: bit_size: 4 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK is divided by 2 - value: 4 - - name: Div4 - description: HCLK is divided by 4 - value: 5 - - name: Div8 - description: HCLK is divided by 8 - value: 6 - - name: Div16 - description: HCLK is divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK is divided by 2 + value: 4 + - name: Div4 + description: HCLK is divided by 4 + value: 5 + - name: Div8 + description: HCLK is divided by 8 + value: 6 + - name: Div16 + description: HCLK is divided by 16 + value: 7 enum/RNGDIV: bit_size: 2 variants: - - name: Div1 - description: RNG clock is not divided - value: 0 - - name: Div2 - description: RNG clock is divided by 2 - value: 1 - - name: Div4 - description: RNG clock is divided by 4 - value: 2 - - name: Div8 - description: RNG clock is divided by 8 - value: 3 + - name: Div1 + description: RNG clock is not divided + value: 0 + - name: Div2 + description: RNG clock is divided by 2 + value: 1 + - name: Div4 + description: RNG clock is divided by 4 + value: 2 + - name: Div8 + description: RNG clock is divided by 8 + value: 3 enum/RNGSEL: bit_size: 2 variants: - - name: NoClock - description: No clock used as RNG clock source - value: 0 - - name: HSI16_Div8 - description: HSI divided by 8 used as RNG clock source - value: 1 - - name: SYSCLK - description: SYSCLK used as RNG clock source - value: 2 - - name: PLLQCLK - description: PLLQCLK used as RNG clock source - value: 3 + - name: NoClock + description: No clock used as RNG clock source + value: 0 + - name: HSI16_Div8 + description: HSI divided by 8 used as RNG clock source + value: 1 + - name: SYSCLK + description: SYSCLK used as RNG clock source + value: 2 + - name: PLLQCLK + description: PLLQCLK used as RNG clock source + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock used as RTC clock - value: 0 - - name: LSE - description: LSE used as RTC clock - value: 1 - - name: LSI - description: LSI used as RTC clock - value: 2 - - name: HSE_Div32 - description: HSE divided by 32 used as RTC clock - value: 3 + - name: NoClock + description: No clock used as RTC clock + value: 0 + - name: LSE + description: LSE used as RTC clock + value: 1 + - name: LSI + description: LSI used as RTC clock + value: 2 + - name: HSE_Div32 + description: HSE divided by 32 used as RTC clock + value: 3 enum/SW: bit_size: 3 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLLRCLK - description: PLLRCLK selected as system clock - value: 2 - - name: LSI - description: LSI selected as system clock - value: 3 - - name: LSE - description: LSE selected as system clock - value: 4 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: HSE + description: HSE selected as system clock + value: 1 + - name: PLLRCLK + description: PLLRCLK selected as system clock + value: 2 + - name: LSI + description: LSI selected as system clock + value: 3 + - name: LSE + description: LSE selected as system clock + value: 4 enum/TIM15SEL: bit_size: 1 variants: - - name: TIMPCLK - description: TIMPCLK used as TIM15 clock source - value: 0 - - name: PLLQCLK - description: PLLQCLK used as TIM15 clock source - value: 1 + - name: TIMPCLK + description: TIMPCLK used as TIM15 clock source + value: 0 + - name: PLLQCLK + description: PLLQCLK used as TIM15 clock source + value: 1 enum/TIM1SEL: bit_size: 1 variants: - - name: TIMPCLK - description: TIMPCLK used as TIM1 clock source - value: 0 - - name: PLLQCLK - description: PLLQCLK used as TIM1 clock source - value: 1 + - name: TIMPCLK + description: TIMPCLK used as TIM1 clock source + value: 0 + - name: PLLQCLK + description: PLLQCLK used as TIM1 clock source + value: 1 enum/USART1SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as USART1 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as USART1 clock source - value: 1 - - name: HSI16 - description: HSI16 used as USART1 clock source - value: 2 - - name: LSE - description: LSE used as USART1 clock source - value: 3 + - name: PCLK + description: PCLK used as USART1 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as USART1 clock source + value: 1 + - name: HSI16 + description: HSI16 used as USART1 clock source + value: 2 + - name: LSE + description: LSE used as USART1 clock source + value: 3 enum/USART2SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as USART2 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as USART2 clock source - value: 1 - - name: HSI16 - description: HSI16 used as USART2 clock source - value: 2 - - name: LSE - description: LSE used as USART2 clock source - value: 3 + - name: PCLK + description: PCLK used as USART2 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as USART2 clock source + value: 1 + - name: HSI16 + description: HSI16 used as USART2 clock source + value: 2 + - name: LSE + description: LSE used as USART2 clock source + value: 3 enum/USART3SEL: bit_size: 2 variants: - - name: PCLK - description: PCLK used as USART3 clock source - value: 0 - - name: SYSCLK - description: SYSCLK used as USART3 clock source - value: 1 - - name: HSI16 - description: HSI16 used as USART3 clock source - value: 2 - - name: LSE - description: LSE used as USART3 clock source - value: 3 + - name: PCLK + description: PCLK used as USART3 clock source + value: 0 + - name: SYSCLK + description: SYSCLK used as USART3 clock source + value: 1 + - name: HSI16 + description: HSI16 used as USART3 clock source + value: 2 + - name: LSE + description: LSE used as USART3 clock source + value: 3 enum/USBSEL: bit_size: 2 variants: - - name: HSI48 - description: HSI48 used as USB clock source - value: 0 - - name: PLLQCLK - description: PLLQCLK used as USB clock source - value: 1 - - name: HSE - description: HSE used as USB clock source - value: 2 + - name: HSI48 + description: HSI48 used as USB clock source + value: 0 + - name: PLLQCLK + description: PLLQCLK used as USB clock source + value: 1 + - name: HSE + description: HSE used as USB clock source + value: 2 diff --git a/data/registers/rcc_g4.yaml b/data/registers/rcc_g4.yaml index f649702..5c328a3 100644 --- a/data/registers/rcc_g4.yaml +++ b/data/registers/rcc_g4.yaml @@ -1,1505 +1,1504 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 12 - fieldset: PLLCFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 40 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 44 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 48 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: APB1 peripheral reset register 1 - byte_offset: 56 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: APB1 peripheral reset register 2 - byte_offset: 60 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 64 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock enable register - byte_offset: 72 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 76 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 80 - fieldset: AHB3ENR - - name: APB1ENR1 - description: APB1ENR1 - byte_offset: 88 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: APB1 peripheral clock enable register 2 - byte_offset: 92 - fieldset: APB1ENR2 - - name: APB2ENR - description: APB2ENR - byte_offset: 96 - fieldset: APB2ENR - - name: AHB1SMENR - description: AHB1 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 104 - fieldset: AHB1SMENR - - name: AHB2SMENR - description: AHB2 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 108 - fieldset: AHB2SMENR - - name: AHB3SMENR - description: AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 112 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: APB1SMENR1 - byte_offset: 120 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 - byte_offset: 124 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: APB2SMENR - byte_offset: 128 - fieldset: APB2SMENR - - name: CCIPR - description: CCIPR - byte_offset: 136 - fieldset: CCIPR - - name: BDCR - description: BDCR - byte_offset: 144 - fieldset: BDCR - - name: CSR - description: CSR - byte_offset: 148 - fieldset: CSR - - name: CRRCR - description: Clock recovery RC register - byte_offset: 152 - fieldset: CRRCR - - name: CCIPR2 - description: Peripherals independent clock configuration register - byte_offset: 156 - fieldset: CCIPR2 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 12 + fieldset: PLLCFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 40 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 44 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 48 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: APB1 peripheral reset register 1 + byte_offset: 56 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: APB1 peripheral reset register 2 + byte_offset: 60 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 64 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock enable register + byte_offset: 72 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 76 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 80 + fieldset: AHB3ENR + - name: APB1ENR1 + description: APB1ENR1 + byte_offset: 88 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: APB1 peripheral clock enable register 2 + byte_offset: 92 + fieldset: APB1ENR2 + - name: APB2ENR + description: APB2ENR + byte_offset: 96 + fieldset: APB2ENR + - name: AHB1SMENR + description: AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 104 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: AHB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 108 + fieldset: AHB2SMENR + - name: AHB3SMENR + description: AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 112 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: APB1SMENR1 + byte_offset: 120 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 + byte_offset: 124 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: APB2SMENR + byte_offset: 128 + fieldset: APB2SMENR + - name: CCIPR + description: CCIPR + byte_offset: 136 + fieldset: CCIPR + - name: BDCR + description: BDCR + byte_offset: 144 + fieldset: BDCR + - name: CSR + description: CSR + byte_offset: 148 + fieldset: CSR + - name: CRRCR + description: Clock recovery RC register + byte_offset: 152 + fieldset: CRRCR + - name: CCIPR2 + description: Peripherals independent clock configuration register + byte_offset: 156 + fieldset: CCIPR2 fieldset/AHB1ENR: description: AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: DMAMUX clock enable - bit_offset: 2 - bit_size: 1 - - name: CORDICEN - description: CORDIC clock enable - bit_offset: 3 - bit_size: 1 - - name: FMACEN - description: FMAC clock enable - bit_offset: 4 - bit_size: 1 - - name: FLASHEN - description: Flash memory interface clock enable - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: DMAMUX clock enable + bit_offset: 2 + bit_size: 1 + - name: CORDICEN + description: CORDIC clock enable + bit_offset: 3 + bit_size: 1 + - name: FMACEN + description: FMAC clock enable + bit_offset: 4 + bit_size: 1 + - name: FLASHEN + description: Flash memory interface clock enable + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1RST - description: DMAMUX1RST - bit_offset: 2 - bit_size: 1 - - name: CORDICRST - description: CORDIC reset - bit_offset: 3 - bit_size: 1 - - name: FMACRST - description: FMAC reset - bit_offset: 4 - bit_size: 1 - - name: FLASHRST - description: Flash memory interface reset - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1RST + description: DMAMUX1RST + bit_offset: 2 + bit_size: 1 + - name: CORDICRST + description: CORDIC reset + bit_offset: 3 + bit_size: 1 + - name: FMACRST + description: FMAC reset + bit_offset: 4 + bit_size: 1 + - name: FLASHRST + description: Flash memory interface reset + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 fieldset/AHB1SMENR: description: AHB1 peripheral clocks enable in Sleep and Stop modes register fields: - - name: DMA1SMEN - description: DMA1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: DMAMUX clock enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: CORDICSMEN - description: CORDIC clock enable during sleep mode - bit_offset: 3 - bit_size: 1 - - name: FMACSMEN - description: FMACSM clock enable - bit_offset: 4 - bit_size: 1 - - name: FLASHSMEN - description: Flash memory interface clocks enable during Sleep and Stop modes - bit_offset: 8 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CRCSMEN - bit_offset: 12 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: DMAMUX clock enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: CORDICSMEN + description: CORDIC clock enable during sleep mode + bit_offset: 3 + bit_size: 1 + - name: FMACSMEN + description: FMACSM clock enable + bit_offset: 4 + bit_size: 1 + - name: FLASHSMEN + description: Flash memory interface clocks enable during Sleep and Stop modes + bit_offset: 8 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CRCSMEN + bit_offset: 12 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 6 - bit_size: 1 - - name: ADC12EN - description: ADC clock enable - bit_offset: 13 - bit_size: 1 - - name: ADC345EN - description: DCMI clock enable - bit_offset: 14 - bit_size: 1 - - name: DAC1EN - description: AES accelerator clock enable - bit_offset: 16 - bit_size: 1 - - name: DAC2EN - description: HASH clock enable - bit_offset: 17 - bit_size: 1 - - name: DAC3EN - description: Random Number Generator clock enable - bit_offset: 18 - bit_size: 1 - - name: DAC4EN - description: DAC4 clock enable - bit_offset: 19 - bit_size: 1 - - name: AESEN - description: AES clock enable - bit_offset: 24 - bit_size: 1 - - name: RNGEN - description: Random Number Generator clock enable - bit_offset: 26 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 6 + bit_size: 1 + - name: ADC12EN + description: ADC clock enable + bit_offset: 13 + bit_size: 1 + - name: ADC345EN + description: DCMI clock enable + bit_offset: 14 + bit_size: 1 + - name: DAC1EN + description: AES accelerator clock enable + bit_offset: 16 + bit_size: 1 + - name: DAC2EN + description: HASH clock enable + bit_offset: 17 + bit_size: 1 + - name: DAC3EN + description: Random Number Generator clock enable + bit_offset: 18 + bit_size: 1 + - name: DAC4EN + description: DAC4 clock enable + bit_offset: 19 + bit_size: 1 + - name: AESEN + description: AES clock enable + bit_offset: 24 + bit_size: 1 + - name: RNGEN + description: Random Number Generator clock enable + bit_offset: 26 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 6 - bit_size: 1 - - name: ADC12RST - description: ADC reset - bit_offset: 13 - bit_size: 1 - - name: ADC345RST - description: SAR ADC345 interface reset - bit_offset: 14 - bit_size: 1 - - name: DAC1RST - description: DAC1 interface reset - bit_offset: 16 - bit_size: 1 - - name: DAC2RST - description: DAC2 interface reset - bit_offset: 17 - bit_size: 1 - - name: DAC3RST - description: DAC3 interface reset - bit_offset: 18 - bit_size: 1 - - name: DAC4RST - description: DAC4 interface reset - bit_offset: 19 - bit_size: 1 - - name: AESRST - description: Cryptography module reset - bit_offset: 24 - bit_size: 1 - - name: RNGRST - description: Random Number Generator module reset - bit_offset: 26 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 6 + bit_size: 1 + - name: ADC12RST + description: ADC reset + bit_offset: 13 + bit_size: 1 + - name: ADC345RST + description: SAR ADC345 interface reset + bit_offset: 14 + bit_size: 1 + - name: DAC1RST + description: DAC1 interface reset + bit_offset: 16 + bit_size: 1 + - name: DAC2RST + description: DAC2 interface reset + bit_offset: 17 + bit_size: 1 + - name: DAC3RST + description: DAC3 interface reset + bit_offset: 18 + bit_size: 1 + - name: DAC4RST + description: DAC4 interface reset + bit_offset: 19 + bit_size: 1 + - name: AESRST + description: Cryptography module reset + bit_offset: 24 + bit_size: 1 + - name: RNGRST + description: Random Number Generator module reset + bit_offset: 26 + bit_size: 1 fieldset/AHB2SMENR: description: AHB2 peripheral clocks enable in Sleep and Stop modes register fields: - - name: GPIOASMEN - description: IO port A clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: IO port B clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: IO port C clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: IO port D clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: IO port E clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: GPIOFSMEN - description: IO port F clocks enable during Sleep and Stop modes - bit_offset: 5 - bit_size: 1 - - name: GPIOGSMEN - description: IO port G clocks enable during Sleep and Stop modes - bit_offset: 6 - bit_size: 1 - - name: CCMSRAMSMEN - description: CCM SRAM interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2 interface clocks enable during Sleep and Stop modes - bit_offset: 10 - bit_size: 1 - - name: ADC12SMEN - description: ADC clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: ADC345SMEN - description: DCMI clock enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: DAC1SMEN - description: AES accelerator clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: DAC2SMEN - description: HASH clock enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: DAC3SMEN - description: DAC3 clock enable during sleep mode - bit_offset: 18 - bit_size: 1 - - name: DAC4SMEN - description: DAC4 clock enable during sleep mode - bit_offset: 19 - bit_size: 1 - - name: AESMEN - description: Cryptography clock enable during sleep mode - bit_offset: 24 - bit_size: 1 - - name: RNGEN - description: Random Number Generator clock enable during sleep mode - bit_offset: 26 - bit_size: 1 + - name: GPIOASMEN + description: IO port A clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: IO port B clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: IO port C clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: IO port D clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: IO port E clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: GPIOFSMEN + description: IO port F clocks enable during Sleep and Stop modes + bit_offset: 5 + bit_size: 1 + - name: GPIOGSMEN + description: IO port G clocks enable during Sleep and Stop modes + bit_offset: 6 + bit_size: 1 + - name: CCMSRAMSMEN + description: CCM SRAM interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2 interface clocks enable during Sleep and Stop modes + bit_offset: 10 + bit_size: 1 + - name: ADC12SMEN + description: ADC clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: ADC345SMEN + description: DCMI clock enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: DAC1SMEN + description: AES accelerator clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: DAC2SMEN + description: HASH clock enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: DAC3SMEN + description: DAC3 clock enable during sleep mode + bit_offset: 18 + bit_size: 1 + - name: DAC4SMEN + description: DAC4 clock enable during sleep mode + bit_offset: 19 + bit_size: 1 + - name: AESMEN + description: Cryptography clock enable during sleep mode + bit_offset: 24 + bit_size: 1 + - name: RNGEN + description: Random Number Generator clock enable during sleep mode + bit_offset: 26 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: FMCEN - description: Flexible memory controller clock enable - bit_offset: 0 - bit_size: 1 - - name: QUADSPIEN - description: QUADSPI memory interface clock enable - bit_offset: 8 - bit_size: 1 + - name: FMCEN + description: Flexible memory controller clock enable + bit_offset: 0 + bit_size: 1 + - name: QUADSPIEN + description: QUADSPI memory interface clock enable + bit_offset: 8 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: FMCRST - description: Flexible memory controller reset - bit_offset: 0 - bit_size: 1 - - name: QSPIRST - description: Quad SPI 1 module reset - bit_offset: 8 - bit_size: 1 + - name: FMCRST + description: Flexible memory controller reset + bit_offset: 0 + bit_size: 1 + - name: QSPIRST + description: Quad SPI 1 module reset + bit_offset: 8 + bit_size: 1 fieldset/AHB3SMENR: description: AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: FMCSMEN - description: Flexible memory controller clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: QSPISMEN - description: QUADSPI memory interface clock enable during Sleep and Stop modes - bit_offset: 8 - bit_size: 1 + - name: FMCSMEN + description: Flexible memory controller clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: QSPISMEN + description: QUADSPI memory interface clock enable during Sleep and Stop modes + bit_offset: 8 + bit_size: 1 fieldset/APB1ENR1: description: APB1ENR1 fields: - - name: TIM2EN - description: TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 timer clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 timer clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM5 timer clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 timer clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 timer clock enable - bit_offset: 5 - bit_size: 1 - - name: CRSEN - description: CRSclock enable - bit_offset: 8 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB device clock enable - bit_offset: 23 - bit_size: 1 - - name: FDCANEN - description: FDCAN clock enable - bit_offset: 25 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 30 - bit_size: 1 - - name: LPTIM1EN - description: Low power timer 1 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 timer clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 timer clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM5 timer clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 timer clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 timer clock enable + bit_offset: 5 + bit_size: 1 + - name: CRSEN + description: CRSclock enable + bit_offset: 8 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB device clock enable + bit_offset: 23 + bit_size: 1 + - name: FDCANEN + description: FDCAN clock enable + bit_offset: 25 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 30 + bit_size: 1 + - name: LPTIM1EN + description: Low power timer 1 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR2: description: APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: Low power UART 1 clock enable - bit_offset: 0 - bit_size: 1 - - name: I2C4EN - description: I2C4 clock enable - bit_offset: 1 - bit_size: 1 - - name: UCPD1EN - description: UCPD1 clock enable - bit_offset: 8 - bit_size: 1 + - name: LPUART1EN + description: Low power UART 1 clock enable + bit_offset: 0 + bit_size: 1 + - name: I2C4EN + description: I2C4 clock enable + bit_offset: 1 + bit_size: 1 + - name: UCPD1EN + description: UCPD1 clock enable + bit_offset: 8 + bit_size: 1 fieldset/APB1RSTR1: description: APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 timer reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM3 timer reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM5 timer reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 timer reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 timer reset - bit_offset: 5 - bit_size: 1 - - name: CRSRST - description: Clock recovery system reset - bit_offset: 8 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USBD reset - bit_offset: 23 - bit_size: 1 - - name: FDCANRST - description: FDCAN reset - bit_offset: 25 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: I2C3RST - description: I2C3 interface reset - bit_offset: 30 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 timer reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM3 timer reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM5 timer reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 timer reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 timer reset + bit_offset: 5 + bit_size: 1 + - name: CRSRST + description: Clock recovery system reset + bit_offset: 8 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USBD reset + bit_offset: 23 + bit_size: 1 + - name: FDCANRST + description: FDCAN reset + bit_offset: 25 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: I2C3RST + description: I2C3 interface reset + bit_offset: 30 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR2: description: APB1 peripheral reset register 2 fields: - - name: LPUART1RST - description: Low-power UART 1 reset - bit_offset: 0 - bit_size: 1 - - name: I2C4RST - description: I2C4 reset - bit_offset: 1 - bit_size: 1 - - name: UCPD1RST - description: UCPD1 reset - bit_offset: 8 - bit_size: 1 + - name: LPUART1RST + description: Low-power UART 1 reset + bit_offset: 0 + bit_size: 1 + - name: I2C4RST + description: I2C4 reset + bit_offset: 1 + bit_size: 1 + - name: UCPD1RST + description: UCPD1 reset + bit_offset: 8 + bit_size: 1 fieldset/APB1SMENR1: description: APB1SMENR1 fields: - - name: TIM2SMEN - description: TIM2 timer clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: TIM3SMEN - description: TIM3 timer clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: TIM4SMEN - description: TIM4 timer clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: TIM5SMEN - description: TIM5 timer clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: TIM6SMEN - description: TIM6 timer clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: TIM7SMEN - description: TIM7 timer clocks enable during Sleep and Stop modes - bit_offset: 5 - bit_size: 1 - - name: CRSSMEN - description: CRS clock enable during sleep mode - bit_offset: 8 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC APB clock enable during Sleep and Stop modes - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clocks enable during Sleep and Stop modes - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clocks enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: SP3SMEN - description: SPI3 clocks enable during Sleep and Stop modes - bit_offset: 15 - bit_size: 1 - - name: USART2SMEN - description: USART2 clocks enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: USART3SMEN - description: USART3 clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: UART4SMEN - description: UART4 clocks enable during Sleep and Stop modes - bit_offset: 19 - bit_size: 1 - - name: UART5SMEN - description: UART5 clocks enable during Sleep and Stop modes - bit_offset: 20 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clocks enable during Sleep and Stop modes - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 - - name: USBSMEN - description: USB device clocks enable during Sleep and Stop modes - bit_offset: 23 - bit_size: 1 - - name: FDCANSMEN - description: FDCAN clock enable during sleep mode - bit_offset: 25 - bit_size: 1 - - name: PWRSMEN - description: Power interface clocks enable during Sleep and Stop modes - bit_offset: 28 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clocks enable during Sleep and Stop modes - bit_offset: 30 - bit_size: 1 - - name: LPTIM1SMEN - description: Low Power Timer1 clock enable during sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: TIM3 timer clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: TIM4SMEN + description: TIM4 timer clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: TIM5SMEN + description: TIM5 timer clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: TIM6SMEN + description: TIM6 timer clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: TIM7SMEN + description: TIM7 timer clocks enable during Sleep and Stop modes + bit_offset: 5 + bit_size: 1 + - name: CRSSMEN + description: CRS clock enable during sleep mode + bit_offset: 8 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC APB clock enable during Sleep and Stop modes + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clocks enable during Sleep and Stop modes + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clocks enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: SP3SMEN + description: SPI3 clocks enable during Sleep and Stop modes + bit_offset: 15 + bit_size: 1 + - name: USART2SMEN + description: USART2 clocks enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: USART3SMEN + description: USART3 clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: UART4SMEN + description: UART4 clocks enable during Sleep and Stop modes + bit_offset: 19 + bit_size: 1 + - name: UART5SMEN + description: UART5 clocks enable during Sleep and Stop modes + bit_offset: 20 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clocks enable during Sleep and Stop modes + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 + - name: USBSMEN + description: USB device clocks enable during Sleep and Stop modes + bit_offset: 23 + bit_size: 1 + - name: FDCANSMEN + description: FDCAN clock enable during sleep mode + bit_offset: 25 + bit_size: 1 + - name: PWRSMEN + description: Power interface clocks enable during Sleep and Stop modes + bit_offset: 28 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clocks enable during Sleep and Stop modes + bit_offset: 30 + bit_size: 1 + - name: LPTIM1SMEN + description: Low Power Timer1 clock enable during sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR2: description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: I2C4SMEN - description: I2C4 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: UCPD1SMEN - description: UCPD1 clocks enable during Sleep and Stop modes - bit_offset: 8 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: I2C4SMEN + description: I2C4 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: UCPD1SMEN + description: UCPD1 clocks enable during Sleep and Stop modes + bit_offset: 8 + bit_size: 1 fieldset/APB2ENR: description: APB2ENR fields: - - name: SYSCFGEN - description: SYSCFG clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM1EN - description: TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: TIM8 timer clock enable - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: USART1clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI4EN - description: SPI 4 clock enable - bit_offset: 15 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: TIM20EN - description: Timer 20 clock enable - bit_offset: 20 - bit_size: 1 - - name: SAI1EN - description: SAI1 clock enable - bit_offset: 21 - bit_size: 1 - - name: HRTIM1EN - description: HRTIMER clock enable - bit_offset: 26 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM1EN + description: TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: TIM8 timer clock enable + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: USART1clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI4EN + description: SPI 4 clock enable + bit_offset: 15 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: TIM20EN + description: Timer 20 clock enable + bit_offset: 20 + bit_size: 1 + - name: SAI1EN + description: SAI1 clock enable + bit_offset: 21 + bit_size: 1 + - name: HRTIM1EN + description: HRTIMER clock enable + bit_offset: 26 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: SYSCFGRST - description: System configuration (SYSCFG) reset - bit_offset: 0 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: TIM8 timer reset - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: SPI4RST - description: SPI 4 reset - bit_offset: 15 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: TIM20RST - description: Timer 20 reset - bit_offset: 20 - bit_size: 1 - - name: SAI1RST - description: Serial audio interface 1 (SAI1) reset - bit_offset: 21 - bit_size: 1 - - name: HRTIM1RST - description: HRTIMER reset - bit_offset: 26 - bit_size: 1 + - name: SYSCFGRST + description: System configuration (SYSCFG) reset + bit_offset: 0 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: TIM8 timer reset + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: SPI4RST + description: SPI 4 reset + bit_offset: 15 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: TIM20RST + description: Timer 20 reset + bit_offset: 20 + bit_size: 1 + - name: SAI1RST + description: Serial audio interface 1 (SAI1) reset + bit_offset: 21 + bit_size: 1 + - name: HRTIM1RST + description: HRTIMER reset + bit_offset: 26 + bit_size: 1 fieldset/APB2SMENR: description: APB2SMENR fields: - - name: SYSCFGSMEN - description: SYSCFG clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clocks enable during Sleep and Stop modes - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clocks enable during Sleep and Stop modes - bit_offset: 12 - bit_size: 1 - - name: TIM8SMEN - description: TIM8 timer clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: USART1SMEN - description: USART1clocks enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: SPI4SMEN - description: SPI4 timer clocks enable during Sleep and Stop modes - bit_offset: 15 - bit_size: 1 - - name: TIM15SMEN - description: TIM15 timer clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clocks enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: TIM20SMEN - description: Timer 20clock enable during sleep mode - bit_offset: 20 - bit_size: 1 - - name: SAI1SMEN - description: SAI1 clock enable during sleep mode - bit_offset: 21 - bit_size: 1 - - name: HRTIM1SMEN - description: HRTIMER clock enable during sleep mode - bit_offset: 26 - bit_size: 1 + - name: SYSCFGSMEN + description: SYSCFG clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clocks enable during Sleep and Stop modes + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clocks enable during Sleep and Stop modes + bit_offset: 12 + bit_size: 1 + - name: TIM8SMEN + description: TIM8 timer clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: USART1SMEN + description: USART1clocks enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: SPI4SMEN + description: SPI4 timer clocks enable during Sleep and Stop modes + bit_offset: 15 + bit_size: 1 + - name: TIM15SMEN + description: TIM15 timer clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clocks enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: TIM20SMEN + description: Timer 20clock enable during sleep mode + bit_offset: 20 + bit_size: 1 + - name: SAI1SMEN + description: SAI1 clock enable during sleep mode + bit_offset: 21 + bit_size: 1 + - name: HRTIM1SMEN + description: HRTIMER clock enable during sleep mode + bit_offset: 26 + bit_size: 1 fieldset/BDCR: description: BDCR fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: SE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: LSECSSON - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: LSECSSD - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: RTC domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low speed clock output enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low speed clock output selection - bit_offset: 25 - bit_size: 1 + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: SE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: LSECSSON + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: LSECSSD + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: RTC domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low speed clock output enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low speed clock output selection + bit_offset: 25 + bit_size: 1 fieldset/CCIPR: description: CCIPR fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - - name: USART3SEL - description: USART3 clock source selection - bit_offset: 4 - bit_size: 2 - - name: UART4SEL - description: UART4 clock source selection - bit_offset: 6 - bit_size: 2 - - name: UART5SEL - description: UART5 clock source selection - bit_offset: 8 - bit_size: 2 - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - - name: I2C2SEL - description: I2C2 clock source selection - bit_offset: 14 - bit_size: 2 - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 18 - bit_size: 2 - - name: SAI1SEL - description: Low power timer 2 clock source selection - bit_offset: 20 - bit_size: 2 - - name: I2S23SEL - description: SAI1 clock source selection - bit_offset: 22 - bit_size: 2 - - name: FDCANSEL - description: SAI2 clock source selection - bit_offset: 24 - bit_size: 2 - - name: CLK48SEL - description: 48 MHz clock source selection - bit_offset: 26 - bit_size: 2 - enum: CLK48SEL - - name: ADC12SEL - description: ADCs clock source selection - bit_offset: 28 - bit_size: 2 - enum: ADCSEL - - name: ADC345SEL - description: ADC3/4/5 clock source selection - bit_offset: 30 - enum: ADCSEL - bit_size: 2 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + - name: USART3SEL + description: USART3 clock source selection + bit_offset: 4 + bit_size: 2 + - name: UART4SEL + description: UART4 clock source selection + bit_offset: 6 + bit_size: 2 + - name: UART5SEL + description: UART5 clock source selection + bit_offset: 8 + bit_size: 2 + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + - name: I2C2SEL + description: I2C2 clock source selection + bit_offset: 14 + bit_size: 2 + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 18 + bit_size: 2 + - name: SAI1SEL + description: Low power timer 2 clock source selection + bit_offset: 20 + bit_size: 2 + - name: I2S23SEL + description: SAI1 clock source selection + bit_offset: 22 + bit_size: 2 + - name: FDCANSEL + description: SAI2 clock source selection + bit_offset: 24 + bit_size: 2 + - name: CLK48SEL + description: 48 MHz clock source selection + bit_offset: 26 + bit_size: 2 + enum: CLK48SEL + - name: ADC12SEL + description: ADCs clock source selection + bit_offset: 28 + bit_size: 2 + enum: ADCSEL + - name: ADC345SEL + description: ADC3/4/5 clock source selection + bit_offset: 30 + bit_size: 2 + enum: ADCSEL fieldset/CCIPR2: description: Peripherals independent clock configuration register fields: - - name: I2C4SEL - description: I2C4 clock source selection - bit_offset: 0 - bit_size: 2 - - name: QSPISEL - description: Octospi clock source selection - bit_offset: 20 - bit_size: 2 + - name: I2C4SEL + description: I2C4 clock source selection + bit_offset: 0 + bit_size: 2 + - name: QSPISEL + description: Octospi clock source selection + bit_offset: 20 + bit_size: 2 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SW - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: PB low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: MCOSEL - description: Microcontroller clock output - bit_offset: 24 - bit_size: 4 - enum: MCOSEL - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SW + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: PB low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: MCOSEL + description: Microcontroller clock output + bit_offset: 24 + bit_size: 4 + enum: MCOSEL + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYC - description: HSI48 oscillator ready interrupt clear - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYC + description: HSI48 oscillator ready interrupt clear + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSIE - description: LSE clock security system interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYIE - description: HSI48 ready interrupt enable - bit_offset: 10 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSIE + description: LSE clock security system interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYIE + description: HSI48 ready interrupt enable + bit_offset: 10 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYF - description: HSI48 ready interrupt flag - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYF + description: HSI48 ready interrupt flag + bit_offset: 10 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: HSI clock enable - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI always enable for peripheral kernels - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI clock ready flag - bit_offset: 10 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE crystal oscillator bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSION + description: HSI clock enable + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI always enable for peripheral kernels + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI clock ready flag + bit_offset: 10 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE crystal oscillator bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CRRCR: description: Clock recovery RC register fields: - - name: HSI48ON - description: HSI48 clock enable - bit_offset: 0 - bit_size: 1 - - name: HSI48RDY - description: HSI48 clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSI48CAL - description: HSI48 clock calibration - bit_offset: 7 - bit_size: 9 + - name: HSI48ON + description: HSI48 clock enable + bit_offset: 0 + bit_size: 1 + - name: HSI48RDY + description: HSI48 clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSI48CAL + description: HSI48 clock calibration + bit_offset: 7 + bit_size: 9 fieldset/CSR: description: CSR fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pad reset flag - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: BOR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pad reset flag + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: BOR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: HSICAL0 - description: Internal High Speed clock Calibration - bit_offset: 16 - bit_size: 8 - - name: HSITRIM - description: Internal High Speed clock trimming - bit_offset: 24 - bit_size: 7 + - name: HSICAL0 + description: Internal High Speed clock Calibration + bit_offset: 16 + bit_size: 8 + - name: HSITRIM + description: Internal High Speed clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLSRC - description: "Main PLL, PLLSAI1 and PLLSAI2 entry clock source" - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLM - description: Division factor for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock - bit_offset: 4 - bit_size: 4 - - name: PLLN - description: Main PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: Main PLL PLLSAI3CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: Main PLL division factor for PLLSAI3CLK (SAI1 and SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLQEN - description: Main PLL PLLUSB1CLK output enable - bit_offset: 20 - bit_size: 1 - - name: PLLQ - description: Main PLL division factor for PLLUSB1CLK(48 MHz clock) - bit_offset: 21 - bit_size: 2 - - name: PLLREN - description: Main PLL PLLCLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLR - description: Main PLL division factor for PLLCLK (system clock) - bit_offset: 25 - bit_size: 2 - - name: PLLPDIV - description: Main PLL division factor for PLLSAI2CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSRC + description: Main PLL, PLLSAI1 and PLLSAI2 entry clock source + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLM + description: Division factor for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock + bit_offset: 4 + bit_size: 4 + - name: PLLN + description: Main PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: Main PLL PLLSAI3CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: Main PLL division factor for PLLSAI3CLK (SAI1 and SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLQEN + description: Main PLL PLLUSB1CLK output enable + bit_offset: 20 + bit_size: 1 + - name: PLLQ + description: Main PLL division factor for PLLUSB1CLK(48 MHz clock) + bit_offset: 21 + bit_size: 2 + - name: PLLREN + description: Main PLL PLLCLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLR + description: Main PLL division factor for PLLCLK (system clock) + bit_offset: 25 + bit_size: 2 + - name: PLLPDIV + description: Main PLL division factor for PLLSAI2CLK + bit_offset: 27 + bit_size: 5 enum/ADCSEL: bit_size: 2 variants: - - name: NOCLK - description: No clock selected - value: 0 - - name: PLLP - description: PLL 'P' clock selected as ADC clock - value: 1 - - name: SYSCLK - description: System clock selected as ADC clock - value: 2 + - name: NOCLK + description: No clock selected + value: 0 + - name: PLLP + description: PLL 'P' clock selected as ADC clock + value: 1 + - name: SYSCLK + description: System clock selected as ADC clock + value: 2 enum/CLK48SEL: bit_size: 2 variants: - - name: HSI48 - description: HSI48 oscillator clock selected as 48 MHz clock - value: 0 - - name: PLLQCLK - description: PLLQCLK selected as 48 MHz clock - value: 2 + - name: HSI48 + description: HSI48 oscillator clock selected as 48 MHz clock + value: 0 + - name: PLLQCLK + description: PLLQCLK selected as 48 MHz clock + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK is divided by 2 - value: 8 - - name: Div4 - description: SYSCLK is divided by 4 - value: 9 - - name: Div8 - description: SYSCLK is divided by 8 - value: 10 - - name: Div16 - description: SYSCLK is divided by 16 - value: 11 - - name: Div64 - description: SYSCLK is divided by 64 - value: 12 - - name: Div128 - description: SYSCLK is divided by 128 - value: 13 - - name: Div256 - description: SYSCLK is divided by 256 - value: 14 - - name: Div512 - description: SYSCLK is divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK is divided by 2 + value: 8 + - name: Div4 + description: SYSCLK is divided by 4 + value: 9 + - name: Div8 + description: SYSCLK is divided by 8 + value: 10 + - name: Div16 + description: SYSCLK is divided by 16 + value: 11 + - name: Div64 + description: SYSCLK is divided by 64 + value: 12 + - name: Div128 + description: SYSCLK is divided by 128 + value: 13 + - name: Div256 + description: SYSCLK is divided by 256 + value: 14 + - name: Div512 + description: SYSCLK is divided by 512 + value: 15 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Low driving capability - value: 0 - - name: MediumLow - description: Medium low driving capability - value: 1 - - name: MediumHigh - description: Medium high driving capability - value: 2 - - name: High - description: High driving capability - value: 3 + - name: Low + description: Low driving capability + value: 0 + - name: MediumLow + description: Medium low driving capability + value: 1 + - name: MediumHigh + description: Medium high driving capability + value: 2 + - name: High + description: High driving capability + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: MCO1 not divided - value: 0 - - name: Div2 - description: MCO clock is divided by 2 - value: 1 - - name: Div4 - description: MCO clock is divided by 4 - value: 2 - - name: Div8 - description: MCO clock is divided by 8 - value: 3 - - name: Div16 - description: MCO clock is divided divided by 16 - value: 4 + - name: Div1 + description: MCO1 not divided + value: 0 + - name: Div2 + description: MCO clock is divided by 2 + value: 1 + - name: Div4 + description: MCO clock is divided by 4 + value: 2 + - name: Div8 + description: MCO clock is divided by 8 + value: 3 + - name: Div16 + description: MCO clock is divided divided by 16 + value: 4 enum/MCOSEL: bit_size: 4 variants: - - name: NoClock - description: "No clock, MCO output disabled" - value: 0 - - name: SYSCLK - description: SYSCLK selected as MCO source - value: 1 - - name: HSI16 - description: HSI16 selected as MCO source - value: 3 - - name: HSE - description: HSE selected as MCO source - value: 4 - - name: PLLCLK - description: Main PLLCLK selected as MCO source - value: 5 - - name: LSI - description: LSI selected as MCO source - value: 6 - - name: LSE - description: LSE selected as MCO source - value: 7 - - name: HSI48 - description: HSI48 selected as MCO source - value: 8 + - name: NoClock + description: No clock, MCO output disabled + value: 0 + - name: SYSCLK + description: SYSCLK selected as MCO source + value: 1 + - name: HSI16 + description: HSI16 selected as MCO source + value: 3 + - name: HSE + description: HSE selected as MCO source + value: 4 + - name: PLLCLK + description: Main PLLCLK selected as MCO source + value: 5 + - name: LSI + description: LSI selected as MCO source + value: 6 + - name: LSE + description: LSE selected as MCO source + value: 7 + - name: HSI48 + description: HSI48 selected as MCO source + value: 8 enum/PLLSRC: bit_size: 2 variants: - - name: NoClock - description: No clock selected as PLL entry clock source - value: 0 - - name: HSI16 - description: HSI16 selected as PLL entry clock source - value: 2 - - name: HSE - description: HSE selected as PLL entry clock source - value: 3 + - name: NoClock + description: No clock selected as PLL entry clock source + value: 0 + - name: HSI16 + description: HSI16 selected as PLL entry clock source + value: 2 + - name: HSE + description: HSE selected as PLL entry clock source + value: 3 enum/PPRE: bit_size: 4 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK is divided by 2 - value: 4 - - name: Div4 - description: HCLK is divided by 4 - value: 5 - - name: Div8 - description: HCLK is divided by 8 - value: 6 - - name: Div16 - description: HCLK is divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK is divided by 2 + value: 4 + - name: Div4 + description: HCLK is divided by 4 + value: 5 + - name: Div8 + description: HCLK is divided by 8 + value: 6 + - name: Div16 + description: HCLK is divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock used as RTC clock - value: 0 - - name: LSE - description: LSE used as RTC clock - value: 1 - - name: LSI - description: LSI used as RTC clock - value: 2 - - name: HSE_Div32 - description: HSE divided by 32 used as RTC clock - value: 3 + - name: NoClock + description: No clock used as RTC clock + value: 0 + - name: LSE + description: LSE used as RTC clock + value: 1 + - name: LSI + description: LSI used as RTC clock + value: 2 + - name: HSE_Div32 + description: HSE divided by 32 used as RTC clock + value: 3 enum/SW: bit_size: 2 variants: - - name: HSI16 - description: HSI16 selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLLRCLK - description: PLLRCLK selected as system clock - value: 3 + - name: HSI16 + description: HSI16 selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLLRCLK + description: PLLRCLK selected as system clock + value: 3 diff --git a/data/registers/rcc_h5.yaml b/data/registers/rcc_h5.yaml index 8fac1eb..d951e14 100644 --- a/data/registers/rcc_h5.yaml +++ b/data/registers/rcc_h5.yaml @@ -1,2757 +1,2756 @@ ---- block/RCC: description: Reset and clock controller items: - - name: CR - description: RCC clock control register - byte_offset: 0 - fieldset: CR - - name: HSICFGR - description: RCC HSI calibration register - byte_offset: 16 - fieldset: HSICFGR - - name: CRRCR - description: RCC clock recovery RC register - byte_offset: 20 - fieldset: CRRCR - - name: CSICFGR - description: RCC CSI calibration register - byte_offset: 24 - fieldset: CSICFGR - - name: CFGR - description: RCC clock configuration register - byte_offset: 28 - fieldset: CFGR - - name: CFGR2 - description: RCC CPU domain clock configuration register 2 - byte_offset: 32 - fieldset: CFGR2 - - name: PLLCFGR - description: RCC PLL clock source selection register - array: - len: 3 - stride: 4 - byte_offset: 40 - fieldset: PLLCFGR - - name: PLLDIVR - description: RCC PLL1 dividers register - array: - len: 3 - stride: 8 - byte_offset: 52 - fieldset: PLLDIVR - - name: PLLFRACR - description: RCC PLL1 fractional divider register - array: - len: 3 - stride: 8 - byte_offset: 56 - fieldset: PLLFRACR - - name: CIER - description: RCC clock source interrupt enable register - byte_offset: 80 - fieldset: CIER - - name: CIFR - description: RCC clock source interrupt flag register - byte_offset: 84 - fieldset: CIFR - - name: CICR - description: RCC clock source interrupt clear register - byte_offset: 88 - fieldset: CICR - - name: AHB1RSTR - description: RCC AHB1 reset register - byte_offset: 96 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: RCC AHB2 peripheral reset register - byte_offset: 100 - fieldset: AHB2RSTR - - name: AHB4RSTR - description: RCC AHB4 peripheral reset register - byte_offset: 108 - fieldset: AHB4RSTR - - name: APB1LRSTR - description: RCC APB1 peripheral low reset register - byte_offset: 116 - fieldset: APB1LRSTR - - name: APB1HRSTR - description: RCC APB1 peripheral high reset register - byte_offset: 120 - fieldset: APB1HRSTR - - name: APB2RSTR - description: RCC APB2 peripheral reset register - byte_offset: 124 - fieldset: APB2RSTR - - name: APB3RSTR - description: RCC APB3 peripheral reset register - byte_offset: 128 - fieldset: APB3RSTR - - name: AHB1ENR - description: RCC AHB1 peripherals clock register - byte_offset: 136 - fieldset: AHB1ENR - - name: AHB2ENR - description: RCC AHB2 peripheral clock register - byte_offset: 140 - fieldset: AHB2ENR - - name: AHB4ENR - description: RCC AHB4 peripheral clock register - byte_offset: 148 - fieldset: AHB4ENR - - name: APB1LENR - description: RCC APB1 peripheral clock register - byte_offset: 156 - fieldset: APB1LENR - - name: APB1HENR - description: RCC APB1 peripheral clock register - byte_offset: 160 - fieldset: APB1HENR - - name: APB2ENR - description: RCC APB2 peripheral clock register - byte_offset: 164 - fieldset: APB2ENR - - name: APB3ENR - description: RCC APB3 peripheral clock register - byte_offset: 168 - fieldset: APB3ENR - - name: AHB1LPENR - description: RCC AHB1 sleep clock register - byte_offset: 176 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: RCC AHB2 sleep clock register - byte_offset: 180 - fieldset: AHB2LPENR - - name: AHB4LPENR - description: RCC AHB4 sleep clock register - byte_offset: 188 - fieldset: AHB4LPENR - - name: APB1LLPENR - description: RCC APB1 sleep clock register - byte_offset: 196 - fieldset: APB1LLPENR - - name: APB1HLPENR - description: RCC APB1 sleep clock register - byte_offset: 200 - fieldset: APB1HLPENR - - name: APB2LPENR - description: RCC APB2 sleep clock register - byte_offset: 204 - fieldset: APB2LPENR - - name: APB3LPENR - description: RCC APB3 sleep clock register - byte_offset: 208 - fieldset: APB3LPENR - - name: CCIPR1 - description: RCC kernel clock configuration register - byte_offset: 216 - fieldset: CCIPR1 - - name: CCIPR2 - description: RCC kernel clock configuration register - byte_offset: 220 - fieldset: CCIPR2 - - name: CCIPR3 - description: RCC kernel clock configuration register - byte_offset: 224 - fieldset: CCIPR3 - - name: CCIPR4 - description: RCC kernel clock configuration register - byte_offset: 228 - fieldset: CCIPR4 - - name: CCIPR5 - description: RCC kernel clock configuration register - byte_offset: 232 - fieldset: CCIPR5 - - name: BDCR - description: RCC Backup domain control register - byte_offset: 240 - fieldset: BDCR - - name: RSR - description: RCC reset status register - byte_offset: 244 - fieldset: RSR - - name: SECCFGR - description: RCC secure configuration register - byte_offset: 272 - fieldset: SECCFGR - - name: PRIVCFGR - description: RCC privilege configuration register - byte_offset: 276 - fieldset: PRIVCFGR + - name: CR + description: RCC clock control register + byte_offset: 0 + fieldset: CR + - name: HSICFGR + description: RCC HSI calibration register + byte_offset: 16 + fieldset: HSICFGR + - name: CRRCR + description: RCC clock recovery RC register + byte_offset: 20 + fieldset: CRRCR + - name: CSICFGR + description: RCC CSI calibration register + byte_offset: 24 + fieldset: CSICFGR + - name: CFGR + description: RCC clock configuration register + byte_offset: 28 + fieldset: CFGR + - name: CFGR2 + description: RCC CPU domain clock configuration register 2 + byte_offset: 32 + fieldset: CFGR2 + - name: PLLCFGR + description: RCC PLL clock source selection register + array: + len: 3 + stride: 4 + byte_offset: 40 + fieldset: PLLCFGR + - name: PLLDIVR + description: RCC PLL1 dividers register + array: + len: 3 + stride: 8 + byte_offset: 52 + fieldset: PLLDIVR + - name: PLLFRACR + description: RCC PLL1 fractional divider register + array: + len: 3 + stride: 8 + byte_offset: 56 + fieldset: PLLFRACR + - name: CIER + description: RCC clock source interrupt enable register + byte_offset: 80 + fieldset: CIER + - name: CIFR + description: RCC clock source interrupt flag register + byte_offset: 84 + fieldset: CIFR + - name: CICR + description: RCC clock source interrupt clear register + byte_offset: 88 + fieldset: CICR + - name: AHB1RSTR + description: RCC AHB1 reset register + byte_offset: 96 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: RCC AHB2 peripheral reset register + byte_offset: 100 + fieldset: AHB2RSTR + - name: AHB4RSTR + description: RCC AHB4 peripheral reset register + byte_offset: 108 + fieldset: AHB4RSTR + - name: APB1LRSTR + description: RCC APB1 peripheral low reset register + byte_offset: 116 + fieldset: APB1LRSTR + - name: APB1HRSTR + description: RCC APB1 peripheral high reset register + byte_offset: 120 + fieldset: APB1HRSTR + - name: APB2RSTR + description: RCC APB2 peripheral reset register + byte_offset: 124 + fieldset: APB2RSTR + - name: APB3RSTR + description: RCC APB3 peripheral reset register + byte_offset: 128 + fieldset: APB3RSTR + - name: AHB1ENR + description: RCC AHB1 peripherals clock register + byte_offset: 136 + fieldset: AHB1ENR + - name: AHB2ENR + description: RCC AHB2 peripheral clock register + byte_offset: 140 + fieldset: AHB2ENR + - name: AHB4ENR + description: RCC AHB4 peripheral clock register + byte_offset: 148 + fieldset: AHB4ENR + - name: APB1LENR + description: RCC APB1 peripheral clock register + byte_offset: 156 + fieldset: APB1LENR + - name: APB1HENR + description: RCC APB1 peripheral clock register + byte_offset: 160 + fieldset: APB1HENR + - name: APB2ENR + description: RCC APB2 peripheral clock register + byte_offset: 164 + fieldset: APB2ENR + - name: APB3ENR + description: RCC APB3 peripheral clock register + byte_offset: 168 + fieldset: APB3ENR + - name: AHB1LPENR + description: RCC AHB1 sleep clock register + byte_offset: 176 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: RCC AHB2 sleep clock register + byte_offset: 180 + fieldset: AHB2LPENR + - name: AHB4LPENR + description: RCC AHB4 sleep clock register + byte_offset: 188 + fieldset: AHB4LPENR + - name: APB1LLPENR + description: RCC APB1 sleep clock register + byte_offset: 196 + fieldset: APB1LLPENR + - name: APB1HLPENR + description: RCC APB1 sleep clock register + byte_offset: 200 + fieldset: APB1HLPENR + - name: APB2LPENR + description: RCC APB2 sleep clock register + byte_offset: 204 + fieldset: APB2LPENR + - name: APB3LPENR + description: RCC APB3 sleep clock register + byte_offset: 208 + fieldset: APB3LPENR + - name: CCIPR1 + description: RCC kernel clock configuration register + byte_offset: 216 + fieldset: CCIPR1 + - name: CCIPR2 + description: RCC kernel clock configuration register + byte_offset: 220 + fieldset: CCIPR2 + - name: CCIPR3 + description: RCC kernel clock configuration register + byte_offset: 224 + fieldset: CCIPR3 + - name: CCIPR4 + description: RCC kernel clock configuration register + byte_offset: 228 + fieldset: CCIPR4 + - name: CCIPR5 + description: RCC kernel clock configuration register + byte_offset: 232 + fieldset: CCIPR5 + - name: BDCR + description: RCC Backup domain control register + byte_offset: 240 + fieldset: BDCR + - name: RSR + description: RCC reset status register + byte_offset: 244 + fieldset: RSR + - name: SECCFGR + description: RCC secure configuration register + byte_offset: 272 + fieldset: SECCFGR + - name: PRIVCFGR + description: RCC privilege configuration register + byte_offset: 276 + fieldset: PRIVCFGR fieldset/AHB1ENR: description: RCC AHB1 peripherals clock register fields: - - name: GPDMA1EN - description: "GPDMA1 clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPDMA2EN - description: "GPDMA2 clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: FLITFEN - description: "Flash interface clock enable\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: "CRC clock enable\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: CORDICEN - description: "CORDIC clock enable\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: FMACEN - description: "FMAC clock enable\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: RAMCFGEN - description: "RAMCFG clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: ETHEN - description: "ETH clock enable\r Set and reset by software" - bit_offset: 19 - bit_size: 1 - - name: ETHTXEN - description: "ETHTX clock enable\r Set and reset by software" - bit_offset: 20 - bit_size: 1 - - name: ETHRXEN - description: "ETHRX clock enable\r Set and reset by software" - bit_offset: 21 - bit_size: 1 - - name: TZSC1EN - description: "TZSC1 clock enable\r Set and reset by software" - bit_offset: 24 - bit_size: 1 - - name: BKPRAMEN - description: "BKPRAM clock enable\r Set and reset by software" - bit_offset: 28 - bit_size: 1 - - name: DCACHEEN - description: "DCACHE clock enable\r Set and reset by software" - bit_offset: 30 - bit_size: 1 - - name: SRAM1EN - description: "SRAM1 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: GPDMA1EN + description: "GPDMA1 clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPDMA2EN + description: "GPDMA2 clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: FLITFEN + description: "Flash interface clock enable\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: "CRC clock enable\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: CORDICEN + description: "CORDIC clock enable\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: FMACEN + description: "FMAC clock enable\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: RAMCFGEN + description: "RAMCFG clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: ETHEN + description: "ETH clock enable\r Set and reset by software" + bit_offset: 19 + bit_size: 1 + - name: ETHTXEN + description: "ETHTX clock enable\r Set and reset by software" + bit_offset: 20 + bit_size: 1 + - name: ETHRXEN + description: "ETHRX clock enable\r Set and reset by software" + bit_offset: 21 + bit_size: 1 + - name: TZSC1EN + description: "TZSC1 clock enable\r Set and reset by software" + bit_offset: 24 + bit_size: 1 + - name: BKPRAMEN + description: "BKPRAM clock enable\r Set and reset by software" + bit_offset: 28 + bit_size: 1 + - name: DCACHEEN + description: "DCACHE clock enable\r Set and reset by software" + bit_offset: 30 + bit_size: 1 + - name: SRAM1EN + description: "SRAM1 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB1LPENR: description: RCC AHB1 sleep clock register fields: - - name: GPDMA1LPEN - description: "GPDMA1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPDMA2LPEN - description: "GPDMA2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: FLITFLPEN - description: "Flash interface (FLITF) clock enable during sleep mode\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: CRCLPEN - description: "CRC clock enable during sleep mode\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: CORDICLPEN - description: "CORDIC clock enable during sleep mode\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: FMACLPEN - description: "FMAC clock enable during sleep mode\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: RAMCFGLPEN - description: "RAMCFG clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: ETHLPEN - description: "ETH clock enable during Sleep mode\r Set and reset by software" - bit_offset: 19 - bit_size: 1 - - name: ETHTXLPEN - description: "ETHTX clock enable during sleep mode\r Set and reset by software" - bit_offset: 20 - bit_size: 1 - - name: ETHRXLPEN - description: "ETHRX clock enable during sleep mode\r Set and reset by software" - bit_offset: 21 - bit_size: 1 - - name: TZSC1LPEN - description: "TZSC1 clock enable during sleep mode\r Set and reset by software" - bit_offset: 24 - bit_size: 1 - - name: BKPRAMLPEN - description: "BKPRAM clock enable during sleep mode\r Set and reset by software" - bit_offset: 28 - bit_size: 1 - - name: ICACHELPEN - description: "ICACHE clock enable during sleep mode\r Set and reset by software" - bit_offset: 29 - bit_size: 1 - - name: DCACHELPEN - description: "DCACHE clock enable during sleep mode\r Set and reset by software" - bit_offset: 30 - bit_size: 1 - - name: SRAM1LPEN - description: "SRAM1 clock enable during sleep mode\r Set and reset by software" - bit_offset: 31 - bit_size: 1 + - name: GPDMA1LPEN + description: "GPDMA1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPDMA2LPEN + description: "GPDMA2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: FLITFLPEN + description: "Flash interface (FLITF) clock enable during sleep mode\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: CRCLPEN + description: "CRC clock enable during sleep mode\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: CORDICLPEN + description: "CORDIC clock enable during sleep mode\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: FMACLPEN + description: "FMAC clock enable during sleep mode\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: RAMCFGLPEN + description: "RAMCFG clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: ETHLPEN + description: "ETH clock enable during Sleep mode\r Set and reset by software" + bit_offset: 19 + bit_size: 1 + - name: ETHTXLPEN + description: "ETHTX clock enable during sleep mode\r Set and reset by software" + bit_offset: 20 + bit_size: 1 + - name: ETHRXLPEN + description: "ETHRX clock enable during sleep mode\r Set and reset by software" + bit_offset: 21 + bit_size: 1 + - name: TZSC1LPEN + description: "TZSC1 clock enable during sleep mode\r Set and reset by software" + bit_offset: 24 + bit_size: 1 + - name: BKPRAMLPEN + description: "BKPRAM clock enable during sleep mode\r Set and reset by software" + bit_offset: 28 + bit_size: 1 + - name: ICACHELPEN + description: "ICACHE clock enable during sleep mode\r Set and reset by software" + bit_offset: 29 + bit_size: 1 + - name: DCACHELPEN + description: "DCACHE clock enable during sleep mode\r Set and reset by software" + bit_offset: 30 + bit_size: 1 + - name: SRAM1LPEN + description: "SRAM1 clock enable during sleep mode\r Set and reset by software" + bit_offset: 31 + bit_size: 1 fieldset/AHB1RSTR: description: RCC AHB1 reset register fields: - - name: GPDMA1RST - description: "GPDMA1 block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPDMA2RST - description: "GPDMA2 block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: CRCRST - description: CRC block reset Set and reset by software. - bit_offset: 12 - bit_size: 1 - - name: CORDICRST - description: "CORDIC block reset\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: FMACRST - description: "FMAC block reset\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: RAMCFGRST - description: "RAMCFG block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: ETHRST - description: "ETHRST block reset\r Set and reset by software" - bit_offset: 19 - bit_size: 1 - - name: TZSC1RST - description: "TZSC1 reset\r Set and reset by software" - bit_offset: 24 - bit_size: 1 + - name: GPDMA1RST + description: "GPDMA1 block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPDMA2RST + description: "GPDMA2 block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: CRCRST + description: CRC block reset Set and reset by software. + bit_offset: 12 + bit_size: 1 + - name: CORDICRST + description: "CORDIC block reset\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: FMACRST + description: "FMAC block reset\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: RAMCFGRST + description: "RAMCFG block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: ETHRST + description: "ETHRST block reset\r Set and reset by software" + bit_offset: 19 + bit_size: 1 + - name: TZSC1RST + description: "TZSC1 reset\r Set and reset by software" + bit_offset: 24 + bit_size: 1 fieldset/AHB2ENR: description: RCC AHB2 peripheral clock register fields: - - name: GPIOAEN - description: "GPIOA clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: "GPIOB clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: "GPIOC clock enable\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: "GPIOD clock enable\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: "GPIOE clock enable\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: "GPIOF clock enable\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: "GPIOG clock enable\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: "GPIOH clock enable\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: "GPIOI clock enable\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: ADC12EN - description: "ADC1 and 2 peripherals clock enabled\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - - name: DAC12EN - description: "DAC clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: DCMI_PSSIEN - description: "digital camera interface clock enable (DCMI or PSSI depending which interface is active)\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: AESEN - description: "AES clock enable\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: HASHEN - description: "HASH clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: "RNG clock enable\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: PKAEN - description: "PKA clock enable\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: SAESEN - description: "SAES clock enable\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: SRAM3EN - description: "SRAM3 clock enable\r Set and reset by software." - bit_offset: 30 - bit_size: 1 - - name: SRAM2EN - description: "SRAM2 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: GPIOAEN + description: "GPIOA clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: "GPIOB clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: "GPIOC clock enable\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: "GPIOD clock enable\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: "GPIOE clock enable\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: "GPIOF clock enable\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: "GPIOG clock enable\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: "GPIOH clock enable\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: "GPIOI clock enable\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: ADC12EN + description: "ADC1 and 2 peripherals clock enabled\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + - name: DAC12EN + description: "DAC clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: DCMI_PSSIEN + description: "digital camera interface clock enable (DCMI or PSSI depending which interface is active)\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: AESEN + description: "AES clock enable\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: HASHEN + description: "HASH clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: "RNG clock enable\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: PKAEN + description: "PKA clock enable\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: SAESEN + description: "SAES clock enable\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: SRAM3EN + description: "SRAM3 clock enable\r Set and reset by software." + bit_offset: 30 + bit_size: 1 + - name: SRAM2EN + description: "SRAM2 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB2LPENR: description: RCC AHB2 sleep clock register fields: - - name: GPIOALPEN - description: "GPIOA clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: "GPIOB clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: "GPIOC clock enable during sleep mode\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: "GPIOD clock enable during sleep mode\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: "GPIOE clock enable during sleep mode\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: "GPIOF clock enable during sleep mode\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: "GPIOG clock enable during sleep mode\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: "GPIOH clock enable during sleep mode\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: "GPIOI clock enable during sleep mode\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: ADC12LPEN - description: "ADC1 and 2 peripherals clock enable during sleep mode\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - - name: DAC12LPEN - description: "DAC clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: DCMI_PSSILPEN - description: "digital camera interface clock enable during sleep mode (DCMI or PSSI depending which interface is active)\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: AESLPEN - description: "AES clock enable during sleep mode\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: HASHLPEN - description: "HASH clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: RNGLPEN - description: "RNG clock enable during sleep mode\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: PKALPEN - description: "PKA clock enable during sleep mode\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: SAESLPEN - description: "SAES clock enable during sleep mode\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: SRAM2LPEN - description: "SRAM2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 30 - bit_size: 1 - - name: SRAM3LPEN - description: "SRAM3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: GPIOALPEN + description: "GPIOA clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: "GPIOB clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: "GPIOC clock enable during sleep mode\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: "GPIOD clock enable during sleep mode\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: "GPIOE clock enable during sleep mode\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: "GPIOF clock enable during sleep mode\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: "GPIOG clock enable during sleep mode\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: "GPIOH clock enable during sleep mode\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: "GPIOI clock enable during sleep mode\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: ADC12LPEN + description: "ADC1 and 2 peripherals clock enable during sleep mode\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + - name: DAC12LPEN + description: "DAC clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: DCMI_PSSILPEN + description: "digital camera interface clock enable during sleep mode (DCMI or PSSI depending which interface is active)\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: AESLPEN + description: "AES clock enable during sleep mode\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: HASHLPEN + description: "HASH clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: RNGLPEN + description: "RNG clock enable during sleep mode\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: PKALPEN + description: "PKA clock enable during sleep mode\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: SAESLPEN + description: "SAES clock enable during sleep mode\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: SRAM2LPEN + description: "SRAM2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 30 + bit_size: 1 + - name: SRAM3LPEN + description: "SRAM3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB2RSTR: description: RCC AHB2 peripheral reset register fields: - - name: GPIOARST - description: "GPIOA block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: "GPIOB block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: "GPIOC block reset\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: "GPIOD block reset\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: "GPIOE block reset\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: "GPIOF block reset\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: "GPIOG block reset\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: "GPIOH block reset\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: "GPIOI block reset\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: ADC12RST - description: "ADC1 and 2 blocks reset\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - - name: DAC12RST - description: "DAC block reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: DCMI_PSSIRST - description: "digital camera interface block reset (DCMI or PSSI depending which interface is active)\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: AESRST - description: "AES block reset\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: HASHRST - description: "HASH block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: "RNG block reset\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: PKARST - description: "PKA block reset\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: SAESRST - description: "SAES block reset\r Set and reset by software." - bit_offset: 20 - bit_size: 1 + - name: GPIOARST + description: "GPIOA block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: "GPIOB block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: "GPIOC block reset\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: "GPIOD block reset\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: "GPIOE block reset\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: "GPIOF block reset\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: "GPIOG block reset\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: "GPIOH block reset\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: "GPIOI block reset\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: ADC12RST + description: "ADC1 and 2 blocks reset\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + - name: DAC12RST + description: "DAC block reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: DCMI_PSSIRST + description: "digital camera interface block reset (DCMI or PSSI depending which interface is active)\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: AESRST + description: "AES block reset\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: HASHRST + description: "HASH block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: "RNG block reset\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: PKARST + description: "PKA block reset\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: SAESRST + description: "SAES block reset\r Set and reset by software." + bit_offset: 20 + bit_size: 1 fieldset/AHB4ENR: description: RCC AHB4 peripheral clock register fields: - - name: OTFDEC1EN - description: "OTFDEC1 clock enable\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 and SDMMC1 delay peripheral clock enable reset - bit_offset: 11 - bit_size: 1 - - name: SDMMC2EN - description: "SDMMC2 and SDMMC2 delay peripheral clock enabled\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: FMCEN - description: "FMC clock enable\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI1EN - description: "OCTOSPI1 clock enable\r Set and reset by software." - bit_offset: 20 - bit_size: 1 + - name: OTFDEC1EN + description: "OTFDEC1 clock enable\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 and SDMMC1 delay peripheral clock enable reset + bit_offset: 11 + bit_size: 1 + - name: SDMMC2EN + description: "SDMMC2 and SDMMC2 delay peripheral clock enabled\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: FMCEN + description: "FMC clock enable\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI1EN + description: "OCTOSPI1 clock enable\r Set and reset by software." + bit_offset: 20 + bit_size: 1 fieldset/AHB4LPENR: description: RCC AHB4 sleep clock register fields: - - name: OTFDEC1LPEN - description: "OTFDEC1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: SDMMC1LPEN - description: "SDMMC1 and SDMMC1 delay peripheral clock enable during sleep mode\r Set and reset by software" - bit_offset: 11 - bit_size: 1 - - name: SDMMC2LPEN - description: "SDMMC2 and SDMMC2 delay peripheral clock enable during sleep mode\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: FMCLPEN - description: "FMC clock enable during sleep mode\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI1LPEN - description: "OCTOSPI1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 20 - bit_size: 1 + - name: OTFDEC1LPEN + description: "OTFDEC1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: SDMMC1LPEN + description: "SDMMC1 and SDMMC1 delay peripheral clock enable during sleep mode\r Set and reset by software" + bit_offset: 11 + bit_size: 1 + - name: SDMMC2LPEN + description: "SDMMC2 and SDMMC2 delay peripheral clock enable during sleep mode\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: FMCLPEN + description: "FMC clock enable during sleep mode\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI1LPEN + description: "OCTOSPI1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 20 + bit_size: 1 fieldset/AHB4RSTR: description: RCC AHB4 peripheral reset register fields: - - name: OTFDEC1RST - description: "OTFDEC1 block reset\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: SDMMC1RST - description: "SDMMC1 and SDMMC1 delay blocks reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SDMMC2RST - description: "SDMMC2 and SDMMC2 delay blocks reset\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: FMCRST - description: "FMC block reset\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI1RST - description: "OCTOSPI1 block reset\r Set and reset by software." - bit_offset: 20 - bit_size: 1 + - name: OTFDEC1RST + description: "OTFDEC1 block reset\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: SDMMC1RST + description: "SDMMC1 and SDMMC1 delay blocks reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SDMMC2RST + description: "SDMMC2 and SDMMC2 delay blocks reset\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: FMCRST + description: "FMC block reset\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI1RST + description: "OCTOSPI1 block reset\r Set and reset by software." + bit_offset: 20 + bit_size: 1 fieldset/APB1HENR: description: RCC APB1 peripheral clock register fields: - - name: UART9EN - description: "UART9 clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: UART12EN - description: "UART12 clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: DTSEN - description: "DTS clock enable\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: LPTIM2EN - description: "LPTIM2 clock enable\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: FDCAN12EN - description: "FDCAN1 and FDCAN2 peripheral clock enable\r Set and reset by software." - bit_offset: 9 - bit_size: 1 - - name: UCPDEN - description: "UCPD clock enable\r Set and reset by software." - bit_offset: 23 - bit_size: 1 + - name: UART9EN + description: "UART9 clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: UART12EN + description: "UART12 clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: DTSEN + description: "DTS clock enable\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LPTIM2EN + description: "LPTIM2 clock enable\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: FDCAN12EN + description: "FDCAN1 and FDCAN2 peripheral clock enable\r Set and reset by software." + bit_offset: 9 + bit_size: 1 + - name: UCPDEN + description: "UCPD clock enable\r Set and reset by software." + bit_offset: 23 + bit_size: 1 fieldset/APB1HLPENR: description: RCC APB1 sleep clock register fields: - - name: UART9LPEN - description: "UART9 clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: UART12LPEN - description: "UART12 clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: DTSLPEN - description: "DTS clock enable during sleep mode\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: LPTIM2LPEN - description: "LPTIM2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: FDCAN12LPEN - description: "FDCAN1 and FDCAN2 peripheral clock enable during sleep mode\r Set and reset by software." - bit_offset: 9 - bit_size: 1 - - name: UCPDLPEN - description: "UCPD clock enable during sleep mode\r Set and reset by software." - bit_offset: 23 - bit_size: 1 + - name: UART9LPEN + description: "UART9 clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: UART12LPEN + description: "UART12 clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: DTSLPEN + description: "DTS clock enable during sleep mode\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LPTIM2LPEN + description: "LPTIM2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: FDCAN12LPEN + description: "FDCAN1 and FDCAN2 peripheral clock enable during sleep mode\r Set and reset by software." + bit_offset: 9 + bit_size: 1 + - name: UCPDLPEN + description: "UCPD clock enable during sleep mode\r Set and reset by software." + bit_offset: 23 + bit_size: 1 fieldset/APB1HRSTR: description: RCC APB1 peripheral high reset register fields: - - name: UART9RST - description: "UART9 block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: UART12RST - description: "UART12 block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: DTSRST - description: "DTS block reset\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: LPTIM2RST - description: "LPTIM2 block reset\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: FDCAN12RST - description: "FDCAN1 and FDCAN2 blocks reset\r Set and reset by software." - bit_offset: 9 - bit_size: 1 - - name: UCPDRST - description: "UCPD block reset\r Set and reset by software." - bit_offset: 23 - bit_size: 1 + - name: UART9RST + description: "UART9 block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: UART12RST + description: "UART12 block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: DTSRST + description: "DTS block reset\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LPTIM2RST + description: "LPTIM2 block reset\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: FDCAN12RST + description: "FDCAN1 and FDCAN2 blocks reset\r Set and reset by software." + bit_offset: 9 + bit_size: 1 + - name: UCPDRST + description: "UCPD block reset\r Set and reset by software." + bit_offset: 23 + bit_size: 1 fieldset/APB1LENR: description: RCC APB1 peripheral clock register fields: - - name: TIM2EN - description: "TIM2 clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: "TIM3 clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: "TIM4 clock enable\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: "TIM5 clock enable\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: "TIM6 clock enable\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: "TIM7 clock enable\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: "TIM12 clock enable\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: "TIM13 clock enable\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: "TIM14 clock enable\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: WWDGEN - description: "WWDG clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: "SPI2 clock enable\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: "SPI3 clock enable\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: "USART2 clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: "USART3 clock enable\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: "UART4 clock enable\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: "UART5 clock enable\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: "I2C1 clock enable\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: "I2C2 clock enable\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: I3C1EN - description: "I3C1 clock enable\r Set and reset by software." - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: "CRS clock enable\r Set and reset by software." - bit_offset: 24 - bit_size: 1 - - name: USART6EN - description: "USART6 clock enable\r Set and reset by software." - bit_offset: 25 - bit_size: 1 - - name: USART10EN - description: "USART10 clock enable\r Set and reset by software." - bit_offset: 26 - bit_size: 1 - - name: USART11EN - description: USART11 clock enable - bit_offset: 27 - bit_size: 1 - - name: CECEN - description: "HDMI-CEC clock enable\r Set and reset by software." - bit_offset: 28 - bit_size: 1 - - name: UART7EN - description: "UART7 clock enable\r Set and reset by software." - bit_offset: 30 - bit_size: 1 - - name: UART8EN - description: "UART8 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: "TIM2 clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: "TIM3 clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: "TIM4 clock enable\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: "TIM5 clock enable\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: "TIM6 clock enable\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: "TIM7 clock enable\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: "TIM12 clock enable\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: "TIM13 clock enable\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: "TIM14 clock enable\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: WWDGEN + description: "WWDG clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: "SPI2 clock enable\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: "SPI3 clock enable\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: "USART2 clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: "USART3 clock enable\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: "UART4 clock enable\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: "UART5 clock enable\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: "I2C1 clock enable\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: "I2C2 clock enable\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: I3C1EN + description: "I3C1 clock enable\r Set and reset by software." + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: "CRS clock enable\r Set and reset by software." + bit_offset: 24 + bit_size: 1 + - name: USART6EN + description: "USART6 clock enable\r Set and reset by software." + bit_offset: 25 + bit_size: 1 + - name: USART10EN + description: "USART10 clock enable\r Set and reset by software." + bit_offset: 26 + bit_size: 1 + - name: USART11EN + description: USART11 clock enable + bit_offset: 27 + bit_size: 1 + - name: CECEN + description: "HDMI-CEC clock enable\r Set and reset by software." + bit_offset: 28 + bit_size: 1 + - name: UART7EN + description: "UART7 clock enable\r Set and reset by software." + bit_offset: 30 + bit_size: 1 + - name: UART8EN + description: "UART8 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/APB1LLPENR: description: RCC APB1 sleep clock register fields: - - name: TIM2LPEN - description: "TIM2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: "TIM3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: "TIM4 clock enable during sleep mode\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: "TIM5 clock enable during sleep mode\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: "TIM6 clock enable during sleep mode\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: "TIM7 clock enable during sleep mode\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: "TIM12 clock enable during sleep mode\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: "TIM13 clock enable during sleep mode\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: "TIM14 clock enable during sleep mode\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: WWDGLPEN - description: "WWDG clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: "SPI2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: "SPI3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: USART2LPEN - description: "USART2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: "USART3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: "UART4 clock enable during sleep mode\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: "UART5 clock enable during sleep mode\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: "I2C1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: "I2C2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: I3C1LPEN - description: "I3C1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 23 - bit_size: 1 - - name: CRSLPEN - description: "CRS clock enable during sleep mode\r Set and reset by software." - bit_offset: 24 - bit_size: 1 - - name: USART6LPEN - description: "USART6 clock enable during sleep mode\r Set and reset by software." - bit_offset: 25 - bit_size: 1 - - name: USART10LPEN - description: "USART10 clock enable during sleep mode\r Set and reset by software." - bit_offset: 26 - bit_size: 1 - - name: USART11LPEN - description: "USART11 clock enable during sleep mode\r Set and reset by software." - bit_offset: 27 - bit_size: 1 - - name: CECLPEN - description: "HDMI-CEC clock enable during sleep mode\r Set and reset by software." - bit_offset: 28 - bit_size: 1 - - name: UART7LPEN - description: "UART7 clock enable during sleep mode\r Set and reset by software." - bit_offset: 30 - bit_size: 1 - - name: UART8LPEN - description: "UART8 clock enable during sleep mode\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: "TIM2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: "TIM3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: "TIM4 clock enable during sleep mode\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: "TIM5 clock enable during sleep mode\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: "TIM6 clock enable during sleep mode\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: "TIM7 clock enable during sleep mode\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: "TIM12 clock enable during sleep mode\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: "TIM13 clock enable during sleep mode\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: "TIM14 clock enable during sleep mode\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: WWDGLPEN + description: "WWDG clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: "SPI2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: "SPI3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: USART2LPEN + description: "USART2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: "USART3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: "UART4 clock enable during sleep mode\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: "UART5 clock enable during sleep mode\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: "I2C1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: "I2C2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: I3C1LPEN + description: "I3C1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 23 + bit_size: 1 + - name: CRSLPEN + description: "CRS clock enable during sleep mode\r Set and reset by software." + bit_offset: 24 + bit_size: 1 + - name: USART6LPEN + description: "USART6 clock enable during sleep mode\r Set and reset by software." + bit_offset: 25 + bit_size: 1 + - name: USART10LPEN + description: "USART10 clock enable during sleep mode\r Set and reset by software." + bit_offset: 26 + bit_size: 1 + - name: USART11LPEN + description: "USART11 clock enable during sleep mode\r Set and reset by software." + bit_offset: 27 + bit_size: 1 + - name: CECLPEN + description: "HDMI-CEC clock enable during sleep mode\r Set and reset by software." + bit_offset: 28 + bit_size: 1 + - name: UART7LPEN + description: "UART7 clock enable during sleep mode\r Set and reset by software." + bit_offset: 30 + bit_size: 1 + - name: UART8LPEN + description: "UART8 clock enable during sleep mode\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/APB1LRSTR: description: RCC APB1 peripheral low reset register fields: - - name: TIM2RST - description: "TIM2 block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: "TIM3 block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: "TIM4 block reset\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: "TIM5 block reset\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: "TIM6 block reset\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: "TIM7 block reset\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: "TIM12 block reset\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: "TIM13 block reset t\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: "TIM14 block reset\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: SPI2RST - description: "SPI2 block reset\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: "SPI3 block reset\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: "USART2 block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: "USART3 block reset\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: "UART4 block reset\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: "UART5 block reset\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: "I2C1 block reset\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: "I2C2 block reset\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: I3C1RST - description: "I3C1 block reset\r Set and reset by software." - bit_offset: 23 - bit_size: 1 - - name: CRSRST - description: "CRS block reset\r Set and reset by software." - bit_offset: 24 - bit_size: 1 - - name: USART6RST - description: "USART6 block reset\r Set and reset by software." - bit_offset: 25 - bit_size: 1 - - name: USART10RST - description: "USART10 block reset\r Set and reset by software." - bit_offset: 26 - bit_size: 1 - - name: USART11RST - description: "USART11 block reset\r Set and reset by software." - bit_offset: 27 - bit_size: 1 - - name: CECRST - description: "HDMI-CEC block reset\r Set and reset by software." - bit_offset: 28 - bit_size: 1 - - name: UART7RST - description: "UART7 block reset\r Set and reset by software." - bit_offset: 30 - bit_size: 1 - - name: UART8RST - description: "UART8 block reset\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: "TIM2 block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: "TIM3 block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: "TIM4 block reset\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: "TIM5 block reset\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: "TIM6 block reset\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: "TIM7 block reset\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: "TIM12 block reset\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: "TIM13 block reset t\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: "TIM14 block reset\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: SPI2RST + description: "SPI2 block reset\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: "SPI3 block reset\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: "USART2 block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: "USART3 block reset\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: "UART4 block reset\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: "UART5 block reset\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: "I2C1 block reset\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: "I2C2 block reset\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: I3C1RST + description: "I3C1 block reset\r Set and reset by software." + bit_offset: 23 + bit_size: 1 + - name: CRSRST + description: "CRS block reset\r Set and reset by software." + bit_offset: 24 + bit_size: 1 + - name: USART6RST + description: "USART6 block reset\r Set and reset by software." + bit_offset: 25 + bit_size: 1 + - name: USART10RST + description: "USART10 block reset\r Set and reset by software." + bit_offset: 26 + bit_size: 1 + - name: USART11RST + description: "USART11 block reset\r Set and reset by software." + bit_offset: 27 + bit_size: 1 + - name: CECRST + description: "HDMI-CEC block reset\r Set and reset by software." + bit_offset: 28 + bit_size: 1 + - name: UART7RST + description: "UART7 block reset\r Set and reset by software." + bit_offset: 30 + bit_size: 1 + - name: UART8RST + description: "UART8 block reset\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: RCC APB2 peripheral clock register fields: - - name: TIM1EN - description: "TIM1 clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: "SPI1 clock enable\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: "TIM8 clock enable\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: "USART1 clock enable\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: "TIM15 clock enable\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: "TIM16 clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: "TIM17 clock enable\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: SPI4EN - description: "SPI4 clock enable\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: SPI6EN - description: "SPI6 clock enable\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: SAI1EN - description: "SAI1 clock enable\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: SAI2EN - description: "SAI2 clock enable\r Set and cleared by software." - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: "USB clock enable\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM1EN + description: "TIM1 clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: "SPI1 clock enable\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: "TIM8 clock enable\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: "USART1 clock enable\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: "TIM15 clock enable\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: "TIM16 clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: "TIM17 clock enable\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: SPI4EN + description: "SPI4 clock enable\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: SPI6EN + description: "SPI6 clock enable\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: SAI1EN + description: "SAI1 clock enable\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: SAI2EN + description: "SAI2 clock enable\r Set and cleared by software." + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: "USB clock enable\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB2LPENR: description: RCC APB2 sleep clock register fields: - - name: TIM1LPEN - description: "TIM1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: "SPI1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: TIM8LPEN - description: "TIM8 clock enable during sleep mode\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: USART1LPEN - description: "USART1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: TIM15LPEN - description: "TIM15 clock enable during sleep mode\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: TIM16LPEN - description: "TIM16 clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17LPEN - description: "TIM17 clock enable during sleep mode\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: SPI4LPEN - description: "SPI4 clock enable during sleep mode\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: SPI6LPEN - description: "SPI6 clock enable during sleep mode\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: SAI1LPEN - description: "SAI1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: SAI2LPEN - description: "SAI2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: USBLPEN - description: "USB clock enable during sleep mode\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM1LPEN + description: "TIM1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: "SPI1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: TIM8LPEN + description: "TIM8 clock enable during sleep mode\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: USART1LPEN + description: "USART1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: TIM15LPEN + description: "TIM15 clock enable during sleep mode\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: TIM16LPEN + description: "TIM16 clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17LPEN + description: "TIM17 clock enable during sleep mode\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: SPI4LPEN + description: "SPI4 clock enable during sleep mode\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: SPI6LPEN + description: "SPI6 clock enable during sleep mode\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: SAI1LPEN + description: "SAI1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: SAI2LPEN + description: "SAI2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: USBLPEN + description: "USB clock enable during sleep mode\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB2RSTR: description: RCC APB2 peripheral reset register fields: - - name: TIM1RST - description: "TIM1 block reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: "SPI1 block reset\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: "TIM8 block reset\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: "USART1 block reset\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: "TIM15 block reset\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: "TIM16 block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: "TIM17 block reset\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: SPI4RST - description: "SPI4 block reset\r Set and reset by software." - bit_offset: 19 - bit_size: 1 - - name: SPI6RST - description: "SPI6 block reset\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: SAI1RST - description: "SAI1 block reset\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: SAI2RST - description: "SAI2 block reset\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: "USB block reset\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM1RST + description: "TIM1 block reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: "SPI1 block reset\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: "TIM8 block reset\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: "USART1 block reset\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: "TIM15 block reset\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: "TIM16 block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: "TIM17 block reset\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: SPI4RST + description: "SPI4 block reset\r Set and reset by software." + bit_offset: 19 + bit_size: 1 + - name: SPI6RST + description: "SPI6 block reset\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: SAI1RST + description: "SAI1 block reset\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: SAI2RST + description: "SAI2 block reset\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: "USB block reset\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB3ENR: description: RCC APB3 peripheral clock register fields: - - name: SBSEN - description: "SBS clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: SPI5EN - description: "SPI5 clock enable\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: LPUART1EN - description: "LPUART1 clock enable\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: I2C3EN - description: "I2C3 clock enable\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: I2C4EN - description: "I2C4 clock enable\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: LPTIM1EN - description: "LPTIM1 clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3EN - description: "LPTIM3 clock enable\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4EN - description: "LPTIM4 clock enable\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: LPTIM5EN - description: "LPTIM5 clock enable\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: LPTIM6EN - description: "LPTIM6 clock enable\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: VREFEN - description: "VREF clock enable\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBEN - description: "RTC APB interface clock enable\r Set and reset by software." - bit_offset: 21 - bit_size: 1 + - name: SBSEN + description: "SBS clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: SPI5EN + description: "SPI5 clock enable\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: LPUART1EN + description: "LPUART1 clock enable\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: I2C3EN + description: "I2C3 clock enable\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: I2C4EN + description: "I2C4 clock enable\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: LPTIM1EN + description: "LPTIM1 clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3EN + description: "LPTIM3 clock enable\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4EN + description: "LPTIM4 clock enable\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: LPTIM5EN + description: "LPTIM5 clock enable\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: LPTIM6EN + description: "LPTIM6 clock enable\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: VREFEN + description: "VREF clock enable\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBEN + description: "RTC APB interface clock enable\r Set and reset by software." + bit_offset: 21 + bit_size: 1 fieldset/APB3LPENR: description: RCC APB3 sleep clock register fields: - - name: SBSLPEN - description: "SBS clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: SPI5LPEN - description: "SPI5 clock enable during Slsleepeep mode\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: LPUART1LPEN - description: "LPUART1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: I2C3LPEN - description: "I2C3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: I2C4LPEN - description: "I2C4 clock enable during sleep mode\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: LPTIM1LPEN - description: "LPTIM1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3LPEN - description: "LPTIM3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4LPEN - description: "LPTIM4 clock enable during sleep mode\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: LPTIM5LPEN - description: "LPTIM5 clock enable during sleep mode\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: LPTIM6LPEN - description: "LPTIM6 clock enable during sleep mode\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: VREFLPEN - description: "VREF clock enable during sleep mode\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBLPEN - description: "RTC APB interface clock enable during sleep mode\r Set and reset by software." - bit_offset: 21 - bit_size: 1 + - name: SBSLPEN + description: "SBS clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: SPI5LPEN + description: "SPI5 clock enable during Slsleepeep mode\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: LPUART1LPEN + description: "LPUART1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: I2C3LPEN + description: "I2C3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: I2C4LPEN + description: "I2C4 clock enable during sleep mode\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: LPTIM1LPEN + description: "LPTIM1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3LPEN + description: "LPTIM3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4LPEN + description: "LPTIM4 clock enable during sleep mode\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: LPTIM5LPEN + description: "LPTIM5 clock enable during sleep mode\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: LPTIM6LPEN + description: "LPTIM6 clock enable during sleep mode\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: VREFLPEN + description: "VREF clock enable during sleep mode\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBLPEN + description: "RTC APB interface clock enable during sleep mode\r Set and reset by software." + bit_offset: 21 + bit_size: 1 fieldset/APB3RSTR: description: RCC APB3 peripheral reset register fields: - - name: SBSRST - description: "SBS block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: SPI5RST - description: "SPI5 block reset\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: LPUART1RST - description: "LPUART1 block reset\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: I2C3RST - description: "I2C3 block reset\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: I2C4RST - description: "I2C4 block reset\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: LPTIM1RST - description: "LPTIM1 block reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3RST - description: "LPTIM3 block reset\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4RST - description: "LPTIM4 block reset\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: LPTIM5RST - description: "LPTIM5 block reset\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: LPTIM6RST - description: "LPTIM6 block reset\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: VREFRST - description: "VREF block reset\r Set and reset by software." - bit_offset: 20 - bit_size: 1 + - name: SBSRST + description: "SBS block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: SPI5RST + description: "SPI5 block reset\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: LPUART1RST + description: "LPUART1 block reset\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: I2C3RST + description: "I2C3 block reset\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: I2C4RST + description: "I2C4 block reset\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: LPTIM1RST + description: "LPTIM1 block reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3RST + description: "LPTIM3 block reset\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4RST + description: "LPTIM4 block reset\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: LPTIM5RST + description: "LPTIM5 block reset\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: LPTIM6RST + description: "LPTIM6 block reset\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: VREFRST + description: "VREF block reset\r Set and reset by software." + bit_offset: 20 + bit_size: 1 fieldset/BDCR: description: RCC Backup domain control register fields: - - name: LSEON - description: "LSE oscillator enabled\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: "LSE oscillator ready\r Set and reset by hardware to indicate when the LSE is stable.\r This bit needs 6 cycles of lse_ck clock to fall down after LSEON has been set to 0." - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: "LSE oscillator bypass\r Set and reset by software to bypass oscillator in debug mode. This bit must not be written when the LSE is enabled (by LSEON) or ready (LSERDY = 1)" - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: "LSE oscillator driving capability\r Set by software to select the driving capability of the LSE oscillator.\r These bit can be written only if LSE oscillator is disabled (LSEON = 0 and LSERDY = 0)." - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: "LSE clock security system enable\r Set by software to enable the clock security system on 32 kHz oscillator.\r LSECSSON must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware) and after RTCSEL is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD = 1). In that case the software must disable LSECSSON." - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: "LSE clock security system failure detection\r Set by hardware to indicate when a failure has been detected by the clock security system on the external 32 kHz oscillator." - bit_offset: 6 - bit_size: 1 - - name: LSEEXT - description: "low-speed external clock type in bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the LSEON bit, to be used by the device.\r The LSEEXT bit can be written only if the LSE oscillator is disabled." - bit_offset: 7 - bit_size: 1 - enum: LSEEXT - - name: RTCSEL - description: "RTC clock source selection\r Set by software to select the clock source for the RTC.\r These bits can be written only one time (except in case of failure detection on LSE).\r These bits must be written before LSECSSON is enabled.\r The VSWRST bit can be used to reset them, then it can be written one time again.\r If HSE is selected as RTC clock, this clock is lost when the system is in Stop mode or in case of a pin reset (NRST)." - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: "RTC clock enable\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: VSWRST - description: "VSwitch domain software reset\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: "Low-speed clock output selection\r Set and cleared by software." - bit_offset: 25 - bit_size: 1 - enum: LSCOSEL - - name: LSION - description: "LSI oscillator enable\r Set and cleared by software." - bit_offset: 26 - bit_size: 1 - - name: LSIRDY - description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is stable.\r After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles.\r This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0." - bit_offset: 27 - bit_size: 1 + - name: LSEON + description: "LSE oscillator enabled\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: "LSE oscillator ready\r Set and reset by hardware to indicate when the LSE is stable.\r This bit needs 6 cycles of lse_ck clock to fall down after LSEON has been set to 0." + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: "LSE oscillator bypass\r Set and reset by software to bypass oscillator in debug mode. This bit must not be written when the LSE is enabled (by LSEON) or ready (LSERDY = 1)" + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: "LSE oscillator driving capability\r Set by software to select the driving capability of the LSE oscillator.\r These bit can be written only if LSE oscillator is disabled (LSEON = 0 and LSERDY = 0)." + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: "LSE clock security system enable\r Set by software to enable the clock security system on 32 kHz oscillator.\r LSECSSON must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware) and after RTCSEL is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD = 1). In that case the software must disable LSECSSON." + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: "LSE clock security system failure detection\r Set by hardware to indicate when a failure has been detected by the clock security system on the external 32 kHz oscillator." + bit_offset: 6 + bit_size: 1 + - name: LSEEXT + description: "low-speed external clock type in bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the LSEON bit, to be used by the device.\r The LSEEXT bit can be written only if the LSE oscillator is disabled." + bit_offset: 7 + bit_size: 1 + enum: LSEEXT + - name: RTCSEL + description: "RTC clock source selection\r Set by software to select the clock source for the RTC.\r These bits can be written only one time (except in case of failure detection on LSE).\r These bits must be written before LSECSSON is enabled.\r The VSWRST bit can be used to reset them, then it can be written one time again.\r If HSE is selected as RTC clock, this clock is lost when the system is in Stop mode or in case of a pin reset (NRST)." + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: "RTC clock enable\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: VSWRST + description: "VSwitch domain software reset\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: "Low-speed clock output selection\r Set and cleared by software." + bit_offset: 25 + bit_size: 1 + enum: LSCOSEL + - name: LSION + description: "LSI oscillator enable\r Set and cleared by software." + bit_offset: 26 + bit_size: 1 + - name: LSIRDY + description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is stable.\r After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles.\r This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0." + bit_offset: 27 + bit_size: 1 fieldset/CCIPR1: description: RCC kernel clock configuration register fields: - - name: USART1SEL - description: "USART1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: USARTSEL - - name: USART2SEL - description: "USART2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 3 - bit_size: 3 - enum: USARTSEL - - name: USART3SEL - description: "USART3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 6 - bit_size: 3 - enum: USARTSEL - - name: UART4SEL - description: "UART4 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 9 - bit_size: 3 - enum: UARTSEL - - name: UART5SEL - description: "UART5 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 12 - bit_size: 3 - enum: UARTSEL - - name: USART6SEL - description: "USART6 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 15 - bit_size: 3 - enum: USARTSEL - - name: UART7SEL - description: "UART7 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 18 - bit_size: 3 - enum: UARTSEL - - name: UART8SEL - description: "UART8 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 21 - bit_size: 3 - enum: UARTSEL - - name: UART9SEL - description: "UART9 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 24 - bit_size: 3 - enum: UARTSEL - - name: USART10SEL - description: "USART10 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 27 - bit_size: 3 - enum: USARTSEL - - name: TIMICSEL - description: "TIM12, TIM15 and LPTIM2 input capture source selection\r Set and reset by software." - bit_offset: 31 - bit_size: 1 - enum: TIMICSEL + - name: USART1SEL + description: "USART1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: USARTSEL + - name: USART2SEL + description: "USART2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 3 + bit_size: 3 + enum: USARTSEL + - name: USART3SEL + description: "USART3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 6 + bit_size: 3 + enum: USARTSEL + - name: UART4SEL + description: "UART4 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 9 + bit_size: 3 + enum: UARTSEL + - name: UART5SEL + description: "UART5 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 12 + bit_size: 3 + enum: UARTSEL + - name: USART6SEL + description: "USART6 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 15 + bit_size: 3 + enum: USARTSEL + - name: UART7SEL + description: "UART7 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 18 + bit_size: 3 + enum: UARTSEL + - name: UART8SEL + description: "UART8 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 21 + bit_size: 3 + enum: UARTSEL + - name: UART9SEL + description: "UART9 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 24 + bit_size: 3 + enum: UARTSEL + - name: USART10SEL + description: "USART10 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 27 + bit_size: 3 + enum: USARTSEL + - name: TIMICSEL + description: "TIM12, TIM15 and LPTIM2 input capture source selection\r Set and reset by software." + bit_offset: 31 + bit_size: 1 + enum: TIMICSEL fieldset/CCIPR2: description: RCC kernel clock configuration register fields: - - name: USART11SEL - description: "USART11 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: USARTSEL - - name: USART12SEL - description: "USART12 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 4 - bit_size: 3 - enum: USARTSEL - - name: LPTIM1SEL - description: "LPTIM1 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 8 - bit_size: 3 - enum: LPTIMSEL - - name: LPTIM2SEL - description: "LPTIM2 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 12 - bit_size: 3 - enum: LPTIMSEL - - name: LPTIM3SEL - description: "LPTIM3 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 16 - bit_size: 3 - enum: LPTIMSEL - - name: LPTIM4SEL - description: "LPTIM4 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 20 - bit_size: 3 - enum: LPTIMSEL - - name: LPTIM5SEL - description: "LPTIM5 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 24 - bit_size: 3 - enum: LPTIMSEL - - name: LPTIM6SEL - description: "LPTIM6 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 28 - bit_size: 3 - enum: LPTIMSEL + - name: USART11SEL + description: "USART11 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: USARTSEL + - name: USART12SEL + description: "USART12 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 4 + bit_size: 3 + enum: USARTSEL + - name: LPTIM1SEL + description: "LPTIM1 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 8 + bit_size: 3 + enum: LPTIMSEL + - name: LPTIM2SEL + description: "LPTIM2 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 12 + bit_size: 3 + enum: LPTIMSEL + - name: LPTIM3SEL + description: "LPTIM3 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 16 + bit_size: 3 + enum: LPTIMSEL + - name: LPTIM4SEL + description: "LPTIM4 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 20 + bit_size: 3 + enum: LPTIMSEL + - name: LPTIM5SEL + description: "LPTIM5 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 24 + bit_size: 3 + enum: LPTIMSEL + - name: LPTIM6SEL + description: "LPTIM6 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 28 + bit_size: 3 + enum: LPTIMSEL fieldset/CCIPR3: description: RCC kernel clock configuration register fields: - - name: SPI1SEL - description: "SPI1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: SPI1SEL - - name: SPI2SEL - description: "SPI2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 3 - bit_size: 3 - enum: SPI2SEL - - name: SPI3SEL - description: "SPI3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 6 - bit_size: 3 - enum: SPI3SEL - - name: SPI4SEL - description: "SPI4 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 9 - bit_size: 3 - enum: SPI4SEL - - name: SPI5SEL - description: "SPI5 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 12 - bit_size: 3 - enum: SPI5SEL - - name: SPI6SEL - description: "SPI6 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 15 - bit_size: 3 - enum: SPI6SEL - - name: LPUART1SEL - description: "LPUART1 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 24 - bit_size: 3 - enum: LPUARTSEL + - name: SPI1SEL + description: "SPI1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: SPI1SEL + - name: SPI2SEL + description: "SPI2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 3 + bit_size: 3 + enum: SPI2SEL + - name: SPI3SEL + description: "SPI3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 6 + bit_size: 3 + enum: SPI3SEL + - name: SPI4SEL + description: "SPI4 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 9 + bit_size: 3 + enum: SPI4SEL + - name: SPI5SEL + description: "SPI5 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 12 + bit_size: 3 + enum: SPI5SEL + - name: SPI6SEL + description: "SPI6 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 15 + bit_size: 3 + enum: SPI6SEL + - name: LPUART1SEL + description: "LPUART1 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 24 + bit_size: 3 + enum: LPUARTSEL fieldset/CCIPR4: description: RCC kernel clock configuration register fields: - - name: OCTOSPI1SEL - description: "OCTOSPI1 kernel clock source selection\r Set and reset by software." - bit_offset: 0 - bit_size: 2 - enum: OCTOSPISEL - - name: SYSTICKSEL - description: "SYSTICK clock source selection\r Note: rcc_hclk frequency must be four times higher than\r lsi_ker_ck/lse_ck (period (LSI/LSE) ≥ 4 * period (HCLK)." - bit_offset: 2 - bit_size: 2 - enum: SYSTICKSEL - - name: USBSEL - description: USB kernel clock source selection - bit_offset: 4 - bit_size: 2 - enum: USBSEL - - name: SDMMC1SEL - description: SDMMC1 kernel clock source selection - bit_offset: 6 - bit_size: 1 - enum: SDMMCSEL - - name: SDMMC2SEL - description: SDMMC2 kernel clock source selection - bit_offset: 7 - bit_size: 1 - enum: SDMMCSEL - - name: I2C1SEL - description: I2C1 kernel clock source selection - bit_offset: 16 - bit_size: 2 - enum: ICSEL - - name: I2C2SEL - description: I2C2 kernel clock source selection - bit_offset: 18 - bit_size: 2 - enum: ICSEL - - name: I2C3SEL - description: I2C3 kernel clock source selection - bit_offset: 20 - bit_size: 2 - enum: ICSEL - - name: I2C4SEL - description: I2C4 kernel clock source selection - bit_offset: 22 - bit_size: 2 - enum: ICSEL - - name: I3C1SEL - description: I3C1 kernel clock source selection - bit_offset: 24 - bit_size: 2 - enum: ICSEL + - name: OCTOSPI1SEL + description: "OCTOSPI1 kernel clock source selection\r Set and reset by software." + bit_offset: 0 + bit_size: 2 + enum: OCTOSPISEL + - name: SYSTICKSEL + description: "SYSTICK clock source selection\r Note: rcc_hclk frequency must be four times higher than\r lsi_ker_ck/lse_ck (period (LSI/LSE) ≥ 4 * period (HCLK)." + bit_offset: 2 + bit_size: 2 + enum: SYSTICKSEL + - name: USBSEL + description: USB kernel clock source selection + bit_offset: 4 + bit_size: 2 + enum: USBSEL + - name: SDMMC1SEL + description: SDMMC1 kernel clock source selection + bit_offset: 6 + bit_size: 1 + enum: SDMMCSEL + - name: SDMMC2SEL + description: SDMMC2 kernel clock source selection + bit_offset: 7 + bit_size: 1 + enum: SDMMCSEL + - name: I2C1SEL + description: I2C1 kernel clock source selection + bit_offset: 16 + bit_size: 2 + enum: ICSEL + - name: I2C2SEL + description: I2C2 kernel clock source selection + bit_offset: 18 + bit_size: 2 + enum: ICSEL + - name: I2C3SEL + description: I2C3 kernel clock source selection + bit_offset: 20 + bit_size: 2 + enum: ICSEL + - name: I2C4SEL + description: I2C4 kernel clock source selection + bit_offset: 22 + bit_size: 2 + enum: ICSEL + - name: I3C1SEL + description: I3C1 kernel clock source selection + bit_offset: 24 + bit_size: 2 + enum: ICSEL fieldset/CCIPR5: description: RCC kernel clock configuration register fields: - - name: ADCDACSEL - description: "ADC and DAC kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: ADCDACSEL - - name: DACSEL - description: DAC hold clock - bit_offset: 3 - bit_size: 1 - enum: DACSEL - - name: RNGSEL - description: RNG kernel clock source selection - bit_offset: 4 - bit_size: 2 - enum: RNGSEL - - name: CECSEL - description: HSMI-CEC kernel clock source selection - bit_offset: 6 - bit_size: 2 - enum: CECSEL - - name: FDCAN12SEL - description: FDCAN1 and FDCAN2 kernel clock source selection - bit_offset: 8 - bit_size: 2 - enum: FDCANSEL - - name: SAI1SEL - description: "SAI1 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 16 - bit_size: 3 - enum: SAISEL - - name: SAI2SEL - description: "SAI2 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 19 - bit_size: 3 - enum: SAISEL - - name: CKPERSEL - description: per_ck clock source selection - bit_offset: 30 - bit_size: 2 - enum: CKPERSEL + - name: ADCDACSEL + description: "ADC and DAC kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: ADCDACSEL + - name: DACSEL + description: DAC hold clock + bit_offset: 3 + bit_size: 1 + enum: DACSEL + - name: RNGSEL + description: RNG kernel clock source selection + bit_offset: 4 + bit_size: 2 + enum: RNGSEL + - name: CECSEL + description: HSMI-CEC kernel clock source selection + bit_offset: 6 + bit_size: 2 + enum: CECSEL + - name: FDCAN12SEL + description: FDCAN1 and FDCAN2 kernel clock source selection + bit_offset: 8 + bit_size: 2 + enum: FDCANSEL + - name: SAI1SEL + description: "SAI1 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 16 + bit_size: 3 + enum: SAISEL + - name: SAI2SEL + description: "SAI2 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 19 + bit_size: 3 + enum: SAISEL + - name: CKPERSEL + description: per_ck clock source selection + bit_offset: 30 + bit_size: 2 + enum: CKPERSEL fieldset/CFGR: description: RCC clock configuration register fields: - - name: SW - description: "system clock and trace clock switch\r Set and reset by software to select system clock and trace clock sources (sys_ck).\r Set by hardware in order to:\r -\tforce the selection of the HSI or CSI (depending on STOPWUCK selection) when leaving a system Stop mode\r -\tforce the selection of the HSI in case of failure of the HSE when used directly or indirectly as system clock\r others: reserved" - bit_offset: 0 - bit_size: 3 - enum: SW - - name: SWS - description: "system clock switch status\r Set and reset by hardware to indicate which clock source is used as system clock. 000: HSI used as system clock (hsi_ck) (default after reset).\r others: reserved" - bit_offset: 3 - bit_size: 3 - enum: SW - - name: STOPWUCK - description: "system clock selection after a wakeup from system Stop\r Set and reset by software to select the system wakeup clock from system Stop.\r The selected clock is also used as emergency clock for the clock security system (CSS) on HSE. 0: HSI selected as wakeup clock from system Stop (default after reset)\r STOPWUCK must not be modified when CSS is enabled (by HSECSSON bit) and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW =10)." - bit_offset: 6 - bit_size: 1 - enum: STOPWUCK - - name: STOPKERWUCK - description: "kernel clock selection after a wakeup from system Stop\r Set and reset by software to select the kernel wakeup clock from system Stop." - bit_offset: 7 - bit_size: 1 - enum: STOPKERWUCK - - name: RTCPRE - description: "HSE division factor for RTC clock\r Set and cleared by software to divide the HSE to generate a clock for RTC.\r Caution: The software must set these bits correctly to ensure that the clock supplied to the RTC is lower than 1 MHz. These bits must be configured if needed before selecting the RTC clock source.\r ..." - bit_offset: 8 - bit_size: 6 - - name: TIMPRE - description: "timers clocks prescaler selection\r This bit is set and reset by software to control the clock frequency of all the timers connected to APB1 and APB2 domains." - bit_offset: 15 - bit_size: 1 - enum: TIMPRE - - name: MCO1PRE - description: "MCO1 prescaler\r Set and cleared by software to configure the prescaler of the MCO1. Modification of this prescaler may generate glitches on MCO1. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." - bit_offset: 18 - bit_size: 4 - - name: MCO1 - description: "Microcontroller clock output 1\r Set and cleared by software. Clock source selection may generate glitches on MCO1.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" - bit_offset: 22 - bit_size: 3 - enum: MCO1 - - name: MCO2PRE - description: "MCO2 prescaler\r Set and cleared by software to configure the prescaler of the MCO2. Modification of this prescaler may generate glitches on MCO2. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." - bit_offset: 25 - bit_size: 4 - - name: MCO2 - description: "microcontroller clock output 2\r Set and cleared by software. Clock source selection may generate glitches on MCO2.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" - bit_offset: 29 - bit_size: 3 - enum: MCO2 + - name: SW + description: "system clock and trace clock switch\r Set and reset by software to select system clock and trace clock sources (sys_ck).\r Set by hardware in order to:\r -\tforce the selection of the HSI or CSI (depending on STOPWUCK selection) when leaving a system Stop mode\r -\tforce the selection of the HSI in case of failure of the HSE when used directly or indirectly as system clock\r others: reserved" + bit_offset: 0 + bit_size: 3 + enum: SW + - name: SWS + description: "system clock switch status\r Set and reset by hardware to indicate which clock source is used as system clock. 000: HSI used as system clock (hsi_ck) (default after reset).\r others: reserved" + bit_offset: 3 + bit_size: 3 + enum: SW + - name: STOPWUCK + description: "system clock selection after a wakeup from system Stop\r Set and reset by software to select the system wakeup clock from system Stop.\r The selected clock is also used as emergency clock for the clock security system (CSS) on HSE. 0: HSI selected as wakeup clock from system Stop (default after reset)\r STOPWUCK must not be modified when CSS is enabled (by HSECSSON bit) and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW =10)." + bit_offset: 6 + bit_size: 1 + enum: STOPWUCK + - name: STOPKERWUCK + description: "kernel clock selection after a wakeup from system Stop\r Set and reset by software to select the kernel wakeup clock from system Stop." + bit_offset: 7 + bit_size: 1 + enum: STOPKERWUCK + - name: RTCPRE + description: "HSE division factor for RTC clock\r Set and cleared by software to divide the HSE to generate a clock for RTC.\r Caution: The software must set these bits correctly to ensure that the clock supplied to the RTC is lower than 1 MHz. These bits must be configured if needed before selecting the RTC clock source.\r ..." + bit_offset: 8 + bit_size: 6 + - name: TIMPRE + description: "timers clocks prescaler selection\r This bit is set and reset by software to control the clock frequency of all the timers connected to APB1 and APB2 domains." + bit_offset: 15 + bit_size: 1 + enum: TIMPRE + - name: MCO1PRE + description: "MCO1 prescaler\r Set and cleared by software to configure the prescaler of the MCO1. Modification of this prescaler may generate glitches on MCO1. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." + bit_offset: 18 + bit_size: 4 + - name: MCO1 + description: "Microcontroller clock output 1\r Set and cleared by software. Clock source selection may generate glitches on MCO1.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" + bit_offset: 22 + bit_size: 3 + enum: MCO1 + - name: MCO2PRE + description: "MCO2 prescaler\r Set and cleared by software to configure the prescaler of the MCO2. Modification of this prescaler may generate glitches on MCO2. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." + bit_offset: 25 + bit_size: 4 + - name: MCO2 + description: "microcontroller clock output 2\r Set and cleared by software. Clock source selection may generate glitches on MCO2.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" + bit_offset: 29 + bit_size: 3 + enum: MCO2 fieldset/CFGR2: description: RCC CPU domain clock configuration register 2 fields: - - name: HPRE - description: "AHB prescaler\r Set and reset by software to control the division factor of rcc_hclk. Changing\r this division ratio has an impact on the frequency of all bus matrix clocks\r 0xxx: rcc_hclk = sys_ck (default after reset)" - bit_offset: 0 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: "APB low-speed prescaler (APB1)\r Set and reset by software to control the division factor of rcc_pclk1.\r The clock is divided by the new prescaler factor from 1 to 16 cycles of rcc_hclk after PPRE write.\r 0xx: rcc_pclk1 = rcc_hclk1 (default after reset)" - bit_offset: 4 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: "APB high-speed prescaler (APB2)\r Set and reset by software to control APB high-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE2 write.\r 0xx: rcc_pclk2 = rcc_hclk1" - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE3 - description: "APB low-speed prescaler (APB3)\r Set and reset by software to control APB low-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE3 write.\r 0xx: rcc_pclk3 = rcc_hclk1" - bit_offset: 12 - bit_size: 3 - enum: PPRE - - name: AHB1DIS - description: "AHB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB1\r peripherals from RCC_AHB1ENR are used and when their clocks are disabled in\r RCC_AHB1ENR. When this bit is set, all the AHB1 peripherals clocks from\r RCC_AHB1ENR are off.\r enable control bits" - bit_offset: 16 - bit_size: 1 - - name: AHB2DIS - description: "AHB2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2\r peripherals from RCC_AHB2ENR are used and when their clocks are disabled in\r RCC_AHB2ENR. When this bit is set, all the AHB2 peripherals clocks from\r RCC_AHB2ENR are off.\r enable control bits" - bit_offset: 17 - bit_size: 1 - - name: AHB4DIS - description: "AHB4 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB4\r peripherals from RCC_AHB4ENR are used and when their clocks are disabled in\r RCC_AHB4ENR. When this bit is set, all the AHB4 peripherals clocks from\r RCC_AHB4ENR are off.\r enable control bits" - bit_offset: 19 - bit_size: 1 - - name: APB1DIS - description: "APB1 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB1\r peripherals (except IWDG) are used and when their clocks are disabled in RCC_APB1ENR.\r When this bit is set, all the APB1 peripherals clocks are off, except for IWDG.\r control bits" - bit_offset: 20 - bit_size: 1 - - name: APB2DIS - description: "APB2 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB2\r peripherals are used and when their clocks are disabled in RCC_APB2ENR. When this bit is\r set, all the APB2 peripherals clocks are off.\r control bits" - bit_offset: 21 - bit_size: 1 - - name: APB3DIS - description: "APB3 clock disable value.Set and cleared by software\r This bit can be set in order to further reduce power consumption, when none of the APB3\r peripherals are used and when their clocks are disabled in RCC_APB3ENR. When this bit is\r set, all the APB3 peripherals clocks are off.\r control bits" - bit_offset: 22 - bit_size: 1 + - name: HPRE + description: "AHB prescaler\r Set and reset by software to control the division factor of rcc_hclk. Changing\r this division ratio has an impact on the frequency of all bus matrix clocks\r 0xxx: rcc_hclk = sys_ck (default after reset)" + bit_offset: 0 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: "APB low-speed prescaler (APB1)\r Set and reset by software to control the division factor of rcc_pclk1.\r The clock is divided by the new prescaler factor from 1 to 16 cycles of rcc_hclk after PPRE write.\r 0xx: rcc_pclk1 = rcc_hclk1 (default after reset)" + bit_offset: 4 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: "APB high-speed prescaler (APB2)\r Set and reset by software to control APB high-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE2 write.\r 0xx: rcc_pclk2 = rcc_hclk1" + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE3 + description: "APB low-speed prescaler (APB3)\r Set and reset by software to control APB low-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE3 write.\r 0xx: rcc_pclk3 = rcc_hclk1" + bit_offset: 12 + bit_size: 3 + enum: PPRE + - name: AHB1DIS + description: "AHB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB1\r peripherals from RCC_AHB1ENR are used and when their clocks are disabled in\r RCC_AHB1ENR. When this bit is set, all the AHB1 peripherals clocks from\r RCC_AHB1ENR are off.\r enable control bits" + bit_offset: 16 + bit_size: 1 + - name: AHB2DIS + description: "AHB2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2\r peripherals from RCC_AHB2ENR are used and when their clocks are disabled in\r RCC_AHB2ENR. When this bit is set, all the AHB2 peripherals clocks from\r RCC_AHB2ENR are off.\r enable control bits" + bit_offset: 17 + bit_size: 1 + - name: AHB4DIS + description: "AHB4 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB4\r peripherals from RCC_AHB4ENR are used and when their clocks are disabled in\r RCC_AHB4ENR. When this bit is set, all the AHB4 peripherals clocks from\r RCC_AHB4ENR are off.\r enable control bits" + bit_offset: 19 + bit_size: 1 + - name: APB1DIS + description: "APB1 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB1\r peripherals (except IWDG) are used and when their clocks are disabled in RCC_APB1ENR.\r When this bit is set, all the APB1 peripherals clocks are off, except for IWDG.\r control bits" + bit_offset: 20 + bit_size: 1 + - name: APB2DIS + description: "APB2 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB2\r peripherals are used and when their clocks are disabled in RCC_APB2ENR. When this bit is\r set, all the APB2 peripherals clocks are off.\r control bits" + bit_offset: 21 + bit_size: 1 + - name: APB3DIS + description: "APB3 clock disable value.Set and cleared by software\r This bit can be set in order to further reduce power consumption, when none of the APB3\r peripherals are used and when their clocks are disabled in RCC_APB3ENR. When this bit is\r set, all the APB3 peripherals clocks are off.\r control bits" + bit_offset: 22 + bit_size: 1 fieldset/CICR: description: RCC clock source interrupt clear register fields: - - name: LSIRDYC - description: "LSI ready interrupt clear\r Set by software to clear LSIRDYF.\r Reset by hardware when clear done." - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: "LSE ready interrupt clear\r Set by software to clear LSERDYF.\r Reset by hardware when clear done." - bit_offset: 1 - bit_size: 1 - - name: CSIRDYC - description: "HSI ready interrupt clear\r Set by software to clear CSIRDYF.\r Reset by hardware when clear done." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: "HSI ready interrupt clear\r Set by software to clear HSIRDYF.\r Reset by hardware when clear done." - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: "HSE ready interrupt clear\r Set by software to clear HSERDYF.\r Reset by hardware when clear done." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYC - description: "HSI48 ready interrupt clear\r Set by software to clear HSI48RDYF.\r Reset by hardware when clear done." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYC - description: "PLL1 ready interrupt clear\r Set by software to clear PLL1RDYF.\r Reset by hardware when clear done." - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: HSECSSC - description: "HSE clock security system interrupt clear\r Set by software to clear HSECSSF.\r Reset by hardware when clear done." - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: "LSI ready interrupt clear\r Set by software to clear LSIRDYF.\r Reset by hardware when clear done." + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: "LSE ready interrupt clear\r Set by software to clear LSERDYF.\r Reset by hardware when clear done." + bit_offset: 1 + bit_size: 1 + - name: CSIRDYC + description: "HSI ready interrupt clear\r Set by software to clear CSIRDYF.\r Reset by hardware when clear done." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: "HSI ready interrupt clear\r Set by software to clear HSIRDYF.\r Reset by hardware when clear done." + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: "HSE ready interrupt clear\r Set by software to clear HSERDYF.\r Reset by hardware when clear done." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYC + description: "HSI48 ready interrupt clear\r Set by software to clear HSI48RDYF.\r Reset by hardware when clear done." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYC + description: "PLL1 ready interrupt clear\r Set by software to clear PLL1RDYF.\r Reset by hardware when clear done." + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: HSECSSC + description: "HSE clock security system interrupt clear\r Set by software to clear HSECSSF.\r Reset by hardware when clear done." + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: RCC clock source interrupt enable register fields: - - name: LSIRDYIE - description: "LSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSI oscillator stabilization." - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: "LSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSE oscillator stabilization." - bit_offset: 1 - bit_size: 1 - - name: CSIRDYIE - description: "CSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the CSI oscillator stabilization." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: "HSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI oscillator stabilization." - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: "HSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSE oscillator stabilization." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYIE - description: "HSI48 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI48 oscillator stabilization." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYIE - description: "PLL1 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by PLL1 lock." - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 + - name: LSIRDYIE + description: "LSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSI oscillator stabilization." + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: "LSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSE oscillator stabilization." + bit_offset: 1 + bit_size: 1 + - name: CSIRDYIE + description: "CSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the CSI oscillator stabilization." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: "HSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI oscillator stabilization." + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: "HSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSE oscillator stabilization." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYIE + description: "HSI48 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI48 oscillator stabilization." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYIE + description: "PLL1 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by PLL1 lock." + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 fieldset/CIFR: description: RCC clock source interrupt flag register fields: - - name: LSIRDYF - description: "LSI ready interrupt flag\r Reset by software by writing LSIRDYC bit.\r Set by hardware when the LSI clock becomes stable and LSIRDYIE is set." - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: "LSE ready interrupt flag\r Reset by software by writing LSERDYC bit.\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set." - bit_offset: 1 - bit_size: 1 - - name: CSIRDYF - description: "CSI ready interrupt flag\r Reset by software by writing CSIRDYC bit.\r Set by hardware when the CSI clock becomes stable and CSIRDYIE is set." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: "HSI ready interrupt flag\r Reset by software by writing HSIRDYC bit.\r Set by hardware when the HSI clock becomes stable and HSIRDYIE is set." - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: "HSE ready interrupt flag\r Reset by software by writing HSERDYC bit.\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYF - description: "HSI48 ready interrupt flag\r Reset by software by writing HSI48RDYC bit.\r Set by hardware when the HSI48 clock becomes stable and HSI48RDYIE is set." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYF - description: "PLL1 ready interrupt flag\r Reset by software by writing PLL1RDYC bit.\r Set by hardware when the PLL1 locks and PLL1RDYIE is set." - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: HSECSSF - description: "HSE clock security system interrupt flag\r Reset by software by writing HSECSSC bit.\r Set by hardware in case of HSE clock failure." - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: "LSI ready interrupt flag\r Reset by software by writing LSIRDYC bit.\r Set by hardware when the LSI clock becomes stable and LSIRDYIE is set." + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: "LSE ready interrupt flag\r Reset by software by writing LSERDYC bit.\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set." + bit_offset: 1 + bit_size: 1 + - name: CSIRDYF + description: "CSI ready interrupt flag\r Reset by software by writing CSIRDYC bit.\r Set by hardware when the CSI clock becomes stable and CSIRDYIE is set." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: "HSI ready interrupt flag\r Reset by software by writing HSIRDYC bit.\r Set by hardware when the HSI clock becomes stable and HSIRDYIE is set." + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: "HSE ready interrupt flag\r Reset by software by writing HSERDYC bit.\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYF + description: "HSI48 ready interrupt flag\r Reset by software by writing HSI48RDYC bit.\r Set by hardware when the HSI48 clock becomes stable and HSI48RDYIE is set." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYF + description: "PLL1 ready interrupt flag\r Reset by software by writing PLL1RDYC bit.\r Set by hardware when the PLL1 locks and PLL1RDYIE is set." + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: HSECSSF + description: "HSE clock security system interrupt flag\r Reset by software by writing HSECSSC bit.\r Set by hardware in case of HSE clock failure." + bit_offset: 10 + bit_size: 1 fieldset/CR: description: RCC clock control register fields: - - name: HSION - description: "HSI clock enable\r Set and cleared by software.\r Set by hardware to force the HSI to ON when the product leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r Set by hardware to force the HSI to ON when the product leaves Standby mode or in case of a failure of the HSE which is used as the system clock source.\r This bit cannot be cleared if the HSI is used directly (via SW mux) as system clock, or if the HSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: "HSI clock ready flag\r Set by hardware to indicate that the HSI oscillator is stable." - bit_offset: 1 - bit_size: 1 - - name: HSIKERON - description: "HSI clock enable in Stop mode\r Set and reset by software to force the HSI to ON, even in Stop mode, in order to be quickly available as kernel clock for peripherals. This bit has no effect on the value of HSION." - bit_offset: 2 - bit_size: 1 - - name: HSIDIV - description: "HSI clock divider\r Set and reset by software.\r These bits allow selecting a division ratio in order to configure the wanted HSI clock frequency. The\r HSIDIV cannot be changed if the HSI is selected as reference clock for at least one enabled PLL (PLLxON bit set to 1). In that case, the new HSIDIV value is ignored." - bit_offset: 3 - bit_size: 2 - enum: HSIDIV - - name: HSIDIVF - description: "HSI divider flag\r Set and reset by hardware.\r As a write operation to HSIDIV has not an immediate effect on the frequency, this flag indicates the\r current status of the HSI divider. HSIDIVF goes immediately to 0 when HSIDIV value is changed, and is set back to 1 when the output frequency matches the value programmed into HSIDIV." - bit_offset: 5 - bit_size: 1 - - name: CSION - description: "CSI clock enable\r Set and reset by software to enable/disable CSI clock for system and/or peripheral.\r Set by hardware to force the CSI to ON when the system leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r This bit cannot be cleared if the CSI is used directly (via SW mux) as system clock, or if the CSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." - bit_offset: 8 - bit_size: 1 - - name: CSIRDY - description: "CSI clock ready flag\r Set by hardware to indicate that the CSI oscillator is stable. This bit is activated only if the RC is enabled by CSION (it is not activated if the CSI is enabled by CSIKERON or by a peripheral request)." - bit_offset: 9 - bit_size: 1 - - name: CSIKERON - description: "CSI clock enable in Stop mode\r Set and reset by software to force the CSI to ON, even in Stop mode, in order to be quickly available as kernel clock for some peripherals. This bit has no effect on the value of CSION." - bit_offset: 10 - bit_size: 1 - - name: HSI48ON - description: "HSI48 clock enable\r Set by software and cleared by software or by the hardware when the system enters to Stop\r or Standby mode." - bit_offset: 12 - bit_size: 1 - - name: HSI48RDY - description: "HSI48 clock ready flag\r Set by hardware to indicate that the HSI48 oscillator is stable." - bit_offset: 13 - bit_size: 1 - - name: HSEON - description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE when entering Stop or Standby mode.\r This bit cannot be cleared if the HSE is used directly (via SW mux) as system clock, or if the\r HSE is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable." - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: "HSE clock bypass\r Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit to be used by the device.\r The HSEBYP bit can be written only if the HSE oscillator is disabled." - bit_offset: 18 - bit_size: 1 - - name: HSECSSON - description: "HSE clock security system enable\r Set by software to enable clock security system on HSE.\r This bit is “set only” (disabled by a system reset or when the system enters in Standby mode). When HSECSSON is set, the clock detector is enabled by hardware when the HSE is ready and disabled by hardware if an oscillator failure is detected." - bit_offset: 19 - bit_size: 1 - - name: HSEEXT - description: "external high speed clock type in Bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the HSEON bit to be used by the device. The HSEEXT bit can be written only if the HSE oscillator is disabled." - bit_offset: 20 - bit_size: 1 - enum: HSEEXT - - name: PLLON - description: "PLL1 enable\r Set and cleared by software to enable PLL1.\r Cleared by hardware when entering Stop or Standby mode. Note that the hardware prevents\r writing this bit to 0, if the PLL1 output is used as the system clock." - bit_offset: 24 - bit_size: 1 - array: - len: 3 - stride: 2 - - name: PLLRDY - description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked." - bit_offset: 25 - bit_size: 1 - array: - len: 3 - stride: 2 + - name: HSION + description: "HSI clock enable\r Set and cleared by software.\r Set by hardware to force the HSI to ON when the product leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r Set by hardware to force the HSI to ON when the product leaves Standby mode or in case of a failure of the HSE which is used as the system clock source.\r This bit cannot be cleared if the HSI is used directly (via SW mux) as system clock, or if the HSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: "HSI clock ready flag\r Set by hardware to indicate that the HSI oscillator is stable." + bit_offset: 1 + bit_size: 1 + - name: HSIKERON + description: "HSI clock enable in Stop mode\r Set and reset by software to force the HSI to ON, even in Stop mode, in order to be quickly available as kernel clock for peripherals. This bit has no effect on the value of HSION." + bit_offset: 2 + bit_size: 1 + - name: HSIDIV + description: "HSI clock divider\r Set and reset by software.\r These bits allow selecting a division ratio in order to configure the wanted HSI clock frequency. The\r HSIDIV cannot be changed if the HSI is selected as reference clock for at least one enabled PLL (PLLxON bit set to 1). In that case, the new HSIDIV value is ignored." + bit_offset: 3 + bit_size: 2 + enum: HSIDIV + - name: HSIDIVF + description: "HSI divider flag\r Set and reset by hardware.\r As a write operation to HSIDIV has not an immediate effect on the frequency, this flag indicates the\r current status of the HSI divider. HSIDIVF goes immediately to 0 when HSIDIV value is changed, and is set back to 1 when the output frequency matches the value programmed into HSIDIV." + bit_offset: 5 + bit_size: 1 + - name: CSION + description: "CSI clock enable\r Set and reset by software to enable/disable CSI clock for system and/or peripheral.\r Set by hardware to force the CSI to ON when the system leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r This bit cannot be cleared if the CSI is used directly (via SW mux) as system clock, or if the CSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." + bit_offset: 8 + bit_size: 1 + - name: CSIRDY + description: "CSI clock ready flag\r Set by hardware to indicate that the CSI oscillator is stable. This bit is activated only if the RC is enabled by CSION (it is not activated if the CSI is enabled by CSIKERON or by a peripheral request)." + bit_offset: 9 + bit_size: 1 + - name: CSIKERON + description: "CSI clock enable in Stop mode\r Set and reset by software to force the CSI to ON, even in Stop mode, in order to be quickly available as kernel clock for some peripherals. This bit has no effect on the value of CSION." + bit_offset: 10 + bit_size: 1 + - name: HSI48ON + description: "HSI48 clock enable\r Set by software and cleared by software or by the hardware when the system enters to Stop\r or Standby mode." + bit_offset: 12 + bit_size: 1 + - name: HSI48RDY + description: "HSI48 clock ready flag\r Set by hardware to indicate that the HSI48 oscillator is stable." + bit_offset: 13 + bit_size: 1 + - name: HSEON + description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE when entering Stop or Standby mode.\r This bit cannot be cleared if the HSE is used directly (via SW mux) as system clock, or if the\r HSE is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable." + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: "HSE clock bypass\r Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit to be used by the device.\r The HSEBYP bit can be written only if the HSE oscillator is disabled." + bit_offset: 18 + bit_size: 1 + - name: HSECSSON + description: "HSE clock security system enable\r Set by software to enable clock security system on HSE.\r This bit is “set only” (disabled by a system reset or when the system enters in Standby mode). When HSECSSON is set, the clock detector is enabled by hardware when the HSE is ready and disabled by hardware if an oscillator failure is detected." + bit_offset: 19 + bit_size: 1 + - name: HSEEXT + description: "external high speed clock type in Bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the HSEON bit to be used by the device. The HSEEXT bit can be written only if the HSE oscillator is disabled." + bit_offset: 20 + bit_size: 1 + enum: HSEEXT + - name: PLLON + description: "PLL1 enable\r Set and cleared by software to enable PLL1.\r Cleared by hardware when entering Stop or Standby mode. Note that the hardware prevents\r writing this bit to 0, if the PLL1 output is used as the system clock." + bit_offset: 24 + bit_size: 1 + array: + len: 3 + stride: 2 + - name: PLLRDY + description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked." + bit_offset: 25 + bit_size: 1 + array: + len: 3 + stride: 2 fieldset/CRRCR: description: RCC clock recovery RC register fields: - - name: HSI48CAL - description: "Internal RC 48 MHz clock calibration\r Set by hardware by option-byte loading during system reset NRESET. Read-only." - bit_offset: 0 - bit_size: 10 + - name: HSI48CAL + description: "Internal RC 48 MHz clock calibration\r Set by hardware by option-byte loading during system reset NRESET. Read-only." + bit_offset: 0 + bit_size: 10 fieldset/CSICFGR: description: RCC CSI calibration register fields: - - name: CSICAL - description: "CSI clock calibration\r Set by hardware by option byte loading during system reset NRESET. Adjusted by software through trimming bits CSITRIM.\r This field represents the sum of engineering option byte calibration value and CSITRIM bits value." - bit_offset: 0 - bit_size: 8 - - name: CSITRIM - description: "CSI clock trimming\r Set by software to adjust calibration.\r CSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_CSI_OPT) in order to form the calibration trimming value.\r CSICAL = CSITRIM + FLASH_CSI_OPT.\r Note: The reset value of the field is 0x20." - bit_offset: 16 - bit_size: 6 + - name: CSICAL + description: "CSI clock calibration\r Set by hardware by option byte loading during system reset NRESET. Adjusted by software through trimming bits CSITRIM.\r This field represents the sum of engineering option byte calibration value and CSITRIM bits value." + bit_offset: 0 + bit_size: 8 + - name: CSITRIM + description: "CSI clock trimming\r Set by software to adjust calibration.\r CSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_CSI_OPT) in order to form the calibration trimming value.\r CSICAL = CSITRIM + FLASH_CSI_OPT.\r Note: The reset value of the field is 0x20." + bit_offset: 16 + bit_size: 6 fieldset/HSICFGR: description: RCC HSI calibration register fields: - - name: HSICAL - description: "HSI clock calibration\r Set by hardware by option byte loading during system reset nreset. Adjusted by software through trimming bits HSITRIM.\r This field represents the sum of engineering option byte calibration value and HSITRIM bits value." - bit_offset: 0 - bit_size: 12 - - name: HSITRIM - description: "HSI clock trimming\r Set by software to adjust calibration.\r HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_OPT) in order to form the calibration trimming value.\r HSICAL = HSITRIM + FLASH_HSI_OPT.\r After a change of HSITRIM it takes one system clock cycle before the new HSITRIM value is updated\r Note: The reset value of the field is 0x40." - bit_offset: 16 - bit_size: 7 + - name: HSICAL + description: "HSI clock calibration\r Set by hardware by option byte loading during system reset nreset. Adjusted by software through trimming bits HSITRIM.\r This field represents the sum of engineering option byte calibration value and HSITRIM bits value." + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: "HSI clock trimming\r Set by software to adjust calibration.\r HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_OPT) in order to form the calibration trimming value.\r HSICAL = HSITRIM + FLASH_HSI_OPT.\r After a change of HSITRIM it takes one system clock cycle before the new HSITRIM value is updated\r Note: The reset value of the field is 0x40." + bit_offset: 16 + bit_size: 7 fieldset/PLLCFGR: description: RCC PLL clock source selection register fields: - - name: PLLSRC - description: "DIVMx and PLLs clock source selection\r Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled.\r In order to save power, when no PLL is used, the value of PLL1SRC must be set to '00'. 00: no clock send to DIVMx divider and PLLs (default after reset)." - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLRGE - description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1." - bit_offset: 2 - bit_size: 2 - enum: PLLRGE - - name: PLLFRACEN - description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator.\r In order to latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator." - bit_offset: 4 - bit_size: 1 - - name: PLLVCOSEL - description: "PLL1 VCO selection\r Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1." - bit_offset: 5 - bit_size: 1 - enum: PLLVCOSEL - - name: DIVM - description: "prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1.\r The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1).\r In order to save power when PLL1 is not used, the value of DIVM1 must be set to 0.\r ...\r ..." - bit_offset: 8 - bit_size: 6 - - name: PLLPEN - description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1_p_ck output of the PLL1.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r In order to save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled." - bit_offset: 16 - bit_size: 1 - - name: PLLQEN - description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1_q_ck output of the PLL1.\r In order to save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 17 - bit_size: 1 - - name: PLLREN - description: "PLL1 DIVR divider output enable\r Set and reset by software to enable the pll1_r_ck output of the PLL1.\r To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 18 - bit_size: 1 + - name: PLLSRC + description: "DIVMx and PLLs clock source selection\r Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled.\r In order to save power, when no PLL is used, the value of PLL1SRC must be set to '00'. 00: no clock send to DIVMx divider and PLLs (default after reset)." + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLRGE + description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1." + bit_offset: 2 + bit_size: 2 + enum: PLLRGE + - name: PLLFRACEN + description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator.\r In order to latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator." + bit_offset: 4 + bit_size: 1 + - name: PLLVCOSEL + description: "PLL1 VCO selection\r Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1." + bit_offset: 5 + bit_size: 1 + enum: PLLVCOSEL + - name: DIVM + description: "prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1.\r The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1).\r In order to save power when PLL1 is not used, the value of DIVM1 must be set to 0.\r ...\r ..." + bit_offset: 8 + bit_size: 6 + - name: PLLPEN + description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1_p_ck output of the PLL1.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r In order to save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled." + bit_offset: 16 + bit_size: 1 + - name: PLLQEN + description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1_q_ck output of the PLL1.\r In order to save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 17 + bit_size: 1 + - name: PLLREN + description: "PLL1 DIVR divider output enable\r Set and reset by software to enable the pll1_r_ck output of the PLL1.\r To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 18 + bit_size: 1 fieldset/PLLDIVR: description: RCC PLL1 dividers register fields: - - name: PLLN - description: "Multiplication factor for PLL1VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r Others: reserved" - bit_offset: 0 - bit_size: 9 - - name: PLLP - description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1_p_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." - bit_offset: 9 - bit_size: 7 - - name: PLLQ - description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the pll1_q_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 16 - bit_size: 7 - - name: PLLR - description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1_r_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 24 - bit_size: 7 + - name: PLLN + description: "Multiplication factor for PLL1VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r Others: reserved" + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1_p_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the pll1_q_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1_r_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 24 + bit_size: 7 fieldset/PLLFRACR: description: RCC PLL1 fractional divider register fields: - - name: PLLFRACN - description: "fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is:\r * 128 to 560 MHz if PLL1VCOSEL = 0\r * \t150 to 420 MHz if PLL1VCOSEL = 1\r VCO output frequency = Fref1_ck x (PLL1N + (PLL1FRACN / 213)), with\r * \tPLL1N between 8 and 420\r * \tPLL1FRACN can be between 0 and 213- 1\r * \tThe input frequency Fref1_ck must be between 1 and 16 MHz.\r To change the PLL1FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r * \tSet the bit PLL1FRACEN to 0\r * \tWrite the new fractional value into PLL1FRACN\r * \tSet the bit PLL1FRACEN to 1" - bit_offset: 3 - bit_size: 13 + - name: PLLFRACN + description: "fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is:\r * 128 to 560 MHz if PLL1VCOSEL = 0\r * \t150 to 420 MHz if PLL1VCOSEL = 1\r VCO output frequency = Fref1_ck x (PLL1N + (PLL1FRACN / 213)), with\r * \tPLL1N between 8 and 420\r * \tPLL1FRACN can be between 0 and 213- 1\r * \tThe input frequency Fref1_ck must be between 1 and 16 MHz.\r To change the PLL1FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r * \tSet the bit PLL1FRACEN to 0\r * \tWrite the new fractional value into PLL1FRACN\r * \tSet the bit PLL1FRACEN to 1" + bit_offset: 3 + bit_size: 13 fieldset/PRIVCFGR: description: RCC privilege configuration register fields: - - name: SPRIV - description: "RCC secure functions privilege configuration\r Set and reset by software. This bit can be written only by a secure privileged access." - bit_offset: 0 - bit_size: 1 - enum: SPRIV - - name: NSPRIV - description: "RCC non-secure functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access, secure or non-secure." - bit_offset: 1 - bit_size: 1 - enum: NSPRIV + - name: SPRIV + description: "RCC secure functions privilege configuration\r Set and reset by software. This bit can be written only by a secure privileged access." + bit_offset: 0 + bit_size: 1 + enum: SPRIV + - name: NSPRIV + description: "RCC non-secure functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access, secure or non-secure." + bit_offset: 1 + bit_size: 1 + enum: NSPRIV fieldset/RSR: description: RCC reset status register fields: - - name: RMVF - description: "remove reset flag\r Set and reset by software to reset the value of the reset flags." - bit_offset: 23 - bit_size: 1 - - name: PINRSTF - description: "pin reset flag (NRST)\r Reset by software by writing the RMVF bit.\r Set by hardware when a reset from pin occurs." - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: "BOR reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a BOR reset occurs (pwr_bor_rst)." - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: "system reset from CPU reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when the system reset is due to CPU.The CPU can generate a system reset by writing SYSRESETREQ bit of AIRCR register of the core M33." - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: "independent watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when an independent watchdog reset occurs." - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: "window watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a window watchdog reset occurs." - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: "Low-power reset flag\r Set by hardware when a reset occurs due to Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared.\r Cleared by writing to the RMVF bit." - bit_offset: 31 - bit_size: 1 + - name: RMVF + description: "remove reset flag\r Set and reset by software to reset the value of the reset flags." + bit_offset: 23 + bit_size: 1 + - name: PINRSTF + description: "pin reset flag (NRST)\r Reset by software by writing the RMVF bit.\r Set by hardware when a reset from pin occurs." + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: "BOR reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a BOR reset occurs (pwr_bor_rst)." + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: "system reset from CPU reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when the system reset is due to CPU.The CPU can generate a system reset by writing SYSRESETREQ bit of AIRCR register of the core M33." + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: "independent watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when an independent watchdog reset occurs." + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: "window watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a window watchdog reset occurs." + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: "Low-power reset flag\r Set by hardware when a reset occurs due to Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared.\r Cleared by writing to the RMVF bit." + bit_offset: 31 + bit_size: 1 fieldset/SECCFGR: description: RCC secure configuration register fields: - - name: HSISEC - description: "HSI clock configuration and status bits security\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - enum: SEC - - name: HSESEC - description: "HSE clock configuration bits, status bits and HSE_CSS security\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - enum: SEC - - name: CSISEC - description: "CSI clock configuration and status bits security\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - enum: SEC - - name: LSISEC - description: "LSI clock configuration and status bits security\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - enum: SEC - - name: LSESEC - description: "LSE clock configuration and status bits security\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - enum: SEC - - name: SYSCLKSEC - description: "SYSCLK clock selection, STOPWUCK bit, clock output on MCO configuration security\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - enum: SEC - - name: PRESCSEC - description: "AHBx/APBx prescaler configuration bits security\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - enum: SEC - - name: PLLSEC - description: "PLL1 clock configuration and status bits security\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - array: - len: 3 - stride: 1 - enum: SEC - - name: HSI48SEC - description: "HSI48 clock configuration and status bits security\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - enum: SEC - - name: RMVFSEC - description: "Remove reset flag security\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - enum: SEC - - name: CKPERSELSEC - description: "per_ck selection security\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - enum: SEC + - name: HSISEC + description: "HSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + enum: SEC + - name: HSESEC + description: "HSE clock configuration bits, status bits and HSE_CSS security\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + enum: SEC + - name: CSISEC + description: "CSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + enum: SEC + - name: LSISEC + description: "LSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + enum: SEC + - name: LSESEC + description: "LSE clock configuration and status bits security\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + enum: SEC + - name: SYSCLKSEC + description: "SYSCLK clock selection, STOPWUCK bit, clock output on MCO configuration security\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + enum: SEC + - name: PRESCSEC + description: "AHBx/APBx prescaler configuration bits security\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + enum: SEC + - name: PLLSEC + description: "PLL1 clock configuration and status bits security\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + array: + len: 3 + stride: 1 + enum: SEC + - name: HSI48SEC + description: "HSI48 clock configuration and status bits security\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + enum: SEC + - name: RMVFSEC + description: "Remove reset flag security\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + enum: SEC + - name: CKPERSELSEC + description: "per_ck selection security\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + enum: SEC enum/ADCDACSEL: bit_size: 3 variants: - - name: HCLK - description: rcc_hclk selected as kernel clock (default after reset) - value: 0 - - name: SYSCLK - description: sys_ck selected as kernel clock - value: 1 - - name: PLL2_R - description: pll2_r_ck selected as kernel clock - value: 2 - - name: HSE - description: hse_ck selected as kernel clock - value: 3 - - name: HSI_KER - description: hsi_ker_ck selected as kernel clock - value: 4 - - name: CSI_KER - description: csi_ker_ck selected as kernel clock - value: 5 + - name: HCLK + description: rcc_hclk selected as kernel clock (default after reset) + value: 0 + - name: SYSCLK + description: sys_ck selected as kernel clock + value: 1 + - name: PLL2_R + description: pll2_r_ck selected as kernel clock + value: 2 + - name: HSE + description: hse_ck selected as kernel clock + value: 3 + - name: HSI_KER + description: hsi_ker_ck selected as kernel clock + value: 4 + - name: CSI_KER + description: csi_ker_ck selected as kernel clock + value: 5 enum/CECSEL: bit_size: 2 variants: - - name: LSE - description: lse_ck selected as kernel clock (default after reset) - value: 0 - - name: LSI_KER - description: lsi_ker_ck selected as kernel clock - value: 1 - - name: CSI_KER_DIV_122 - description: csi_ker_ck/122 selected as kernel clock - value: 2 + - name: LSE + description: lse_ck selected as kernel clock (default after reset) + value: 0 + - name: LSI_KER + description: lsi_ker_ck selected as kernel clock + value: 1 + - name: CSI_KER_DIV_122 + description: csi_ker_ck/122 selected as kernel clock + value: 2 enum/CKPERSEL: bit_size: 2 variants: - - name: HSI - description: hsi_ker_ck selected as kernel clock (default after reset) - value: 0 - - name: CSI - description: csi_ker_ck selected as kernel clock - value: 1 - - name: HSE - description: hse_ck selected as kernel clock - value: 2 + - name: HSI + description: hsi_ker_ck selected as kernel clock (default after reset) + value: 0 + - name: CSI + description: csi_ker_ck selected as kernel clock + value: 1 + - name: HSE + description: hse_ck selected as kernel clock + value: 2 enum/DACSEL: bit_size: 1 variants: - - name: DAC_HOLD - description: dac_hold_ck selected as kernel clock (default after reset) - value: 0 - - name: DAC_HOLD_2 - description: dac_hold_ck selected as kernel clock - value: 1 + - name: DAC_HOLD + description: dac_hold_ck selected as kernel clock (default after reset) + value: 0 + - name: DAC_HOLD_2 + description: dac_hold_ck selected as kernel clock + value: 1 enum/FDCANSEL: bit_size: 2 variants: - - name: HSE - description: hse_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock - value: 1 - - name: PLL2_Q - description: pll2_q_ck selected as kernel clock - value: 2 + - name: HSE + description: hse_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock + value: 1 + - name: PLL2_Q + description: pll2_q_ck selected as kernel clock + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: sys_ck not divided - value: 0 - - name: Div2 - description: sys_ck divided by 2 - value: 8 - - name: Div4 - description: sys_ck divided by 4 - value: 9 - - name: Div8 - description: sys_ck divided by 8 - value: 10 - - name: Div16 - description: sys_ck divided by 16 - value: 11 - - name: Div64 - description: sys_ck divided by 64 - value: 12 - - name: Div128 - description: sys_ck divided by 128 - value: 13 - - name: Div256 - description: sys_ck divided by 256 - value: 14 - - name: Div512 - description: sys_ck divided by 512 - value: 15 + - name: Div1 + description: sys_ck not divided + value: 0 + - name: Div2 + description: sys_ck divided by 2 + value: 8 + - name: Div4 + description: sys_ck divided by 4 + value: 9 + - name: Div8 + description: sys_ck divided by 8 + value: 10 + - name: Div16 + description: sys_ck divided by 16 + value: 11 + - name: Div64 + description: sys_ck divided by 64 + value: 12 + - name: Div128 + description: sys_ck divided by 128 + value: 13 + - name: Div256 + description: sys_ck divided by 256 + value: 14 + - name: Div512 + description: sys_ck divided by 512 + value: 15 enum/HSEEXT: bit_size: 1 variants: - - name: Analog - description: HSE in analog mode (default after reset) - value: 0 - - name: Digital - description: HSE in digital mode - value: 1 + - name: Analog + description: HSE in analog mode (default after reset) + value: 0 + - name: Digital + description: HSE in digital mode + value: 1 enum/HSIDIV: bit_size: 2 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 enum/ICSEL: bit_size: 2 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 2 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 3 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 2 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 3 enum/LPTIMSEL: bit_size: 3 variants: - - name: RCC_PCLK3 - description: rcc_pclk3 selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: LSE - description: LSE selected as peripheral clock - value: 3 - - name: LSI - description: LSI selected as peripheral clock - value: 4 - - name: PER - description: PER selected as peripheral clock - value: 5 + - name: RCC_PCLK3 + description: rcc_pclk3 selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 3 + - name: LSI + description: LSI selected as peripheral clock + value: 4 + - name: PER + description: PER selected as peripheral clock + value: 5 enum/LPUARTSEL: bit_size: 3 variants: - - name: RCC_PCLK3 - description: rcc_pclk3 selected as kernel clock (default after reset) - value: 0 - - name: PLL2_Q - description: pll2_q_ck selected as kernel clock - value: 1 - - name: PLL3_1 - description: pll3_q_ck selected as kernel clock - value: 2 - - name: HSI_KER - description: hsi_ker_ck selected as kernel clock - value: 3 - - name: CSI_KER - description: csi_ker_ck selected as kernel clock - value: 4 - - name: LSE - description: lse_ck selected as kernel clock - value: 5 + - name: RCC_PCLK3 + description: rcc_pclk3 selected as kernel clock (default after reset) + value: 0 + - name: PLL2_Q + description: pll2_q_ck selected as kernel clock + value: 1 + - name: PLL3_1 + description: pll3_q_ck selected as kernel clock + value: 2 + - name: HSI_KER + description: hsi_ker_ck selected as kernel clock + value: 3 + - name: CSI_KER + description: csi_ker_ck selected as kernel clock + value: 4 + - name: LSE + description: lse_ck selected as kernel clock + value: 5 enum/LSCOSEL: bit_size: 1 variants: - - name: LSI - description: LSI clock selected - value: 0 - - name: LSE - description: LSE clock selected - value: 1 + - name: LSI + description: LSI clock selected + value: 0 + - name: LSE + description: LSE clock selected + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Lowest - description: Lowest LSE oscillator driving capability - value: 0 - - name: MediumLow - description: Medium low LSE oscillator driving capability - value: 1 - - name: MediumHigh - description: Medium high LSE oscillator driving capability - value: 2 - - name: Highest - description: Highest LSE oscillator driving capability - value: 3 + - name: Lowest + description: Lowest LSE oscillator driving capability + value: 0 + - name: MediumLow + description: Medium low LSE oscillator driving capability + value: 1 + - name: MediumHigh + description: Medium high LSE oscillator driving capability + value: 2 + - name: Highest + description: Highest LSE oscillator driving capability + value: 3 enum/LSEEXT: bit_size: 1 variants: - - name: Analog - description: LSE in analog mode (default after Backup domain reset) - value: 0 - - name: Digital - description: LSE in digital mode (do not use if RTC is active). - value: 1 + - name: Analog + description: LSE in analog mode (default after Backup domain reset) + value: 0 + - name: Digital + description: LSE in digital mode (do not use if RTC is active). + value: 1 enum/MCO1: bit_size: 3 variants: - - name: HSI - description: HSI selected for micro-controller clock output - value: 0 - - name: LSE - description: LSE selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_Q - description: pll1_q selected for micro-controller clock output - value: 3 - - name: HSI48 - description: HSI48 selected for micro-controller clock output - value: 4 + - name: HSI + description: HSI selected for micro-controller clock output + value: 0 + - name: LSE + description: LSE selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_Q + description: pll1_q selected for micro-controller clock output + value: 3 + - name: HSI48 + description: HSI48 selected for micro-controller clock output + value: 4 enum/MCO2: bit_size: 3 variants: - - name: SYSCLK - description: System clock selected for micro-controller clock output - value: 0 - - name: PLL2_P - description: pll2_p selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_P - description: pll1_p selected for micro-controller clock output - value: 3 - - name: CSI - description: CSI selected for micro-controller clock output - value: 4 - - name: LSI - description: LSI selected for micro-controller clock output - value: 5 + - name: SYSCLK + description: System clock selected for micro-controller clock output + value: 0 + - name: PLL2_P + description: pll2_p selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_P + description: pll1_p selected for micro-controller clock output + value: 3 + - name: CSI + description: CSI selected for micro-controller clock output + value: 4 + - name: LSI + description: LSI selected for micro-controller clock output + value: 5 enum/NSPRIV: bit_size: 1 variants: - - name: B_0x0 - description: Read and write to RCC non-secure functions can be done by privileged or unprivileged access. - value: 0 - - name: B_0x1 - description: Read and write to RCC non-secure functions can be done by privileged access only - value: 1 + - name: B_0x0 + description: Read and write to RCC non-secure functions can be done by privileged or unprivileged access. + value: 0 + - name: B_0x1 + description: Read and write to RCC non-secure functions can be done by privileged access only + value: 1 enum/OCTOSPISEL: bit_size: 2 variants: - - name: RCC_HCLK4 - description: rcc_hclk4 selected as kernel clock (default after reset) - value: 0 - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock - value: 1 - - name: PLL2_R - description: pll2_r_ck selected as kernel clock - value: 2 - - name: PER_CLK - description: per_ck selected as kernel clock - value: 3 + - name: RCC_HCLK4 + description: rcc_hclk4 selected as kernel clock (default after reset) + value: 0 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock + value: 1 + - name: PLL2_R + description: pll2_r_ck selected as kernel clock + value: 2 + - name: PER_CLK + description: per_ck selected as kernel clock + value: 3 enum/PLLRGE: bit_size: 2 variants: - - name: Range1 - description: Frequency is between 1 and 2 MHz - value: 0 - - name: Range2 - description: Frequency is between 2 and 4 MHz - value: 1 - - name: Range4 - description: Frequency is between 4 and 8 MHz - value: 2 - - name: Range8 - description: Frequency is between 8 and 16 MHz - value: 3 + - name: Range1 + description: Frequency is between 1 and 2 MHz + value: 0 + - name: Range2 + description: Frequency is between 2 and 4 MHz + value: 1 + - name: Range4 + description: Frequency is between 4 and 8 MHz + value: 2 + - name: Range8 + description: Frequency is between 8 and 16 MHz + value: 3 enum/PLLSRC: bit_size: 2 variants: - - name: None - description: no clock send to DIVMx divider and PLLs (default after reset) - value: 0 - - name: HSI - description: HSI selected as PLL clock (hsi_ck) - value: 1 - - name: CSI - description: CSI selected as PLL clock (csi_ck) - value: 2 - - name: HSE - description: HSE selected as PLL clock (hse_ck) - value: 3 + - name: None + description: no clock send to DIVMx divider and PLLs (default after reset) + value: 0 + - name: HSI + description: HSI selected as PLL clock (hsi_ck) + value: 1 + - name: CSI + description: CSI selected as PLL clock (csi_ck) + value: 2 + - name: HSE + description: HSE selected as PLL clock (hse_ck) + value: 3 enum/PLLVCOSEL: bit_size: 1 variants: - - name: WideVCO - description: VCO frequency range 192 to 836 MHz - value: 0 - - name: MediumVCO - description: VCO frequency range 150 to 420 MHz - value: 1 + - name: WideVCO + description: VCO frequency range 192 to 836 MHz + value: 0 + - name: MediumVCO + description: VCO frequency range 150 to 420 MHz + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: rcc_pclk3 = rcc_hclk1 / 1 - value: 0 - - name: Div2 - description: rcc_pclk3 = rcc_hclk1 / 2 - value: 4 - - name: Div4 - description: rcc_pclk3 = rcc_hclk1 / 4 - value: 5 - - name: Div8 - description: rcc_pclk3 = rcc_hclk1 / 8 - value: 6 - - name: Div16 - description: rcc_pclk3 = rcc_hclk1 / 16 - value: 7 + - name: Div1 + description: rcc_pclk3 = rcc_hclk1 / 1 + value: 0 + - name: Div2 + description: rcc_pclk3 = rcc_hclk1 / 2 + value: 4 + - name: Div4 + description: rcc_pclk3 = rcc_hclk1 / 4 + value: 5 + - name: Div8 + description: rcc_pclk3 = rcc_hclk1 / 8 + value: 6 + - name: Div16 + description: rcc_pclk3 = rcc_hclk1 / 16 + value: 7 enum/RNGSEL: bit_size: 2 variants: - - name: HSI48_KER - description: hsi48_ker_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock - value: 1 - - name: LSE - description: lse_ck selected as kernel clock - value: 2 - - name: LSI_KER - description: lsi_ker_ck selected as kernel clock - value: 3 + - name: HSI48_KER + description: hsi48_ker_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock + value: 1 + - name: LSE + description: lse_ck selected as kernel clock + value: 2 + - name: LSI_KER + description: lsi_ker_ck selected as kernel clock + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: None - description: no clock (default after Backup domain reset) - value: 0 - - name: LSE - description: LSE selected as RTC clock - value: 1 - - name: LSI - description: LSI selected as RTC clock - value: 2 - - name: HSE_DIV_RTCPRE - description: HSE divided by RTCPRE value selected as RTC clock - value: 3 + - name: None + description: no clock (default after Backup domain reset) + value: 0 + - name: LSE + description: LSE selected as RTC clock + value: 1 + - name: LSI + description: LSI selected as RTC clock + value: 2 + - name: HSE_DIV_RTCPRE + description: HSE divided by RTCPRE value selected as RTC clock + value: 3 enum/SAISEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL2_P - description: pll2_p_ck selected as kernel clock - value: 1 - - name: PLL3_P - description: pll3_p_ck selected as kernel clock - value: 2 - - name: AUDIOCLK - description: AUDIOCLK selected as kernel clock - value: 3 - - name: PER - description: per_ck selected as kernel clock - value: 4 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL2_P + description: pll2_p_ck selected as kernel clock + value: 1 + - name: PLL3_P + description: pll3_p_ck selected as kernel clock + value: 2 + - name: AUDIOCLK + description: AUDIOCLK selected as kernel clock + value: 3 + - name: PER + description: per_ck selected as kernel clock + value: 4 enum/SDMMCSEL: bit_size: 1 variants: - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL2_R - description: pll2_r_ck selected as kernel clock - value: 1 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL2_R + description: pll2_r_ck selected as kernel clock + value: 1 enum/SEC: bit_size: 1 variants: - - name: NonSecure - description: non secure - value: 0 - - name: Secure - description: secure - value: 1 + - name: NonSecure + description: non secure + value: 0 + - name: Secure + description: secure + value: 1 enum/SPI1SEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL2_P - description: pll2_p_ck selected as kernel clock - value: 1 - - name: PLL3_P - description: pll3_p_ck selected as kernel clock - value: 2 - - name: AUDIOCLK - description: AUDIOCLK selected as kernel clock - value: 3 - - name: PER - description: per_ck selected as kernel clock - value: 4 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL2_P + description: pll2_p_ck selected as kernel clock + value: 1 + - name: PLL3_P + description: pll3_p_ck selected as kernel clock + value: 2 + - name: AUDIOCLK + description: AUDIOCLK selected as kernel clock + value: 3 + - name: PER + description: per_ck selected as kernel clock + value: 4 enum/SPI2SEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL2_P - description: pll2_p_ck selected as kernel clock - value: 1 - - name: PLL3_P - description: pll3_p_ck selected as kernel clock - value: 2 - - name: AUDIOCLK - description: AUDIOCLK selected as kernel clock - value: 3 - - name: PER - description: per_ck selected as kernel clock - value: 4 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL2_P + description: pll2_p_ck selected as kernel clock + value: 1 + - name: PLL3_P + description: pll3_p_ck selected as kernel clock + value: 2 + - name: AUDIOCLK + description: AUDIOCLK selected as kernel clock + value: 3 + - name: PER + description: per_ck selected as kernel clock + value: 4 enum/SPI3SEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL2_P - description: pll2_p_ck selected as kernel clock - value: 1 - - name: PLL3_P - description: pll3_p_ck selected as kernel clock - value: 2 - - name: AUDIOCLK - description: AUDIOCLK selected as kernel clock - value: 3 - - name: PER - description: per_ck selected as kernel clock - value: 4 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL2_P + description: pll2_p_ck selected as kernel clock + value: 1 + - name: PLL3_P + description: pll3_p_ck selected as kernel clock + value: 2 + - name: AUDIOCLK + description: AUDIOCLK selected as kernel clock + value: 3 + - name: PER + description: per_ck selected as kernel clock + value: 4 enum/SPI4SEL: bit_size: 3 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as kernel clock (default after reset) - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as kernel clock (default after reset) + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/SPI5SEL: bit_size: 3 variants: - - name: RCC_PCLK3 - description: rcc_pclk3 selected as kernel clock (default after reset) - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: RCC_PCLK3 + description: rcc_pclk3 selected as kernel clock (default after reset) + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/SPI6SEL: bit_size: 3 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/SPRIV: bit_size: 1 variants: - - name: Any - description: Read and write to RCC secure functions can be done by privileged or unprivileged access. - value: 0 - - name: Privileged - description: Read and write to RCC secure functions can be done by privileged access only - value: 1 + - name: Any + description: Read and write to RCC secure functions can be done by privileged or unprivileged access. + value: 0 + - name: Privileged + description: Read and write to RCC secure functions can be done by privileged access only + value: 1 enum/STOPKERWUCK: bit_size: 1 variants: - - name: HSI - description: HSI selected as wakeup clock from system Stop (default after reset) - value: 0 - - name: CSI - description: CSI selected as wakeup clock from system Stop - value: 1 + - name: HSI + description: HSI selected as wakeup clock from system Stop (default after reset) + value: 0 + - name: CSI + description: CSI selected as wakeup clock from system Stop + value: 1 enum/STOPWUCK: bit_size: 1 variants: - - name: CSI - description: CSI selected as wakeup clock from system Stop - value: 1 + - name: CSI + description: CSI selected as wakeup clock from system Stop + value: 1 enum/SW: bit_size: 3 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: CSI - description: CSI selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL1 - description: PLL1 selected as system clock - value: 3 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: CSI + description: CSI selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL1 + description: PLL1 selected as system clock + value: 3 enum/SYSTICKSEL: bit_size: 2 variants: - - name: HCLK_DIV_8 - description: rcc_hclk/8 selected as clock source (default after reset) - value: 0 - - name: LSI_KER - description: "lsi_ker_ck[1] selected as clock source" - value: 1 - - name: LSE - description: "lse_ck[1] selected as clock source" - value: 2 + - name: HCLK_DIV_8 + description: rcc_hclk/8 selected as clock source (default after reset) + value: 0 + - name: LSI_KER + description: lsi_ker_ck[1] selected as clock source + value: 1 + - name: LSE + description: lse_ck[1] selected as clock source + value: 2 enum/TIMICSEL: bit_size: 1 variants: - - name: B_0x0 - description: No internal clock available for timers input capture (default after reset) - value: 0 - - name: B_0x1 - description: "hsi_ker_ck/1024, hsi_ker_ck/8 and csi_ker_ck/128 selected for timers input capture" - value: 1 + - name: B_0x0 + description: No internal clock available for timers input capture (default after reset) + value: 0 + - name: B_0x1 + description: hsi_ker_ck/1024, hsi_ker_ck/8 and csi_ker_ck/128 selected for timers input capture + value: 1 enum/TIMPRE: bit_size: 1 variants: - - name: DefaultX2 - description: "The timers kernel clock is equal to rcc_hclk1 if PPRE1 or PPRE2 corresponds to a division by 1 or 2, else it is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 (default after reset)" - value: 0 - - name: DefaultX4 - description: "The timers kernel clock is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 if PPRE1 or PPRE2 corresponds to a division by 1, 2 or 4, else it is equal to 4 x Frcc_pclk1 or 4 x Frcc_pclk2" - value: 1 + - name: DefaultX2 + description: The timers kernel clock is equal to rcc_hclk1 if PPRE1 or PPRE2 corresponds to a division by 1 or 2, else it is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 (default after reset) + value: 0 + - name: DefaultX4 + description: The timers kernel clock is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 if PPRE1 or PPRE2 corresponds to a division by 1, 2 or 4, else it is equal to 4 x Frcc_pclk1 or 4 x Frcc_pclk2 + value: 1 enum/UARTSEL: bit_size: 3 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USARTSEL: bit_size: 3 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USBSEL: bit_size: 2 variants: - - name: DISABLE - description: Disable the kernel clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI48 - description: HSI48 selected as peripheral clock - value: 3 + - name: DISABLE + description: Disable the kernel clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI48 + description: HSI48 selected as peripheral clock + value: 3 diff --git a/data/registers/rcc_h50.yaml b/data/registers/rcc_h50.yaml index 9fb305f..21542a0 100644 --- a/data/registers/rcc_h50.yaml +++ b/data/registers/rcc_h50.yaml @@ -1,1751 +1,1750 @@ ---- block/RCC: description: Reset and clock controller items: - - name: CR - description: RCC clock control register - byte_offset: 0 - fieldset: CR - - name: HSICFGR - description: RCC HSI calibration register - byte_offset: 16 - fieldset: HSICFGR - - name: CRRCR - description: RCC clock recovery RC register - byte_offset: 20 - fieldset: CRRCR - - name: CSICFGR - description: RCC CSI calibration register - byte_offset: 24 - fieldset: CSICFGR - - name: CFGR - description: RCC clock configuration register - byte_offset: 28 - fieldset: CFGR - - name: CFGR2 - description: RCC CPU domain clock configuration register 2 - byte_offset: 32 - fieldset: CFGR2 - - name: PLLCFGR - description: RCC PLL clock source selection register - array: - len: 2 - stride: 4 - byte_offset: 40 - fieldset: PLLCFGR - - name: PLLDIVR - description: RCC PLL1 dividers register - array: - len: 2 - stride: 8 - byte_offset: 52 - fieldset: PLLDIVR - - name: PLLFRACR - description: RCC PLL1 fractional divider register - array: - len: 2 - stride: 8 - byte_offset: 56 - fieldset: PLLFRACR - - name: CIER - description: RCC clock source interrupt enable register - byte_offset: 80 - fieldset: CIER - - name: CIFR - description: RCC clock source interrupt flag register - byte_offset: 84 - fieldset: CIFR - - name: CICR - description: RCC clock source interrupt clear register - byte_offset: 88 - fieldset: CICR - - name: AHB1RSTR - description: RCC AHB1 reset register - byte_offset: 96 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: RCC AHB2 peripheral reset register - byte_offset: 100 - fieldset: AHB2RSTR - - name: APB1LRSTR - description: RCC APB1 peripheral low reset register - byte_offset: 116 - fieldset: APB1LRSTR - - name: APB1HRSTR - description: RCC APB1 peripheral high reset register - byte_offset: 120 - fieldset: APB1HRSTR - - name: APB2RSTR - description: RCC APB2 peripheral reset register - byte_offset: 124 - fieldset: APB2RSTR - - name: APB3RSTR - description: RCC APB3 peripheral reset register - byte_offset: 128 - fieldset: APB3RSTR - - name: AHB1ENR - description: RCC AHB1 peripherals clock register - byte_offset: 136 - fieldset: AHB1ENR - - name: AHB2ENR - description: RCC AHB2 peripheral clock register - byte_offset: 140 - fieldset: AHB2ENR - - name: APB1LENR - description: RCC APB1 peripheral clock register - byte_offset: 156 - fieldset: APB1LENR - - name: APB1HENR - description: RCC APB1 peripheral clock register - byte_offset: 160 - fieldset: APB1HENR - - name: APB2ENR - description: RCC APB2 peripheral clock register - byte_offset: 164 - fieldset: APB2ENR - - name: APB3ENR - description: RCC APB3 peripheral clock register - byte_offset: 168 - fieldset: APB3ENR - - name: AHB1LPENR - description: RCC AHB1 sleep clock register - byte_offset: 176 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: RCC AHB2 sleep clock register - byte_offset: 180 - fieldset: AHB2LPENR - - name: APB1LLPENR - description: RCC APB1 sleep clock register - byte_offset: 196 - fieldset: APB1LLPENR - - name: APB1HLPENR - description: RCC APB1 sleep clock register - byte_offset: 200 - fieldset: APB1HLPENR - - name: APB2LPENR - description: RCC APB2 sleep clock register - byte_offset: 204 - fieldset: APB2LPENR - - name: APB3LPENR - description: RCC APB3 sleep clock register - byte_offset: 208 - fieldset: APB3LPENR - - name: CCIPR1 - description: RCC kernel clock configuration register - byte_offset: 216 - fieldset: CCIPR1 - - name: CCIPR2 - description: RCC kernel clock configuration register - byte_offset: 220 - fieldset: CCIPR2 - - name: CCIPR3 - description: RCC kernel clock configuration register - byte_offset: 224 - fieldset: CCIPR3 - - name: CCIPR4 - description: RCC kernel clock configuration register - byte_offset: 228 - fieldset: CCIPR4 - - name: CCIPR5 - description: RCC kernel clock configuration register - byte_offset: 232 - fieldset: CCIPR5 - - name: BDCR - description: RCC Backup domain control register - byte_offset: 240 - fieldset: BDCR - - name: RSR - description: RCC reset status register - byte_offset: 244 - fieldset: RSR + - name: CR + description: RCC clock control register + byte_offset: 0 + fieldset: CR + - name: HSICFGR + description: RCC HSI calibration register + byte_offset: 16 + fieldset: HSICFGR + - name: CRRCR + description: RCC clock recovery RC register + byte_offset: 20 + fieldset: CRRCR + - name: CSICFGR + description: RCC CSI calibration register + byte_offset: 24 + fieldset: CSICFGR + - name: CFGR + description: RCC clock configuration register + byte_offset: 28 + fieldset: CFGR + - name: CFGR2 + description: RCC CPU domain clock configuration register 2 + byte_offset: 32 + fieldset: CFGR2 + - name: PLLCFGR + description: RCC PLL clock source selection register + array: + len: 2 + stride: 4 + byte_offset: 40 + fieldset: PLLCFGR + - name: PLLDIVR + description: RCC PLL1 dividers register + array: + len: 2 + stride: 8 + byte_offset: 52 + fieldset: PLLDIVR + - name: PLLFRACR + description: RCC PLL1 fractional divider register + array: + len: 2 + stride: 8 + byte_offset: 56 + fieldset: PLLFRACR + - name: CIER + description: RCC clock source interrupt enable register + byte_offset: 80 + fieldset: CIER + - name: CIFR + description: RCC clock source interrupt flag register + byte_offset: 84 + fieldset: CIFR + - name: CICR + description: RCC clock source interrupt clear register + byte_offset: 88 + fieldset: CICR + - name: AHB1RSTR + description: RCC AHB1 reset register + byte_offset: 96 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: RCC AHB2 peripheral reset register + byte_offset: 100 + fieldset: AHB2RSTR + - name: APB1LRSTR + description: RCC APB1 peripheral low reset register + byte_offset: 116 + fieldset: APB1LRSTR + - name: APB1HRSTR + description: RCC APB1 peripheral high reset register + byte_offset: 120 + fieldset: APB1HRSTR + - name: APB2RSTR + description: RCC APB2 peripheral reset register + byte_offset: 124 + fieldset: APB2RSTR + - name: APB3RSTR + description: RCC APB3 peripheral reset register + byte_offset: 128 + fieldset: APB3RSTR + - name: AHB1ENR + description: RCC AHB1 peripherals clock register + byte_offset: 136 + fieldset: AHB1ENR + - name: AHB2ENR + description: RCC AHB2 peripheral clock register + byte_offset: 140 + fieldset: AHB2ENR + - name: APB1LENR + description: RCC APB1 peripheral clock register + byte_offset: 156 + fieldset: APB1LENR + - name: APB1HENR + description: RCC APB1 peripheral clock register + byte_offset: 160 + fieldset: APB1HENR + - name: APB2ENR + description: RCC APB2 peripheral clock register + byte_offset: 164 + fieldset: APB2ENR + - name: APB3ENR + description: RCC APB3 peripheral clock register + byte_offset: 168 + fieldset: APB3ENR + - name: AHB1LPENR + description: RCC AHB1 sleep clock register + byte_offset: 176 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: RCC AHB2 sleep clock register + byte_offset: 180 + fieldset: AHB2LPENR + - name: APB1LLPENR + description: RCC APB1 sleep clock register + byte_offset: 196 + fieldset: APB1LLPENR + - name: APB1HLPENR + description: RCC APB1 sleep clock register + byte_offset: 200 + fieldset: APB1HLPENR + - name: APB2LPENR + description: RCC APB2 sleep clock register + byte_offset: 204 + fieldset: APB2LPENR + - name: APB3LPENR + description: RCC APB3 sleep clock register + byte_offset: 208 + fieldset: APB3LPENR + - name: CCIPR1 + description: RCC kernel clock configuration register + byte_offset: 216 + fieldset: CCIPR1 + - name: CCIPR2 + description: RCC kernel clock configuration register + byte_offset: 220 + fieldset: CCIPR2 + - name: CCIPR3 + description: RCC kernel clock configuration register + byte_offset: 224 + fieldset: CCIPR3 + - name: CCIPR4 + description: RCC kernel clock configuration register + byte_offset: 228 + fieldset: CCIPR4 + - name: CCIPR5 + description: RCC kernel clock configuration register + byte_offset: 232 + fieldset: CCIPR5 + - name: BDCR + description: RCC Backup domain control register + byte_offset: 240 + fieldset: BDCR + - name: RSR + description: RCC reset status register + byte_offset: 244 + fieldset: RSR fieldset/AHB1ENR: description: RCC AHB1 peripherals clock register fields: - - name: GPDMA1EN - description: "GPDMA1 clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPDMA2EN - description: "GPDMA2 clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: FLITFEN - description: "Flash interface clock enable\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: "CRC clock enable\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: RAMCFGEN - description: "RAMCFG clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: BKPRAMEN - description: "BKPRAM clock enable\r Set and reset by software" - bit_offset: 28 - bit_size: 1 - - name: SRAM1EN - description: "SRAM1 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: GPDMA1EN + description: "GPDMA1 clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPDMA2EN + description: "GPDMA2 clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: FLITFEN + description: "Flash interface clock enable\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: "CRC clock enable\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: RAMCFGEN + description: "RAMCFG clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: BKPRAMEN + description: "BKPRAM clock enable\r Set and reset by software" + bit_offset: 28 + bit_size: 1 + - name: SRAM1EN + description: "SRAM1 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB1LPENR: description: RCC AHB1 sleep clock register fields: - - name: GPDMA1LPEN - description: "GPDMA1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPDMA2LPEN - description: "GPDMA2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: FLITFLPEN - description: "Flash interface (FLITF) clock enable during sleep mode\r Set and reset by software." - bit_offset: 8 - bit_size: 1 - - name: CRCLPEN - description: "CRC clock enable during sleep mode\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: RAMCFGLPEN - description: "RAMCFG clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: BKPRAMLPEN - description: "BKPRAM clock enable during sleep mode\r Set and reset by software" - bit_offset: 28 - bit_size: 1 - - name: ICACHELPEN - description: "ICACHE clock enable during sleep mode\r Set and reset by software" - bit_offset: 29 - bit_size: 1 - - name: SRAM1LPEN - description: "SRAM1 clock enable during sleep mode\r Set and reset by software" - bit_offset: 31 - bit_size: 1 + - name: GPDMA1LPEN + description: "GPDMA1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPDMA2LPEN + description: "GPDMA2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: FLITFLPEN + description: "Flash interface (FLITF) clock enable during sleep mode\r Set and reset by software." + bit_offset: 8 + bit_size: 1 + - name: CRCLPEN + description: "CRC clock enable during sleep mode\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: RAMCFGLPEN + description: "RAMCFG clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: BKPRAMLPEN + description: "BKPRAM clock enable during sleep mode\r Set and reset by software" + bit_offset: 28 + bit_size: 1 + - name: ICACHELPEN + description: "ICACHE clock enable during sleep mode\r Set and reset by software" + bit_offset: 29 + bit_size: 1 + - name: SRAM1LPEN + description: "SRAM1 clock enable during sleep mode\r Set and reset by software" + bit_offset: 31 + bit_size: 1 fieldset/AHB1RSTR: description: RCC AHB1 reset register fields: - - name: GPDMA1RST - description: "GPDMA1 block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPDMA2RST - description: "GPDMA2 block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: CRCRST - description: CRC block reset Set and reset by software. - bit_offset: 12 - bit_size: 1 - - name: RAMCFGRST - description: "RAMCFG block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 + - name: GPDMA1RST + description: "GPDMA1 block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPDMA2RST + description: "GPDMA2 block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: CRCRST + description: CRC block reset Set and reset by software. + bit_offset: 12 + bit_size: 1 + - name: RAMCFGRST + description: "RAMCFG block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 fieldset/AHB2ENR: description: RCC AHB2 peripheral clock register fields: - - name: GPIOAEN - description: "GPIOA clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: "GPIOB clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: "GPIOC clock enable\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: "GPIOD clock enable\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOHEN - description: "GPIOH clock enable\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: ADC1EN - description: "ADC1 peripherals clock enabled\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - - name: DAC12EN - description: "DAC clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: HASHEN - description: "HASH clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: "RNG clock enable\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: SRAM2EN - description: "SRAM2 clock enable\r Set and reset by software." - bit_offset: 30 - bit_size: 1 + - name: GPIOAEN + description: "GPIOA clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: "GPIOB clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: "GPIOC clock enable\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: "GPIOD clock enable\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOHEN + description: "GPIOH clock enable\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: ADC1EN + description: "ADC1 peripherals clock enabled\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + - name: DAC12EN + description: "DAC clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: HASHEN + description: "HASH clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: "RNG clock enable\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: SRAM2EN + description: "SRAM2 clock enable\r Set and reset by software." + bit_offset: 30 + bit_size: 1 fieldset/AHB2LPENR: description: RCC AHB2 sleep clock register fields: - - name: GPIOALPEN - description: "GPIOA clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: "GPIOB clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: "GPIOC clock enable during sleep mode\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: "GPIOD clock enable during sleep mode\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOHLPEN - description: "GPIOH clock enable during sleep mode\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: ADC1LPEN - description: "ADC1 peripherals clock enable during sleep mode\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - - name: DAC12LPEN - description: "DAC clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: HASHLPEN - description: "HASH clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: RNGLPEN - description: "RNG clock enable during sleep mode\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: SRAM2LPEN - description: "SRAM2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 30 - bit_size: 1 + - name: GPIOALPEN + description: "GPIOA clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: "GPIOB clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: "GPIOC clock enable during sleep mode\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: "GPIOD clock enable during sleep mode\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOHLPEN + description: "GPIOH clock enable during sleep mode\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: ADC1LPEN + description: "ADC1 peripherals clock enable during sleep mode\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + - name: DAC12LPEN + description: "DAC clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: HASHLPEN + description: "HASH clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: RNGLPEN + description: "RNG clock enable during sleep mode\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: SRAM2LPEN + description: "SRAM2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 30 + bit_size: 1 fieldset/AHB2RSTR: description: RCC AHB2 peripheral reset register fields: - - name: GPIOARST - description: "GPIOA block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: "GPIOB block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: "GPIOC block reset\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: "GPIOD block reset\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOHRST - description: "GPIOH block reset\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - - name: ADC1RST - description: "ADC1 block reset\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - - name: DAC12RST - description: "DAC block reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: HASHRST - description: "HASH block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: "RNG block reset\r Set and reset by software." - bit_offset: 18 - bit_size: 1 + - name: GPIOARST + description: "GPIOA block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: "GPIOB block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: "GPIOC block reset\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: "GPIOD block reset\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOHRST + description: "GPIOH block reset\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: ADC1RST + description: "ADC1 block reset\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + - name: DAC12RST + description: "DAC block reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: HASHRST + description: "HASH block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: "RNG block reset\r Set and reset by software." + bit_offset: 18 + bit_size: 1 fieldset/APB1HENR: description: RCC APB1 peripheral clock register fields: - - name: DTSEN - description: "DTS clock enable\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: LPTIM2EN - description: "LPTIM2 clock enable\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: FDCAN1EN - description: "FDCAN1 peripheral clock enable\r Set and reset by software." - bit_offset: 9 - bit_size: 1 + - name: DTSEN + description: "DTS clock enable\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LPTIM2EN + description: "LPTIM2 clock enable\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: FDCAN1EN + description: "FDCAN1 peripheral clock enable\r Set and reset by software." + bit_offset: 9 + bit_size: 1 fieldset/APB1HLPENR: description: RCC APB1 sleep clock register fields: - - name: DTSLPEN - description: "DTS clock enable during sleep mode\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: LPTIM2LPEN - description: "LPTIM2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: FDCAN1LPEN - description: "FDCAN1 peripheral clock enable during sleep mode\r Set and reset by software." - bit_offset: 9 - bit_size: 1 + - name: DTSLPEN + description: "DTS clock enable during sleep mode\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LPTIM2LPEN + description: "LPTIM2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: FDCAN1LPEN + description: "FDCAN1 peripheral clock enable during sleep mode\r Set and reset by software." + bit_offset: 9 + bit_size: 1 fieldset/APB1HRSTR: description: RCC APB1 peripheral high reset register fields: - - name: DTSRST - description: "DTS block reset\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: LPTIM2RST - description: "LPTIM2 block reset\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: FDCAN1RST - description: "FDCAN1 block reset\r Set and reset by software." - bit_offset: 9 - bit_size: 1 + - name: DTSRST + description: "DTS block reset\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LPTIM2RST + description: "LPTIM2 block reset\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: FDCAN1RST + description: "FDCAN1 block reset\r Set and reset by software." + bit_offset: 9 + bit_size: 1 fieldset/APB1LENR: description: RCC APB1 peripheral clock register fields: - - name: TIM2EN - description: "TIM2 clock enable\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: "TIM3 clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: TIM6EN - description: "TIM6 clock enable\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: "TIM7 clock enable\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: WWDGEN - description: "WWDG clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: OPAMPEN - description: "OPAMP clock enable\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: SPI2EN - description: "SPI2 clock enable\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: "SPI3 clock enable\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: COMPEN - description: "COMP clock enable\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: "USART2 clock enable\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: "USART3 clock enable\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: I2C1EN - description: "I2C1 clock enable\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: "I2C2 clock enable\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: I3C1EN - description: "I3C1 clock enable\r Set and reset by software." - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: "CRS clock enable\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM2EN + description: "TIM2 clock enable\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: "TIM3 clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: TIM6EN + description: "TIM6 clock enable\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: "TIM7 clock enable\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: WWDGEN + description: "WWDG clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: OPAMPEN + description: "OPAMP clock enable\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: SPI2EN + description: "SPI2 clock enable\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: "SPI3 clock enable\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: COMPEN + description: "COMP clock enable\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: "USART2 clock enable\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: "USART3 clock enable\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: I2C1EN + description: "I2C1 clock enable\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: "I2C2 clock enable\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: I3C1EN + description: "I3C1 clock enable\r Set and reset by software." + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: "CRS clock enable\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB1LLPENR: description: RCC APB1 sleep clock register fields: - - name: TIM2LPEN - description: "TIM2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: "TIM3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: TIM6LPEN - description: "TIM6 clock enable during sleep mode\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: "TIM7 clock enable during sleep mode\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: WWDGLPEN - description: "WWDG clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: OPAMPLPEN - description: "OPAMP clock enable during sleep mode\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: SPI2LPEN - description: "SPI2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: "SPI3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: COMPLPEN - description: "COMP clock enable during sleep mode\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: USART2LPEN - description: "USART2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: "USART3 clock enable during sleep mode\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: I2C1LPEN - description: "I2C1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: "I2C2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: I3C1LPEN - description: "I3C1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 23 - bit_size: 1 - - name: CRSLPEN - description: "CRS clock enable during sleep mode\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM2LPEN + description: "TIM2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: "TIM3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: TIM6LPEN + description: "TIM6 clock enable during sleep mode\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: "TIM7 clock enable during sleep mode\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: WWDGLPEN + description: "WWDG clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: OPAMPLPEN + description: "OPAMP clock enable during sleep mode\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: SPI2LPEN + description: "SPI2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: "SPI3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: COMPLPEN + description: "COMP clock enable during sleep mode\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: USART2LPEN + description: "USART2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: "USART3 clock enable during sleep mode\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: I2C1LPEN + description: "I2C1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: "I2C2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: I3C1LPEN + description: "I3C1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 23 + bit_size: 1 + - name: CRSLPEN + description: "CRS clock enable during sleep mode\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB1LRSTR: description: RCC APB1 peripheral low reset register fields: - - name: TIM2RST - description: "TIM2 block reset\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: "TIM3 block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: TIM6RST - description: "TIM6 block reset\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: "TIM7 block reset\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - - name: OPAMPRST - description: "OPAMP block reset\r Set and reset by software." - bit_offset: 13 - bit_size: 1 - - name: SPI2RST - description: "SPI2 block reset\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: "SPI3 block reset\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: COMPRST - description: "COMP block reset\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: USART2RST - description: "USART2 block reset\r Set and reset by software." - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: "USART3 block reset\r Set and reset by software." - bit_offset: 18 - bit_size: 1 - - name: I2C1RST - description: "I2C1 block reset\r Set and reset by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: "I2C2 block reset\r Set and reset by software." - bit_offset: 22 - bit_size: 1 - - name: I3C1RST - description: "I3C1 block reset\r Set and reset by software." - bit_offset: 23 - bit_size: 1 - - name: CRSRST - description: "CRS block reset\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM2RST + description: "TIM2 block reset\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: "TIM3 block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: TIM6RST + description: "TIM6 block reset\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: "TIM7 block reset\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: OPAMPRST + description: "OPAMP block reset\r Set and reset by software." + bit_offset: 13 + bit_size: 1 + - name: SPI2RST + description: "SPI2 block reset\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: "SPI3 block reset\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: COMPRST + description: "COMP block reset\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: USART2RST + description: "USART2 block reset\r Set and reset by software." + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: "USART3 block reset\r Set and reset by software." + bit_offset: 18 + bit_size: 1 + - name: I2C1RST + description: "I2C1 block reset\r Set and reset by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: "I2C2 block reset\r Set and reset by software." + bit_offset: 22 + bit_size: 1 + - name: I3C1RST + description: "I3C1 block reset\r Set and reset by software." + bit_offset: 23 + bit_size: 1 + - name: CRSRST + description: "CRS block reset\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB2ENR: description: RCC APB2 peripheral clock register fields: - - name: TIM1EN - description: "TIM1 clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: "SPI1 clock enable\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: "USART1 clock enable\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: USBEN - description: "USB clock enable\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM1EN + description: "TIM1 clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: "SPI1 clock enable\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: "USART1 clock enable\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: USBEN + description: "USB clock enable\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB2LPENR: description: RCC APB2 sleep clock register fields: - - name: TIM1LPEN - description: "TIM1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: "SPI1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: USART1LPEN - description: "USART1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: USBLPEN - description: "USB clock enable during sleep mode\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM1LPEN + description: "TIM1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: "SPI1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: USART1LPEN + description: "USART1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: USBLPEN + description: "USB clock enable during sleep mode\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB2RSTR: description: RCC APB2 peripheral reset register fields: - - name: TIM1RST - description: "TIM1 block reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: "SPI1 block reset\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: "USART1 block reset\r Set and reset by software." - bit_offset: 14 - bit_size: 1 - - name: USBRST - description: "USB block reset\r Set and reset by software." - bit_offset: 24 - bit_size: 1 + - name: TIM1RST + description: "TIM1 block reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: "SPI1 block reset\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: "USART1 block reset\r Set and reset by software." + bit_offset: 14 + bit_size: 1 + - name: USBRST + description: "USB block reset\r Set and reset by software." + bit_offset: 24 + bit_size: 1 fieldset/APB3ENR: description: RCC APB3 peripheral clock register fields: - - name: SBSEN - description: "SBS clock enable\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: LPUART1EN - description: "LPUART1 clock enable\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: I3C2EN - description: "I3C2EN clock enable\r Set and reset by software." - bit_offset: 9 - bit_size: 1 - - name: LPTIM1EN - description: "LPTIM1 clock enable\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: VREFEN - description: "VREF clock enable\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBEN - description: "RTC APB interface clock enable\r Set and reset by software." - bit_offset: 21 - bit_size: 1 + - name: SBSEN + description: "SBS clock enable\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: LPUART1EN + description: "LPUART1 clock enable\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: I3C2EN + description: "I3C2EN clock enable\r Set and reset by software." + bit_offset: 9 + bit_size: 1 + - name: LPTIM1EN + description: "LPTIM1 clock enable\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: VREFEN + description: "VREF clock enable\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBEN + description: "RTC APB interface clock enable\r Set and reset by software." + bit_offset: 21 + bit_size: 1 fieldset/APB3LPENR: description: RCC APB3 sleep clock register fields: - - name: SBSLPEN - description: "SBS clock enable during sleep mode\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: LPUART1LPEN - description: "LPUART1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: I3C2LPEN - description: "I3C2 clock enable during sleep mode\r Set and reset by software." - bit_offset: 9 - bit_size: 1 - - name: LPTIM1LPEN - description: "LPTIM1 clock enable during sleep mode\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: VREFLPEN - description: "VREF clock enable during sleep mode\r Set and reset by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBLPEN - description: "RTC APB interface clock enable during sleep mode\r Set and reset by software." - bit_offset: 21 - bit_size: 1 + - name: SBSLPEN + description: "SBS clock enable during sleep mode\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: LPUART1LPEN + description: "LPUART1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: I3C2LPEN + description: "I3C2 clock enable during sleep mode\r Set and reset by software." + bit_offset: 9 + bit_size: 1 + - name: LPTIM1LPEN + description: "LPTIM1 clock enable during sleep mode\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: VREFLPEN + description: "VREF clock enable during sleep mode\r Set and reset by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBLPEN + description: "RTC APB interface clock enable during sleep mode\r Set and reset by software." + bit_offset: 21 + bit_size: 1 fieldset/APB3RSTR: description: RCC APB3 peripheral reset register fields: - - name: SBSRST - description: "SBS block reset\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - - name: LPUART1RST - description: "LPUART1 block reset\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - - name: I3C2RST - description: "I3C2RST block reset\r Set and reset by software." - bit_offset: 9 - bit_size: 1 - - name: LPTIM1RST - description: "LPTIM1 block reset\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - - name: VREFRST - description: "VREF block reset\r Set and reset by software." - bit_offset: 20 - bit_size: 1 + - name: SBSRST + description: "SBS block reset\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: LPUART1RST + description: "LPUART1 block reset\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: I3C2RST + description: "I3C2RST block reset\r Set and reset by software." + bit_offset: 9 + bit_size: 1 + - name: LPTIM1RST + description: "LPTIM1 block reset\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + - name: VREFRST + description: "VREF block reset\r Set and reset by software." + bit_offset: 20 + bit_size: 1 fieldset/BDCR: description: RCC Backup domain control register fields: - - name: LSEON - description: "LSE oscillator enabled\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: "LSE oscillator ready\r Set and reset by hardware to indicate when the LSE is stable.\r This bit needs 6 cycles of lse_ck clock to fall down after LSEON has been set to 0." - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: "LSE oscillator bypass\r Set and reset by software to bypass oscillator in debug mode. This bit must not be written when the LSE is enabled (by LSEON) or ready (LSERDY = 1)" - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: "LSE oscillator driving capability\r Set by software to select the driving capability of the LSE oscillator.\r These bit can be written only if LSE oscillator is disabled (LSEON = 0 and LSERDY = 0)." - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: "LSE clock security system enable\r Set by software to enable the clock security system on 32 kHz oscillator.\r LSECSSON must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware) and after RTCSEL is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD = 1). In that case the software must disable LSECSSON." - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: "LSE clock security system failure detection\r Set by hardware to indicate when a failure has been detected by the clock security system on the external 32 kHz oscillator." - bit_offset: 6 - bit_size: 1 - - name: LSEEXT - description: "low-speed external clock type in bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the LSEON bit, to be used by the device.\r The LSEEXT bit can be written only if the LSE oscillator is disabled." - bit_offset: 7 - bit_size: 1 - enum: LSEEXT - - name: RTCSEL - description: "RTC clock source selection\r Set by software to select the clock source for the RTC.\r These bits can be written only one time (except in case of failure detection on LSE).\r These bits must be written before LSECSSON is enabled.\r The VSWRST bit can be used to reset them, then it can be written one time again.\r If HSE is selected as RTC clock, this clock is lost when the system is in Stop mode or in case of a pin reset (NRST)." - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: "RTC clock enable\r Set and reset by software." - bit_offset: 15 - bit_size: 1 - - name: VSWRST - description: "VSwitch domain software reset\r Set and reset by software." - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: "Low-speed clock output selection\r Set and cleared by software." - bit_offset: 25 - bit_size: 1 - enum: LSCOSEL - - name: LSION - description: "LSI oscillator enable\r Set and cleared by software." - bit_offset: 26 - bit_size: 1 - - name: LSIRDY - description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is stable.\r After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles.\r This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0." - bit_offset: 27 - bit_size: 1 + - name: LSEON + description: "LSE oscillator enabled\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: "LSE oscillator ready\r Set and reset by hardware to indicate when the LSE is stable.\r This bit needs 6 cycles of lse_ck clock to fall down after LSEON has been set to 0." + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: "LSE oscillator bypass\r Set and reset by software to bypass oscillator in debug mode. This bit must not be written when the LSE is enabled (by LSEON) or ready (LSERDY = 1)" + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: "LSE oscillator driving capability\r Set by software to select the driving capability of the LSE oscillator.\r These bit can be written only if LSE oscillator is disabled (LSEON = 0 and LSERDY = 0)." + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: "LSE clock security system enable\r Set by software to enable the clock security system on 32 kHz oscillator.\r LSECSSON must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware) and after RTCSEL is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD = 1). In that case the software must disable LSECSSON." + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: "LSE clock security system failure detection\r Set by hardware to indicate when a failure has been detected by the clock security system on the external 32 kHz oscillator." + bit_offset: 6 + bit_size: 1 + - name: LSEEXT + description: "low-speed external clock type in bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the LSEON bit, to be used by the device.\r The LSEEXT bit can be written only if the LSE oscillator is disabled." + bit_offset: 7 + bit_size: 1 + enum: LSEEXT + - name: RTCSEL + description: "RTC clock source selection\r Set by software to select the clock source for the RTC.\r These bits can be written only one time (except in case of failure detection on LSE).\r These bits must be written before LSECSSON is enabled.\r The VSWRST bit can be used to reset them, then it can be written one time again.\r If HSE is selected as RTC clock, this clock is lost when the system is in Stop mode or in case of a pin reset (NRST)." + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: "RTC clock enable\r Set and reset by software." + bit_offset: 15 + bit_size: 1 + - name: VSWRST + description: "VSwitch domain software reset\r Set and reset by software." + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: "Low-speed clock output selection\r Set and cleared by software." + bit_offset: 25 + bit_size: 1 + enum: LSCOSEL + - name: LSION + description: "LSI oscillator enable\r Set and cleared by software." + bit_offset: 26 + bit_size: 1 + - name: LSIRDY + description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is stable.\r After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles.\r This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0." + bit_offset: 27 + bit_size: 1 fieldset/CCIPR1: description: RCC kernel clock configuration register fields: - - name: USART1SEL - description: "USART1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: USARTSEL - - name: USART2SEL - description: "USART2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 3 - bit_size: 3 - enum: USARTSEL - - name: USART3SEL - description: "USART3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 6 - bit_size: 3 - enum: USARTSEL - - name: TIMICSEL - description: "TIM2, TIM3 and LPTIM2 input capture source selection\r Set and reset by software." - bit_offset: 31 - bit_size: 1 - enum: TIMICSEL + - name: USART1SEL + description: "USART1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: USARTSEL + - name: USART2SEL + description: "USART2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 3 + bit_size: 3 + enum: USARTSEL + - name: USART3SEL + description: "USART3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 6 + bit_size: 3 + enum: USARTSEL + - name: TIMICSEL + description: "TIM2, TIM3 and LPTIM2 input capture source selection\r Set and reset by software." + bit_offset: 31 + bit_size: 1 + enum: TIMICSEL fieldset/CCIPR2: description: RCC kernel clock configuration register fields: - - name: LPTIM1SEL - description: "LPTIM1 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 8 - bit_size: 3 - enum: LPTIMSEL - - name: LPTIM2SEL - description: "LPTIM2 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 12 - bit_size: 3 - enum: LPTIMSEL + - name: LPTIM1SEL + description: "LPTIM1 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 8 + bit_size: 3 + enum: LPTIMSEL + - name: LPTIM2SEL + description: "LPTIM2 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 12 + bit_size: 3 + enum: LPTIMSEL fieldset/CCIPR3: description: RCC kernel clock configuration register fields: - - name: SPI1SEL - description: "SPI1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: SPISEL - - name: SPI2SEL - description: "SPI2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 3 - bit_size: 3 - enum: SPISEL - - name: SPI3SEL - description: "SPI3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" - bit_offset: 6 - bit_size: 3 - enum: SPISEL - - name: LPUART1SEL - description: "LPUART1 kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 24 - bit_size: 3 - enum: LPUARTSEL + - name: SPI1SEL + description: "SPI1 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: SPISEL + - name: SPI2SEL + description: "SPI2 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 3 + bit_size: 3 + enum: SPISEL + - name: SPI3SEL + description: "SPI3 kernel clock source selection\r Set and reset by software.\r others: reserved, the kernel clock is disabled" + bit_offset: 6 + bit_size: 3 + enum: SPISEL + - name: LPUART1SEL + description: "LPUART1 kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 24 + bit_size: 3 + enum: LPUARTSEL fieldset/CCIPR4: description: RCC kernel clock configuration register fields: - - name: SYSTICKSEL - description: "SYSTICK clock source selection\r Note: rcc_hclk frequency must be four times higher than\r lsi_ker_ck/lse_ck (period (LSI/LSE) ≥ 4 * period (HCLK)." - bit_offset: 2 - bit_size: 2 - enum: SYSTICKSEL - - name: USBSEL - description: USB kernel clock source selection - bit_offset: 4 - bit_size: 2 - enum: USBSEL - - name: I2C1SEL - description: I2C1 kernel clock source selection - bit_offset: 16 - bit_size: 2 - enum: ICSEL - - name: I2C2SEL - description: I2C2 kernel clock source selection - bit_offset: 18 - bit_size: 2 - enum: ICSEL - - name: I3C1SEL - description: I3C1 kernel clock source selection - bit_offset: 24 - bit_size: 2 - enum: ICSEL - - name: I3C2SEL - description: I3C2 kernel clock source selection - bit_offset: 26 - bit_size: 2 - enum: ICSEL + - name: SYSTICKSEL + description: "SYSTICK clock source selection\r Note: rcc_hclk frequency must be four times higher than\r lsi_ker_ck/lse_ck (period (LSI/LSE) ≥ 4 * period (HCLK)." + bit_offset: 2 + bit_size: 2 + enum: SYSTICKSEL + - name: USBSEL + description: USB kernel clock source selection + bit_offset: 4 + bit_size: 2 + enum: USBSEL + - name: I2C1SEL + description: I2C1 kernel clock source selection + bit_offset: 16 + bit_size: 2 + enum: ICSEL + - name: I2C2SEL + description: I2C2 kernel clock source selection + bit_offset: 18 + bit_size: 2 + enum: ICSEL + - name: I3C1SEL + description: I3C1 kernel clock source selection + bit_offset: 24 + bit_size: 2 + enum: ICSEL + - name: I3C2SEL + description: I3C2 kernel clock source selection + bit_offset: 26 + bit_size: 2 + enum: ICSEL fieldset/CCIPR5: description: RCC kernel clock configuration register fields: - - name: ADCDACSEL - description: "ADC and DAC kernel clock source selection\r others: reserved, the kernel clock is disabled" - bit_offset: 0 - bit_size: 3 - enum: ADCDACSEL - - name: DACSEL - description: DAC hold clock - bit_offset: 3 - bit_size: 1 - enum: DACSEL - - name: RNGSEL - description: RNG kernel clock source selection - bit_offset: 4 - bit_size: 2 - enum: RNGSEL - - name: FDCAN1SEL - description: FDCAN1 kernel clock source selection - bit_offset: 8 - bit_size: 2 - enum: FDCANSEL - - name: CKPERSEL - description: per_ck clock source selection - bit_offset: 30 - bit_size: 2 - enum: CKPERSEL + - name: ADCDACSEL + description: "ADC and DAC kernel clock source selection\r others: reserved, the kernel clock is disabled" + bit_offset: 0 + bit_size: 3 + enum: ADCDACSEL + - name: DACSEL + description: DAC hold clock + bit_offset: 3 + bit_size: 1 + enum: DACSEL + - name: RNGSEL + description: RNG kernel clock source selection + bit_offset: 4 + bit_size: 2 + enum: RNGSEL + - name: FDCAN1SEL + description: FDCAN1 kernel clock source selection + bit_offset: 8 + bit_size: 2 + enum: FDCANSEL + - name: CKPERSEL + description: per_ck clock source selection + bit_offset: 30 + bit_size: 2 + enum: CKPERSEL fieldset/CFGR: description: RCC clock configuration register fields: - - name: SW - description: "system clock and trace clock switch\r Set and reset by software to select system clock and trace clock sources (sys_ck).\r Set by hardware in order to:\r -\tforce the selection of the HSI or CSI (depending on STOPWUCK selection) when leaving a system Stop mode\r -\tforce the selection of the HSI in case of failure of the HSE when used directly or indirectly as system clock\r others: reserved" - bit_offset: 0 - bit_size: 3 - enum: SW - - name: SWS - description: "system clock switch status\r Set and reset by hardware to indicate which clock source is used as system clock. 000: HSI used as system clock (hsi_ck) (default after reset).\r others: reserved" - bit_offset: 3 - bit_size: 3 - enum: SW - - name: STOPWUCK - description: "system clock selection after a wakeup from system Stop\r Set and reset by software to select the system wakeup clock from system Stop.\r The selected clock is also used as emergency clock for the clock security system (CSS) on HSE. 0: HSI selected as wakeup clock from system Stop (default after reset)\r STOPWUCK must not be modified when CSS is enabled (by HSECSSON bit) and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW =10)." - bit_offset: 6 - bit_size: 1 - enum: STOPWUCK - - name: STOPKERWUCK - description: "kernel clock selection after a wakeup from system Stop\r Set and reset by software to select the kernel wakeup clock from system Stop." - bit_offset: 7 - bit_size: 1 - enum: STOPKERWUCK - - name: RTCPRE - description: "HSE division factor for RTC clock\r Set and cleared by software to divide the HSE to generate a clock for RTC.\r Caution: The software must set these bits correctly to ensure that the clock supplied to the RTC is lower than 1 MHz. These bits must be configured if needed before selecting the RTC clock source.\r ..." - bit_offset: 8 - bit_size: 6 - - name: TIMPRE - description: "timers clocks prescaler selection\r This bit is set and reset by software to control the clock frequency of all the timers connected to APB1 and APB2 domains." - bit_offset: 15 - bit_size: 1 - enum: TIMPRE - - name: MCO1PRE - description: "MCO1 prescaler\r Set and cleared by software to configure the prescaler of the MCO1. Modification of this prescaler may generate glitches on MCO1. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." - bit_offset: 18 - bit_size: 4 - - name: MCO1 - description: "Microcontroller clock output 1\r Set and cleared by software. Clock source selection may generate glitches on MCO1.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" - bit_offset: 22 - bit_size: 3 - enum: MCO1 - - name: MCO2PRE - description: "MCO2 prescaler\r Set and cleared by software to configure the prescaler of the MCO2. Modification of this prescaler may generate glitches on MCO2. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." - bit_offset: 25 - bit_size: 4 - - name: MCO2 - description: "microcontroller clock output 2\r Set and cleared by software. Clock source selection may generate glitches on MCO2.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" - bit_offset: 29 - bit_size: 3 - enum: MCO2 + - name: SW + description: "system clock and trace clock switch\r Set and reset by software to select system clock and trace clock sources (sys_ck).\r Set by hardware in order to:\r -\tforce the selection of the HSI or CSI (depending on STOPWUCK selection) when leaving a system Stop mode\r -\tforce the selection of the HSI in case of failure of the HSE when used directly or indirectly as system clock\r others: reserved" + bit_offset: 0 + bit_size: 3 + enum: SW + - name: SWS + description: "system clock switch status\r Set and reset by hardware to indicate which clock source is used as system clock. 000: HSI used as system clock (hsi_ck) (default after reset).\r others: reserved" + bit_offset: 3 + bit_size: 3 + enum: SW + - name: STOPWUCK + description: "system clock selection after a wakeup from system Stop\r Set and reset by software to select the system wakeup clock from system Stop.\r The selected clock is also used as emergency clock for the clock security system (CSS) on HSE. 0: HSI selected as wakeup clock from system Stop (default after reset)\r STOPWUCK must not be modified when CSS is enabled (by HSECSSON bit) and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW =10)." + bit_offset: 6 + bit_size: 1 + enum: STOPWUCK + - name: STOPKERWUCK + description: "kernel clock selection after a wakeup from system Stop\r Set and reset by software to select the kernel wakeup clock from system Stop." + bit_offset: 7 + bit_size: 1 + enum: STOPKERWUCK + - name: RTCPRE + description: "HSE division factor for RTC clock\r Set and cleared by software to divide the HSE to generate a clock for RTC.\r Caution: The software must set these bits correctly to ensure that the clock supplied to the RTC is lower than 1 MHz. These bits must be configured if needed before selecting the RTC clock source.\r ..." + bit_offset: 8 + bit_size: 6 + - name: TIMPRE + description: "timers clocks prescaler selection\r This bit is set and reset by software to control the clock frequency of all the timers connected to APB1 and APB2 domains." + bit_offset: 15 + bit_size: 1 + enum: TIMPRE + - name: MCO1PRE + description: "MCO1 prescaler\r Set and cleared by software to configure the prescaler of the MCO1. Modification of this prescaler may generate glitches on MCO1. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." + bit_offset: 18 + bit_size: 4 + - name: MCO1 + description: "Microcontroller clock output 1\r Set and cleared by software. Clock source selection may generate glitches on MCO1.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" + bit_offset: 22 + bit_size: 3 + enum: MCO1 + - name: MCO2PRE + description: "MCO2 prescaler\r Set and cleared by software to configure the prescaler of the MCO2. Modification of this prescaler may generate glitches on MCO2. It is highly recommended to change this prescaler only after reset, before enabling the external oscillators and the PLLs.\r ..." + bit_offset: 25 + bit_size: 4 + - name: MCO2 + description: "microcontroller clock output 2\r Set and cleared by software. Clock source selection may generate glitches on MCO2.\r It is highly recommended to configure these bits only after reset, before enabling the external oscillators and the PLLs.\r others: reserved" + bit_offset: 29 + bit_size: 3 + enum: MCO2 fieldset/CFGR2: description: RCC CPU domain clock configuration register 2 fields: - - name: HPRE - description: "AHB prescaler\r Set and reset by software to control the division factor of rcc_hclk. Changing\r this division ratio has an impact on the frequency of all bus matrix clocks\r 0xxx: rcc_hclk = sys_ck (default after reset)" - bit_offset: 0 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: "APB low-speed prescaler (APB1)\r Set and reset by software to control the division factor of rcc_pclk1.\r The clock is divided by the new prescaler factor from 1 to 16 cycles of rcc_hclk after PPRE write.\r 0xx: rcc_pclk1 = rcc_hclk1 (default after reset)" - bit_offset: 4 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: "APB high-speed prescaler (APB2)\r Set and reset by software to control APB high-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE2 write.\r 0xx: rcc_pclk2 = rcc_hclk1" - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE3 - description: "APB low-speed prescaler (APB3)\r Set and reset by software to control APB low-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE3 write.\r 0xx: rcc_pclk3 = rcc_hclk1" - bit_offset: 12 - bit_size: 3 - enum: PPRE - - name: AHB1DIS - description: "AHB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB1\r peripherals from RCC_AHB1ENR are used and when their clocks are disabled in\r RCC_AHB1ENR. When this bit is set, all the AHB1 peripherals clocks from\r RCC_AHB1ENR are off.\r enable control bits" - bit_offset: 16 - bit_size: 1 - - name: AHB2DIS - description: "AHB2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2\r peripherals from RCC_AHB2ENR are used and when their clocks are disabled in\r RCC_AHB2ENR. When this bit is set, all the AHB2 peripherals clocks from\r RCC_AHB2ENR are off.\r enable control bits" - bit_offset: 17 - bit_size: 1 - - name: AHB4DIS - description: "AHB4 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB4\r peripherals from RCC_AHB4ENR are used and when their clocks are disabled in\r RCC_AHB4ENR. When this bit is set, all the AHB4 peripherals clocks from\r RCC_AHB4ENR are off.\r enable control bits" - bit_offset: 19 - bit_size: 1 - - name: APB1DIS - description: "APB1 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB1\r peripherals (except IWDG) are used and when their clocks are disabled in RCC_APB1ENR.\r When this bit is set, all the APB1 peripherals clocks are off, except for IWDG.\r control bits" - bit_offset: 20 - bit_size: 1 - - name: APB2DIS - description: "APB2 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB2\r peripherals are used and when their clocks are disabled in RCC_APB2ENR. When this bit is\r set, all the APB2 peripherals clocks are off.\r control bits" - bit_offset: 21 - bit_size: 1 - - name: APB3DIS - description: "APB3 clock disable value.Set and cleared by software\r This bit can be set in order to further reduce power consumption, when none of the APB3\r peripherals are used and when their clocks are disabled in RCC_APB3ENR. When this bit is\r set, all the APB3 peripherals clocks are off.\r control bits" - bit_offset: 22 - bit_size: 1 + - name: HPRE + description: "AHB prescaler\r Set and reset by software to control the division factor of rcc_hclk. Changing\r this division ratio has an impact on the frequency of all bus matrix clocks\r 0xxx: rcc_hclk = sys_ck (default after reset)" + bit_offset: 0 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: "APB low-speed prescaler (APB1)\r Set and reset by software to control the division factor of rcc_pclk1.\r The clock is divided by the new prescaler factor from 1 to 16 cycles of rcc_hclk after PPRE write.\r 0xx: rcc_pclk1 = rcc_hclk1 (default after reset)" + bit_offset: 4 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: "APB high-speed prescaler (APB2)\r Set and reset by software to control APB high-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE2 write.\r 0xx: rcc_pclk2 = rcc_hclk1" + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE3 + description: "APB low-speed prescaler (APB3)\r Set and reset by software to control APB low-speed clocks division factor.\r The clocks are divided with the new prescaler factor from 1 to 16 APB cycles after PPRE3 write.\r 0xx: rcc_pclk3 = rcc_hclk1" + bit_offset: 12 + bit_size: 3 + enum: PPRE + - name: AHB1DIS + description: "AHB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB1\r peripherals from RCC_AHB1ENR are used and when their clocks are disabled in\r RCC_AHB1ENR. When this bit is set, all the AHB1 peripherals clocks from\r RCC_AHB1ENR are off.\r enable control bits" + bit_offset: 16 + bit_size: 1 + - name: AHB2DIS + description: "AHB2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2\r peripherals from RCC_AHB2ENR are used and when their clocks are disabled in\r RCC_AHB2ENR. When this bit is set, all the AHB2 peripherals clocks from\r RCC_AHB2ENR are off.\r enable control bits" + bit_offset: 17 + bit_size: 1 + - name: AHB4DIS + description: "AHB4 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB4\r peripherals from RCC_AHB4ENR are used and when their clocks are disabled in\r RCC_AHB4ENR. When this bit is set, all the AHB4 peripherals clocks from\r RCC_AHB4ENR are off.\r enable control bits" + bit_offset: 19 + bit_size: 1 + - name: APB1DIS + description: "APB1 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB1\r peripherals (except IWDG) are used and when their clocks are disabled in RCC_APB1ENR.\r When this bit is set, all the APB1 peripherals clocks are off, except for IWDG.\r control bits" + bit_offset: 20 + bit_size: 1 + - name: APB2DIS + description: "APB2 clock disable value\r This bit can be set in order to further reduce power consumption, when none of the APB2\r peripherals are used and when their clocks are disabled in RCC_APB2ENR. When this bit is\r set, all the APB2 peripherals clocks are off.\r control bits" + bit_offset: 21 + bit_size: 1 + - name: APB3DIS + description: "APB3 clock disable value.Set and cleared by software\r This bit can be set in order to further reduce power consumption, when none of the APB3\r peripherals are used and when their clocks are disabled in RCC_APB3ENR. When this bit is\r set, all the APB3 peripherals clocks are off.\r control bits" + bit_offset: 22 + bit_size: 1 fieldset/CICR: description: RCC clock source interrupt clear register fields: - - name: LSIRDYC - description: "LSI ready interrupt clear\r Set by software to clear LSIRDYF.\r Reset by hardware when clear done." - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: "LSE ready interrupt clear\r Set by software to clear LSERDYF.\r Reset by hardware when clear done." - bit_offset: 1 - bit_size: 1 - - name: CSIRDYC - description: "HSI ready interrupt clear\r Set by software to clear CSIRDYF.\r Reset by hardware when clear done." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: "HSI ready interrupt clear\r Set by software to clear HSIRDYF.\r Reset by hardware when clear done." - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: "HSE ready interrupt clear\r Set by software to clear HSERDYF.\r Reset by hardware when clear done." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYC - description: "HSI48 ready interrupt clear\r Set by software to clear HSI48RDYF.\r Reset by hardware when clear done." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYC - description: "PLL1 ready interrupt clear\r Set by software to clear PLL1RDYF.\r Reset by hardware when clear done." - bit_offset: 6 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: HSECSSC - description: "HSE clock security system interrupt clear\r Set by software to clear HSECSSF.\r Reset by hardware when clear done." - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: "LSI ready interrupt clear\r Set by software to clear LSIRDYF.\r Reset by hardware when clear done." + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: "LSE ready interrupt clear\r Set by software to clear LSERDYF.\r Reset by hardware when clear done." + bit_offset: 1 + bit_size: 1 + - name: CSIRDYC + description: "HSI ready interrupt clear\r Set by software to clear CSIRDYF.\r Reset by hardware when clear done." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: "HSI ready interrupt clear\r Set by software to clear HSIRDYF.\r Reset by hardware when clear done." + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: "HSE ready interrupt clear\r Set by software to clear HSERDYF.\r Reset by hardware when clear done." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYC + description: "HSI48 ready interrupt clear\r Set by software to clear HSI48RDYF.\r Reset by hardware when clear done." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYC + description: "PLL1 ready interrupt clear\r Set by software to clear PLL1RDYF.\r Reset by hardware when clear done." + bit_offset: 6 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: HSECSSC + description: "HSE clock security system interrupt clear\r Set by software to clear HSECSSF.\r Reset by hardware when clear done." + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: RCC clock source interrupt enable register fields: - - name: LSIRDYIE - description: "LSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSI oscillator stabilization." - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: "LSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSE oscillator stabilization." - bit_offset: 1 - bit_size: 1 - - name: CSIRDYIE - description: "CSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the CSI oscillator stabilization." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: "HSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI oscillator stabilization." - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: "HSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSE oscillator stabilization." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYIE - description: "HSI48 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI48 oscillator stabilization." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYIE - description: "PLL1 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by PLL1 lock." - bit_offset: 6 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: LSIRDYIE + description: "LSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSI oscillator stabilization." + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: "LSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the LSE oscillator stabilization." + bit_offset: 1 + bit_size: 1 + - name: CSIRDYIE + description: "CSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the CSI oscillator stabilization." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: "HSI ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI oscillator stabilization." + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: "HSE ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSE oscillator stabilization." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYIE + description: "HSI48 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by the HSI48 oscillator stabilization." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYIE + description: "PLL1 ready interrupt enable\r Set and reset by software to enable/disable interrupt caused by PLL1 lock." + bit_offset: 6 + bit_size: 1 + array: + len: 2 + stride: 1 fieldset/CIFR: description: RCC clock source interrupt flag register fields: - - name: LSIRDYF - description: "LSI ready interrupt flag\r Reset by software by writing LSIRDYC bit.\r Set by hardware when the LSI clock becomes stable and LSIRDYIE is set." - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: "LSE ready interrupt flag\r Reset by software by writing LSERDYC bit.\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set." - bit_offset: 1 - bit_size: 1 - - name: CSIRDYF - description: "CSI ready interrupt flag\r Reset by software by writing CSIRDYC bit.\r Set by hardware when the CSI clock becomes stable and CSIRDYIE is set." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: "HSI ready interrupt flag\r Reset by software by writing HSIRDYC bit.\r Set by hardware when the HSI clock becomes stable and HSIRDYIE is set." - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: "HSE ready interrupt flag\r Reset by software by writing HSERDYC bit.\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYF - description: "HSI48 ready interrupt flag\r Reset by software by writing HSI48RDYC bit.\r Set by hardware when the HSI48 clock becomes stable and HSI48RDYIE is set." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYF - description: "PLL1 ready interrupt flag\r Reset by software by writing PLL1RDYC bit.\r Set by hardware when the PLL1 locks and PLL1RDYIE is set." - bit_offset: 6 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: HSECSSF - description: "HSE clock security system interrupt flag\r Reset by software by writing HSECSSC bit.\r Set by hardware in case of HSE clock failure." - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: "LSI ready interrupt flag\r Reset by software by writing LSIRDYC bit.\r Set by hardware when the LSI clock becomes stable and LSIRDYIE is set." + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: "LSE ready interrupt flag\r Reset by software by writing LSERDYC bit.\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set." + bit_offset: 1 + bit_size: 1 + - name: CSIRDYF + description: "CSI ready interrupt flag\r Reset by software by writing CSIRDYC bit.\r Set by hardware when the CSI clock becomes stable and CSIRDYIE is set." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: "HSI ready interrupt flag\r Reset by software by writing HSIRDYC bit.\r Set by hardware when the HSI clock becomes stable and HSIRDYIE is set." + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: "HSE ready interrupt flag\r Reset by software by writing HSERDYC bit.\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYF + description: "HSI48 ready interrupt flag\r Reset by software by writing HSI48RDYC bit.\r Set by hardware when the HSI48 clock becomes stable and HSI48RDYIE is set." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYF + description: "PLL1 ready interrupt flag\r Reset by software by writing PLL1RDYC bit.\r Set by hardware when the PLL1 locks and PLL1RDYIE is set." + bit_offset: 6 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: HSECSSF + description: "HSE clock security system interrupt flag\r Reset by software by writing HSECSSC bit.\r Set by hardware in case of HSE clock failure." + bit_offset: 10 + bit_size: 1 fieldset/CR: description: RCC clock control register fields: - - name: HSION - description: "HSI clock enable\r Set and cleared by software.\r Set by hardware to force the HSI to ON when the product leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r Set by hardware to force the HSI to ON when the product leaves Standby mode or in case of a failure of the HSE which is used as the system clock source.\r This bit cannot be cleared if the HSI is used directly (via SW mux) as system clock, or if the HSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: "HSI clock ready flag\r Set by hardware to indicate that the HSI oscillator is stable." - bit_offset: 1 - bit_size: 1 - - name: HSIKERON - description: "HSI clock enable in Stop mode\r Set and reset by software to force the HSI to ON, even in Stop mode, in order to be quickly available as kernel clock for peripherals. This bit has no effect on the value of HSION." - bit_offset: 2 - bit_size: 1 - - name: HSIDIV - description: "HSI clock divider\r Set and reset by software.\r These bits allow selecting a division ratio in order to configure the wanted HSI clock frequency. The\r HSIDIV cannot be changed if the HSI is selected as reference clock for at least one enabled PLL (PLLxON bit set to 1). In that case, the new HSIDIV value is ignored." - bit_offset: 3 - bit_size: 2 - enum: HSIDIV - - name: HSIDIVF - description: "HSI divider flag\r Set and reset by hardware.\r As a write operation to HSIDIV has not an immediate effect on the frequency, this flag indicates the\r current status of the HSI divider. HSIDIVF goes immediately to 0 when HSIDIV value is changed, and is set back to 1 when the output frequency matches the value programmed into HSIDIV." - bit_offset: 5 - bit_size: 1 - - name: CSION - description: "CSI clock enable\r Set and reset by software to enable/disable CSI clock for system and/or peripheral.\r Set by hardware to force the CSI to ON when the system leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r This bit cannot be cleared if the CSI is used directly (via SW mux) as system clock, or if the CSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." - bit_offset: 8 - bit_size: 1 - - name: CSIRDY - description: "CSI clock ready flag\r Set by hardware to indicate that the CSI oscillator is stable. This bit is activated only if the RC is enabled by CSION (it is not activated if the CSI is enabled by CSIKERON or by a peripheral request)." - bit_offset: 9 - bit_size: 1 - - name: CSIKERON - description: "CSI clock enable in Stop mode\r Set and reset by software to force the CSI to ON, even in Stop mode, in order to be quickly available as kernel clock for some peripherals. This bit has no effect on the value of CSION." - bit_offset: 10 - bit_size: 1 - - name: HSI48ON - description: "HSI48 clock enable\r Set by software and cleared by software or by the hardware when the system enters to Stop\r or Standby mode." - bit_offset: 12 - bit_size: 1 - - name: HSI48RDY - description: "HSI48 clock ready flag\r Set by hardware to indicate that the HSI48 oscillator is stable." - bit_offset: 13 - bit_size: 1 - - name: HSEON - description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE when entering Stop or Standby mode.\r This bit cannot be cleared if the HSE is used directly (via SW mux) as system clock, or if the\r HSE is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable." - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: "HSE clock bypass\r Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit to be used by the device.\r The HSEBYP bit can be written only if the HSE oscillator is disabled." - bit_offset: 18 - bit_size: 1 - - name: HSECSSON - description: "HSE clock security system enable\r Set by software to enable clock security system on HSE.\r This bit is “set only” (disabled by a system reset or when the system enters in Standby mode). When HSECSSON is set, the clock detector is enabled by hardware when the HSE is ready and disabled by hardware if an oscillator failure is detected." - bit_offset: 19 - bit_size: 1 - - name: HSEEXT - description: "external high speed clock type in Bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the HSEON bit to be used by the device. The HSEEXT bit can be written only if the HSE oscillator is disabled." - bit_offset: 20 - bit_size: 1 - enum: HSEEXT - - name: PLLON - description: "PLL1 enable\r Set and cleared by software to enable PLL1.\r Cleared by hardware when entering Stop or Standby mode. Note that the hardware prevents\r writing this bit to 0, if the PLL1 output is used as the system clock." - bit_offset: 24 - bit_size: 1 - array: - len: 2 - stride: 2 - - name: PLLRDY - description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked." - bit_offset: 25 - bit_size: 1 - array: - len: 2 - stride: 2 + - name: HSION + description: "HSI clock enable\r Set and cleared by software.\r Set by hardware to force the HSI to ON when the product leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r Set by hardware to force the HSI to ON when the product leaves Standby mode or in case of a failure of the HSE which is used as the system clock source.\r This bit cannot be cleared if the HSI is used directly (via SW mux) as system clock, or if the HSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: "HSI clock ready flag\r Set by hardware to indicate that the HSI oscillator is stable." + bit_offset: 1 + bit_size: 1 + - name: HSIKERON + description: "HSI clock enable in Stop mode\r Set and reset by software to force the HSI to ON, even in Stop mode, in order to be quickly available as kernel clock for peripherals. This bit has no effect on the value of HSION." + bit_offset: 2 + bit_size: 1 + - name: HSIDIV + description: "HSI clock divider\r Set and reset by software.\r These bits allow selecting a division ratio in order to configure the wanted HSI clock frequency. The\r HSIDIV cannot be changed if the HSI is selected as reference clock for at least one enabled PLL (PLLxON bit set to 1). In that case, the new HSIDIV value is ignored." + bit_offset: 3 + bit_size: 2 + enum: HSIDIV + - name: HSIDIVF + description: "HSI divider flag\r Set and reset by hardware.\r As a write operation to HSIDIV has not an immediate effect on the frequency, this flag indicates the\r current status of the HSI divider. HSIDIVF goes immediately to 0 when HSIDIV value is changed, and is set back to 1 when the output frequency matches the value programmed into HSIDIV." + bit_offset: 5 + bit_size: 1 + - name: CSION + description: "CSI clock enable\r Set and reset by software to enable/disable CSI clock for system and/or peripheral.\r Set by hardware to force the CSI to ON when the system leaves Stop mode, if STOPWUCK = 1 or STOPKERWUCK = 1.\r This bit cannot be cleared if the CSI is used directly (via SW mux) as system clock, or if the CSI is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." + bit_offset: 8 + bit_size: 1 + - name: CSIRDY + description: "CSI clock ready flag\r Set by hardware to indicate that the CSI oscillator is stable. This bit is activated only if the RC is enabled by CSION (it is not activated if the CSI is enabled by CSIKERON or by a peripheral request)." + bit_offset: 9 + bit_size: 1 + - name: CSIKERON + description: "CSI clock enable in Stop mode\r Set and reset by software to force the CSI to ON, even in Stop mode, in order to be quickly available as kernel clock for some peripherals. This bit has no effect on the value of CSION." + bit_offset: 10 + bit_size: 1 + - name: HSI48ON + description: "HSI48 clock enable\r Set by software and cleared by software or by the hardware when the system enters to Stop\r or Standby mode." + bit_offset: 12 + bit_size: 1 + - name: HSI48RDY + description: "HSI48 clock ready flag\r Set by hardware to indicate that the HSI48 oscillator is stable." + bit_offset: 13 + bit_size: 1 + - name: HSEON + description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE when entering Stop or Standby mode.\r This bit cannot be cleared if the HSE is used directly (via SW mux) as system clock, or if the\r HSE is selected as reference clock for PLL1 with PLL1 enabled (PLL1ON bit set to 1)." + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable." + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: "HSE clock bypass\r Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit to be used by the device.\r The HSEBYP bit can be written only if the HSE oscillator is disabled." + bit_offset: 18 + bit_size: 1 + - name: HSECSSON + description: "HSE clock security system enable\r Set by software to enable clock security system on HSE.\r This bit is “set only” (disabled by a system reset or when the system enters in Standby mode). When HSECSSON is set, the clock detector is enabled by hardware when the HSE is ready and disabled by hardware if an oscillator failure is detected." + bit_offset: 19 + bit_size: 1 + - name: HSEEXT + description: "external high speed clock type in Bypass mode\r Set and reset by software to select the external clock type (analog or digital).\r The external clock must be enabled with the HSEON bit to be used by the device. The HSEEXT bit can be written only if the HSE oscillator is disabled." + bit_offset: 20 + bit_size: 1 + enum: HSEEXT + - name: PLLON + description: "PLL1 enable\r Set and cleared by software to enable PLL1.\r Cleared by hardware when entering Stop or Standby mode. Note that the hardware prevents\r writing this bit to 0, if the PLL1 output is used as the system clock." + bit_offset: 24 + bit_size: 1 + array: + len: 2 + stride: 2 + - name: PLLRDY + description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked." + bit_offset: 25 + bit_size: 1 + array: + len: 2 + stride: 2 fieldset/CRRCR: description: RCC clock recovery RC register fields: - - name: HSI48CAL - description: "Internal RC 48 MHz clock calibration\r Set by hardware by option-byte loading during system reset NRESET. Read-only." - bit_offset: 0 - bit_size: 10 + - name: HSI48CAL + description: "Internal RC 48 MHz clock calibration\r Set by hardware by option-byte loading during system reset NRESET. Read-only." + bit_offset: 0 + bit_size: 10 fieldset/CSICFGR: description: RCC CSI calibration register fields: - - name: CSICAL - description: "CSI clock calibration\r Set by hardware by option byte loading during system reset NRESET. Adjusted by software through trimming bits CSITRIM.\r This field represents the sum of engineering option byte calibration value and CSITRIM bits value." - bit_offset: 0 - bit_size: 8 - - name: CSITRIM - description: "CSI clock trimming\r Set by software to adjust calibration.\r CSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_CSI_OPT) in order to form the calibration trimming value.\r CSICAL = CSITRIM + FLASH_CSI_OPT.\r Note: The reset value of the field is 0x20." - bit_offset: 16 - bit_size: 6 + - name: CSICAL + description: "CSI clock calibration\r Set by hardware by option byte loading during system reset NRESET. Adjusted by software through trimming bits CSITRIM.\r This field represents the sum of engineering option byte calibration value and CSITRIM bits value." + bit_offset: 0 + bit_size: 8 + - name: CSITRIM + description: "CSI clock trimming\r Set by software to adjust calibration.\r CSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_CSI_OPT) in order to form the calibration trimming value.\r CSICAL = CSITRIM + FLASH_CSI_OPT.\r Note: The reset value of the field is 0x20." + bit_offset: 16 + bit_size: 6 fieldset/HSICFGR: description: RCC HSI calibration register fields: - - name: HSICAL - description: "HSI clock calibration\r Set by hardware by option byte loading during system reset nreset. Adjusted by software through trimming bits HSITRIM.\r This field represents the sum of engineering option byte calibration value and HSITRIM bits value." - bit_offset: 0 - bit_size: 12 - - name: HSITRIM - description: "HSI clock trimming\r Set by software to adjust calibration.\r HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_OPT) in order to form the calibration trimming value.\r HSICAL = HSITRIM + FLASH_HSI_OPT.\r After a change of HSITRIM it takes one system clock cycle before the new HSITRIM value is updated\r Note: The reset value of the field is 0x40." - bit_offset: 16 - bit_size: 7 + - name: HSICAL + description: "HSI clock calibration\r Set by hardware by option byte loading during system reset nreset. Adjusted by software through trimming bits HSITRIM.\r This field represents the sum of engineering option byte calibration value and HSITRIM bits value." + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: "HSI clock trimming\r Set by software to adjust calibration.\r HSITRIM field is added to the engineering option bytes loaded during reset phase (FLASH_HSI_OPT) in order to form the calibration trimming value.\r HSICAL = HSITRIM + FLASH_HSI_OPT.\r After a change of HSITRIM it takes one system clock cycle before the new HSITRIM value is updated\r Note: The reset value of the field is 0x40." + bit_offset: 16 + bit_size: 7 fieldset/PLLCFGR: description: RCC PLL clock source selection register fields: - - name: PLLSRC - description: "DIVMx and PLLs clock source selection\r Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled.\r In order to save power, when no PLL is used, the value of PLL1SRC must be set to '00'. 00: no clock send to DIVMx divider and PLLs (default after reset)." - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLRGE - description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1." - bit_offset: 2 - bit_size: 2 - enum: PLLRGE - - name: PLLFRACEN - description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator.\r In order to latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator." - bit_offset: 4 - bit_size: 1 - - name: PLLVCOSEL - description: "PLL1 VCO selection\r Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1." - bit_offset: 5 - bit_size: 1 - enum: PLLVCOSEL - - name: DIVM - description: "prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1.\r The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1).\r In order to save power when PLL1 is not used, the value of DIVM1 must be set to 0.\r ...\r ..." - bit_offset: 8 - bit_size: 6 - - name: PLLPEN - description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1_p_ck output of the PLL1.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r In order to save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled." - bit_offset: 16 - bit_size: 1 - - name: PLLQEN - description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1_q_ck output of the PLL1.\r In order to save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 17 - bit_size: 1 - - name: PLLREN - description: "PLL1 DIVR divider output enable\r Set and reset by software to enable the pll1_r_ck output of the PLL1.\r To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 18 - bit_size: 1 + - name: PLLSRC + description: "DIVMx and PLLs clock source selection\r Set and reset by software to select the PLL clock source. These bits can be written only when all PLLs are disabled.\r In order to save power, when no PLL is used, the value of PLL1SRC must be set to '00'. 00: no clock send to DIVMx divider and PLLs (default after reset)." + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLRGE + description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1. This bit must be written before enabling the PLL1." + bit_offset: 2 + bit_size: 2 + enum: PLLRGE + - name: PLLFRACEN + description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of FRACN1 into the sigma-delta modulator.\r In order to latch the FRACN1 value into the sigma-delta modulator, PLL1FRACEN must be set to 0, then set to 1. The transition 0 to 1 transfers the content of FRACN1 into the modulator." + bit_offset: 4 + bit_size: 1 + - name: PLLVCOSEL + description: "PLL1 VCO selection\r Set and reset by software to select the proper VCO frequency range used for PLL1. This bit must be written before enabling the PLL1." + bit_offset: 5 + bit_size: 1 + enum: PLLVCOSEL + - name: DIVM + description: "prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1.\r The hardware does not allow any modification of this prescaler when PLL1 is enabled (PLL1ON = 1 or PLL1RDY = 1).\r In order to save power when PLL1 is not used, the value of DIVM1 must be set to 0.\r ...\r ..." + bit_offset: 8 + bit_size: 6 + - name: PLLPEN + description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1_p_ck output of the PLL1.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r In order to save power, when the pll1_p_ck output of the PLL1 is not used, the pll1_p_ck must be disabled." + bit_offset: 16 + bit_size: 1 + - name: PLLQEN + description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1_q_ck output of the PLL1.\r In order to save power, when the pll1_q_ck output of the PLL1 is not used, the pll1_q_ck must be disabled.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 17 + bit_size: 1 + - name: PLLREN + description: "PLL1 DIVR divider output enable\r Set and reset by software to enable the pll1_r_ck output of the PLL1.\r To save power, DIVR1EN and DIVR1 bits must be set to 0 when the pll1_r_ck is not used. This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 18 + bit_size: 1 fieldset/PLLDIVR: description: RCC PLL1 dividers register fields: - - name: PLLN - description: "Multiplication factor for PLL1VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r Others: reserved" - bit_offset: 0 - bit_size: 9 - - name: PLLP - description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1_p_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." - bit_offset: 9 - bit_size: 7 - - name: PLLQ - description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the pll1_q_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 16 - bit_size: 7 - - name: PLLR - description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1_r_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 24 - bit_size: 7 + - name: PLLN + description: "Multiplication factor for PLL1VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r Others: reserved" + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1_p_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the pll1_q_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1_r_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 24 + bit_size: 7 fieldset/PLLFRACR: description: RCC PLL1 fractional divider register fields: - - name: PLLFRACN - description: "fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is:\r * 128 to 560 MHz if PLL1VCOSEL = 0\r * \t150 to 420 MHz if PLL1VCOSEL = 1\r VCO output frequency = Fref1_ck x (PLL1N + (PLL1FRACN / 213)), with\r * \tPLL1N between 8 and 420\r * \tPLL1FRACN can be between 0 and 213- 1\r * \tThe input frequency Fref1_ck must be between 1 and 16 MHz.\r To change the PLL1FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r * \tSet the bit PLL1FRACEN to 0\r * \tWrite the new fractional value into PLL1FRACN\r * \tSet the bit PLL1FRACEN to 1" - bit_offset: 3 - bit_size: 13 + - name: PLLFRACN + description: "fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO. These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r The software must set correctly these bits to insure that the VCO output frequency is between its valid frequency range, that is:\r * 128 to 560 MHz if PLL1VCOSEL = 0\r * \t150 to 420 MHz if PLL1VCOSEL = 1\r VCO output frequency = Fref1_ck x (PLL1N + (PLL1FRACN / 213)), with\r * \tPLL1N between 8 and 420\r * \tPLL1FRACN can be between 0 and 213- 1\r * \tThe input frequency Fref1_ck must be between 1 and 16 MHz.\r To change the PLL1FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r * \tSet the bit PLL1FRACEN to 0\r * \tWrite the new fractional value into PLL1FRACN\r * \tSet the bit PLL1FRACEN to 1" + bit_offset: 3 + bit_size: 13 fieldset/RSR: description: RCC reset status register fields: - - name: RMVF - description: "remove reset flag\r Set and reset by software to reset the value of the reset flags." - bit_offset: 23 - bit_size: 1 - - name: PINRSTF - description: "pin reset flag (NRST)\r Reset by software by writing the RMVF bit.\r Set by hardware when a reset from pin occurs." - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: "BOR reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a BOR reset occurs (pwr_bor_rst)." - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: "system reset from CPU reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when the system reset is due to CPU.The CPU can generate a system reset by writing SYSRESETREQ bit of AIRCR register of the core M33." - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: "independent watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when an independent watchdog reset occurs." - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: "window watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a window watchdog reset occurs." - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: "Low-power reset flag\r Set by hardware when a reset occurs due to Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared.\r Cleared by writing to the RMVF bit." - bit_offset: 31 - bit_size: 1 + - name: RMVF + description: "remove reset flag\r Set and reset by software to reset the value of the reset flags." + bit_offset: 23 + bit_size: 1 + - name: PINRSTF + description: "pin reset flag (NRST)\r Reset by software by writing the RMVF bit.\r Set by hardware when a reset from pin occurs." + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: "BOR reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a BOR reset occurs (pwr_bor_rst)." + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: "system reset from CPU reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when the system reset is due to CPU.The CPU can generate a system reset by writing SYSRESETREQ bit of AIRCR register of the core M33." + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: "independent watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when an independent watchdog reset occurs." + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: "window watchdog reset flag\r Reset by software by writing the RMVF bit.\r Set by hardware when a window watchdog reset occurs." + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: "Low-power reset flag\r Set by hardware when a reset occurs due to Stop or Standby mode entry, whereas the corresponding nRST_STOP, nRST_STBY option bit is cleared.\r Cleared by writing to the RMVF bit." + bit_offset: 31 + bit_size: 1 enum/ADCDACSEL: bit_size: 3 variants: - - name: HCLK - description: rcc_hclk selected as kernel clock (default after reset) - value: 0 - - name: SYSCLK - description: sys_ck selected as kernel clock - value: 1 - - name: PLL2_R - description: pll2_r_ck selected as kernel clock - value: 2 - - name: HSE - description: hse_ck selected as kernel clock - value: 3 - - name: HSI_KER - description: hsi_ker_ck selected as kernel clock - value: 4 - - name: CSI_KER - description: csi_ker_ck selected as kernel clock - value: 5 + - name: HCLK + description: rcc_hclk selected as kernel clock (default after reset) + value: 0 + - name: SYSCLK + description: sys_ck selected as kernel clock + value: 1 + - name: PLL2_R + description: pll2_r_ck selected as kernel clock + value: 2 + - name: HSE + description: hse_ck selected as kernel clock + value: 3 + - name: HSI_KER + description: hsi_ker_ck selected as kernel clock + value: 4 + - name: CSI_KER + description: csi_ker_ck selected as kernel clock + value: 5 enum/CKPERSEL: bit_size: 2 variants: - - name: HSI - description: hsi_ker_ck selected as kernel clock (default after reset) - value: 0 - - name: CSI - description: csi_ker_ck selected as kernel clock - value: 1 - - name: HSE - description: hse_ck selected as kernel clock - value: 2 + - name: HSI + description: hsi_ker_ck selected as kernel clock (default after reset) + value: 0 + - name: CSI + description: csi_ker_ck selected as kernel clock + value: 1 + - name: HSE + description: hse_ck selected as kernel clock + value: 2 enum/DACSEL: bit_size: 1 variants: - - name: DAC_HOLD - description: dac_hold_ck selected as kernel clock (default after reset) - value: 0 - - name: DAC_HOLD_2 - description: dac_hold_ck selected as kernel clock - value: 1 + - name: DAC_HOLD + description: dac_hold_ck selected as kernel clock (default after reset) + value: 0 + - name: DAC_HOLD_2 + description: dac_hold_ck selected as kernel clock + value: 1 enum/FDCANSEL: bit_size: 2 variants: - - name: HSE - description: hse_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock - value: 1 - - name: PLL2_Q - description: pll2_q_ck selected as kernel clock - value: 2 + - name: HSE + description: hse_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock + value: 1 + - name: PLL2_Q + description: pll2_q_ck selected as kernel clock + value: 2 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: sys_ck not divided - value: 0 - - name: Div2 - description: sys_ck divided by 2 - value: 8 - - name: Div4 - description: sys_ck divided by 4 - value: 9 - - name: Div8 - description: sys_ck divided by 8 - value: 10 - - name: Div16 - description: sys_ck divided by 16 - value: 11 - - name: Div64 - description: sys_ck divided by 64 - value: 12 - - name: Div128 - description: sys_ck divided by 128 - value: 13 - - name: Div256 - description: sys_ck divided by 256 - value: 14 - - name: Div512 - description: sys_ck divided by 512 - value: 15 + - name: Div1 + description: sys_ck not divided + value: 0 + - name: Div2 + description: sys_ck divided by 2 + value: 8 + - name: Div4 + description: sys_ck divided by 4 + value: 9 + - name: Div8 + description: sys_ck divided by 8 + value: 10 + - name: Div16 + description: sys_ck divided by 16 + value: 11 + - name: Div64 + description: sys_ck divided by 64 + value: 12 + - name: Div128 + description: sys_ck divided by 128 + value: 13 + - name: Div256 + description: sys_ck divided by 256 + value: 14 + - name: Div512 + description: sys_ck divided by 512 + value: 15 enum/HSEEXT: bit_size: 1 variants: - - name: Analog - description: HSE in analog mode (default after reset) - value: 0 - - name: Digital - description: HSE in digital mode - value: 1 + - name: Analog + description: HSE in analog mode (default after reset) + value: 0 + - name: Digital + description: HSE in digital mode + value: 1 enum/HSIDIV: bit_size: 2 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 enum/ICSEL: bit_size: 2 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 2 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 3 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 2 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 3 enum/LPTIMSEL: bit_size: 3 variants: - - name: RCC_PCLK3 - description: rcc_pclk3 selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: LSE - description: LSE selected as peripheral clock - value: 3 - - name: LSI - description: LSI selected as peripheral clock - value: 4 - - name: PER - description: PER selected as peripheral clock - value: 5 + - name: RCC_PCLK3 + description: rcc_pclk3 selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: LSE + description: LSE selected as peripheral clock + value: 3 + - name: LSI + description: LSI selected as peripheral clock + value: 4 + - name: PER + description: PER selected as peripheral clock + value: 5 enum/LPUARTSEL: bit_size: 3 variants: - - name: RCC_PCLK3 - description: rcc_pclk3 selected as kernel clock (default after reset) - value: 0 - - name: PLL2_Q - description: pll2_q_ck selected as kernel clock - value: 1 - - name: HSI_KER - description: hsi_ker_ck selected as kernel clock - value: 3 - - name: CSI_KER - description: csi_ker_ck selected as kernel clock - value: 4 - - name: LSE - description: lse_ck selected as kernel clock - value: 5 + - name: RCC_PCLK3 + description: rcc_pclk3 selected as kernel clock (default after reset) + value: 0 + - name: PLL2_Q + description: pll2_q_ck selected as kernel clock + value: 1 + - name: HSI_KER + description: hsi_ker_ck selected as kernel clock + value: 3 + - name: CSI_KER + description: csi_ker_ck selected as kernel clock + value: 4 + - name: LSE + description: lse_ck selected as kernel clock + value: 5 enum/LSCOSEL: bit_size: 1 variants: - - name: LSI - description: LSI clock selected - value: 0 - - name: LSE - description: LSE clock selected - value: 1 + - name: LSI + description: LSI clock selected + value: 0 + - name: LSE + description: LSE clock selected + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Lowest - description: Lowest LSE oscillator driving capability - value: 0 - - name: MediumLow - description: Medium low LSE oscillator driving capability - value: 1 - - name: MediumHigh - description: Medium high LSE oscillator driving capability - value: 2 - - name: Highest - description: Highest LSE oscillator driving capability - value: 3 + - name: Lowest + description: Lowest LSE oscillator driving capability + value: 0 + - name: MediumLow + description: Medium low LSE oscillator driving capability + value: 1 + - name: MediumHigh + description: Medium high LSE oscillator driving capability + value: 2 + - name: Highest + description: Highest LSE oscillator driving capability + value: 3 enum/LSEEXT: bit_size: 1 variants: - - name: Analog - description: LSE in analog mode (default after Backup domain reset) - value: 0 - - name: Digital - description: LSE in digital mode (do not use if RTC is active). - value: 1 + - name: Analog + description: LSE in analog mode (default after Backup domain reset) + value: 0 + - name: Digital + description: LSE in digital mode (do not use if RTC is active). + value: 1 enum/MCO1: bit_size: 3 variants: - - name: HSI - description: HSI selected for micro-controller clock output - value: 0 - - name: LSE - description: LSE selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_Q - description: pll1_q selected for micro-controller clock output - value: 3 - - name: HSI48 - description: HSI48 selected for micro-controller clock output - value: 4 + - name: HSI + description: HSI selected for micro-controller clock output + value: 0 + - name: LSE + description: LSE selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_Q + description: pll1_q selected for micro-controller clock output + value: 3 + - name: HSI48 + description: HSI48 selected for micro-controller clock output + value: 4 enum/MCO2: bit_size: 3 variants: - - name: SYSCLK - description: System clock selected for micro-controller clock output - value: 0 - - name: PLL2_P - description: pll2_p selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_P - description: pll1_p selected for micro-controller clock output - value: 3 - - name: CSI - description: CSI selected for micro-controller clock output - value: 4 - - name: LSI - description: LSI selected for micro-controller clock output - value: 5 + - name: SYSCLK + description: System clock selected for micro-controller clock output + value: 0 + - name: PLL2_P + description: pll2_p selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_P + description: pll1_p selected for micro-controller clock output + value: 3 + - name: CSI + description: CSI selected for micro-controller clock output + value: 4 + - name: LSI + description: LSI selected for micro-controller clock output + value: 5 enum/PLLRGE: bit_size: 2 variants: - - name: Range1 - description: Frequency is between 1 and 2 MHz - value: 0 - - name: Range2 - description: Frequency is between 2 and 4 MHz - value: 1 - - name: Range4 - description: Frequency is between 4 and 8 MHz - value: 2 - - name: Range8 - description: Frequency is between 8 and 16 MHz - value: 3 + - name: Range1 + description: Frequency is between 1 and 2 MHz + value: 0 + - name: Range2 + description: Frequency is between 2 and 4 MHz + value: 1 + - name: Range4 + description: Frequency is between 4 and 8 MHz + value: 2 + - name: Range8 + description: Frequency is between 8 and 16 MHz + value: 3 enum/PLLSRC: bit_size: 2 variants: - - name: None - description: no clock send to DIVMx divider and PLLs (default after reset) - value: 0 - - name: HSI - description: HSI selected as PLL clock (hsi_ck) - value: 1 - - name: CSI - description: CSI selected as PLL clock (csi_ck) - value: 2 - - name: HSE - description: HSE selected as PLL clock (hse_ck) - value: 3 + - name: None + description: no clock send to DIVMx divider and PLLs (default after reset) + value: 0 + - name: HSI + description: HSI selected as PLL clock (hsi_ck) + value: 1 + - name: CSI + description: CSI selected as PLL clock (csi_ck) + value: 2 + - name: HSE + description: HSE selected as PLL clock (hse_ck) + value: 3 enum/PLLVCOSEL: bit_size: 1 variants: - - name: WideVCO - description: VCO frequency range 192 to 836 MHz - value: 0 - - name: MediumVCO - description: VCO frequency range 150 to 420 MHz - value: 1 + - name: WideVCO + description: VCO frequency range 192 to 836 MHz + value: 0 + - name: MediumVCO + description: VCO frequency range 150 to 420 MHz + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: rcc_pclk3 = rcc_hclk1 / 1 - value: 0 - - name: Div2 - description: rcc_pclk3 = rcc_hclk1 / 2 - value: 4 - - name: Div4 - description: rcc_pclk3 = rcc_hclk1 / 4 - value: 5 - - name: Div8 - description: rcc_pclk3 = rcc_hclk1 / 8 - value: 6 - - name: Div16 - description: rcc_pclk3 = rcc_hclk1 / 16 - value: 7 + - name: Div1 + description: rcc_pclk3 = rcc_hclk1 / 1 + value: 0 + - name: Div2 + description: rcc_pclk3 = rcc_hclk1 / 2 + value: 4 + - name: Div4 + description: rcc_pclk3 = rcc_hclk1 / 4 + value: 5 + - name: Div8 + description: rcc_pclk3 = rcc_hclk1 / 8 + value: 6 + - name: Div16 + description: rcc_pclk3 = rcc_hclk1 / 16 + value: 7 enum/RNGSEL: bit_size: 2 variants: - - name: HSI48_KER - description: hsi48_ker_ck selected as kernel clock (default after reset) - value: 0 - - name: PLL1_Q - description: pll1_q_ck selected as kernel clock - value: 1 - - name: LSE - description: lse_ck selected as kernel clock - value: 2 - - name: LSI_KER - description: lsi_ker_ck selected as kernel clock - value: 3 + - name: HSI48_KER + description: hsi48_ker_ck selected as kernel clock (default after reset) + value: 0 + - name: PLL1_Q + description: pll1_q_ck selected as kernel clock + value: 1 + - name: LSE + description: lse_ck selected as kernel clock + value: 2 + - name: LSI_KER + description: lsi_ker_ck selected as kernel clock + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: None - description: no clock (default after Backup domain reset) - value: 0 - - name: LSE - description: LSE selected as RTC clock - value: 1 - - name: LSI - description: LSI selected as RTC clock - value: 2 - - name: HSE_DIV_RTCPRE - description: HSE divided by RTCPRE value selected as RTC clock - value: 3 + - name: None + description: no clock (default after Backup domain reset) + value: 0 + - name: LSE + description: LSE selected as RTC clock + value: 1 + - name: LSI + description: LSI selected as RTC clock + value: 2 + - name: HSE_DIV_RTCPRE + description: HSE divided by RTCPRE value selected as RTC clock + value: 3 enum/SPISEL: bit_size: 3 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 enum/STOPKERWUCK: bit_size: 1 variants: - - name: HSI - description: HSI selected as wakeup clock from system Stop (default after reset) - value: 0 - - name: CSI - description: CSI selected as wakeup clock from system Stop - value: 1 + - name: HSI + description: HSI selected as wakeup clock from system Stop (default after reset) + value: 0 + - name: CSI + description: CSI selected as wakeup clock from system Stop + value: 1 enum/STOPWUCK: bit_size: 1 variants: - - name: CSI - description: CSI selected as wakeup clock from system Stop - value: 1 + - name: CSI + description: CSI selected as wakeup clock from system Stop + value: 1 enum/SW: bit_size: 3 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: CSI - description: CSI selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL1 - description: PLL1 selected as system clock - value: 3 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: CSI + description: CSI selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL1 + description: PLL1 selected as system clock + value: 3 enum/SYSTICKSEL: bit_size: 2 variants: - - name: HCLK_DIV_8 - description: rcc_hclk/8 selected as clock source (default after reset) - value: 0 - - name: LSI_KER - description: "lsi_ker_ck[1] selected as clock source" - value: 1 - - name: LSE - description: "lse_ck[1] selected as clock source" - value: 2 + - name: HCLK_DIV_8 + description: rcc_hclk/8 selected as clock source (default after reset) + value: 0 + - name: LSI_KER + description: lsi_ker_ck[1] selected as clock source + value: 1 + - name: LSE + description: lse_ck[1] selected as clock source + value: 2 enum/TIMICSEL: bit_size: 1 variants: - - name: B_0x0 - description: No internal clock available for timers input capture (default after reset) - value: 0 - - name: B_0x1 - description: "hsi_ker_ck/1024, hsi_ker_ck/8 and csi_ker_ck/128 selected for timers input capture" - value: 1 + - name: B_0x0 + description: No internal clock available for timers input capture (default after reset) + value: 0 + - name: B_0x1 + description: hsi_ker_ck/1024, hsi_ker_ck/8 and csi_ker_ck/128 selected for timers input capture + value: 1 enum/TIMPRE: bit_size: 1 variants: - - name: DefaultX2 - description: "The timers kernel clock is equal to rcc_hclk1 if PPRE1 or PPRE2 corresponds to a division by 1 or 2, else it is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 (default after reset)" - value: 0 - - name: DefaultX4 - description: "The timers kernel clock is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 if PPRE1 or PPRE2 corresponds to a division by 1, 2 or 4, else it is equal to 4 x Frcc_pclk1 or 4 x Frcc_pclk2" - value: 1 + - name: DefaultX2 + description: The timers kernel clock is equal to rcc_hclk1 if PPRE1 or PPRE2 corresponds to a division by 1 or 2, else it is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 (default after reset) + value: 0 + - name: DefaultX4 + description: The timers kernel clock is equal to 2 x Frcc_pclk1 or 2 x Frcc_pclk2 if PPRE1 or PPRE2 corresponds to a division by 1, 2 or 4, else it is equal to 4 x Frcc_pclk1 or 4 x Frcc_pclk2 + value: 1 enum/USARTSEL: bit_size: 3 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USBSEL: bit_size: 2 variants: - - name: DISABLE - description: Disable the kernel clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: HSI48 - description: HSI48 selected as peripheral clock - value: 3 + - name: DISABLE + description: Disable the kernel clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: HSI48 + description: HSI48 selected as peripheral clock + value: 3 diff --git a/data/registers/rcc_h7.yaml b/data/registers/rcc_h7.yaml index fd9da11..11a746d 100644 --- a/data/registers/rcc_h7.yaml +++ b/data/registers/rcc_h7.yaml @@ -1,4319 +1,4318 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: clock control register - byte_offset: 0 - fieldset: CR - - name: HSICFGR - description: RCC HSI configuration register - byte_offset: 4 - fieldset: HSICFGR - - name: CRRCR - description: RCC Clock Recovery RC Register - byte_offset: 8 - access: Read - fieldset: CRRCR - - name: CSICFGR - description: RCC CSI configuration register - byte_offset: 12 - fieldset: CSICFGR - - name: CFGR - description: RCC Clock Configuration Register - byte_offset: 16 - fieldset: CFGR - - name: D1CFGR - description: RCC Domain 1 Clock Configuration Register - byte_offset: 24 - fieldset: D1CFGR - - name: D2CFGR - description: RCC Domain 2 Clock Configuration Register - byte_offset: 28 - fieldset: D2CFGR - - name: D3CFGR - description: RCC Domain 3 Clock Configuration Register - byte_offset: 32 - fieldset: D3CFGR - - name: PLLCKSELR - description: RCC PLLs Clock Source Selection Register - byte_offset: 40 - fieldset: PLLCKSELR - - name: PLLCFGR - description: RCC PLLs Configuration Register - byte_offset: 44 - fieldset: PLLCFGR - - name: PLLDIVR - description: RCC PLL1 Dividers Configuration Register - array: - len: 3 - stride: 8 - byte_offset: 48 - fieldset: PLL1DIVR - - name: PLLFRACR - description: RCC PLL1 Fractional Divider Register - array: - len: 3 - stride: 8 - byte_offset: 52 - fieldset: PLL1FRACR - - name: D1CCIPR - description: RCC Domain 1 Kernel Clock Configuration Register - byte_offset: 76 - fieldset: D1CCIPR - - name: D2CCIP1R - description: RCC Domain 2 Kernel Clock Configuration Register - byte_offset: 80 - fieldset: D2CCIP1R - - name: D2CCIP2R - description: RCC Domain 2 Kernel Clock Configuration Register - byte_offset: 84 - fieldset: D2CCIP2R - - name: D3CCIPR - description: RCC Domain 3 Kernel Clock Configuration Register - byte_offset: 88 - fieldset: D3CCIPR - - name: CIER - description: RCC Clock Source Interrupt Enable Register - byte_offset: 96 - fieldset: CIER - - name: CIFR - description: RCC Clock Source Interrupt Flag Register - byte_offset: 100 - access: Read - fieldset: CIFR - - name: CICR - description: RCC Clock Source Interrupt Clear Register - byte_offset: 104 - fieldset: CICR - - name: BDCR - description: RCC Backup Domain Control Register - byte_offset: 112 - fieldset: BDCR - - name: CSR - description: RCC Clock Control and Status Register - byte_offset: 116 - fieldset: CSR - - name: AHB3RSTR - description: RCC AHB3 Reset Register - byte_offset: 124 - fieldset: AHB3RSTR - - name: AHB1RSTR - description: RCC AHB1 Peripheral Reset Register - byte_offset: 128 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: RCC AHB2 Peripheral Reset Register - byte_offset: 132 - fieldset: AHB2RSTR - - name: AHB4RSTR - description: RCC AHB4 Peripheral Reset Register - byte_offset: 136 - fieldset: AHB4RSTR - - name: APB3RSTR - description: RCC APB3 Peripheral Reset Register - byte_offset: 140 - fieldset: APB3RSTR - - name: APB1LRSTR - description: RCC APB1 Peripheral Reset Register - byte_offset: 144 - fieldset: APB1LRSTR - - name: APB1HRSTR - description: RCC APB1 Peripheral Reset Register - byte_offset: 148 - fieldset: APB1HRSTR - - name: APB2RSTR - description: RCC APB2 Peripheral Reset Register - byte_offset: 152 - fieldset: APB2RSTR - - name: APB4RSTR - description: RCC APB4 Peripheral Reset Register - byte_offset: 156 - fieldset: APB4RSTR - - name: GCR - description: Global Control Register - byte_offset: 160 - fieldset: GCR - - name: D3AMR - description: RCC D3 Autonomous mode Register - byte_offset: 168 - fieldset: D3AMR - - name: RSR - description: RCC Reset Status Register - byte_offset: 208 - fieldset: RSR - - name: AHB3ENR - description: RCC AHB3 Clock Register - byte_offset: 212 - fieldset: AHB3ENR - - name: AHB1ENR - description: RCC AHB1 Clock Register - byte_offset: 216 - fieldset: AHB1ENR - - name: AHB2ENR - description: RCC AHB2 Clock Register - byte_offset: 220 - fieldset: AHB2ENR - - name: AHB4ENR - description: RCC AHB4 Clock Register - byte_offset: 224 - fieldset: AHB4ENR - - name: APB3ENR - description: RCC APB3 Clock Register - byte_offset: 228 - fieldset: APB3ENR - - name: APB1LENR - description: RCC APB1 Clock Register - byte_offset: 232 - fieldset: APB1LENR - - name: APB1HENR - description: RCC APB1 Clock Register - byte_offset: 236 - fieldset: APB1HENR - - name: APB2ENR - description: RCC APB2 Clock Register - byte_offset: 240 - fieldset: APB2ENR - - name: APB4ENR - description: RCC APB4 Clock Register - byte_offset: 244 - fieldset: APB4ENR - - name: AHB3LPENR - description: RCC AHB3 Sleep Clock Register - byte_offset: 252 - fieldset: AHB3LPENR - - name: AHB1LPENR - description: RCC AHB1 Sleep Clock Register - byte_offset: 256 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: RCC AHB2 Sleep Clock Register - byte_offset: 260 - fieldset: AHB2LPENR - - name: AHB4LPENR - description: RCC AHB4 Sleep Clock Register - byte_offset: 264 - fieldset: AHB4LPENR - - name: APB3LPENR - description: RCC APB3 Sleep Clock Register - byte_offset: 268 - fieldset: APB3LPENR - - name: APB1LLPENR - description: RCC APB1 Low Sleep Clock Register - byte_offset: 272 - fieldset: APB1LLPENR - - name: APB1HLPENR - description: RCC APB1 High Sleep Clock Register - byte_offset: 276 - fieldset: APB1HLPENR - - name: APB2LPENR - description: RCC APB2 Sleep Clock Register - byte_offset: 280 - fieldset: APB2LPENR - - name: APB4LPENR - description: RCC APB4 Sleep Clock Register - byte_offset: 284 - fieldset: APB4LPENR - - name: C1_RSR - description: RCC Reset Status Register - byte_offset: 304 - fieldset: C1_RSR - - name: C1_AHB3ENR - description: RCC AHB3 Clock Register - byte_offset: 308 - fieldset: C1_AHB3ENR - - name: C1_AHB1ENR - description: RCC AHB1 Clock Register - byte_offset: 312 - fieldset: C1_AHB1ENR - - name: C1_AHB2ENR - description: RCC AHB2 Clock Register - byte_offset: 316 - fieldset: C1_AHB2ENR - - name: C1_AHB4ENR - description: RCC AHB4 Clock Register - byte_offset: 320 - fieldset: C1_AHB4ENR - - name: C1_APB3ENR - description: RCC APB3 Clock Register - byte_offset: 324 - fieldset: C1_APB3ENR - - name: C1_APB1LENR - description: RCC APB1 Clock Register - byte_offset: 328 - fieldset: C1_APB1LENR - - name: C1_APB1HENR - description: RCC APB1 Clock Register - byte_offset: 332 - fieldset: C1_APB1HENR - - name: C1_APB2ENR - description: RCC APB2 Clock Register - byte_offset: 336 - fieldset: C1_APB2ENR - - name: C1_APB4ENR - description: RCC APB4 Clock Register - byte_offset: 340 - fieldset: C1_APB4ENR - - name: C1_AHB3LPENR - description: RCC AHB3 Sleep Clock Register - byte_offset: 348 - fieldset: C1_AHB3LPENR - - name: C1_AHB1LPENR - description: RCC AHB1 Sleep Clock Register - byte_offset: 352 - fieldset: C1_AHB1LPENR - - name: C1_AHB2LPENR - description: RCC AHB2 Sleep Clock Register - byte_offset: 356 - fieldset: C1_AHB2LPENR - - name: C1_AHB4LPENR - description: RCC AHB4 Sleep Clock Register - byte_offset: 360 - fieldset: C1_AHB4LPENR - - name: C1_APB3LPENR - description: RCC APB3 Sleep Clock Register - byte_offset: 364 - fieldset: C1_APB3LPENR - - name: C1_APB1LLPENR - description: RCC APB1 Low Sleep Clock Register - byte_offset: 368 - fieldset: C1_APB1LLPENR - - name: C1_APB1HLPENR - description: RCC APB1 High Sleep Clock Register - byte_offset: 372 - fieldset: C1_APB1HLPENR - - name: C1_APB2LPENR - description: RCC APB2 Sleep Clock Register - byte_offset: 376 - fieldset: C1_APB2LPENR - - name: C1_APB4LPENR - description: RCC APB4 Sleep Clock Register - byte_offset: 380 - fieldset: C1_APB4LPENR + - name: CR + description: clock control register + byte_offset: 0 + fieldset: CR + - name: HSICFGR + description: RCC HSI configuration register + byte_offset: 4 + fieldset: HSICFGR + - name: CRRCR + description: RCC Clock Recovery RC Register + byte_offset: 8 + access: Read + fieldset: CRRCR + - name: CSICFGR + description: RCC CSI configuration register + byte_offset: 12 + fieldset: CSICFGR + - name: CFGR + description: RCC Clock Configuration Register + byte_offset: 16 + fieldset: CFGR + - name: D1CFGR + description: RCC Domain 1 Clock Configuration Register + byte_offset: 24 + fieldset: D1CFGR + - name: D2CFGR + description: RCC Domain 2 Clock Configuration Register + byte_offset: 28 + fieldset: D2CFGR + - name: D3CFGR + description: RCC Domain 3 Clock Configuration Register + byte_offset: 32 + fieldset: D3CFGR + - name: PLLCKSELR + description: RCC PLLs Clock Source Selection Register + byte_offset: 40 + fieldset: PLLCKSELR + - name: PLLCFGR + description: RCC PLLs Configuration Register + byte_offset: 44 + fieldset: PLLCFGR + - name: PLLDIVR + description: RCC PLL1 Dividers Configuration Register + array: + len: 3 + stride: 8 + byte_offset: 48 + fieldset: PLL1DIVR + - name: PLLFRACR + description: RCC PLL1 Fractional Divider Register + array: + len: 3 + stride: 8 + byte_offset: 52 + fieldset: PLL1FRACR + - name: D1CCIPR + description: RCC Domain 1 Kernel Clock Configuration Register + byte_offset: 76 + fieldset: D1CCIPR + - name: D2CCIP1R + description: RCC Domain 2 Kernel Clock Configuration Register + byte_offset: 80 + fieldset: D2CCIP1R + - name: D2CCIP2R + description: RCC Domain 2 Kernel Clock Configuration Register + byte_offset: 84 + fieldset: D2CCIP2R + - name: D3CCIPR + description: RCC Domain 3 Kernel Clock Configuration Register + byte_offset: 88 + fieldset: D3CCIPR + - name: CIER + description: RCC Clock Source Interrupt Enable Register + byte_offset: 96 + fieldset: CIER + - name: CIFR + description: RCC Clock Source Interrupt Flag Register + byte_offset: 100 + access: Read + fieldset: CIFR + - name: CICR + description: RCC Clock Source Interrupt Clear Register + byte_offset: 104 + fieldset: CICR + - name: BDCR + description: RCC Backup Domain Control Register + byte_offset: 112 + fieldset: BDCR + - name: CSR + description: RCC Clock Control and Status Register + byte_offset: 116 + fieldset: CSR + - name: AHB3RSTR + description: RCC AHB3 Reset Register + byte_offset: 124 + fieldset: AHB3RSTR + - name: AHB1RSTR + description: RCC AHB1 Peripheral Reset Register + byte_offset: 128 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: RCC AHB2 Peripheral Reset Register + byte_offset: 132 + fieldset: AHB2RSTR + - name: AHB4RSTR + description: RCC AHB4 Peripheral Reset Register + byte_offset: 136 + fieldset: AHB4RSTR + - name: APB3RSTR + description: RCC APB3 Peripheral Reset Register + byte_offset: 140 + fieldset: APB3RSTR + - name: APB1LRSTR + description: RCC APB1 Peripheral Reset Register + byte_offset: 144 + fieldset: APB1LRSTR + - name: APB1HRSTR + description: RCC APB1 Peripheral Reset Register + byte_offset: 148 + fieldset: APB1HRSTR + - name: APB2RSTR + description: RCC APB2 Peripheral Reset Register + byte_offset: 152 + fieldset: APB2RSTR + - name: APB4RSTR + description: RCC APB4 Peripheral Reset Register + byte_offset: 156 + fieldset: APB4RSTR + - name: GCR + description: Global Control Register + byte_offset: 160 + fieldset: GCR + - name: D3AMR + description: RCC D3 Autonomous mode Register + byte_offset: 168 + fieldset: D3AMR + - name: RSR + description: RCC Reset Status Register + byte_offset: 208 + fieldset: RSR + - name: AHB3ENR + description: RCC AHB3 Clock Register + byte_offset: 212 + fieldset: AHB3ENR + - name: AHB1ENR + description: RCC AHB1 Clock Register + byte_offset: 216 + fieldset: AHB1ENR + - name: AHB2ENR + description: RCC AHB2 Clock Register + byte_offset: 220 + fieldset: AHB2ENR + - name: AHB4ENR + description: RCC AHB4 Clock Register + byte_offset: 224 + fieldset: AHB4ENR + - name: APB3ENR + description: RCC APB3 Clock Register + byte_offset: 228 + fieldset: APB3ENR + - name: APB1LENR + description: RCC APB1 Clock Register + byte_offset: 232 + fieldset: APB1LENR + - name: APB1HENR + description: RCC APB1 Clock Register + byte_offset: 236 + fieldset: APB1HENR + - name: APB2ENR + description: RCC APB2 Clock Register + byte_offset: 240 + fieldset: APB2ENR + - name: APB4ENR + description: RCC APB4 Clock Register + byte_offset: 244 + fieldset: APB4ENR + - name: AHB3LPENR + description: RCC AHB3 Sleep Clock Register + byte_offset: 252 + fieldset: AHB3LPENR + - name: AHB1LPENR + description: RCC AHB1 Sleep Clock Register + byte_offset: 256 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: RCC AHB2 Sleep Clock Register + byte_offset: 260 + fieldset: AHB2LPENR + - name: AHB4LPENR + description: RCC AHB4 Sleep Clock Register + byte_offset: 264 + fieldset: AHB4LPENR + - name: APB3LPENR + description: RCC APB3 Sleep Clock Register + byte_offset: 268 + fieldset: APB3LPENR + - name: APB1LLPENR + description: RCC APB1 Low Sleep Clock Register + byte_offset: 272 + fieldset: APB1LLPENR + - name: APB1HLPENR + description: RCC APB1 High Sleep Clock Register + byte_offset: 276 + fieldset: APB1HLPENR + - name: APB2LPENR + description: RCC APB2 Sleep Clock Register + byte_offset: 280 + fieldset: APB2LPENR + - name: APB4LPENR + description: RCC APB4 Sleep Clock Register + byte_offset: 284 + fieldset: APB4LPENR + - name: C1_RSR + description: RCC Reset Status Register + byte_offset: 304 + fieldset: C1_RSR + - name: C1_AHB3ENR + description: RCC AHB3 Clock Register + byte_offset: 308 + fieldset: C1_AHB3ENR + - name: C1_AHB1ENR + description: RCC AHB1 Clock Register + byte_offset: 312 + fieldset: C1_AHB1ENR + - name: C1_AHB2ENR + description: RCC AHB2 Clock Register + byte_offset: 316 + fieldset: C1_AHB2ENR + - name: C1_AHB4ENR + description: RCC AHB4 Clock Register + byte_offset: 320 + fieldset: C1_AHB4ENR + - name: C1_APB3ENR + description: RCC APB3 Clock Register + byte_offset: 324 + fieldset: C1_APB3ENR + - name: C1_APB1LENR + description: RCC APB1 Clock Register + byte_offset: 328 + fieldset: C1_APB1LENR + - name: C1_APB1HENR + description: RCC APB1 Clock Register + byte_offset: 332 + fieldset: C1_APB1HENR + - name: C1_APB2ENR + description: RCC APB2 Clock Register + byte_offset: 336 + fieldset: C1_APB2ENR + - name: C1_APB4ENR + description: RCC APB4 Clock Register + byte_offset: 340 + fieldset: C1_APB4ENR + - name: C1_AHB3LPENR + description: RCC AHB3 Sleep Clock Register + byte_offset: 348 + fieldset: C1_AHB3LPENR + - name: C1_AHB1LPENR + description: RCC AHB1 Sleep Clock Register + byte_offset: 352 + fieldset: C1_AHB1LPENR + - name: C1_AHB2LPENR + description: RCC AHB2 Sleep Clock Register + byte_offset: 356 + fieldset: C1_AHB2LPENR + - name: C1_AHB4LPENR + description: RCC AHB4 Sleep Clock Register + byte_offset: 360 + fieldset: C1_AHB4LPENR + - name: C1_APB3LPENR + description: RCC APB3 Sleep Clock Register + byte_offset: 364 + fieldset: C1_APB3LPENR + - name: C1_APB1LLPENR + description: RCC APB1 Low Sleep Clock Register + byte_offset: 368 + fieldset: C1_APB1LLPENR + - name: C1_APB1HLPENR + description: RCC APB1 High Sleep Clock Register + byte_offset: 372 + fieldset: C1_APB1HLPENR + - name: C1_APB2LPENR + description: RCC APB2 Sleep Clock Register + byte_offset: 376 + fieldset: C1_APB2LPENR + - name: C1_APB4LPENR + description: RCC APB4 Sleep Clock Register + byte_offset: 380 + fieldset: C1_APB4LPENR fieldset/AHB1ENR: description: RCC AHB1 Clock Register fields: - - name: DMA1EN - description: DMA1 Clock Enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 Clock Enable - bit_offset: 1 - bit_size: 1 - - name: ADC12EN - description: ADC1/2 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: ARTEN - description: ART Clock Enable - bit_offset: 14 - bit_size: 1 - - name: ETH1MACEN - description: Ethernet MAC bus interface Clock Enable - bit_offset: 15 - bit_size: 1 - - name: ETH1TXEN - description: Ethernet Transmission Clock Enable - bit_offset: 16 - bit_size: 1 - - name: ETH1RXEN - description: Ethernet Reception Clock Enable - bit_offset: 17 - bit_size: 1 - - name: USB_OTG_HSEN - description: USB_OTG_HS Peripheral Clocks Enable - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HS_ULPIEN - description: USB_OTG_HS ULPI clock enable - bit_offset: 26 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB_OTG_FS Peripheral Clocks Enable - bit_offset: 27 - bit_size: 1 - - name: USB_OTG_FS_ULPIEN - description: USB_OTG_FS ULPI clock enable - bit_offset: 28 - bit_size: 1 + - name: DMA1EN + description: DMA1 Clock Enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 Clock Enable + bit_offset: 1 + bit_size: 1 + - name: ADC12EN + description: ADC1/2 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: ARTEN + description: ART Clock Enable + bit_offset: 14 + bit_size: 1 + - name: ETH1MACEN + description: Ethernet MAC bus interface Clock Enable + bit_offset: 15 + bit_size: 1 + - name: ETH1TXEN + description: Ethernet Transmission Clock Enable + bit_offset: 16 + bit_size: 1 + - name: ETH1RXEN + description: Ethernet Reception Clock Enable + bit_offset: 17 + bit_size: 1 + - name: USB_OTG_HSEN + description: USB_OTG_HS Peripheral Clocks Enable + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HS_ULPIEN + description: USB_OTG_HS ULPI clock enable + bit_offset: 26 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB_OTG_FS Peripheral Clocks Enable + bit_offset: 27 + bit_size: 1 + - name: USB_OTG_FS_ULPIEN + description: USB_OTG_FS ULPI clock enable + bit_offset: 28 + bit_size: 1 fieldset/AHB1LPENR: description: RCC AHB1 Sleep Clock Register fields: - - name: DMA1LPEN - description: DMA1 Clock Enable During CSleep Mode - bit_offset: 0 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 Clock Enable During CSleep Mode - bit_offset: 1 - bit_size: 1 - - name: ADC12LPEN - description: ADC1/2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: ARTLPEN - description: ART Clock Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: ETH1MACLPEN - description: Ethernet MAC bus interface Clock Enable During CSleep Mode - bit_offset: 15 - bit_size: 1 - - name: ETH1TXLPEN - description: Ethernet Transmission Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: ETH1RXLPEN - description: Ethernet Reception Clock Enable During CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: USB_OTG_HSLPEN - description: USB_OTG_HS peripheral clock enable during CSleep mode - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HS_ULPILPEN - description: USB_PHY1 clock enable during CSleep mode - bit_offset: 26 - bit_size: 1 - - name: USB_OTG_FSLPEN - description: USB_OTG_FS peripheral clock enable during CSleep mode - bit_offset: 27 - bit_size: 1 - - name: USB_OTG_FS_ULPILPEN - description: USB_PHY2 clocks enable during CSleep mode - bit_offset: 28 - bit_size: 1 + - name: DMA1LPEN + description: DMA1 Clock Enable During CSleep Mode + bit_offset: 0 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 Clock Enable During CSleep Mode + bit_offset: 1 + bit_size: 1 + - name: ADC12LPEN + description: ADC1/2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: ARTLPEN + description: ART Clock Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: ETH1MACLPEN + description: Ethernet MAC bus interface Clock Enable During CSleep Mode + bit_offset: 15 + bit_size: 1 + - name: ETH1TXLPEN + description: Ethernet Transmission Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: ETH1RXLPEN + description: Ethernet Reception Clock Enable During CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: USB_OTG_HSLPEN + description: USB_OTG_HS peripheral clock enable during CSleep mode + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HS_ULPILPEN + description: USB_PHY1 clock enable during CSleep mode + bit_offset: 26 + bit_size: 1 + - name: USB_OTG_FSLPEN + description: USB_OTG_FS peripheral clock enable during CSleep mode + bit_offset: 27 + bit_size: 1 + - name: USB_OTG_FS_ULPILPEN + description: USB_PHY2 clocks enable during CSleep mode + bit_offset: 28 + bit_size: 1 fieldset/AHB1RSTR: description: RCC AHB1 Peripheral Reset Register fields: - - name: DMA1RST - description: DMA1 block reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 block reset - bit_offset: 1 - bit_size: 1 - - name: ADC12RST - description: ADC1&2 block reset - bit_offset: 5 - bit_size: 1 - - name: ARTRST - description: ART block reset - bit_offset: 14 - bit_size: 1 - - name: ETH1MACRST - description: ETH1MAC block reset - bit_offset: 15 - bit_size: 1 - - name: USB_OTG_HSRST - description: USB_OTG_HS block reset - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_FSRST - description: USB_OTG_FS block reset - bit_offset: 27 - bit_size: 1 + - name: DMA1RST + description: DMA1 block reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 block reset + bit_offset: 1 + bit_size: 1 + - name: ADC12RST + description: ADC1&2 block reset + bit_offset: 5 + bit_size: 1 + - name: ARTRST + description: ART block reset + bit_offset: 14 + bit_size: 1 + - name: ETH1MACRST + description: ETH1MAC block reset + bit_offset: 15 + bit_size: 1 + - name: USB_OTG_HSRST + description: USB_OTG_HS block reset + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_FSRST + description: USB_OTG_FS block reset + bit_offset: 27 + bit_size: 1 fieldset/AHB2ENR: description: RCC AHB2 Clock Register fields: - - name: DCMIEN - description: DCMI peripheral clock - bit_offset: 0 - bit_size: 1 - - name: CRYPTEN - description: CRYPT peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: HASHEN - description: HASH peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: RNGEN - description: RNG peripheral clocks enable - bit_offset: 6 - bit_size: 1 - - name: SDMMC2EN - description: SDMMC2 and SDMMC2 delay clock enable - bit_offset: 9 - bit_size: 1 - - name: FMACEN - description: FMAC enable - bit_offset: 16 - bit_size: 1 - - name: CORDICEN - description: CORDIC enable - bit_offset: 17 - bit_size: 1 - - name: SRAM1EN - description: SRAM1 block enable - bit_offset: 29 - bit_size: 1 - - name: SRAM2EN - description: SRAM2 block enable - bit_offset: 30 - bit_size: 1 - - name: SRAM3EN - description: SRAM3 block enable - bit_offset: 31 - bit_size: 1 + - name: DCMIEN + description: DCMI peripheral clock + bit_offset: 0 + bit_size: 1 + - name: CRYPTEN + description: CRYPT peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: HASHEN + description: HASH peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: RNGEN + description: RNG peripheral clocks enable + bit_offset: 6 + bit_size: 1 + - name: SDMMC2EN + description: SDMMC2 and SDMMC2 delay clock enable + bit_offset: 9 + bit_size: 1 + - name: FMACEN + description: FMAC enable + bit_offset: 16 + bit_size: 1 + - name: CORDICEN + description: CORDIC enable + bit_offset: 17 + bit_size: 1 + - name: SRAM1EN + description: SRAM1 block enable + bit_offset: 29 + bit_size: 1 + - name: SRAM2EN + description: SRAM2 block enable + bit_offset: 30 + bit_size: 1 + - name: SRAM3EN + description: SRAM3 block enable + bit_offset: 31 + bit_size: 1 fieldset/AHB2LPENR: description: RCC AHB2 Sleep Clock Register fields: - - name: DCMILPEN - description: DCMI peripheral clock enable during csleep mode - bit_offset: 0 - bit_size: 1 - - name: CRYPTLPEN - description: CRYPT peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: HASHLPEN - description: HASH peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: RNGLPEN - description: RNG peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: SDMMC2LPEN - description: SDMMC2 and SDMMC2 Delay Clock Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: FMACLPEN - description: FMAC enable during CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: CORDICLPEN - description: CORDIC enable during CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM1 Clock Enable During CSleep Mode - bit_offset: 29 - bit_size: 1 - - name: SRAM2LPEN - description: SRAM2 Clock Enable During CSleep Mode - bit_offset: 30 - bit_size: 1 - - name: SRAM3LPEN - description: SRAM3 Clock Enable During CSleep Mode - bit_offset: 31 - bit_size: 1 + - name: DCMILPEN + description: DCMI peripheral clock enable during csleep mode + bit_offset: 0 + bit_size: 1 + - name: CRYPTLPEN + description: CRYPT peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: HASHLPEN + description: HASH peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: RNGLPEN + description: RNG peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: SDMMC2LPEN + description: SDMMC2 and SDMMC2 Delay Clock Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: FMACLPEN + description: FMAC enable during CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: CORDICLPEN + description: CORDIC enable during CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM1 Clock Enable During CSleep Mode + bit_offset: 29 + bit_size: 1 + - name: SRAM2LPEN + description: SRAM2 Clock Enable During CSleep Mode + bit_offset: 30 + bit_size: 1 + - name: SRAM3LPEN + description: SRAM3 Clock Enable During CSleep Mode + bit_offset: 31 + bit_size: 1 fieldset/AHB2RSTR: description: RCC AHB2 Peripheral Reset Register fields: - - name: DCMIRST - description: DCMI block reset - bit_offset: 0 - bit_size: 1 - - name: CRYPTRST - description: Cryptography block reset - bit_offset: 4 - bit_size: 1 - - name: HASHRST - description: Hash block reset - bit_offset: 5 - bit_size: 1 - - name: RNGRST - description: Random Number Generator block reset - bit_offset: 6 - bit_size: 1 - - name: SDMMC2RST - description: SDMMC2 and SDMMC2 Delay block reset - bit_offset: 9 - bit_size: 1 - - name: FMACRST - description: FMAC reset - bit_offset: 16 - bit_size: 1 - - name: CORDICRST - description: CORDIC reset - bit_offset: 17 - bit_size: 1 + - name: DCMIRST + description: DCMI block reset + bit_offset: 0 + bit_size: 1 + - name: CRYPTRST + description: Cryptography block reset + bit_offset: 4 + bit_size: 1 + - name: HASHRST + description: Hash block reset + bit_offset: 5 + bit_size: 1 + - name: RNGRST + description: Random Number Generator block reset + bit_offset: 6 + bit_size: 1 + - name: SDMMC2RST + description: SDMMC2 and SDMMC2 Delay block reset + bit_offset: 9 + bit_size: 1 + - name: FMACRST + description: FMAC reset + bit_offset: 16 + bit_size: 1 + - name: CORDICRST + description: CORDIC reset + bit_offset: 17 + bit_size: 1 fieldset/AHB3ENR: description: RCC AHB3 Clock Register fields: - - name: MDMAEN - description: MDMA Peripheral Clock Enable - bit_offset: 0 - bit_size: 1 - - name: DMA2DEN - description: DMA2D Peripheral Clock Enable - bit_offset: 4 - bit_size: 1 - - name: JPGDECEN - description: JPGDEC Peripheral Clock Enable - bit_offset: 5 - bit_size: 1 - - name: FMCEN - description: FMC Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: QUADSPIEN - description: QUADSPI and QUADSPI Delay Clock Enable - bit_offset: 14 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 and SDMMC1 Delay Clock Enable - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2EN - description: OCTOSPI2 and OCTOSPI2 delay block enable - bit_offset: 19 - bit_size: 1 - - name: IOMNGREN - description: OCTOSPI IO manager enable - bit_offset: 21 - bit_size: 1 - - name: OTFD1EN - description: OTFDEC1 enable - bit_offset: 22 - bit_size: 1 - - name: OTFD2EN - description: OTFDEC2 enable - bit_offset: 23 - bit_size: 1 - - name: DTCM1EN - description: D1 DTCM1 block enable - bit_offset: 28 - bit_size: 1 - - name: DTCM2EN - description: D1 DTCM2 block enable - bit_offset: 29 - bit_size: 1 - - name: ITCM1EN - description: D1 ITCM block enable - bit_offset: 30 - bit_size: 1 - - name: AXISRAMEN - description: AXISRAM block enable - bit_offset: 31 - bit_size: 1 + - name: MDMAEN + description: MDMA Peripheral Clock Enable + bit_offset: 0 + bit_size: 1 + - name: DMA2DEN + description: DMA2D Peripheral Clock Enable + bit_offset: 4 + bit_size: 1 + - name: JPGDECEN + description: JPGDEC Peripheral Clock Enable + bit_offset: 5 + bit_size: 1 + - name: FMCEN + description: FMC Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: QUADSPIEN + description: QUADSPI and QUADSPI Delay Clock Enable + bit_offset: 14 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 and SDMMC1 Delay Clock Enable + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2EN + description: OCTOSPI2 and OCTOSPI2 delay block enable + bit_offset: 19 + bit_size: 1 + - name: IOMNGREN + description: OCTOSPI IO manager enable + bit_offset: 21 + bit_size: 1 + - name: OTFD1EN + description: OTFDEC1 enable + bit_offset: 22 + bit_size: 1 + - name: OTFD2EN + description: OTFDEC2 enable + bit_offset: 23 + bit_size: 1 + - name: DTCM1EN + description: D1 DTCM1 block enable + bit_offset: 28 + bit_size: 1 + - name: DTCM2EN + description: D1 DTCM2 block enable + bit_offset: 29 + bit_size: 1 + - name: ITCM1EN + description: D1 ITCM block enable + bit_offset: 30 + bit_size: 1 + - name: AXISRAMEN + description: AXISRAM block enable + bit_offset: 31 + bit_size: 1 fieldset/AHB3LPENR: description: RCC AHB3 Sleep Clock Register fields: - - name: MDMALPEN - description: MDMA Clock Enable During CSleep Mode - bit_offset: 0 - bit_size: 1 - - name: DMA2DLPEN - description: DMA2D Clock Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: JPGDECLPEN - description: JPGDEC Clock Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: FLASHLPEN - description: FLASH Clock Enable During CSleep Mode - bit_offset: 8 - bit_size: 1 - - name: FMCLPEN - description: FMC Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: QSPILPEN - description: QUADSPI and QUADSPI Delay Clock Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: SDMMC1LPEN - description: SDMMC1 and SDMMC1 Delay Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2LPEN - description: OCTOSPI2 and OCTOSPI2 delay block enable during CSleep Mode - bit_offset: 19 - bit_size: 1 - - name: IOMNGRLPEN - description: OCTOSPI IO manager enable during CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: OTFD1LPEN - description: OTFDEC1 enable during CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: OTFD2LPEN - description: OTFDEC2 enable during CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: D1DTCM1LPEN - description: D1DTCM1 Block Clock Enable During CSleep mode - bit_offset: 28 - bit_size: 1 - - name: DTCM2LPEN - description: D1 DTCM2 Block Clock Enable During CSleep mode - bit_offset: 29 - bit_size: 1 - - name: ITCMLPEN - description: D1ITCM Block Clock Enable During CSleep mode - bit_offset: 30 - bit_size: 1 - - name: AXISRAMLPEN - description: AXISRAM Block Clock Enable During CSleep mode - bit_offset: 31 - bit_size: 1 + - name: MDMALPEN + description: MDMA Clock Enable During CSleep Mode + bit_offset: 0 + bit_size: 1 + - name: DMA2DLPEN + description: DMA2D Clock Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: JPGDECLPEN + description: JPGDEC Clock Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: FLASHLPEN + description: FLASH Clock Enable During CSleep Mode + bit_offset: 8 + bit_size: 1 + - name: FMCLPEN + description: FMC Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: QSPILPEN + description: QUADSPI and QUADSPI Delay Clock Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: SDMMC1LPEN + description: SDMMC1 and SDMMC1 Delay Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2LPEN + description: OCTOSPI2 and OCTOSPI2 delay block enable during CSleep Mode + bit_offset: 19 + bit_size: 1 + - name: IOMNGRLPEN + description: OCTOSPI IO manager enable during CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: OTFD1LPEN + description: OTFDEC1 enable during CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: OTFD2LPEN + description: OTFDEC2 enable during CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: D1DTCM1LPEN + description: D1DTCM1 Block Clock Enable During CSleep mode + bit_offset: 28 + bit_size: 1 + - name: DTCM2LPEN + description: D1 DTCM2 Block Clock Enable During CSleep mode + bit_offset: 29 + bit_size: 1 + - name: ITCMLPEN + description: D1ITCM Block Clock Enable During CSleep mode + bit_offset: 30 + bit_size: 1 + - name: AXISRAMLPEN + description: AXISRAM Block Clock Enable During CSleep mode + bit_offset: 31 + bit_size: 1 fieldset/AHB3RSTR: description: RCC AHB3 Reset Register fields: - - name: MDMARST - description: MDMA block reset - bit_offset: 0 - bit_size: 1 - - name: DMA2DRST - description: DMA2D block reset - bit_offset: 4 - bit_size: 1 - - name: JPGDECRST - description: JPGDEC block reset - bit_offset: 5 - bit_size: 1 - - name: FMCRST - description: FMC block reset - bit_offset: 12 - bit_size: 1 - - name: QSPIRST - description: QUADSPI and QUADSPI delay block reset - bit_offset: 14 - bit_size: 1 - - name: SDMMC1RST - description: SDMMC1 and SDMMC1 delay block reset - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2RST - description: OCTOSPI2 and OCTOSPI2 delay block reset - bit_offset: 19 - bit_size: 1 - - name: IOMNGRRST - description: OCTOSPI IO manager reset - bit_offset: 21 - bit_size: 1 - - name: OTFD1RST - description: OTFDEC1 reset - bit_offset: 22 - bit_size: 1 - - name: OTFD2RST - description: OTFDEC2 reset - bit_offset: 23 - bit_size: 1 - - name: CPURST - description: CPU reset - bit_offset: 31 - bit_size: 1 + - name: MDMARST + description: MDMA block reset + bit_offset: 0 + bit_size: 1 + - name: DMA2DRST + description: DMA2D block reset + bit_offset: 4 + bit_size: 1 + - name: JPGDECRST + description: JPGDEC block reset + bit_offset: 5 + bit_size: 1 + - name: FMCRST + description: FMC block reset + bit_offset: 12 + bit_size: 1 + - name: QSPIRST + description: QUADSPI and QUADSPI delay block reset + bit_offset: 14 + bit_size: 1 + - name: SDMMC1RST + description: SDMMC1 and SDMMC1 delay block reset + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2RST + description: OCTOSPI2 and OCTOSPI2 delay block reset + bit_offset: 19 + bit_size: 1 + - name: IOMNGRRST + description: OCTOSPI IO manager reset + bit_offset: 21 + bit_size: 1 + - name: OTFD1RST + description: OTFDEC1 reset + bit_offset: 22 + bit_size: 1 + - name: OTFD2RST + description: OTFDEC2 reset + bit_offset: 23 + bit_size: 1 + - name: CPURST + description: CPU reset + bit_offset: 31 + bit_size: 1 fieldset/AHB4ENR: description: RCC AHB4 Clock Register fields: - - name: GPIOAEN - description: 0GPIO peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: 0GPIO peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: 0GPIO peripheral clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: 0GPIO peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: 0GPIO peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: 0GPIO peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: 0GPIO peripheral clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: 0GPIO peripheral clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: 0GPIO peripheral clock enable - bit_offset: 8 - bit_size: 1 - - name: GPIOJEN - description: 0GPIO peripheral clock enable - bit_offset: 9 - bit_size: 1 - - name: GPIOKEN - description: 0GPIO peripheral clock enable - bit_offset: 10 - bit_size: 1 - - name: CRCEN - description: CRC peripheral clock enable - bit_offset: 19 - bit_size: 1 - - name: BDMAEN - description: BDMA and DMAMUX2 Clock Enable - bit_offset: 21 - bit_size: 1 - - name: ADC3EN - description: ADC3 Peripheral Clocks Enable - bit_offset: 24 - bit_size: 1 - - name: HSEMEN - description: HSEM peripheral clock enable - bit_offset: 25 - bit_size: 1 - - name: BKPSRAMEN - description: Backup RAM Clock Enable - bit_offset: 28 - bit_size: 1 + - name: GPIOAEN + description: 0GPIO peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: 0GPIO peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: 0GPIO peripheral clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: 0GPIO peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: 0GPIO peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: 0GPIO peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: 0GPIO peripheral clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: 0GPIO peripheral clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: 0GPIO peripheral clock enable + bit_offset: 8 + bit_size: 1 + - name: GPIOJEN + description: 0GPIO peripheral clock enable + bit_offset: 9 + bit_size: 1 + - name: GPIOKEN + description: 0GPIO peripheral clock enable + bit_offset: 10 + bit_size: 1 + - name: CRCEN + description: CRC peripheral clock enable + bit_offset: 19 + bit_size: 1 + - name: BDMAEN + description: BDMA and DMAMUX2 Clock Enable + bit_offset: 21 + bit_size: 1 + - name: ADC3EN + description: ADC3 Peripheral Clocks Enable + bit_offset: 24 + bit_size: 1 + - name: HSEMEN + description: HSEM peripheral clock enable + bit_offset: 25 + bit_size: 1 + - name: BKPSRAMEN + description: Backup RAM Clock Enable + bit_offset: 28 + bit_size: 1 fieldset/AHB4LPENR: description: RCC AHB4 Sleep Clock Register fields: - - name: GPIOALPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 8 - bit_size: 1 - - name: GPIOJLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 9 - bit_size: 1 - - name: GPIOKLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 10 - bit_size: 1 - - name: CRCLPEN - description: CRC peripheral clock enable during CSleep mode - bit_offset: 19 - bit_size: 1 - - name: BDMALPEN - description: BDMA Clock Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: ADC3LPEN - description: ADC3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: BKPSRAMLPEN - description: Backup RAM Clock Enable During CSleep Mode - bit_offset: 28 - bit_size: 1 - - name: SRAM4LPEN - description: SRAM4 Clock Enable During CSleep Mode - bit_offset: 29 - bit_size: 1 + - name: GPIOALPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 8 + bit_size: 1 + - name: GPIOJLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 9 + bit_size: 1 + - name: GPIOKLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 10 + bit_size: 1 + - name: CRCLPEN + description: CRC peripheral clock enable during CSleep mode + bit_offset: 19 + bit_size: 1 + - name: BDMALPEN + description: BDMA Clock Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: ADC3LPEN + description: ADC3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: BKPSRAMLPEN + description: Backup RAM Clock Enable During CSleep Mode + bit_offset: 28 + bit_size: 1 + - name: SRAM4LPEN + description: SRAM4 Clock Enable During CSleep Mode + bit_offset: 29 + bit_size: 1 fieldset/AHB4RSTR: description: RCC AHB4 Peripheral Reset Register fields: - - name: GPIOARST - description: GPIO block reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: GPIO block reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: GPIO block reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: GPIO block reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: GPIO block reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: GPIO block reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: GPIO block reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: GPIO block reset - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: GPIO block reset - bit_offset: 8 - bit_size: 1 - - name: GPIOJRST - description: GPIO block reset - bit_offset: 9 - bit_size: 1 - - name: GPIOKRST - description: GPIO block reset - bit_offset: 10 - bit_size: 1 - - name: CRCRST - description: CRC block reset - bit_offset: 19 - bit_size: 1 - - name: BDMARST - description: BDMA block reset - bit_offset: 21 - bit_size: 1 - - name: ADC3RST - description: ADC3 block reset - bit_offset: 24 - bit_size: 1 - - name: HSEMRST - description: HSEM block reset - bit_offset: 25 - bit_size: 1 + - name: GPIOARST + description: GPIO block reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: GPIO block reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: GPIO block reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: GPIO block reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: GPIO block reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: GPIO block reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: GPIO block reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: GPIO block reset + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: GPIO block reset + bit_offset: 8 + bit_size: 1 + - name: GPIOJRST + description: GPIO block reset + bit_offset: 9 + bit_size: 1 + - name: GPIOKRST + description: GPIO block reset + bit_offset: 10 + bit_size: 1 + - name: CRCRST + description: CRC block reset + bit_offset: 19 + bit_size: 1 + - name: BDMARST + description: BDMA block reset + bit_offset: 21 + bit_size: 1 + - name: ADC3RST + description: ADC3 block reset + bit_offset: 24 + bit_size: 1 + - name: HSEMRST + description: HSEM block reset + bit_offset: 25 + bit_size: 1 fieldset/APB1HENR: description: RCC APB1 Clock Register fields: - - name: CRSEN - description: Clock Recovery System peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: SWPEN - description: SWPMI Peripheral Clocks Enable - bit_offset: 2 - bit_size: 1 - - name: OPAMPEN - description: OPAMP peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: MDIOSEN - description: MDIOS peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: FDCANEN - description: FDCAN Peripheral Clocks Enable - bit_offset: 8 - bit_size: 1 - - name: TIM23EN - description: TIM23 block enable - bit_offset: 24 - bit_size: 1 - - name: TIM24EN - description: TIM24 block enable - bit_offset: 25 - bit_size: 1 + - name: CRSEN + description: Clock Recovery System peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: SWPEN + description: SWPMI Peripheral Clocks Enable + bit_offset: 2 + bit_size: 1 + - name: OPAMPEN + description: OPAMP peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: MDIOSEN + description: MDIOS peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: FDCANEN + description: FDCAN Peripheral Clocks Enable + bit_offset: 8 + bit_size: 1 + - name: TIM23EN + description: TIM23 block enable + bit_offset: 24 + bit_size: 1 + - name: TIM24EN + description: TIM24 block enable + bit_offset: 25 + bit_size: 1 fieldset/APB1HLPENR: description: RCC APB1 High Sleep Clock Register fields: - - name: CRSLPEN - description: Clock Recovery System peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: SWPLPEN - description: SWPMI Peripheral Clocks Enable During CSleep Mode - bit_offset: 2 - bit_size: 1 - - name: OPAMPLPEN - description: OPAMP peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: MDIOSLPEN - description: MDIOS peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: FDCANLPEN - description: FDCAN Peripheral Clocks Enable During CSleep Mode - bit_offset: 8 - bit_size: 1 - - name: TIM23LPEN - description: TIM23 block enable during CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: TIM24LPEN - description: TIM24 block enable during CSleep Mode - bit_offset: 25 - bit_size: 1 + - name: CRSLPEN + description: Clock Recovery System peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: SWPLPEN + description: SWPMI Peripheral Clocks Enable During CSleep Mode + bit_offset: 2 + bit_size: 1 + - name: OPAMPLPEN + description: OPAMP peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: MDIOSLPEN + description: MDIOS peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: FDCANLPEN + description: FDCAN Peripheral Clocks Enable During CSleep Mode + bit_offset: 8 + bit_size: 1 + - name: TIM23LPEN + description: TIM23 block enable during CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: TIM24LPEN + description: TIM24 block enable during CSleep Mode + bit_offset: 25 + bit_size: 1 fieldset/APB1HRSTR: description: RCC APB1 Peripheral Reset Register fields: - - name: CRSRST - description: Clock Recovery System reset - bit_offset: 1 - bit_size: 1 - - name: SWPRST - description: SWPMI block reset - bit_offset: 2 - bit_size: 1 - - name: OPAMPRST - description: OPAMP block reset - bit_offset: 4 - bit_size: 1 - - name: MDIOSRST - description: MDIOS block reset - bit_offset: 5 - bit_size: 1 - - name: FDCANRST - description: FDCAN block reset - bit_offset: 8 - bit_size: 1 - - name: TIM23RST - description: TIM23 block reset - bit_offset: 24 - bit_size: 1 - - name: TIM24RST - description: TIM24 block reset - bit_offset: 25 - bit_size: 1 + - name: CRSRST + description: Clock Recovery System reset + bit_offset: 1 + bit_size: 1 + - name: SWPRST + description: SWPMI block reset + bit_offset: 2 + bit_size: 1 + - name: OPAMPRST + description: OPAMP block reset + bit_offset: 4 + bit_size: 1 + - name: MDIOSRST + description: MDIOS block reset + bit_offset: 5 + bit_size: 1 + - name: FDCANRST + description: FDCAN block reset + bit_offset: 8 + bit_size: 1 + - name: TIM23RST + description: TIM23 block reset + bit_offset: 24 + bit_size: 1 + - name: TIM24RST + description: TIM24 block reset + bit_offset: 25 + bit_size: 1 fieldset/APB1LENR: description: RCC APB1 Clock Register fields: - - name: TIM2EN - description: TIM peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM peripheral clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: TIM peripheral clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: TIM peripheral clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: TIM peripheral clock enable - bit_offset: 8 - bit_size: 1 - - name: LPTIM1EN - description: LPTIM1 Peripheral Clocks Enable - bit_offset: 9 - bit_size: 1 - - name: WWDG2EN - description: WWDG2 peripheral clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 Peripheral Clocks Enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 Peripheral Clocks Enable - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXEN - description: SPDIFRX Peripheral Clocks Enable - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: USART2 Peripheral Clocks Enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 Peripheral Clocks Enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 Peripheral Clocks Enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 Peripheral Clocks Enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 Peripheral Clocks Enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 Peripheral Clocks Enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 Peripheral Clocks Enable - bit_offset: 23 - bit_size: 1 - - name: I2C5EN - description: "I2C5 Peripheral Clocks\r Enable" - bit_offset: 25 - bit_size: 1 - - name: CECEN - description: HDMI-CEC peripheral clock enable - bit_offset: 27 - bit_size: 1 - - name: DAC12EN - description: DAC1&2 peripheral clock enable - bit_offset: 29 - bit_size: 1 - - name: UART7EN - description: UART7 Peripheral Clocks Enable - bit_offset: 30 - bit_size: 1 - - name: UART8EN - description: UART8 Peripheral Clocks Enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM peripheral clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: TIM peripheral clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: TIM peripheral clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: TIM peripheral clock enable + bit_offset: 8 + bit_size: 1 + - name: LPTIM1EN + description: LPTIM1 Peripheral Clocks Enable + bit_offset: 9 + bit_size: 1 + - name: WWDG2EN + description: WWDG2 peripheral clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 Peripheral Clocks Enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 Peripheral Clocks Enable + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXEN + description: SPDIFRX Peripheral Clocks Enable + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: USART2 Peripheral Clocks Enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 Peripheral Clocks Enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 Peripheral Clocks Enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 Peripheral Clocks Enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 Peripheral Clocks Enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 Peripheral Clocks Enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 Peripheral Clocks Enable + bit_offset: 23 + bit_size: 1 + - name: I2C5EN + description: "I2C5 Peripheral Clocks\r Enable" + bit_offset: 25 + bit_size: 1 + - name: CECEN + description: HDMI-CEC peripheral clock enable + bit_offset: 27 + bit_size: 1 + - name: DAC12EN + description: DAC1&2 peripheral clock enable + bit_offset: 29 + bit_size: 1 + - name: UART7EN + description: UART7 Peripheral Clocks Enable + bit_offset: 30 + bit_size: 1 + - name: UART8EN + description: UART8 Peripheral Clocks Enable + bit_offset: 31 + bit_size: 1 fieldset/APB1LLPENR: description: RCC APB1 Low Sleep Clock Register fields: - - name: TIM2LPEN - description: TIM2 peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: TIM3 peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: TIM4 peripheral clock enable during CSleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: TIM5 peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: TIM7 peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: TIM12 peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: TIM13 peripheral clock enable during CSleep mode - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: TIM14 peripheral clock enable during CSleep mode - bit_offset: 8 - bit_size: 1 - - name: LPTIM1LPEN - description: LPTIM1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: WWDG2LPEN - description: WWDG2 peripheral Clocks Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: SPI3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXLPEN - description: SPDIFRX Peripheral Clocks Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: USART2LPEN - description: USART2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: UART4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: UART5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: I2C3LPEN - description: I2C3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: I2C5LPEN - description: I2C5 block enable during CSleep Mode - bit_offset: 25 - bit_size: 1 - - name: CECLPEN - description: HDMI-CEC Peripheral Clocks Enable During CSleep Mode - bit_offset: 27 - bit_size: 1 - - name: DAC12LPEN - description: DAC1/2 peripheral clock enable during CSleep mode - bit_offset: 29 - bit_size: 1 - - name: UART7LPEN - description: UART7 Peripheral Clocks Enable During CSleep Mode - bit_offset: 30 - bit_size: 1 - - name: UART8LPEN - description: UART8 Peripheral Clocks Enable During CSleep Mode - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: TIM2 peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: TIM3 peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: TIM4 peripheral clock enable during CSleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: TIM5 peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: TIM7 peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: TIM12 peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: TIM13 peripheral clock enable during CSleep mode + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: TIM14 peripheral clock enable during CSleep mode + bit_offset: 8 + bit_size: 1 + - name: LPTIM1LPEN + description: LPTIM1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: WWDG2LPEN + description: WWDG2 peripheral Clocks Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: SPI3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXLPEN + description: SPDIFRX Peripheral Clocks Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: USART2LPEN + description: USART2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: UART4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: UART5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: I2C3LPEN + description: I2C3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: I2C5LPEN + description: I2C5 block enable during CSleep Mode + bit_offset: 25 + bit_size: 1 + - name: CECLPEN + description: HDMI-CEC Peripheral Clocks Enable During CSleep Mode + bit_offset: 27 + bit_size: 1 + - name: DAC12LPEN + description: DAC1/2 peripheral clock enable during CSleep mode + bit_offset: 29 + bit_size: 1 + - name: UART7LPEN + description: UART7 Peripheral Clocks Enable During CSleep Mode + bit_offset: 30 + bit_size: 1 + - name: UART8LPEN + description: UART8 Peripheral Clocks Enable During CSleep Mode + bit_offset: 31 + bit_size: 1 fieldset/APB1LRSTR: description: RCC APB1 Peripheral Reset Register fields: - - name: TIM2RST - description: TIM block reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM block reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM block reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM block reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM block reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM block reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: TIM block reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: TIM block reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: TIM block reset - bit_offset: 8 - bit_size: 1 - - name: LPTIM1RST - description: TIM block reset - bit_offset: 9 - bit_size: 1 - - name: SPI2RST - description: SPI2 block reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 block reset - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXRST - description: SPDIFRX block reset - bit_offset: 16 - bit_size: 1 - - name: USART2RST - description: USART2 block reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 block reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART4 block reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART5 block reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 block reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 block reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 block reset - bit_offset: 23 - bit_size: 1 - - name: I2C5RST - description: I2C5 block reset - bit_offset: 25 - bit_size: 1 - - name: CECRST - description: HDMI-CEC block reset - bit_offset: 27 - bit_size: 1 - - name: DAC12RST - description: DAC1 and 2 Blocks Reset - bit_offset: 29 - bit_size: 1 - - name: UART7RST - description: UART7 block reset - bit_offset: 30 - bit_size: 1 - - name: UART8RST - description: UART8 block reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM block reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM block reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM block reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM block reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM block reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM block reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: TIM block reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: TIM block reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: TIM block reset + bit_offset: 8 + bit_size: 1 + - name: LPTIM1RST + description: TIM block reset + bit_offset: 9 + bit_size: 1 + - name: SPI2RST + description: SPI2 block reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 block reset + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXRST + description: SPDIFRX block reset + bit_offset: 16 + bit_size: 1 + - name: USART2RST + description: USART2 block reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 block reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART4 block reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART5 block reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 block reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 block reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 block reset + bit_offset: 23 + bit_size: 1 + - name: I2C5RST + description: I2C5 block reset + bit_offset: 25 + bit_size: 1 + - name: CECRST + description: HDMI-CEC block reset + bit_offset: 27 + bit_size: 1 + - name: DAC12RST + description: DAC1 and 2 Blocks Reset + bit_offset: 29 + bit_size: 1 + - name: UART7RST + description: UART7 block reset + bit_offset: 30 + bit_size: 1 + - name: UART8RST + description: UART8 block reset + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: RCC APB2 Clock Register fields: - - name: TIM1EN - description: TIM1 peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM8EN - description: TIM8 peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: USART1EN - description: USART1 Peripheral Clocks Enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: UART9EN - description: "UART9 Peripheral Clocks\r Enable" - bit_offset: 6 - bit_size: 1 - - name: USART10EN - description: "USART10 Peripheral Clocks\r Enable" - bit_offset: 7 - bit_size: 1 - - name: SPI1EN - description: SPI1 Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: SPI4EN - description: SPI4 Peripheral Clocks Enable - bit_offset: 13 - bit_size: 1 - - name: TIM15EN - description: TIM15 peripheral clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 peripheral clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 peripheral clock enable - bit_offset: 18 - bit_size: 1 - - name: SPI5EN - description: SPI5 Peripheral Clocks Enable - bit_offset: 20 - bit_size: 1 - - name: SAI1EN - description: SAI1 Peripheral Clocks Enable - bit_offset: 22 - bit_size: 1 - - name: SAI2EN - description: SAI2 Peripheral Clocks Enable - bit_offset: 23 - bit_size: 1 - - name: SAI3EN - description: SAI3 Peripheral Clocks Enable - bit_offset: 24 - bit_size: 1 - - name: DFSDM1EN - description: DFSDM1 Peripheral Clocks Enable - bit_offset: 28 - bit_size: 1 - - name: HRTIMEN - description: HRTIM peripheral clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM1EN + description: TIM1 peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM8EN + description: TIM8 peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: USART1EN + description: USART1 Peripheral Clocks Enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: UART9EN + description: "UART9 Peripheral Clocks\r Enable" + bit_offset: 6 + bit_size: 1 + - name: USART10EN + description: "USART10 Peripheral Clocks\r Enable" + bit_offset: 7 + bit_size: 1 + - name: SPI1EN + description: SPI1 Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: SPI4EN + description: SPI4 Peripheral Clocks Enable + bit_offset: 13 + bit_size: 1 + - name: TIM15EN + description: TIM15 peripheral clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 peripheral clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 peripheral clock enable + bit_offset: 18 + bit_size: 1 + - name: SPI5EN + description: SPI5 Peripheral Clocks Enable + bit_offset: 20 + bit_size: 1 + - name: SAI1EN + description: SAI1 Peripheral Clocks Enable + bit_offset: 22 + bit_size: 1 + - name: SAI2EN + description: SAI2 Peripheral Clocks Enable + bit_offset: 23 + bit_size: 1 + - name: SAI3EN + description: SAI3 Peripheral Clocks Enable + bit_offset: 24 + bit_size: 1 + - name: DFSDM1EN + description: DFSDM1 Peripheral Clocks Enable + bit_offset: 28 + bit_size: 1 + - name: HRTIMEN + description: HRTIM peripheral clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB2LPENR: description: RCC APB2 Sleep Clock Register fields: - - name: TIM1LPEN - description: TIM1 peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM8LPEN - description: TIM8 peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: USART1LPEN - description: USART1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: SPI1LPEN - description: SPI1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: SPI4LPEN - description: SPI4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 13 - bit_size: 1 - - name: TIM15LPEN - description: TIM15 peripheral clock enable during CSleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM16LPEN - description: TIM16 peripheral clock enable during CSleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17LPEN - description: TIM17 peripheral clock enable during CSleep mode - bit_offset: 18 - bit_size: 1 - - name: SPI5LPEN - description: SPI5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 20 - bit_size: 1 - - name: SAI1LPEN - description: SAI1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: SAI2LPEN - description: SAI2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: SAI3LPEN - description: SAI3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: DFSDM1LPEN - description: DFSDM1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 28 - bit_size: 1 - - name: HRTIMLPEN - description: HRTIM peripheral clock enable during CSleep mode - bit_offset: 29 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM8LPEN + description: TIM8 peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: USART1LPEN + description: USART1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: SPI1LPEN + description: SPI1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: SPI4LPEN + description: SPI4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 13 + bit_size: 1 + - name: TIM15LPEN + description: TIM15 peripheral clock enable during CSleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM16LPEN + description: TIM16 peripheral clock enable during CSleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17LPEN + description: TIM17 peripheral clock enable during CSleep mode + bit_offset: 18 + bit_size: 1 + - name: SPI5LPEN + description: SPI5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 20 + bit_size: 1 + - name: SAI1LPEN + description: SAI1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: SAI2LPEN + description: SAI2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: SAI3LPEN + description: SAI3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: DFSDM1LPEN + description: DFSDM1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 28 + bit_size: 1 + - name: HRTIMLPEN + description: HRTIM peripheral clock enable during CSleep mode + bit_offset: 29 + bit_size: 1 fieldset/APB2RSTR: description: RCC APB2 Peripheral Reset Register fields: - - name: TIM1RST - description: TIM1 block reset - bit_offset: 0 - bit_size: 1 - - name: TIM8RST - description: TIM8 block reset - bit_offset: 1 - bit_size: 1 - - name: USART1RST - description: USART1 block reset - bit_offset: 4 - bit_size: 1 - - name: USART6RST - description: USART6 block reset - bit_offset: 5 - bit_size: 1 - - name: UART9RST - description: UART9 block reset - bit_offset: 6 - bit_size: 1 - - name: USART10RST - description: USART10 block reset - bit_offset: 7 - bit_size: 1 - - name: SPI1RST - description: SPI1 block reset - bit_offset: 12 - bit_size: 1 - - name: SPI4RST - description: SPI4 block reset - bit_offset: 13 - bit_size: 1 - - name: TIM15RST - description: TIM15 block reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 block reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 block reset - bit_offset: 18 - bit_size: 1 - - name: SPI5RST - description: SPI5 block reset - bit_offset: 20 - bit_size: 1 - - name: SAI1RST - description: SAI1 block reset - bit_offset: 22 - bit_size: 1 - - name: SAI2RST - description: SAI2 block reset - bit_offset: 23 - bit_size: 1 - - name: SAI3RST - description: SAI3 block reset - bit_offset: 24 - bit_size: 1 - - name: DFSDM1RST - description: DFSDM1 block reset - bit_offset: 28 - bit_size: 1 - - name: HRTIMRST - description: HRTIM block reset - bit_offset: 29 - bit_size: 1 + - name: TIM1RST + description: TIM1 block reset + bit_offset: 0 + bit_size: 1 + - name: TIM8RST + description: TIM8 block reset + bit_offset: 1 + bit_size: 1 + - name: USART1RST + description: USART1 block reset + bit_offset: 4 + bit_size: 1 + - name: USART6RST + description: USART6 block reset + bit_offset: 5 + bit_size: 1 + - name: UART9RST + description: UART9 block reset + bit_offset: 6 + bit_size: 1 + - name: USART10RST + description: USART10 block reset + bit_offset: 7 + bit_size: 1 + - name: SPI1RST + description: SPI1 block reset + bit_offset: 12 + bit_size: 1 + - name: SPI4RST + description: SPI4 block reset + bit_offset: 13 + bit_size: 1 + - name: TIM15RST + description: TIM15 block reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 block reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 block reset + bit_offset: 18 + bit_size: 1 + - name: SPI5RST + description: SPI5 block reset + bit_offset: 20 + bit_size: 1 + - name: SAI1RST + description: SAI1 block reset + bit_offset: 22 + bit_size: 1 + - name: SAI2RST + description: SAI2 block reset + bit_offset: 23 + bit_size: 1 + - name: SAI3RST + description: SAI3 block reset + bit_offset: 24 + bit_size: 1 + - name: DFSDM1RST + description: DFSDM1 block reset + bit_offset: 28 + bit_size: 1 + - name: HRTIMRST + description: HRTIM block reset + bit_offset: 29 + bit_size: 1 fieldset/APB3ENR: description: RCC APB3 Clock Register fields: - - name: LTDCEN - description: LTDC peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: DSIEN - description: DSI Peripheral clocks enable - bit_offset: 4 - bit_size: 1 - - name: WWDG1EN - description: WWDG1 Clock Enable - bit_offset: 6 - bit_size: 1 + - name: LTDCEN + description: LTDC peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: DSIEN + description: DSI Peripheral clocks enable + bit_offset: 4 + bit_size: 1 + - name: WWDG1EN + description: WWDG1 Clock Enable + bit_offset: 6 + bit_size: 1 fieldset/APB3LPENR: description: RCC APB3 Sleep Clock Register fields: - - name: LTDCLPEN - description: LTDC peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: DSILPEN - description: DSI Peripheral Clock Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: WWDG1LPEN - description: WWDG1 Clock Enable During CSleep Mode - bit_offset: 6 - bit_size: 1 + - name: LTDCLPEN + description: LTDC peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: DSILPEN + description: DSI Peripheral Clock Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: WWDG1LPEN + description: WWDG1 Clock Enable During CSleep Mode + bit_offset: 6 + bit_size: 1 fieldset/APB3RSTR: description: RCC APB3 Peripheral Reset Register fields: - - name: LTDCRST - description: LTDC block reset - bit_offset: 3 - bit_size: 1 - - name: DSIRST - description: DSI block reset - bit_offset: 4 - bit_size: 1 + - name: LTDCRST + description: LTDC block reset + bit_offset: 3 + bit_size: 1 + - name: DSIRST + description: DSI block reset + bit_offset: 4 + bit_size: 1 fieldset/APB4ENR: description: RCC APB4 Clock Register fields: - - name: SYSCFGEN - description: SYSCFG peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: LPUART1EN - description: LPUART1 Peripheral Clocks Enable - bit_offset: 3 - bit_size: 1 - - name: SPI6EN - description: SPI6 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: I2C4EN - description: I2C4 Peripheral Clocks Enable - bit_offset: 7 - bit_size: 1 - - name: LPTIM2EN - description: LPTIM2 Peripheral Clocks Enable - bit_offset: 9 - bit_size: 1 - - name: LPTIM3EN - description: LPTIM3 Peripheral Clocks Enable - bit_offset: 10 - bit_size: 1 - - name: LPTIM4EN - description: LPTIM4 Peripheral Clocks Enable - bit_offset: 11 - bit_size: 1 - - name: LPTIM5EN - description: LPTIM5 Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: DAC2EN - description: DAC2 (containing one converter) peripheral clock enable - bit_offset: 13 - bit_size: 1 - - name: COMP12EN - description: COMP1/2 peripheral clock enable - bit_offset: 14 - bit_size: 1 - - name: VREFEN - description: VREF peripheral clock enable - bit_offset: 15 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB Clock Enable - bit_offset: 16 - bit_size: 1 - - name: SAI4EN - description: SAI4 Peripheral Clocks Enable - bit_offset: 21 - bit_size: 1 - - name: DTSEN - description: Digital temperature sensor block enable - bit_offset: 26 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: LPUART1EN + description: LPUART1 Peripheral Clocks Enable + bit_offset: 3 + bit_size: 1 + - name: SPI6EN + description: SPI6 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: I2C4EN + description: I2C4 Peripheral Clocks Enable + bit_offset: 7 + bit_size: 1 + - name: LPTIM2EN + description: LPTIM2 Peripheral Clocks Enable + bit_offset: 9 + bit_size: 1 + - name: LPTIM3EN + description: LPTIM3 Peripheral Clocks Enable + bit_offset: 10 + bit_size: 1 + - name: LPTIM4EN + description: LPTIM4 Peripheral Clocks Enable + bit_offset: 11 + bit_size: 1 + - name: LPTIM5EN + description: LPTIM5 Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: DAC2EN + description: DAC2 (containing one converter) peripheral clock enable + bit_offset: 13 + bit_size: 1 + - name: COMP12EN + description: COMP1/2 peripheral clock enable + bit_offset: 14 + bit_size: 1 + - name: VREFEN + description: VREF peripheral clock enable + bit_offset: 15 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB Clock Enable + bit_offset: 16 + bit_size: 1 + - name: SAI4EN + description: SAI4 Peripheral Clocks Enable + bit_offset: 21 + bit_size: 1 + - name: DTSEN + description: Digital temperature sensor block enable + bit_offset: 26 + bit_size: 1 fieldset/APB4LPENR: description: RCC APB4 Sleep Clock Register fields: - - name: SYSCFGLPEN - description: SYSCFG peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: LPUART1LPEN - description: LPUART1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 3 - bit_size: 1 - - name: SPI6LPEN - description: SPI6 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: I2C4LPEN - description: I2C4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 7 - bit_size: 1 - - name: LPTIM2LPEN - description: LPTIM2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: LPTIM3LPEN - description: LPTIM3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 10 - bit_size: 1 - - name: LPTIM4LPEN - description: LPTIM4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: LPTIM5LPEN - description: LPTIM5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: DAC2LPEN - description: DAC2 (containing one converter) peripheral clock enable during CSleep mode - bit_offset: 13 - bit_size: 1 - - name: COMP12LPEN - description: COMP1/2 peripheral clock enable during CSleep mode - bit_offset: 14 - bit_size: 1 - - name: VREFLPEN - description: VREF peripheral clock enable during CSleep mode - bit_offset: 15 - bit_size: 1 - - name: RTCAPBLPEN - description: RTC APB Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: SAI4LPEN - description: SAI4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: DTSLPEN - description: Digital temperature sensor block enable during CSleep Mode - bit_offset: 26 - bit_size: 1 + - name: SYSCFGLPEN + description: SYSCFG peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: LPUART1LPEN + description: LPUART1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 3 + bit_size: 1 + - name: SPI6LPEN + description: SPI6 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: I2C4LPEN + description: I2C4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 7 + bit_size: 1 + - name: LPTIM2LPEN + description: LPTIM2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: LPTIM3LPEN + description: LPTIM3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 10 + bit_size: 1 + - name: LPTIM4LPEN + description: LPTIM4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: LPTIM5LPEN + description: LPTIM5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: DAC2LPEN + description: DAC2 (containing one converter) peripheral clock enable during CSleep mode + bit_offset: 13 + bit_size: 1 + - name: COMP12LPEN + description: COMP1/2 peripheral clock enable during CSleep mode + bit_offset: 14 + bit_size: 1 + - name: VREFLPEN + description: VREF peripheral clock enable during CSleep mode + bit_offset: 15 + bit_size: 1 + - name: RTCAPBLPEN + description: RTC APB Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: SAI4LPEN + description: SAI4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: DTSLPEN + description: Digital temperature sensor block enable during CSleep Mode + bit_offset: 26 + bit_size: 1 fieldset/APB4RSTR: description: RCC APB4 Peripheral Reset Register fields: - - name: SYSCFGRST - description: SYSCFG block reset - bit_offset: 1 - bit_size: 1 - - name: LPUART1RST - description: LPUART1 block reset - bit_offset: 3 - bit_size: 1 - - name: SPI6RST - description: SPI6 block reset - bit_offset: 5 - bit_size: 1 - - name: I2C4RST - description: I2C4 block reset - bit_offset: 7 - bit_size: 1 - - name: LPTIM2RST - description: LPTIM2 block reset - bit_offset: 9 - bit_size: 1 - - name: LPTIM3RST - description: LPTIM3 block reset - bit_offset: 10 - bit_size: 1 - - name: LPTIM4RST - description: LPTIM4 block reset - bit_offset: 11 - bit_size: 1 - - name: LPTIM5RST - description: LPTIM5 block reset - bit_offset: 12 - bit_size: 1 - - name: DAC2RST - description: DAC2 (containing one converter) reset - bit_offset: 13 - bit_size: 1 - - name: COMP12RST - description: COMP12 Blocks Reset - bit_offset: 14 - bit_size: 1 - - name: VREFRST - description: VREF block reset - bit_offset: 15 - bit_size: 1 - - name: SAI4RST - description: SAI4 block reset - bit_offset: 21 - bit_size: 1 - - name: DTSRST - description: Digital temperature sensor block reset - bit_offset: 26 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFG block reset + bit_offset: 1 + bit_size: 1 + - name: LPUART1RST + description: LPUART1 block reset + bit_offset: 3 + bit_size: 1 + - name: SPI6RST + description: SPI6 block reset + bit_offset: 5 + bit_size: 1 + - name: I2C4RST + description: I2C4 block reset + bit_offset: 7 + bit_size: 1 + - name: LPTIM2RST + description: LPTIM2 block reset + bit_offset: 9 + bit_size: 1 + - name: LPTIM3RST + description: LPTIM3 block reset + bit_offset: 10 + bit_size: 1 + - name: LPTIM4RST + description: LPTIM4 block reset + bit_offset: 11 + bit_size: 1 + - name: LPTIM5RST + description: LPTIM5 block reset + bit_offset: 12 + bit_size: 1 + - name: DAC2RST + description: DAC2 (containing one converter) reset + bit_offset: 13 + bit_size: 1 + - name: COMP12RST + description: COMP12 Blocks Reset + bit_offset: 14 + bit_size: 1 + - name: VREFRST + description: VREF block reset + bit_offset: 15 + bit_size: 1 + - name: SAI4RST + description: SAI4 block reset + bit_offset: 21 + bit_size: 1 + - name: DTSRST + description: Digital temperature sensor block reset + bit_offset: 26 + bit_size: 1 fieldset/BDCR: description: RCC Backup Domain Control Register fields: - - name: LSEON - description: LSE oscillator enabled - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator driving capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: LSE clock security system enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: LSE clock security system failure detection - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: VSwitch domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: LSE oscillator enabled + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator driving capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: LSE clock security system enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: LSE clock security system failure detection + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: VSwitch domain software reset + bit_offset: 16 + bit_size: 1 fieldset/C1_AHB1ENR: description: RCC AHB1 Clock Register fields: - - name: DMA1EN - description: DMA1 Clock Enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 Clock Enable - bit_offset: 1 - bit_size: 1 - - name: ADC12EN - description: ADC1/2 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: ARTEN - description: ART Clock Enable - bit_offset: 14 - bit_size: 1 - - name: ETH1MACEN - description: Ethernet MAC bus interface Clock Enable - bit_offset: 15 - bit_size: 1 - - name: ETH1TXEN - description: Ethernet Transmission Clock Enable - bit_offset: 16 - bit_size: 1 - - name: ETH1RXEN - description: Ethernet Reception Clock Enable - bit_offset: 17 - bit_size: 1 - - name: USB_OTG_HSEN - description: USB_OTG_HS Peripheral Clocks Enable - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HS_ULPIEN - description: USB_PHY1 Clocks Enable - bit_offset: 26 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB_OTG_FS Peripheral Clocks Enable - bit_offset: 27 - bit_size: 1 - - name: USB_OTG_FS_ULPIEN - description: USB_PHY2 Clocks Enable - bit_offset: 28 - bit_size: 1 + - name: DMA1EN + description: DMA1 Clock Enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 Clock Enable + bit_offset: 1 + bit_size: 1 + - name: ADC12EN + description: ADC1/2 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: ARTEN + description: ART Clock Enable + bit_offset: 14 + bit_size: 1 + - name: ETH1MACEN + description: Ethernet MAC bus interface Clock Enable + bit_offset: 15 + bit_size: 1 + - name: ETH1TXEN + description: Ethernet Transmission Clock Enable + bit_offset: 16 + bit_size: 1 + - name: ETH1RXEN + description: Ethernet Reception Clock Enable + bit_offset: 17 + bit_size: 1 + - name: USB_OTG_HSEN + description: USB_OTG_HS Peripheral Clocks Enable + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HS_ULPIEN + description: USB_PHY1 Clocks Enable + bit_offset: 26 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB_OTG_FS Peripheral Clocks Enable + bit_offset: 27 + bit_size: 1 + - name: USB_OTG_FS_ULPIEN + description: USB_PHY2 Clocks Enable + bit_offset: 28 + bit_size: 1 fieldset/C1_AHB1LPENR: description: RCC AHB1 Sleep Clock Register fields: - - name: DMA1LPEN - description: DMA1 Clock Enable During CSleep Mode - bit_offset: 0 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 Clock Enable During CSleep Mode - bit_offset: 1 - bit_size: 1 - - name: ADC12LPEN - description: ADC1/2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: ARTLPEN - description: ART Clock Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: ETH1MACLPEN - description: Ethernet MAC bus interface Clock Enable During CSleep Mode - bit_offset: 15 - bit_size: 1 - - name: ETH1TXLPEN - description: Ethernet Transmission Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: ETH1RXLPEN - description: Ethernet Reception Clock Enable During CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: USB_OTG_HSLPEN - description: USB_OTG_HS peripheral clock enable during CSleep mode - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HS_ULPILPEN - description: USB_PHY1 clock enable during CSleep mode - bit_offset: 26 - bit_size: 1 - - name: USB_OTG_FSLPEN - description: USB_OTG_FS peripheral clock enable during CSleep mode - bit_offset: 27 - bit_size: 1 - - name: USB_OTG_FS_ULPILPEN - description: USB_PHY2 clocks enable during CSleep mode - bit_offset: 28 - bit_size: 1 + - name: DMA1LPEN + description: DMA1 Clock Enable During CSleep Mode + bit_offset: 0 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 Clock Enable During CSleep Mode + bit_offset: 1 + bit_size: 1 + - name: ADC12LPEN + description: ADC1/2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: ARTLPEN + description: ART Clock Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: ETH1MACLPEN + description: Ethernet MAC bus interface Clock Enable During CSleep Mode + bit_offset: 15 + bit_size: 1 + - name: ETH1TXLPEN + description: Ethernet Transmission Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: ETH1RXLPEN + description: Ethernet Reception Clock Enable During CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: USB_OTG_HSLPEN + description: USB_OTG_HS peripheral clock enable during CSleep mode + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HS_ULPILPEN + description: USB_PHY1 clock enable during CSleep mode + bit_offset: 26 + bit_size: 1 + - name: USB_OTG_FSLPEN + description: USB_OTG_FS peripheral clock enable during CSleep mode + bit_offset: 27 + bit_size: 1 + - name: USB_OTG_FS_ULPILPEN + description: USB_PHY2 clocks enable during CSleep mode + bit_offset: 28 + bit_size: 1 fieldset/C1_AHB2ENR: description: RCC AHB2 Clock Register fields: - - name: DCMIEN - description: DCMI peripheral clock - bit_offset: 0 - bit_size: 1 - - name: CRYPTEN - description: CRYPT peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: HASHEN - description: HASH peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: RNGEN - description: RNG peripheral clocks enable - bit_offset: 6 - bit_size: 1 - - name: SDMMC2EN - description: SDMMC2 and SDMMC2 delay clock enable - bit_offset: 9 - bit_size: 1 - - name: SRAM1EN - description: SRAM1 block enable - bit_offset: 29 - bit_size: 1 - - name: SRAM2EN - description: SRAM2 block enable - bit_offset: 30 - bit_size: 1 - - name: SRAM3EN - description: SRAM3 block enable - bit_offset: 31 - bit_size: 1 + - name: DCMIEN + description: DCMI peripheral clock + bit_offset: 0 + bit_size: 1 + - name: CRYPTEN + description: CRYPT peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: HASHEN + description: HASH peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: RNGEN + description: RNG peripheral clocks enable + bit_offset: 6 + bit_size: 1 + - name: SDMMC2EN + description: SDMMC2 and SDMMC2 delay clock enable + bit_offset: 9 + bit_size: 1 + - name: SRAM1EN + description: SRAM1 block enable + bit_offset: 29 + bit_size: 1 + - name: SRAM2EN + description: SRAM2 block enable + bit_offset: 30 + bit_size: 1 + - name: SRAM3EN + description: SRAM3 block enable + bit_offset: 31 + bit_size: 1 fieldset/C1_AHB2LPENR: description: RCC AHB2 Sleep Clock Register fields: - - name: DCMILPEN - description: DCMI peripheral clock enable during csleep mode - bit_offset: 0 - bit_size: 1 - - name: CRYPTLPEN - description: CRYPT peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: HASHLPEN - description: HASH peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: RNGLPEN - description: RNG peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: SDMMC2LPEN - description: SDMMC2 and SDMMC2 Delay Clock Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: FMACLPEN - description: FMAC enable during CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: CORDICLPEN - description: CORDIC enable during CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM1 Clock Enable During CSleep Mode - bit_offset: 29 - bit_size: 1 - - name: SRAM2LPEN - description: SRAM2 Clock Enable During CSleep Mode - bit_offset: 30 - bit_size: 1 - - name: SRAM3LPEN - description: SRAM3 Clock Enable During CSleep Mode - bit_offset: 31 - bit_size: 1 + - name: DCMILPEN + description: DCMI peripheral clock enable during csleep mode + bit_offset: 0 + bit_size: 1 + - name: CRYPTLPEN + description: CRYPT peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: HASHLPEN + description: HASH peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: RNGLPEN + description: RNG peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: SDMMC2LPEN + description: SDMMC2 and SDMMC2 Delay Clock Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: FMACLPEN + description: FMAC enable during CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: CORDICLPEN + description: CORDIC enable during CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM1 Clock Enable During CSleep Mode + bit_offset: 29 + bit_size: 1 + - name: SRAM2LPEN + description: SRAM2 Clock Enable During CSleep Mode + bit_offset: 30 + bit_size: 1 + - name: SRAM3LPEN + description: SRAM3 Clock Enable During CSleep Mode + bit_offset: 31 + bit_size: 1 fieldset/C1_AHB3ENR: description: RCC AHB3 Clock Register fields: - - name: MDMAEN - description: MDMA Peripheral Clock Enable - bit_offset: 0 - bit_size: 1 - - name: DMA2DEN - description: DMA2D Peripheral Clock Enable - bit_offset: 4 - bit_size: 1 - - name: JPGDECEN - description: JPGDEC Peripheral Clock Enable - bit_offset: 5 - bit_size: 1 - - name: FMCEN - description: FMC Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: QUADSPIEN - description: QUADSPI and QUADSPI Delay Clock Enable - bit_offset: 14 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 and SDMMC1 Delay Clock Enable - bit_offset: 16 - bit_size: 1 + - name: MDMAEN + description: MDMA Peripheral Clock Enable + bit_offset: 0 + bit_size: 1 + - name: DMA2DEN + description: DMA2D Peripheral Clock Enable + bit_offset: 4 + bit_size: 1 + - name: JPGDECEN + description: JPGDEC Peripheral Clock Enable + bit_offset: 5 + bit_size: 1 + - name: FMCEN + description: FMC Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: QUADSPIEN + description: QUADSPI and QUADSPI Delay Clock Enable + bit_offset: 14 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 and SDMMC1 Delay Clock Enable + bit_offset: 16 + bit_size: 1 fieldset/C1_AHB3LPENR: description: RCC AHB3 Sleep Clock Register fields: - - name: MDMALPEN - description: MDMA Clock Enable During CSleep Mode - bit_offset: 0 - bit_size: 1 - - name: DMA2DLPEN - description: DMA2D Clock Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: JPGDECLPEN - description: JPGDEC Clock Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: FLASHPREN - description: Flash interface clock enable during csleep mode - bit_offset: 8 - bit_size: 1 - - name: FMCLPEN - description: FMC Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: QSPILPEN - description: QUADSPI and QUADSPI Delay Clock Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: SDMMC1LPEN - description: SDMMC1 and SDMMC1 Delay Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2LPEN - description: OCTOSPI2 and OCTOSPI2 delay block enable during CSleep Mode - bit_offset: 19 - bit_size: 1 - - name: IOMNGRLPEN - description: OCTOSPI IO manager enable during CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: OTFD1LPEN - description: OTFDEC1 enable during CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: OTFD2LPEN - description: OTFDEC2 enable during CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: D1DTCM1LPEN - description: D1DTCM1 Block Clock Enable During CSleep mode - bit_offset: 28 - bit_size: 1 - - name: DTCM2LPEN - description: D1 DTCM2 Block Clock Enable During CSleep mode - bit_offset: 29 - bit_size: 1 - - name: ITCMLPEN - description: D1ITCM Block Clock Enable During CSleep mode - bit_offset: 30 - bit_size: 1 - - name: AXISRAMLPEN - description: AXISRAM Block Clock Enable During CSleep mode - bit_offset: 31 - bit_size: 1 + - name: MDMALPEN + description: MDMA Clock Enable During CSleep Mode + bit_offset: 0 + bit_size: 1 + - name: DMA2DLPEN + description: DMA2D Clock Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: JPGDECLPEN + description: JPGDEC Clock Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: FLASHPREN + description: Flash interface clock enable during csleep mode + bit_offset: 8 + bit_size: 1 + - name: FMCLPEN + description: FMC Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: QSPILPEN + description: QUADSPI and QUADSPI Delay Clock Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: SDMMC1LPEN + description: SDMMC1 and SDMMC1 Delay Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2LPEN + description: OCTOSPI2 and OCTOSPI2 delay block enable during CSleep Mode + bit_offset: 19 + bit_size: 1 + - name: IOMNGRLPEN + description: OCTOSPI IO manager enable during CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: OTFD1LPEN + description: OTFDEC1 enable during CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: OTFD2LPEN + description: OTFDEC2 enable during CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: D1DTCM1LPEN + description: D1DTCM1 Block Clock Enable During CSleep mode + bit_offset: 28 + bit_size: 1 + - name: DTCM2LPEN + description: D1 DTCM2 Block Clock Enable During CSleep mode + bit_offset: 29 + bit_size: 1 + - name: ITCMLPEN + description: D1ITCM Block Clock Enable During CSleep mode + bit_offset: 30 + bit_size: 1 + - name: AXISRAMLPEN + description: AXISRAM Block Clock Enable During CSleep mode + bit_offset: 31 + bit_size: 1 fieldset/C1_AHB4ENR: description: RCC AHB4 Clock Register fields: - - name: GPIOAEN - description: 0GPIO peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: 0GPIO peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: 0GPIO peripheral clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: 0GPIO peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: 0GPIO peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: 0GPIO peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: 0GPIO peripheral clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: 0GPIO peripheral clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: 0GPIO peripheral clock enable - bit_offset: 8 - bit_size: 1 - - name: GPIOJEN - description: 0GPIO peripheral clock enable - bit_offset: 9 - bit_size: 1 - - name: GPIOKEN - description: 0GPIO peripheral clock enable - bit_offset: 10 - bit_size: 1 - - name: CRCEN - description: CRC peripheral clock enable - bit_offset: 19 - bit_size: 1 - - name: BDMAEN - description: BDMA and DMAMUX2 Clock Enable - bit_offset: 21 - bit_size: 1 - - name: ADC3EN - description: ADC3 Peripheral Clocks Enable - bit_offset: 24 - bit_size: 1 - - name: HSEMEN - description: HSEM peripheral clock enable - bit_offset: 25 - bit_size: 1 - - name: BKPSRAMEN - description: Backup RAM Clock Enable - bit_offset: 28 - bit_size: 1 + - name: GPIOAEN + description: 0GPIO peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: 0GPIO peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: 0GPIO peripheral clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: 0GPIO peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: 0GPIO peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: 0GPIO peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: 0GPIO peripheral clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: 0GPIO peripheral clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: 0GPIO peripheral clock enable + bit_offset: 8 + bit_size: 1 + - name: GPIOJEN + description: 0GPIO peripheral clock enable + bit_offset: 9 + bit_size: 1 + - name: GPIOKEN + description: 0GPIO peripheral clock enable + bit_offset: 10 + bit_size: 1 + - name: CRCEN + description: CRC peripheral clock enable + bit_offset: 19 + bit_size: 1 + - name: BDMAEN + description: BDMA and DMAMUX2 Clock Enable + bit_offset: 21 + bit_size: 1 + - name: ADC3EN + description: ADC3 Peripheral Clocks Enable + bit_offset: 24 + bit_size: 1 + - name: HSEMEN + description: HSEM peripheral clock enable + bit_offset: 25 + bit_size: 1 + - name: BKPSRAMEN + description: Backup RAM Clock Enable + bit_offset: 28 + bit_size: 1 fieldset/C1_AHB4LPENR: description: RCC AHB4 Sleep Clock Register fields: - - name: GPIOALPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 8 - bit_size: 1 - - name: GPIOJLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 9 - bit_size: 1 - - name: GPIOKLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 10 - bit_size: 1 - - name: CRCLPEN - description: CRC peripheral clock enable during CSleep mode - bit_offset: 19 - bit_size: 1 - - name: BDMALPEN - description: BDMA Clock Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: ADC3LPEN - description: ADC3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: BKPSRAMLPEN - description: Backup RAM Clock Enable During CSleep Mode - bit_offset: 28 - bit_size: 1 - - name: SRAM4LPEN - description: SRAM4 Clock Enable During CSleep Mode - bit_offset: 29 - bit_size: 1 + - name: GPIOALPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 8 + bit_size: 1 + - name: GPIOJLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 9 + bit_size: 1 + - name: GPIOKLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 10 + bit_size: 1 + - name: CRCLPEN + description: CRC peripheral clock enable during CSleep mode + bit_offset: 19 + bit_size: 1 + - name: BDMALPEN + description: BDMA Clock Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: ADC3LPEN + description: ADC3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: BKPSRAMLPEN + description: Backup RAM Clock Enable During CSleep Mode + bit_offset: 28 + bit_size: 1 + - name: SRAM4LPEN + description: SRAM4 Clock Enable During CSleep Mode + bit_offset: 29 + bit_size: 1 fieldset/C1_APB1HENR: description: RCC APB1 Clock Register fields: - - name: CRSEN - description: Clock Recovery System peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: SWPEN - description: SWPMI Peripheral Clocks Enable - bit_offset: 2 - bit_size: 1 - - name: OPAMPEN - description: OPAMP peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: MDIOSEN - description: MDIOS peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: FDCANEN - description: FDCAN Peripheral Clocks Enable - bit_offset: 8 - bit_size: 1 + - name: CRSEN + description: Clock Recovery System peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: SWPEN + description: SWPMI Peripheral Clocks Enable + bit_offset: 2 + bit_size: 1 + - name: OPAMPEN + description: OPAMP peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: MDIOSEN + description: MDIOS peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: FDCANEN + description: FDCAN Peripheral Clocks Enable + bit_offset: 8 + bit_size: 1 fieldset/C1_APB1HLPENR: description: RCC APB1 High Sleep Clock Register fields: - - name: CRSLPEN - description: Clock Recovery System peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: SWPLPEN - description: SWPMI Peripheral Clocks Enable During CSleep Mode - bit_offset: 2 - bit_size: 1 - - name: OPAMPLPEN - description: OPAMP peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: MDIOSLPEN - description: MDIOS peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: FDCANLPEN - description: FDCAN Peripheral Clocks Enable During CSleep Mode - bit_offset: 8 - bit_size: 1 - - name: TIM23LPEN - description: TIM23 block enable during CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: TIM24LPEN - description: TIM24 block enable during CSleep Mode - bit_offset: 25 - bit_size: 1 + - name: CRSLPEN + description: Clock Recovery System peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: SWPLPEN + description: SWPMI Peripheral Clocks Enable During CSleep Mode + bit_offset: 2 + bit_size: 1 + - name: OPAMPLPEN + description: OPAMP peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: MDIOSLPEN + description: MDIOS peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: FDCANLPEN + description: FDCAN Peripheral Clocks Enable During CSleep Mode + bit_offset: 8 + bit_size: 1 + - name: TIM23LPEN + description: TIM23 block enable during CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: TIM24LPEN + description: TIM24 block enable during CSleep Mode + bit_offset: 25 + bit_size: 1 fieldset/C1_APB1LENR: description: RCC APB1 Clock Register fields: - - name: TIM2EN - description: TIM peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM peripheral clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: TIM peripheral clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: TIM peripheral clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: TIM peripheral clock enable - bit_offset: 8 - bit_size: 1 - - name: LPTIM1EN - description: LPTIM1 Peripheral Clocks Enable - bit_offset: 9 - bit_size: 1 - - name: WWDG2EN - description: WWDG2 peripheral clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 Peripheral Clocks Enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 Peripheral Clocks Enable - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXEN - description: SPDIFRX Peripheral Clocks Enable - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: USART2 Peripheral Clocks Enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 Peripheral Clocks Enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 Peripheral Clocks Enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 Peripheral Clocks Enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 Peripheral Clocks Enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 Peripheral Clocks Enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 Peripheral Clocks Enable - bit_offset: 23 - bit_size: 1 - - name: I2C5EN - description: "I2C5 Peripheral Clocks\r Enable" - bit_offset: 25 - bit_size: 1 - - name: CECEN - description: HDMI-CEC peripheral clock enable - bit_offset: 27 - bit_size: 1 - - name: DAC12EN - description: DAC1&2 peripheral clock enable - bit_offset: 29 - bit_size: 1 - - name: UART7EN - description: UART7 Peripheral Clocks Enable - bit_offset: 30 - bit_size: 1 - - name: UART8EN - description: UART8 Peripheral Clocks Enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM peripheral clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: TIM peripheral clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: TIM peripheral clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: TIM peripheral clock enable + bit_offset: 8 + bit_size: 1 + - name: LPTIM1EN + description: LPTIM1 Peripheral Clocks Enable + bit_offset: 9 + bit_size: 1 + - name: WWDG2EN + description: WWDG2 peripheral clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 Peripheral Clocks Enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 Peripheral Clocks Enable + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXEN + description: SPDIFRX Peripheral Clocks Enable + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: USART2 Peripheral Clocks Enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 Peripheral Clocks Enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 Peripheral Clocks Enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 Peripheral Clocks Enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 Peripheral Clocks Enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 Peripheral Clocks Enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 Peripheral Clocks Enable + bit_offset: 23 + bit_size: 1 + - name: I2C5EN + description: "I2C5 Peripheral Clocks\r Enable" + bit_offset: 25 + bit_size: 1 + - name: CECEN + description: HDMI-CEC peripheral clock enable + bit_offset: 27 + bit_size: 1 + - name: DAC12EN + description: DAC1&2 peripheral clock enable + bit_offset: 29 + bit_size: 1 + - name: UART7EN + description: UART7 Peripheral Clocks Enable + bit_offset: 30 + bit_size: 1 + - name: UART8EN + description: UART8 Peripheral Clocks Enable + bit_offset: 31 + bit_size: 1 fieldset/C1_APB1LLPENR: description: RCC APB1 Low Sleep Clock Register fields: - - name: TIM2LPEN - description: TIM2 peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: TIM3 peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: TIM4 peripheral clock enable during CSleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: TIM5 peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: TIM7 peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: TIM12 peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: TIM13 peripheral clock enable during CSleep mode - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: TIM14 peripheral clock enable during CSleep mode - bit_offset: 8 - bit_size: 1 - - name: LPTIM1LPEN - description: LPTIM1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: WWDG2LPEN - description: WWDG2 peripheral Clocks Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: SPI3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXLPEN - description: SPDIFRX Peripheral Clocks Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: USART2LPEN - description: USART2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: UART4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: UART5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: I2C3LPEN - description: I2C3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: I2C5LPEN - description: I2C5 block enable during CSleep Mode - bit_offset: 25 - bit_size: 1 - - name: CECLPEN - description: HDMI-CEC Peripheral Clocks Enable During CSleep Mode - bit_offset: 27 - bit_size: 1 - - name: DAC12LPEN - description: DAC1/2 peripheral clock enable during CSleep mode - bit_offset: 29 - bit_size: 1 - - name: UART7LPEN - description: UART7 Peripheral Clocks Enable During CSleep Mode - bit_offset: 30 - bit_size: 1 - - name: UART8LPEN - description: UART8 Peripheral Clocks Enable During CSleep Mode - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: TIM2 peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: TIM3 peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: TIM4 peripheral clock enable during CSleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: TIM5 peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: TIM7 peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: TIM12 peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: TIM13 peripheral clock enable during CSleep mode + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: TIM14 peripheral clock enable during CSleep mode + bit_offset: 8 + bit_size: 1 + - name: LPTIM1LPEN + description: LPTIM1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: WWDG2LPEN + description: WWDG2 peripheral Clocks Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: SPI3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXLPEN + description: SPDIFRX Peripheral Clocks Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: USART2LPEN + description: USART2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: UART4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: UART5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: I2C3LPEN + description: I2C3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: I2C5LPEN + description: I2C5 block enable during CSleep Mode + bit_offset: 25 + bit_size: 1 + - name: CECLPEN + description: HDMI-CEC Peripheral Clocks Enable During CSleep Mode + bit_offset: 27 + bit_size: 1 + - name: DAC12LPEN + description: DAC1/2 peripheral clock enable during CSleep mode + bit_offset: 29 + bit_size: 1 + - name: UART7LPEN + description: UART7 Peripheral Clocks Enable During CSleep Mode + bit_offset: 30 + bit_size: 1 + - name: UART8LPEN + description: UART8 Peripheral Clocks Enable During CSleep Mode + bit_offset: 31 + bit_size: 1 fieldset/C1_APB2ENR: description: RCC APB2 Clock Register fields: - - name: TIM1EN - description: TIM1 peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM8EN - description: TIM8 peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: USART1EN - description: USART1 Peripheral Clocks Enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: UART9EN - description: "UART9 Peripheral Clocks\r Enable" - bit_offset: 6 - bit_size: 1 - - name: USART10EN - description: "USART10 Peripheral Clocks\r Enable" - bit_offset: 7 - bit_size: 1 - - name: SPI1EN - description: SPI1 Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: SPI4EN - description: SPI4 Peripheral Clocks Enable - bit_offset: 13 - bit_size: 1 - - name: TIM15EN - description: TIM15 peripheral clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 peripheral clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 peripheral clock enable - bit_offset: 18 - bit_size: 1 - - name: SPI5EN - description: SPI5 Peripheral Clocks Enable - bit_offset: 20 - bit_size: 1 - - name: SAI1EN - description: SAI1 Peripheral Clocks Enable - bit_offset: 22 - bit_size: 1 - - name: SAI2EN - description: SAI2 Peripheral Clocks Enable - bit_offset: 23 - bit_size: 1 - - name: SAI3EN - description: SAI3 Peripheral Clocks Enable - bit_offset: 24 - bit_size: 1 - - name: DFSDM1EN - description: DFSDM1 Peripheral Clocks Enable - bit_offset: 28 - bit_size: 1 - - name: HRTIMEN - description: HRTIM peripheral clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM1EN + description: TIM1 peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM8EN + description: TIM8 peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: USART1EN + description: USART1 Peripheral Clocks Enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: UART9EN + description: "UART9 Peripheral Clocks\r Enable" + bit_offset: 6 + bit_size: 1 + - name: USART10EN + description: "USART10 Peripheral Clocks\r Enable" + bit_offset: 7 + bit_size: 1 + - name: SPI1EN + description: SPI1 Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: SPI4EN + description: SPI4 Peripheral Clocks Enable + bit_offset: 13 + bit_size: 1 + - name: TIM15EN + description: TIM15 peripheral clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 peripheral clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 peripheral clock enable + bit_offset: 18 + bit_size: 1 + - name: SPI5EN + description: SPI5 Peripheral Clocks Enable + bit_offset: 20 + bit_size: 1 + - name: SAI1EN + description: SAI1 Peripheral Clocks Enable + bit_offset: 22 + bit_size: 1 + - name: SAI2EN + description: SAI2 Peripheral Clocks Enable + bit_offset: 23 + bit_size: 1 + - name: SAI3EN + description: SAI3 Peripheral Clocks Enable + bit_offset: 24 + bit_size: 1 + - name: DFSDM1EN + description: DFSDM1 Peripheral Clocks Enable + bit_offset: 28 + bit_size: 1 + - name: HRTIMEN + description: HRTIM peripheral clock enable + bit_offset: 29 + bit_size: 1 fieldset/C1_APB2LPENR: description: RCC APB2 Sleep Clock Register fields: - - name: TIM1LPEN - description: TIM1 peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM8LPEN - description: TIM8 peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: USART1LPEN - description: USART1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: SPI1LPEN - description: SPI1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: SPI4LPEN - description: SPI4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 13 - bit_size: 1 - - name: TIM15LPEN - description: TIM15 peripheral clock enable during CSleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM16LPEN - description: TIM16 peripheral clock enable during CSleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17LPEN - description: TIM17 peripheral clock enable during CSleep mode - bit_offset: 18 - bit_size: 1 - - name: SPI5LPEN - description: SPI5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 20 - bit_size: 1 - - name: SAI1LPEN - description: SAI1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: SAI2LPEN - description: SAI2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: SAI3LPEN - description: SAI3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: DFSDM1LPEN - description: DFSDM1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 28 - bit_size: 1 - - name: HRTIMLPEN - description: HRTIM peripheral clock enable during CSleep mode - bit_offset: 29 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM8LPEN + description: TIM8 peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: USART1LPEN + description: USART1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: SPI1LPEN + description: SPI1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: SPI4LPEN + description: SPI4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 13 + bit_size: 1 + - name: TIM15LPEN + description: TIM15 peripheral clock enable during CSleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM16LPEN + description: TIM16 peripheral clock enable during CSleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17LPEN + description: TIM17 peripheral clock enable during CSleep mode + bit_offset: 18 + bit_size: 1 + - name: SPI5LPEN + description: SPI5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 20 + bit_size: 1 + - name: SAI1LPEN + description: SAI1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: SAI2LPEN + description: SAI2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: SAI3LPEN + description: SAI3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: DFSDM1LPEN + description: DFSDM1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 28 + bit_size: 1 + - name: HRTIMLPEN + description: HRTIM peripheral clock enable during CSleep mode + bit_offset: 29 + bit_size: 1 fieldset/C1_APB3ENR: description: RCC APB3 Clock Register fields: - - name: LTDCEN - description: LTDC peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: DSIEN - description: DSI Peripheral clocks enable - bit_offset: 4 - bit_size: 1 - - name: WWDG1EN - description: WWDG1 Clock Enable - bit_offset: 6 - bit_size: 1 + - name: LTDCEN + description: LTDC peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: DSIEN + description: DSI Peripheral clocks enable + bit_offset: 4 + bit_size: 1 + - name: WWDG1EN + description: WWDG1 Clock Enable + bit_offset: 6 + bit_size: 1 fieldset/C1_APB3LPENR: description: RCC APB3 Sleep Clock Register fields: - - name: LTDCLPEN - description: LTDC peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: DSILPEN - description: DSI Peripheral Clock Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: WWDG1LPEN - description: WWDG1 Clock Enable During CSleep Mode - bit_offset: 6 - bit_size: 1 + - name: LTDCLPEN + description: LTDC peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: DSILPEN + description: DSI Peripheral Clock Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: WWDG1LPEN + description: WWDG1 Clock Enable During CSleep Mode + bit_offset: 6 + bit_size: 1 fieldset/C1_APB4ENR: description: RCC APB4 Clock Register fields: - - name: SYSCFGEN - description: SYSCFG peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: LPUART1EN - description: LPUART1 Peripheral Clocks Enable - bit_offset: 3 - bit_size: 1 - - name: SPI6EN - description: SPI6 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: I2C4EN - description: I2C4 Peripheral Clocks Enable - bit_offset: 7 - bit_size: 1 - - name: LPTIM2EN - description: LPTIM2 Peripheral Clocks Enable - bit_offset: 9 - bit_size: 1 - - name: LPTIM3EN - description: LPTIM3 Peripheral Clocks Enable - bit_offset: 10 - bit_size: 1 - - name: LPTIM4EN - description: LPTIM4 Peripheral Clocks Enable - bit_offset: 11 - bit_size: 1 - - name: LPTIM5EN - description: LPTIM5 Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: COMP12EN - description: COMP1/2 peripheral clock enable - bit_offset: 14 - bit_size: 1 - - name: VREFEN - description: VREF peripheral clock enable - bit_offset: 15 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB Clock Enable - bit_offset: 16 - bit_size: 1 - - name: SAI4EN - description: SAI4 Peripheral Clocks Enable - bit_offset: 21 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: LPUART1EN + description: LPUART1 Peripheral Clocks Enable + bit_offset: 3 + bit_size: 1 + - name: SPI6EN + description: SPI6 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: I2C4EN + description: I2C4 Peripheral Clocks Enable + bit_offset: 7 + bit_size: 1 + - name: LPTIM2EN + description: LPTIM2 Peripheral Clocks Enable + bit_offset: 9 + bit_size: 1 + - name: LPTIM3EN + description: LPTIM3 Peripheral Clocks Enable + bit_offset: 10 + bit_size: 1 + - name: LPTIM4EN + description: LPTIM4 Peripheral Clocks Enable + bit_offset: 11 + bit_size: 1 + - name: LPTIM5EN + description: LPTIM5 Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: COMP12EN + description: COMP1/2 peripheral clock enable + bit_offset: 14 + bit_size: 1 + - name: VREFEN + description: VREF peripheral clock enable + bit_offset: 15 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB Clock Enable + bit_offset: 16 + bit_size: 1 + - name: SAI4EN + description: SAI4 Peripheral Clocks Enable + bit_offset: 21 + bit_size: 1 fieldset/C1_APB4LPENR: description: RCC APB4 Sleep Clock Register fields: - - name: SYSCFGLPEN - description: SYSCFG peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: LPUART1LPEN - description: LPUART1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 3 - bit_size: 1 - - name: SPI6LPEN - description: SPI6 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: I2C4LPEN - description: I2C4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 7 - bit_size: 1 - - name: LPTIM2LPEN - description: LPTIM2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: LPTIM3LPEN - description: LPTIM3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 10 - bit_size: 1 - - name: LPTIM4LPEN - description: LPTIM4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: LPTIM5LPEN - description: LPTIM5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: COMP12LPEN - description: COMP1/2 peripheral clock enable during CSleep mode - bit_offset: 14 - bit_size: 1 - - name: VREFLPEN - description: VREF peripheral clock enable during CSleep mode - bit_offset: 15 - bit_size: 1 - - name: RTCAPBLPEN - description: RTC APB Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: SAI4LPEN - description: SAI4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: DTSLPEN - description: Digital temperature sensor block enable during CSleep Mode - bit_offset: 26 - bit_size: 1 + - name: SYSCFGLPEN + description: SYSCFG peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: LPUART1LPEN + description: LPUART1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 3 + bit_size: 1 + - name: SPI6LPEN + description: SPI6 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: I2C4LPEN + description: I2C4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 7 + bit_size: 1 + - name: LPTIM2LPEN + description: LPTIM2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: LPTIM3LPEN + description: LPTIM3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 10 + bit_size: 1 + - name: LPTIM4LPEN + description: LPTIM4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: LPTIM5LPEN + description: LPTIM5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: COMP12LPEN + description: COMP1/2 peripheral clock enable during CSleep mode + bit_offset: 14 + bit_size: 1 + - name: VREFLPEN + description: VREF peripheral clock enable during CSleep mode + bit_offset: 15 + bit_size: 1 + - name: RTCAPBLPEN + description: RTC APB Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: SAI4LPEN + description: SAI4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: DTSLPEN + description: Digital temperature sensor block enable during CSleep Mode + bit_offset: 26 + bit_size: 1 fieldset/C1_RSR: description: RCC Reset Status Register fields: - - name: RMVF - description: Remove reset flag - bit_offset: 16 - bit_size: 1 - - name: CPURSTF - description: CPU reset flag - bit_offset: 17 - bit_size: 1 - - name: D1RSTF - description: D1 domain power switch reset flag - bit_offset: 19 - bit_size: 1 - - name: D2RSTF - description: D2 domain power switch reset flag - bit_offset: 20 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 21 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag (NRST) - bit_offset: 22 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 23 - bit_size: 1 - - name: SFTRSTF - description: System reset from CPU reset flag - bit_offset: 24 - bit_size: 1 - - name: IWDG1RSTF - description: Independent Watchdog reset flag - bit_offset: 26 - bit_size: 1 - - name: WWDG1RSTF - description: Window Watchdog reset flag - bit_offset: 28 - bit_size: 1 - - name: LPWRRSTF - description: Reset due to illegal D1 DStandby or CPU CStop flag - bit_offset: 30 - bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 16 + bit_size: 1 + - name: CPURSTF + description: CPU reset flag + bit_offset: 17 + bit_size: 1 + - name: D1RSTF + description: D1 domain power switch reset flag + bit_offset: 19 + bit_size: 1 + - name: D2RSTF + description: D2 domain power switch reset flag + bit_offset: 20 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 21 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag (NRST) + bit_offset: 22 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 23 + bit_size: 1 + - name: SFTRSTF + description: System reset from CPU reset flag + bit_offset: 24 + bit_size: 1 + - name: IWDG1RSTF + description: Independent Watchdog reset flag + bit_offset: 26 + bit_size: 1 + - name: WWDG1RSTF + description: Window Watchdog reset flag + bit_offset: 28 + bit_size: 1 + - name: LPWRRSTF + description: Reset due to illegal D1 DStandby or CPU CStop flag + bit_offset: 30 + bit_size: 1 fieldset/CFGR: description: RCC Clock Configuration Register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 3 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 3 - bit_size: 3 - enum: SWS - - name: STOPWUCK - description: System clock selection after a wake up from system Stop - bit_offset: 6 - bit_size: 1 - enum: STOPWUCK - - name: STOPKERWUCK - description: Kernel clock selection after a wake up from system Stop - bit_offset: 7 - bit_size: 1 - enum: STOPWUCK - - name: RTCPRE - description: HSE division factor for RTC clock - bit_offset: 8 - bit_size: 6 - - name: HRTIMSEL - description: High Resolution Timer clock prescaler selection - bit_offset: 14 - bit_size: 1 - enum: HRTIMSEL - - name: TIMPRE - description: Timers clocks prescaler selection - bit_offset: 15 - bit_size: 1 - enum: TIMPRE - - name: MCO1PRE - description: MCO1 prescaler - bit_offset: 18 - bit_size: 4 - - name: MCO1 - description: Micro-controller clock output 1 - bit_offset: 22 - bit_size: 3 - enum: MCO1 - - name: MCO2PRE - description: MCO2 prescaler - bit_offset: 25 - bit_size: 4 - - name: MCO2 - description: Micro-controller clock output 2 - bit_offset: 29 - bit_size: 3 - enum: MCO2 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 3 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 3 + bit_size: 3 + enum: SWS + - name: STOPWUCK + description: System clock selection after a wake up from system Stop + bit_offset: 6 + bit_size: 1 + enum: STOPWUCK + - name: STOPKERWUCK + description: Kernel clock selection after a wake up from system Stop + bit_offset: 7 + bit_size: 1 + enum: STOPWUCK + - name: RTCPRE + description: HSE division factor for RTC clock + bit_offset: 8 + bit_size: 6 + - name: HRTIMSEL + description: High Resolution Timer clock prescaler selection + bit_offset: 14 + bit_size: 1 + enum: HRTIMSEL + - name: TIMPRE + description: Timers clocks prescaler selection + bit_offset: 15 + bit_size: 1 + enum: TIMPRE + - name: MCO1PRE + description: MCO1 prescaler + bit_offset: 18 + bit_size: 4 + - name: MCO1 + description: Micro-controller clock output 1 + bit_offset: 22 + bit_size: 3 + enum: MCO1 + - name: MCO2PRE + description: MCO2 prescaler + bit_offset: 25 + bit_size: 4 + - name: MCO2 + description: Micro-controller clock output 2 + bit_offset: 29 + bit_size: 3 + enum: MCO2 fieldset/CICR: description: RCC Clock Source Interrupt Clear Register fields: - - name: LSIRDYC - description: LSI ready Interrupt Clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready Interrupt Clear - bit_offset: 1 - bit_size: 1 - - name: HSIRDYC - description: HSI ready Interrupt Clear - bit_offset: 2 - bit_size: 1 - - name: HSERDYC - description: HSE ready Interrupt Clear - bit_offset: 3 - bit_size: 1 - - name: HSE_ready_Interrupt_Clear - description: CSI ready Interrupt Clear - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYC - description: RC48 ready Interrupt Clear - bit_offset: 5 - bit_size: 1 - - name: PLLRDYC - description: PLL1 ready Interrupt Clear - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LSECSSC - description: LSE clock security system Interrupt Clear - bit_offset: 9 - bit_size: 1 - - name: HSECSSC - description: HSE clock security system Interrupt Clear - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: LSI ready Interrupt Clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready Interrupt Clear + bit_offset: 1 + bit_size: 1 + - name: HSIRDYC + description: HSI ready Interrupt Clear + bit_offset: 2 + bit_size: 1 + - name: HSERDYC + description: HSE ready Interrupt Clear + bit_offset: 3 + bit_size: 1 + - name: HSE_ready_Interrupt_Clear + description: CSI ready Interrupt Clear + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYC + description: RC48 ready Interrupt Clear + bit_offset: 5 + bit_size: 1 + - name: PLLRDYC + description: PLL1 ready Interrupt Clear + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LSECSSC + description: LSE clock security system Interrupt Clear + bit_offset: 9 + bit_size: 1 + - name: HSECSSC + description: HSE clock security system Interrupt Clear + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: RCC Clock Source Interrupt Enable Register fields: - - name: LSIRDYIE - description: LSI ready Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready Interrupt Enable - bit_offset: 1 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready Interrupt Enable - bit_offset: 2 - bit_size: 1 - - name: HSERDYIE - description: HSE ready Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: CSIRDYIE - description: CSI ready Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYIE - description: RC48 ready Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: PLLRDYIE - description: PLL1 ready Interrupt Enable - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LSECSSIE - description: LSE clock security system Interrupt Enable - bit_offset: 9 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready Interrupt Enable + bit_offset: 1 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready Interrupt Enable + bit_offset: 2 + bit_size: 1 + - name: HSERDYIE + description: HSE ready Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: CSIRDYIE + description: CSI ready Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYIE + description: RC48 ready Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: PLLRDYIE + description: PLL1 ready Interrupt Enable + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LSECSSIE + description: LSE clock security system Interrupt Enable + bit_offset: 9 + bit_size: 1 fieldset/CIFR: description: RCC Clock Source Interrupt Flag Register fields: - - name: LSIRDYF - description: LSI ready Interrupt Flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready Interrupt Flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready Interrupt Flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready Interrupt Flag - bit_offset: 3 - bit_size: 1 - - name: CSIRDY - description: CSI ready Interrupt Flag - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYF - description: RC48 ready Interrupt Flag - bit_offset: 5 - bit_size: 1 - - name: PLLRDYF - description: PLL1 ready Interrupt Flag - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LSECSSF - description: LSE clock security system Interrupt Flag - bit_offset: 9 - bit_size: 1 - - name: HSECSSF - description: HSE clock security system Interrupt Flag - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: LSI ready Interrupt Flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready Interrupt Flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready Interrupt Flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready Interrupt Flag + bit_offset: 3 + bit_size: 1 + - name: CSIRDY + description: CSI ready Interrupt Flag + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYF + description: RC48 ready Interrupt Flag + bit_offset: 5 + bit_size: 1 + - name: PLLRDYF + description: PLL1 ready Interrupt Flag + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LSECSSF + description: LSE clock security system Interrupt Flag + bit_offset: 9 + bit_size: 1 + - name: HSECSSF + description: HSE clock security system Interrupt Flag + bit_offset: 10 + bit_size: 1 fieldset/CR: description: clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIKERON - description: High Speed Internal clock enable in Stop mode - bit_offset: 1 - bit_size: 1 - - name: HSIRDY - description: HSI clock ready flag - bit_offset: 2 - bit_size: 1 - - name: HSIDIV - description: HSI clock divider - bit_offset: 3 - bit_size: 2 - enum: HSIDIV - - name: HSIDIVF - description: HSI divider flag - bit_offset: 5 - bit_size: 1 - - name: CSION - description: CSI clock enable - bit_offset: 7 - bit_size: 1 - - name: CSIRDY - description: CSI clock ready flag - bit_offset: 8 - bit_size: 1 - - name: CSIKERON - description: CSI clock enable in Stop mode - bit_offset: 9 - bit_size: 1 - - name: HSI48ON - description: RC48 clock enable - bit_offset: 12 - bit_size: 1 - - name: HSI48RDY - description: RC48 clock ready flag - bit_offset: 13 - bit_size: 1 - - name: D1CKRDY - description: D1 domain clocks ready flag - bit_offset: 14 - bit_size: 1 - - name: D2CKRDY - description: D2 domain clocks ready flag - bit_offset: 15 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: HSECSSON - description: HSE Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL1 enable - bit_offset: 24 - bit_size: 1 - array: - len: 3 - stride: 2 - - name: PLLRDY - description: PLL1 clock ready flag - bit_offset: 25 - bit_size: 1 - array: - len: 3 - stride: 2 + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIKERON + description: High Speed Internal clock enable in Stop mode + bit_offset: 1 + bit_size: 1 + - name: HSIRDY + description: HSI clock ready flag + bit_offset: 2 + bit_size: 1 + - name: HSIDIV + description: HSI clock divider + bit_offset: 3 + bit_size: 2 + enum: HSIDIV + - name: HSIDIVF + description: HSI divider flag + bit_offset: 5 + bit_size: 1 + - name: CSION + description: CSI clock enable + bit_offset: 7 + bit_size: 1 + - name: CSIRDY + description: CSI clock ready flag + bit_offset: 8 + bit_size: 1 + - name: CSIKERON + description: CSI clock enable in Stop mode + bit_offset: 9 + bit_size: 1 + - name: HSI48ON + description: RC48 clock enable + bit_offset: 12 + bit_size: 1 + - name: HSI48RDY + description: RC48 clock ready flag + bit_offset: 13 + bit_size: 1 + - name: D1CKRDY + description: D1 domain clocks ready flag + bit_offset: 14 + bit_size: 1 + - name: D2CKRDY + description: D2 domain clocks ready flag + bit_offset: 15 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: HSECSSON + description: HSE Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL1 enable + bit_offset: 24 + bit_size: 1 + array: + len: 3 + stride: 2 + - name: PLLRDY + description: PLL1 clock ready flag + bit_offset: 25 + bit_size: 1 + array: + len: 3 + stride: 2 fieldset/CRRCR: description: RCC Clock Recovery RC Register fields: - - name: HSI48CAL - description: Internal RC 48 MHz clock calibration - bit_offset: 0 - bit_size: 10 + - name: HSI48CAL + description: Internal RC 48 MHz clock calibration + bit_offset: 0 + bit_size: 10 fieldset/CSICFGR: description: RCC CSI configuration register fields: - - name: CSICAL - description: CSI clock calibration - bit_offset: 0 - bit_size: 9 - - name: CSITRIM - description: CSI clock trimming - bit_offset: 24 - bit_size: 6 + - name: CSICAL + description: CSI clock calibration + bit_offset: 0 + bit_size: 9 + - name: CSITRIM + description: CSI clock trimming + bit_offset: 24 + bit_size: 6 fieldset/CSR: description: RCC Clock Control and Status Register fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 fieldset/D1CCIPR: description: RCC Domain 1 Kernel Clock Configuration Register fields: - - name: FMCSEL - description: FMC kernel clock source selection - bit_offset: 0 - bit_size: 2 - enum: FMCSEL - - name: QSPISEL - description: QUADSPI kernel clock source selection - bit_offset: 4 - bit_size: 2 - enum: FMCSEL - - name: DSISEL - description: kernel clock source selection - bit_offset: 8 - bit_size: 1 - - name: SDMMCSEL - description: SDMMC kernel clock source selection - bit_offset: 16 - bit_size: 1 - enum: SDMMCSEL - - name: CKPERSEL - description: per_ck clock source selection - bit_offset: 28 - bit_size: 2 - enum: CKPERSEL + - name: FMCSEL + description: FMC kernel clock source selection + bit_offset: 0 + bit_size: 2 + enum: FMCSEL + - name: QSPISEL + description: QUADSPI kernel clock source selection + bit_offset: 4 + bit_size: 2 + enum: FMCSEL + - name: DSISEL + description: kernel clock source selection + bit_offset: 8 + bit_size: 1 + - name: SDMMCSEL + description: SDMMC kernel clock source selection + bit_offset: 16 + bit_size: 1 + enum: SDMMCSEL + - name: CKPERSEL + description: per_ck clock source selection + bit_offset: 28 + bit_size: 2 + enum: CKPERSEL fieldset/D1CFGR: description: RCC Domain 1 Clock Configuration Register fields: - - name: HPRE - description: D1 domain AHB prescaler - bit_offset: 0 - bit_size: 4 - enum: HPRE - - name: D1PPRE - description: D1 domain APB3 prescaler - bit_offset: 4 - bit_size: 3 - enum: DPPRE - - name: D1CPRE - description: D1 domain Core prescaler - bit_offset: 8 - bit_size: 4 - enum: HPRE + - name: HPRE + description: D1 domain AHB prescaler + bit_offset: 0 + bit_size: 4 + enum: HPRE + - name: D1PPRE + description: D1 domain APB3 prescaler + bit_offset: 4 + bit_size: 3 + enum: DPPRE + - name: D1CPRE + description: D1 domain Core prescaler + bit_offset: 8 + bit_size: 4 + enum: HPRE fieldset/D2CCIP1R: description: RCC Domain 2 Kernel Clock Configuration Register fields: - - name: SAI1SEL - description: SAI1 and DFSDM1 kernel Aclk clock source selection - bit_offset: 0 - bit_size: 3 - enum: SAISEL - - name: SAI23SEL - description: SAI2 and SAI3 kernel clock source selection - bit_offset: 6 - bit_size: 3 - enum: SAISEL - - name: SPI123SEL - description: "SPI/I2S1,2 and 3 kernel clock source selection" - bit_offset: 12 - bit_size: 3 - enum: SAISEL - - name: SPI45SEL - description: SPI4 and 5 kernel clock source selection - bit_offset: 16 - bit_size: 3 - enum: SPI45SEL - - name: SPDIFRXSEL - description: SPDIFRX kernel clock source selection - bit_offset: 20 - bit_size: 2 - enum: SPDIFRXSEL - - name: DFSDM1SEL - description: DFSDM1 kernel Clk clock source selection - bit_offset: 24 - bit_size: 1 - enum: DFSDMSEL - - name: FDCANSEL - description: FDCAN kernel clock source selection - bit_offset: 28 - bit_size: 2 - enum: FDCANSEL - - name: SWPSEL - description: SWPMI kernel clock source selection - bit_offset: 31 - bit_size: 1 - enum: SWPSEL + - name: SAI1SEL + description: SAI1 and DFSDM1 kernel Aclk clock source selection + bit_offset: 0 + bit_size: 3 + enum: SAISEL + - name: SAI23SEL + description: SAI2 and SAI3 kernel clock source selection + bit_offset: 6 + bit_size: 3 + enum: SAISEL + - name: SPI123SEL + description: SPI/I2S1,2 and 3 kernel clock source selection + bit_offset: 12 + bit_size: 3 + enum: SAISEL + - name: SPI45SEL + description: SPI4 and 5 kernel clock source selection + bit_offset: 16 + bit_size: 3 + enum: SPI45SEL + - name: SPDIFRXSEL + description: SPDIFRX kernel clock source selection + bit_offset: 20 + bit_size: 2 + enum: SPDIFRXSEL + - name: DFSDM1SEL + description: DFSDM1 kernel Clk clock source selection + bit_offset: 24 + bit_size: 1 + enum: DFSDMSEL + - name: FDCANSEL + description: FDCAN kernel clock source selection + bit_offset: 28 + bit_size: 2 + enum: FDCANSEL + - name: SWPSEL + description: SWPMI kernel clock source selection + bit_offset: 31 + bit_size: 1 + enum: SWPSEL fieldset/D2CCIP2R: description: RCC Domain 2 Kernel Clock Configuration Register fields: - - name: USART234578SEL - description: "USART2/3, UART4,5, 7/8 (APB1) kernel clock source selection" - bit_offset: 0 - bit_size: 3 - enum: USART234578SEL - - name: USART16910SEL - description: "USART1, 6, 9 and 10 kernel clock source selection" - bit_offset: 3 - bit_size: 3 - enum: USART16910SEL - - name: RNGSEL - description: RNG kernel clock source selection - bit_offset: 8 - bit_size: 2 - enum: RNGSEL - - name: I2C1235SEL - description: "I2C1,2,3 kernel clock source selection" - bit_offset: 12 - bit_size: 2 - enum: I2C1235SEL - - name: USBSEL - description: USBOTG 1 and 2 kernel clock source selection - bit_offset: 20 - bit_size: 2 - enum: USBSEL - - name: CECSEL - description: HDMI-CEC kernel clock source selection - bit_offset: 22 - bit_size: 2 - enum: CECSEL - - name: LPTIM1SEL - description: LPTIM1 kernel clock source selection - bit_offset: 28 - bit_size: 3 - enum: LPTIM1SEL + - name: USART234578SEL + description: USART2/3, UART4,5, 7/8 (APB1) kernel clock source selection + bit_offset: 0 + bit_size: 3 + enum: USART234578SEL + - name: USART16910SEL + description: USART1, 6, 9 and 10 kernel clock source selection + bit_offset: 3 + bit_size: 3 + enum: USART16910SEL + - name: RNGSEL + description: RNG kernel clock source selection + bit_offset: 8 + bit_size: 2 + enum: RNGSEL + - name: I2C1235SEL + description: I2C1,2,3 kernel clock source selection + bit_offset: 12 + bit_size: 2 + enum: I2C1235SEL + - name: USBSEL + description: USBOTG 1 and 2 kernel clock source selection + bit_offset: 20 + bit_size: 2 + enum: USBSEL + - name: CECSEL + description: HDMI-CEC kernel clock source selection + bit_offset: 22 + bit_size: 2 + enum: CECSEL + - name: LPTIM1SEL + description: LPTIM1 kernel clock source selection + bit_offset: 28 + bit_size: 3 + enum: LPTIM1SEL fieldset/D2CFGR: description: RCC Domain 2 Clock Configuration Register fields: - - name: D2PPRE1 - description: D2 domain APB1 prescaler - bit_offset: 4 - bit_size: 3 - enum: DPPRE - - name: D2PPRE2 - description: D2 domain APB2 prescaler - bit_offset: 8 - bit_size: 3 - enum: DPPRE + - name: D2PPRE1 + description: D2 domain APB1 prescaler + bit_offset: 4 + bit_size: 3 + enum: DPPRE + - name: D2PPRE2 + description: D2 domain APB2 prescaler + bit_offset: 8 + bit_size: 3 + enum: DPPRE fieldset/D3AMR: description: RCC D3 Autonomous mode Register fields: - - name: BDMAAMEN - description: BDMA and DMAMUX Autonomous mode enable - bit_offset: 0 - bit_size: 1 - - name: LPUART1AMEN - description: LPUART1 Autonomous mode enable - bit_offset: 3 - bit_size: 1 - - name: SPI6AMEN - description: SPI6 Autonomous mode enable - bit_offset: 5 - bit_size: 1 - - name: I2C4AMEN - description: I2C4 Autonomous mode enable - bit_offset: 7 - bit_size: 1 - - name: LPTIM2AMEN - description: LPTIM2 Autonomous mode enable - bit_offset: 9 - bit_size: 1 - - name: LPTIM3AMEN - description: LPTIM3 Autonomous mode enable - bit_offset: 10 - bit_size: 1 - - name: LPTIM4AMEN - description: LPTIM4 Autonomous mode enable - bit_offset: 11 - bit_size: 1 - - name: LPTIM5AMEN - description: LPTIM5 Autonomous mode enable - bit_offset: 12 - bit_size: 1 - - name: DAC2AMEN - description: DAC2 (containing one converter) Autonomous mode enable - bit_offset: 13 - bit_size: 1 - - name: COMP12AMEN - description: COMP12 Autonomous mode enable - bit_offset: 14 - bit_size: 1 - - name: VREFAMEN - description: VREF Autonomous mode enable - bit_offset: 15 - bit_size: 1 - - name: RTCAMEN - description: RTC Autonomous mode enable - bit_offset: 16 - bit_size: 1 - - name: CRCAMEN - description: CRC Autonomous mode enable - bit_offset: 19 - bit_size: 1 - - name: SAI4AMEN - description: SAI4 Autonomous mode enable - bit_offset: 21 - bit_size: 1 - - name: ADC3AMEN - description: ADC3 Autonomous mode enable - bit_offset: 24 - bit_size: 1 - - name: DTSAMEN - description: Digital temperature sensor Autonomous mode enable - bit_offset: 26 - bit_size: 1 - - name: BKPSRAMAMEN - description: Backup RAM Autonomous mode enable - bit_offset: 28 - bit_size: 1 - - name: SRAM4AMEN - description: SRAM4 Autonomous mode enable - bit_offset: 29 - bit_size: 1 + - name: BDMAAMEN + description: BDMA and DMAMUX Autonomous mode enable + bit_offset: 0 + bit_size: 1 + - name: LPUART1AMEN + description: LPUART1 Autonomous mode enable + bit_offset: 3 + bit_size: 1 + - name: SPI6AMEN + description: SPI6 Autonomous mode enable + bit_offset: 5 + bit_size: 1 + - name: I2C4AMEN + description: I2C4 Autonomous mode enable + bit_offset: 7 + bit_size: 1 + - name: LPTIM2AMEN + description: LPTIM2 Autonomous mode enable + bit_offset: 9 + bit_size: 1 + - name: LPTIM3AMEN + description: LPTIM3 Autonomous mode enable + bit_offset: 10 + bit_size: 1 + - name: LPTIM4AMEN + description: LPTIM4 Autonomous mode enable + bit_offset: 11 + bit_size: 1 + - name: LPTIM5AMEN + description: LPTIM5 Autonomous mode enable + bit_offset: 12 + bit_size: 1 + - name: DAC2AMEN + description: DAC2 (containing one converter) Autonomous mode enable + bit_offset: 13 + bit_size: 1 + - name: COMP12AMEN + description: COMP12 Autonomous mode enable + bit_offset: 14 + bit_size: 1 + - name: VREFAMEN + description: VREF Autonomous mode enable + bit_offset: 15 + bit_size: 1 + - name: RTCAMEN + description: RTC Autonomous mode enable + bit_offset: 16 + bit_size: 1 + - name: CRCAMEN + description: CRC Autonomous mode enable + bit_offset: 19 + bit_size: 1 + - name: SAI4AMEN + description: SAI4 Autonomous mode enable + bit_offset: 21 + bit_size: 1 + - name: ADC3AMEN + description: ADC3 Autonomous mode enable + bit_offset: 24 + bit_size: 1 + - name: DTSAMEN + description: Digital temperature sensor Autonomous mode enable + bit_offset: 26 + bit_size: 1 + - name: BKPSRAMAMEN + description: Backup RAM Autonomous mode enable + bit_offset: 28 + bit_size: 1 + - name: SRAM4AMEN + description: SRAM4 Autonomous mode enable + bit_offset: 29 + bit_size: 1 fieldset/D3CCIPR: description: RCC Domain 3 Kernel Clock Configuration Register fields: - - name: LPUART1SEL - description: LPUART1 kernel clock source selection - bit_offset: 0 - bit_size: 3 - enum: LPUARTSEL - - name: I2C4SEL - description: I2C4 kernel clock source selection - bit_offset: 8 - bit_size: 2 - enum: I2C4SEL - - name: LPTIM2SEL - description: LPTIM2 kernel clock source selection - bit_offset: 10 - bit_size: 3 - enum: LPTIM2SEL - - name: LPTIM345SEL - description: "LPTIM3,4,5 kernel clock source selection" - bit_offset: 13 - bit_size: 3 - enum: LPTIM2SEL - - name: ADCSEL - description: SAR ADC kernel clock source selection - bit_offset: 16 - bit_size: 2 - enum: ADCSEL - - name: SAI4ASEL - description: Sub-Block A of SAI4 kernel clock source selection - bit_offset: 21 - bit_size: 3 - enum: SAIASEL - - name: SAI4BSEL - description: Sub-Block B of SAI4 kernel clock source selection - bit_offset: 24 - bit_size: 3 - enum: SAIASEL - - name: DFSDM2SEL - description: DFSDM2 kernel clock source selection - bit_offset: 27 - bit_size: 1 - - name: SPI6SEL - description: SPI6 kernel clock source selection - bit_offset: 28 - bit_size: 3 - enum: SPI6SEL + - name: LPUART1SEL + description: LPUART1 kernel clock source selection + bit_offset: 0 + bit_size: 3 + enum: LPUARTSEL + - name: I2C4SEL + description: I2C4 kernel clock source selection + bit_offset: 8 + bit_size: 2 + enum: I2C4SEL + - name: LPTIM2SEL + description: LPTIM2 kernel clock source selection + bit_offset: 10 + bit_size: 3 + enum: LPTIM2SEL + - name: LPTIM345SEL + description: LPTIM3,4,5 kernel clock source selection + bit_offset: 13 + bit_size: 3 + enum: LPTIM2SEL + - name: ADCSEL + description: SAR ADC kernel clock source selection + bit_offset: 16 + bit_size: 2 + enum: ADCSEL + - name: SAI4ASEL + description: Sub-Block A of SAI4 kernel clock source selection + bit_offset: 21 + bit_size: 3 + enum: SAIASEL + - name: SAI4BSEL + description: Sub-Block B of SAI4 kernel clock source selection + bit_offset: 24 + bit_size: 3 + enum: SAIASEL + - name: DFSDM2SEL + description: DFSDM2 kernel clock source selection + bit_offset: 27 + bit_size: 1 + - name: SPI6SEL + description: SPI6 kernel clock source selection + bit_offset: 28 + bit_size: 3 + enum: SPI6SEL fieldset/D3CFGR: description: RCC Domain 3 Clock Configuration Register fields: - - name: D3PPRE - description: D3 domain APB4 prescaler - bit_offset: 4 - bit_size: 3 - enum: DPPRE + - name: D3PPRE + description: D3 domain APB4 prescaler + bit_offset: 4 + bit_size: 3 + enum: DPPRE fieldset/GCR: description: Global Control Register fields: - - name: WW1RSC - description: WWDG1 reset scope control - bit_offset: 0 - bit_size: 1 - - name: WW2RSC - description: WWDG2 reset scope control - bit_offset: 1 - bit_size: 1 - - name: BOOT_C1 - description: Force allow CPU1 to boot - bit_offset: 2 - bit_size: 1 - - name: BOOT_C2 - description: Force allow CPU2 to boot - bit_offset: 3 - bit_size: 1 + - name: WW1RSC + description: WWDG1 reset scope control + bit_offset: 0 + bit_size: 1 + - name: WW2RSC + description: WWDG2 reset scope control + bit_offset: 1 + bit_size: 1 + - name: BOOT_C1 + description: Force allow CPU1 to boot + bit_offset: 2 + bit_size: 1 + - name: BOOT_C2 + description: Force allow CPU2 to boot + bit_offset: 3 + bit_size: 1 fieldset/HSICFGR: description: RCC HSI configuration register fields: - - name: HSICAL - description: HSI clock calibration - bit_offset: 0 - bit_size: 12 - - name: HSITRIM - description: HSI clock trimming - bit_offset: 24 - bit_size: 7 + - name: HSICAL + description: HSI clock calibration + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: HSI clock trimming + bit_offset: 24 + bit_size: 7 fieldset/ICSCR: description: RCC Internal Clock Source Calibration Register fields: - - name: HSICAL - description: HSI clock calibration - bit_offset: 0 - bit_size: 12 - - name: HSITRIM - description: HSI clock trimming - bit_offset: 12 - bit_size: 6 - - name: CSICAL - description: CSI clock calibration - bit_offset: 18 - bit_size: 8 - - name: CSITRIM - description: CSI clock trimming - bit_offset: 26 - bit_size: 5 + - name: HSICAL + description: HSI clock calibration + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: HSI clock trimming + bit_offset: 12 + bit_size: 6 + - name: CSICAL + description: CSI clock calibration + bit_offset: 18 + bit_size: 8 + - name: CSITRIM + description: CSI clock trimming + bit_offset: 26 + bit_size: 5 fieldset/PLL1DIVR: description: RCC PLL1 Dividers Configuration Register fields: - - name: DIVN1 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP1 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - enum: DIVP - - name: DIVQ1 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR1 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 + - name: DIVN1 + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: DIVP1 + description: PLL1 DIVP division factor + bit_offset: 9 + bit_size: 7 + enum: DIVP + - name: DIVQ1 + description: PLL1 DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: DIVR1 + description: PLL1 DIVR division factor + bit_offset: 24 + bit_size: 7 fieldset/PLL1FRACR: description: RCC PLL1 Fractional Divider Register fields: - - name: FRACN1 - description: Fractional part of the multiplication factor for PLL1 VCO - bit_offset: 3 - bit_size: 13 + - name: FRACN1 + description: Fractional part of the multiplication factor for PLL1 VCO + bit_offset: 3 + bit_size: 13 fieldset/PLL2DIVR: description: RCC PLL2 Dividers Configuration Register fields: - - name: DIVN2 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP2 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ2 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR2 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 + - name: DIVN2 + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: DIVP2 + description: PLL1 DIVP division factor + bit_offset: 9 + bit_size: 7 + - name: DIVQ2 + description: PLL1 DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: DIVR2 + description: PLL1 DIVR division factor + bit_offset: 24 + bit_size: 7 fieldset/PLL2FRACR: description: RCC PLL2 Fractional Divider Register fields: - - name: FRACN2 - description: Fractional part of the multiplication factor for PLL VCO - bit_offset: 3 - bit_size: 13 + - name: FRACN2 + description: Fractional part of the multiplication factor for PLL VCO + bit_offset: 3 + bit_size: 13 fieldset/PLL3DIVR: description: RCC PLL3 Dividers Configuration Register fields: - - name: DIVN3 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP3 - description: PLL DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ3 - description: PLL DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR3 - description: PLL DIVR division factor - bit_offset: 24 - bit_size: 7 + - name: DIVN3 + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: DIVP3 + description: PLL DIVP division factor + bit_offset: 9 + bit_size: 7 + - name: DIVQ3 + description: PLL DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: DIVR3 + description: PLL DIVR division factor + bit_offset: 24 + bit_size: 7 fieldset/PLL3FRACR: description: RCC PLL3 Fractional Divider Register fields: - - name: FRACN3 - description: Fractional part of the multiplication factor for PLL3 VCO - bit_offset: 3 - bit_size: 13 + - name: FRACN3 + description: Fractional part of the multiplication factor for PLL3 VCO + bit_offset: 3 + bit_size: 13 fieldset/PLLCFGR: description: RCC PLLs Configuration Register fields: - - name: PLLFRACEN - description: PLL1 fractional latch enable - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 4 - - name: PLLVCOSEL - description: PLL1 VCO selection - bit_offset: 1 - bit_size: 1 - array: - len: 3 - stride: 4 - enum: PLLVCOSEL - - name: PLLRGE - description: PLL1 input frequency range - bit_offset: 2 - bit_size: 2 - array: - len: 3 - stride: 4 - enum: PLLRGE - - name: DIVPEN - description: PLL1 DIVP divider output enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: DIVQEN - description: PLL1 DIVQ divider output enable - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: DIVREN - description: PLL1 DIVR divider output enable - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: PLLFRACEN + description: PLL1 fractional latch enable + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 4 + - name: PLLVCOSEL + description: PLL1 VCO selection + bit_offset: 1 + bit_size: 1 + array: + len: 3 + stride: 4 + enum: PLLVCOSEL + - name: PLLRGE + description: PLL1 input frequency range + bit_offset: 2 + bit_size: 2 + array: + len: 3 + stride: 4 + enum: PLLRGE + - name: DIVPEN + description: PLL1 DIVP divider output enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: DIVQEN + description: PLL1 DIVQ divider output enable + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: DIVREN + description: PLL1 DIVR divider output enable + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/PLLCKSELR: description: RCC PLLs Clock Source Selection Register fields: - - name: PLLSRC - description: DIVMx and PLLs clock source selection - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: DIVM - description: Prescaler for PLL1 - bit_offset: 4 - bit_size: 6 - array: - len: 3 - stride: 8 + - name: PLLSRC + description: DIVMx and PLLs clock source selection + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: DIVM + description: Prescaler for PLL1 + bit_offset: 4 + bit_size: 6 + array: + len: 3 + stride: 8 fieldset/RSR: description: RCC Reset Status Register fields: - - name: RMVF - description: Remove reset flag - bit_offset: 16 - bit_size: 1 - - name: CPURSTF - description: CPU reset flag - bit_offset: 17 - bit_size: 1 - - name: D1RSTF - description: D1 domain power switch reset flag - bit_offset: 19 - bit_size: 1 - - name: D2RSTF - description: D2 domain power switch reset flag - bit_offset: 20 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 21 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag (NRST) - bit_offset: 22 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 23 - bit_size: 1 - - name: SFTRSTF - description: System reset from CPU reset flag - bit_offset: 24 - bit_size: 1 - - name: IWDG1RSTF - description: Independent Watchdog reset flag - bit_offset: 26 - bit_size: 1 - - name: WWDG1RSTF - description: Window Watchdog reset flag - bit_offset: 28 - bit_size: 1 - - name: LPWRRSTF - description: Reset due to illegal D1 DStandby or CPU CStop flag - bit_offset: 30 - bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 16 + bit_size: 1 + - name: CPURSTF + description: CPU reset flag + bit_offset: 17 + bit_size: 1 + - name: D1RSTF + description: D1 domain power switch reset flag + bit_offset: 19 + bit_size: 1 + - name: D2RSTF + description: D2 domain power switch reset flag + bit_offset: 20 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 21 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag (NRST) + bit_offset: 22 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 23 + bit_size: 1 + - name: SFTRSTF + description: System reset from CPU reset flag + bit_offset: 24 + bit_size: 1 + - name: IWDG1RSTF + description: Independent Watchdog reset flag + bit_offset: 26 + bit_size: 1 + - name: WWDG1RSTF + description: Window Watchdog reset flag + bit_offset: 28 + bit_size: 1 + - name: LPWRRSTF + description: Reset due to illegal D1 DStandby or CPU CStop flag + bit_offset: 30 + bit_size: 1 enum/ADCSEL: bit_size: 2 variants: - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: PER - description: PER selected as peripheral clock - value: 2 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: PER + description: PER selected as peripheral clock + value: 2 enum/CECSEL: bit_size: 2 variants: - - name: LSE - description: LSE selected as peripheral clock - value: 0 - - name: LSI - description: LSI selected as peripheral clock - value: 1 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 0 + - name: LSI + description: LSI selected as peripheral clock + value: 1 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 2 enum/CKPERSEL: bit_size: 2 variants: - - name: HSI - description: HSI selected as peripheral clock - value: 0 - - name: CSI - description: CSI selected as peripheral clock - value: 1 - - name: HSE - description: HSE selected as peripheral clock - value: 2 + - name: HSI + description: HSI selected as peripheral clock + value: 0 + - name: CSI + description: CSI selected as peripheral clock + value: 1 + - name: HSE + description: HSE selected as peripheral clock + value: 2 enum/DFSDMSEL: bit_size: 1 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as peripheral clock - value: 0 - - name: SYS - description: System clock selected as peripheral clock - value: 1 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as peripheral clock + value: 0 + - name: SYS + description: System clock selected as peripheral clock + value: 1 enum/DIVP: bit_size: 7 variants: - - name: Div1 - description: pll_p_ck = vco_ck - value: 0 - - name: Div2 - description: pll_p_ck = vco_ck / 2 - value: 1 - - name: Div4 - description: pll_p_ck = vco_ck / 4 - value: 3 - - name: Div6 - description: pll_p_ck = vco_ck / 6 - value: 5 - - name: Div8 - description: pll_p_ck = vco_ck / 8 - value: 7 - - name: Div10 - description: pll_p_ck = vco_ck / 10 - value: 9 - - name: Div12 - description: pll_p_ck = vco_ck / 12 - value: 11 - - name: Div14 - description: pll_p_ck = vco_ck / 14 - value: 13 - - name: Div16 - description: pll_p_ck = vco_ck / 16 - value: 15 - - name: Div18 - description: pll_p_ck = vco_ck / 18 - value: 17 - - name: Div20 - description: pll_p_ck = vco_ck / 20 - value: 19 - - name: Div22 - description: pll_p_ck = vco_ck / 22 - value: 21 - - name: Div24 - description: pll_p_ck = vco_ck / 24 - value: 23 - - name: Div26 - description: pll_p_ck = vco_ck / 26 - value: 25 - - name: Div28 - description: pll_p_ck = vco_ck / 28 - value: 27 - - name: Div30 - description: pll_p_ck = vco_ck / 30 - value: 29 - - name: Div32 - description: pll_p_ck = vco_ck / 32 - value: 31 - - name: Div34 - description: pll_p_ck = vco_ck / 34 - value: 33 - - name: Div36 - description: pll_p_ck = vco_ck / 36 - value: 35 - - name: Div38 - description: pll_p_ck = vco_ck / 38 - value: 37 - - name: Div40 - description: pll_p_ck = vco_ck / 40 - value: 39 - - name: Div42 - description: pll_p_ck = vco_ck / 42 - value: 41 - - name: Div44 - description: pll_p_ck = vco_ck / 44 - value: 43 - - name: Div46 - description: pll_p_ck = vco_ck / 46 - value: 45 - - name: Div48 - description: pll_p_ck = vco_ck / 48 - value: 47 - - name: Div50 - description: pll_p_ck = vco_ck / 50 - value: 49 - - name: Div52 - description: pll_p_ck = vco_ck / 52 - value: 51 - - name: Div54 - description: pll_p_ck = vco_ck / 54 - value: 53 - - name: Div56 - description: pll_p_ck = vco_ck / 56 - value: 55 - - name: Div58 - description: pll_p_ck = vco_ck / 58 - value: 57 - - name: Div60 - description: pll_p_ck = vco_ck / 60 - value: 59 - - name: Div62 - description: pll_p_ck = vco_ck / 62 - value: 61 - - name: Div64 - description: pll_p_ck = vco_ck / 64 - value: 63 - - name: Div66 - description: pll_p_ck = vco_ck / 66 - value: 65 - - name: Div68 - description: pll_p_ck = vco_ck / 68 - value: 67 - - name: Div70 - description: pll_p_ck = vco_ck / 70 - value: 69 - - name: Div72 - description: pll_p_ck = vco_ck / 72 - value: 71 - - name: Div74 - description: pll_p_ck = vco_ck / 74 - value: 73 - - name: Div76 - description: pll_p_ck = vco_ck / 76 - value: 75 - - name: Div78 - description: pll_p_ck = vco_ck / 78 - value: 77 - - name: Div80 - description: pll_p_ck = vco_ck / 80 - value: 79 - - name: Div82 - description: pll_p_ck = vco_ck / 82 - value: 81 - - name: Div84 - description: pll_p_ck = vco_ck / 84 - value: 83 - - name: Div86 - description: pll_p_ck = vco_ck / 86 - value: 85 - - name: Div88 - description: pll_p_ck = vco_ck / 88 - value: 87 - - name: Div90 - description: pll_p_ck = vco_ck / 90 - value: 89 - - name: Div92 - description: pll_p_ck = vco_ck / 92 - value: 91 - - name: Div94 - description: pll_p_ck = vco_ck / 94 - value: 93 - - name: Div96 - description: pll_p_ck = vco_ck / 96 - value: 95 - - name: Div98 - description: pll_p_ck = vco_ck / 98 - value: 97 - - name: Div100 - description: pll_p_ck = vco_ck / 100 - value: 99 - - name: Div102 - description: pll_p_ck = vco_ck / 102 - value: 101 - - name: Div104 - description: pll_p_ck = vco_ck / 104 - value: 103 - - name: Div106 - description: pll_p_ck = vco_ck / 106 - value: 105 - - name: Div108 - description: pll_p_ck = vco_ck / 108 - value: 107 - - name: Div110 - description: pll_p_ck = vco_ck / 110 - value: 109 - - name: Div112 - description: pll_p_ck = vco_ck / 112 - value: 111 - - name: Div114 - description: pll_p_ck = vco_ck / 114 - value: 113 - - name: Div116 - description: pll_p_ck = vco_ck / 116 - value: 115 - - name: Div118 - description: pll_p_ck = vco_ck / 118 - value: 117 - - name: Div120 - description: pll_p_ck = vco_ck / 120 - value: 119 - - name: Div122 - description: pll_p_ck = vco_ck / 122 - value: 121 - - name: Div124 - description: pll_p_ck = vco_ck / 124 - value: 123 - - name: Div126 - description: pll_p_ck = vco_ck / 126 - value: 125 - - name: Div128 - description: pll_p_ck = vco_ck / 128 - value: 127 + - name: Div1 + description: pll_p_ck = vco_ck + value: 0 + - name: Div2 + description: pll_p_ck = vco_ck / 2 + value: 1 + - name: Div4 + description: pll_p_ck = vco_ck / 4 + value: 3 + - name: Div6 + description: pll_p_ck = vco_ck / 6 + value: 5 + - name: Div8 + description: pll_p_ck = vco_ck / 8 + value: 7 + - name: Div10 + description: pll_p_ck = vco_ck / 10 + value: 9 + - name: Div12 + description: pll_p_ck = vco_ck / 12 + value: 11 + - name: Div14 + description: pll_p_ck = vco_ck / 14 + value: 13 + - name: Div16 + description: pll_p_ck = vco_ck / 16 + value: 15 + - name: Div18 + description: pll_p_ck = vco_ck / 18 + value: 17 + - name: Div20 + description: pll_p_ck = vco_ck / 20 + value: 19 + - name: Div22 + description: pll_p_ck = vco_ck / 22 + value: 21 + - name: Div24 + description: pll_p_ck = vco_ck / 24 + value: 23 + - name: Div26 + description: pll_p_ck = vco_ck / 26 + value: 25 + - name: Div28 + description: pll_p_ck = vco_ck / 28 + value: 27 + - name: Div30 + description: pll_p_ck = vco_ck / 30 + value: 29 + - name: Div32 + description: pll_p_ck = vco_ck / 32 + value: 31 + - name: Div34 + description: pll_p_ck = vco_ck / 34 + value: 33 + - name: Div36 + description: pll_p_ck = vco_ck / 36 + value: 35 + - name: Div38 + description: pll_p_ck = vco_ck / 38 + value: 37 + - name: Div40 + description: pll_p_ck = vco_ck / 40 + value: 39 + - name: Div42 + description: pll_p_ck = vco_ck / 42 + value: 41 + - name: Div44 + description: pll_p_ck = vco_ck / 44 + value: 43 + - name: Div46 + description: pll_p_ck = vco_ck / 46 + value: 45 + - name: Div48 + description: pll_p_ck = vco_ck / 48 + value: 47 + - name: Div50 + description: pll_p_ck = vco_ck / 50 + value: 49 + - name: Div52 + description: pll_p_ck = vco_ck / 52 + value: 51 + - name: Div54 + description: pll_p_ck = vco_ck / 54 + value: 53 + - name: Div56 + description: pll_p_ck = vco_ck / 56 + value: 55 + - name: Div58 + description: pll_p_ck = vco_ck / 58 + value: 57 + - name: Div60 + description: pll_p_ck = vco_ck / 60 + value: 59 + - name: Div62 + description: pll_p_ck = vco_ck / 62 + value: 61 + - name: Div64 + description: pll_p_ck = vco_ck / 64 + value: 63 + - name: Div66 + description: pll_p_ck = vco_ck / 66 + value: 65 + - name: Div68 + description: pll_p_ck = vco_ck / 68 + value: 67 + - name: Div70 + description: pll_p_ck = vco_ck / 70 + value: 69 + - name: Div72 + description: pll_p_ck = vco_ck / 72 + value: 71 + - name: Div74 + description: pll_p_ck = vco_ck / 74 + value: 73 + - name: Div76 + description: pll_p_ck = vco_ck / 76 + value: 75 + - name: Div78 + description: pll_p_ck = vco_ck / 78 + value: 77 + - name: Div80 + description: pll_p_ck = vco_ck / 80 + value: 79 + - name: Div82 + description: pll_p_ck = vco_ck / 82 + value: 81 + - name: Div84 + description: pll_p_ck = vco_ck / 84 + value: 83 + - name: Div86 + description: pll_p_ck = vco_ck / 86 + value: 85 + - name: Div88 + description: pll_p_ck = vco_ck / 88 + value: 87 + - name: Div90 + description: pll_p_ck = vco_ck / 90 + value: 89 + - name: Div92 + description: pll_p_ck = vco_ck / 92 + value: 91 + - name: Div94 + description: pll_p_ck = vco_ck / 94 + value: 93 + - name: Div96 + description: pll_p_ck = vco_ck / 96 + value: 95 + - name: Div98 + description: pll_p_ck = vco_ck / 98 + value: 97 + - name: Div100 + description: pll_p_ck = vco_ck / 100 + value: 99 + - name: Div102 + description: pll_p_ck = vco_ck / 102 + value: 101 + - name: Div104 + description: pll_p_ck = vco_ck / 104 + value: 103 + - name: Div106 + description: pll_p_ck = vco_ck / 106 + value: 105 + - name: Div108 + description: pll_p_ck = vco_ck / 108 + value: 107 + - name: Div110 + description: pll_p_ck = vco_ck / 110 + value: 109 + - name: Div112 + description: pll_p_ck = vco_ck / 112 + value: 111 + - name: Div114 + description: pll_p_ck = vco_ck / 114 + value: 113 + - name: Div116 + description: pll_p_ck = vco_ck / 116 + value: 115 + - name: Div118 + description: pll_p_ck = vco_ck / 118 + value: 117 + - name: Div120 + description: pll_p_ck = vco_ck / 120 + value: 119 + - name: Div122 + description: pll_p_ck = vco_ck / 122 + value: 121 + - name: Div124 + description: pll_p_ck = vco_ck / 124 + value: 123 + - name: Div126 + description: pll_p_ck = vco_ck / 126 + value: 125 + - name: Div128 + description: pll_p_ck = vco_ck / 128 + value: 127 enum/DPPRE: bit_size: 3 variants: - - name: Div1 - description: rcc_hclk not divided - value: 0 - - name: Div2 - description: rcc_hclk divided by 2 - value: 4 - - name: Div4 - description: rcc_hclk divided by 4 - value: 5 - - name: Div8 - description: rcc_hclk divided by 8 - value: 6 - - name: Div16 - description: rcc_hclk divided by 16 - value: 7 + - name: Div1 + description: rcc_hclk not divided + value: 0 + - name: Div2 + description: rcc_hclk divided by 2 + value: 4 + - name: Div4 + description: rcc_hclk divided by 4 + value: 5 + - name: Div8 + description: rcc_hclk divided by 8 + value: 6 + - name: Div16 + description: rcc_hclk divided by 16 + value: 7 enum/FDCANSEL: bit_size: 2 variants: - - name: HSE - description: HSE selected as peripheral clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 2 + - name: HSE + description: HSE selected as peripheral clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 2 enum/FMCSEL: bit_size: 2 variants: - - name: RCC_HCLK3 - description: rcc_hclk3 selected as peripheral clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL2_R - description: pll2_r selected as peripheral clock - value: 2 - - name: PER - description: PER selected as peripheral clock - value: 3 + - name: RCC_HCLK3 + description: rcc_hclk3 selected as peripheral clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL2_R + description: pll2_r selected as peripheral clock + value: 2 + - name: PER + description: PER selected as peripheral clock + value: 3 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: sys_ck not divided - value: 0 - - name: Div2 - description: sys_ck divided by 2 - value: 8 - - name: Div4 - description: sys_ck divided by 4 - value: 9 - - name: Div8 - description: sys_ck divided by 8 - value: 10 - - name: Div16 - description: sys_ck divided by 16 - value: 11 - - name: Div64 - description: sys_ck divided by 64 - value: 12 - - name: Div128 - description: sys_ck divided by 128 - value: 13 - - name: Div256 - description: sys_ck divided by 256 - value: 14 - - name: Div512 - description: sys_ck divided by 512 - value: 15 + - name: Div1 + description: sys_ck not divided + value: 0 + - name: Div2 + description: sys_ck divided by 2 + value: 8 + - name: Div4 + description: sys_ck divided by 4 + value: 9 + - name: Div8 + description: sys_ck divided by 8 + value: 10 + - name: Div16 + description: sys_ck divided by 16 + value: 11 + - name: Div64 + description: sys_ck divided by 64 + value: 12 + - name: Div128 + description: sys_ck divided by 128 + value: 13 + - name: Div256 + description: sys_ck divided by 256 + value: 14 + - name: Div512 + description: sys_ck divided by 512 + value: 15 enum/HRTIMSEL: bit_size: 1 variants: - - name: TIMY_KER - description: The HRTIM prescaler clock source is the same as other timers (rcc_timy_ker_ck) - value: 0 - - name: C_CK - description: The HRTIM prescaler clock source is the CPU clock (c_ck) - value: 1 + - name: TIMY_KER + description: The HRTIM prescaler clock source is the same as other timers (rcc_timy_ker_ck) + value: 0 + - name: C_CK + description: The HRTIM prescaler clock source is the CPU clock (c_ck) + value: 1 enum/HSIDIV: bit_size: 2 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 enum/I2C1235SEL: bit_size: 2 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 2 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 3 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 2 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 3 enum/I2C4SEL: bit_size: 2 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 2 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 3 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 2 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 3 enum/LPTIM1SEL: bit_size: 3 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: LSE - description: LSE selected as peripheral clock - value: 3 - - name: LSI - description: LSI selected as peripheral clock - value: 4 - - name: PER - description: PER selected as peripheral clock - value: 5 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 3 + - name: LSI + description: LSI selected as peripheral clock + value: 4 + - name: PER + description: PER selected as peripheral clock + value: 5 enum/LPTIM2SEL: bit_size: 3 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: LSE - description: LSE selected as peripheral clock - value: 3 - - name: LSI - description: LSI selected as peripheral clock - value: 4 - - name: PER - description: PER selected as peripheral clock - value: 5 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 3 + - name: LSI + description: LSI selected as peripheral clock + value: 4 + - name: PER + description: PER selected as peripheral clock + value: 5 enum/LPUARTSEL: bit_size: 3 variants: - - name: RCC_PCLK_D3 - description: rcc_pclk_d3 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK_D3 + description: rcc_pclk_d3 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/LSEDRV: bit_size: 2 variants: - - name: Lowest - description: Lowest LSE oscillator driving capability - value: 0 - - name: MediumLow - description: Medium low LSE oscillator driving capability - value: 1 - - name: MediumHigh - description: Medium high LSE oscillator driving capability - value: 2 - - name: Highest - description: Highest LSE oscillator driving capability - value: 3 + - name: Lowest + description: Lowest LSE oscillator driving capability + value: 0 + - name: MediumLow + description: Medium low LSE oscillator driving capability + value: 1 + - name: MediumHigh + description: Medium high LSE oscillator driving capability + value: 2 + - name: Highest + description: Highest LSE oscillator driving capability + value: 3 enum/MCO1: bit_size: 3 variants: - - name: HSI - description: HSI selected for micro-controller clock output - value: 0 - - name: LSE - description: LSE selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_Q - description: pll1_q selected for micro-controller clock output - value: 3 - - name: HSI48 - description: HSI48 selected for micro-controller clock output - value: 4 + - name: HSI + description: HSI selected for micro-controller clock output + value: 0 + - name: LSE + description: LSE selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_Q + description: pll1_q selected for micro-controller clock output + value: 3 + - name: HSI48 + description: HSI48 selected for micro-controller clock output + value: 4 enum/MCO2: bit_size: 3 variants: - - name: SYSCLK - description: System clock selected for micro-controller clock output - value: 0 - - name: PLL2_P - description: pll2_p selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_P - description: pll1_p selected for micro-controller clock output - value: 3 - - name: CSI - description: CSI selected for micro-controller clock output - value: 4 - - name: LSI - description: LSI selected for micro-controller clock output - value: 5 + - name: SYSCLK + description: System clock selected for micro-controller clock output + value: 0 + - name: PLL2_P + description: pll2_p selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_P + description: pll1_p selected for micro-controller clock output + value: 3 + - name: CSI + description: CSI selected for micro-controller clock output + value: 4 + - name: LSI + description: LSI selected for micro-controller clock output + value: 5 enum/PLLRGE: bit_size: 2 variants: - - name: Range1 - description: Frequency is between 1 and 2 MHz - value: 0 - - name: Range2 - description: Frequency is between 2 and 4 MHz - value: 1 - - name: Range4 - description: Frequency is between 4 and 8 MHz - value: 2 - - name: Range8 - description: Frequency is between 8 and 16 MHz - value: 3 + - name: Range1 + description: Frequency is between 1 and 2 MHz + value: 0 + - name: Range2 + description: Frequency is between 2 and 4 MHz + value: 1 + - name: Range4 + description: Frequency is between 4 and 8 MHz + value: 2 + - name: Range8 + description: Frequency is between 8 and 16 MHz + value: 3 enum/PLLSRC: bit_size: 2 variants: - - name: HSI - description: HSI selected as PLL clock - value: 0 - - name: CSI - description: CSI selected as PLL clock - value: 1 - - name: HSE - description: HSE selected as PLL clock - value: 2 - - name: None - description: No clock sent to DIVMx dividers and PLLs - value: 3 + - name: HSI + description: HSI selected as PLL clock + value: 0 + - name: CSI + description: CSI selected as PLL clock + value: 1 + - name: HSE + description: HSE selected as PLL clock + value: 2 + - name: None + description: No clock sent to DIVMx dividers and PLLs + value: 3 enum/PLLVCOSEL: bit_size: 1 variants: - - name: WideVCO - description: VCO frequency range 192 to 836 MHz - value: 0 - - name: MediumVCO - description: VCO frequency range 150 to 420 MHz - value: 1 + - name: WideVCO + description: VCO frequency range 192 to 836 MHz + value: 0 + - name: MediumVCO + description: VCO frequency range 150 to 420 MHz + value: 1 enum/RNGSEL: bit_size: 2 variants: - - name: HSI48 - description: HSI48 selected as peripheral clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: LSE - description: LSE selected as peripheral clock - value: 2 - - name: LSI - description: LSI selected as peripheral clock - value: 3 + - name: HSI48 + description: HSI48 selected as peripheral clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: LSE + description: LSE selected as peripheral clock + value: 2 + - name: LSI + description: LSI selected as peripheral clock + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SAIASEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_P - description: pll3_p selected as peripheral clock - value: 2 - - name: I2S_CKIN - description: i2s_ckin selected as peripheral clock - value: 3 - - name: PER - description: PER selected as peripheral clock - value: 4 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_P + description: pll3_p selected as peripheral clock + value: 2 + - name: I2S_CKIN + description: i2s_ckin selected as peripheral clock + value: 3 + - name: PER + description: PER selected as peripheral clock + value: 4 enum/SAISEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_P - description: pll3_p selected as peripheral clock - value: 2 - - name: I2S_CKIN - description: I2S_CKIN selected as peripheral clock - value: 3 - - name: PER - description: PER selected as peripheral clock - value: 4 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_P + description: pll3_p selected as peripheral clock + value: 2 + - name: I2S_CKIN + description: I2S_CKIN selected as peripheral clock + value: 3 + - name: PER + description: PER selected as peripheral clock + value: 4 enum/SDMMCSEL: bit_size: 1 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_R - description: pll2_r selected as peripheral clock - value: 1 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_R + description: pll2_r selected as peripheral clock + value: 1 enum/SPDIFRXSEL: bit_size: 2 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_R - description: pll2_r selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_R + description: pll2_r selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 enum/SPI45SEL: bit_size: 3 variants: - - name: APB - description: APB clock selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: APB + description: APB clock selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/SPI6SEL: bit_size: 3 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/STOPWUCK: bit_size: 1 variants: - - name: HSI - description: HSI selected as wake up clock from system Stop - value: 0 - - name: CSI - description: CSI selected as wake up clock from system Stop - value: 1 + - name: HSI + description: HSI selected as wake up clock from system Stop + value: 0 + - name: CSI + description: CSI selected as wake up clock from system Stop + value: 1 enum/SW: bit_size: 3 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: CSI - description: CSI selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL1 - description: PLL1 selected as system clock - value: 3 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: CSI + description: CSI selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL1 + description: PLL1 selected as system clock + value: 3 enum/SWPSEL: bit_size: 1 variants: - - name: PCLK - description: pclk selected as peripheral clock - value: 0 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 1 + - name: PCLK + description: pclk selected as peripheral clock + value: 0 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 1 enum/SWS: bit_size: 3 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: CSI - description: CSI oscillator used as system clock - value: 1 - - name: HSE - description: HSE oscillator used as system clock - value: 2 - - name: PLL1 - description: PLL1 used as system clock - value: 3 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: CSI + description: CSI oscillator used as system clock + value: 1 + - name: HSE + description: HSE oscillator used as system clock + value: 2 + - name: PLL1 + description: PLL1 used as system clock + value: 3 enum/TIMPRE: bit_size: 1 variants: - - name: DefaultX2 - description: Timer kernel clock equal to 2x pclk by default - value: 0 - - name: DefaultX4 - description: Timer kernel clock equal to 4x pclk by default - value: 1 + - name: DefaultX2 + description: Timer kernel clock equal to 2x pclk by default + value: 0 + - name: DefaultX4 + description: Timer kernel clock equal to 4x pclk by default + value: 1 enum/USART16910SEL: bit_size: 3 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USART234578SEL: bit_size: 3 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USBSEL: bit_size: 2 variants: - - name: DISABLE - description: Disable the kernel clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI48 - description: HSI48 selected as peripheral clock - value: 3 + - name: DISABLE + description: Disable the kernel clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI48 + description: HSI48 selected as peripheral clock + value: 3 diff --git a/data/registers/rcc_h7ab.yaml b/data/registers/rcc_h7ab.yaml index ef8723b..0704432 100644 --- a/data/registers/rcc_h7ab.yaml +++ b/data/registers/rcc_h7ab.yaml @@ -1,3254 +1,3253 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: clock control register - byte_offset: 0 - fieldset: CR - - name: HSICFGR - description: RCC HSI configuration register - byte_offset: 4 - fieldset: HSICFGR - - name: CRRCR - description: RCC Clock Recovery RC Register - byte_offset: 8 - access: Read - fieldset: CRRCR - - name: CSICFGR - description: RCC CSI configuration register - byte_offset: 12 - fieldset: CSICFGR - - name: CFGR - description: RCC Clock Configuration Register - byte_offset: 16 - fieldset: CFGR - - name: D1CFGR - description: RCC Domain 1 Clock Configuration Register - byte_offset: 24 - fieldset: D1CFGR - - name: D2CFGR - description: RCC Domain 2 Clock Configuration Register - byte_offset: 28 - fieldset: D2CFGR - - name: D3CFGR - description: RCC Domain 3 Clock Configuration Register - byte_offset: 32 - fieldset: D3CFGR - - name: PLLCKSELR - description: RCC PLLs Clock Source Selection Register - byte_offset: 40 - fieldset: PLLCKSELR - - name: PLLCFGR - description: RCC PLLs Configuration Register - byte_offset: 44 - fieldset: PLLCFGR - - name: PLLDIVR - description: RCC PLL1 Dividers Configuration Register - array: - len: 3 - stride: 8 - byte_offset: 48 - fieldset: PLL1DIVR - - name: PLLFRACR - description: RCC PLL1 Fractional Divider Register - array: - len: 3 - stride: 8 - byte_offset: 52 - fieldset: PLL1FRACR - - name: D1CCIPR - description: RCC Domain 1 Kernel Clock Configuration Register - byte_offset: 76 - fieldset: D1CCIPR - - name: D2CCIP1R - description: RCC Domain 2 Kernel Clock Configuration Register - byte_offset: 80 - fieldset: D2CCIP1R - - name: D2CCIP2R - description: RCC Domain 2 Kernel Clock Configuration Register - byte_offset: 84 - fieldset: D2CCIP2R - - name: D3CCIPR - description: RCC Domain 3 Kernel Clock Configuration Register - byte_offset: 88 - fieldset: D3CCIPR - - name: CIER - description: RCC Clock Source Interrupt Enable Register - byte_offset: 96 - fieldset: CIER - - name: CIFR - description: RCC Clock Source Interrupt Flag Register - byte_offset: 100 - access: Read - fieldset: CIFR - - name: CICR - description: RCC Clock Source Interrupt Clear Register - byte_offset: 104 - fieldset: CICR - - name: BDCR - description: RCC Backup Domain Control Register - byte_offset: 112 - fieldset: BDCR - - name: CSR - description: RCC Clock Control and Status Register - byte_offset: 116 - fieldset: CSR - - name: AHB3RSTR - description: RCC AHB3 Reset Register - byte_offset: 124 - fieldset: AHB3RSTR - - name: AHB1RSTR - description: RCC AHB1 Peripheral Reset Register - byte_offset: 128 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: RCC AHB2 Peripheral Reset Register - byte_offset: 132 - fieldset: AHB2RSTR - - name: AHB4RSTR - description: RCC AHB4 Peripheral Reset Register - byte_offset: 136 - fieldset: AHB4RSTR - - name: APB3RSTR - description: RCC APB3 Peripheral Reset Register - byte_offset: 140 - fieldset: APB3RSTR - - name: APB1LRSTR - description: RCC APB1 Peripheral Reset Register - byte_offset: 144 - fieldset: APB1LRSTR - - name: APB1HRSTR - description: RCC APB1 Peripheral Reset Register - byte_offset: 148 - fieldset: APB1HRSTR - - name: APB2RSTR - description: RCC APB2 Peripheral Reset Register - byte_offset: 152 - fieldset: APB2RSTR - - name: APB4RSTR - description: RCC APB4 Peripheral Reset Register - byte_offset: 156 - fieldset: APB4RSTR - - name: GCR - description: Global Control Register - byte_offset: 160 - fieldset: GCR - - name: D3AMR - description: RCC D3 Autonomous mode Register - byte_offset: 168 - fieldset: D3AMR - - name: RSR - description: RCC Reset Status Register - byte_offset: 304 - fieldset: RSR - - name: AHB3ENR - description: RCC AHB3 Clock Register - byte_offset: 308 - fieldset: AHB3ENR - - name: AHB1ENR - description: RCC AHB1 Clock Register - byte_offset: 312 - fieldset: AHB1ENR - - name: AHB2ENR - description: RCC AHB2 Clock Register - byte_offset: 316 - fieldset: AHB2ENR - - name: AHB4ENR - description: RCC AHB4 Clock Register - byte_offset: 320 - fieldset: AHB4ENR - - name: APB3ENR - description: RCC APB3 Clock Register - byte_offset: 324 - fieldset: APB3ENR - - name: APB1LENR - description: RCC APB1 Clock Register - byte_offset: 328 - fieldset: APB1LENR - - name: APB1HENR - description: RCC APB1 Clock Register - byte_offset: 332 - fieldset: APB1HENR - - name: APB2ENR - description: RCC APB2 Clock Register - byte_offset: 336 - fieldset: APB2ENR - - name: APB4ENR - description: RCC APB4 Clock Register - byte_offset: 340 - fieldset: APB4ENR - - name: AHB3LPENR - description: RCC AHB3 Sleep Clock Register - byte_offset: 348 - fieldset: AHB3LPENR - - name: AHB1LPENR - description: RCC AHB1 Sleep Clock Register - byte_offset: 352 - fieldset: AHB1LPENR - - name: AHB2LPENR - description: RCC AHB2 Sleep Clock Register - byte_offset: 356 - fieldset: AHB2LPENR - - name: AHB4LPENR - description: RCC AHB4 Sleep Clock Register - byte_offset: 360 - fieldset: AHB4LPENR - - name: APB3LPENR - description: RCC APB3 Sleep Clock Register - byte_offset: 364 - fieldset: APB3LPENR - - name: APB1LLPENR - description: RCC APB1 Low Sleep Clock Register - byte_offset: 368 - fieldset: APB1LLPENR - - name: APB1HLPENR - description: RCC APB1 High Sleep Clock Register - byte_offset: 372 - fieldset: APB1HLPENR - - name: APB2LPENR - description: RCC APB2 Sleep Clock Register - byte_offset: 376 - fieldset: APB2LPENR - - name: APB4LPENR - description: RCC APB4 Sleep Clock Register - byte_offset: 380 - fieldset: APB4LPENR + - name: CR + description: clock control register + byte_offset: 0 + fieldset: CR + - name: HSICFGR + description: RCC HSI configuration register + byte_offset: 4 + fieldset: HSICFGR + - name: CRRCR + description: RCC Clock Recovery RC Register + byte_offset: 8 + access: Read + fieldset: CRRCR + - name: CSICFGR + description: RCC CSI configuration register + byte_offset: 12 + fieldset: CSICFGR + - name: CFGR + description: RCC Clock Configuration Register + byte_offset: 16 + fieldset: CFGR + - name: D1CFGR + description: RCC Domain 1 Clock Configuration Register + byte_offset: 24 + fieldset: D1CFGR + - name: D2CFGR + description: RCC Domain 2 Clock Configuration Register + byte_offset: 28 + fieldset: D2CFGR + - name: D3CFGR + description: RCC Domain 3 Clock Configuration Register + byte_offset: 32 + fieldset: D3CFGR + - name: PLLCKSELR + description: RCC PLLs Clock Source Selection Register + byte_offset: 40 + fieldset: PLLCKSELR + - name: PLLCFGR + description: RCC PLLs Configuration Register + byte_offset: 44 + fieldset: PLLCFGR + - name: PLLDIVR + description: RCC PLL1 Dividers Configuration Register + array: + len: 3 + stride: 8 + byte_offset: 48 + fieldset: PLL1DIVR + - name: PLLFRACR + description: RCC PLL1 Fractional Divider Register + array: + len: 3 + stride: 8 + byte_offset: 52 + fieldset: PLL1FRACR + - name: D1CCIPR + description: RCC Domain 1 Kernel Clock Configuration Register + byte_offset: 76 + fieldset: D1CCIPR + - name: D2CCIP1R + description: RCC Domain 2 Kernel Clock Configuration Register + byte_offset: 80 + fieldset: D2CCIP1R + - name: D2CCIP2R + description: RCC Domain 2 Kernel Clock Configuration Register + byte_offset: 84 + fieldset: D2CCIP2R + - name: D3CCIPR + description: RCC Domain 3 Kernel Clock Configuration Register + byte_offset: 88 + fieldset: D3CCIPR + - name: CIER + description: RCC Clock Source Interrupt Enable Register + byte_offset: 96 + fieldset: CIER + - name: CIFR + description: RCC Clock Source Interrupt Flag Register + byte_offset: 100 + access: Read + fieldset: CIFR + - name: CICR + description: RCC Clock Source Interrupt Clear Register + byte_offset: 104 + fieldset: CICR + - name: BDCR + description: RCC Backup Domain Control Register + byte_offset: 112 + fieldset: BDCR + - name: CSR + description: RCC Clock Control and Status Register + byte_offset: 116 + fieldset: CSR + - name: AHB3RSTR + description: RCC AHB3 Reset Register + byte_offset: 124 + fieldset: AHB3RSTR + - name: AHB1RSTR + description: RCC AHB1 Peripheral Reset Register + byte_offset: 128 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: RCC AHB2 Peripheral Reset Register + byte_offset: 132 + fieldset: AHB2RSTR + - name: AHB4RSTR + description: RCC AHB4 Peripheral Reset Register + byte_offset: 136 + fieldset: AHB4RSTR + - name: APB3RSTR + description: RCC APB3 Peripheral Reset Register + byte_offset: 140 + fieldset: APB3RSTR + - name: APB1LRSTR + description: RCC APB1 Peripheral Reset Register + byte_offset: 144 + fieldset: APB1LRSTR + - name: APB1HRSTR + description: RCC APB1 Peripheral Reset Register + byte_offset: 148 + fieldset: APB1HRSTR + - name: APB2RSTR + description: RCC APB2 Peripheral Reset Register + byte_offset: 152 + fieldset: APB2RSTR + - name: APB4RSTR + description: RCC APB4 Peripheral Reset Register + byte_offset: 156 + fieldset: APB4RSTR + - name: GCR + description: Global Control Register + byte_offset: 160 + fieldset: GCR + - name: D3AMR + description: RCC D3 Autonomous mode Register + byte_offset: 168 + fieldset: D3AMR + - name: RSR + description: RCC Reset Status Register + byte_offset: 304 + fieldset: RSR + - name: AHB3ENR + description: RCC AHB3 Clock Register + byte_offset: 308 + fieldset: AHB3ENR + - name: AHB1ENR + description: RCC AHB1 Clock Register + byte_offset: 312 + fieldset: AHB1ENR + - name: AHB2ENR + description: RCC AHB2 Clock Register + byte_offset: 316 + fieldset: AHB2ENR + - name: AHB4ENR + description: RCC AHB4 Clock Register + byte_offset: 320 + fieldset: AHB4ENR + - name: APB3ENR + description: RCC APB3 Clock Register + byte_offset: 324 + fieldset: APB3ENR + - name: APB1LENR + description: RCC APB1 Clock Register + byte_offset: 328 + fieldset: APB1LENR + - name: APB1HENR + description: RCC APB1 Clock Register + byte_offset: 332 + fieldset: APB1HENR + - name: APB2ENR + description: RCC APB2 Clock Register + byte_offset: 336 + fieldset: APB2ENR + - name: APB4ENR + description: RCC APB4 Clock Register + byte_offset: 340 + fieldset: APB4ENR + - name: AHB3LPENR + description: RCC AHB3 Sleep Clock Register + byte_offset: 348 + fieldset: AHB3LPENR + - name: AHB1LPENR + description: RCC AHB1 Sleep Clock Register + byte_offset: 352 + fieldset: AHB1LPENR + - name: AHB2LPENR + description: RCC AHB2 Sleep Clock Register + byte_offset: 356 + fieldset: AHB2LPENR + - name: AHB4LPENR + description: RCC AHB4 Sleep Clock Register + byte_offset: 360 + fieldset: AHB4LPENR + - name: APB3LPENR + description: RCC APB3 Sleep Clock Register + byte_offset: 364 + fieldset: APB3LPENR + - name: APB1LLPENR + description: RCC APB1 Low Sleep Clock Register + byte_offset: 368 + fieldset: APB1LLPENR + - name: APB1HLPENR + description: RCC APB1 High Sleep Clock Register + byte_offset: 372 + fieldset: APB1HLPENR + - name: APB2LPENR + description: RCC APB2 Sleep Clock Register + byte_offset: 376 + fieldset: APB2LPENR + - name: APB4LPENR + description: RCC APB4 Sleep Clock Register + byte_offset: 380 + fieldset: APB4LPENR fieldset/AHB1ENR: description: RCC AHB1 Clock Register fields: - - name: DMA1EN - description: DMA1 Clock Enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 Clock Enable - bit_offset: 1 - bit_size: 1 - - name: ADC12EN - description: ADC1/2 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: ARTEN - description: ART Clock Enable - bit_offset: 14 - bit_size: 1 - - name: ETH1MACEN - description: Ethernet MAC bus interface Clock Enable - bit_offset: 15 - bit_size: 1 - - name: ETH1TXEN - description: Ethernet Transmission Clock Enable - bit_offset: 16 - bit_size: 1 - - name: ETH1RXEN - description: Ethernet Reception Clock Enable - bit_offset: 17 - bit_size: 1 - - name: USB_OTG_HSEN - description: USB_OTG_HS Peripheral Clocks Enable - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HS_ULPIEN - description: USB_OTG_HS ULPI clock enable - bit_offset: 26 - bit_size: 1 - - name: USB_OTG_FSEN - description: USB_OTG_FS Peripheral Clocks Enable - bit_offset: 27 - bit_size: 1 - - name: USB_OTG_FS_ULPIEN - description: USB_OTG_FS ULPI clock enable - bit_offset: 28 - bit_size: 1 + - name: DMA1EN + description: DMA1 Clock Enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 Clock Enable + bit_offset: 1 + bit_size: 1 + - name: ADC12EN + description: ADC1/2 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: ARTEN + description: ART Clock Enable + bit_offset: 14 + bit_size: 1 + - name: ETH1MACEN + description: Ethernet MAC bus interface Clock Enable + bit_offset: 15 + bit_size: 1 + - name: ETH1TXEN + description: Ethernet Transmission Clock Enable + bit_offset: 16 + bit_size: 1 + - name: ETH1RXEN + description: Ethernet Reception Clock Enable + bit_offset: 17 + bit_size: 1 + - name: USB_OTG_HSEN + description: USB_OTG_HS Peripheral Clocks Enable + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HS_ULPIEN + description: USB_OTG_HS ULPI clock enable + bit_offset: 26 + bit_size: 1 + - name: USB_OTG_FSEN + description: USB_OTG_FS Peripheral Clocks Enable + bit_offset: 27 + bit_size: 1 + - name: USB_OTG_FS_ULPIEN + description: USB_OTG_FS ULPI clock enable + bit_offset: 28 + bit_size: 1 fieldset/AHB1LPENR: description: RCC AHB1 Sleep Clock Register fields: - - name: DMA1LPEN - description: DMA1 Clock Enable During CSleep Mode - bit_offset: 0 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 Clock Enable During CSleep Mode - bit_offset: 1 - bit_size: 1 - - name: ADC12LPEN - description: ADC1/2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: ARTLPEN - description: ART Clock Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: ETH1MACLPEN - description: Ethernet MAC bus interface Clock Enable During CSleep Mode - bit_offset: 15 - bit_size: 1 - - name: ETH1TXLPEN - description: Ethernet Transmission Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: ETH1RXLPEN - description: Ethernet Reception Clock Enable During CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: USB_OTG_HSLPEN - description: USB_OTG_HS peripheral clock enable during CSleep mode - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_HS_ULPILPEN - description: USB_PHY1 clock enable during CSleep mode - bit_offset: 26 - bit_size: 1 - - name: USB_OTG_FSLPEN - description: USB_OTG_FS peripheral clock enable during CSleep mode - bit_offset: 27 - bit_size: 1 - - name: USB_OTG_FS_ULPILPEN - description: USB_PHY2 clocks enable during CSleep mode - bit_offset: 28 - bit_size: 1 + - name: DMA1LPEN + description: DMA1 Clock Enable During CSleep Mode + bit_offset: 0 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 Clock Enable During CSleep Mode + bit_offset: 1 + bit_size: 1 + - name: ADC12LPEN + description: ADC1/2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: ARTLPEN + description: ART Clock Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: ETH1MACLPEN + description: Ethernet MAC bus interface Clock Enable During CSleep Mode + bit_offset: 15 + bit_size: 1 + - name: ETH1TXLPEN + description: Ethernet Transmission Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: ETH1RXLPEN + description: Ethernet Reception Clock Enable During CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: USB_OTG_HSLPEN + description: USB_OTG_HS peripheral clock enable during CSleep mode + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_HS_ULPILPEN + description: USB_PHY1 clock enable during CSleep mode + bit_offset: 26 + bit_size: 1 + - name: USB_OTG_FSLPEN + description: USB_OTG_FS peripheral clock enable during CSleep mode + bit_offset: 27 + bit_size: 1 + - name: USB_OTG_FS_ULPILPEN + description: USB_PHY2 clocks enable during CSleep mode + bit_offset: 28 + bit_size: 1 fieldset/AHB1RSTR: description: RCC AHB1 Peripheral Reset Register fields: - - name: DMA1RST - description: DMA1 block reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 block reset - bit_offset: 1 - bit_size: 1 - - name: ADC12RST - description: ADC1&2 block reset - bit_offset: 5 - bit_size: 1 - - name: ARTRST - description: ART block reset - bit_offset: 14 - bit_size: 1 - - name: ETH1MACRST - description: ETH1MAC block reset - bit_offset: 15 - bit_size: 1 - - name: USB_OTG_HSRST - description: USB_OTG_HS block reset - bit_offset: 25 - bit_size: 1 - - name: USB_OTG_FSRST - description: USB_OTG_FS block reset - bit_offset: 27 - bit_size: 1 + - name: DMA1RST + description: DMA1 block reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 block reset + bit_offset: 1 + bit_size: 1 + - name: ADC12RST + description: ADC1&2 block reset + bit_offset: 5 + bit_size: 1 + - name: ARTRST + description: ART block reset + bit_offset: 14 + bit_size: 1 + - name: ETH1MACRST + description: ETH1MAC block reset + bit_offset: 15 + bit_size: 1 + - name: USB_OTG_HSRST + description: USB_OTG_HS block reset + bit_offset: 25 + bit_size: 1 + - name: USB_OTG_FSRST + description: USB_OTG_FS block reset + bit_offset: 27 + bit_size: 1 fieldset/AHB2ENR: description: RCC AHB2 Clock Register fields: - - name: DCMIEN - description: DCMI peripheral clock - bit_offset: 0 - bit_size: 1 - - name: CRYPTEN - description: CRYPT peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: HASHEN - description: HASH peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: RNGEN - description: RNG peripheral clocks enable - bit_offset: 6 - bit_size: 1 - - name: SDMMC2EN - description: SDMMC2 and SDMMC2 delay clock enable - bit_offset: 9 - bit_size: 1 - - name: BDMA1EN - description: BDMA1 clock enable - bit_offset: 11 - bit_size: 1 - - name: FMACEN - description: FMAC enable - bit_offset: 16 - bit_size: 1 - - name: CORDICEN - description: CORDIC enable - bit_offset: 17 - bit_size: 1 - - name: SRAM1EN - description: SRAM1 block enable - bit_offset: 29 - bit_size: 1 - - name: SRAM2EN - description: SRAM2 block enable - bit_offset: 30 - bit_size: 1 - - name: SRAM3EN - description: SRAM3 block enable - bit_offset: 31 - bit_size: 1 + - name: DCMIEN + description: DCMI peripheral clock + bit_offset: 0 + bit_size: 1 + - name: CRYPTEN + description: CRYPT peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: HASHEN + description: HASH peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: RNGEN + description: RNG peripheral clocks enable + bit_offset: 6 + bit_size: 1 + - name: SDMMC2EN + description: SDMMC2 and SDMMC2 delay clock enable + bit_offset: 9 + bit_size: 1 + - name: BDMA1EN + description: BDMA1 clock enable + bit_offset: 11 + bit_size: 1 + - name: FMACEN + description: FMAC enable + bit_offset: 16 + bit_size: 1 + - name: CORDICEN + description: CORDIC enable + bit_offset: 17 + bit_size: 1 + - name: SRAM1EN + description: SRAM1 block enable + bit_offset: 29 + bit_size: 1 + - name: SRAM2EN + description: SRAM2 block enable + bit_offset: 30 + bit_size: 1 + - name: SRAM3EN + description: SRAM3 block enable + bit_offset: 31 + bit_size: 1 fieldset/AHB2LPENR: description: RCC AHB2 Sleep Clock Register fields: - - name: DCMILPEN - description: DCMI peripheral clock enable during csleep mode - bit_offset: 0 - bit_size: 1 - - name: CRYPTLPEN - description: CRYPT peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: HASHLPEN - description: HASH peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: RNGLPEN - description: RNG peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: SDMMC2LPEN - description: SDMMC2 and SDMMC2 Delay Clock Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: BDMA1LPEN - description: BDMA1 Clock Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: FMACLPEN - description: FMAC enable during CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: CORDICLPEN - description: CORDIC enable during CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: SRAM1LPEN - description: SRAM1 Clock Enable During CSleep Mode - bit_offset: 29 - bit_size: 1 - - name: SRAM2LPEN - description: SRAM2 Clock Enable During CSleep Mode - bit_offset: 30 - bit_size: 1 - - name: SRAM3LPEN - description: SRAM3 Clock Enable During CSleep Mode - bit_offset: 31 - bit_size: 1 + - name: DCMILPEN + description: DCMI peripheral clock enable during csleep mode + bit_offset: 0 + bit_size: 1 + - name: CRYPTLPEN + description: CRYPT peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: HASHLPEN + description: HASH peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: RNGLPEN + description: RNG peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: SDMMC2LPEN + description: SDMMC2 and SDMMC2 Delay Clock Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: BDMA1LPEN + description: BDMA1 Clock Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: FMACLPEN + description: FMAC enable during CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: CORDICLPEN + description: CORDIC enable during CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: SRAM1LPEN + description: SRAM1 Clock Enable During CSleep Mode + bit_offset: 29 + bit_size: 1 + - name: SRAM2LPEN + description: SRAM2 Clock Enable During CSleep Mode + bit_offset: 30 + bit_size: 1 + - name: SRAM3LPEN + description: SRAM3 Clock Enable During CSleep Mode + bit_offset: 31 + bit_size: 1 fieldset/AHB2RSTR: description: RCC AHB2 Peripheral Reset Register fields: - - name: DCMIRST - description: DCMI block reset - bit_offset: 0 - bit_size: 1 - - name: CRYPTRST - description: Cryptography block reset - bit_offset: 4 - bit_size: 1 - - name: HASHRST - description: Hash block reset - bit_offset: 5 - bit_size: 1 - - name: RNGRST - description: Random Number Generator block reset - bit_offset: 6 - bit_size: 1 - - name: SDMMC2RST - description: SDMMC2 and SDMMC2 Delay block reset - bit_offset: 9 - bit_size: 1 - - name: BDMA1RST - description: BDMA1 block reset - bit_offset: 11 - bit_size: 1 - - name: FMACRST - description: FMAC reset - bit_offset: 16 - bit_size: 1 - - name: CORDICRST - description: CORDIC reset - bit_offset: 17 - bit_size: 1 + - name: DCMIRST + description: DCMI block reset + bit_offset: 0 + bit_size: 1 + - name: CRYPTRST + description: Cryptography block reset + bit_offset: 4 + bit_size: 1 + - name: HASHRST + description: Hash block reset + bit_offset: 5 + bit_size: 1 + - name: RNGRST + description: Random Number Generator block reset + bit_offset: 6 + bit_size: 1 + - name: SDMMC2RST + description: SDMMC2 and SDMMC2 Delay block reset + bit_offset: 9 + bit_size: 1 + - name: BDMA1RST + description: BDMA1 block reset + bit_offset: 11 + bit_size: 1 + - name: FMACRST + description: FMAC reset + bit_offset: 16 + bit_size: 1 + - name: CORDICRST + description: CORDIC reset + bit_offset: 17 + bit_size: 1 fieldset/AHB3ENR: description: RCC AHB3 Clock Register fields: - - name: MDMAEN - description: MDMA Peripheral Clock Enable - bit_offset: 0 - bit_size: 1 - - name: DMA2DEN - description: DMA2D Peripheral Clock Enable - bit_offset: 4 - bit_size: 1 - - name: JPGDECEN - description: JPGDEC Peripheral Clock Enable - bit_offset: 5 - bit_size: 1 - - name: FMCEN - description: FMC Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: QUADSPIEN - description: QUADSPI and QUADSPI Delay Clock Enable - bit_offset: 14 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 and SDMMC1 Delay Clock Enable - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2EN - description: OCTOSPI2 and OCTOSPI2 delay block enable - bit_offset: 19 - bit_size: 1 - - name: IOMNGREN - description: OCTOSPI IO manager enable - bit_offset: 21 - bit_size: 1 - - name: OTFD1EN - description: OTFDEC1 enable - bit_offset: 22 - bit_size: 1 - - name: OTFD2EN - description: OTFDEC2 enable - bit_offset: 23 - bit_size: 1 - - name: DTCM1EN - description: D1 DTCM1 block enable - bit_offset: 28 - bit_size: 1 - - name: DTCM2EN - description: D1 DTCM2 block enable - bit_offset: 29 - bit_size: 1 - - name: ITCM1EN - description: D1 ITCM block enable - bit_offset: 30 - bit_size: 1 - - name: AXISRAMEN - description: AXISRAM block enable - bit_offset: 31 - bit_size: 1 + - name: MDMAEN + description: MDMA Peripheral Clock Enable + bit_offset: 0 + bit_size: 1 + - name: DMA2DEN + description: DMA2D Peripheral Clock Enable + bit_offset: 4 + bit_size: 1 + - name: JPGDECEN + description: JPGDEC Peripheral Clock Enable + bit_offset: 5 + bit_size: 1 + - name: FMCEN + description: FMC Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: QUADSPIEN + description: QUADSPI and QUADSPI Delay Clock Enable + bit_offset: 14 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 and SDMMC1 Delay Clock Enable + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2EN + description: OCTOSPI2 and OCTOSPI2 delay block enable + bit_offset: 19 + bit_size: 1 + - name: IOMNGREN + description: OCTOSPI IO manager enable + bit_offset: 21 + bit_size: 1 + - name: OTFD1EN + description: OTFDEC1 enable + bit_offset: 22 + bit_size: 1 + - name: OTFD2EN + description: OTFDEC2 enable + bit_offset: 23 + bit_size: 1 + - name: DTCM1EN + description: D1 DTCM1 block enable + bit_offset: 28 + bit_size: 1 + - name: DTCM2EN + description: D1 DTCM2 block enable + bit_offset: 29 + bit_size: 1 + - name: ITCM1EN + description: D1 ITCM block enable + bit_offset: 30 + bit_size: 1 + - name: AXISRAMEN + description: AXISRAM block enable + bit_offset: 31 + bit_size: 1 fieldset/AHB3LPENR: description: RCC AHB3 Sleep Clock Register fields: - - name: MDMALPEN - description: MDMA Clock Enable During CSleep Mode - bit_offset: 0 - bit_size: 1 - - name: DMA2DLPEN - description: DMA2D Clock Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: JPGDECLPEN - description: JPGDEC Clock Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: FLASHLPEN - description: FLASH Clock Enable During CSleep Mode - bit_offset: 8 - bit_size: 1 - - name: FMCLPEN - description: FMC Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: QSPILPEN - description: QUADSPI and QUADSPI Delay Clock Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: SDMMC1LPEN - description: SDMMC1 and SDMMC1 Delay Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2LPEN - description: OCTOSPI2 and OCTOSPI2 delay block enable during CSleep Mode - bit_offset: 19 - bit_size: 1 - - name: IOMNGRLPEN - description: OCTOSPI IO manager enable during CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: OTFD1LPEN - description: OTFDEC1 enable during CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: OTFD2LPEN - description: OTFDEC2 enable during CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: D1DTCM1LPEN - description: D1DTCM1 Block Clock Enable During CSleep mode - bit_offset: 28 - bit_size: 1 - - name: DTCM2LPEN - description: D1 DTCM2 Block Clock Enable During CSleep mode - bit_offset: 29 - bit_size: 1 - - name: ITCMLPEN - description: D1ITCM Block Clock Enable During CSleep mode - bit_offset: 30 - bit_size: 1 - - name: AXISRAMLPEN - description: AXISRAM Block Clock Enable During CSleep mode - bit_offset: 31 - bit_size: 1 + - name: MDMALPEN + description: MDMA Clock Enable During CSleep Mode + bit_offset: 0 + bit_size: 1 + - name: DMA2DLPEN + description: DMA2D Clock Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: JPGDECLPEN + description: JPGDEC Clock Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: FLASHLPEN + description: FLASH Clock Enable During CSleep Mode + bit_offset: 8 + bit_size: 1 + - name: FMCLPEN + description: FMC Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: QSPILPEN + description: QUADSPI and QUADSPI Delay Clock Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: SDMMC1LPEN + description: SDMMC1 and SDMMC1 Delay Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2LPEN + description: OCTOSPI2 and OCTOSPI2 delay block enable during CSleep Mode + bit_offset: 19 + bit_size: 1 + - name: IOMNGRLPEN + description: OCTOSPI IO manager enable during CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: OTFD1LPEN + description: OTFDEC1 enable during CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: OTFD2LPEN + description: OTFDEC2 enable during CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: D1DTCM1LPEN + description: D1DTCM1 Block Clock Enable During CSleep mode + bit_offset: 28 + bit_size: 1 + - name: DTCM2LPEN + description: D1 DTCM2 Block Clock Enable During CSleep mode + bit_offset: 29 + bit_size: 1 + - name: ITCMLPEN + description: D1ITCM Block Clock Enable During CSleep mode + bit_offset: 30 + bit_size: 1 + - name: AXISRAMLPEN + description: AXISRAM Block Clock Enable During CSleep mode + bit_offset: 31 + bit_size: 1 fieldset/AHB3RSTR: description: RCC AHB3 Reset Register fields: - - name: MDMARST - description: MDMA block reset - bit_offset: 0 - bit_size: 1 - - name: DMA2DRST - description: DMA2D block reset - bit_offset: 4 - bit_size: 1 - - name: JPGDECRST - description: JPGDEC block reset - bit_offset: 5 - bit_size: 1 - - name: FMCRST - description: FMC block reset - bit_offset: 12 - bit_size: 1 - - name: QSPIRST - description: QUADSPI and QUADSPI delay block reset - bit_offset: 14 - bit_size: 1 - - name: SDMMC1RST - description: SDMMC1 and SDMMC1 delay block reset - bit_offset: 16 - bit_size: 1 - - name: OCTOSPI2RST - description: OCTOSPI2 and OCTOSPI2 delay block reset - bit_offset: 19 - bit_size: 1 - - name: IOMNGRRST - description: OCTOSPI IO manager reset - bit_offset: 21 - bit_size: 1 - - name: OTFD1RST - description: OTFDEC1 reset - bit_offset: 22 - bit_size: 1 - - name: OTFD2RST - description: OTFDEC2 reset - bit_offset: 23 - bit_size: 1 - - name: CPURST - description: CPU reset - bit_offset: 31 - bit_size: 1 + - name: MDMARST + description: MDMA block reset + bit_offset: 0 + bit_size: 1 + - name: DMA2DRST + description: DMA2D block reset + bit_offset: 4 + bit_size: 1 + - name: JPGDECRST + description: JPGDEC block reset + bit_offset: 5 + bit_size: 1 + - name: FMCRST + description: FMC block reset + bit_offset: 12 + bit_size: 1 + - name: QSPIRST + description: QUADSPI and QUADSPI delay block reset + bit_offset: 14 + bit_size: 1 + - name: SDMMC1RST + description: SDMMC1 and SDMMC1 delay block reset + bit_offset: 16 + bit_size: 1 + - name: OCTOSPI2RST + description: OCTOSPI2 and OCTOSPI2 delay block reset + bit_offset: 19 + bit_size: 1 + - name: IOMNGRRST + description: OCTOSPI IO manager reset + bit_offset: 21 + bit_size: 1 + - name: OTFD1RST + description: OTFDEC1 reset + bit_offset: 22 + bit_size: 1 + - name: OTFD2RST + description: OTFDEC2 reset + bit_offset: 23 + bit_size: 1 + - name: CPURST + description: CPU reset + bit_offset: 31 + bit_size: 1 fieldset/AHB4ENR: description: RCC AHB4 Clock Register fields: - - name: GPIOAEN - description: 0GPIO peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: 0GPIO peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: 0GPIO peripheral clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: 0GPIO peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: 0GPIO peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: 0GPIO peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: 0GPIO peripheral clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: 0GPIO peripheral clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: 0GPIO peripheral clock enable - bit_offset: 8 - bit_size: 1 - - name: GPIOJEN - description: 0GPIO peripheral clock enable - bit_offset: 9 - bit_size: 1 - - name: GPIOKEN - description: 0GPIO peripheral clock enable - bit_offset: 10 - bit_size: 1 - - name: CRCEN - description: CRC peripheral clock enable - bit_offset: 19 - bit_size: 1 - - name: BDMA2EN - description: BDMA2 and DMAMUX2 Clock Enable - bit_offset: 21 - bit_size: 1 - - name: BDMAEN - description: BDMA and DMAMUX2 Clock Enable - bit_offset: 21 - bit_size: 1 - - name: ADC3EN - description: ADC3 Peripheral Clocks Enable - bit_offset: 24 - bit_size: 1 - - name: HSEMEN - description: HSEM peripheral clock enable - bit_offset: 25 - bit_size: 1 - - name: BKPSRAMEN - description: Backup RAM Clock Enable - bit_offset: 28 - bit_size: 1 + - name: GPIOAEN + description: 0GPIO peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: 0GPIO peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: 0GPIO peripheral clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: 0GPIO peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: 0GPIO peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: 0GPIO peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: 0GPIO peripheral clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: 0GPIO peripheral clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: 0GPIO peripheral clock enable + bit_offset: 8 + bit_size: 1 + - name: GPIOJEN + description: 0GPIO peripheral clock enable + bit_offset: 9 + bit_size: 1 + - name: GPIOKEN + description: 0GPIO peripheral clock enable + bit_offset: 10 + bit_size: 1 + - name: CRCEN + description: CRC peripheral clock enable + bit_offset: 19 + bit_size: 1 + - name: BDMA2EN + description: BDMA2 and DMAMUX2 Clock Enable + bit_offset: 21 + bit_size: 1 + - name: BDMAEN + description: BDMA and DMAMUX2 Clock Enable + bit_offset: 21 + bit_size: 1 + - name: ADC3EN + description: ADC3 Peripheral Clocks Enable + bit_offset: 24 + bit_size: 1 + - name: HSEMEN + description: HSEM peripheral clock enable + bit_offset: 25 + bit_size: 1 + - name: BKPSRAMEN + description: Backup RAM Clock Enable + bit_offset: 28 + bit_size: 1 fieldset/AHB4LPENR: description: RCC AHB4 Sleep Clock Register fields: - - name: GPIOALPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOFLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOGLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOHLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 7 - bit_size: 1 - - name: GPIOILPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 8 - bit_size: 1 - - name: GPIOJLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 9 - bit_size: 1 - - name: GPIOKLPEN - description: GPIO peripheral clock enable during CSleep mode - bit_offset: 10 - bit_size: 1 - - name: CRCLPEN - description: CRC peripheral clock enable during CSleep mode - bit_offset: 19 - bit_size: 1 - - name: BDMA2LPEN - description: BDMA2 Clock Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: BDMALPEN - description: BDMA Clock Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: ADC3LPEN - description: ADC3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: BKPSRAMLPEN - description: Backup RAM Clock Enable During CSleep Mode - bit_offset: 28 - bit_size: 1 - - name: SRAM4LPEN - description: SRAM4 Clock Enable During CSleep Mode - bit_offset: 29 - bit_size: 1 + - name: GPIOALPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOFLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOGLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOHLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 7 + bit_size: 1 + - name: GPIOILPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 8 + bit_size: 1 + - name: GPIOJLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 9 + bit_size: 1 + - name: GPIOKLPEN + description: GPIO peripheral clock enable during CSleep mode + bit_offset: 10 + bit_size: 1 + - name: CRCLPEN + description: CRC peripheral clock enable during CSleep mode + bit_offset: 19 + bit_size: 1 + - name: BDMA2LPEN + description: BDMA2 Clock Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: BDMALPEN + description: BDMA Clock Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: ADC3LPEN + description: ADC3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: BKPSRAMLPEN + description: Backup RAM Clock Enable During CSleep Mode + bit_offset: 28 + bit_size: 1 + - name: SRAM4LPEN + description: SRAM4 Clock Enable During CSleep Mode + bit_offset: 29 + bit_size: 1 fieldset/AHB4RSTR: description: RCC AHB4 Peripheral Reset Register fields: - - name: GPIOARST - description: GPIO block reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: GPIO block reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: GPIO block reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: GPIO block reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: GPIO block reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: GPIO block reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: GPIO block reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: GPIO block reset - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: GPIO block reset - bit_offset: 8 - bit_size: 1 - - name: GPIOJRST - description: GPIO block reset - bit_offset: 9 - bit_size: 1 - - name: GPIOKRST - description: GPIO block reset - bit_offset: 10 - bit_size: 1 - - name: CRCRST - description: CRC block reset - bit_offset: 19 - bit_size: 1 - - name: BDMA2RST - description: BDMA2 block reset - bit_offset: 21 - bit_size: 1 - - name: BDMARST - description: BDMA block reset - bit_offset: 21 - bit_size: 1 - - name: ADC3RST - description: ADC3 block reset - bit_offset: 24 - bit_size: 1 - - name: HSEMRST - description: HSEM block reset - bit_offset: 25 - bit_size: 1 + - name: GPIOARST + description: GPIO block reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: GPIO block reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: GPIO block reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: GPIO block reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: GPIO block reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: GPIO block reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: GPIO block reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: GPIO block reset + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: GPIO block reset + bit_offset: 8 + bit_size: 1 + - name: GPIOJRST + description: GPIO block reset + bit_offset: 9 + bit_size: 1 + - name: GPIOKRST + description: GPIO block reset + bit_offset: 10 + bit_size: 1 + - name: CRCRST + description: CRC block reset + bit_offset: 19 + bit_size: 1 + - name: BDMA2RST + description: BDMA2 block reset + bit_offset: 21 + bit_size: 1 + - name: BDMARST + description: BDMA block reset + bit_offset: 21 + bit_size: 1 + - name: ADC3RST + description: ADC3 block reset + bit_offset: 24 + bit_size: 1 + - name: HSEMRST + description: HSEM block reset + bit_offset: 25 + bit_size: 1 fieldset/APB1HENR: description: RCC APB1 Clock Register fields: - - name: CRSEN - description: Clock Recovery System peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: SWPEN - description: SWPMI Peripheral Clocks Enable - bit_offset: 2 - bit_size: 1 - - name: OPAMPEN - description: OPAMP peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: MDIOSEN - description: MDIOS peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: FDCANEN - description: FDCAN Peripheral Clocks Enable - bit_offset: 8 - bit_size: 1 - - name: TIM23EN - description: TIM23 block enable - bit_offset: 24 - bit_size: 1 - - name: TIM24EN - description: TIM24 block enable - bit_offset: 25 - bit_size: 1 + - name: CRSEN + description: Clock Recovery System peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: SWPEN + description: SWPMI Peripheral Clocks Enable + bit_offset: 2 + bit_size: 1 + - name: OPAMPEN + description: OPAMP peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: MDIOSEN + description: MDIOS peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: FDCANEN + description: FDCAN Peripheral Clocks Enable + bit_offset: 8 + bit_size: 1 + - name: TIM23EN + description: TIM23 block enable + bit_offset: 24 + bit_size: 1 + - name: TIM24EN + description: TIM24 block enable + bit_offset: 25 + bit_size: 1 fieldset/APB1HLPENR: description: RCC APB1 High Sleep Clock Register fields: - - name: CRSLPEN - description: Clock Recovery System peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: SWPLPEN - description: SWPMI Peripheral Clocks Enable During CSleep Mode - bit_offset: 2 - bit_size: 1 - - name: OPAMPLPEN - description: OPAMP peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: MDIOSLPEN - description: MDIOS peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: FDCANLPEN - description: FDCAN Peripheral Clocks Enable During CSleep Mode - bit_offset: 8 - bit_size: 1 - - name: TIM23LPEN - description: TIM23 block enable during CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: TIM24LPEN - description: TIM24 block enable during CSleep Mode - bit_offset: 25 - bit_size: 1 + - name: CRSLPEN + description: Clock Recovery System peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: SWPLPEN + description: SWPMI Peripheral Clocks Enable During CSleep Mode + bit_offset: 2 + bit_size: 1 + - name: OPAMPLPEN + description: OPAMP peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: MDIOSLPEN + description: MDIOS peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: FDCANLPEN + description: FDCAN Peripheral Clocks Enable During CSleep Mode + bit_offset: 8 + bit_size: 1 + - name: TIM23LPEN + description: TIM23 block enable during CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: TIM24LPEN + description: TIM24 block enable during CSleep Mode + bit_offset: 25 + bit_size: 1 fieldset/APB1HRSTR: description: RCC APB1 Peripheral Reset Register fields: - - name: CRSRST - description: Clock Recovery System reset - bit_offset: 1 - bit_size: 1 - - name: SWPRST - description: SWPMI block reset - bit_offset: 2 - bit_size: 1 - - name: OPAMPRST - description: OPAMP block reset - bit_offset: 4 - bit_size: 1 - - name: MDIOSRST - description: MDIOS block reset - bit_offset: 5 - bit_size: 1 - - name: FDCANRST - description: FDCAN block reset - bit_offset: 8 - bit_size: 1 - - name: TIM23RST - description: TIM23 block reset - bit_offset: 24 - bit_size: 1 - - name: TIM24RST - description: TIM24 block reset - bit_offset: 25 - bit_size: 1 + - name: CRSRST + description: Clock Recovery System reset + bit_offset: 1 + bit_size: 1 + - name: SWPRST + description: SWPMI block reset + bit_offset: 2 + bit_size: 1 + - name: OPAMPRST + description: OPAMP block reset + bit_offset: 4 + bit_size: 1 + - name: MDIOSRST + description: MDIOS block reset + bit_offset: 5 + bit_size: 1 + - name: FDCANRST + description: FDCAN block reset + bit_offset: 8 + bit_size: 1 + - name: TIM23RST + description: TIM23 block reset + bit_offset: 24 + bit_size: 1 + - name: TIM24RST + description: TIM24 block reset + bit_offset: 25 + bit_size: 1 fieldset/APB1LENR: description: RCC APB1 Clock Register fields: - - name: TIM2EN - description: TIM peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM peripheral clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM peripheral clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM peripheral clock enable - bit_offset: 5 - bit_size: 1 - - name: TIM12EN - description: TIM peripheral clock enable - bit_offset: 6 - bit_size: 1 - - name: TIM13EN - description: TIM peripheral clock enable - bit_offset: 7 - bit_size: 1 - - name: TIM14EN - description: TIM peripheral clock enable - bit_offset: 8 - bit_size: 1 - - name: LPTIM1EN - description: LPTIM1 Peripheral Clocks Enable - bit_offset: 9 - bit_size: 1 - - name: WWDG2EN - description: WWDG2 peripheral clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 Peripheral Clocks Enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 Peripheral Clocks Enable - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXEN - description: SPDIFRX Peripheral Clocks Enable - bit_offset: 16 - bit_size: 1 - - name: USART2EN - description: USART2 Peripheral Clocks Enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 Peripheral Clocks Enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 Peripheral Clocks Enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 Peripheral Clocks Enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 Peripheral Clocks Enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 Peripheral Clocks Enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 Peripheral Clocks Enable - bit_offset: 23 - bit_size: 1 - - name: I2C5EN - description: "I2C5 Peripheral Clocks\r Enable" - bit_offset: 25 - bit_size: 1 - - name: CECEN - description: HDMI-CEC peripheral clock enable - bit_offset: 27 - bit_size: 1 - - name: DAC1EN - description: DAC1 (containing two converters) peripheral clock enable - bit_offset: 29 - bit_size: 1 - - name: UART7EN - description: UART7 Peripheral Clocks Enable - bit_offset: 30 - bit_size: 1 - - name: UART8EN - description: UART8 Peripheral Clocks Enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM peripheral clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM peripheral clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM peripheral clock enable + bit_offset: 5 + bit_size: 1 + - name: TIM12EN + description: TIM peripheral clock enable + bit_offset: 6 + bit_size: 1 + - name: TIM13EN + description: TIM peripheral clock enable + bit_offset: 7 + bit_size: 1 + - name: TIM14EN + description: TIM peripheral clock enable + bit_offset: 8 + bit_size: 1 + - name: LPTIM1EN + description: LPTIM1 Peripheral Clocks Enable + bit_offset: 9 + bit_size: 1 + - name: WWDG2EN + description: WWDG2 peripheral clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 Peripheral Clocks Enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 Peripheral Clocks Enable + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXEN + description: SPDIFRX Peripheral Clocks Enable + bit_offset: 16 + bit_size: 1 + - name: USART2EN + description: USART2 Peripheral Clocks Enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 Peripheral Clocks Enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 Peripheral Clocks Enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 Peripheral Clocks Enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 Peripheral Clocks Enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 Peripheral Clocks Enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 Peripheral Clocks Enable + bit_offset: 23 + bit_size: 1 + - name: I2C5EN + description: "I2C5 Peripheral Clocks\r Enable" + bit_offset: 25 + bit_size: 1 + - name: CECEN + description: HDMI-CEC peripheral clock enable + bit_offset: 27 + bit_size: 1 + - name: DAC1EN + description: DAC1 (containing two converters) peripheral clock enable + bit_offset: 29 + bit_size: 1 + - name: UART7EN + description: UART7 Peripheral Clocks Enable + bit_offset: 30 + bit_size: 1 + - name: UART8EN + description: UART8 Peripheral Clocks Enable + bit_offset: 31 + bit_size: 1 fieldset/APB1LLPENR: description: RCC APB1 Low Sleep Clock Register fields: - - name: TIM2LPEN - description: TIM2 peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: TIM3 peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: TIM4 peripheral clock enable during CSleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM5LPEN - description: TIM5 peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM6LPEN - description: TIM6 peripheral clock enable during CSleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: TIM7 peripheral clock enable during CSleep mode - bit_offset: 5 - bit_size: 1 - - name: TIM12LPEN - description: TIM12 peripheral clock enable during CSleep mode - bit_offset: 6 - bit_size: 1 - - name: TIM13LPEN - description: TIM13 peripheral clock enable during CSleep mode - bit_offset: 7 - bit_size: 1 - - name: TIM14LPEN - description: TIM14 peripheral clock enable during CSleep mode - bit_offset: 8 - bit_size: 1 - - name: LPTIM1LPEN - description: LPTIM1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: WWDG2LPEN - description: WWDG2 peripheral Clocks Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 14 - bit_size: 1 - - name: SPI3LPEN - description: SPI3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXLPEN - description: SPDIFRX Peripheral Clocks Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: USART2LPEN - description: USART2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 18 - bit_size: 1 - - name: UART4LPEN - description: UART4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 19 - bit_size: 1 - - name: UART5LPEN - description: UART5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 20 - bit_size: 1 - - name: I2C1LPEN - description: I2C1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: I2C3LPEN - description: I2C3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: I2C5LPEN - description: I2C5 block enable during CSleep Mode - bit_offset: 25 - bit_size: 1 - - name: CECLPEN - description: HDMI-CEC Peripheral Clocks Enable During CSleep Mode - bit_offset: 27 - bit_size: 1 - - name: DAC1LPEN - description: DAC1 (containing two converters) peripheral clock enable during CSleep mode - bit_offset: 29 - bit_size: 1 - - name: UART7LPEN - description: UART7 Peripheral Clocks Enable During CSleep Mode - bit_offset: 30 - bit_size: 1 - - name: UART8LPEN - description: UART8 Peripheral Clocks Enable During CSleep Mode - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: TIM2 peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: TIM3 peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: TIM4 peripheral clock enable during CSleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM5LPEN + description: TIM5 peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM6LPEN + description: TIM6 peripheral clock enable during CSleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: TIM7 peripheral clock enable during CSleep mode + bit_offset: 5 + bit_size: 1 + - name: TIM12LPEN + description: TIM12 peripheral clock enable during CSleep mode + bit_offset: 6 + bit_size: 1 + - name: TIM13LPEN + description: TIM13 peripheral clock enable during CSleep mode + bit_offset: 7 + bit_size: 1 + - name: TIM14LPEN + description: TIM14 peripheral clock enable during CSleep mode + bit_offset: 8 + bit_size: 1 + - name: LPTIM1LPEN + description: LPTIM1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: WWDG2LPEN + description: WWDG2 peripheral Clocks Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 14 + bit_size: 1 + - name: SPI3LPEN + description: SPI3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXLPEN + description: SPDIFRX Peripheral Clocks Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: USART2LPEN + description: USART2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 18 + bit_size: 1 + - name: UART4LPEN + description: UART4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 19 + bit_size: 1 + - name: UART5LPEN + description: UART5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 20 + bit_size: 1 + - name: I2C1LPEN + description: I2C1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: I2C3LPEN + description: I2C3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: I2C5LPEN + description: I2C5 block enable during CSleep Mode + bit_offset: 25 + bit_size: 1 + - name: CECLPEN + description: HDMI-CEC Peripheral Clocks Enable During CSleep Mode + bit_offset: 27 + bit_size: 1 + - name: DAC1LPEN + description: DAC1 (containing two converters) peripheral clock enable during CSleep mode + bit_offset: 29 + bit_size: 1 + - name: UART7LPEN + description: UART7 Peripheral Clocks Enable During CSleep Mode + bit_offset: 30 + bit_size: 1 + - name: UART8LPEN + description: UART8 Peripheral Clocks Enable During CSleep Mode + bit_offset: 31 + bit_size: 1 fieldset/APB1LRSTR: description: RCC APB1 Peripheral Reset Register fields: - - name: TIM2RST - description: TIM block reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM block reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM block reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM block reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM block reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM block reset - bit_offset: 5 - bit_size: 1 - - name: TIM12RST - description: TIM block reset - bit_offset: 6 - bit_size: 1 - - name: TIM13RST - description: TIM block reset - bit_offset: 7 - bit_size: 1 - - name: TIM14RST - description: TIM block reset - bit_offset: 8 - bit_size: 1 - - name: LPTIM1RST - description: TIM block reset - bit_offset: 9 - bit_size: 1 - - name: SPI2RST - description: SPI2 block reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 block reset - bit_offset: 15 - bit_size: 1 - - name: SPDIFRXRST - description: SPDIFRX block reset - bit_offset: 16 - bit_size: 1 - - name: USART2RST - description: USART2 block reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 block reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART4 block reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART5 block reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 block reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 block reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 block reset - bit_offset: 23 - bit_size: 1 - - name: I2C5RST - description: I2C5 block reset - bit_offset: 25 - bit_size: 1 - - name: CECRST - description: HDMI-CEC block reset - bit_offset: 27 - bit_size: 1 - - name: DAC1RST - description: DAC1 (containing two converters) reset - bit_offset: 29 - bit_size: 1 - - name: UART7RST - description: UART7 block reset - bit_offset: 30 - bit_size: 1 - - name: UART8RST - description: UART8 block reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM block reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM block reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM block reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM block reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM block reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM block reset + bit_offset: 5 + bit_size: 1 + - name: TIM12RST + description: TIM block reset + bit_offset: 6 + bit_size: 1 + - name: TIM13RST + description: TIM block reset + bit_offset: 7 + bit_size: 1 + - name: TIM14RST + description: TIM block reset + bit_offset: 8 + bit_size: 1 + - name: LPTIM1RST + description: TIM block reset + bit_offset: 9 + bit_size: 1 + - name: SPI2RST + description: SPI2 block reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 block reset + bit_offset: 15 + bit_size: 1 + - name: SPDIFRXRST + description: SPDIFRX block reset + bit_offset: 16 + bit_size: 1 + - name: USART2RST + description: USART2 block reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 block reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART4 block reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART5 block reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 block reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 block reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 block reset + bit_offset: 23 + bit_size: 1 + - name: I2C5RST + description: I2C5 block reset + bit_offset: 25 + bit_size: 1 + - name: CECRST + description: HDMI-CEC block reset + bit_offset: 27 + bit_size: 1 + - name: DAC1RST + description: DAC1 (containing two converters) reset + bit_offset: 29 + bit_size: 1 + - name: UART7RST + description: UART7 block reset + bit_offset: 30 + bit_size: 1 + - name: UART8RST + description: UART8 block reset + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: RCC APB2 Clock Register fields: - - name: TIM1EN - description: TIM1 peripheral clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM8EN - description: TIM8 peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: USART1EN - description: USART1 Peripheral Clocks Enable - bit_offset: 4 - bit_size: 1 - - name: USART6EN - description: USART6 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: UART9EN - description: "UART9 Peripheral Clocks\r Enable" - bit_offset: 6 - bit_size: 1 - - name: USART10EN - description: "USART10 Peripheral Clocks\r Enable" - bit_offset: 7 - bit_size: 1 - - name: SPI1EN - description: SPI1 Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: SPI4EN - description: SPI4 Peripheral Clocks Enable - bit_offset: 13 - bit_size: 1 - - name: TIM15EN - description: TIM15 peripheral clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 peripheral clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 peripheral clock enable - bit_offset: 18 - bit_size: 1 - - name: SPI5EN - description: SPI5 Peripheral Clocks Enable - bit_offset: 20 - bit_size: 1 - - name: SAI1EN - description: SAI1 Peripheral Clocks Enable - bit_offset: 22 - bit_size: 1 - - name: SAI2EN - description: SAI2 Peripheral Clocks Enable - bit_offset: 23 - bit_size: 1 - - name: SAI3EN - description: SAI3 Peripheral Clocks Enable - bit_offset: 24 - bit_size: 1 - - name: DFSDM1EN - description: DFSDM1 Peripheral Clocks Enable - bit_offset: 28 - bit_size: 1 - - name: HRTIMEN - description: HRTIM peripheral clock enable - bit_offset: 29 - bit_size: 1 + - name: TIM1EN + description: TIM1 peripheral clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM8EN + description: TIM8 peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: USART1EN + description: USART1 Peripheral Clocks Enable + bit_offset: 4 + bit_size: 1 + - name: USART6EN + description: USART6 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: UART9EN + description: "UART9 Peripheral Clocks\r Enable" + bit_offset: 6 + bit_size: 1 + - name: USART10EN + description: "USART10 Peripheral Clocks\r Enable" + bit_offset: 7 + bit_size: 1 + - name: SPI1EN + description: SPI1 Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: SPI4EN + description: SPI4 Peripheral Clocks Enable + bit_offset: 13 + bit_size: 1 + - name: TIM15EN + description: TIM15 peripheral clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 peripheral clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 peripheral clock enable + bit_offset: 18 + bit_size: 1 + - name: SPI5EN + description: SPI5 Peripheral Clocks Enable + bit_offset: 20 + bit_size: 1 + - name: SAI1EN + description: SAI1 Peripheral Clocks Enable + bit_offset: 22 + bit_size: 1 + - name: SAI2EN + description: SAI2 Peripheral Clocks Enable + bit_offset: 23 + bit_size: 1 + - name: SAI3EN + description: SAI3 Peripheral Clocks Enable + bit_offset: 24 + bit_size: 1 + - name: DFSDM1EN + description: DFSDM1 Peripheral Clocks Enable + bit_offset: 28 + bit_size: 1 + - name: HRTIMEN + description: HRTIM peripheral clock enable + bit_offset: 29 + bit_size: 1 fieldset/APB2LPENR: description: RCC APB2 Sleep Clock Register fields: - - name: TIM1LPEN - description: TIM1 peripheral clock enable during CSleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM8LPEN - description: TIM8 peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: USART1LPEN - description: USART1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: USART6LPEN - description: USART6 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: SPI1LPEN - description: SPI1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: SPI4LPEN - description: SPI4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 13 - bit_size: 1 - - name: TIM15LPEN - description: TIM15 peripheral clock enable during CSleep mode - bit_offset: 16 - bit_size: 1 - - name: TIM16LPEN - description: TIM16 peripheral clock enable during CSleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17LPEN - description: TIM17 peripheral clock enable during CSleep mode - bit_offset: 18 - bit_size: 1 - - name: SPI5LPEN - description: SPI5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 20 - bit_size: 1 - - name: SAI1LPEN - description: SAI1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 22 - bit_size: 1 - - name: SAI2LPEN - description: SAI2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 23 - bit_size: 1 - - name: SAI3LPEN - description: SAI3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 24 - bit_size: 1 - - name: DFSDM1LPEN - description: DFSDM1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 28 - bit_size: 1 - - name: HRTIMLPEN - description: HRTIM peripheral clock enable during CSleep mode - bit_offset: 29 - bit_size: 1 + - name: TIM1LPEN + description: TIM1 peripheral clock enable during CSleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM8LPEN + description: TIM8 peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: USART1LPEN + description: USART1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: USART6LPEN + description: USART6 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: SPI1LPEN + description: SPI1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: SPI4LPEN + description: SPI4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 13 + bit_size: 1 + - name: TIM15LPEN + description: TIM15 peripheral clock enable during CSleep mode + bit_offset: 16 + bit_size: 1 + - name: TIM16LPEN + description: TIM16 peripheral clock enable during CSleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17LPEN + description: TIM17 peripheral clock enable during CSleep mode + bit_offset: 18 + bit_size: 1 + - name: SPI5LPEN + description: SPI5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 20 + bit_size: 1 + - name: SAI1LPEN + description: SAI1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 22 + bit_size: 1 + - name: SAI2LPEN + description: SAI2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 23 + bit_size: 1 + - name: SAI3LPEN + description: SAI3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 24 + bit_size: 1 + - name: DFSDM1LPEN + description: DFSDM1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 28 + bit_size: 1 + - name: HRTIMLPEN + description: HRTIM peripheral clock enable during CSleep mode + bit_offset: 29 + bit_size: 1 fieldset/APB2RSTR: description: RCC APB2 Peripheral Reset Register fields: - - name: TIM1RST - description: TIM1 block reset - bit_offset: 0 - bit_size: 1 - - name: TIM8RST - description: TIM8 block reset - bit_offset: 1 - bit_size: 1 - - name: USART1RST - description: USART1 block reset - bit_offset: 4 - bit_size: 1 - - name: USART6RST - description: USART6 block reset - bit_offset: 5 - bit_size: 1 - - name: UART9RST - description: UART9 block reset - bit_offset: 6 - bit_size: 1 - - name: USART10RST - description: USART10 block reset - bit_offset: 7 - bit_size: 1 - - name: SPI1RST - description: SPI1 block reset - bit_offset: 12 - bit_size: 1 - - name: SPI4RST - description: SPI4 block reset - bit_offset: 13 - bit_size: 1 - - name: TIM15RST - description: TIM15 block reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 block reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 block reset - bit_offset: 18 - bit_size: 1 - - name: SPI5RST - description: SPI5 block reset - bit_offset: 20 - bit_size: 1 - - name: SAI1RST - description: SAI1 block reset - bit_offset: 22 - bit_size: 1 - - name: SAI2RST - description: SAI2 block reset - bit_offset: 23 - bit_size: 1 - - name: SAI3RST - description: SAI3 block reset - bit_offset: 24 - bit_size: 1 - - name: DFSDM1RST - description: DFSDM1 block reset - bit_offset: 28 - bit_size: 1 - - name: HRTIMRST - description: HRTIM block reset - bit_offset: 29 - bit_size: 1 + - name: TIM1RST + description: TIM1 block reset + bit_offset: 0 + bit_size: 1 + - name: TIM8RST + description: TIM8 block reset + bit_offset: 1 + bit_size: 1 + - name: USART1RST + description: USART1 block reset + bit_offset: 4 + bit_size: 1 + - name: USART6RST + description: USART6 block reset + bit_offset: 5 + bit_size: 1 + - name: UART9RST + description: UART9 block reset + bit_offset: 6 + bit_size: 1 + - name: USART10RST + description: USART10 block reset + bit_offset: 7 + bit_size: 1 + - name: SPI1RST + description: SPI1 block reset + bit_offset: 12 + bit_size: 1 + - name: SPI4RST + description: SPI4 block reset + bit_offset: 13 + bit_size: 1 + - name: TIM15RST + description: TIM15 block reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 block reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 block reset + bit_offset: 18 + bit_size: 1 + - name: SPI5RST + description: SPI5 block reset + bit_offset: 20 + bit_size: 1 + - name: SAI1RST + description: SAI1 block reset + bit_offset: 22 + bit_size: 1 + - name: SAI2RST + description: SAI2 block reset + bit_offset: 23 + bit_size: 1 + - name: SAI3RST + description: SAI3 block reset + bit_offset: 24 + bit_size: 1 + - name: DFSDM1RST + description: DFSDM1 block reset + bit_offset: 28 + bit_size: 1 + - name: HRTIMRST + description: HRTIM block reset + bit_offset: 29 + bit_size: 1 fieldset/APB3ENR: description: RCC APB3 Clock Register fields: - - name: LTDCEN - description: LTDC peripheral clock enable - bit_offset: 3 - bit_size: 1 - - name: DSIEN - description: DSI Peripheral clocks enable - bit_offset: 4 - bit_size: 1 - - name: WWDG1EN - description: WWDG1 Clock Enable - bit_offset: 6 - bit_size: 1 + - name: LTDCEN + description: LTDC peripheral clock enable + bit_offset: 3 + bit_size: 1 + - name: DSIEN + description: DSI Peripheral clocks enable + bit_offset: 4 + bit_size: 1 + - name: WWDG1EN + description: WWDG1 Clock Enable + bit_offset: 6 + bit_size: 1 fieldset/APB3LPENR: description: RCC APB3 Sleep Clock Register fields: - - name: LTDCLPEN - description: LTDC peripheral clock enable during CSleep mode - bit_offset: 3 - bit_size: 1 - - name: DSILPEN - description: DSI Peripheral Clock Enable During CSleep Mode - bit_offset: 4 - bit_size: 1 - - name: WWDG1LPEN - description: WWDG1 Clock Enable During CSleep Mode - bit_offset: 6 - bit_size: 1 + - name: LTDCLPEN + description: LTDC peripheral clock enable during CSleep mode + bit_offset: 3 + bit_size: 1 + - name: DSILPEN + description: DSI Peripheral Clock Enable During CSleep Mode + bit_offset: 4 + bit_size: 1 + - name: WWDG1LPEN + description: WWDG1 Clock Enable During CSleep Mode + bit_offset: 6 + bit_size: 1 fieldset/APB3RSTR: description: RCC APB3 Peripheral Reset Register fields: - - name: LTDCRST - description: LTDC block reset - bit_offset: 3 - bit_size: 1 - - name: DSIRST - description: DSI block reset - bit_offset: 4 - bit_size: 1 + - name: LTDCRST + description: LTDC block reset + bit_offset: 3 + bit_size: 1 + - name: DSIRST + description: DSI block reset + bit_offset: 4 + bit_size: 1 fieldset/APB4ENR: description: RCC APB4 Clock Register fields: - - name: SYSCFGEN - description: SYSCFG peripheral clock enable - bit_offset: 1 - bit_size: 1 - - name: LPUART1EN - description: LPUART1 Peripheral Clocks Enable - bit_offset: 3 - bit_size: 1 - - name: SPI6EN - description: SPI6 Peripheral Clocks Enable - bit_offset: 5 - bit_size: 1 - - name: I2C4EN - description: I2C4 Peripheral Clocks Enable - bit_offset: 7 - bit_size: 1 - - name: LPTIM2EN - description: LPTIM2 Peripheral Clocks Enable - bit_offset: 9 - bit_size: 1 - - name: LPTIM3EN - description: LPTIM3 Peripheral Clocks Enable - bit_offset: 10 - bit_size: 1 - - name: LPTIM4EN - description: LPTIM4 Peripheral Clocks Enable - bit_offset: 11 - bit_size: 1 - - name: LPTIM5EN - description: LPTIM5 Peripheral Clocks Enable - bit_offset: 12 - bit_size: 1 - - name: DAC2EN - description: DAC2 (containing one converter) peripheral clock enable - bit_offset: 13 - bit_size: 1 - - name: COMP12EN - description: COMP1/2 peripheral clock enable - bit_offset: 14 - bit_size: 1 - - name: VREFEN - description: VREF peripheral clock enable - bit_offset: 15 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB Clock Enable - bit_offset: 16 - bit_size: 1 - - name: SAI4EN - description: SAI4 Peripheral Clocks Enable - bit_offset: 21 - bit_size: 1 - - name: DTSEN - description: Digital temperature sensor block enable - bit_offset: 26 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG peripheral clock enable + bit_offset: 1 + bit_size: 1 + - name: LPUART1EN + description: LPUART1 Peripheral Clocks Enable + bit_offset: 3 + bit_size: 1 + - name: SPI6EN + description: SPI6 Peripheral Clocks Enable + bit_offset: 5 + bit_size: 1 + - name: I2C4EN + description: I2C4 Peripheral Clocks Enable + bit_offset: 7 + bit_size: 1 + - name: LPTIM2EN + description: LPTIM2 Peripheral Clocks Enable + bit_offset: 9 + bit_size: 1 + - name: LPTIM3EN + description: LPTIM3 Peripheral Clocks Enable + bit_offset: 10 + bit_size: 1 + - name: LPTIM4EN + description: LPTIM4 Peripheral Clocks Enable + bit_offset: 11 + bit_size: 1 + - name: LPTIM5EN + description: LPTIM5 Peripheral Clocks Enable + bit_offset: 12 + bit_size: 1 + - name: DAC2EN + description: DAC2 (containing one converter) peripheral clock enable + bit_offset: 13 + bit_size: 1 + - name: COMP12EN + description: COMP1/2 peripheral clock enable + bit_offset: 14 + bit_size: 1 + - name: VREFEN + description: VREF peripheral clock enable + bit_offset: 15 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB Clock Enable + bit_offset: 16 + bit_size: 1 + - name: SAI4EN + description: SAI4 Peripheral Clocks Enable + bit_offset: 21 + bit_size: 1 + - name: DTSEN + description: Digital temperature sensor block enable + bit_offset: 26 + bit_size: 1 fieldset/APB4LPENR: description: RCC APB4 Sleep Clock Register fields: - - name: SYSCFGLPEN - description: SYSCFG peripheral clock enable during CSleep mode - bit_offset: 1 - bit_size: 1 - - name: LPUART1LPEN - description: LPUART1 Peripheral Clocks Enable During CSleep Mode - bit_offset: 3 - bit_size: 1 - - name: SPI6LPEN - description: SPI6 Peripheral Clocks Enable During CSleep Mode - bit_offset: 5 - bit_size: 1 - - name: I2C4LPEN - description: I2C4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 7 - bit_size: 1 - - name: LPTIM2LPEN - description: LPTIM2 Peripheral Clocks Enable During CSleep Mode - bit_offset: 9 - bit_size: 1 - - name: LPTIM3LPEN - description: LPTIM3 Peripheral Clocks Enable During CSleep Mode - bit_offset: 10 - bit_size: 1 - - name: LPTIM4LPEN - description: LPTIM4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 11 - bit_size: 1 - - name: LPTIM5LPEN - description: LPTIM5 Peripheral Clocks Enable During CSleep Mode - bit_offset: 12 - bit_size: 1 - - name: DAC2LPEN - description: DAC2 (containing one converter) peripheral clock enable during CSleep mode - bit_offset: 13 - bit_size: 1 - - name: COMP12LPEN - description: COMP1/2 peripheral clock enable during CSleep mode - bit_offset: 14 - bit_size: 1 - - name: VREFLPEN - description: VREF peripheral clock enable during CSleep mode - bit_offset: 15 - bit_size: 1 - - name: RTCAPBLPEN - description: RTC APB Clock Enable During CSleep Mode - bit_offset: 16 - bit_size: 1 - - name: SAI4LPEN - description: SAI4 Peripheral Clocks Enable During CSleep Mode - bit_offset: 21 - bit_size: 1 - - name: DTSLPEN - description: Digital temperature sensor block enable during CSleep Mode - bit_offset: 26 - bit_size: 1 + - name: SYSCFGLPEN + description: SYSCFG peripheral clock enable during CSleep mode + bit_offset: 1 + bit_size: 1 + - name: LPUART1LPEN + description: LPUART1 Peripheral Clocks Enable During CSleep Mode + bit_offset: 3 + bit_size: 1 + - name: SPI6LPEN + description: SPI6 Peripheral Clocks Enable During CSleep Mode + bit_offset: 5 + bit_size: 1 + - name: I2C4LPEN + description: I2C4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 7 + bit_size: 1 + - name: LPTIM2LPEN + description: LPTIM2 Peripheral Clocks Enable During CSleep Mode + bit_offset: 9 + bit_size: 1 + - name: LPTIM3LPEN + description: LPTIM3 Peripheral Clocks Enable During CSleep Mode + bit_offset: 10 + bit_size: 1 + - name: LPTIM4LPEN + description: LPTIM4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 11 + bit_size: 1 + - name: LPTIM5LPEN + description: LPTIM5 Peripheral Clocks Enable During CSleep Mode + bit_offset: 12 + bit_size: 1 + - name: DAC2LPEN + description: DAC2 (containing one converter) peripheral clock enable during CSleep mode + bit_offset: 13 + bit_size: 1 + - name: COMP12LPEN + description: COMP1/2 peripheral clock enable during CSleep mode + bit_offset: 14 + bit_size: 1 + - name: VREFLPEN + description: VREF peripheral clock enable during CSleep mode + bit_offset: 15 + bit_size: 1 + - name: RTCAPBLPEN + description: RTC APB Clock Enable During CSleep Mode + bit_offset: 16 + bit_size: 1 + - name: SAI4LPEN + description: SAI4 Peripheral Clocks Enable During CSleep Mode + bit_offset: 21 + bit_size: 1 + - name: DTSLPEN + description: Digital temperature sensor block enable during CSleep Mode + bit_offset: 26 + bit_size: 1 fieldset/APB4RSTR: description: RCC APB4 Peripheral Reset Register fields: - - name: SYSCFGRST - description: SYSCFG block reset - bit_offset: 1 - bit_size: 1 - - name: LPUART1RST - description: LPUART1 block reset - bit_offset: 3 - bit_size: 1 - - name: SPI6RST - description: SPI6 block reset - bit_offset: 5 - bit_size: 1 - - name: I2C4RST - description: I2C4 block reset - bit_offset: 7 - bit_size: 1 - - name: LPTIM2RST - description: LPTIM2 block reset - bit_offset: 9 - bit_size: 1 - - name: LPTIM3RST - description: LPTIM3 block reset - bit_offset: 10 - bit_size: 1 - - name: LPTIM4RST - description: LPTIM4 block reset - bit_offset: 11 - bit_size: 1 - - name: LPTIM5RST - description: LPTIM5 block reset - bit_offset: 12 - bit_size: 1 - - name: DAC2RST - description: DAC2 (containing one converter) reset - bit_offset: 13 - bit_size: 1 - - name: COMP12RST - description: COMP12 Blocks Reset - bit_offset: 14 - bit_size: 1 - - name: VREFRST - description: VREF block reset - bit_offset: 15 - bit_size: 1 - - name: SAI4RST - description: SAI4 block reset - bit_offset: 21 - bit_size: 1 - - name: DTSRST - description: Digital temperature sensor block reset - bit_offset: 26 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFG block reset + bit_offset: 1 + bit_size: 1 + - name: LPUART1RST + description: LPUART1 block reset + bit_offset: 3 + bit_size: 1 + - name: SPI6RST + description: SPI6 block reset + bit_offset: 5 + bit_size: 1 + - name: I2C4RST + description: I2C4 block reset + bit_offset: 7 + bit_size: 1 + - name: LPTIM2RST + description: LPTIM2 block reset + bit_offset: 9 + bit_size: 1 + - name: LPTIM3RST + description: LPTIM3 block reset + bit_offset: 10 + bit_size: 1 + - name: LPTIM4RST + description: LPTIM4 block reset + bit_offset: 11 + bit_size: 1 + - name: LPTIM5RST + description: LPTIM5 block reset + bit_offset: 12 + bit_size: 1 + - name: DAC2RST + description: DAC2 (containing one converter) reset + bit_offset: 13 + bit_size: 1 + - name: COMP12RST + description: COMP12 Blocks Reset + bit_offset: 14 + bit_size: 1 + - name: VREFRST + description: VREF block reset + bit_offset: 15 + bit_size: 1 + - name: SAI4RST + description: SAI4 block reset + bit_offset: 21 + bit_size: 1 + - name: DTSRST + description: Digital temperature sensor block reset + bit_offset: 26 + bit_size: 1 fieldset/BDCR: description: RCC Backup Domain Control Register fields: - - name: LSEON - description: LSE oscillator enabled - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator driving capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: LSE clock security system enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: LSE clock security system failure detection - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: VSwitch domain software reset - bit_offset: 16 - bit_size: 1 + - name: LSEON + description: LSE oscillator enabled + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator driving capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: LSE clock security system enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: LSE clock security system failure detection + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: VSwitch domain software reset + bit_offset: 16 + bit_size: 1 fieldset/CFGR: description: RCC Clock Configuration Register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 3 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 3 - bit_size: 3 - enum: SWS - - name: STOPWUCK - description: System clock selection after a wake up from system Stop - bit_offset: 6 - bit_size: 1 - enum: STOPWUCK - - name: STOPKERWUCK - description: Kernel clock selection after a wake up from system Stop - bit_offset: 7 - bit_size: 1 - enum: STOPWUCK - - name: RTCPRE - description: HSE division factor for RTC clock - bit_offset: 8 - bit_size: 6 - - name: HRTIMSEL - description: High Resolution Timer clock prescaler selection - bit_offset: 14 - bit_size: 1 - enum: HRTIMSEL - - name: TIMPRE - description: Timers clocks prescaler selection - bit_offset: 15 - bit_size: 1 - enum: TIMPRE - - name: MCO1PRE - description: MCO1 prescaler - bit_offset: 18 - bit_size: 4 - - name: MCO1 - description: Micro-controller clock output 1 - bit_offset: 22 - bit_size: 3 - enum: MCO1 - - name: MCO2PRE - description: MCO2 prescaler - bit_offset: 25 - bit_size: 4 - - name: MCO2 - description: Micro-controller clock output 2 - bit_offset: 29 - bit_size: 3 - enum: MCO2 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 3 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 3 + bit_size: 3 + enum: SWS + - name: STOPWUCK + description: System clock selection after a wake up from system Stop + bit_offset: 6 + bit_size: 1 + enum: STOPWUCK + - name: STOPKERWUCK + description: Kernel clock selection after a wake up from system Stop + bit_offset: 7 + bit_size: 1 + enum: STOPWUCK + - name: RTCPRE + description: HSE division factor for RTC clock + bit_offset: 8 + bit_size: 6 + - name: HRTIMSEL + description: High Resolution Timer clock prescaler selection + bit_offset: 14 + bit_size: 1 + enum: HRTIMSEL + - name: TIMPRE + description: Timers clocks prescaler selection + bit_offset: 15 + bit_size: 1 + enum: TIMPRE + - name: MCO1PRE + description: MCO1 prescaler + bit_offset: 18 + bit_size: 4 + - name: MCO1 + description: Micro-controller clock output 1 + bit_offset: 22 + bit_size: 3 + enum: MCO1 + - name: MCO2PRE + description: MCO2 prescaler + bit_offset: 25 + bit_size: 4 + - name: MCO2 + description: Micro-controller clock output 2 + bit_offset: 29 + bit_size: 3 + enum: MCO2 fieldset/CICR: description: RCC Clock Source Interrupt Clear Register fields: - - name: LSIRDYC - description: LSI ready Interrupt Clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready Interrupt Clear - bit_offset: 1 - bit_size: 1 - - name: HSIRDYC - description: HSI ready Interrupt Clear - bit_offset: 2 - bit_size: 1 - - name: HSERDYC - description: HSE ready Interrupt Clear - bit_offset: 3 - bit_size: 1 - - name: HSE_ready_Interrupt_Clear - description: CSI ready Interrupt Clear - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYC - description: RC48 ready Interrupt Clear - bit_offset: 5 - bit_size: 1 - - name: PLLRDYC - description: PLL1 ready Interrupt Clear - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LSECSSC - description: LSE clock security system Interrupt Clear - bit_offset: 9 - bit_size: 1 - - name: HSECSSC - description: HSE clock security system Interrupt Clear - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: LSI ready Interrupt Clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready Interrupt Clear + bit_offset: 1 + bit_size: 1 + - name: HSIRDYC + description: HSI ready Interrupt Clear + bit_offset: 2 + bit_size: 1 + - name: HSERDYC + description: HSE ready Interrupt Clear + bit_offset: 3 + bit_size: 1 + - name: HSE_ready_Interrupt_Clear + description: CSI ready Interrupt Clear + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYC + description: RC48 ready Interrupt Clear + bit_offset: 5 + bit_size: 1 + - name: PLLRDYC + description: PLL1 ready Interrupt Clear + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LSECSSC + description: LSE clock security system Interrupt Clear + bit_offset: 9 + bit_size: 1 + - name: HSECSSC + description: HSE clock security system Interrupt Clear + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: RCC Clock Source Interrupt Enable Register fields: - - name: LSIRDYIE - description: LSI ready Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready Interrupt Enable - bit_offset: 1 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready Interrupt Enable - bit_offset: 2 - bit_size: 1 - - name: HSERDYIE - description: HSE ready Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: CSIRDYIE - description: CSI ready Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYIE - description: RC48 ready Interrupt Enable - bit_offset: 5 - bit_size: 1 - - name: PLLRDYIE - description: PLL1 ready Interrupt Enable - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LSECSSIE - description: LSE clock security system Interrupt Enable - bit_offset: 9 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready Interrupt Enable + bit_offset: 1 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready Interrupt Enable + bit_offset: 2 + bit_size: 1 + - name: HSERDYIE + description: HSE ready Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: CSIRDYIE + description: CSI ready Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYIE + description: RC48 ready Interrupt Enable + bit_offset: 5 + bit_size: 1 + - name: PLLRDYIE + description: PLL1 ready Interrupt Enable + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LSECSSIE + description: LSE clock security system Interrupt Enable + bit_offset: 9 + bit_size: 1 fieldset/CIFR: description: RCC Clock Source Interrupt Flag Register fields: - - name: LSIRDYF - description: LSI ready Interrupt Flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready Interrupt Flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready Interrupt Flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready Interrupt Flag - bit_offset: 3 - bit_size: 1 - - name: CSIRDY - description: CSI ready Interrupt Flag - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYF - description: RC48 ready Interrupt Flag - bit_offset: 5 - bit_size: 1 - - name: PLLRDYF - description: PLL1 ready Interrupt Flag - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: LSECSSF - description: LSE clock security system Interrupt Flag - bit_offset: 9 - bit_size: 1 - - name: HSECSSF - description: HSE clock security system Interrupt Flag - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: LSI ready Interrupt Flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready Interrupt Flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready Interrupt Flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready Interrupt Flag + bit_offset: 3 + bit_size: 1 + - name: CSIRDY + description: CSI ready Interrupt Flag + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYF + description: RC48 ready Interrupt Flag + bit_offset: 5 + bit_size: 1 + - name: PLLRDYF + description: PLL1 ready Interrupt Flag + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: LSECSSF + description: LSE clock security system Interrupt Flag + bit_offset: 9 + bit_size: 1 + - name: HSECSSF + description: HSE clock security system Interrupt Flag + bit_offset: 10 + bit_size: 1 fieldset/CR: description: clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIKERON - description: High Speed Internal clock enable in Stop mode - bit_offset: 1 - bit_size: 1 - - name: HSIRDY - description: HSI clock ready flag - bit_offset: 2 - bit_size: 1 - - name: HSIDIV - description: HSI clock divider - bit_offset: 3 - bit_size: 2 - enum: HSIDIV - - name: HSIDIVF - description: HSI divider flag - bit_offset: 5 - bit_size: 1 - - name: CSION - description: CSI clock enable - bit_offset: 7 - bit_size: 1 - - name: CSIRDY - description: CSI clock ready flag - bit_offset: 8 - bit_size: 1 - - name: CSIKERON - description: CSI clock enable in Stop mode - bit_offset: 9 - bit_size: 1 - - name: HSI48ON - description: RC48 clock enable - bit_offset: 12 - bit_size: 1 - - name: HSI48RDY - description: RC48 clock ready flag - bit_offset: 13 - bit_size: 1 - - name: D1CKRDY - description: D1 domain clocks ready flag - bit_offset: 14 - bit_size: 1 - - name: D2CKRDY - description: D2 domain clocks ready flag - bit_offset: 15 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: HSECSSON - description: HSE Clock Security System enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: PLL1 enable - bit_offset: 24 - bit_size: 1 - array: - len: 3 - stride: 2 - - name: PLLRDY - description: PLL1 clock ready flag - bit_offset: 25 - bit_size: 1 - array: - len: 3 - stride: 2 + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIKERON + description: High Speed Internal clock enable in Stop mode + bit_offset: 1 + bit_size: 1 + - name: HSIRDY + description: HSI clock ready flag + bit_offset: 2 + bit_size: 1 + - name: HSIDIV + description: HSI clock divider + bit_offset: 3 + bit_size: 2 + enum: HSIDIV + - name: HSIDIVF + description: HSI divider flag + bit_offset: 5 + bit_size: 1 + - name: CSION + description: CSI clock enable + bit_offset: 7 + bit_size: 1 + - name: CSIRDY + description: CSI clock ready flag + bit_offset: 8 + bit_size: 1 + - name: CSIKERON + description: CSI clock enable in Stop mode + bit_offset: 9 + bit_size: 1 + - name: HSI48ON + description: RC48 clock enable + bit_offset: 12 + bit_size: 1 + - name: HSI48RDY + description: RC48 clock ready flag + bit_offset: 13 + bit_size: 1 + - name: D1CKRDY + description: D1 domain clocks ready flag + bit_offset: 14 + bit_size: 1 + - name: D2CKRDY + description: D2 domain clocks ready flag + bit_offset: 15 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: HSECSSON + description: HSE Clock Security System enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: PLL1 enable + bit_offset: 24 + bit_size: 1 + array: + len: 3 + stride: 2 + - name: PLLRDY + description: PLL1 clock ready flag + bit_offset: 25 + bit_size: 1 + array: + len: 3 + stride: 2 fieldset/CRRCR: description: RCC Clock Recovery RC Register fields: - - name: HSI48CAL - description: Internal RC 48 MHz clock calibration - bit_offset: 0 - bit_size: 10 + - name: HSI48CAL + description: Internal RC 48 MHz clock calibration + bit_offset: 0 + bit_size: 10 fieldset/CSICFGR: description: RCC CSI configuration register fields: - - name: CSICAL - description: CSI clock calibration - bit_offset: 0 - bit_size: 9 - - name: CSITRIM - description: CSI clock trimming - bit_offset: 24 - bit_size: 6 + - name: CSICAL + description: CSI clock calibration + bit_offset: 0 + bit_size: 9 + - name: CSITRIM + description: CSI clock trimming + bit_offset: 24 + bit_size: 6 fieldset/CSR: description: RCC Clock Control and Status Register fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 fieldset/D1CCIPR: description: RCC Domain 1 Kernel Clock Configuration Register fields: - - name: FMCSEL - description: FMC kernel clock source selection - bit_offset: 0 - bit_size: 2 - enum: FMCSEL - - name: OCTOSPISEL - description: OCTOSPI kernel clock source selection - bit_offset: 4 - bit_size: 2 - enum: FMCSEL - - name: DSISEL - description: kernel clock source selection - bit_offset: 8 - bit_size: 1 - - name: SDMMCSEL - description: SDMMC kernel clock source selection - bit_offset: 16 - bit_size: 1 - enum: SDMMCSEL - - name: CKPERSEL - description: per_ck clock source selection - bit_offset: 28 - bit_size: 2 - enum: CKPERSEL + - name: FMCSEL + description: FMC kernel clock source selection + bit_offset: 0 + bit_size: 2 + enum: FMCSEL + - name: OCTOSPISEL + description: OCTOSPI kernel clock source selection + bit_offset: 4 + bit_size: 2 + enum: FMCSEL + - name: DSISEL + description: kernel clock source selection + bit_offset: 8 + bit_size: 1 + - name: SDMMCSEL + description: SDMMC kernel clock source selection + bit_offset: 16 + bit_size: 1 + enum: SDMMCSEL + - name: CKPERSEL + description: per_ck clock source selection + bit_offset: 28 + bit_size: 2 + enum: CKPERSEL fieldset/D1CFGR: description: RCC Domain 1 Clock Configuration Register fields: - - name: HPRE - description: D1 domain AHB prescaler - bit_offset: 0 - bit_size: 4 - enum: HPRE - - name: D1PPRE - description: D1 domain APB3 prescaler - bit_offset: 4 - bit_size: 3 - enum: DPPRE - - name: D1CPRE - description: D1 domain Core prescaler - bit_offset: 8 - bit_size: 4 - enum: HPRE + - name: HPRE + description: D1 domain AHB prescaler + bit_offset: 0 + bit_size: 4 + enum: HPRE + - name: D1PPRE + description: D1 domain APB3 prescaler + bit_offset: 4 + bit_size: 3 + enum: DPPRE + - name: D1CPRE + description: D1 domain Core prescaler + bit_offset: 8 + bit_size: 4 + enum: HPRE fieldset/D2CCIP1R: description: RCC Domain 2 Kernel Clock Configuration Register fields: - - name: SAI1SEL - description: SAI1 and DFSDM1 kernel Aclk clock source selection - bit_offset: 0 - bit_size: 3 - enum: SAISEL - - name: SAI2ASEL - description: SAI2 kernel clock source A source selection - bit_offset: 6 - bit_size: 3 - enum: SAIASEL - - name: SAI2BSEL - description: SAI2 kernel clock source B source selection - bit_offset: 9 - bit_size: 3 - enum: SAIASEL - - name: SPI123SEL - description: "SPI/I2S1,2 and 3 kernel clock source selection" - bit_offset: 12 - bit_size: 3 - enum: SAISEL - - name: SPI45SEL - description: SPI4 and 5 kernel clock source selection - bit_offset: 16 - bit_size: 3 - enum: SPI45SEL - - name: SPDIFRXSEL - description: SPDIFRX kernel clock source selection - bit_offset: 20 - bit_size: 2 - enum: SPDIFRXSEL - - name: DFSDM1SEL - description: DFSDM1 kernel Clk clock source selection - bit_offset: 24 - bit_size: 1 - enum: DFSDMSEL - - name: FDCANSEL - description: FDCAN kernel clock source selection - bit_offset: 28 - bit_size: 2 - enum: FDCANSEL - - name: SWPSEL - description: SWPMI kernel clock source selection - bit_offset: 31 - bit_size: 1 - enum: SWPSEL + - name: SAI1SEL + description: SAI1 and DFSDM1 kernel Aclk clock source selection + bit_offset: 0 + bit_size: 3 + enum: SAISEL + - name: SAI2ASEL + description: SAI2 kernel clock source A source selection + bit_offset: 6 + bit_size: 3 + enum: SAIASEL + - name: SAI2BSEL + description: SAI2 kernel clock source B source selection + bit_offset: 9 + bit_size: 3 + enum: SAIASEL + - name: SPI123SEL + description: SPI/I2S1,2 and 3 kernel clock source selection + bit_offset: 12 + bit_size: 3 + enum: SAISEL + - name: SPI45SEL + description: SPI4 and 5 kernel clock source selection + bit_offset: 16 + bit_size: 3 + enum: SPI45SEL + - name: SPDIFRXSEL + description: SPDIFRX kernel clock source selection + bit_offset: 20 + bit_size: 2 + enum: SPDIFRXSEL + - name: DFSDM1SEL + description: DFSDM1 kernel Clk clock source selection + bit_offset: 24 + bit_size: 1 + enum: DFSDMSEL + - name: FDCANSEL + description: FDCAN kernel clock source selection + bit_offset: 28 + bit_size: 2 + enum: FDCANSEL + - name: SWPSEL + description: SWPMI kernel clock source selection + bit_offset: 31 + bit_size: 1 + enum: SWPSEL fieldset/D2CCIP2R: description: RCC Domain 2 Kernel Clock Configuration Register fields: - - name: USART234578SEL - description: "USART2/3, UART4,5, 7/8 (APB1) kernel clock source selection" - bit_offset: 0 - bit_size: 3 - enum: USART234578SEL - - name: USART16910SEL - description: "USART1, 6, 9 and 10 kernel clock source selection" - bit_offset: 3 - bit_size: 3 - enum: USART16910SEL - - name: RNGSEL - description: RNG kernel clock source selection - bit_offset: 8 - bit_size: 2 - enum: RNGSEL - - name: I2C1235SEL - description: "I2C1,2,3 kernel clock source selection" - bit_offset: 12 - bit_size: 2 - enum: I2C1235SEL - - name: USBSEL - description: USBOTG 1 and 2 kernel clock source selection - bit_offset: 20 - bit_size: 2 - enum: USBSEL - - name: CECSEL - description: HDMI-CEC kernel clock source selection - bit_offset: 22 - bit_size: 2 - enum: CECSEL - - name: LPTIM1SEL - description: LPTIM1 kernel clock source selection - bit_offset: 28 - bit_size: 3 - enum: LPTIM1SEL + - name: USART234578SEL + description: USART2/3, UART4,5, 7/8 (APB1) kernel clock source selection + bit_offset: 0 + bit_size: 3 + enum: USART234578SEL + - name: USART16910SEL + description: USART1, 6, 9 and 10 kernel clock source selection + bit_offset: 3 + bit_size: 3 + enum: USART16910SEL + - name: RNGSEL + description: RNG kernel clock source selection + bit_offset: 8 + bit_size: 2 + enum: RNGSEL + - name: I2C1235SEL + description: I2C1,2,3 kernel clock source selection + bit_offset: 12 + bit_size: 2 + enum: I2C1235SEL + - name: USBSEL + description: USBOTG 1 and 2 kernel clock source selection + bit_offset: 20 + bit_size: 2 + enum: USBSEL + - name: CECSEL + description: HDMI-CEC kernel clock source selection + bit_offset: 22 + bit_size: 2 + enum: CECSEL + - name: LPTIM1SEL + description: LPTIM1 kernel clock source selection + bit_offset: 28 + bit_size: 3 + enum: LPTIM1SEL fieldset/D2CFGR: description: RCC Domain 2 Clock Configuration Register fields: - - name: D2PPRE1 - description: D2 domain APB1 prescaler - bit_offset: 4 - bit_size: 3 - enum: DPPRE - - name: D2PPRE2 - description: D2 domain APB2 prescaler - bit_offset: 8 - bit_size: 3 - enum: DPPRE + - name: D2PPRE1 + description: D2 domain APB1 prescaler + bit_offset: 4 + bit_size: 3 + enum: DPPRE + - name: D2PPRE2 + description: D2 domain APB2 prescaler + bit_offset: 8 + bit_size: 3 + enum: DPPRE fieldset/D3AMR: description: RCC D3 Autonomous mode Register fields: - - name: BDMA2AMEN - description: BDMA2 and DMAMUX Autonomous mode enable - bit_offset: 0 - bit_size: 1 - - name: BDMAAMEN - description: BDMA and DMAMUX Autonomous mode enable - bit_offset: 0 - bit_size: 1 - - name: LPUART1AMEN - description: LPUART1 Autonomous mode enable - bit_offset: 3 - bit_size: 1 - - name: SPI6AMEN - description: SPI6 Autonomous mode enable - bit_offset: 5 - bit_size: 1 - - name: I2C4AMEN - description: I2C4 Autonomous mode enable - bit_offset: 7 - bit_size: 1 - - name: LPTIM2AMEN - description: LPTIM2 Autonomous mode enable - bit_offset: 9 - bit_size: 1 - - name: LPTIM3AMEN - description: LPTIM3 Autonomous mode enable - bit_offset: 10 - bit_size: 1 - - name: LPTIM4AMEN - description: LPTIM4 Autonomous mode enable - bit_offset: 11 - bit_size: 1 - - name: LPTIM5AMEN - description: LPTIM5 Autonomous mode enable - bit_offset: 12 - bit_size: 1 - - name: DAC2AMEN - description: DAC2 (containing one converter) Autonomous mode enable - bit_offset: 13 - bit_size: 1 - - name: COMP12AMEN - description: COMP12 Autonomous mode enable - bit_offset: 14 - bit_size: 1 - - name: VREFAMEN - description: VREF Autonomous mode enable - bit_offset: 15 - bit_size: 1 - - name: RTCAMEN - description: RTC Autonomous mode enable - bit_offset: 16 - bit_size: 1 - - name: CRCAMEN - description: CRC Autonomous mode enable - bit_offset: 19 - bit_size: 1 - - name: SAI4AMEN - description: SAI4 Autonomous mode enable - bit_offset: 21 - bit_size: 1 - - name: ADC3AMEN - description: ADC3 Autonomous mode enable - bit_offset: 24 - bit_size: 1 - - name: DTSAMEN - description: Digital temperature sensor Autonomous mode enable - bit_offset: 26 - bit_size: 1 - - name: BKPSRAMAMEN - description: Backup RAM Autonomous mode enable - bit_offset: 28 - bit_size: 1 - - name: SRAM4AMEN - description: SRAM4 Autonomous mode enable - bit_offset: 29 - bit_size: 1 + - name: BDMA2AMEN + description: BDMA2 and DMAMUX Autonomous mode enable + bit_offset: 0 + bit_size: 1 + - name: BDMAAMEN + description: BDMA and DMAMUX Autonomous mode enable + bit_offset: 0 + bit_size: 1 + - name: LPUART1AMEN + description: LPUART1 Autonomous mode enable + bit_offset: 3 + bit_size: 1 + - name: SPI6AMEN + description: SPI6 Autonomous mode enable + bit_offset: 5 + bit_size: 1 + - name: I2C4AMEN + description: I2C4 Autonomous mode enable + bit_offset: 7 + bit_size: 1 + - name: LPTIM2AMEN + description: LPTIM2 Autonomous mode enable + bit_offset: 9 + bit_size: 1 + - name: LPTIM3AMEN + description: LPTIM3 Autonomous mode enable + bit_offset: 10 + bit_size: 1 + - name: LPTIM4AMEN + description: LPTIM4 Autonomous mode enable + bit_offset: 11 + bit_size: 1 + - name: LPTIM5AMEN + description: LPTIM5 Autonomous mode enable + bit_offset: 12 + bit_size: 1 + - name: DAC2AMEN + description: DAC2 (containing one converter) Autonomous mode enable + bit_offset: 13 + bit_size: 1 + - name: COMP12AMEN + description: COMP12 Autonomous mode enable + bit_offset: 14 + bit_size: 1 + - name: VREFAMEN + description: VREF Autonomous mode enable + bit_offset: 15 + bit_size: 1 + - name: RTCAMEN + description: RTC Autonomous mode enable + bit_offset: 16 + bit_size: 1 + - name: CRCAMEN + description: CRC Autonomous mode enable + bit_offset: 19 + bit_size: 1 + - name: SAI4AMEN + description: SAI4 Autonomous mode enable + bit_offset: 21 + bit_size: 1 + - name: ADC3AMEN + description: ADC3 Autonomous mode enable + bit_offset: 24 + bit_size: 1 + - name: DTSAMEN + description: Digital temperature sensor Autonomous mode enable + bit_offset: 26 + bit_size: 1 + - name: BKPSRAMAMEN + description: Backup RAM Autonomous mode enable + bit_offset: 28 + bit_size: 1 + - name: SRAM4AMEN + description: SRAM4 Autonomous mode enable + bit_offset: 29 + bit_size: 1 fieldset/D3CCIPR: description: RCC Domain 3 Kernel Clock Configuration Register fields: - - name: LPUART1SEL - description: LPUART1 kernel clock source selection - bit_offset: 0 - bit_size: 3 - enum: LPUARTSEL - - name: I2C4SEL - description: I2C4 kernel clock source selection - bit_offset: 8 - bit_size: 2 - enum: I2C4SEL - - name: LPTIM2SEL - description: LPTIM2 kernel clock source selection - bit_offset: 10 - bit_size: 3 - enum: LPTIM2SEL - - name: LPTIM345SEL - description: "LPTIM3,4,5 kernel clock source selection" - bit_offset: 13 - bit_size: 3 - enum: LPTIM2SEL - - name: ADCSEL - description: SAR ADC kernel clock source selection - bit_offset: 16 - bit_size: 2 - enum: ADCSEL - - name: DFSDM2SEL - description: DFSDM2 kernel clock source selection - bit_offset: 27 - bit_size: 1 - - name: SPI6SEL - description: SPI6 kernel clock source selection - bit_offset: 28 - bit_size: 3 - enum: SPI6SEL + - name: LPUART1SEL + description: LPUART1 kernel clock source selection + bit_offset: 0 + bit_size: 3 + enum: LPUARTSEL + - name: I2C4SEL + description: I2C4 kernel clock source selection + bit_offset: 8 + bit_size: 2 + enum: I2C4SEL + - name: LPTIM2SEL + description: LPTIM2 kernel clock source selection + bit_offset: 10 + bit_size: 3 + enum: LPTIM2SEL + - name: LPTIM345SEL + description: LPTIM3,4,5 kernel clock source selection + bit_offset: 13 + bit_size: 3 + enum: LPTIM2SEL + - name: ADCSEL + description: SAR ADC kernel clock source selection + bit_offset: 16 + bit_size: 2 + enum: ADCSEL + - name: DFSDM2SEL + description: DFSDM2 kernel clock source selection + bit_offset: 27 + bit_size: 1 + - name: SPI6SEL + description: SPI6 kernel clock source selection + bit_offset: 28 + bit_size: 3 + enum: SPI6SEL fieldset/D3CFGR: description: RCC Domain 3 Clock Configuration Register fields: - - name: D3PPRE - description: D3 domain APB4 prescaler - bit_offset: 4 - bit_size: 3 - enum: DPPRE + - name: D3PPRE + description: D3 domain APB4 prescaler + bit_offset: 4 + bit_size: 3 + enum: DPPRE fieldset/GCR: description: Global Control Register fields: - - name: WW1RSC - description: WWDG1 reset scope control - bit_offset: 0 - bit_size: 1 + - name: WW1RSC + description: WWDG1 reset scope control + bit_offset: 0 + bit_size: 1 fieldset/HSICFGR: description: RCC HSI configuration register fields: - - name: HSICAL - description: HSI clock calibration - bit_offset: 0 - bit_size: 12 - - name: HSITRIM - description: HSI clock trimming - bit_offset: 24 - bit_size: 7 + - name: HSICAL + description: HSI clock calibration + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: HSI clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLL1DIVR: description: RCC PLL1 Dividers Configuration Register fields: - - name: DIVN1 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP1 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - enum: DIVP - - name: DIVQ1 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR1 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 + - name: DIVN1 + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: DIVP1 + description: PLL1 DIVP division factor + bit_offset: 9 + bit_size: 7 + enum: DIVP + - name: DIVQ1 + description: PLL1 DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: DIVR1 + description: PLL1 DIVR division factor + bit_offset: 24 + bit_size: 7 fieldset/PLL1FRACR: description: RCC PLL1 Fractional Divider Register fields: - - name: FRACN1 - description: Fractional part of the multiplication factor for PLL1 VCO - bit_offset: 3 - bit_size: 13 + - name: FRACN1 + description: Fractional part of the multiplication factor for PLL1 VCO + bit_offset: 3 + bit_size: 13 fieldset/PLL2DIVR: description: RCC PLL2 Dividers Configuration Register fields: - - name: DIVN2 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP2 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ2 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR2 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 + - name: DIVN2 + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: DIVP2 + description: PLL1 DIVP division factor + bit_offset: 9 + bit_size: 7 + - name: DIVQ2 + description: PLL1 DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: DIVR2 + description: PLL1 DIVR division factor + bit_offset: 24 + bit_size: 7 fieldset/PLL2FRACR: description: RCC PLL2 Fractional Divider Register fields: - - name: FRACN2 - description: Fractional part of the multiplication factor for PLL VCO - bit_offset: 3 - bit_size: 13 + - name: FRACN2 + description: Fractional part of the multiplication factor for PLL VCO + bit_offset: 3 + bit_size: 13 fieldset/PLL3DIVR: description: RCC PLL3 Dividers Configuration Register fields: - - name: DIVN3 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP3 - description: PLL DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ3 - description: PLL DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR3 - description: PLL DIVR division factor - bit_offset: 24 - bit_size: 7 + - name: DIVN3 + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: DIVP3 + description: PLL DIVP division factor + bit_offset: 9 + bit_size: 7 + - name: DIVQ3 + description: PLL DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: DIVR3 + description: PLL DIVR division factor + bit_offset: 24 + bit_size: 7 fieldset/PLL3FRACR: description: RCC PLL3 Fractional Divider Register fields: - - name: FRACN3 - description: Fractional part of the multiplication factor for PLL3 VCO - bit_offset: 3 - bit_size: 13 + - name: FRACN3 + description: Fractional part of the multiplication factor for PLL3 VCO + bit_offset: 3 + bit_size: 13 fieldset/PLLCFGR: description: RCC PLLs Configuration Register fields: - - name: PLLFRACEN - description: PLL1 fractional latch enable - bit_offset: 0 - bit_size: 1 - array: - len: 3 - stride: 4 - - name: PLLVCOSEL - description: PLL1 VCO selection - bit_offset: 1 - bit_size: 1 - array: - len: 3 - stride: 4 - enum: PLLVCOSEL - - name: PLLRGE - description: PLL1 input frequency range - bit_offset: 2 - bit_size: 2 - array: - len: 3 - stride: 4 - enum: PLLRGE - - name: DIVPEN - description: PLL1 DIVP divider output enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: DIVQEN - description: PLL1 DIVQ divider output enable - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: DIVREN - description: PLL1 DIVR divider output enable - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: PLLFRACEN + description: PLL1 fractional latch enable + bit_offset: 0 + bit_size: 1 + array: + len: 3 + stride: 4 + - name: PLLVCOSEL + description: PLL1 VCO selection + bit_offset: 1 + bit_size: 1 + array: + len: 3 + stride: 4 + enum: PLLVCOSEL + - name: PLLRGE + description: PLL1 input frequency range + bit_offset: 2 + bit_size: 2 + array: + len: 3 + stride: 4 + enum: PLLRGE + - name: DIVPEN + description: PLL1 DIVP divider output enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: DIVQEN + description: PLL1 DIVQ divider output enable + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: DIVREN + description: PLL1 DIVR divider output enable + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/PLLCKSELR: description: RCC PLLs Clock Source Selection Register fields: - - name: PLLSRC - description: DIVMx and PLLs clock source selection - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: DIVM - description: Prescaler for PLL1 - bit_offset: 4 - bit_size: 6 - array: - len: 3 - stride: 8 + - name: PLLSRC + description: DIVMx and PLLs clock source selection + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: DIVM + description: Prescaler for PLL1 + bit_offset: 4 + bit_size: 6 + array: + len: 3 + stride: 8 fieldset/RSR: description: RCC Reset Status Register fields: - - name: RMVF - description: Remove reset flag - bit_offset: 16 - bit_size: 1 - - name: CPURSTF - description: CPU reset flag - bit_offset: 17 - bit_size: 1 - - name: D1RSTF - description: D1 domain power switch reset flag - bit_offset: 19 - bit_size: 1 - - name: D2RSTF - description: D2 domain power switch reset flag - bit_offset: 20 - bit_size: 1 - - name: BORRSTF - description: BOR reset flag - bit_offset: 21 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag (NRST) - bit_offset: 22 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 23 - bit_size: 1 - - name: SFTRSTF - description: System reset from CPU reset flag - bit_offset: 24 - bit_size: 1 - - name: IWDG1RSTF - description: Independent Watchdog reset flag - bit_offset: 26 - bit_size: 1 - - name: WWDG1RSTF - description: Window Watchdog reset flag - bit_offset: 28 - bit_size: 1 - - name: LPWRRSTF - description: Reset due to illegal D1 DStandby or CPU CStop flag - bit_offset: 30 - bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 16 + bit_size: 1 + - name: CPURSTF + description: CPU reset flag + bit_offset: 17 + bit_size: 1 + - name: D1RSTF + description: D1 domain power switch reset flag + bit_offset: 19 + bit_size: 1 + - name: D2RSTF + description: D2 domain power switch reset flag + bit_offset: 20 + bit_size: 1 + - name: BORRSTF + description: BOR reset flag + bit_offset: 21 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag (NRST) + bit_offset: 22 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 23 + bit_size: 1 + - name: SFTRSTF + description: System reset from CPU reset flag + bit_offset: 24 + bit_size: 1 + - name: IWDG1RSTF + description: Independent Watchdog reset flag + bit_offset: 26 + bit_size: 1 + - name: WWDG1RSTF + description: Window Watchdog reset flag + bit_offset: 28 + bit_size: 1 + - name: LPWRRSTF + description: Reset due to illegal D1 DStandby or CPU CStop flag + bit_offset: 30 + bit_size: 1 enum/ADCSEL: bit_size: 2 variants: - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: PER - description: PER selected as peripheral clock - value: 2 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: PER + description: PER selected as peripheral clock + value: 2 enum/CECSEL: bit_size: 2 variants: - - name: LSE - description: LSE selected as peripheral clock - value: 0 - - name: LSI - description: LSI selected as peripheral clock - value: 1 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 0 + - name: LSI + description: LSI selected as peripheral clock + value: 1 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 2 enum/CKPERSEL: bit_size: 2 variants: - - name: HSI - description: HSI selected as peripheral clock - value: 0 - - name: CSI - description: CSI selected as peripheral clock - value: 1 - - name: HSE - description: HSE selected as peripheral clock - value: 2 + - name: HSI + description: HSI selected as peripheral clock + value: 0 + - name: CSI + description: CSI selected as peripheral clock + value: 1 + - name: HSE + description: HSE selected as peripheral clock + value: 2 enum/DFSDMSEL: bit_size: 1 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as peripheral clock - value: 0 - - name: SYS - description: System clock selected as peripheral clock - value: 1 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as peripheral clock + value: 0 + - name: SYS + description: System clock selected as peripheral clock + value: 1 enum/DIVP: bit_size: 7 variants: - - name: Div1 - description: pll_p_ck = vco_ck - value: 0 - - name: Div2 - description: pll_p_ck = vco_ck / 2 - value: 1 - - name: Div4 - description: pll_p_ck = vco_ck / 4 - value: 3 - - name: Div6 - description: pll_p_ck = vco_ck / 6 - value: 5 - - name: Div8 - description: pll_p_ck = vco_ck / 8 - value: 7 - - name: Div10 - description: pll_p_ck = vco_ck / 10 - value: 9 - - name: Div12 - description: pll_p_ck = vco_ck / 12 - value: 11 - - name: Div14 - description: pll_p_ck = vco_ck / 14 - value: 13 - - name: Div16 - description: pll_p_ck = vco_ck / 16 - value: 15 - - name: Div18 - description: pll_p_ck = vco_ck / 18 - value: 17 - - name: Div20 - description: pll_p_ck = vco_ck / 20 - value: 19 - - name: Div22 - description: pll_p_ck = vco_ck / 22 - value: 21 - - name: Div24 - description: pll_p_ck = vco_ck / 24 - value: 23 - - name: Div26 - description: pll_p_ck = vco_ck / 26 - value: 25 - - name: Div28 - description: pll_p_ck = vco_ck / 28 - value: 27 - - name: Div30 - description: pll_p_ck = vco_ck / 30 - value: 29 - - name: Div32 - description: pll_p_ck = vco_ck / 32 - value: 31 - - name: Div34 - description: pll_p_ck = vco_ck / 34 - value: 33 - - name: Div36 - description: pll_p_ck = vco_ck / 36 - value: 35 - - name: Div38 - description: pll_p_ck = vco_ck / 38 - value: 37 - - name: Div40 - description: pll_p_ck = vco_ck / 40 - value: 39 - - name: Div42 - description: pll_p_ck = vco_ck / 42 - value: 41 - - name: Div44 - description: pll_p_ck = vco_ck / 44 - value: 43 - - name: Div46 - description: pll_p_ck = vco_ck / 46 - value: 45 - - name: Div48 - description: pll_p_ck = vco_ck / 48 - value: 47 - - name: Div50 - description: pll_p_ck = vco_ck / 50 - value: 49 - - name: Div52 - description: pll_p_ck = vco_ck / 52 - value: 51 - - name: Div54 - description: pll_p_ck = vco_ck / 54 - value: 53 - - name: Div56 - description: pll_p_ck = vco_ck / 56 - value: 55 - - name: Div58 - description: pll_p_ck = vco_ck / 58 - value: 57 - - name: Div60 - description: pll_p_ck = vco_ck / 60 - value: 59 - - name: Div62 - description: pll_p_ck = vco_ck / 62 - value: 61 - - name: Div64 - description: pll_p_ck = vco_ck / 64 - value: 63 - - name: Div66 - description: pll_p_ck = vco_ck / 66 - value: 65 - - name: Div68 - description: pll_p_ck = vco_ck / 68 - value: 67 - - name: Div70 - description: pll_p_ck = vco_ck / 70 - value: 69 - - name: Div72 - description: pll_p_ck = vco_ck / 72 - value: 71 - - name: Div74 - description: pll_p_ck = vco_ck / 74 - value: 73 - - name: Div76 - description: pll_p_ck = vco_ck / 76 - value: 75 - - name: Div78 - description: pll_p_ck = vco_ck / 78 - value: 77 - - name: Div80 - description: pll_p_ck = vco_ck / 80 - value: 79 - - name: Div82 - description: pll_p_ck = vco_ck / 82 - value: 81 - - name: Div84 - description: pll_p_ck = vco_ck / 84 - value: 83 - - name: Div86 - description: pll_p_ck = vco_ck / 86 - value: 85 - - name: Div88 - description: pll_p_ck = vco_ck / 88 - value: 87 - - name: Div90 - description: pll_p_ck = vco_ck / 90 - value: 89 - - name: Div92 - description: pll_p_ck = vco_ck / 92 - value: 91 - - name: Div94 - description: pll_p_ck = vco_ck / 94 - value: 93 - - name: Div96 - description: pll_p_ck = vco_ck / 96 - value: 95 - - name: Div98 - description: pll_p_ck = vco_ck / 98 - value: 97 - - name: Div100 - description: pll_p_ck = vco_ck / 100 - value: 99 - - name: Div102 - description: pll_p_ck = vco_ck / 102 - value: 101 - - name: Div104 - description: pll_p_ck = vco_ck / 104 - value: 103 - - name: Div106 - description: pll_p_ck = vco_ck / 106 - value: 105 - - name: Div108 - description: pll_p_ck = vco_ck / 108 - value: 107 - - name: Div110 - description: pll_p_ck = vco_ck / 110 - value: 109 - - name: Div112 - description: pll_p_ck = vco_ck / 112 - value: 111 - - name: Div114 - description: pll_p_ck = vco_ck / 114 - value: 113 - - name: Div116 - description: pll_p_ck = vco_ck / 116 - value: 115 - - name: Div118 - description: pll_p_ck = vco_ck / 118 - value: 117 - - name: Div120 - description: pll_p_ck = vco_ck / 120 - value: 119 - - name: Div122 - description: pll_p_ck = vco_ck / 122 - value: 121 - - name: Div124 - description: pll_p_ck = vco_ck / 124 - value: 123 - - name: Div126 - description: pll_p_ck = vco_ck / 126 - value: 125 - - name: Div128 - description: pll_p_ck = vco_ck / 128 - value: 127 + - name: Div1 + description: pll_p_ck = vco_ck + value: 0 + - name: Div2 + description: pll_p_ck = vco_ck / 2 + value: 1 + - name: Div4 + description: pll_p_ck = vco_ck / 4 + value: 3 + - name: Div6 + description: pll_p_ck = vco_ck / 6 + value: 5 + - name: Div8 + description: pll_p_ck = vco_ck / 8 + value: 7 + - name: Div10 + description: pll_p_ck = vco_ck / 10 + value: 9 + - name: Div12 + description: pll_p_ck = vco_ck / 12 + value: 11 + - name: Div14 + description: pll_p_ck = vco_ck / 14 + value: 13 + - name: Div16 + description: pll_p_ck = vco_ck / 16 + value: 15 + - name: Div18 + description: pll_p_ck = vco_ck / 18 + value: 17 + - name: Div20 + description: pll_p_ck = vco_ck / 20 + value: 19 + - name: Div22 + description: pll_p_ck = vco_ck / 22 + value: 21 + - name: Div24 + description: pll_p_ck = vco_ck / 24 + value: 23 + - name: Div26 + description: pll_p_ck = vco_ck / 26 + value: 25 + - name: Div28 + description: pll_p_ck = vco_ck / 28 + value: 27 + - name: Div30 + description: pll_p_ck = vco_ck / 30 + value: 29 + - name: Div32 + description: pll_p_ck = vco_ck / 32 + value: 31 + - name: Div34 + description: pll_p_ck = vco_ck / 34 + value: 33 + - name: Div36 + description: pll_p_ck = vco_ck / 36 + value: 35 + - name: Div38 + description: pll_p_ck = vco_ck / 38 + value: 37 + - name: Div40 + description: pll_p_ck = vco_ck / 40 + value: 39 + - name: Div42 + description: pll_p_ck = vco_ck / 42 + value: 41 + - name: Div44 + description: pll_p_ck = vco_ck / 44 + value: 43 + - name: Div46 + description: pll_p_ck = vco_ck / 46 + value: 45 + - name: Div48 + description: pll_p_ck = vco_ck / 48 + value: 47 + - name: Div50 + description: pll_p_ck = vco_ck / 50 + value: 49 + - name: Div52 + description: pll_p_ck = vco_ck / 52 + value: 51 + - name: Div54 + description: pll_p_ck = vco_ck / 54 + value: 53 + - name: Div56 + description: pll_p_ck = vco_ck / 56 + value: 55 + - name: Div58 + description: pll_p_ck = vco_ck / 58 + value: 57 + - name: Div60 + description: pll_p_ck = vco_ck / 60 + value: 59 + - name: Div62 + description: pll_p_ck = vco_ck / 62 + value: 61 + - name: Div64 + description: pll_p_ck = vco_ck / 64 + value: 63 + - name: Div66 + description: pll_p_ck = vco_ck / 66 + value: 65 + - name: Div68 + description: pll_p_ck = vco_ck / 68 + value: 67 + - name: Div70 + description: pll_p_ck = vco_ck / 70 + value: 69 + - name: Div72 + description: pll_p_ck = vco_ck / 72 + value: 71 + - name: Div74 + description: pll_p_ck = vco_ck / 74 + value: 73 + - name: Div76 + description: pll_p_ck = vco_ck / 76 + value: 75 + - name: Div78 + description: pll_p_ck = vco_ck / 78 + value: 77 + - name: Div80 + description: pll_p_ck = vco_ck / 80 + value: 79 + - name: Div82 + description: pll_p_ck = vco_ck / 82 + value: 81 + - name: Div84 + description: pll_p_ck = vco_ck / 84 + value: 83 + - name: Div86 + description: pll_p_ck = vco_ck / 86 + value: 85 + - name: Div88 + description: pll_p_ck = vco_ck / 88 + value: 87 + - name: Div90 + description: pll_p_ck = vco_ck / 90 + value: 89 + - name: Div92 + description: pll_p_ck = vco_ck / 92 + value: 91 + - name: Div94 + description: pll_p_ck = vco_ck / 94 + value: 93 + - name: Div96 + description: pll_p_ck = vco_ck / 96 + value: 95 + - name: Div98 + description: pll_p_ck = vco_ck / 98 + value: 97 + - name: Div100 + description: pll_p_ck = vco_ck / 100 + value: 99 + - name: Div102 + description: pll_p_ck = vco_ck / 102 + value: 101 + - name: Div104 + description: pll_p_ck = vco_ck / 104 + value: 103 + - name: Div106 + description: pll_p_ck = vco_ck / 106 + value: 105 + - name: Div108 + description: pll_p_ck = vco_ck / 108 + value: 107 + - name: Div110 + description: pll_p_ck = vco_ck / 110 + value: 109 + - name: Div112 + description: pll_p_ck = vco_ck / 112 + value: 111 + - name: Div114 + description: pll_p_ck = vco_ck / 114 + value: 113 + - name: Div116 + description: pll_p_ck = vco_ck / 116 + value: 115 + - name: Div118 + description: pll_p_ck = vco_ck / 118 + value: 117 + - name: Div120 + description: pll_p_ck = vco_ck / 120 + value: 119 + - name: Div122 + description: pll_p_ck = vco_ck / 122 + value: 121 + - name: Div124 + description: pll_p_ck = vco_ck / 124 + value: 123 + - name: Div126 + description: pll_p_ck = vco_ck / 126 + value: 125 + - name: Div128 + description: pll_p_ck = vco_ck / 128 + value: 127 enum/DPPRE: bit_size: 3 variants: - - name: Div1 - description: rcc_hclk not divided - value: 0 - - name: Div2 - description: rcc_hclk divided by 2 - value: 4 - - name: Div4 - description: rcc_hclk divided by 4 - value: 5 - - name: Div8 - description: rcc_hclk divided by 8 - value: 6 - - name: Div16 - description: rcc_hclk divided by 16 - value: 7 + - name: Div1 + description: rcc_hclk not divided + value: 0 + - name: Div2 + description: rcc_hclk divided by 2 + value: 4 + - name: Div4 + description: rcc_hclk divided by 4 + value: 5 + - name: Div8 + description: rcc_hclk divided by 8 + value: 6 + - name: Div16 + description: rcc_hclk divided by 16 + value: 7 enum/FDCANSEL: bit_size: 2 variants: - - name: HSE - description: HSE selected as peripheral clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 2 + - name: HSE + description: HSE selected as peripheral clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 2 enum/FMCSEL: bit_size: 2 variants: - - name: RCC_HCLK3 - description: rcc_hclk3 selected as peripheral clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL2_R - description: pll2_r selected as peripheral clock - value: 2 - - name: PER - description: PER selected as peripheral clock - value: 3 + - name: RCC_HCLK3 + description: rcc_hclk3 selected as peripheral clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL2_R + description: pll2_r selected as peripheral clock + value: 2 + - name: PER + description: PER selected as peripheral clock + value: 3 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: sys_ck not divided - value: 0 - - name: Div2 - description: sys_ck divided by 2 - value: 8 - - name: Div4 - description: sys_ck divided by 4 - value: 9 - - name: Div8 - description: sys_ck divided by 8 - value: 10 - - name: Div16 - description: sys_ck divided by 16 - value: 11 - - name: Div64 - description: sys_ck divided by 64 - value: 12 - - name: Div128 - description: sys_ck divided by 128 - value: 13 - - name: Div256 - description: sys_ck divided by 256 - value: 14 - - name: Div512 - description: sys_ck divided by 512 - value: 15 + - name: Div1 + description: sys_ck not divided + value: 0 + - name: Div2 + description: sys_ck divided by 2 + value: 8 + - name: Div4 + description: sys_ck divided by 4 + value: 9 + - name: Div8 + description: sys_ck divided by 8 + value: 10 + - name: Div16 + description: sys_ck divided by 16 + value: 11 + - name: Div64 + description: sys_ck divided by 64 + value: 12 + - name: Div128 + description: sys_ck divided by 128 + value: 13 + - name: Div256 + description: sys_ck divided by 256 + value: 14 + - name: Div512 + description: sys_ck divided by 512 + value: 15 enum/HRTIMSEL: bit_size: 1 variants: - - name: TIMY_KER - description: The HRTIM prescaler clock source is the same as other timers (rcc_timy_ker_ck) - value: 0 - - name: C_CK - description: The HRTIM prescaler clock source is the CPU clock (c_ck) - value: 1 + - name: TIMY_KER + description: The HRTIM prescaler clock source is the same as other timers (rcc_timy_ker_ck) + value: 0 + - name: C_CK + description: The HRTIM prescaler clock source is the CPU clock (c_ck) + value: 1 enum/HSIDIV: bit_size: 2 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 enum/I2C1235SEL: bit_size: 2 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 2 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 3 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 2 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 3 enum/I2C4SEL: bit_size: 2 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 1 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 2 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 3 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 1 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 2 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 3 enum/LPTIM1SEL: bit_size: 3 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: LSE - description: LSE selected as peripheral clock - value: 3 - - name: LSI - description: LSI selected as peripheral clock - value: 4 - - name: PER - description: PER selected as peripheral clock - value: 5 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 3 + - name: LSI + description: LSI selected as peripheral clock + value: 4 + - name: PER + description: PER selected as peripheral clock + value: 5 enum/LPTIM2SEL: bit_size: 3 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: LSE - description: LSE selected as peripheral clock - value: 3 - - name: LSI - description: LSI selected as peripheral clock - value: 4 - - name: PER - description: PER selected as peripheral clock - value: 5 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: LSE + description: LSE selected as peripheral clock + value: 3 + - name: LSI + description: LSI selected as peripheral clock + value: 4 + - name: PER + description: PER selected as peripheral clock + value: 5 enum/LPUARTSEL: bit_size: 3 variants: - - name: RCC_PCLK_D3 - description: rcc_pclk_d3 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK_D3 + description: rcc_pclk_d3 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/LSEDRV: bit_size: 2 variants: - - name: Lowest - description: Lowest LSE oscillator driving capability - value: 0 - - name: MediumLow - description: Medium low LSE oscillator driving capability - value: 1 - - name: MediumHigh - description: Medium high LSE oscillator driving capability - value: 2 - - name: Highest - description: Highest LSE oscillator driving capability - value: 3 + - name: Lowest + description: Lowest LSE oscillator driving capability + value: 0 + - name: MediumLow + description: Medium low LSE oscillator driving capability + value: 1 + - name: MediumHigh + description: Medium high LSE oscillator driving capability + value: 2 + - name: Highest + description: Highest LSE oscillator driving capability + value: 3 enum/MCO1: bit_size: 3 variants: - - name: HSI - description: HSI selected for micro-controller clock output - value: 0 - - name: LSE - description: LSE selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_Q - description: pll1_q selected for micro-controller clock output - value: 3 - - name: HSI48 - description: HSI48 selected for micro-controller clock output - value: 4 + - name: HSI + description: HSI selected for micro-controller clock output + value: 0 + - name: LSE + description: LSE selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_Q + description: pll1_q selected for micro-controller clock output + value: 3 + - name: HSI48 + description: HSI48 selected for micro-controller clock output + value: 4 enum/MCO2: bit_size: 3 variants: - - name: SYSCLK - description: System clock selected for micro-controller clock output - value: 0 - - name: PLL2_P - description: pll2_p selected for micro-controller clock output - value: 1 - - name: HSE - description: HSE selected for micro-controller clock output - value: 2 - - name: PLL1_P - description: pll1_p selected for micro-controller clock output - value: 3 - - name: CSI - description: CSI selected for micro-controller clock output - value: 4 - - name: LSI - description: LSI selected for micro-controller clock output - value: 5 + - name: SYSCLK + description: System clock selected for micro-controller clock output + value: 0 + - name: PLL2_P + description: pll2_p selected for micro-controller clock output + value: 1 + - name: HSE + description: HSE selected for micro-controller clock output + value: 2 + - name: PLL1_P + description: pll1_p selected for micro-controller clock output + value: 3 + - name: CSI + description: CSI selected for micro-controller clock output + value: 4 + - name: LSI + description: LSI selected for micro-controller clock output + value: 5 enum/PLLRGE: bit_size: 2 variants: - - name: Range1 - description: Frequency is between 1 and 2 MHz - value: 0 - - name: Range2 - description: Frequency is between 2 and 4 MHz - value: 1 - - name: Range4 - description: Frequency is between 4 and 8 MHz - value: 2 - - name: Range8 - description: Frequency is between 8 and 16 MHz - value: 3 + - name: Range1 + description: Frequency is between 1 and 2 MHz + value: 0 + - name: Range2 + description: Frequency is between 2 and 4 MHz + value: 1 + - name: Range4 + description: Frequency is between 4 and 8 MHz + value: 2 + - name: Range8 + description: Frequency is between 8 and 16 MHz + value: 3 enum/PLLSRC: bit_size: 2 variants: - - name: HSI - description: HSI selected as PLL clock - value: 0 - - name: CSI - description: CSI selected as PLL clock - value: 1 - - name: HSE - description: HSE selected as PLL clock - value: 2 - - name: None - description: No clock sent to DIVMx dividers and PLLs - value: 3 + - name: HSI + description: HSI selected as PLL clock + value: 0 + - name: CSI + description: CSI selected as PLL clock + value: 1 + - name: HSE + description: HSE selected as PLL clock + value: 2 + - name: None + description: No clock sent to DIVMx dividers and PLLs + value: 3 enum/PLLVCOSEL: bit_size: 1 variants: - - name: WideVCO - description: VCO frequency range 192 to 836 MHz - value: 0 - - name: MediumVCO - description: VCO frequency range 150 to 420 MHz - value: 1 + - name: WideVCO + description: VCO frequency range 192 to 836 MHz + value: 0 + - name: MediumVCO + description: VCO frequency range 150 to 420 MHz + value: 1 enum/RNGSEL: bit_size: 2 variants: - - name: HSI48 - description: HSI48 selected as peripheral clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: LSE - description: LSE selected as peripheral clock - value: 2 - - name: LSI - description: LSI selected as peripheral clock - value: 3 + - name: HSI48 + description: HSI48 selected as peripheral clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: LSE + description: LSE selected as peripheral clock + value: 2 + - name: LSI + description: LSI selected as peripheral clock + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/SAIASEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_P - description: pll3_p selected as peripheral clock - value: 2 - - name: I2S_CKIN - description: i2s_ckin selected as peripheral clock - value: 3 - - name: PER - description: PER selected as peripheral clock - value: 4 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_P + description: pll3_p selected as peripheral clock + value: 2 + - name: I2S_CKIN + description: i2s_ckin selected as peripheral clock + value: 3 + - name: PER + description: PER selected as peripheral clock + value: 4 enum/SAISEL: bit_size: 3 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_P - description: pll2_p selected as peripheral clock - value: 1 - - name: PLL3_P - description: pll3_p selected as peripheral clock - value: 2 - - name: I2S_CKIN - description: I2S_CKIN selected as peripheral clock - value: 3 - - name: PER - description: PER selected as peripheral clock - value: 4 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_P + description: pll2_p selected as peripheral clock + value: 1 + - name: PLL3_P + description: pll3_p selected as peripheral clock + value: 2 + - name: I2S_CKIN + description: I2S_CKIN selected as peripheral clock + value: 3 + - name: PER + description: PER selected as peripheral clock + value: 4 enum/SDMMCSEL: bit_size: 1 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_R - description: pll2_r selected as peripheral clock - value: 1 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_R + description: pll2_r selected as peripheral clock + value: 1 enum/SPDIFRXSEL: bit_size: 2 variants: - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 0 - - name: PLL2_R - description: pll2_r selected as peripheral clock - value: 1 - - name: PLL3_R - description: pll3_r selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 0 + - name: PLL2_R + description: pll2_r selected as peripheral clock + value: 1 + - name: PLL3_R + description: pll3_r selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 enum/SPI45SEL: bit_size: 3 variants: - - name: APB - description: APB clock selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: APB + description: APB clock selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/SPI6SEL: bit_size: 3 variants: - - name: RCC_PCLK4 - description: rcc_pclk4 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: HSE - description: HSE selected as peripheral clock - value: 5 + - name: RCC_PCLK4 + description: rcc_pclk4 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: HSE + description: HSE selected as peripheral clock + value: 5 enum/STOPWUCK: bit_size: 1 variants: - - name: HSI - description: HSI selected as wake up clock from system Stop - value: 0 - - name: CSI - description: CSI selected as wake up clock from system Stop - value: 1 + - name: HSI + description: HSI selected as wake up clock from system Stop + value: 0 + - name: CSI + description: CSI selected as wake up clock from system Stop + value: 1 enum/SW: bit_size: 3 variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: CSI - description: CSI selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL1 - description: PLL1 selected as system clock - value: 3 + - name: HSI + description: HSI selected as system clock + value: 0 + - name: CSI + description: CSI selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL1 + description: PLL1 selected as system clock + value: 3 enum/SWPSEL: bit_size: 1 variants: - - name: PCLK - description: pclk selected as peripheral clock - value: 0 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 1 + - name: PCLK + description: pclk selected as peripheral clock + value: 0 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 1 enum/SWS: bit_size: 3 variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: CSI - description: CSI oscillator used as system clock - value: 1 - - name: HSE - description: HSE oscillator used as system clock - value: 2 - - name: PLL1 - description: PLL1 used as system clock - value: 3 + - name: HSI + description: HSI oscillator used as system clock + value: 0 + - name: CSI + description: CSI oscillator used as system clock + value: 1 + - name: HSE + description: HSE oscillator used as system clock + value: 2 + - name: PLL1 + description: PLL1 used as system clock + value: 3 enum/TIMPRE: bit_size: 1 variants: - - name: DefaultX2 - description: Timer kernel clock equal to 2x pclk by default - value: 0 - - name: DefaultX4 - description: Timer kernel clock equal to 4x pclk by default - value: 1 + - name: DefaultX2 + description: Timer kernel clock equal to 2x pclk by default + value: 0 + - name: DefaultX4 + description: Timer kernel clock equal to 4x pclk by default + value: 1 enum/USART16910SEL: bit_size: 3 variants: - - name: RCC_PCLK2 - description: rcc_pclk2 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK2 + description: rcc_pclk2 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USART234578SEL: bit_size: 3 variants: - - name: RCC_PCLK1 - description: rcc_pclk1 selected as peripheral clock - value: 0 - - name: PLL2_Q - description: pll2_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI_KER - description: hsi_ker selected as peripheral clock - value: 3 - - name: CSI_KER - description: csi_ker selected as peripheral clock - value: 4 - - name: LSE - description: LSE selected as peripheral clock - value: 5 + - name: RCC_PCLK1 + description: rcc_pclk1 selected as peripheral clock + value: 0 + - name: PLL2_Q + description: pll2_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI_KER + description: hsi_ker selected as peripheral clock + value: 3 + - name: CSI_KER + description: csi_ker selected as peripheral clock + value: 4 + - name: LSE + description: LSE selected as peripheral clock + value: 5 enum/USBSEL: bit_size: 2 variants: - - name: DISABLE - description: Disable the kernel clock - value: 0 - - name: PLL1_Q - description: pll1_q selected as peripheral clock - value: 1 - - name: PLL3_Q - description: pll3_q selected as peripheral clock - value: 2 - - name: HSI48 - description: HSI48 selected as peripheral clock - value: 3 + - name: DISABLE + description: Disable the kernel clock + value: 0 + - name: PLL1_Q + description: pll1_q selected as peripheral clock + value: 1 + - name: PLL3_Q + description: pll3_q selected as peripheral clock + value: 2 + - name: HSI48 + description: HSI48 selected as peripheral clock + value: 3 diff --git a/data/registers/rcc_l0.yaml b/data/registers/rcc_l0.yaml index f8dbf82..ba1202e 100644 --- a/data/registers/rcc_l0.yaml +++ b/data/registers/rcc_l0.yaml @@ -1,1261 +1,1260 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CRRCR - description: Clock recovery RC register - byte_offset: 8 - fieldset: CRRCR - - name: CFGR - description: Clock configuration register - byte_offset: 12 - fieldset: CFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 16 - access: Read - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 20 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 24 - access: Read - fieldset: CICR - - name: GPIORSTR - description: GPIO reset register - byte_offset: 28 - fieldset: GPIORSTR - - name: AHBRSTR - description: AHB peripheral reset register - byte_offset: 32 - fieldset: AHBRSTR - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 36 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register - byte_offset: 40 - fieldset: APB1RSTR - - name: GPIOENR - description: GPIO clock enable register - byte_offset: 44 - fieldset: GPIOENR - - name: AHBENR - description: AHB peripheral clock enable register - byte_offset: 48 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 52 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register - byte_offset: 56 - fieldset: APB1ENR - - name: GPIOSMEN - description: GPIO clock enable in sleep mode register - byte_offset: 60 - fieldset: GPIOSMEN - - name: AHBSMENR - description: AHB peripheral clock enable in sleep mode register - byte_offset: 64 - fieldset: AHBSMENR - - name: APB2SMENR - description: APB2 peripheral clock enable in sleep mode register - byte_offset: 68 - fieldset: APB2SMENR - - name: APB1SMENR - description: APB1 peripheral clock enable in sleep mode register - byte_offset: 72 - fieldset: APB1SMENR - - name: CCIPR - description: Clock configuration register - byte_offset: 76 - fieldset: CCIPR - - name: CSR - description: Control and status register - byte_offset: 80 - fieldset: CSR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CRRCR + description: Clock recovery RC register + byte_offset: 8 + fieldset: CRRCR + - name: CFGR + description: Clock configuration register + byte_offset: 12 + fieldset: CFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 16 + access: Read + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 20 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 24 + access: Read + fieldset: CICR + - name: GPIORSTR + description: GPIO reset register + byte_offset: 28 + fieldset: GPIORSTR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 32 + fieldset: AHBRSTR + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 36 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register + byte_offset: 40 + fieldset: APB1RSTR + - name: GPIOENR + description: GPIO clock enable register + byte_offset: 44 + fieldset: GPIOENR + - name: AHBENR + description: AHB peripheral clock enable register + byte_offset: 48 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 52 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register + byte_offset: 56 + fieldset: APB1ENR + - name: GPIOSMEN + description: GPIO clock enable in sleep mode register + byte_offset: 60 + fieldset: GPIOSMEN + - name: AHBSMENR + description: AHB peripheral clock enable in sleep mode register + byte_offset: 64 + fieldset: AHBSMENR + - name: APB2SMENR + description: APB2 peripheral clock enable in sleep mode register + byte_offset: 68 + fieldset: APB2SMENR + - name: APB1SMENR + description: APB1 peripheral clock enable in sleep mode register + byte_offset: 72 + fieldset: APB1SMENR + - name: CCIPR + description: Clock configuration register + byte_offset: 76 + fieldset: CCIPR + - name: CSR + description: Control and status register + byte_offset: 80 + fieldset: CSR fieldset/AHBENR: description: AHB peripheral clock enable register fields: - - name: DMA1EN - description: DMA clock enable - bit_offset: 0 - bit_size: 1 - - name: MIFEN - description: NVM interface clock enable - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: TOUCHEN - description: Touch Sensing clock enable - bit_offset: 16 - bit_size: 1 - - name: RNGEN - description: Random Number Generator clock enable - bit_offset: 20 - bit_size: 1 - - name: CRYPEN - description: Crypto clock enable - bit_offset: 24 - bit_size: 1 + - name: DMA1EN + description: DMA clock enable + bit_offset: 0 + bit_size: 1 + - name: MIFEN + description: NVM interface clock enable + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: TOUCHEN + description: Touch Sensing clock enable + bit_offset: 16 + bit_size: 1 + - name: RNGEN + description: Random Number Generator clock enable + bit_offset: 20 + bit_size: 1 + - name: CRYPEN + description: Crypto clock enable + bit_offset: 24 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral reset register fields: - - name: DMA1RST - description: DMA reset - bit_offset: 0 - bit_size: 1 - - name: MIFRST - description: Memory interface reset - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: Test integration module reset - bit_offset: 12 - bit_size: 1 - - name: TOUCHRST - description: Touch Sensing reset - bit_offset: 16 - bit_size: 1 - - name: RNGRST - description: Random Number Generator module reset - bit_offset: 20 - bit_size: 1 - - name: CRYPRST - description: Crypto module reset - bit_offset: 24 - bit_size: 1 + - name: DMA1RST + description: DMA reset + bit_offset: 0 + bit_size: 1 + - name: MIFRST + description: Memory interface reset + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: Test integration module reset + bit_offset: 12 + bit_size: 1 + - name: TOUCHRST + description: Touch Sensing reset + bit_offset: 16 + bit_size: 1 + - name: RNGRST + description: Random Number Generator module reset + bit_offset: 20 + bit_size: 1 + - name: CRYPRST + description: Crypto module reset + bit_offset: 24 + bit_size: 1 fieldset/AHBSMENR: description: AHB peripheral clock enable in sleep mode register fields: - - name: DMA1SMEN - description: DMA clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: MIFSMEN - description: NVM interface clock enable during sleep mode - bit_offset: 8 - bit_size: 1 - - name: SRAMSMEN - description: SRAM interface clock enable during sleep mode - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CRC clock enable during sleep mode - bit_offset: 12 - bit_size: 1 - - name: TOUCHSMEN - description: Touch Sensing clock enable during sleep mode - bit_offset: 16 - bit_size: 1 - - name: RNGSMEN - description: Random Number Generator clock enable during sleep mode - bit_offset: 20 - bit_size: 1 - - name: CRYPSMEN - description: Crypto clock enable during sleep mode - bit_offset: 24 - bit_size: 1 + - name: DMA1SMEN + description: DMA clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: MIFSMEN + description: NVM interface clock enable during sleep mode + bit_offset: 8 + bit_size: 1 + - name: SRAMSMEN + description: SRAM interface clock enable during sleep mode + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CRC clock enable during sleep mode + bit_offset: 12 + bit_size: 1 + - name: TOUCHSMEN + description: Touch Sensing clock enable during sleep mode + bit_offset: 16 + bit_size: 1 + - name: RNGSMEN + description: Random Number Generator clock enable during sleep mode + bit_offset: 20 + bit_size: 1 + - name: CRYPSMEN + description: Crypto clock enable during sleep mode + bit_offset: 24 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register fields: - - name: TIM2EN - description: Timer2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enbale - bit_offset: 1 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: UART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: LPUART1EN - description: LPUART1 clock enable - bit_offset: 18 - bit_size: 1 - - name: USART4EN - description: USART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: USART5EN - description: USART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB clock enable - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: Clock recovery system clock enable - bit_offset: 27 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 30 - bit_size: 1 - - name: LPTIM1EN - description: Low power timer clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: Timer2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enbale + bit_offset: 1 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: UART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: LPUART1EN + description: LPUART1 clock enable + bit_offset: 18 + bit_size: 1 + - name: USART4EN + description: USART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: USART5EN + description: USART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB clock enable + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: Clock recovery system clock enable + bit_offset: 27 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 30 + bit_size: 1 + - name: LPTIM1EN + description: Low power timer clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM6RST - description: Timer 6 reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: WWDGRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: LPUART1RST - description: LPUART1 reset - bit_offset: 18 - bit_size: 1 - - name: USART4RST - description: USART4 reset - bit_offset: 19 - bit_size: 1 - - name: USART5RST - description: USART5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USB reset - bit_offset: 23 - bit_size: 1 - - name: CRSRST - description: Clock recovery system reset - bit_offset: 27 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 30 - bit_size: 1 - - name: LPTIM1RST - description: Low power timer reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM6RST + description: Timer 6 reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: WWDGRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: LPUART1RST + description: LPUART1 reset + bit_offset: 18 + bit_size: 1 + - name: USART4RST + description: USART4 reset + bit_offset: 19 + bit_size: 1 + - name: USART5RST + description: USART5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 23 + bit_size: 1 + - name: CRSRST + description: Clock recovery system reset + bit_offset: 27 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 30 + bit_size: 1 + - name: LPTIM1RST + description: Low power timer reset + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR: description: APB1 peripheral clock enable in sleep mode register fields: - - name: TIM2SMEN - description: Timer2 clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3SMEN - description: Timer 3 clock enable during sleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM6SMEN - description: Timer 6 clock enable during sleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7SMEN - description: Timer 7 clock enable during sleep mode - bit_offset: 5 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clock enable during sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clock enable during sleep mode - bit_offset: 14 - bit_size: 1 - - name: USART2SMEN - description: UART2 clock enable during sleep mode - bit_offset: 17 - bit_size: 1 - - name: LPUART1SMEN - description: LPUART1 clock enable during sleep mode - bit_offset: 18 - bit_size: 1 - - name: USART4SMEN - description: USART4 clock enabe during sleep mode - bit_offset: 19 - bit_size: 1 - - name: USART5SMEN - description: USART5 clock enable during sleep mode - bit_offset: 20 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clock enable during sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clock enable during sleep mode - bit_offset: 22 - bit_size: 1 - - name: USBSMEN - description: USB clock enable during sleep mode - bit_offset: 23 - bit_size: 1 - - name: CRSSMEN - description: Clock recovery system clock enable during sleep mode - bit_offset: 27 - bit_size: 1 - - name: PWRSMEN - description: Power interface clock enable during sleep mode - bit_offset: 28 - bit_size: 1 - - name: DACSMEN - description: DAC interface clock enable during sleep mode - bit_offset: 29 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clock enable during sleep mode - bit_offset: 30 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer clock enable during sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: Timer2 clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: Timer 3 clock enable during sleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM6SMEN + description: Timer 6 clock enable during sleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7SMEN + description: Timer 7 clock enable during sleep mode + bit_offset: 5 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clock enable during sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clock enable during sleep mode + bit_offset: 14 + bit_size: 1 + - name: USART2SMEN + description: UART2 clock enable during sleep mode + bit_offset: 17 + bit_size: 1 + - name: LPUART1SMEN + description: LPUART1 clock enable during sleep mode + bit_offset: 18 + bit_size: 1 + - name: USART4SMEN + description: USART4 clock enabe during sleep mode + bit_offset: 19 + bit_size: 1 + - name: USART5SMEN + description: USART5 clock enable during sleep mode + bit_offset: 20 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clock enable during sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clock enable during sleep mode + bit_offset: 22 + bit_size: 1 + - name: USBSMEN + description: USB clock enable during sleep mode + bit_offset: 23 + bit_size: 1 + - name: CRSSMEN + description: Clock recovery system clock enable during sleep mode + bit_offset: 27 + bit_size: 1 + - name: PWRSMEN + description: Power interface clock enable during sleep mode + bit_offset: 28 + bit_size: 1 + - name: DACSMEN + description: DAC interface clock enable during sleep mode + bit_offset: 29 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clock enable during sleep mode + bit_offset: 30 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer clock enable during sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: SYSCFGEN - description: System configuration controller clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM21EN - description: TIM21 timer clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM22EN - description: TIM22 timer clock enable - bit_offset: 5 - bit_size: 1 - - name: FWEN - description: Firewall clock enable - bit_offset: 7 - bit_size: 1 - - name: ADCEN - description: ADC clock enable - bit_offset: 9 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 - - name: DBGEN - description: DBG clock enable - bit_offset: 22 - bit_size: 1 + - name: SYSCFGEN + description: System configuration controller clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM21EN + description: TIM21 timer clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM22EN + description: TIM22 timer clock enable + bit_offset: 5 + bit_size: 1 + - name: FWEN + description: Firewall clock enable + bit_offset: 7 + bit_size: 1 + - name: ADCEN + description: ADC clock enable + bit_offset: 9 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 + - name: DBGEN + description: DBG clock enable + bit_offset: 22 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: SYSCFGRST - description: System configuration controller reset - bit_offset: 0 - bit_size: 1 - - name: TIM21RST - description: TIM21 timer reset - bit_offset: 2 - bit_size: 1 - - name: TIM22RST - description: TIM22 timer reset - bit_offset: 5 - bit_size: 1 - - name: ADCRST - description: ADC interface reset - bit_offset: 9 - bit_size: 1 - - name: SPI1RST - description: SPI 1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: DBGRST - description: DBG reset - bit_offset: 22 - bit_size: 1 + - name: SYSCFGRST + description: System configuration controller reset + bit_offset: 0 + bit_size: 1 + - name: TIM21RST + description: TIM21 timer reset + bit_offset: 2 + bit_size: 1 + - name: TIM22RST + description: TIM22 timer reset + bit_offset: 5 + bit_size: 1 + - name: ADCRST + description: ADC interface reset + bit_offset: 9 + bit_size: 1 + - name: SPI1RST + description: SPI 1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: DBGRST + description: DBG reset + bit_offset: 22 + bit_size: 1 fieldset/APB2SMENR: description: APB2 peripheral clock enable in sleep mode register fields: - - name: SYSCFGSMEN - description: System configuration controller clock enable during sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM21SMEN - description: TIM21 timer clock enable during sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM22SMEN - description: TIM22 timer clock enable during sleep mode - bit_offset: 5 - bit_size: 1 - - name: ADCSMEN - description: ADC clock enable during sleep mode - bit_offset: 9 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clock enable during sleep mode - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1 clock enable during sleep mode - bit_offset: 14 - bit_size: 1 - - name: DBGSMEN - description: DBG clock enable during sleep mode - bit_offset: 22 - bit_size: 1 + - name: SYSCFGSMEN + description: System configuration controller clock enable during sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM21SMEN + description: TIM21 timer clock enable during sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM22SMEN + description: TIM22 timer clock enable during sleep mode + bit_offset: 5 + bit_size: 1 + - name: ADCSMEN + description: ADC clock enable during sleep mode + bit_offset: 9 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clock enable during sleep mode + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1 clock enable during sleep mode + bit_offset: 14 + bit_size: 1 + - name: DBGSMEN + description: DBG clock enable during sleep mode + bit_offset: 22 + bit_size: 1 fieldset/CCIPR: description: Clock configuration register fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - enum: UARTSEL - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - enum: UARTSEL - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - enum: UARTSEL - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - enum: ICSEL - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - enum: ICSEL - - name: LPTIM1SEL - description: Low Power Timer clock source selection - bit_offset: 18 - bit_size: 2 - enum: LPTIMSEL - - name: HSI48MSEL - description: 48 MHz HSI48 clock source selection - bit_offset: 26 - bit_size: 1 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + enum: UARTSEL + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + enum: UARTSEL + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + enum: UARTSEL + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + enum: ICSEL + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + enum: ICSEL + - name: LPTIM1SEL + description: Low Power Timer clock source selection + bit_offset: 18 + bit_size: 2 + enum: LPTIMSEL + - name: HSI48MSEL + description: 48 MHz HSI48 clock source selection + bit_offset: 26 + bit_size: 1 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SW - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: STOPWUCK - description: Wake-up from stop clock selection - bit_offset: 15 - bit_size: 1 - enum: STOPWUCK - - name: PLLSRC - description: PLL entry clock source - bit_offset: 16 - bit_size: 1 - enum: PLLSRC - - name: PLLMUL - description: PLL multiplication factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: PLLDIV - description: PLL output division - bit_offset: 22 - bit_size: 2 - enum: PLLDIV - - name: MCOSEL - description: Microcontroller clock output selection - bit_offset: 24 - bit_size: 3 - enum: MCOSEL - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SW + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: STOPWUCK + description: Wake-up from stop clock selection + bit_offset: 15 + bit_size: 1 + enum: STOPWUCK + - name: PLLSRC + description: PLL entry clock source + bit_offset: 16 + bit_size: 1 + enum: PLLSRC + - name: PLLMUL + description: PLL multiplication factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: PLLDIV + description: PLL output division + bit_offset: 22 + bit_size: 2 + enum: PLLDIV + - name: MCOSEL + description: Microcontroller clock output selection + bit_offset: 24 + bit_size: 3 + enum: MCOSEL + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready Interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready Interrupt clear - bit_offset: 1 - bit_size: 1 - - name: HSI16RDYC - description: HSI16 ready Interrupt clear - bit_offset: 2 - bit_size: 1 - - name: HSERDYC - description: HSE ready Interrupt clear - bit_offset: 3 - bit_size: 1 - - name: PLLRDYC - description: PLL ready Interrupt clear - bit_offset: 4 - bit_size: 1 - - name: MSIRDYC - description: MSI ready Interrupt clear - bit_offset: 5 - bit_size: 1 - - name: HSI48RDYC - description: HSI48 ready Interrupt clear - bit_offset: 6 - bit_size: 1 - - name: CSSLSEC - description: LSE Clock Security System Interrupt clear - bit_offset: 7 - bit_size: 1 - - name: CSSHSEC - description: Clock Security System Interrupt clear - bit_offset: 8 - bit_size: 1 + - name: LSIRDYC + description: LSI ready Interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready Interrupt clear + bit_offset: 1 + bit_size: 1 + - name: HSI16RDYC + description: HSI16 ready Interrupt clear + bit_offset: 2 + bit_size: 1 + - name: HSERDYC + description: HSE ready Interrupt clear + bit_offset: 3 + bit_size: 1 + - name: PLLRDYC + description: PLL ready Interrupt clear + bit_offset: 4 + bit_size: 1 + - name: MSIRDYC + description: MSI ready Interrupt clear + bit_offset: 5 + bit_size: 1 + - name: HSI48RDYC + description: HSI48 ready Interrupt clear + bit_offset: 6 + bit_size: 1 + - name: CSSLSEC + description: LSE Clock Security System Interrupt clear + bit_offset: 7 + bit_size: 1 + - name: CSSHSEC + description: Clock Security System Interrupt clear + bit_offset: 8 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSI16RDYIE - description: HSI16 ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: HSI48RDYIE - description: HSI48 ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: CSSLSE - description: LSE CSS interrupt flag - bit_offset: 7 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSI16RDYIE + description: HSI16 ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: HSI48RDYIE + description: HSI48 ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: CSSLSE + description: LSE CSS interrupt flag + bit_offset: 7 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSI16RDYF - description: HSI16 ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: HSI48RDYF - description: HSI48 ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: CSSLSEF - description: LSE Clock Security System Interrupt flag - bit_offset: 7 - bit_size: 1 - - name: CSSHSEF - description: Clock Security System Interrupt flag - bit_offset: 8 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSI16RDYF + description: HSI16 ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: HSI48RDYF + description: HSI48 ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: CSSLSEF + description: LSE Clock Security System Interrupt flag + bit_offset: 7 + bit_size: 1 + - name: CSSHSEF + description: Clock Security System Interrupt flag + bit_offset: 8 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSI16ON - description: 16 MHz high-speed internal clock enable - bit_offset: 0 - bit_size: 1 - - name: HSI16KERON - description: High-speed internal clock enable bit for some IP kernels - bit_offset: 1 - bit_size: 1 - - name: HSI16RDYF - description: Internal high-speed clock ready flag - bit_offset: 2 - bit_size: 1 - - name: HSI16DIVEN - description: HSI16DIVEN - bit_offset: 3 - bit_size: 1 - - name: HSI16DIVF - description: HSI16DIVF - bit_offset: 4 - bit_size: 1 - - name: HSI16OUTEN - description: 16 MHz high-speed internal clock output enable - bit_offset: 5 - bit_size: 1 - - name: MSION - description: MSI clock enable - bit_offset: 8 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag - bit_offset: 9 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: CSSHSEON - description: Clock security system on HSE enable - bit_offset: 19 - bit_size: 1 - - name: RTCPRE - description: TC/LCD prescaler - bit_offset: 20 - bit_size: 2 - enum: RTCPRE - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: HSI16ON + description: 16 MHz high-speed internal clock enable + bit_offset: 0 + bit_size: 1 + - name: HSI16KERON + description: High-speed internal clock enable bit for some IP kernels + bit_offset: 1 + bit_size: 1 + - name: HSI16RDYF + description: Internal high-speed clock ready flag + bit_offset: 2 + bit_size: 1 + - name: HSI16DIVEN + description: HSI16DIVEN + bit_offset: 3 + bit_size: 1 + - name: HSI16DIVF + description: HSI16DIVF + bit_offset: 4 + bit_size: 1 + - name: HSI16OUTEN + description: 16 MHz high-speed internal clock output enable + bit_offset: 5 + bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 8 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag + bit_offset: 9 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: CSSHSEON + description: Clock security system on HSE enable + bit_offset: 19 + bit_size: 1 + - name: RTCPRE + description: TC/LCD prescaler + bit_offset: 20 + bit_size: 2 + enum: RTCPRE + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CRRCR: description: Clock recovery RC register fields: - - name: HSI48ON - description: 48MHz HSI clock enable - bit_offset: 0 - bit_size: 1 - - name: HSI48RDY - description: 48MHz HSI clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSI48DIV6EN - description: 48 MHz HSI clock divided by 6 output enable - bit_offset: 2 - bit_size: 1 - - name: HSI48CAL - description: 48 MHz HSI clock calibration - bit_offset: 8 - bit_size: 8 + - name: HSI48ON + description: 48MHz HSI clock enable + bit_offset: 0 + bit_size: 1 + - name: HSI48RDY + description: 48MHz HSI clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSI48DIV6EN + description: 48 MHz HSI clock divided by 6 output enable + bit_offset: 2 + bit_size: 1 + - name: HSI48CAL + description: 48 MHz HSI clock calibration + bit_offset: 8 + bit_size: 8 fieldset/CSR: description: Control and status register fields: - - name: LSION - description: Internal low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEON - description: External low-speed oscillator enable - bit_offset: 8 - bit_size: 1 - - name: LSERDY - description: External low-speed oscillator ready - bit_offset: 9 - bit_size: 1 - - name: LSEBYP - description: External low-speed oscillator bypass - bit_offset: 10 - bit_size: 1 - - name: LSEDRV - description: LSEDRV - bit_offset: 11 - bit_size: 2 - enum: LSEDRV - - name: CSSLSEON - description: CSSLSEON - bit_offset: 13 - bit_size: 1 - - name: CSSLSED - description: CSS on LSE failure detection flag - bit_offset: 14 - bit_size: 1 - - name: RTCSEL - description: RTC and LCD clock source selection - bit_offset: 16 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 18 - bit_size: 1 - - name: RTCRST - description: RTC software reset - bit_offset: 19 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: FWRSTF - description: Firewall reset flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: OBLRSTF - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEON + description: External low-speed oscillator enable + bit_offset: 8 + bit_size: 1 + - name: LSERDY + description: External low-speed oscillator ready + bit_offset: 9 + bit_size: 1 + - name: LSEBYP + description: External low-speed oscillator bypass + bit_offset: 10 + bit_size: 1 + - name: LSEDRV + description: LSEDRV + bit_offset: 11 + bit_size: 2 + enum: LSEDRV + - name: CSSLSEON + description: CSSLSEON + bit_offset: 13 + bit_size: 1 + - name: CSSLSED + description: CSS on LSE failure detection flag + bit_offset: 14 + bit_size: 1 + - name: RTCSEL + description: RTC and LCD clock source selection + bit_offset: 16 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 18 + bit_size: 1 + - name: RTCRST + description: RTC software reset + bit_offset: 19 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: FWRSTF + description: Firewall reset flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: OBLRSTF + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/GPIOENR: description: GPIO clock enable register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port A clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: I/O port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOHEN - description: I/O port H clock enable - bit_offset: 7 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port A clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: I/O port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOHEN + description: I/O port H clock enable + bit_offset: 7 + bit_size: 1 fieldset/GPIORSTR: description: GPIO reset register fields: - - name: GPIOARST - description: I/O port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: I/O port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: I/O port A reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: I/O port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: I/O port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOHRST - description: I/O port H reset - bit_offset: 7 - bit_size: 1 + - name: GPIOARST + description: I/O port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: I/O port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: I/O port A reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: I/O port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: I/O port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOHRST + description: I/O port H reset + bit_offset: 7 + bit_size: 1 fieldset/GPIOSMEN: description: GPIO clock enable in sleep mode register fields: - - name: GPIOASMEN - description: Port A clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: Port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: Port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: Port D clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: Port E clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOHSMEN - description: Port H clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 + - name: GPIOASMEN + description: Port A clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: Port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: Port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: Port D clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: Port E clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOHSMEN + description: Port H clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: HSI16CAL - description: nternal high speed clock calibration - bit_offset: 0 - bit_size: 8 - - name: HSI16TRIM - description: High speed internal clock trimming - bit_offset: 8 - bit_size: 5 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 13 - bit_size: 3 - enum: MSIRANGE - - name: MSICAL - description: MSI clock calibration - bit_offset: 16 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 24 - bit_size: 8 + - name: HSI16CAL + description: nternal high speed clock calibration + bit_offset: 0 + bit_size: 8 + - name: HSI16TRIM + description: High speed internal clock trimming + bit_offset: 8 + bit_size: 5 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 13 + bit_size: 3 + enum: MSIRANGE + - name: MSICAL + description: MSI clock calibration + bit_offset: 16 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 24 + bit_size: 8 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: system clock not divided - value: 0 - - name: Div2 - description: system clock divided by 2 - value: 8 - - name: Div4 - description: system clock divided by 4 - value: 9 - - name: Div8 - description: system clock divided by 8 - value: 10 - - name: Div16 - description: system clock divided by 16 - value: 11 - - name: Div64 - description: system clock divided by 64 - value: 12 - - name: Div128 - description: system clock divided by 128 - value: 13 - - name: Div256 - description: system clock divided by 256 - value: 14 - - name: Div512 - description: system clock divided by 512 - value: 15 + - name: Div1 + description: system clock not divided + value: 0 + - name: Div2 + description: system clock divided by 2 + value: 8 + - name: Div4 + description: system clock divided by 4 + value: 9 + - name: Div8 + description: system clock divided by 8 + value: 10 + - name: Div16 + description: system clock divided by 16 + value: 11 + - name: Div64 + description: system clock divided by 64 + value: 12 + - name: Div128 + description: system clock divided by 128 + value: 13 + - name: Div256 + description: system clock divided by 256 + value: 14 + - name: Div512 + description: system clock divided by 512 + value: 15 enum/ICSEL: bit_size: 2 variants: - - name: APB - description: APB clock selected as peripheral clock - value: 0 - - name: SYSTEM - description: System clock selected as peripheral clock - value: 1 - - name: HSI16 - description: HSI16 clock selected as peripheral clock - value: 2 + - name: APB + description: APB clock selected as peripheral clock + value: 0 + - name: SYSTEM + description: System clock selected as peripheral clock + value: 1 + - name: HSI16 + description: HSI16 clock selected as peripheral clock + value: 2 enum/LPTIMSEL: bit_size: 2 variants: - - name: APB - description: APB clock selected as Timer clock - value: 0 - - name: LSI - description: LSI clock selected as Timer clock - value: 1 - - name: HSI16 - description: HSI16 clock selected as Timer clock - value: 2 - - name: LSE - description: LSE clock selected as Timer clock - value: 3 + - name: APB + description: APB clock selected as Timer clock + value: 0 + - name: LSI + description: LSI clock selected as Timer clock + value: 1 + - name: HSI16 + description: HSI16 clock selected as Timer clock + value: 2 + - name: LSE + description: LSE clock selected as Timer clock + value: 3 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Lowest drive - value: 0 - - name: MediumLow - description: Medium low drive - value: 1 - - name: MediumHigh - description: Medium high drive - value: 2 - - name: High - description: Highest drive - value: 3 + - name: Low + description: Lowest drive + value: 0 + - name: MediumLow + description: Medium low drive + value: 1 + - name: MediumHigh + description: Medium high drive + value: 2 + - name: High + description: Highest drive + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 - - name: Div16 - description: Division by 16 - value: 4 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 + - name: Div16 + description: Division by 16 + value: 4 enum/MCOSEL: bit_size: 4 variants: - - name: NoClock - description: No clock - value: 0 - - name: SYSCLK - description: SYSCLK clock selected - value: 1 - - name: HSI16 - description: HSI oscillator clock selected - value: 2 - - name: MSI - description: MSI oscillator clock selected - value: 3 - - name: HSE - description: HSE oscillator clock selected - value: 4 - - name: PLL - description: PLL clock selected - value: 5 - - name: LSI - description: LSI oscillator clock selected - value: 6 - - name: LSE - description: LSE oscillator clock selected - value: 7 + - name: NoClock + description: No clock + value: 0 + - name: SYSCLK + description: SYSCLK clock selected + value: 1 + - name: HSI16 + description: HSI oscillator clock selected + value: 2 + - name: MSI + description: MSI oscillator clock selected + value: 3 + - name: HSE + description: HSE oscillator clock selected + value: 4 + - name: PLL + description: PLL clock selected + value: 5 + - name: LSI + description: LSI oscillator clock selected + value: 6 + - name: LSE + description: LSE oscillator clock selected + value: 7 enum/MSIRANGE: bit_size: 3 variants: - - name: Range0 - description: range 0 around 65.536 kHz - value: 0 - - name: Range1 - description: range 1 around 131.072 kHz - value: 1 - - name: Range2 - description: range 2 around 262.144 kHz - value: 2 - - name: Range3 - description: range 3 around 524.288 kHz - value: 3 - - name: Range4 - description: range 4 around 1.048 MHz - value: 4 - - name: Range5 - description: range 5 around 2.097 MHz (reset value) - value: 5 - - name: Range6 - description: range 6 around 4.194 MHz - value: 6 - - name: Range7 - description: not allowed - value: 7 + - name: Range0 + description: range 0 around 65.536 kHz + value: 0 + - name: Range1 + description: range 1 around 131.072 kHz + value: 1 + - name: Range2 + description: range 2 around 262.144 kHz + value: 2 + - name: Range3 + description: range 3 around 524.288 kHz + value: 3 + - name: Range4 + description: range 4 around 1.048 MHz + value: 4 + - name: Range5 + description: range 5 around 2.097 MHz (reset value) + value: 5 + - name: Range6 + description: range 6 around 4.194 MHz + value: 6 + - name: Range7 + description: not allowed + value: 7 enum/PLLDIV: bit_size: 2 variants: - - name: Div2 - description: PLLVCO / 2 - value: 1 - - name: Div3 - description: PLLVCO / 3 - value: 2 - - name: Div4 - description: PLLVCO / 4 - value: 3 + - name: Div2 + description: PLLVCO / 2 + value: 1 + - name: Div3 + description: PLLVCO / 3 + value: 2 + - name: Div4 + description: PLLVCO / 4 + value: 3 enum/PLLMUL: bit_size: 4 variants: - - name: Mul3 - description: PLL clock entry x 3 - value: 0 - - name: Mul4 - description: PLL clock entry x 4 - value: 1 - - name: Mul6 - description: PLL clock entry x 6 - value: 2 - - name: Mul8 - description: PLL clock entry x 8 - value: 3 - - name: Mul12 - description: PLL clock entry x 12 - value: 4 - - name: Mul16 - description: PLL clock entry x 16 - value: 5 - - name: Mul24 - description: PLL clock entry x 24 - value: 6 - - name: Mul32 - description: PLL clock entry x 32 - value: 7 - - name: Mul48 - description: PLL clock entry x 48 - value: 8 + - name: Mul3 + description: PLL clock entry x 3 + value: 0 + - name: Mul4 + description: PLL clock entry x 4 + value: 1 + - name: Mul6 + description: PLL clock entry x 6 + value: 2 + - name: Mul8 + description: PLL clock entry x 8 + value: 3 + - name: Mul12 + description: PLL clock entry x 12 + value: 4 + - name: Mul16 + description: PLL clock entry x 16 + value: 5 + - name: Mul24 + description: PLL clock entry x 24 + value: 6 + - name: Mul32 + description: PLL clock entry x 32 + value: 7 + - name: Mul48 + description: PLL clock entry x 48 + value: 8 enum/PLLSRC: bit_size: 1 variants: - - name: HSI16 - description: HSI selected as PLL input clock - value: 0 - - name: HSE - description: HSE selected as PLL input clock - value: 1 + - name: HSI16 + description: HSI selected as PLL input clock + value: 0 + - name: HSE + description: HSE selected as PLL input clock + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCPRE: bit_size: 2 variants: - - name: Div2 - description: HSE divided by 2 - value: 0 - - name: Div4 - description: HSE divided by 4 - value: 1 - - name: Div8 - description: HSE divided by 8 - value: 2 - - name: Div16 - description: HSE divided by 16 - value: 3 + - name: Div2 + description: HSE divided by 2 + value: 0 + - name: Div4 + description: HSE divided by 4 + value: 1 + - name: Div8 + description: HSE divided by 8 + value: 2 + - name: Div16 + description: HSE divided by 16 + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: "HSE oscillator clock divided by a programmable prescaler (selection through the RTCPRE[1:0] bits in the RCC clock control register (RCC_CR)) used as the RTC clock" - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a programmable prescaler (selection through the RTCPRE[1:0] bits in the RCC clock control register (RCC_CR)) used as the RTC clock + value: 3 enum/STOPWUCK: bit_size: 1 variants: - - name: MSI - description: Internal 64 KHz to 4 MHz (MSI) oscillator selected as wake-up from Stop clock - value: 0 - - name: HSI16 - description: Internal 16 MHz (HSI) oscillator selected as wake-up from Stop clock (or HSI16/4 if HSI16DIVEN=1) - value: 1 + - name: MSI + description: Internal 64 KHz to 4 MHz (MSI) oscillator selected as wake-up from Stop clock + value: 0 + - name: HSI16 + description: Internal 16 MHz (HSI) oscillator selected as wake-up from Stop clock (or HSI16/4 if HSI16DIVEN=1) + value: 1 enum/SW: bit_size: 2 variants: - - name: MSI - description: MSI oscillator used as system clock - value: 0 - - name: HSI16 - description: HSI oscillator used as system clock - value: 1 - - name: HSE - description: HSE oscillator used as system clock - value: 2 - - name: PLL - description: PLL used as system clock - value: 3 + - name: MSI + description: MSI oscillator used as system clock + value: 0 + - name: HSI16 + description: HSI oscillator used as system clock + value: 1 + - name: HSE + description: HSE oscillator used as system clock + value: 2 + - name: PLL + description: PLL used as system clock + value: 3 enum/UARTSEL: bit_size: 2 variants: - - name: APB - description: APB clock selected as peripheral clock - value: 0 - - name: SYSTEM - description: System clock selected as peripheral clock - value: 1 - - name: HSI16 - description: HSI16 clock selected as peripheral clock - value: 2 - - name: LSE - description: LSE clock selected as peripheral clock - value: 3 + - name: APB + description: APB clock selected as peripheral clock + value: 0 + - name: SYSTEM + description: System clock selected as peripheral clock + value: 1 + - name: HSI16 + description: HSI16 clock selected as peripheral clock + value: 2 + - name: LSE + description: LSE clock selected as peripheral clock + value: 3 diff --git a/data/registers/rcc_l1.yaml b/data/registers/rcc_l1.yaml index f7995d5..540fb3a 100644 --- a/data/registers/rcc_l1.yaml +++ b/data/registers/rcc_l1.yaml @@ -1,1051 +1,1050 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: CIR - description: Clock interrupt register - byte_offset: 12 - fieldset: CIR - - name: AHBRSTR - description: AHB peripheral reset register - byte_offset: 16 - fieldset: AHBRSTR - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 20 - fieldset: APB2RSTR - - name: APB1RSTR - description: APB1 peripheral reset register - byte_offset: 24 - fieldset: APB1RSTR - - name: AHBENR - description: AHB peripheral clock enable register - byte_offset: 28 - fieldset: AHBENR - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 32 - fieldset: APB2ENR - - name: APB1ENR - description: APB1 peripheral clock enable register - byte_offset: 36 - fieldset: APB1ENR - - name: AHBLPENR - description: AHB peripheral clock enable in low power mode register - byte_offset: 40 - fieldset: AHBLPENR - - name: APB2LPENR - description: APB2 peripheral clock enable in low power mode register - byte_offset: 44 - fieldset: APB2LPENR - - name: APB1LPENR - description: APB1 peripheral clock enable in low power mode register - byte_offset: 48 - fieldset: APB1LPENR - - name: CSR - description: Control/status register - byte_offset: 52 - fieldset: CSR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: CIR + description: Clock interrupt register + byte_offset: 12 + fieldset: CIR + - name: AHBRSTR + description: AHB peripheral reset register + byte_offset: 16 + fieldset: AHBRSTR + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 20 + fieldset: APB2RSTR + - name: APB1RSTR + description: APB1 peripheral reset register + byte_offset: 24 + fieldset: APB1RSTR + - name: AHBENR + description: AHB peripheral clock enable register + byte_offset: 28 + fieldset: AHBENR + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 32 + fieldset: APB2ENR + - name: APB1ENR + description: APB1 peripheral clock enable register + byte_offset: 36 + fieldset: APB1ENR + - name: AHBLPENR + description: AHB peripheral clock enable in low power mode register + byte_offset: 40 + fieldset: AHBLPENR + - name: APB2LPENR + description: APB2 peripheral clock enable in low power mode register + byte_offset: 44 + fieldset: APB2LPENR + - name: APB1LPENR + description: APB1 peripheral clock enable in low power mode register + byte_offset: 48 + fieldset: APB1LPENR + - name: CSR + description: Control/status register + byte_offset: 52 + fieldset: CSR fieldset/AHBENR: description: AHB peripheral clock enable register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 7 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: FLASHEN - description: FLASH clock enable - bit_offset: 15 - bit_size: 1 - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 24 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 25 - bit_size: 1 - - name: FSMCEN - description: FSMCEN - bit_offset: 30 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 7 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: FLASHEN + description: FLASH clock enable + bit_offset: 15 + bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 24 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 25 + bit_size: 1 + - name: FSMCEN + description: FSMCEN + bit_offset: 30 + bit_size: 1 fieldset/AHBLPENR: description: AHB peripheral clock enable in low power mode register fields: - - name: GPIOALPEN - description: IO port A clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: GPIOBLPEN - description: IO port B clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: GPIOCLPEN - description: IO port C clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: GPIODLPEN - description: IO port D clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: GPIOELPEN - description: IO port E clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: GPIOHLPEN - description: IO port H clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: GPIOFLPEN - description: IO port F clock enable during Sleep mode - bit_offset: 6 - bit_size: 1 - - name: GPIOGLPEN - description: IO port G clock enable during Sleep mode - bit_offset: 7 - bit_size: 1 - - name: CRCLPEN - description: CRC clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: FLASHLPEN - description: FLASH clock enable during Sleep mode - bit_offset: 15 - bit_size: 1 - - name: SRAMLPEN - description: SRAM clock enable during Sleep mode - bit_offset: 16 - bit_size: 1 - - name: DMA1LPEN - description: DMA1 clock enable during Sleep mode - bit_offset: 24 - bit_size: 1 - - name: DMA2LPEN - description: DMA2 clock enable during Sleep mode - bit_offset: 25 - bit_size: 1 + - name: GPIOALPEN + description: IO port A clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: GPIOBLPEN + description: IO port B clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: GPIOCLPEN + description: IO port C clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: GPIODLPEN + description: IO port D clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: GPIOELPEN + description: IO port E clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: GPIOHLPEN + description: IO port H clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: GPIOFLPEN + description: IO port F clock enable during Sleep mode + bit_offset: 6 + bit_size: 1 + - name: GPIOGLPEN + description: IO port G clock enable during Sleep mode + bit_offset: 7 + bit_size: 1 + - name: CRCLPEN + description: CRC clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: FLASHLPEN + description: FLASH clock enable during Sleep mode + bit_offset: 15 + bit_size: 1 + - name: SRAMLPEN + description: SRAM clock enable during Sleep mode + bit_offset: 16 + bit_size: 1 + - name: DMA1LPEN + description: DMA1 clock enable during Sleep mode + bit_offset: 24 + bit_size: 1 + - name: DMA2LPEN + description: DMA2 clock enable during Sleep mode + bit_offset: 25 + bit_size: 1 fieldset/AHBRSTR: description: AHB peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 5 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 6 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 7 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: FLASHRST - description: FLASH reset - bit_offset: 15 - bit_size: 1 - - name: DMA1RST - description: DMA1 reset - bit_offset: 24 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 25 - bit_size: 1 - - name: FSMCRST - description: FSMC reset - bit_offset: 30 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 5 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 6 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 7 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: FLASHRST + description: FLASH reset + bit_offset: 15 + bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 24 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 25 + bit_size: 1 + - name: FSMCRST + description: FSMC reset + bit_offset: 30 + bit_size: 1 fieldset/APB1ENR: description: APB1 peripheral clock enable register fields: - - name: TIM2EN - description: Timer 2 clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: Timer 3 clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: Timer 4 clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: Timer 5 clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: Timer 6 clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: Timer 7 clock enable - bit_offset: 5 - bit_size: 1 - - name: LCDEN - description: LCD clock enable - bit_offset: 9 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI 2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI 3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART 2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART 3 clock enable - bit_offset: 18 - bit_size: 1 - - name: USART4EN - description: UART 4 clock enable - bit_offset: 19 - bit_size: 1 - - name: USART5EN - description: UART 5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C 1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C 2 clock enable - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: USB clock enable - bit_offset: 23 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DACEN - description: DAC interface clock enable - bit_offset: 29 - bit_size: 1 - - name: COMPEN - description: COMP interface clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: Timer 2 clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: Timer 3 clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: Timer 4 clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: Timer 5 clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: Timer 6 clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: Timer 7 clock enable + bit_offset: 5 + bit_size: 1 + - name: LCDEN + description: LCD clock enable + bit_offset: 9 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI 2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI 3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART 2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART 3 clock enable + bit_offset: 18 + bit_size: 1 + - name: USART4EN + description: UART 4 clock enable + bit_offset: 19 + bit_size: 1 + - name: USART5EN + description: UART 5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C 1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C 2 clock enable + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: USB clock enable + bit_offset: 23 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DACEN + description: DAC interface clock enable + bit_offset: 29 + bit_size: 1 + - name: COMPEN + description: COMP interface clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1LPENR: description: APB1 peripheral clock enable in low power mode register fields: - - name: TIM2LPEN - description: Timer 2 clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM3LPEN - description: Timer 3 clock enable during Sleep mode - bit_offset: 1 - bit_size: 1 - - name: TIM4LPEN - description: Timer 4 clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM6LPEN - description: Timer 6 clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: TIM7LPEN - description: Timer 7 clock enable during Sleep mode - bit_offset: 5 - bit_size: 1 - - name: LCDLPEN - description: LCD clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: WWDGLPEN - description: Window watchdog clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI2LPEN - description: SPI 2 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 - - name: USART2LPEN - description: USART 2 clock enable during Sleep mode - bit_offset: 17 - bit_size: 1 - - name: USART3LPEN - description: USART 3 clock enable during Sleep mode - bit_offset: 18 - bit_size: 1 - - name: I2C1LPEN - description: I2C 1 clock enable during Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C2LPEN - description: I2C 2 clock enable during Sleep mode - bit_offset: 22 - bit_size: 1 - - name: USBLPEN - description: USB clock enable during Sleep mode - bit_offset: 23 - bit_size: 1 - - name: PWRLPEN - description: Power interface clock enable during Sleep mode - bit_offset: 28 - bit_size: 1 - - name: DACLPEN - description: DAC interface clock enable during Sleep mode - bit_offset: 29 - bit_size: 1 - - name: COMPLPEN - description: COMP interface clock enable during Sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2LPEN + description: Timer 2 clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM3LPEN + description: Timer 3 clock enable during Sleep mode + bit_offset: 1 + bit_size: 1 + - name: TIM4LPEN + description: Timer 4 clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM6LPEN + description: Timer 6 clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: TIM7LPEN + description: Timer 7 clock enable during Sleep mode + bit_offset: 5 + bit_size: 1 + - name: LCDLPEN + description: LCD clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: WWDGLPEN + description: Window watchdog clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI2LPEN + description: SPI 2 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 + - name: USART2LPEN + description: USART 2 clock enable during Sleep mode + bit_offset: 17 + bit_size: 1 + - name: USART3LPEN + description: USART 3 clock enable during Sleep mode + bit_offset: 18 + bit_size: 1 + - name: I2C1LPEN + description: I2C 1 clock enable during Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C2LPEN + description: I2C 2 clock enable during Sleep mode + bit_offset: 22 + bit_size: 1 + - name: USBLPEN + description: USB clock enable during Sleep mode + bit_offset: 23 + bit_size: 1 + - name: PWRLPEN + description: Power interface clock enable during Sleep mode + bit_offset: 28 + bit_size: 1 + - name: DACLPEN + description: DAC interface clock enable during Sleep mode + bit_offset: 29 + bit_size: 1 + - name: COMPLPEN + description: COMP interface clock enable during Sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR: description: APB1 peripheral reset register fields: - - name: TIM2RST - description: Timer 2 reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: Timer 3 reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: Timer 4 reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: Timer 5 reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: Timer 6reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: Timer 7 reset - bit_offset: 5 - bit_size: 1 - - name: LCDRST - description: LCD reset - bit_offset: 9 - bit_size: 1 - - name: WWDRST - description: Window watchdog reset - bit_offset: 11 - bit_size: 1 - - name: SPI2RST - description: SPI 2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI 3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART 2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART 3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART 4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART 5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C 1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C 2 reset - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: USB reset - bit_offset: 23 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DACRST - description: DAC interface reset - bit_offset: 29 - bit_size: 1 - - name: COMPRST - description: COMP interface reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: Timer 2 reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: Timer 3 reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: Timer 4 reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: Timer 5 reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: Timer 6reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: Timer 7 reset + bit_offset: 5 + bit_size: 1 + - name: LCDRST + description: LCD reset + bit_offset: 9 + bit_size: 1 + - name: WWDRST + description: Window watchdog reset + bit_offset: 11 + bit_size: 1 + - name: SPI2RST + description: SPI 2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI 3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART 2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART 3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART 4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART 5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C 1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C 2 reset + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: USB reset + bit_offset: 23 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DACRST + description: DAC interface reset + bit_offset: 29 + bit_size: 1 + - name: COMPRST + description: COMP interface reset + bit_offset: 31 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: SYSCFGEN - description: System configuration controller clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM9EN - description: TIM9 timer clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM10EN - description: TIM10 timer clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM11EN - description: TIM11 timer clock enable - bit_offset: 4 - bit_size: 1 - - name: ADC1EN - description: ADC1 interface clock enable - bit_offset: 9 - bit_size: 1 - - name: SDIOEN - description: SDIO clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI 1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: USART1 clock enable - bit_offset: 14 - bit_size: 1 + - name: SYSCFGEN + description: System configuration controller clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM9EN + description: TIM9 timer clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM10EN + description: TIM10 timer clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM11EN + description: TIM11 timer clock enable + bit_offset: 4 + bit_size: 1 + - name: ADC1EN + description: ADC1 interface clock enable + bit_offset: 9 + bit_size: 1 + - name: SDIOEN + description: SDIO clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI 1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: USART1 clock enable + bit_offset: 14 + bit_size: 1 fieldset/APB2LPENR: description: APB2 peripheral clock enable in low power mode register fields: - - name: SYSCFGLPEN - description: System configuration controller clock enable during Sleep mode - bit_offset: 0 - bit_size: 1 - - name: TIM9LPEN - description: TIM9 timer clock enable during Sleep mode - bit_offset: 2 - bit_size: 1 - - name: TIM10LPEN - description: TIM10 timer clock enable during Sleep mode - bit_offset: 3 - bit_size: 1 - - name: TIM11LPEN - description: TIM11 timer clock enable during Sleep mode - bit_offset: 4 - bit_size: 1 - - name: ADC1LPEN - description: ADC1 interface clock enable during Sleep mode - bit_offset: 9 - bit_size: 1 - - name: SDIOLPEN - description: SDIO clock enable during Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1LPEN - description: SPI 1 clock enable during Sleep mode - bit_offset: 12 - bit_size: 1 - - name: USART1LPEN - description: USART1 clock enable during Sleep mode - bit_offset: 14 - bit_size: 1 + - name: SYSCFGLPEN + description: System configuration controller clock enable during Sleep mode + bit_offset: 0 + bit_size: 1 + - name: TIM9LPEN + description: TIM9 timer clock enable during Sleep mode + bit_offset: 2 + bit_size: 1 + - name: TIM10LPEN + description: TIM10 timer clock enable during Sleep mode + bit_offset: 3 + bit_size: 1 + - name: TIM11LPEN + description: TIM11 timer clock enable during Sleep mode + bit_offset: 4 + bit_size: 1 + - name: ADC1LPEN + description: ADC1 interface clock enable during Sleep mode + bit_offset: 9 + bit_size: 1 + - name: SDIOLPEN + description: SDIO clock enable during Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1LPEN + description: SPI 1 clock enable during Sleep mode + bit_offset: 12 + bit_size: 1 + - name: USART1LPEN + description: USART1 clock enable during Sleep mode + bit_offset: 14 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: SYSCFGRST - description: SYSCFGRST - bit_offset: 0 - bit_size: 1 - - name: TIM9RST - description: TIM9RST - bit_offset: 2 - bit_size: 1 - - name: TM10RST - description: TM10RST - bit_offset: 3 - bit_size: 1 - - name: TM11RST - description: TM11RST - bit_offset: 4 - bit_size: 1 - - name: ADC1RST - description: ADC1RST - bit_offset: 9 - bit_size: 1 - - name: SDIORST - description: SDIORST - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1RST - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1RST - bit_offset: 14 - bit_size: 1 + - name: SYSCFGRST + description: SYSCFGRST + bit_offset: 0 + bit_size: 1 + - name: TIM9RST + description: TIM9RST + bit_offset: 2 + bit_size: 1 + - name: TM10RST + description: TM10RST + bit_offset: 3 + bit_size: 1 + - name: TM11RST + description: TM11RST + bit_offset: 4 + bit_size: 1 + - name: ADC1RST + description: ADC1RST + bit_offset: 9 + bit_size: 1 + - name: SDIORST + description: SDIORST + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1RST + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1RST + bit_offset: 14 + bit_size: 1 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SW - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: PLLSRC - description: PLL entry clock source - bit_offset: 16 - bit_size: 1 - enum: PLLSRC - - name: PLLMUL - description: PLL multiplication factor - bit_offset: 18 - bit_size: 4 - enum: PLLMUL - - name: PLLDIV - description: PLL output division - bit_offset: 22 - bit_size: 2 - enum: PLLDIV - - name: MCOSEL - description: Microcontroller clock output selection - bit_offset: 24 - bit_size: 3 - enum: MCOSEL - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SW + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: PLLSRC + description: PLL entry clock source + bit_offset: 16 + bit_size: 1 + enum: PLLSRC + - name: PLLMUL + description: PLL multiplication factor + bit_offset: 18 + bit_size: 4 + enum: PLLMUL + - name: PLLDIV + description: PLL output division + bit_offset: 22 + bit_size: 2 + enum: PLLDIV + - name: MCOSEL + description: Microcontroller clock output selection + bit_offset: 24 + bit_size: 3 + enum: MCOSEL + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CIR: description: Clock interrupt register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 7 - bit_size: 1 - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 8 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 10 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 11 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt enable - bit_offset: 12 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt enable - bit_offset: 13 - bit_size: 1 - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 16 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 17 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 18 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 19 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 20 - bit_size: 1 - - name: MSIRDYC - description: MSI ready interrupt clear - bit_offset: 21 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 23 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 7 + bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 8 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 10 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 11 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt enable + bit_offset: 12 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt enable + bit_offset: 13 + bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 16 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 17 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 18 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 19 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 20 + bit_size: 1 + - name: MSIRDYC + description: MSI ready interrupt clear + bit_offset: 21 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 23 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: HSION - description: Internal high-speed clock enable - bit_offset: 0 - bit_size: 1 - - name: HSIRDY - description: Internal high-speed clock ready flag - bit_offset: 1 - bit_size: 1 - - name: MSION - description: MSI clock enable - bit_offset: 8 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag - bit_offset: 9 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE clock bypass - bit_offset: 18 - bit_size: 1 - - name: PLLON - description: PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: PLL clock ready flag - bit_offset: 25 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 28 - bit_size: 1 - - name: RTCPRE - description: RTC/LCD prescaler - bit_offset: 29 - bit_size: 2 - enum: RTCPRE + - name: HSION + description: Internal high-speed clock enable + bit_offset: 0 + bit_size: 1 + - name: HSIRDY + description: Internal high-speed clock ready flag + bit_offset: 1 + bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 8 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag + bit_offset: 9 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE clock bypass + bit_offset: 18 + bit_size: 1 + - name: PLLON + description: PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: PLL clock ready flag + bit_offset: 25 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 28 + bit_size: 1 + - name: RTCPRE + description: RTC/LCD prescaler + bit_offset: 29 + bit_size: 2 + enum: RTCPRE fieldset/CSR: description: Control and status register fields: - - name: LSION - description: Internal low-speed oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: Internal low-speed oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEON - description: External low-speed oscillator enable - bit_offset: 8 - bit_size: 1 - - name: LSERDY - description: External low-speed oscillator ready - bit_offset: 9 - bit_size: 1 - - name: LSEBYP - description: External low-speed oscillator bypass - bit_offset: 10 - bit_size: 1 - - name: RTCSEL - description: RTC and LCD clock source selection - bit_offset: 16 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 22 - bit_size: 1 - - name: RTCRST - description: RTC software reset - bit_offset: 23 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 24 - bit_size: 1 - - name: PINRSTF - description: PIN reset flag - bit_offset: 26 - bit_size: 1 - - name: PORRSTF - description: POR/PDR reset flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: Internal low-speed oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: Internal low-speed oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEON + description: External low-speed oscillator enable + bit_offset: 8 + bit_size: 1 + - name: LSERDY + description: External low-speed oscillator ready + bit_offset: 9 + bit_size: 1 + - name: LSEBYP + description: External low-speed oscillator bypass + bit_offset: 10 + bit_size: 1 + - name: RTCSEL + description: RTC and LCD clock source selection + bit_offset: 16 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 22 + bit_size: 1 + - name: RTCRST + description: RTC software reset + bit_offset: 23 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 24 + bit_size: 1 + - name: PINRSTF + description: PIN reset flag + bit_offset: 26 + bit_size: 1 + - name: PORRSTF + description: POR/PDR reset flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: HSICAL - description: nternal high speed clock calibration - bit_offset: 0 - bit_size: 8 - - name: HSITRIM - description: High speed internal clock trimming - bit_offset: 8 - bit_size: 5 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 13 - bit_size: 3 - enum: MSIRANGE - - name: MSICAL - description: MSI clock calibration - bit_offset: 16 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 24 - bit_size: 8 + - name: HSICAL + description: nternal high speed clock calibration + bit_offset: 0 + bit_size: 8 + - name: HSITRIM + description: High speed internal clock trimming + bit_offset: 8 + bit_size: 5 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 13 + bit_size: 3 + enum: MSIRANGE + - name: MSICAL + description: MSI clock calibration + bit_offset: 16 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 24 + bit_size: 8 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: system clock not divided - value: 0 - - name: Div2 - description: system clock divided by 2 - value: 8 - - name: Div4 - description: system clock divided by 4 - value: 9 - - name: Div8 - description: system clock divided by 8 - value: 10 - - name: Div16 - description: system clock divided by 16 - value: 11 - - name: Div64 - description: system clock divided by 64 - value: 12 - - name: Div128 - description: system clock divided by 128 - value: 13 - - name: Div256 - description: system clock divided by 256 - value: 14 - - name: Div512 - description: system clock divided by 512 - value: 15 + - name: Div1 + description: system clock not divided + value: 0 + - name: Div2 + description: system clock divided by 2 + value: 8 + - name: Div4 + description: system clock divided by 4 + value: 9 + - name: Div8 + description: system clock divided by 8 + value: 10 + - name: Div16 + description: system clock divided by 16 + value: 11 + - name: Div64 + description: system clock divided by 64 + value: 12 + - name: Div128 + description: system clock divided by 128 + value: 13 + - name: Div256 + description: system clock divided by 256 + value: 14 + - name: Div512 + description: system clock divided by 512 + value: 15 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 - - name: Div16 - description: Division by 16 - value: 4 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 + - name: Div16 + description: Division by 16 + value: 4 enum/MCOSEL: bit_size: 4 variants: - - name: NoClock - description: No clock - value: 0 - - name: SYSCLK - description: SYSCLK clock selected - value: 1 - - name: HSI - description: HSI oscillator clock selected - value: 2 - - name: MSI - description: MSI oscillator clock selected - value: 3 - - name: HSE - description: HSE oscillator clock selected - value: 4 - - name: PLL - description: PLL clock selected - value: 5 - - name: LSI - description: LSI oscillator clock selected - value: 6 - - name: LSE - description: LSE oscillator clock selected - value: 7 + - name: NoClock + description: No clock + value: 0 + - name: SYSCLK + description: SYSCLK clock selected + value: 1 + - name: HSI + description: HSI oscillator clock selected + value: 2 + - name: MSI + description: MSI oscillator clock selected + value: 3 + - name: HSE + description: HSE oscillator clock selected + value: 4 + - name: PLL + description: PLL clock selected + value: 5 + - name: LSI + description: LSI oscillator clock selected + value: 6 + - name: LSE + description: LSE oscillator clock selected + value: 7 enum/MSIRANGE: bit_size: 3 variants: - - name: Range0 - description: range 0 around 65.536 kHz - value: 0 - - name: Range1 - description: range 1 around 131.072 kHz - value: 1 - - name: Range2 - description: range 2 around 262.144 kHz - value: 2 - - name: Range3 - description: range 3 around 524.288 kHz - value: 3 - - name: Range4 - description: range 4 around 1.048 MHz - value: 4 - - name: Range5 - description: range 5 around 2.097 MHz (reset value) - value: 5 - - name: Range6 - description: range 6 around 4.194 MHz - value: 6 - - name: Range7 - description: not allowed - value: 7 + - name: Range0 + description: range 0 around 65.536 kHz + value: 0 + - name: Range1 + description: range 1 around 131.072 kHz + value: 1 + - name: Range2 + description: range 2 around 262.144 kHz + value: 2 + - name: Range3 + description: range 3 around 524.288 kHz + value: 3 + - name: Range4 + description: range 4 around 1.048 MHz + value: 4 + - name: Range5 + description: range 5 around 2.097 MHz (reset value) + value: 5 + - name: Range6 + description: range 6 around 4.194 MHz + value: 6 + - name: Range7 + description: not allowed + value: 7 enum/PLLDIV: bit_size: 2 variants: - - name: Div2 - description: PLLVCO / 2 - value: 1 - - name: Div3 - description: PLLVCO / 3 - value: 2 - - name: Div4 - description: PLLVCO / 4 - value: 3 + - name: Div2 + description: PLLVCO / 2 + value: 1 + - name: Div3 + description: PLLVCO / 3 + value: 2 + - name: Div4 + description: PLLVCO / 4 + value: 3 enum/PLLMUL: bit_size: 4 variants: - - name: Mul3 - description: PLL clock entry x 3 - value: 0 - - name: Mul4 - description: PLL clock entry x 4 - value: 1 - - name: Mul6 - description: PLL clock entry x 6 - value: 2 - - name: Mul8 - description: PLL clock entry x 8 - value: 3 - - name: Mul12 - description: PLL clock entry x 12 - value: 4 - - name: Mul16 - description: PLL clock entry x 16 - value: 5 - - name: Mul24 - description: PLL clock entry x 24 - value: 6 - - name: Mul32 - description: PLL clock entry x 32 - value: 7 - - name: Mul48 - description: PLL clock entry x 48 - value: 8 + - name: Mul3 + description: PLL clock entry x 3 + value: 0 + - name: Mul4 + description: PLL clock entry x 4 + value: 1 + - name: Mul6 + description: PLL clock entry x 6 + value: 2 + - name: Mul8 + description: PLL clock entry x 8 + value: 3 + - name: Mul12 + description: PLL clock entry x 12 + value: 4 + - name: Mul16 + description: PLL clock entry x 16 + value: 5 + - name: Mul24 + description: PLL clock entry x 24 + value: 6 + - name: Mul32 + description: PLL clock entry x 32 + value: 7 + - name: Mul48 + description: PLL clock entry x 48 + value: 8 enum/PLLSRC: bit_size: 1 variants: - - name: HSI - description: HSI selected as PLL input clock - value: 0 - - name: HSE - description: HSE selected as PLL input clock - value: 1 + - name: HSI + description: HSI selected as PLL input clock + value: 0 + - name: HSE + description: HSE selected as PLL input clock + value: 1 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCPRE: bit_size: 2 variants: - - name: Div2 - description: HSE divided by 2 - value: 0 - - name: Div4 - description: HSE divided by 4 - value: 1 - - name: Div8 - description: HSE divided by 8 - value: 2 - - name: Div16 - description: HSE divided by 16 - value: 3 + - name: Div2 + description: HSE divided by 2 + value: 0 + - name: Div4 + description: HSE divided by 4 + value: 1 + - name: Div8 + description: HSE divided by 8 + value: 2 + - name: Div16 + description: HSE divided by 16 + value: 3 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: "HSE oscillator clock divided by a programmable prescaler (selection through the RTCPRE[1:0] bits in the RCC clock control register (RCC_CR)) used as the RTC clock" - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a programmable prescaler (selection through the RTCPRE[1:0] bits in the RCC clock control register (RCC_CR)) used as the RTC clock + value: 3 enum/SW: bit_size: 2 variants: - - name: MSI - description: MSI oscillator used as system clock - value: 0 - - name: HSI - description: HSI oscillator used as system clock - value: 1 - - name: HSE - description: HSE oscillator used as system clock - value: 2 - - name: PLL - description: PLL used as system clock - value: 3 + - name: MSI + description: MSI oscillator used as system clock + value: 0 + - name: HSI + description: HSI oscillator used as system clock + value: 1 + - name: HSE + description: HSE oscillator used as system clock + value: 2 + - name: PLL + description: PLL used as system clock + value: 3 diff --git a/data/registers/rcc_l4.yaml b/data/registers/rcc_l4.yaml index 4fd140e..3a95b4b 100644 --- a/data/registers/rcc_l4.yaml +++ b/data/registers/rcc_l4.yaml @@ -1,1910 +1,1909 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 12 - fieldset: PLLCFGR - - name: PLLSAI1CFGR - description: PLLSAI1 configuration register - byte_offset: 16 - fieldset: PLLSAI1CFGR - - name: PLLSAI2CFGR - description: PLLSAI2 configuration register - byte_offset: 20 - fieldset: PLLSAI2CFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 40 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 44 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 48 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: APB1 peripheral reset register 1 - byte_offset: 56 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: APB1 peripheral reset register 2 - byte_offset: 60 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 64 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock enable register - byte_offset: 72 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 76 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 80 - fieldset: AHB3ENR - - name: APB1ENR1 - description: APB1ENR1 - byte_offset: 88 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: APB1 peripheral clock enable register 2 - byte_offset: 92 - fieldset: APB1ENR2 - - name: APB2ENR - description: APB2ENR - byte_offset: 96 - fieldset: APB2ENR - - name: AHB1SMENR - description: AHB1 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 104 - fieldset: AHB1SMENR - - name: AHB2SMENR - description: AHB2 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 108 - fieldset: AHB2SMENR - - name: AHB3SMENR - description: AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 112 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: APB1SMENR1 - byte_offset: 120 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 - byte_offset: 124 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: APB2SMENR - byte_offset: 128 - fieldset: APB2SMENR - - name: CCIPR - description: CCIPR - byte_offset: 136 - fieldset: CCIPR - - name: BDCR - description: BDCR - byte_offset: 144 - fieldset: BDCR - - name: CSR - description: CSR - byte_offset: 148 - fieldset: CSR - - name: CRRCR - description: Clock recovery RC register - byte_offset: 152 - fieldset: CRRCR - - name: CCIPR2 - description: Peripherals independent clock configuration register - byte_offset: 156 - fieldset: CCIPR2 + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 12 + fieldset: PLLCFGR + - name: PLLSAI1CFGR + description: PLLSAI1 configuration register + byte_offset: 16 + fieldset: PLLSAI1CFGR + - name: PLLSAI2CFGR + description: PLLSAI2 configuration register + byte_offset: 20 + fieldset: PLLSAI2CFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 40 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 44 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 48 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: APB1 peripheral reset register 1 + byte_offset: 56 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: APB1 peripheral reset register 2 + byte_offset: 60 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 64 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock enable register + byte_offset: 72 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 76 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 80 + fieldset: AHB3ENR + - name: APB1ENR1 + description: APB1ENR1 + byte_offset: 88 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: APB1 peripheral clock enable register 2 + byte_offset: 92 + fieldset: APB1ENR2 + - name: APB2ENR + description: APB2ENR + byte_offset: 96 + fieldset: APB2ENR + - name: AHB1SMENR + description: AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 104 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: AHB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 108 + fieldset: AHB2SMENR + - name: AHB3SMENR + description: AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 112 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: APB1SMENR1 + byte_offset: 120 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 + byte_offset: 124 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: APB2SMENR + byte_offset: 128 + fieldset: APB2SMENR + - name: CCIPR + description: CCIPR + byte_offset: 136 + fieldset: CCIPR + - name: BDCR + description: BDCR + byte_offset: 144 + fieldset: BDCR + - name: CSR + description: CSR + byte_offset: 148 + fieldset: CSR + - name: CRRCR + description: Clock recovery RC register + byte_offset: 152 + fieldset: CRRCR + - name: CCIPR2 + description: Peripherals independent clock configuration register + byte_offset: 156 + fieldset: CCIPR2 fieldset/AHB1ENR: description: AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: DMAMUX clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: Flash memory interface clock enable - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: TSCEN - description: Touch Sensing Controller clock enable - bit_offset: 16 - bit_size: 1 - - name: DMA2DEN - description: DMA2D clock enable - bit_offset: 17 - bit_size: 1 - - name: GFXMMUEN - description: Graphic MMU clock enable - bit_offset: 18 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: DMAMUX clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: Flash memory interface clock enable + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: TSCEN + description: Touch Sensing Controller clock enable + bit_offset: 16 + bit_size: 1 + - name: DMA2DEN + description: DMA2D clock enable + bit_offset: 17 + bit_size: 1 + - name: GFXMMUEN + description: Graphic MMU clock enable + bit_offset: 18 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1RST - description: DMAMUX1RST - bit_offset: 2 - bit_size: 1 - - name: FLASHRST - description: Flash memory interface reset - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: TSCRST - description: Touch Sensing Controller reset - bit_offset: 16 - bit_size: 1 - - name: DMA2DRST - description: DMA2D reset - bit_offset: 17 - bit_size: 1 - - name: GFXMMURST - description: GFXMMU reset - bit_offset: 18 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1RST + description: DMAMUX1RST + bit_offset: 2 + bit_size: 1 + - name: FLASHRST + description: Flash memory interface reset + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: TSCRST + description: Touch Sensing Controller reset + bit_offset: 16 + bit_size: 1 + - name: DMA2DRST + description: DMA2D reset + bit_offset: 17 + bit_size: 1 + - name: GFXMMURST + description: GFXMMU reset + bit_offset: 18 + bit_size: 1 fieldset/AHB1SMENR: description: AHB1 peripheral clocks enable in Sleep and Stop modes register fields: - - name: DMA1SMEN - description: DMA1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: DMAMUX clock enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: FLASHSMEN - description: Flash memory interface clocks enable during Sleep and Stop modes - bit_offset: 8 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CRCSMEN - bit_offset: 12 - bit_size: 1 - - name: TSCSMEN - description: Touch Sensing Controller clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: DMA2DSMEN - description: DMA2D clock enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: GFXMMUSMEN - description: GFXMMU clock enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: DMAMUX clock enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: FLASHSMEN + description: Flash memory interface clocks enable during Sleep and Stop modes + bit_offset: 8 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CRCSMEN + bit_offset: 12 + bit_size: 1 + - name: TSCSMEN + description: Touch Sensing Controller clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: DMA2DSMEN + description: DMA2D clock enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: GFXMMUSMEN + description: GFXMMU clock enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: IO port I clock enable - bit_offset: 8 - bit_size: 1 - - name: USB_OTG_FSEN - description: OTG full speed clock enable - bit_offset: 12 - bit_size: 1 - - name: ADCEN - description: ADC clock enable - bit_offset: 13 - bit_size: 1 - - name: DCMIEN - description: DCMI clock enable - bit_offset: 14 - bit_size: 1 - - name: AESEN - description: AES accelerator clock enable - bit_offset: 16 - bit_size: 1 - - name: HASHEN - description: HASH clock enable - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: Random Number Generator clock enable - bit_offset: 18 - bit_size: 1 - - name: OSPIMEN - description: OctoSPI IO manager clock enable - bit_offset: 20 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 clock enable - bit_offset: 22 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: IO port I clock enable + bit_offset: 8 + bit_size: 1 + - name: USB_OTG_FSEN + description: OTG full speed clock enable + bit_offset: 12 + bit_size: 1 + - name: ADCEN + description: ADC clock enable + bit_offset: 13 + bit_size: 1 + - name: DCMIEN + description: DCMI clock enable + bit_offset: 14 + bit_size: 1 + - name: AESEN + description: AES accelerator clock enable + bit_offset: 16 + bit_size: 1 + - name: HASHEN + description: HASH clock enable + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: Random Number Generator clock enable + bit_offset: 18 + bit_size: 1 + - name: OSPIMEN + description: OctoSPI IO manager clock enable + bit_offset: 20 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 clock enable + bit_offset: 22 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: IO port I reset - bit_offset: 8 - bit_size: 1 - - name: USB_OTG_FSRST - description: USB OTG FS reset - bit_offset: 12 - bit_size: 1 - - name: ADCRST - description: ADC reset - bit_offset: 13 - bit_size: 1 - - name: DCMIRST - description: Digital Camera Interface reset - bit_offset: 14 - bit_size: 1 - - name: AESRST - description: AES hardware accelerator reset - bit_offset: 16 - bit_size: 1 - - name: HASHRST - description: Hash reset - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: Random number generator reset - bit_offset: 18 - bit_size: 1 - - name: OSPIMRST - description: OCTOSPI IO manager reset - bit_offset: 20 - bit_size: 1 - - name: SDMMC1RST - description: SDMMC1 reset - bit_offset: 22 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: IO port I reset + bit_offset: 8 + bit_size: 1 + - name: USB_OTG_FSRST + description: USB OTG FS reset + bit_offset: 12 + bit_size: 1 + - name: ADCRST + description: ADC reset + bit_offset: 13 + bit_size: 1 + - name: DCMIRST + description: Digital Camera Interface reset + bit_offset: 14 + bit_size: 1 + - name: AESRST + description: AES hardware accelerator reset + bit_offset: 16 + bit_size: 1 + - name: HASHRST + description: Hash reset + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: Random number generator reset + bit_offset: 18 + bit_size: 1 + - name: OSPIMRST + description: OCTOSPI IO manager reset + bit_offset: 20 + bit_size: 1 + - name: SDMMC1RST + description: SDMMC1 reset + bit_offset: 22 + bit_size: 1 fieldset/AHB2SMENR: description: AHB2 peripheral clocks enable in Sleep and Stop modes register fields: - - name: GPIOASMEN - description: IO port A clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: IO port B clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: IO port C clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: IO port D clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: IO port E clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: GPIOFSMEN - description: IO port F clocks enable during Sleep and Stop modes - bit_offset: 5 - bit_size: 1 - - name: GPIOGSMEN - description: IO port G clocks enable during Sleep and Stop modes - bit_offset: 6 - bit_size: 1 - - name: GPIOHSMEN - description: IO port H clocks enable during Sleep and Stop modes - bit_offset: 7 - bit_size: 1 - - name: GPIOISMEN - description: IO port I clocks enable during Sleep and Stop modes - bit_offset: 8 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2 interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: SRAM3SMEN - description: SRAM2 interface clocks enable during Sleep and Stop modes - bit_offset: 10 - bit_size: 1 - - name: USB_OTG_FSSMEN - description: OTG full speed clocks enable during Sleep and Stop modes - bit_offset: 12 - bit_size: 1 - - name: ADCFSSMEN - description: ADC clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: DCMISMEN - description: DCMI clock enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: AESSMEN - description: AES accelerator clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: HASH1SMEN - description: HASH clock enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: HASHSMEN - description: HASH clock enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: Random Number Generator clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: OSPIMSMEN - description: OctoSPI IO manager clocks enable during Sleep and Stop modes - bit_offset: 20 - bit_size: 1 - - name: SDMMC1SMEN - description: SDMMC1 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 + - name: GPIOASMEN + description: IO port A clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: IO port B clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: IO port C clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: IO port D clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: IO port E clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: GPIOFSMEN + description: IO port F clocks enable during Sleep and Stop modes + bit_offset: 5 + bit_size: 1 + - name: GPIOGSMEN + description: IO port G clocks enable during Sleep and Stop modes + bit_offset: 6 + bit_size: 1 + - name: GPIOHSMEN + description: IO port H clocks enable during Sleep and Stop modes + bit_offset: 7 + bit_size: 1 + - name: GPIOISMEN + description: IO port I clocks enable during Sleep and Stop modes + bit_offset: 8 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2 interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: SRAM3SMEN + description: SRAM2 interface clocks enable during Sleep and Stop modes + bit_offset: 10 + bit_size: 1 + - name: USB_OTG_FSSMEN + description: OTG full speed clocks enable during Sleep and Stop modes + bit_offset: 12 + bit_size: 1 + - name: ADCFSSMEN + description: ADC clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: DCMISMEN + description: DCMI clock enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: AESSMEN + description: AES accelerator clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: HASH1SMEN + description: HASH clock enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: HASHSMEN + description: HASH clock enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: Random Number Generator clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: OSPIMSMEN + description: OctoSPI IO manager clocks enable during Sleep and Stop modes + bit_offset: 20 + bit_size: 1 + - name: SDMMC1SMEN + description: SDMMC1 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: FMCEN - description: Flexible memory controller clock enable - bit_offset: 0 - bit_size: 1 - - name: QUADSPIEN - description: QUADSPIEN - bit_offset: 8 - bit_size: 1 - - name: OSPI2EN - description: OSPI2EN memory interface clock enable - bit_offset: 9 - bit_size: 1 + - name: FMCEN + description: Flexible memory controller clock enable + bit_offset: 0 + bit_size: 1 + - name: QUADSPIEN + description: QUADSPIEN + bit_offset: 8 + bit_size: 1 + - name: OSPI2EN + description: OSPI2EN memory interface clock enable + bit_offset: 9 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: FMCRST - description: Flexible memory controller reset - bit_offset: 0 - bit_size: 1 - - name: QSPIRST - description: Quad SPI memory interface reset - bit_offset: 8 - bit_size: 1 - - name: OSPI2RST - description: OctOSPI2 memory interface reset - bit_offset: 9 - bit_size: 1 + - name: FMCRST + description: Flexible memory controller reset + bit_offset: 0 + bit_size: 1 + - name: QSPIRST + description: Quad SPI memory interface reset + bit_offset: 8 + bit_size: 1 + - name: OSPI2RST + description: OctOSPI2 memory interface reset + bit_offset: 9 + bit_size: 1 fieldset/AHB3SMENR: description: AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: FMCSMEN - description: Flexible memory controller clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: QSPISMEN - description: QSPISMEN - bit_offset: 8 - bit_size: 1 - - name: OCTOSPI2 - description: OctoSPI2 memory interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 + - name: FMCSMEN + description: Flexible memory controller clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: QSPISMEN + description: QSPISMEN + bit_offset: 8 + bit_size: 1 + - name: OCTOSPI2 + description: OctoSPI2 memory interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 fieldset/APB1ENR1: description: APB1ENR1 fields: - - name: TIM2EN - description: TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 timer clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 timer clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM5 timer clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 timer clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 timer clock enable - bit_offset: 5 - bit_size: 1 - - name: LCDEN - description: LCD clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: Clock Recovery System clock enable - bit_offset: 24 - bit_size: 1 - - name: CAN1EN - description: CAN1 clock enable - bit_offset: 25 - bit_size: 1 - - name: CAN2EN - description: CAN2 clock enable - bit_offset: 26 - bit_size: 1 - - name: USBEN - description: USB FS clock enable - bit_offset: 26 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DAC1EN - description: DAC1 interface clock enable - bit_offset: 29 - bit_size: 1 - - name: OPAMPEN - description: OPAMP interface clock enable - bit_offset: 30 - bit_size: 1 - - name: LPTIM1EN - description: Low power timer 1 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 timer clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 timer clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM5 timer clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 timer clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 timer clock enable + bit_offset: 5 + bit_size: 1 + - name: LCDEN + description: LCD clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: Clock Recovery System clock enable + bit_offset: 24 + bit_size: 1 + - name: CAN1EN + description: CAN1 clock enable + bit_offset: 25 + bit_size: 1 + - name: CAN2EN + description: CAN2 clock enable + bit_offset: 26 + bit_size: 1 + - name: USBEN + description: USB FS clock enable + bit_offset: 26 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DAC1EN + description: DAC1 interface clock enable + bit_offset: 29 + bit_size: 1 + - name: OPAMPEN + description: OPAMP interface clock enable + bit_offset: 30 + bit_size: 1 + - name: LPTIM1EN + description: Low power timer 1 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR2: description: APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: Low power UART 1 clock enable - bit_offset: 0 - bit_size: 1 - - name: I2C4EN - description: I2C4 clock enable - bit_offset: 1 - bit_size: 1 - - name: SWPMI1EN - description: Single wire protocol clock enable - bit_offset: 2 - bit_size: 1 - - name: LPTIM2EN - description: LPTIM2EN - bit_offset: 5 - bit_size: 1 - - name: DFSDMEN - description: DFSDMEN enable - bit_offset: 24 - bit_size: 1 + - name: LPUART1EN + description: Low power UART 1 clock enable + bit_offset: 0 + bit_size: 1 + - name: I2C4EN + description: I2C4 clock enable + bit_offset: 1 + bit_size: 1 + - name: SWPMI1EN + description: Single wire protocol clock enable + bit_offset: 2 + bit_size: 1 + - name: LPTIM2EN + description: LPTIM2EN + bit_offset: 5 + bit_size: 1 + - name: DFSDMEN + description: DFSDMEN enable + bit_offset: 24 + bit_size: 1 fieldset/APB1RSTR1: description: APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 timer reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM3 timer reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM5 timer reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 timer reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 timer reset - bit_offset: 5 - bit_size: 1 - - name: LCDRST - description: LCD interface reset - bit_offset: 9 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: CRSRST - description: CRS reset - bit_offset: 24 - bit_size: 1 - - name: CAN1RST - description: CAN1 reset - bit_offset: 25 - bit_size: 1 - - name: CAN2RST - description: CAN2 reset - bit_offset: 26 - bit_size: 1 - - name: USBRST - description: USB FS reset - bit_offset: 26 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DAC1RST - description: DAC1 interface reset - bit_offset: 29 - bit_size: 1 - - name: OPAMPRST - description: OPAMP interface reset - bit_offset: 30 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 timer reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM3 timer reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM5 timer reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 timer reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 timer reset + bit_offset: 5 + bit_size: 1 + - name: LCDRST + description: LCD interface reset + bit_offset: 9 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: CRSRST + description: CRS reset + bit_offset: 24 + bit_size: 1 + - name: CAN1RST + description: CAN1 reset + bit_offset: 25 + bit_size: 1 + - name: CAN2RST + description: CAN2 reset + bit_offset: 26 + bit_size: 1 + - name: USBRST + description: USB FS reset + bit_offset: 26 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DAC1RST + description: DAC1 interface reset + bit_offset: 29 + bit_size: 1 + - name: OPAMPRST + description: OPAMP interface reset + bit_offset: 30 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR2: description: APB1 peripheral reset register 2 fields: - - name: LPUART1RST - description: Low-power UART 1 reset - bit_offset: 0 - bit_size: 1 - - name: I2C4RST - description: I2C4 reset - bit_offset: 1 - bit_size: 1 - - name: SWPMI1RST - description: Single wire protocol reset - bit_offset: 2 - bit_size: 1 - - name: LPTIM2RST - description: Low-power timer 2 reset - bit_offset: 5 - bit_size: 1 + - name: LPUART1RST + description: Low-power UART 1 reset + bit_offset: 0 + bit_size: 1 + - name: I2C4RST + description: I2C4 reset + bit_offset: 1 + bit_size: 1 + - name: SWPMI1RST + description: Single wire protocol reset + bit_offset: 2 + bit_size: 1 + - name: LPTIM2RST + description: Low-power timer 2 reset + bit_offset: 5 + bit_size: 1 fieldset/APB1SMENR1: description: APB1SMENR1 fields: - - name: TIM2SMEN - description: TIM2 timer clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: TIM3SMEN - description: TIM3 timer clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: TIM4SMEN - description: TIM4 timer clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: TIM5SMEN - description: TIM5 timer clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: TIM6SMEN - description: TIM6 timer clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: TIM7SMEN - description: TIM7 timer clocks enable during Sleep and Stop modes - bit_offset: 5 - bit_size: 1 - - name: LCDSMEN - description: LCD clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC APB clock enable during Sleep and Stop modes - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clocks enable during Sleep and Stop modes - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clocks enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: SP3SMEN - description: SPI3 clocks enable during Sleep and Stop modes - bit_offset: 15 - bit_size: 1 - - name: USART2SMEN - description: USART2 clocks enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: USART3SMEN - description: USART3 clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: UART4SMEN - description: UART4 clocks enable during Sleep and Stop modes - bit_offset: 19 - bit_size: 1 - - name: UART5SMEN - description: UART5 clocks enable during Sleep and Stop modes - bit_offset: 20 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clocks enable during Sleep and Stop modes - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clocks enable during Sleep and Stop modes - bit_offset: 23 - bit_size: 1 - - name: CRSSMEN - description: CRS clock enable during Sleep and Stop modes - bit_offset: 24 - bit_size: 1 - - name: CAN1SMEN - description: CAN1 clocks enable during Sleep and Stop modes - bit_offset: 25 - bit_size: 1 - - name: CAN2SMEN - description: CAN2 clocks enable during Sleep and Stop modes - bit_offset: 26 - bit_size: 1 - - name: USBSMEN - description: USB FS clock enable during Sleep and Stop modes - bit_offset: 26 - bit_size: 1 - - name: PWRSMEN - description: Power interface clocks enable during Sleep and Stop modes - bit_offset: 28 - bit_size: 1 - - name: DAC1SMEN - description: DAC1 interface clocks enable during Sleep and Stop modes - bit_offset: 29 - bit_size: 1 - - name: OPAMPSMEN - description: OPAMP interface clocks enable during Sleep and Stop modes - bit_offset: 30 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clocks enable during Sleep and Stop modes - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: TIM3 timer clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: TIM4SMEN + description: TIM4 timer clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: TIM5SMEN + description: TIM5 timer clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: TIM6SMEN + description: TIM6 timer clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: TIM7SMEN + description: TIM7 timer clocks enable during Sleep and Stop modes + bit_offset: 5 + bit_size: 1 + - name: LCDSMEN + description: LCD clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC APB clock enable during Sleep and Stop modes + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clocks enable during Sleep and Stop modes + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clocks enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: SP3SMEN + description: SPI3 clocks enable during Sleep and Stop modes + bit_offset: 15 + bit_size: 1 + - name: USART2SMEN + description: USART2 clocks enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: USART3SMEN + description: USART3 clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: UART4SMEN + description: UART4 clocks enable during Sleep and Stop modes + bit_offset: 19 + bit_size: 1 + - name: UART5SMEN + description: UART5 clocks enable during Sleep and Stop modes + bit_offset: 20 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clocks enable during Sleep and Stop modes + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clocks enable during Sleep and Stop modes + bit_offset: 23 + bit_size: 1 + - name: CRSSMEN + description: CRS clock enable during Sleep and Stop modes + bit_offset: 24 + bit_size: 1 + - name: CAN1SMEN + description: CAN1 clocks enable during Sleep and Stop modes + bit_offset: 25 + bit_size: 1 + - name: CAN2SMEN + description: CAN2 clocks enable during Sleep and Stop modes + bit_offset: 26 + bit_size: 1 + - name: USBSMEN + description: USB FS clock enable during Sleep and Stop modes + bit_offset: 26 + bit_size: 1 + - name: PWRSMEN + description: Power interface clocks enable during Sleep and Stop modes + bit_offset: 28 + bit_size: 1 + - name: DAC1SMEN + description: DAC1 interface clocks enable during Sleep and Stop modes + bit_offset: 29 + bit_size: 1 + - name: OPAMPSMEN + description: OPAMP interface clocks enable during Sleep and Stop modes + bit_offset: 30 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clocks enable during Sleep and Stop modes + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR2: description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: I2C4SMEN - description: I2C4 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: SWPMI1SMEN - description: Single wire protocol clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: LPTIM2SMEN - description: LPTIM2SMEN - bit_offset: 5 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: I2C4SMEN + description: I2C4 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: SWPMI1SMEN + description: Single wire protocol clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: LPTIM2SMEN + description: LPTIM2SMEN + bit_offset: 5 + bit_size: 1 fieldset/APB2ENR: description: APB2ENR fields: - - name: SYSCFGEN - description: SYSCFG clock enable - bit_offset: 0 - bit_size: 1 - - name: FWEN - description: Firewall clock enable - bit_offset: 7 - bit_size: 1 - - name: SDMMCEN - description: SDMMC clock enable - bit_offset: 10 - bit_size: 1 - - name: TIM1EN - description: TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: TIM8 timer clock enable - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: USART1clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: SAI1EN - description: SAI1 clock enable - bit_offset: 21 - bit_size: 1 - - name: SAI2EN - description: SAI2 clock enable - bit_offset: 22 - bit_size: 1 - - name: DFSDM1EN - description: DFSDM timer clock enable - bit_offset: 24 - bit_size: 1 - - name: DFSDMEN - description: DFSDM timer clock enable - bit_offset: 24 - bit_size: 1 - - name: LTDCEN - description: LCD-TFT clock enable - bit_offset: 26 - bit_size: 1 - - name: DSIEN - description: DSI clock enable - bit_offset: 27 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: FWEN + description: Firewall clock enable + bit_offset: 7 + bit_size: 1 + - name: SDMMCEN + description: SDMMC clock enable + bit_offset: 10 + bit_size: 1 + - name: TIM1EN + description: TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: TIM8 timer clock enable + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: USART1clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: SAI1EN + description: SAI1 clock enable + bit_offset: 21 + bit_size: 1 + - name: SAI2EN + description: SAI2 clock enable + bit_offset: 22 + bit_size: 1 + - name: DFSDM1EN + description: DFSDM timer clock enable + bit_offset: 24 + bit_size: 1 + - name: DFSDMEN + description: DFSDM timer clock enable + bit_offset: 24 + bit_size: 1 + - name: LTDCEN + description: LCD-TFT clock enable + bit_offset: 26 + bit_size: 1 + - name: DSIEN + description: DSI clock enable + bit_offset: 27 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: SYSCFGRST - description: System configuration (SYSCFG) reset - bit_offset: 0 - bit_size: 1 - - name: SDMMCRST - description: SDMMC reset - bit_offset: 10 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: TIM8 timer reset - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: SAI1RST - description: Serial audio interface 1 (SAI1) reset - bit_offset: 21 - bit_size: 1 - - name: SAI2RST - description: Serial audio interface 2 (SAI2) reset - bit_offset: 22 - bit_size: 1 - - name: DFSDM1RST - description: Digital filters for sigma-delata modulators (DFSDM) reset - bit_offset: 24 - bit_size: 1 - - name: DFSDMRST - description: DFSDM filter reset - bit_offset: 24 - bit_size: 1 - - name: LTDCRST - description: LCD-TFT reset - bit_offset: 26 - bit_size: 1 - - name: DSIRST - description: DSI reset - bit_offset: 27 - bit_size: 1 + - name: SYSCFGRST + description: System configuration (SYSCFG) reset + bit_offset: 0 + bit_size: 1 + - name: SDMMCRST + description: SDMMC reset + bit_offset: 10 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: TIM8 timer reset + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: SAI1RST + description: Serial audio interface 1 (SAI1) reset + bit_offset: 21 + bit_size: 1 + - name: SAI2RST + description: Serial audio interface 2 (SAI2) reset + bit_offset: 22 + bit_size: 1 + - name: DFSDM1RST + description: Digital filters for sigma-delata modulators (DFSDM) reset + bit_offset: 24 + bit_size: 1 + - name: DFSDMRST + description: DFSDM filter reset + bit_offset: 24 + bit_size: 1 + - name: LTDCRST + description: LCD-TFT reset + bit_offset: 26 + bit_size: 1 + - name: DSIRST + description: DSI reset + bit_offset: 27 + bit_size: 1 fieldset/APB2SMENR: description: APB2SMENR fields: - - name: SYSCFGSMEN - description: SYSCFG clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: SDMMCSMEN - description: SDMMC clocks enable during Sleep and Stop modes - bit_offset: 10 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clocks enable during Sleep and Stop modes - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clocks enable during Sleep and Stop modes - bit_offset: 12 - bit_size: 1 - - name: TIM8SMEN - description: TIM8 timer clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: USART1SMEN - description: USART1clocks enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: TIM15SMEN - description: TIM15 timer clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clocks enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: SAI1SMEN - description: SAI1 clocks enable during Sleep and Stop modes - bit_offset: 21 - bit_size: 1 - - name: SAI2SMEN - description: SAI2 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 - - name: DFSDM1SMEN - description: DFSDM timer clocks enable during Sleep and Stop modes - bit_offset: 24 - bit_size: 1 - - name: DFSDMSMEN - description: DFSDM timer clocks enable during Sleep and Stop modes - bit_offset: 24 - bit_size: 1 - - name: LTDCSMEN - description: LCD-TFT timer clocks enable during Sleep and Stop modes - bit_offset: 26 - bit_size: 1 - - name: DSISMEN - description: DSI clocks enable during Sleep and Stop modes - bit_offset: 27 - bit_size: 1 + - name: SYSCFGSMEN + description: SYSCFG clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: SDMMCSMEN + description: SDMMC clocks enable during Sleep and Stop modes + bit_offset: 10 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clocks enable during Sleep and Stop modes + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clocks enable during Sleep and Stop modes + bit_offset: 12 + bit_size: 1 + - name: TIM8SMEN + description: TIM8 timer clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: USART1SMEN + description: USART1clocks enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: TIM15SMEN + description: TIM15 timer clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clocks enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: SAI1SMEN + description: SAI1 clocks enable during Sleep and Stop modes + bit_offset: 21 + bit_size: 1 + - name: SAI2SMEN + description: SAI2 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 + - name: DFSDM1SMEN + description: DFSDM timer clocks enable during Sleep and Stop modes + bit_offset: 24 + bit_size: 1 + - name: DFSDMSMEN + description: DFSDM timer clocks enable during Sleep and Stop modes + bit_offset: 24 + bit_size: 1 + - name: LTDCSMEN + description: LCD-TFT timer clocks enable during Sleep and Stop modes + bit_offset: 26 + bit_size: 1 + - name: DSISMEN + description: DSI clocks enable during Sleep and Stop modes + bit_offset: 27 + bit_size: 1 fieldset/BDCR: description: BDCR fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: SE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: LSECSSON - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: LSECSSD - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low speed clock output enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low speed clock output selection - bit_offset: 25 - bit_size: 1 + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: SE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: LSECSSON + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: LSECSSD + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low speed clock output enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low speed clock output selection + bit_offset: 25 + bit_size: 1 fieldset/CCIPR: description: CCIPR fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - - name: USART3SEL - description: USART3 clock source selection - bit_offset: 4 - bit_size: 2 - - name: UART4SEL - description: UART4 clock source selection - bit_offset: 6 - bit_size: 2 - - name: UART5SEL - description: UART5 clock source selection - bit_offset: 8 - bit_size: 2 - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - - name: I2C2SEL - description: I2C2 clock source selection - bit_offset: 14 - bit_size: 2 - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 18 - bit_size: 2 - - name: LPTIM2SEL - description: Low power timer 2 clock source selection - bit_offset: 20 - bit_size: 2 - - name: SAI1SEL - description: SAI1 clock source selection - bit_offset: 22 - bit_size: 2 - - name: SAI2SEL - description: SAI2 clock source selection - bit_offset: 24 - bit_size: 2 - - name: CLK48SEL - description: 48 MHz clock source selection - bit_offset: 26 - bit_size: 2 - - name: ADCSEL - description: ADCs clock source selection - bit_offset: 28 - bit_size: 2 - - name: SWPMI1SEL - description: SWPMI1 clock source selection - bit_offset: 30 - bit_size: 1 - - name: DFSDMSEL - description: DFSDM clock source selection - bit_offset: 31 - bit_size: 1 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + - name: USART3SEL + description: USART3 clock source selection + bit_offset: 4 + bit_size: 2 + - name: UART4SEL + description: UART4 clock source selection + bit_offset: 6 + bit_size: 2 + - name: UART5SEL + description: UART5 clock source selection + bit_offset: 8 + bit_size: 2 + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + - name: I2C2SEL + description: I2C2 clock source selection + bit_offset: 14 + bit_size: 2 + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 18 + bit_size: 2 + - name: LPTIM2SEL + description: Low power timer 2 clock source selection + bit_offset: 20 + bit_size: 2 + - name: SAI1SEL + description: SAI1 clock source selection + bit_offset: 22 + bit_size: 2 + - name: SAI2SEL + description: SAI2 clock source selection + bit_offset: 24 + bit_size: 2 + - name: CLK48SEL + description: 48 MHz clock source selection + bit_offset: 26 + bit_size: 2 + - name: ADCSEL + description: ADCs clock source selection + bit_offset: 28 + bit_size: 2 + - name: SWPMI1SEL + description: SWPMI1 clock source selection + bit_offset: 30 + bit_size: 1 + - name: DFSDMSEL + description: DFSDM clock source selection + bit_offset: 31 + bit_size: 1 fieldset/CCIPR2: description: Peripherals independent clock configuration register fields: - - name: I2C4SEL - description: I2C4 clock source selection - bit_offset: 0 - bit_size: 2 - - name: DFSDMSEL - description: Digital filter for sigma delta modulator kernel clock source selection - bit_offset: 2 - bit_size: 1 - - name: ADFSDMSEL - description: Digital filter for sigma delta modulator audio clock source selection - bit_offset: 3 - bit_size: 2 - - name: SAI1SEL - description: SAI1 clock source selection - bit_offset: 5 - bit_size: 3 - - name: SAI2SEL - description: SAI2 clock source selection - bit_offset: 8 - bit_size: 3 - - name: DSISEL - description: clock selection - bit_offset: 12 - bit_size: 1 - - name: SDMMCSEL - description: SDMMC clock selection - bit_offset: 14 - bit_size: 1 - - name: PLLSAI2DIVR - description: division factor for LTDC clock - bit_offset: 16 - bit_size: 2 - - name: OSPISEL - description: Octospi clock source selection - bit_offset: 20 - bit_size: 2 + - name: I2C4SEL + description: I2C4 clock source selection + bit_offset: 0 + bit_size: 2 + - name: DFSDMSEL + description: Digital filter for sigma delta modulator kernel clock source selection + bit_offset: 2 + bit_size: 1 + - name: ADFSDMSEL + description: Digital filter for sigma delta modulator audio clock source selection + bit_offset: 3 + bit_size: 2 + - name: SAI1SEL + description: SAI1 clock source selection + bit_offset: 5 + bit_size: 3 + - name: SAI2SEL + description: SAI2 clock source selection + bit_offset: 8 + bit_size: 3 + - name: DSISEL + description: clock selection + bit_offset: 12 + bit_size: 1 + - name: SDMMCSEL + description: SDMMC clock selection + bit_offset: 14 + bit_size: 1 + - name: PLLSAI2DIVR + description: division factor for LTDC clock + bit_offset: 16 + bit_size: 2 + - name: OSPISEL + description: Octospi clock source selection + bit_offset: 20 + bit_size: 2 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SW - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: STOPWUCK - description: Wakeup from Stop and CSS backup clock selection - bit_offset: 15 - bit_size: 1 - enum: STOPWUCK - - name: MCOSEL - description: Microcontroller clock output selection - bit_offset: 24 - bit_size: 4 - enum: MCOSEL - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SW + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: STOPWUCK + description: Wakeup from Stop and CSS backup clock selection + bit_offset: 15 + bit_size: 1 + enum: STOPWUCK + - name: MCOSEL + description: Microcontroller clock output selection + bit_offset: 24 + bit_size: 4 + enum: MCOSEL + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: MSIRDYC - description: MSI ready interrupt clear - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYC - description: PLLSAI1 ready interrupt clear - bit_offset: 6 - bit_size: 1 - - name: PLLSAI2RDYC - description: PLLSAI2 ready interrupt clear - bit_offset: 7 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYC - description: HSI48 oscillator ready interrupt clear - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: MSIRDYC + description: MSI ready interrupt clear + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYC + description: PLLSAI1 ready interrupt clear + bit_offset: 6 + bit_size: 1 + - name: PLLSAI2RDYC + description: PLLSAI2 ready interrupt clear + bit_offset: 7 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYC + description: HSI48 oscillator ready interrupt clear + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt enable - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYIE - description: PLLSAI1 ready interrupt enable - bit_offset: 6 - bit_size: 1 - - name: PLLSAI2RDYIE - description: PLLSAI2 ready interrupt enable - bit_offset: 7 - bit_size: 1 - - name: LSECSSIE - description: LSE clock security system interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYIE - description: HSI48 ready interrupt enable - bit_offset: 10 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt enable + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYIE + description: PLLSAI1 ready interrupt enable + bit_offset: 6 + bit_size: 1 + - name: PLLSAI2RDYIE + description: PLLSAI2 ready interrupt enable + bit_offset: 7 + bit_size: 1 + - name: LSECSSIE + description: LSE clock security system interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYIE + description: HSI48 ready interrupt enable + bit_offset: 10 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYF - description: PLLSAI1 ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: PLLSAI2RDYF - description: PLLSAI2 ready interrupt flag - bit_offset: 7 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYF - description: HSI48 ready interrupt flag - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYF + description: PLLSAI1 ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: PLLSAI2RDYF + description: PLLSAI2 ready interrupt flag + bit_offset: 7 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYF + description: HSI48 ready interrupt flag + bit_offset: 10 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: MSION - description: MSI clock enable - bit_offset: 0 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag - bit_offset: 1 - bit_size: 1 - - name: MSIPLLEN - description: MSI clock PLL enable - bit_offset: 2 - bit_size: 1 - - name: MSIRGSEL - description: MSI clock range selection - bit_offset: 3 - bit_size: 1 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 4 - bit_size: 4 - enum: MSIRANGE - - name: HSION - description: HSI clock enable - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI always enable for peripheral kernels - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI clock ready flag - bit_offset: 10 - bit_size: 1 - - name: HSIASFS - description: HSI automatic start from Stop - bit_offset: 11 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE crystal oscillator bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLLSAI1ON - description: SAI1 PLL enable - bit_offset: 26 - bit_size: 1 - - name: PLLSAI1RDY - description: SAI1 PLL clock ready flag - bit_offset: 27 - bit_size: 1 - - name: PLLSAI2ON - description: SAI2 PLL enable - bit_offset: 28 - bit_size: 1 - - name: PLLSAI2RDY - description: SAI2 PLL clock ready flag - bit_offset: 29 - bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 0 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag + bit_offset: 1 + bit_size: 1 + - name: MSIPLLEN + description: MSI clock PLL enable + bit_offset: 2 + bit_size: 1 + - name: MSIRGSEL + description: MSI clock range selection + bit_offset: 3 + bit_size: 1 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 4 + bit_size: 4 + enum: MSIRANGE + - name: HSION + description: HSI clock enable + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI always enable for peripheral kernels + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI clock ready flag + bit_offset: 10 + bit_size: 1 + - name: HSIASFS + description: HSI automatic start from Stop + bit_offset: 11 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE crystal oscillator bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLLSAI1ON + description: SAI1 PLL enable + bit_offset: 26 + bit_size: 1 + - name: PLLSAI1RDY + description: SAI1 PLL clock ready flag + bit_offset: 27 + bit_size: 1 + - name: PLLSAI2ON + description: SAI2 PLL enable + bit_offset: 28 + bit_size: 1 + - name: PLLSAI2RDY + description: SAI2 PLL clock ready flag + bit_offset: 29 + bit_size: 1 fieldset/CRRCR: description: Clock recovery RC register fields: - - name: HSI48ON - description: HSI48 clock enable - bit_offset: 0 - bit_size: 1 - - name: HSI48RDY - description: HSI48 clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSI48CAL - description: HSI48 clock calibration - bit_offset: 7 - bit_size: 9 + - name: HSI48ON + description: HSI48 clock enable + bit_offset: 0 + bit_size: 1 + - name: HSI48RDY + description: HSI48 clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSI48CAL + description: HSI48 clock calibration + bit_offset: 7 + bit_size: 9 fieldset/CSR: description: CSR fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 - - name: MSISRANGE - description: SI range after Standby mode - bit_offset: 8 - bit_size: 4 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: FWRSTF - description: Firewall reset flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: BOR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 + - name: MSISRANGE + description: SI range after Standby mode + bit_offset: 8 + bit_size: 4 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: FWRSTF + description: Firewall reset flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: BOR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: MSICAL - description: MSI clock calibration - bit_offset: 0 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 8 - bit_size: 8 - - name: HSICAL - description: HSI clock calibration - bit_offset: 16 - bit_size: 8 - - name: HSITRIM - description: HSI clock trimming - bit_offset: 24 - bit_size: 7 + - name: MSICAL + description: MSI clock calibration + bit_offset: 0 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 8 + bit_size: 8 + - name: HSICAL + description: HSI clock calibration + bit_offset: 16 + bit_size: 8 + - name: HSITRIM + description: HSI clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLSRC - description: "Main PLL, PLLSAI1 and PLLSAI2 entry clock source" - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLM - description: Division factor for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock - bit_offset: 4 - bit_size: 4 - - name: PLLN - description: Main PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: Main PLL PLLSAI3CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: Main PLL division factor for PLLSAI3CLK (SAI1 and SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLQEN - description: Main PLL PLLUSB1CLK output enable - bit_offset: 20 - bit_size: 1 - - name: PLLQ - description: Main PLL division factor for PLLUSB1CLK(48 MHz clock) - bit_offset: 21 - bit_size: 2 - - name: PLLREN - description: Main PLL PLLCLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLR - description: Main PLL division factor for PLLCLK (system clock) - bit_offset: 25 - bit_size: 2 - - name: PLLPDIV - description: Main PLL division factor for PLLSAI2CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSRC + description: Main PLL, PLLSAI1 and PLLSAI2 entry clock source + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLM + description: Division factor for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock + bit_offset: 4 + bit_size: 4 + - name: PLLN + description: Main PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: Main PLL PLLSAI3CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: Main PLL division factor for PLLSAI3CLK (SAI1 and SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLQEN + description: Main PLL PLLUSB1CLK output enable + bit_offset: 20 + bit_size: 1 + - name: PLLQ + description: Main PLL division factor for PLLUSB1CLK(48 MHz clock) + bit_offset: 21 + bit_size: 2 + - name: PLLREN + description: Main PLL PLLCLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLR + description: Main PLL division factor for PLLCLK (system clock) + bit_offset: 25 + bit_size: 2 + - name: PLLPDIV + description: Main PLL division factor for PLLSAI2CLK + bit_offset: 27 + bit_size: 5 fieldset/PLLSAI1CFGR: description: PLLSAI1 configuration register fields: - - name: PLLSAI1M - description: Division factor for PLLSAI1 input clock - bit_offset: 4 - bit_size: 4 - - name: PLLSAI1N - description: SAI1PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLSAI1PEN - description: SAI1PLL PLLSAI1CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLSAI1P - description: SAI1PLL division factor for PLLSAI1CLK (SAI1 or SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLSAI1QEN - description: SAI1PLL PLLUSB2CLK output enable - bit_offset: 20 - bit_size: 1 - - name: PLLSAI1Q - description: SAI1PLL division factor for PLLUSB2CLK (48 MHz clock) - bit_offset: 21 - bit_size: 2 - - name: PLLSAI1REN - description: PLLSAI1 PLLADC1CLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLSAI1R - description: PLLSAI1 division factor for PLLADC1CLK (ADC clock) - bit_offset: 25 - bit_size: 2 - - name: PLLSAI1PDIV - description: PLLSAI1 division factor for PLLSAI1CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSAI1M + description: Division factor for PLLSAI1 input clock + bit_offset: 4 + bit_size: 4 + - name: PLLSAI1N + description: SAI1PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLSAI1PEN + description: SAI1PLL PLLSAI1CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLSAI1P + description: SAI1PLL division factor for PLLSAI1CLK (SAI1 or SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLSAI1QEN + description: SAI1PLL PLLUSB2CLK output enable + bit_offset: 20 + bit_size: 1 + - name: PLLSAI1Q + description: SAI1PLL division factor for PLLUSB2CLK (48 MHz clock) + bit_offset: 21 + bit_size: 2 + - name: PLLSAI1REN + description: PLLSAI1 PLLADC1CLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLSAI1R + description: PLLSAI1 division factor for PLLADC1CLK (ADC clock) + bit_offset: 25 + bit_size: 2 + - name: PLLSAI1PDIV + description: PLLSAI1 division factor for PLLSAI1CLK + bit_offset: 27 + bit_size: 5 fieldset/PLLSAI2CFGR: description: PLLSAI2 configuration register fields: - - name: PLLSAI2M - description: Division factor for PLLSAI2 input clock - bit_offset: 4 - bit_size: 4 - - name: PLLSAI2N - description: SAI2PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLSAI2PEN - description: SAI2PLL PLLSAI2CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLSAI2P - description: SAI1PLL division factor for PLLSAI2CLK (SAI1 or SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLSAI2QEN - description: PLLSAI2 division factor for PLLDISCLK - bit_offset: 20 - bit_size: 1 - - name: PLLSAI2Q - description: SAI2PLL PLLSAI2CLK output enable - bit_offset: 21 - bit_size: 2 - - name: PLLSAI2REN - description: PLLSAI2 PLLADC2CLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLSAI2R - description: PLLSAI2 division factor for PLLADC2CLK (ADC clock) - bit_offset: 25 - bit_size: 2 - - name: PLLSAI2PDIV - description: PLLSAI2 division factor for PLLSAI2CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSAI2M + description: Division factor for PLLSAI2 input clock + bit_offset: 4 + bit_size: 4 + - name: PLLSAI2N + description: SAI2PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLSAI2PEN + description: SAI2PLL PLLSAI2CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLSAI2P + description: SAI1PLL division factor for PLLSAI2CLK (SAI1 or SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLSAI2QEN + description: PLLSAI2 division factor for PLLDISCLK + bit_offset: 20 + bit_size: 1 + - name: PLLSAI2Q + description: SAI2PLL PLLSAI2CLK output enable + bit_offset: 21 + bit_size: 2 + - name: PLLSAI2REN + description: PLLSAI2 PLLADC2CLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLSAI2R + description: PLLSAI2 division factor for PLLADC2CLK (ADC clock) + bit_offset: 25 + bit_size: 2 + - name: PLLSAI2PDIV + description: PLLSAI2 division factor for PLLSAI2CLK + bit_offset: 27 + bit_size: 5 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: system clock not divided - value: 0 - - name: Div2 - description: system clock divided by 2 - value: 8 - - name: Div4 - description: system clock divided by 4 - value: 9 - - name: Div8 - description: system clock divided by 8 - value: 10 - - name: Div16 - description: system clock divided by 16 - value: 11 - - name: Div64 - description: system clock divided by 64 - value: 12 - - name: Div128 - description: system clock divided by 128 - value: 13 - - name: Div256 - description: system clock divided by 256 - value: 14 - - name: Div512 - description: system clock divided by 512 - value: 15 + - name: Div1 + description: system clock not divided + value: 0 + - name: Div2 + description: system clock divided by 2 + value: 8 + - name: Div4 + description: system clock divided by 4 + value: 9 + - name: Div8 + description: system clock divided by 8 + value: 10 + - name: Div16 + description: system clock divided by 16 + value: 11 + - name: Div64 + description: system clock divided by 64 + value: 12 + - name: Div128 + description: system clock divided by 128 + value: 13 + - name: Div256 + description: system clock divided by 256 + value: 14 + - name: Div512 + description: system clock divided by 512 + value: 15 enum/LSEDRV: bit_size: 2 variants: - - name: Low - description: Lowest drive - value: 0 - - name: MediumLow - description: Medium low drive - value: 1 - - name: MediumHigh - description: Medium high drive - value: 2 - - name: High - description: Highest drive - value: 3 + - name: Low + description: Lowest drive + value: 0 + - name: MediumLow + description: Medium low drive + value: 1 + - name: MediumHigh + description: Medium high drive + value: 2 + - name: High + description: Highest drive + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: No division - value: 0 - - name: Div2 - description: Division by 2 - value: 1 - - name: Div4 - description: Division by 4 - value: 2 - - name: Div8 - description: Division by 8 - value: 3 - - name: Div16 - description: Division by 16 - value: 4 + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 + - name: Div16 + description: Division by 16 + value: 4 enum/MCOSEL: bit_size: 4 variants: - - name: NoClock - description: No clock - value: 0 - - name: SYSCLK - description: SYSCLK clock selected - value: 1 - - name: MSI - description: MSI oscillator clock selected - value: 2 - - name: HSI16 - description: HSI oscillator clock selected - value: 3 - - name: HSE - description: HSE oscillator clock selected - value: 4 - - name: PLL - description: PLL clock selected - value: 5 - - name: LSI - description: LSI oscillator clock selected - value: 6 - - name: LSE - description: LSE oscillator clock selected - value: 7 - - name: HSI48 - description: HSI48 oscillator clock selected - value: 8 + - name: NoClock + description: No clock + value: 0 + - name: SYSCLK + description: SYSCLK clock selected + value: 1 + - name: MSI + description: MSI oscillator clock selected + value: 2 + - name: HSI16 + description: HSI oscillator clock selected + value: 3 + - name: HSE + description: HSE oscillator clock selected + value: 4 + - name: PLL + description: PLL clock selected + value: 5 + - name: LSI + description: LSI oscillator clock selected + value: 6 + - name: LSE + description: LSE oscillator clock selected + value: 7 + - name: HSI48 + description: HSI48 oscillator clock selected + value: 8 enum/MSIRANGE: bit_size: 4 variants: - - name: Range100K - description: range 0 around 100 kHz - value: 0 - - name: Range200K - description: range 1 around 200 kHz - value: 1 - - name: Range400K - description: range 2 around 400 kHz - value: 2 - - name: Range800K - description: range 3 around 800 kHz - value: 3 - - name: Range1M - description: range 4 around 1 MHz - value: 4 - - name: Range2M - description: range 5 around 2 MHz - value: 5 - - name: Range4M - description: range 6 around 4 MHz - value: 6 - - name: Range8M - description: range 7 around 8 MHz - value: 7 - - name: Range16M - description: range 8 around 16 MHz - value: 8 - - name: Range24M - description: range 9 around 24 MHz - value: 9 - - name: Range32M - description: range 10 around 32 MHz - value: 10 - - name: Range48M - description: range 11 around 48 MHz - value: 11 + - name: Range100K + description: range 0 around 100 kHz + value: 0 + - name: Range200K + description: range 1 around 200 kHz + value: 1 + - name: Range400K + description: range 2 around 400 kHz + value: 2 + - name: Range800K + description: range 3 around 800 kHz + value: 3 + - name: Range1M + description: range 4 around 1 MHz + value: 4 + - name: Range2M + description: range 5 around 2 MHz + value: 5 + - name: Range4M + description: range 6 around 4 MHz + value: 6 + - name: Range8M + description: range 7 around 8 MHz + value: 7 + - name: Range16M + description: range 8 around 16 MHz + value: 8 + - name: Range24M + description: range 9 around 24 MHz + value: 9 + - name: Range32M + description: range 10 around 32 MHz + value: 10 + - name: Range48M + description: range 11 around 48 MHz + value: 11 enum/PLLSRC: bit_size: 2 variants: - - name: None - description: No clock sent to PLL - value: 0 - - name: MSI - description: MSI selected as PLL input clock - value: 1 - - name: HSI16 - description: HSI selected as PLL input clock - value: 2 - - name: HSE - description: HSE selected as PLL input clock - value: 3 + - name: None + description: No clock sent to PLL + value: 0 + - name: MSI + description: MSI selected as PLL input clock + value: 1 + - name: HSI16 + description: HSI selected as PLL input clock + value: 2 + - name: HSE + description: HSE selected as PLL input clock + value: 3 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by 32 used as the RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 used as the RTC clock + value: 3 enum/STOPWUCK: bit_size: 1 variants: - - name: MSI - description: MSI oscillator selected as wake-up from Stop clock - value: 0 - - name: HSI16 - description: HSI oscillator selected as wake-up from Stop clock - value: 1 + - name: MSI + description: MSI oscillator selected as wake-up from Stop clock + value: 0 + - name: HSI16 + description: HSI oscillator selected as wake-up from Stop clock + value: 1 enum/SW: bit_size: 2 variants: - - name: MSI - description: MSI selected as system clock - value: 0 - - name: HSI16 - description: HSI selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL - description: PLL selected as system clock - value: 3 + - name: MSI + description: MSI selected as system clock + value: 0 + - name: HSI16 + description: HSI selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL + description: PLL selected as system clock + value: 3 diff --git a/data/registers/rcc_l5.yaml b/data/registers/rcc_l5.yaml index 9cf1aaa..1ab2625 100644 --- a/data/registers/rcc_l5.yaml +++ b/data/registers/rcc_l5.yaml @@ -1,2202 +1,2201 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 12 - fieldset: PLLCFGR - - name: PLLSAI1CFGR - description: PLLSAI1 configuration register - byte_offset: 16 - fieldset: PLLSAI1CFGR - - name: PLLSAI2CFGR - description: PLLSAI2 configuration register - byte_offset: 20 - fieldset: PLLSAI2CFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 40 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 44 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 48 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: APB1 peripheral reset register 1 - byte_offset: 56 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: APB1 peripheral reset register 2 - byte_offset: 60 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 64 - fieldset: APB2RSTR - - name: AHB1ENR - description: AHB1 peripheral clock enable register - byte_offset: 72 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 76 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 80 - fieldset: AHB3ENR - - name: APB1ENR1 - description: APB1ENR1 - byte_offset: 88 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: APB1 peripheral clock enable register 2 - byte_offset: 92 - fieldset: APB1ENR2 - - name: APB2ENR - description: APB2ENR - byte_offset: 96 - fieldset: APB2ENR - - name: AHB1SMENR - description: AHB1 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 104 - fieldset: AHB1SMENR - - name: AHB2SMENR - description: AHB2 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 108 - fieldset: AHB2SMENR - - name: AHB3SMENR - description: AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 112 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: APB1SMENR1 - byte_offset: 120 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 - byte_offset: 124 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: APB2SMENR - byte_offset: 128 - fieldset: APB2SMENR - - name: CCIPR1 - description: CCIPR1 - byte_offset: 136 - fieldset: CCIPR1 - - name: BDCR - description: BDCR - byte_offset: 144 - fieldset: BDCR - - name: CSR - description: CSR - byte_offset: 148 - fieldset: CSR - - name: CRRCR - description: Clock recovery RC register - byte_offset: 152 - fieldset: CRRCR - - name: CCIPR2 - description: Peripherals independent clock configuration register - byte_offset: 156 - fieldset: CCIPR2 - - name: SECCFGR - description: RCC secure configuration register - byte_offset: 184 - fieldset: SECCFGR - - name: SECSR - description: RCC secure status register - byte_offset: 188 - fieldset: SECSR - - name: AHB1SECSR - description: RCC AHB1 security status register - byte_offset: 232 - access: Read - fieldset: AHB1SECSR - - name: AHB2SECSR - description: RCC AHB2 security status register - byte_offset: 236 - access: Read - fieldset: AHB2SECSR - - name: AHB3SECSR - description: RCC AHB3 security status register - byte_offset: 240 - access: Read - fieldset: AHB3SECSR - - name: APB1SECSR1 - description: RCC APB1 security status register 1 - byte_offset: 248 - access: Read - fieldset: APB1SECSR1 - - name: APB1SECSR2 - description: RCC APB1 security status register 2 - byte_offset: 252 - access: Read - fieldset: APB1SECSR2 - - name: APB2SECSR - description: RCC APB2 security status register - byte_offset: 256 - access: Read - fieldset: APB2SECSR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 12 + fieldset: PLLCFGR + - name: PLLSAI1CFGR + description: PLLSAI1 configuration register + byte_offset: 16 + fieldset: PLLSAI1CFGR + - name: PLLSAI2CFGR + description: PLLSAI2 configuration register + byte_offset: 20 + fieldset: PLLSAI2CFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 40 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 44 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 48 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: APB1 peripheral reset register 1 + byte_offset: 56 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: APB1 peripheral reset register 2 + byte_offset: 60 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 64 + fieldset: APB2RSTR + - name: AHB1ENR + description: AHB1 peripheral clock enable register + byte_offset: 72 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 76 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 80 + fieldset: AHB3ENR + - name: APB1ENR1 + description: APB1ENR1 + byte_offset: 88 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: APB1 peripheral clock enable register 2 + byte_offset: 92 + fieldset: APB1ENR2 + - name: APB2ENR + description: APB2ENR + byte_offset: 96 + fieldset: APB2ENR + - name: AHB1SMENR + description: AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 104 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: AHB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 108 + fieldset: AHB2SMENR + - name: AHB3SMENR + description: AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 112 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: APB1SMENR1 + byte_offset: 120 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 + byte_offset: 124 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: APB2SMENR + byte_offset: 128 + fieldset: APB2SMENR + - name: CCIPR1 + description: CCIPR1 + byte_offset: 136 + fieldset: CCIPR1 + - name: BDCR + description: BDCR + byte_offset: 144 + fieldset: BDCR + - name: CSR + description: CSR + byte_offset: 148 + fieldset: CSR + - name: CRRCR + description: Clock recovery RC register + byte_offset: 152 + fieldset: CRRCR + - name: CCIPR2 + description: Peripherals independent clock configuration register + byte_offset: 156 + fieldset: CCIPR2 + - name: SECCFGR + description: RCC secure configuration register + byte_offset: 184 + fieldset: SECCFGR + - name: SECSR + description: RCC secure status register + byte_offset: 188 + fieldset: SECSR + - name: AHB1SECSR + description: RCC AHB1 security status register + byte_offset: 232 + access: Read + fieldset: AHB1SECSR + - name: AHB2SECSR + description: RCC AHB2 security status register + byte_offset: 236 + access: Read + fieldset: AHB2SECSR + - name: AHB3SECSR + description: RCC AHB3 security status register + byte_offset: 240 + access: Read + fieldset: AHB3SECSR + - name: APB1SECSR1 + description: RCC APB1 security status register 1 + byte_offset: 248 + access: Read + fieldset: APB1SECSR1 + - name: APB1SECSR2 + description: RCC APB1 security status register 2 + byte_offset: 252 + access: Read + fieldset: APB1SECSR2 + - name: APB2SECSR + description: RCC APB2 security status register + byte_offset: 256 + access: Read + fieldset: APB2SECSR fieldset/AHB1ENR: description: AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: DMAMUX clock enable - bit_offset: 2 - bit_size: 1 - - name: FLASHEN - description: Flash memory interface clock enable - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: TSCEN - description: Touch Sensing Controller clock enable - bit_offset: 16 - bit_size: 1 - - name: GTZCEN - description: GTZCEN - bit_offset: 22 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: DMAMUX clock enable + bit_offset: 2 + bit_size: 1 + - name: FLASHEN + description: Flash memory interface clock enable + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: TSCEN + description: Touch Sensing Controller clock enable + bit_offset: 16 + bit_size: 1 + - name: GTZCEN + description: GTZCEN + bit_offset: 22 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1RST - description: DMAMUX1RST - bit_offset: 2 - bit_size: 1 - - name: FLASHRST - description: Flash memory interface reset - bit_offset: 8 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: TSCRST - description: Touch Sensing Controller reset - bit_offset: 16 - bit_size: 1 - - name: GTZCRST - description: GTZC reset - bit_offset: 22 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1RST + description: DMAMUX1RST + bit_offset: 2 + bit_size: 1 + - name: FLASHRST + description: Flash memory interface reset + bit_offset: 8 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: TSCRST + description: Touch Sensing Controller reset + bit_offset: 16 + bit_size: 1 + - name: GTZCRST + description: GTZC reset + bit_offset: 22 + bit_size: 1 fieldset/AHB1SECSR: description: RCC AHB1 security status register fields: - - name: DMA1SECF - description: DMA1SECF - bit_offset: 0 - bit_size: 1 - - name: DMA2SECF - description: DMA2SECF - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SECF - description: DMAMUX1SECF - bit_offset: 2 - bit_size: 1 - - name: FLASHSECF - description: FLASHSECF - bit_offset: 8 - bit_size: 1 - - name: SRAM1SECF - description: SRAM1SECF - bit_offset: 9 - bit_size: 1 - - name: CRCSECF - description: CRCSECF - bit_offset: 12 - bit_size: 1 - - name: TSCSECF - description: TSCSECF - bit_offset: 16 - bit_size: 1 - - name: GTZCSECF - description: GTZCSECF - bit_offset: 22 - bit_size: 1 - - name: ICACHESECF - description: ICACHESECF - bit_offset: 23 - bit_size: 1 + - name: DMA1SECF + description: DMA1SECF + bit_offset: 0 + bit_size: 1 + - name: DMA2SECF + description: DMA2SECF + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SECF + description: DMAMUX1SECF + bit_offset: 2 + bit_size: 1 + - name: FLASHSECF + description: FLASHSECF + bit_offset: 8 + bit_size: 1 + - name: SRAM1SECF + description: SRAM1SECF + bit_offset: 9 + bit_size: 1 + - name: CRCSECF + description: CRCSECF + bit_offset: 12 + bit_size: 1 + - name: TSCSECF + description: TSCSECF + bit_offset: 16 + bit_size: 1 + - name: GTZCSECF + description: GTZCSECF + bit_offset: 22 + bit_size: 1 + - name: ICACHESECF + description: ICACHESECF + bit_offset: 23 + bit_size: 1 fieldset/AHB1SMENR: description: AHB1 peripheral clocks enable in Sleep and Stop modes register fields: - - name: DMA1SMEN - description: DMA1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: DMAMUX clock enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: FLASHSMEN - description: Flash memory interface clocks enable during Sleep and Stop modes - bit_offset: 8 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CRCSMEN - bit_offset: 12 - bit_size: 1 - - name: TSCSMEN - description: Touch Sensing Controller clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: GTZCSMEN - description: GTZCSMEN - bit_offset: 22 - bit_size: 1 - - name: ICACHESMEN - description: ICACHESMEN - bit_offset: 23 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: DMAMUX clock enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: FLASHSMEN + description: Flash memory interface clocks enable during Sleep and Stop modes + bit_offset: 8 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CRCSMEN + bit_offset: 12 + bit_size: 1 + - name: TSCSMEN + description: Touch Sensing Controller clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: GTZCSMEN + description: GTZCSMEN + bit_offset: 22 + bit_size: 1 + - name: ICACHESMEN + description: ICACHESMEN + bit_offset: 23 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: IO port F clock enable - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: IO port G clock enable - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: ADCEN - description: ADC clock enable - bit_offset: 13 - bit_size: 1 - - name: AESEN - description: AES accelerator clock enable - bit_offset: 16 - bit_size: 1 - - name: HASHEN - description: HASH clock enable - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: Random Number Generator clock enable - bit_offset: 18 - bit_size: 1 - - name: PKAEN - description: PKAEN - bit_offset: 19 - bit_size: 1 - - name: OTFDEC1EN - description: OTFDEC1EN - bit_offset: 21 - bit_size: 1 - - name: SDMMC1EN - description: SDMMC1 clock enable - bit_offset: 22 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: IO port F clock enable + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: IO port G clock enable + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: ADCEN + description: ADC clock enable + bit_offset: 13 + bit_size: 1 + - name: AESEN + description: AES accelerator clock enable + bit_offset: 16 + bit_size: 1 + - name: HASHEN + description: HASH clock enable + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: Random Number Generator clock enable + bit_offset: 18 + bit_size: 1 + - name: PKAEN + description: PKAEN + bit_offset: 19 + bit_size: 1 + - name: OTFDEC1EN + description: OTFDEC1EN + bit_offset: 21 + bit_size: 1 + - name: SDMMC1EN + description: SDMMC1 clock enable + bit_offset: 22 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: IO port F reset - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: IO port G reset - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: ADCRST - description: ADC reset - bit_offset: 13 - bit_size: 1 - - name: AESRST - description: AES hardware accelerator reset - bit_offset: 16 - bit_size: 1 - - name: HASHRST - description: Hash reset - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: Random number generator reset - bit_offset: 18 - bit_size: 1 - - name: PKARST - description: PKARST - bit_offset: 19 - bit_size: 1 - - name: OTFDEC1RST - description: OTFDEC1RST - bit_offset: 21 - bit_size: 1 - - name: SDMMC1RST - description: SDMMC1 reset - bit_offset: 22 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: IO port F reset + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: IO port G reset + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: ADCRST + description: ADC reset + bit_offset: 13 + bit_size: 1 + - name: AESRST + description: AES hardware accelerator reset + bit_offset: 16 + bit_size: 1 + - name: HASHRST + description: Hash reset + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: Random number generator reset + bit_offset: 18 + bit_size: 1 + - name: PKARST + description: PKARST + bit_offset: 19 + bit_size: 1 + - name: OTFDEC1RST + description: OTFDEC1RST + bit_offset: 21 + bit_size: 1 + - name: SDMMC1RST + description: SDMMC1 reset + bit_offset: 22 + bit_size: 1 fieldset/AHB2SECSR: description: RCC AHB2 security status register fields: - - name: GPIOASECF - description: GPIOASECF - bit_offset: 0 - bit_size: 1 - - name: GPIOBSECF - description: GPIOBSECF - bit_offset: 1 - bit_size: 1 - - name: GPIOCSECF - description: GPIOCSECF - bit_offset: 2 - bit_size: 1 - - name: GPIODSECF - description: GPIODSECF - bit_offset: 3 - bit_size: 1 - - name: GPIOESECF - description: GPIOESECF - bit_offset: 4 - bit_size: 1 - - name: GPIOFSECF - description: GPIOFSECF - bit_offset: 5 - bit_size: 1 - - name: GPIOGSECF - description: GPIOGSECF - bit_offset: 6 - bit_size: 1 - - name: GPIOHSECF - description: GPIOHSECF - bit_offset: 7 - bit_size: 1 - - name: SRAM2SECF - description: SRAM2SECF - bit_offset: 9 - bit_size: 1 - - name: OTFDEC1SECF - description: OTFDEC1SECF - bit_offset: 21 - bit_size: 1 - - name: SDMMC1SECF - description: SDMMC1SECF - bit_offset: 22 - bit_size: 1 + - name: GPIOASECF + description: GPIOASECF + bit_offset: 0 + bit_size: 1 + - name: GPIOBSECF + description: GPIOBSECF + bit_offset: 1 + bit_size: 1 + - name: GPIOCSECF + description: GPIOCSECF + bit_offset: 2 + bit_size: 1 + - name: GPIODSECF + description: GPIODSECF + bit_offset: 3 + bit_size: 1 + - name: GPIOESECF + description: GPIOESECF + bit_offset: 4 + bit_size: 1 + - name: GPIOFSECF + description: GPIOFSECF + bit_offset: 5 + bit_size: 1 + - name: GPIOGSECF + description: GPIOGSECF + bit_offset: 6 + bit_size: 1 + - name: GPIOHSECF + description: GPIOHSECF + bit_offset: 7 + bit_size: 1 + - name: SRAM2SECF + description: SRAM2SECF + bit_offset: 9 + bit_size: 1 + - name: OTFDEC1SECF + description: OTFDEC1SECF + bit_offset: 21 + bit_size: 1 + - name: SDMMC1SECF + description: SDMMC1SECF + bit_offset: 22 + bit_size: 1 fieldset/AHB2SMENR: description: AHB2 peripheral clocks enable in Sleep and Stop modes register fields: - - name: GPIOASMEN - description: IO port A clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: IO port B clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: IO port C clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: IO port D clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: IO port E clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: GPIOFSMEN - description: IO port F clocks enable during Sleep and Stop modes - bit_offset: 5 - bit_size: 1 - - name: GPIOGSMEN - description: IO port G clocks enable during Sleep and Stop modes - bit_offset: 6 - bit_size: 1 - - name: GPIOHSMEN - description: IO port H clocks enable during Sleep and Stop modes - bit_offset: 7 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2 interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: ADCFSSMEN - description: ADC clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: AESSMEN - description: AES accelerator clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: HASHSMEN - description: HASH clock enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: Random Number Generator clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: PKASMEN - description: PKASMEN - bit_offset: 19 - bit_size: 1 - - name: OTFDEC1SMEN - description: OTFDEC1SMEN - bit_offset: 21 - bit_size: 1 - - name: SDMMC1SMEN - description: SDMMC1 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 + - name: GPIOASMEN + description: IO port A clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: IO port B clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: IO port C clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: IO port D clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: IO port E clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: GPIOFSMEN + description: IO port F clocks enable during Sleep and Stop modes + bit_offset: 5 + bit_size: 1 + - name: GPIOGSMEN + description: IO port G clocks enable during Sleep and Stop modes + bit_offset: 6 + bit_size: 1 + - name: GPIOHSMEN + description: IO port H clocks enable during Sleep and Stop modes + bit_offset: 7 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2 interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: ADCFSSMEN + description: ADC clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: AESSMEN + description: AES accelerator clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: HASHSMEN + description: HASH clock enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: Random Number Generator clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: PKASMEN + description: PKASMEN + bit_offset: 19 + bit_size: 1 + - name: OTFDEC1SMEN + description: OTFDEC1SMEN + bit_offset: 21 + bit_size: 1 + - name: SDMMC1SMEN + description: SDMMC1 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: FMCEN - description: Flexible memory controller clock enable - bit_offset: 0 - bit_size: 1 - - name: OSPI1EN - description: OSPI1EN - bit_offset: 8 - bit_size: 1 + - name: FMCEN + description: Flexible memory controller clock enable + bit_offset: 0 + bit_size: 1 + - name: OSPI1EN + description: OSPI1EN + bit_offset: 8 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: FMCRST - description: Flexible memory controller reset - bit_offset: 0 - bit_size: 1 - - name: OSPI1RST - description: OSPI1RST - bit_offset: 8 - bit_size: 1 + - name: FMCRST + description: Flexible memory controller reset + bit_offset: 0 + bit_size: 1 + - name: OSPI1RST + description: OSPI1RST + bit_offset: 8 + bit_size: 1 fieldset/AHB3SECSR: description: RCC AHB3 security status register fields: - - name: FSMCSECF - description: FSMCSECF - bit_offset: 0 - bit_size: 1 - - name: OSPI1SECF - description: OSPI1SECF - bit_offset: 8 - bit_size: 1 + - name: FSMCSECF + description: FSMCSECF + bit_offset: 0 + bit_size: 1 + - name: OSPI1SECF + description: OSPI1SECF + bit_offset: 8 + bit_size: 1 fieldset/AHB3SMENR: description: AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: FMCSMEN - description: Flexible memory controller clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: OSPI1SMEN - description: OSPI1SMEN - bit_offset: 8 - bit_size: 1 + - name: FMCSMEN + description: Flexible memory controller clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: OSPI1SMEN + description: OSPI1SMEN + bit_offset: 8 + bit_size: 1 fieldset/APB1ENR1: description: APB1ENR1 fields: - - name: TIM2EN - description: TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: TIM3 timer clock enable - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: TIM4 timer clock enable - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: TIM5 timer clock enable - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: TIM6 timer clock enable - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: TIM7 timer clock enable - bit_offset: 5 - bit_size: 1 - - name: RTCAPBEN - description: RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: SPI3EN - description: SPI3 clock enable - bit_offset: 15 - bit_size: 1 - - name: USART2EN - description: USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: USART3 clock enable - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: UART4 clock enable - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: UART5 clock enable - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: I2C2 clock enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: Clock Recovery System clock enable - bit_offset: 24 - bit_size: 1 - - name: PWREN - description: Power interface clock enable - bit_offset: 28 - bit_size: 1 - - name: DAC1EN - description: DAC1 interface clock enable - bit_offset: 29 - bit_size: 1 - - name: OPAMPEN - description: OPAMP interface clock enable - bit_offset: 30 - bit_size: 1 - - name: LPTIM1EN - description: Low power timer 1 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: TIM3 timer clock enable + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: TIM4 timer clock enable + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: TIM5 timer clock enable + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: TIM6 timer clock enable + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: TIM7 timer clock enable + bit_offset: 5 + bit_size: 1 + - name: RTCAPBEN + description: RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: SPI3EN + description: SPI3 clock enable + bit_offset: 15 + bit_size: 1 + - name: USART2EN + description: USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: USART3 clock enable + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: UART4 clock enable + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: UART5 clock enable + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: I2C2 clock enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: Clock Recovery System clock enable + bit_offset: 24 + bit_size: 1 + - name: PWREN + description: Power interface clock enable + bit_offset: 28 + bit_size: 1 + - name: DAC1EN + description: DAC1 interface clock enable + bit_offset: 29 + bit_size: 1 + - name: OPAMPEN + description: OPAMP interface clock enable + bit_offset: 30 + bit_size: 1 + - name: LPTIM1EN + description: Low power timer 1 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR2: description: APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: Low power UART 1 clock enable - bit_offset: 0 - bit_size: 1 - - name: I2C4EN - description: I2C4 clock enable - bit_offset: 1 - bit_size: 1 - - name: LPTIM2EN - description: LPTIM2EN - bit_offset: 5 - bit_size: 1 - - name: LPTIM3EN - description: LPTIM3EN - bit_offset: 6 - bit_size: 1 - - name: FDCAN1EN - description: FDCAN1EN - bit_offset: 9 - bit_size: 1 - - name: USBEN - description: USBEN - bit_offset: 21 - bit_size: 1 - - name: UCPD1EN - description: UCPD1EN - bit_offset: 23 - bit_size: 1 + - name: LPUART1EN + description: Low power UART 1 clock enable + bit_offset: 0 + bit_size: 1 + - name: I2C4EN + description: I2C4 clock enable + bit_offset: 1 + bit_size: 1 + - name: LPTIM2EN + description: LPTIM2EN + bit_offset: 5 + bit_size: 1 + - name: LPTIM3EN + description: LPTIM3EN + bit_offset: 6 + bit_size: 1 + - name: FDCAN1EN + description: FDCAN1EN + bit_offset: 9 + bit_size: 1 + - name: USBEN + description: USBEN + bit_offset: 21 + bit_size: 1 + - name: UCPD1EN + description: UCPD1EN + bit_offset: 23 + bit_size: 1 fieldset/APB1RSTR1: description: APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: TIM3 timer reset - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: TIM3 timer reset - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: TIM5 timer reset - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: TIM6 timer reset - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: TIM7 timer reset - bit_offset: 5 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: SPI3RST - description: SPI3 reset - bit_offset: 15 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: USART3 reset - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: UART4 reset - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: UART5 reset - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: CRSRST - description: CRS reset - bit_offset: 24 - bit_size: 1 - - name: PWRRST - description: Power interface reset - bit_offset: 28 - bit_size: 1 - - name: DAC1RST - description: DAC1 interface reset - bit_offset: 29 - bit_size: 1 - - name: OPAMPRST - description: OPAMP interface reset - bit_offset: 30 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: TIM3 timer reset + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: TIM3 timer reset + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: TIM5 timer reset + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: TIM6 timer reset + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: TIM7 timer reset + bit_offset: 5 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: SPI3RST + description: SPI3 reset + bit_offset: 15 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: USART3 reset + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: UART4 reset + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: UART5 reset + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: CRSRST + description: CRS reset + bit_offset: 24 + bit_size: 1 + - name: PWRRST + description: Power interface reset + bit_offset: 28 + bit_size: 1 + - name: DAC1RST + description: DAC1 interface reset + bit_offset: 29 + bit_size: 1 + - name: OPAMPRST + description: OPAMP interface reset + bit_offset: 30 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR2: description: APB1 peripheral reset register 2 fields: - - name: LPUART1RST - description: Low-power UART 1 reset - bit_offset: 0 - bit_size: 1 - - name: I2C4RST - description: I2C4 reset - bit_offset: 1 - bit_size: 1 - - name: LPTIM2RST - description: Low-power timer 2 reset - bit_offset: 5 - bit_size: 1 - - name: LPTIM3RST - description: LPTIM3RST - bit_offset: 6 - bit_size: 1 - - name: FDCAN1RST - description: FDCAN1RST - bit_offset: 9 - bit_size: 1 - - name: USBRST - description: USBRST - bit_offset: 21 - bit_size: 1 - - name: UCPD1RST - description: UCPD1RST - bit_offset: 23 - bit_size: 1 + - name: LPUART1RST + description: Low-power UART 1 reset + bit_offset: 0 + bit_size: 1 + - name: I2C4RST + description: I2C4 reset + bit_offset: 1 + bit_size: 1 + - name: LPTIM2RST + description: Low-power timer 2 reset + bit_offset: 5 + bit_size: 1 + - name: LPTIM3RST + description: LPTIM3RST + bit_offset: 6 + bit_size: 1 + - name: FDCAN1RST + description: FDCAN1RST + bit_offset: 9 + bit_size: 1 + - name: USBRST + description: USBRST + bit_offset: 21 + bit_size: 1 + - name: UCPD1RST + description: UCPD1RST + bit_offset: 23 + bit_size: 1 fieldset/APB1SECSR1: description: RCC APB1 security status register 1 fields: - - name: TIM2SECF - description: TIM2SECF - bit_offset: 0 - bit_size: 1 - - name: TIM3SECF - description: TIM3SECF - bit_offset: 1 - bit_size: 1 - - name: TIM4SECF - description: TIM4SECF - bit_offset: 2 - bit_size: 1 - - name: TIM5SECF - description: TIM5SECF - bit_offset: 3 - bit_size: 1 - - name: TIM6SECF - description: TIM6SECF - bit_offset: 4 - bit_size: 1 - - name: TIM7SECF - description: TIM7SECF - bit_offset: 5 - bit_size: 1 - - name: RTCAPBSECF - description: RTCAPBSECF - bit_offset: 10 - bit_size: 1 - - name: WWDGSECF - description: WWDGSECF - bit_offset: 11 - bit_size: 1 - - name: SPI2SECF - description: SPI2SECF - bit_offset: 14 - bit_size: 1 - - name: SPI3SECF - description: SPI3SECF - bit_offset: 15 - bit_size: 1 - - name: UART2SECF - description: UART2SECF - bit_offset: 17 - bit_size: 1 - - name: UART3SECF - description: UART3SECF - bit_offset: 18 - bit_size: 1 - - name: UART4SECF - description: UART4SECF - bit_offset: 19 - bit_size: 1 - - name: UART5SECF - description: UART5SECF - bit_offset: 20 - bit_size: 1 - - name: I2C1SECF - description: I2C1SECF - bit_offset: 21 - bit_size: 1 - - name: I2C2SECF - description: I2C2SECF - bit_offset: 22 - bit_size: 1 - - name: I2C3SECF - description: I2C3SECF - bit_offset: 23 - bit_size: 1 - - name: CRSSECF - description: CRSSECF - bit_offset: 24 - bit_size: 1 - - name: PWRSECF - description: PWRSECF - bit_offset: 28 - bit_size: 1 - - name: DACSECF - description: DACSECF - bit_offset: 29 - bit_size: 1 - - name: OPAMPSECF - description: OPAMPSECF - bit_offset: 30 - bit_size: 1 - - name: LPTIM1SECF - description: LPTIM1SECF - bit_offset: 31 - bit_size: 1 + - name: TIM2SECF + description: TIM2SECF + bit_offset: 0 + bit_size: 1 + - name: TIM3SECF + description: TIM3SECF + bit_offset: 1 + bit_size: 1 + - name: TIM4SECF + description: TIM4SECF + bit_offset: 2 + bit_size: 1 + - name: TIM5SECF + description: TIM5SECF + bit_offset: 3 + bit_size: 1 + - name: TIM6SECF + description: TIM6SECF + bit_offset: 4 + bit_size: 1 + - name: TIM7SECF + description: TIM7SECF + bit_offset: 5 + bit_size: 1 + - name: RTCAPBSECF + description: RTCAPBSECF + bit_offset: 10 + bit_size: 1 + - name: WWDGSECF + description: WWDGSECF + bit_offset: 11 + bit_size: 1 + - name: SPI2SECF + description: SPI2SECF + bit_offset: 14 + bit_size: 1 + - name: SPI3SECF + description: SPI3SECF + bit_offset: 15 + bit_size: 1 + - name: UART2SECF + description: UART2SECF + bit_offset: 17 + bit_size: 1 + - name: UART3SECF + description: UART3SECF + bit_offset: 18 + bit_size: 1 + - name: UART4SECF + description: UART4SECF + bit_offset: 19 + bit_size: 1 + - name: UART5SECF + description: UART5SECF + bit_offset: 20 + bit_size: 1 + - name: I2C1SECF + description: I2C1SECF + bit_offset: 21 + bit_size: 1 + - name: I2C2SECF + description: I2C2SECF + bit_offset: 22 + bit_size: 1 + - name: I2C3SECF + description: I2C3SECF + bit_offset: 23 + bit_size: 1 + - name: CRSSECF + description: CRSSECF + bit_offset: 24 + bit_size: 1 + - name: PWRSECF + description: PWRSECF + bit_offset: 28 + bit_size: 1 + - name: DACSECF + description: DACSECF + bit_offset: 29 + bit_size: 1 + - name: OPAMPSECF + description: OPAMPSECF + bit_offset: 30 + bit_size: 1 + - name: LPTIM1SECF + description: LPTIM1SECF + bit_offset: 31 + bit_size: 1 fieldset/APB1SECSR2: description: RCC APB1 security status register 2 fields: - - name: LPUART1SECF - description: LPUART1SECF - bit_offset: 0 - bit_size: 1 - - name: I2C4SECF - description: I2C4SECF - bit_offset: 1 - bit_size: 1 - - name: LPTIM2SECF - description: LPTIM2SECF - bit_offset: 5 - bit_size: 1 - - name: LPTIM3SECF - description: LPTIM3SECF - bit_offset: 6 - bit_size: 1 - - name: FDCAN1SECF - description: FDCAN1SECF - bit_offset: 9 - bit_size: 1 - - name: USBSECF - description: USBSECF - bit_offset: 21 - bit_size: 1 - - name: UCPD1SECF - description: UCPD1SECF - bit_offset: 23 - bit_size: 1 + - name: LPUART1SECF + description: LPUART1SECF + bit_offset: 0 + bit_size: 1 + - name: I2C4SECF + description: I2C4SECF + bit_offset: 1 + bit_size: 1 + - name: LPTIM2SECF + description: LPTIM2SECF + bit_offset: 5 + bit_size: 1 + - name: LPTIM3SECF + description: LPTIM3SECF + bit_offset: 6 + bit_size: 1 + - name: FDCAN1SECF + description: FDCAN1SECF + bit_offset: 9 + bit_size: 1 + - name: USBSECF + description: USBSECF + bit_offset: 21 + bit_size: 1 + - name: UCPD1SECF + description: UCPD1SECF + bit_offset: 23 + bit_size: 1 fieldset/APB1SMENR1: description: APB1SMENR1 fields: - - name: TIM2SMEN - description: TIM2 timer clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: TIM3SMEN - description: TIM3 timer clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: TIM4SMEN - description: TIM4 timer clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: TIM5SMEN - description: TIM5 timer clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: TIM6SMEN - description: TIM6 timer clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: TIM7SMEN - description: TIM7 timer clocks enable during Sleep and Stop modes - bit_offset: 5 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC APB clock enable during Sleep and Stop modes - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clocks enable during Sleep and Stop modes - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clocks enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: SP3SMEN - description: SPI3 clocks enable during Sleep and Stop modes - bit_offset: 15 - bit_size: 1 - - name: USART2SMEN - description: USART2 clocks enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: USART3SMEN - description: USART3 clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: UART4SMEN - description: UART4 clocks enable during Sleep and Stop modes - bit_offset: 19 - bit_size: 1 - - name: UART5SMEN - description: UART5 clocks enable during Sleep and Stop modes - bit_offset: 20 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clocks enable during Sleep and Stop modes - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clocks enable during Sleep and Stop modes - bit_offset: 23 - bit_size: 1 - - name: CRSSMEN - description: CRS clock enable during Sleep and Stop modes - bit_offset: 24 - bit_size: 1 - - name: PWRSMEN - description: Power interface clocks enable during Sleep and Stop modes - bit_offset: 28 - bit_size: 1 - - name: DAC1SMEN - description: DAC1 interface clocks enable during Sleep and Stop modes - bit_offset: 29 - bit_size: 1 - - name: OPAMPSMEN - description: OPAMP interface clocks enable during Sleep and Stop modes - bit_offset: 30 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clocks enable during Sleep and Stop modes - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: TIM3 timer clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: TIM4SMEN + description: TIM4 timer clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: TIM5SMEN + description: TIM5 timer clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: TIM6SMEN + description: TIM6 timer clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: TIM7SMEN + description: TIM7 timer clocks enable during Sleep and Stop modes + bit_offset: 5 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC APB clock enable during Sleep and Stop modes + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clocks enable during Sleep and Stop modes + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clocks enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: SP3SMEN + description: SPI3 clocks enable during Sleep and Stop modes + bit_offset: 15 + bit_size: 1 + - name: USART2SMEN + description: USART2 clocks enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: USART3SMEN + description: USART3 clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: UART4SMEN + description: UART4 clocks enable during Sleep and Stop modes + bit_offset: 19 + bit_size: 1 + - name: UART5SMEN + description: UART5 clocks enable during Sleep and Stop modes + bit_offset: 20 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clocks enable during Sleep and Stop modes + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clocks enable during Sleep and Stop modes + bit_offset: 23 + bit_size: 1 + - name: CRSSMEN + description: CRS clock enable during Sleep and Stop modes + bit_offset: 24 + bit_size: 1 + - name: PWRSMEN + description: Power interface clocks enable during Sleep and Stop modes + bit_offset: 28 + bit_size: 1 + - name: DAC1SMEN + description: DAC1 interface clocks enable during Sleep and Stop modes + bit_offset: 29 + bit_size: 1 + - name: OPAMPSMEN + description: OPAMP interface clocks enable during Sleep and Stop modes + bit_offset: 30 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clocks enable during Sleep and Stop modes + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR2: description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: I2C4SMEN - description: I2C4 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: LPTIM2SMEN - description: LPTIM2SMEN - bit_offset: 5 - bit_size: 1 - - name: LPTIM3SMEN - description: LPTIM3SMEN - bit_offset: 6 - bit_size: 1 - - name: FDCAN1SMEN - description: FDCAN1SMEN - bit_offset: 9 - bit_size: 1 - - name: USBSMEN - description: USBSMEN - bit_offset: 21 - bit_size: 1 - - name: UCPD1SMEN - description: UCPD1SMEN - bit_offset: 23 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: I2C4SMEN + description: I2C4 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: LPTIM2SMEN + description: LPTIM2SMEN + bit_offset: 5 + bit_size: 1 + - name: LPTIM3SMEN + description: LPTIM3SMEN + bit_offset: 6 + bit_size: 1 + - name: FDCAN1SMEN + description: FDCAN1SMEN + bit_offset: 9 + bit_size: 1 + - name: USBSMEN + description: USBSMEN + bit_offset: 21 + bit_size: 1 + - name: UCPD1SMEN + description: UCPD1SMEN + bit_offset: 23 + bit_size: 1 fieldset/APB2ENR: description: APB2ENR fields: - - name: SYSCFGEN - description: SYSCFG clock enable - bit_offset: 0 - bit_size: 1 - - name: TIM1EN - description: TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: TIM8 timer clock enable - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: USART1clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: TIM15 timer clock enable - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: SAI1EN - description: SAI1 clock enable - bit_offset: 21 - bit_size: 1 - - name: SAI2EN - description: SAI2 clock enable - bit_offset: 22 - bit_size: 1 - - name: DFSDM1EN - description: DFSDM timer clock enable - bit_offset: 24 - bit_size: 1 + - name: SYSCFGEN + description: SYSCFG clock enable + bit_offset: 0 + bit_size: 1 + - name: TIM1EN + description: TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: TIM8 timer clock enable + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: USART1clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: TIM15 timer clock enable + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: SAI1EN + description: SAI1 clock enable + bit_offset: 21 + bit_size: 1 + - name: SAI2EN + description: SAI2 clock enable + bit_offset: 22 + bit_size: 1 + - name: DFSDM1EN + description: DFSDM timer clock enable + bit_offset: 24 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: SYSCFGRST - description: System configuration (SYSCFG) reset - bit_offset: 0 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: TIM8 timer reset - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: TIM15 timer reset - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: SAI1RST - description: Serial audio interface 1 (SAI1) reset - bit_offset: 21 - bit_size: 1 - - name: SAI2RST - description: Serial audio interface 2 (SAI2) reset - bit_offset: 22 - bit_size: 1 - - name: DFSDM1RST - description: Digital filters for sigma-delata modulators (DFSDM) reset - bit_offset: 24 - bit_size: 1 + - name: SYSCFGRST + description: System configuration (SYSCFG) reset + bit_offset: 0 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: TIM8 timer reset + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: TIM15 timer reset + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: SAI1RST + description: Serial audio interface 1 (SAI1) reset + bit_offset: 21 + bit_size: 1 + - name: SAI2RST + description: Serial audio interface 2 (SAI2) reset + bit_offset: 22 + bit_size: 1 + - name: DFSDM1RST + description: Digital filters for sigma-delata modulators (DFSDM) reset + bit_offset: 24 + bit_size: 1 fieldset/APB2SECSR: description: RCC APB2 security status register fields: - - name: SYSCFGSECF - description: SYSCFGSECF - bit_offset: 0 - bit_size: 1 - - name: TIM1SECF - description: TIM1SECF - bit_offset: 11 - bit_size: 1 - - name: SPI1SECF - description: SPI1SECF - bit_offset: 12 - bit_size: 1 - - name: TIM8SECF - description: TIM8SECF - bit_offset: 13 - bit_size: 1 - - name: USART1SECF - description: USART1SECF - bit_offset: 14 - bit_size: 1 - - name: TIM15SECF - description: TIM15SECF - bit_offset: 16 - bit_size: 1 - - name: TIM16SECF - description: TIM16SECF - bit_offset: 17 - bit_size: 1 - - name: TIM17SECF - description: TIM17SECF - bit_offset: 18 - bit_size: 1 - - name: SAI1SECF - description: SAI1SECF - bit_offset: 21 - bit_size: 1 - - name: SAI2SECF - description: SAI2SECF - bit_offset: 22 - bit_size: 1 - - name: DFSDM1SECF - description: DFSDM1SECF - bit_offset: 24 - bit_size: 1 + - name: SYSCFGSECF + description: SYSCFGSECF + bit_offset: 0 + bit_size: 1 + - name: TIM1SECF + description: TIM1SECF + bit_offset: 11 + bit_size: 1 + - name: SPI1SECF + description: SPI1SECF + bit_offset: 12 + bit_size: 1 + - name: TIM8SECF + description: TIM8SECF + bit_offset: 13 + bit_size: 1 + - name: USART1SECF + description: USART1SECF + bit_offset: 14 + bit_size: 1 + - name: TIM15SECF + description: TIM15SECF + bit_offset: 16 + bit_size: 1 + - name: TIM16SECF + description: TIM16SECF + bit_offset: 17 + bit_size: 1 + - name: TIM17SECF + description: TIM17SECF + bit_offset: 18 + bit_size: 1 + - name: SAI1SECF + description: SAI1SECF + bit_offset: 21 + bit_size: 1 + - name: SAI2SECF + description: SAI2SECF + bit_offset: 22 + bit_size: 1 + - name: DFSDM1SECF + description: DFSDM1SECF + bit_offset: 24 + bit_size: 1 fieldset/APB2SMENR: description: APB2SMENR fields: - - name: SYSCFGSMEN - description: SYSCFG clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clocks enable during Sleep and Stop modes - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clocks enable during Sleep and Stop modes - bit_offset: 12 - bit_size: 1 - - name: TIM8SMEN - description: TIM8 timer clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: USART1SMEN - description: USART1clocks enable during Sleep and Stop modes - bit_offset: 14 - bit_size: 1 - - name: TIM15SMEN - description: TIM15 timer clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clocks enable during Sleep and Stop modes - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clocks enable during Sleep and Stop modes - bit_offset: 18 - bit_size: 1 - - name: SAI1SMEN - description: SAI1 clocks enable during Sleep and Stop modes - bit_offset: 21 - bit_size: 1 - - name: SAI2SMEN - description: SAI2 clocks enable during Sleep and Stop modes - bit_offset: 22 - bit_size: 1 - - name: DFSDM1SMEN - description: DFSDM timer clocks enable during Sleep and Stop modes - bit_offset: 24 - bit_size: 1 + - name: SYSCFGSMEN + description: SYSCFG clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clocks enable during Sleep and Stop modes + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clocks enable during Sleep and Stop modes + bit_offset: 12 + bit_size: 1 + - name: TIM8SMEN + description: TIM8 timer clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: USART1SMEN + description: USART1clocks enable during Sleep and Stop modes + bit_offset: 14 + bit_size: 1 + - name: TIM15SMEN + description: TIM15 timer clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clocks enable during Sleep and Stop modes + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clocks enable during Sleep and Stop modes + bit_offset: 18 + bit_size: 1 + - name: SAI1SMEN + description: SAI1 clocks enable during Sleep and Stop modes + bit_offset: 21 + bit_size: 1 + - name: SAI2SMEN + description: SAI2 clocks enable during Sleep and Stop modes + bit_offset: 22 + bit_size: 1 + - name: DFSDM1SMEN + description: DFSDM timer clocks enable during Sleep and Stop modes + bit_offset: 24 + bit_size: 1 fieldset/BDCR: description: BDCR fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: SE oscillator drive capability - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: LSECSSON - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: LSECSSD - bit_offset: 6 - bit_size: 1 - - name: LSESYSEN - description: LSESYSEN - bit_offset: 7 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: LSESYSRDY - description: LSESYSRDY - bit_offset: 11 - bit_size: 1 - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low speed clock output enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low speed clock output selection - bit_offset: 25 - bit_size: 1 - enum: LSCOSEL + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: SE oscillator drive capability + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: LSECSSON + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: LSECSSD + bit_offset: 6 + bit_size: 1 + - name: LSESYSEN + description: LSESYSEN + bit_offset: 7 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: LSESYSRDY + description: LSESYSRDY + bit_offset: 11 + bit_size: 1 + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low speed clock output enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low speed clock output selection + bit_offset: 25 + bit_size: 1 + enum: LSCOSEL fieldset/CCIPR1: description: CCIPR1 fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - - name: USART3SEL - description: USART3 clock source selection - bit_offset: 4 - bit_size: 2 - - name: UART4SEL - description: UART4 clock source selection - bit_offset: 6 - bit_size: 2 - - name: UART5SEL - description: UART5 clock source selection - bit_offset: 8 - bit_size: 2 - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - - name: I2C2SEL - description: I2C2 clock source selection - bit_offset: 14 - bit_size: 2 - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 18 - bit_size: 2 - - name: LPTIM2SEL - description: Low power timer 2 clock source selection - bit_offset: 20 - bit_size: 2 - - name: LPTIM3SEL - description: Low-power timer 3 clock source selection - bit_offset: 22 - bit_size: 2 - - name: FDCANSEL - description: FDCAN clock source selection - bit_offset: 24 - bit_size: 2 - - name: CLK48MSEL - description: 48 MHz clock source selection - bit_offset: 26 - bit_size: 2 - - name: ADCSEL - description: ADCs clock source selection - bit_offset: 28 - bit_size: 2 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + - name: USART3SEL + description: USART3 clock source selection + bit_offset: 4 + bit_size: 2 + - name: UART4SEL + description: UART4 clock source selection + bit_offset: 6 + bit_size: 2 + - name: UART5SEL + description: UART5 clock source selection + bit_offset: 8 + bit_size: 2 + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + - name: I2C2SEL + description: I2C2 clock source selection + bit_offset: 14 + bit_size: 2 + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 18 + bit_size: 2 + - name: LPTIM2SEL + description: Low power timer 2 clock source selection + bit_offset: 20 + bit_size: 2 + - name: LPTIM3SEL + description: Low-power timer 3 clock source selection + bit_offset: 22 + bit_size: 2 + - name: FDCANSEL + description: FDCAN clock source selection + bit_offset: 24 + bit_size: 2 + - name: CLK48MSEL + description: 48 MHz clock source selection + bit_offset: 26 + bit_size: 2 + - name: ADCSEL + description: ADCs clock source selection + bit_offset: 28 + bit_size: 2 fieldset/CCIPR2: description: Peripherals independent clock configuration register fields: - - name: I2C4SEL - description: I2C4 clock source selection - bit_offset: 0 - bit_size: 2 - - name: DFSDMSEL - description: Digital filter for sigma delta modulator kernel clock source selection - bit_offset: 2 - bit_size: 1 - - name: ADFSDMSEL - description: Digital filter for sigma delta modulator audio clock source selection - bit_offset: 3 - bit_size: 2 - - name: SAI1SEL - description: SAI1 clock source selection - bit_offset: 5 - bit_size: 3 - - name: SAI2SEL - description: SAI2 clock source selection - bit_offset: 8 - bit_size: 3 - - name: SDMMCSEL - description: SDMMC clock selection - bit_offset: 14 - bit_size: 1 - - name: OSPISEL - description: Octospi clock source selection - bit_offset: 20 - bit_size: 2 + - name: I2C4SEL + description: I2C4 clock source selection + bit_offset: 0 + bit_size: 2 + - name: DFSDMSEL + description: Digital filter for sigma delta modulator kernel clock source selection + bit_offset: 2 + bit_size: 1 + - name: ADFSDMSEL + description: Digital filter for sigma delta modulator audio clock source selection + bit_offset: 3 + bit_size: 2 + - name: SAI1SEL + description: SAI1 clock source selection + bit_offset: 5 + bit_size: 3 + - name: SAI2SEL + description: SAI2 clock source selection + bit_offset: 8 + bit_size: 3 + - name: SDMMCSEL + description: SDMMC clock selection + bit_offset: 14 + bit_size: 1 + - name: OSPISEL + description: Octospi clock source selection + bit_offset: 20 + bit_size: 2 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - enum: SW - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: APB low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - enum: PPRE - - name: STOPWUCK - description: Wakeup from Stop and CSS backup clock selection - bit_offset: 15 - bit_size: 1 - enum: STOPWUCK - - name: MCOSEL - description: Microcontroller clock output selection - bit_offset: 24 - bit_size: 4 - enum: MCOSEL - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + enum: SW + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: APB low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + enum: PPRE + - name: STOPWUCK + description: Wakeup from Stop and CSS backup clock selection + bit_offset: 15 + bit_size: 1 + enum: STOPWUCK + - name: MCOSEL + description: Microcontroller clock output selection + bit_offset: 24 + bit_size: 4 + enum: MCOSEL + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: MSIRDYC - description: MSI ready interrupt clear - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYC - description: PLLSAI1 ready interrupt clear - bit_offset: 6 - bit_size: 1 - - name: PLLSAI2RDYC - description: PLLSAI2 ready interrupt clear - bit_offset: 7 - bit_size: 1 - - name: CSSC - description: Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYC - description: HSI48 oscillator ready interrupt clear - bit_offset: 10 - bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: MSIRDYC + description: MSI ready interrupt clear + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYC + description: PLLSAI1 ready interrupt clear + bit_offset: 6 + bit_size: 1 + - name: PLLSAI2RDYC + description: PLLSAI2 ready interrupt clear + bit_offset: 7 + bit_size: 1 + - name: CSSC + description: Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYC + description: HSI48 oscillator ready interrupt clear + bit_offset: 10 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt enable - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYIE - description: PLLSAI1 ready interrupt enable - bit_offset: 6 - bit_size: 1 - - name: PLLSAI2RDYIE - description: PLLSAI2 ready interrupt enable - bit_offset: 7 - bit_size: 1 - - name: LSECSSIE - description: LSE clock security system interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYIE - description: HSI48 ready interrupt enable - bit_offset: 10 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt enable + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYIE + description: PLLSAI1 ready interrupt enable + bit_offset: 6 + bit_size: 1 + - name: PLLSAI2RDYIE + description: PLLSAI2 ready interrupt enable + bit_offset: 7 + bit_size: 1 + - name: LSECSSIE + description: LSE clock security system interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYIE + description: HSI48 ready interrupt enable + bit_offset: 10 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYF - description: PLLSAI1 ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: PLLSAI2RDYF - description: PLLSAI2 ready interrupt flag - bit_offset: 7 - bit_size: 1 - - name: CSSF - description: Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYF - description: HSI48 ready interrupt flag - bit_offset: 10 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYF + description: PLLSAI1 ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: PLLSAI2RDYF + description: PLLSAI2 ready interrupt flag + bit_offset: 7 + bit_size: 1 + - name: CSSF + description: Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYF + description: HSI48 ready interrupt flag + bit_offset: 10 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: MSION - description: MSI clock enable - bit_offset: 0 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag - bit_offset: 1 - bit_size: 1 - - name: MSIPLLEN - description: MSI clock PLL enable - bit_offset: 2 - bit_size: 1 - - name: MSIRGSEL - description: MSI clock range selection - bit_offset: 3 - bit_size: 1 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 4 - bit_size: 4 - enum: MSIRANGE - - name: HSION - description: HSI clock enable - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI always enable for peripheral kernels - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI clock ready flag - bit_offset: 10 - bit_size: 1 - - name: HSIASFS - description: HSI automatic start from Stop - bit_offset: 11 - bit_size: 1 - - name: HSEON - description: HSE clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE crystal oscillator bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: PLLON - description: Main PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLLSAI1ON - description: SAI1 PLL enable - bit_offset: 26 - bit_size: 1 - - name: PLLSAI1RDY - description: SAI1 PLL clock ready flag - bit_offset: 27 - bit_size: 1 - - name: PLLSAI2ON - description: SAI2 PLL enable - bit_offset: 28 - bit_size: 1 - - name: PLLSAI2RDY - description: SAI2 PLL clock ready flag - bit_offset: 29 - bit_size: 1 - - name: PRIV - description: PRIV - bit_offset: 31 - bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 0 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag + bit_offset: 1 + bit_size: 1 + - name: MSIPLLEN + description: MSI clock PLL enable + bit_offset: 2 + bit_size: 1 + - name: MSIRGSEL + description: MSI clock range selection + bit_offset: 3 + bit_size: 1 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 4 + bit_size: 4 + enum: MSIRANGE + - name: HSION + description: HSI clock enable + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI always enable for peripheral kernels + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI clock ready flag + bit_offset: 10 + bit_size: 1 + - name: HSIASFS + description: HSI automatic start from Stop + bit_offset: 11 + bit_size: 1 + - name: HSEON + description: HSE clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE crystal oscillator bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: PLLON + description: Main PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLLSAI1ON + description: SAI1 PLL enable + bit_offset: 26 + bit_size: 1 + - name: PLLSAI1RDY + description: SAI1 PLL clock ready flag + bit_offset: 27 + bit_size: 1 + - name: PLLSAI2ON + description: SAI2 PLL enable + bit_offset: 28 + bit_size: 1 + - name: PLLSAI2RDY + description: SAI2 PLL clock ready flag + bit_offset: 29 + bit_size: 1 + - name: PRIV + description: PRIV + bit_offset: 31 + bit_size: 1 fieldset/CRRCR: description: Clock recovery RC register fields: - - name: HSI48ON - description: HSI48 clock enable - bit_offset: 0 - bit_size: 1 - - name: HSI48RDY - description: HSI48 clock ready flag - bit_offset: 1 - bit_size: 1 - - name: HSI48CAL - description: HSI48 clock calibration - bit_offset: 7 - bit_size: 9 + - name: HSI48ON + description: HSI48 clock enable + bit_offset: 0 + bit_size: 1 + - name: HSI48RDY + description: HSI48 clock ready flag + bit_offset: 1 + bit_size: 1 + - name: HSI48CAL + description: HSI48 clock calibration + bit_offset: 7 + bit_size: 9 fieldset/CSR: description: CSR fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSIPREDIV - description: LSIPREDIV - bit_offset: 4 - bit_size: 1 - - name: MSISRANGE - description: SI range after Standby mode - bit_offset: 8 - bit_size: 4 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: BOR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSIPREDIV + description: LSIPREDIV + bit_offset: 4 + bit_size: 1 + - name: MSISRANGE + description: SI range after Standby mode + bit_offset: 8 + bit_size: 4 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: BOR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: MSICAL - description: MSI clock calibration - bit_offset: 0 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 8 - bit_size: 8 - - name: HSICAL - description: HSI clock calibration - bit_offset: 16 - bit_size: 8 - - name: HSITRIM - description: HSI clock trimming - bit_offset: 24 - bit_size: 7 + - name: MSICAL + description: MSI clock calibration + bit_offset: 0 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 8 + bit_size: 8 + - name: HSICAL + description: HSI clock calibration + bit_offset: 16 + bit_size: 8 + - name: HSITRIM + description: HSI clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLSRC - description: "Main PLL, PLLSAI1 and PLLSAI2 entry clock source" - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLM - description: Division factor for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock - bit_offset: 4 - bit_size: 4 - - name: PLLN - description: Main PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: Main PLL PLLSAI3CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: Main PLL division factor for PLLSAI3CLK (SAI1 and SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLQEN - description: Main PLL PLLUSB1CLK output enable - bit_offset: 20 - bit_size: 1 - - name: PLLQ - description: Main PLL division factor for PLLUSB1CLK(48 MHz clock) - bit_offset: 21 - bit_size: 2 - - name: PLLREN - description: Main PLL PLLCLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLR - description: Main PLL division factor for PLLCLK (system clock) - bit_offset: 25 - bit_size: 2 - - name: PLLPDIV - description: Main PLL division factor for PLLSAI2CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSRC + description: Main PLL, PLLSAI1 and PLLSAI2 entry clock source + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLM + description: Division factor for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock + bit_offset: 4 + bit_size: 4 + - name: PLLN + description: Main PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: Main PLL PLLSAI3CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: Main PLL division factor for PLLSAI3CLK (SAI1 and SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLQEN + description: Main PLL PLLUSB1CLK output enable + bit_offset: 20 + bit_size: 1 + - name: PLLQ + description: Main PLL division factor for PLLUSB1CLK(48 MHz clock) + bit_offset: 21 + bit_size: 2 + - name: PLLREN + description: Main PLL PLLCLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLR + description: Main PLL division factor for PLLCLK (system clock) + bit_offset: 25 + bit_size: 2 + - name: PLLPDIV + description: Main PLL division factor for PLLSAI2CLK + bit_offset: 27 + bit_size: 5 fieldset/PLLSAI1CFGR: description: PLLSAI1 configuration register fields: - - name: PLLSAI1SRC - description: PLLSAI1SRC - bit_offset: 0 - bit_size: 2 - - name: PLLSAI1M - description: Division factor for PLLSAI1 input clock - bit_offset: 4 - bit_size: 4 - - name: PLLSAI1N - description: SAI1PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLSAI1PEN - description: SAI1PLL PLLSAI1CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLSAI1P - description: SAI1PLL division factor for PLLSAI1CLK (SAI1 or SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLSAI1QEN - description: SAI1PLL PLLUSB2CLK output enable - bit_offset: 20 - bit_size: 1 - - name: PLLSAI1Q - description: SAI1PLL division factor for PLLUSB2CLK (48 MHz clock) - bit_offset: 21 - bit_size: 2 - - name: PLLSAI1REN - description: PLLSAI1 PLLADC1CLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLSAI1R - description: PLLSAI1 division factor for PLLADC1CLK (ADC clock) - bit_offset: 25 - bit_size: 2 - - name: PLLSAI1PDIV - description: PLLSAI1 division factor for PLLSAI1CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSAI1SRC + description: PLLSAI1SRC + bit_offset: 0 + bit_size: 2 + - name: PLLSAI1M + description: Division factor for PLLSAI1 input clock + bit_offset: 4 + bit_size: 4 + - name: PLLSAI1N + description: SAI1PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLSAI1PEN + description: SAI1PLL PLLSAI1CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLSAI1P + description: SAI1PLL division factor for PLLSAI1CLK (SAI1 or SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLSAI1QEN + description: SAI1PLL PLLUSB2CLK output enable + bit_offset: 20 + bit_size: 1 + - name: PLLSAI1Q + description: SAI1PLL division factor for PLLUSB2CLK (48 MHz clock) + bit_offset: 21 + bit_size: 2 + - name: PLLSAI1REN + description: PLLSAI1 PLLADC1CLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLSAI1R + description: PLLSAI1 division factor for PLLADC1CLK (ADC clock) + bit_offset: 25 + bit_size: 2 + - name: PLLSAI1PDIV + description: PLLSAI1 division factor for PLLSAI1CLK + bit_offset: 27 + bit_size: 5 fieldset/PLLSAI2CFGR: description: PLLSAI2 configuration register fields: - - name: PLLSAI2SRC - description: PLLSAI2SRC - bit_offset: 0 - bit_size: 2 - - name: PLLSAI2M - description: Division factor for PLLSAI2 input clock - bit_offset: 4 - bit_size: 4 - - name: PLLSAI2N - description: SAI2PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLSAI2PEN - description: SAI2PLL PLLSAI2CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLSAI2P - description: SAI1PLL division factor for PLLSAI2CLK (SAI1 or SAI2 clock) - bit_offset: 17 - bit_size: 1 - - name: PLLSAI2PDIV - description: PLLSAI2 division factor for PLLSAI2CLK - bit_offset: 27 - bit_size: 5 + - name: PLLSAI2SRC + description: PLLSAI2SRC + bit_offset: 0 + bit_size: 2 + - name: PLLSAI2M + description: Division factor for PLLSAI2 input clock + bit_offset: 4 + bit_size: 4 + - name: PLLSAI2N + description: SAI2PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLSAI2PEN + description: SAI2PLL PLLSAI2CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLSAI2P + description: SAI1PLL division factor for PLLSAI2CLK (SAI1 or SAI2 clock) + bit_offset: 17 + bit_size: 1 + - name: PLLSAI2PDIV + description: PLLSAI2 division factor for PLLSAI2CLK + bit_offset: 27 + bit_size: 5 fieldset/SECCFGR: description: RCC secure configuration register fields: - - name: HSISEC - description: HSISEC - bit_offset: 0 - bit_size: 1 - - name: HSESEC - description: HSESEC - bit_offset: 1 - bit_size: 1 - - name: MSISEC - description: MSISEC - bit_offset: 2 - bit_size: 1 - - name: LSISEC - description: LSISEC - bit_offset: 3 - bit_size: 1 - - name: LSESEC - description: LSESEC - bit_offset: 4 - bit_size: 1 - - name: SYSCLKSEC - description: SYSCLKSEC - bit_offset: 5 - bit_size: 1 - - name: PRESCSEC - description: PRESCSEC - bit_offset: 6 - bit_size: 1 - - name: PLLSEC - description: PLLSEC - bit_offset: 7 - bit_size: 1 - - name: PLLSAI1SEC - description: PLLSAI1SEC - bit_offset: 8 - bit_size: 1 - - name: PLLSAI2SEC - description: PLLSAI2SEC - bit_offset: 9 - bit_size: 1 - - name: CLK48MSEC - description: CLK48MSEC - bit_offset: 10 - bit_size: 1 - - name: HSI48SEC - description: HSI48SEC - bit_offset: 11 - bit_size: 1 - - name: RMVFSEC - description: RMVFSEC - bit_offset: 12 - bit_size: 1 + - name: HSISEC + description: HSISEC + bit_offset: 0 + bit_size: 1 + - name: HSESEC + description: HSESEC + bit_offset: 1 + bit_size: 1 + - name: MSISEC + description: MSISEC + bit_offset: 2 + bit_size: 1 + - name: LSISEC + description: LSISEC + bit_offset: 3 + bit_size: 1 + - name: LSESEC + description: LSESEC + bit_offset: 4 + bit_size: 1 + - name: SYSCLKSEC + description: SYSCLKSEC + bit_offset: 5 + bit_size: 1 + - name: PRESCSEC + description: PRESCSEC + bit_offset: 6 + bit_size: 1 + - name: PLLSEC + description: PLLSEC + bit_offset: 7 + bit_size: 1 + - name: PLLSAI1SEC + description: PLLSAI1SEC + bit_offset: 8 + bit_size: 1 + - name: PLLSAI2SEC + description: PLLSAI2SEC + bit_offset: 9 + bit_size: 1 + - name: CLK48MSEC + description: CLK48MSEC + bit_offset: 10 + bit_size: 1 + - name: HSI48SEC + description: HSI48SEC + bit_offset: 11 + bit_size: 1 + - name: RMVFSEC + description: RMVFSEC + bit_offset: 12 + bit_size: 1 fieldset/SECSR: description: RCC secure status register fields: - - name: HSISECF - description: HSISECF - bit_offset: 0 - bit_size: 1 - - name: HSESECF - description: HSESECF - bit_offset: 1 - bit_size: 1 - - name: MSISECF - description: MSISECF - bit_offset: 2 - bit_size: 1 - - name: LSISECF - description: LSISECF - bit_offset: 3 - bit_size: 1 - - name: LSESECF - description: LSESECF - bit_offset: 4 - bit_size: 1 - - name: SYSCLKSECF - description: SYSCLKSECF - bit_offset: 5 - bit_size: 1 - - name: PRESCSECF - description: PRESCSECF - bit_offset: 6 - bit_size: 1 - - name: PLLSECF - description: PLLSECF - bit_offset: 7 - bit_size: 1 - - name: PLLSAI1SECF - description: PLLSAI1SECF - bit_offset: 8 - bit_size: 1 - - name: PLLSAI2SECF - description: PLLSAI2SECF - bit_offset: 9 - bit_size: 1 - - name: CLK48MSECF - description: CLK48MSECF - bit_offset: 10 - bit_size: 1 - - name: HSI48SECF - description: HSI48SECF - bit_offset: 11 - bit_size: 1 - - name: RMVFSECF - description: RMVFSECF - bit_offset: 12 - bit_size: 1 + - name: HSISECF + description: HSISECF + bit_offset: 0 + bit_size: 1 + - name: HSESECF + description: HSESECF + bit_offset: 1 + bit_size: 1 + - name: MSISECF + description: MSISECF + bit_offset: 2 + bit_size: 1 + - name: LSISECF + description: LSISECF + bit_offset: 3 + bit_size: 1 + - name: LSESECF + description: LSESECF + bit_offset: 4 + bit_size: 1 + - name: SYSCLKSECF + description: SYSCLKSECF + bit_offset: 5 + bit_size: 1 + - name: PRESCSECF + description: PRESCSECF + bit_offset: 6 + bit_size: 1 + - name: PLLSECF + description: PLLSECF + bit_offset: 7 + bit_size: 1 + - name: PLLSAI1SECF + description: PLLSAI1SECF + bit_offset: 8 + bit_size: 1 + - name: PLLSAI2SECF + description: PLLSAI2SECF + bit_offset: 9 + bit_size: 1 + - name: CLK48MSECF + description: CLK48MSECF + bit_offset: 10 + bit_size: 1 + - name: HSI48SECF + description: HSI48SECF + bit_offset: 11 + bit_size: 1 + - name: RMVFSECF + description: RMVFSECF + bit_offset: 12 + bit_size: 1 enum/HPRE: bit_size: 4 variants: - - name: Div1 - description: SYSCLK not divided - value: 0 - - name: Div2 - description: SYSCLK divided by 2 - value: 8 - - name: Div4 - description: SYSCLK divided by 4 - value: 9 - - name: Div8 - description: SYSCLK divided by 8 - value: 10 - - name: Div16 - description: SYSCLK divided by 16 - value: 11 - - name: Div64 - description: SYSCLK divided by 64 - value: 12 - - name: Div128 - description: SYSCLK divided by 128 - value: 13 - - name: Div256 - description: SYSCLK divided by 256 - value: 14 - - name: Div512 - description: SYSCLK divided by 512 - value: 15 + - name: Div1 + description: SYSCLK not divided + value: 0 + - name: Div2 + description: SYSCLK divided by 2 + value: 8 + - name: Div4 + description: SYSCLK divided by 4 + value: 9 + - name: Div8 + description: SYSCLK divided by 8 + value: 10 + - name: Div16 + description: SYSCLK divided by 16 + value: 11 + - name: Div64 + description: SYSCLK divided by 64 + value: 12 + - name: Div128 + description: SYSCLK divided by 128 + value: 13 + - name: Div256 + description: SYSCLK divided by 256 + value: 14 + - name: Div512 + description: SYSCLK divided by 512 + value: 15 enum/LSCOSEL: bit_size: 1 variants: - - name: LSI - description: "LSI clock selected\"" - value: 0 - - name: LSE - description: LSE clock selected - value: 1 + - name: LSI + description: LSI clock selected" + value: 0 + - name: LSE + description: LSE clock selected + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: Lower - description: "'Xtal mode' lower driving capability" - value: 0 - - name: MediumLow - description: "'Xtal mode' medium low driving capability" - value: 1 - - name: MediumHigh - description: "'Xtal mode' medium high driving capability" - value: 2 - - name: Higher - description: "'Xtal mode' higher driving capability" - value: 3 + - name: Lower + description: '''Xtal mode'' lower driving capability' + value: 0 + - name: MediumLow + description: '''Xtal mode'' medium low driving capability' + value: 1 + - name: MediumHigh + description: '''Xtal mode'' medium high driving capability' + value: 2 + - name: Higher + description: '''Xtal mode'' higher driving capability' + value: 3 enum/MCOPRE: bit_size: 3 variants: - - name: Div1 - description: MCO divided by 1 - value: 0 - - name: Div2 - description: MCO divided by 2 - value: 1 - - name: Div4 - description: MCO divided by 4 - value: 2 - - name: Div8 - description: MCO divided by 8 - value: 3 - - name: Div16 - description: MCO divided by 16 - value: 4 + - name: Div1 + description: MCO divided by 1 + value: 0 + - name: Div2 + description: MCO divided by 2 + value: 1 + - name: Div4 + description: MCO divided by 4 + value: 2 + - name: Div8 + description: MCO divided by 8 + value: 3 + - name: Div16 + description: MCO divided by 16 + value: 4 enum/MCOSEL: bit_size: 4 variants: - - name: None - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: SYSCLK - description: SYSCLK system clock selected - value: 1 - - name: MSI - description: MSI clock selected - value: 2 - - name: HSI - description: HSI clock selected - value: 3 - - name: HSE - description: HSE clock selected - value: 4 - - name: PLL - description: Main PLL clock selected - value: 5 - - name: LSI - description: LSI clock selected - value: 6 - - name: LSE - description: LSE clock selected - value: 7 - - name: HSI48 - description: Internal HSI48 clock selected - value: 8 + - name: None + description: MCO output disabled, no clock on MCO + value: 0 + - name: SYSCLK + description: SYSCLK system clock selected + value: 1 + - name: MSI + description: MSI clock selected + value: 2 + - name: HSI + description: HSI clock selected + value: 3 + - name: HSE + description: HSE clock selected + value: 4 + - name: PLL + description: Main PLL clock selected + value: 5 + - name: LSI + description: LSI clock selected + value: 6 + - name: LSE + description: LSE clock selected + value: 7 + - name: HSI48 + description: Internal HSI48 clock selected + value: 8 enum/MSIRANGE: bit_size: 4 variants: - - name: Range100K - description: range 0 around 100 kHz - value: 0 - - name: Range200K - description: range 1 around 200 kHz - value: 1 - - name: Range400K - description: range 2 around 400 kHz - value: 2 - - name: Range800K - description: range 3 around 800 kHz - value: 3 - - name: Range1M - description: range 4 around 1 MHz - value: 4 - - name: Range2M - description: range 5 around 2 MHz - value: 5 - - name: Range4M - description: range 6 around 4 MHz - value: 6 - - name: Range8M - description: range 7 around 8 MHz - value: 7 - - name: Range16M - description: range 8 around 16 MHz - value: 8 - - name: Range24M - description: range 9 around 24 MHz - value: 9 - - name: Range32M - description: range 10 around 32 MHz - value: 10 - - name: Range48M - description: range 11 around 48 MHz - value: 11 + - name: Range100K + description: range 0 around 100 kHz + value: 0 + - name: Range200K + description: range 1 around 200 kHz + value: 1 + - name: Range400K + description: range 2 around 400 kHz + value: 2 + - name: Range800K + description: range 3 around 800 kHz + value: 3 + - name: Range1M + description: range 4 around 1 MHz + value: 4 + - name: Range2M + description: range 5 around 2 MHz + value: 5 + - name: Range4M + description: range 6 around 4 MHz + value: 6 + - name: Range8M + description: range 7 around 8 MHz + value: 7 + - name: Range16M + description: range 8 around 16 MHz + value: 8 + - name: Range24M + description: range 9 around 24 MHz + value: 9 + - name: Range32M + description: range 10 around 32 MHz + value: 10 + - name: Range48M + description: range 11 around 48 MHz + value: 11 enum/PLLSRC: bit_size: 2 variants: - - name: None - description: No clock sent to PLL - value: 0 - - name: MSI - description: MSI selected as PLL input clock - value: 1 - - name: HSI16 - description: HSI selected as PLL input clock - value: 2 - - name: HSE - description: HSE selected as PLL input clock - value: 3 + - name: None + description: No clock sent to PLL + value: 0 + - name: MSI + description: MSI selected as PLL input clock + value: 1 + - name: HSI16 + description: HSI selected as PLL input clock + value: 2 + - name: HSE + description: HSE selected as PLL input clock + value: 3 enum/PPRE: bit_size: 3 variants: - - name: Div1 - description: HCLK not divided - value: 0 - - name: Div2 - description: HCLK divided by 2 - value: 4 - - name: Div4 - description: HCLK divided by 4 - value: 5 - - name: Div8 - description: HCLK divided by 8 - value: 6 - - name: Div16 - description: HCLK divided by 16 - value: 7 + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 enum/RTCSEL: bit_size: 2 variants: - - name: NoClock - description: No clock - value: 0 - - name: LSE - description: LSE oscillator clock used as RTC clock - value: 1 - - name: LSI - description: LSI oscillator clock used as RTC clock - value: 2 - - name: HSE - description: HSE oscillator clock divided by a prescaler used as RTC clock - value: 3 + - name: NoClock + description: No clock + value: 0 + - name: LSE + description: LSE oscillator clock used as RTC clock + value: 1 + - name: LSI + description: LSI oscillator clock used as RTC clock + value: 2 + - name: HSE + description: HSE oscillator clock divided by a prescaler used as RTC clock + value: 3 enum/STOPWUCK: bit_size: 1 variants: - - name: MSI - description: MSI oscillator selected as wake-up from Stop clock and CSS backup clock - value: 0 - - name: HSI16 - description: HSI oscillator selected as wake-up from stop clock and CSS backup clock - value: 1 + - name: MSI + description: MSI oscillator selected as wake-up from Stop clock and CSS backup clock + value: 0 + - name: HSI16 + description: HSI oscillator selected as wake-up from stop clock and CSS backup clock + value: 1 enum/SW: bit_size: 2 variants: - - name: MSI - description: MSI selected as system clock - value: 0 - - name: HSI16 - description: HSI selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL - description: PLL selected as system clock - value: 3 + - name: MSI + description: MSI selected as system clock + value: 0 + - name: HSI16 + description: HSI selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL + description: PLL selected as system clock + value: 3 diff --git a/data/registers/rcc_u5.yaml b/data/registers/rcc_u5.yaml index 9e5efbb..bd4b462 100644 --- a/data/registers/rcc_u5.yaml +++ b/data/registers/rcc_u5.yaml @@ -1,3240 +1,3239 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: RCC clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR1 - description: RCC internal clock sources calibration register 1 - byte_offset: 8 - fieldset: ICSCR1 - - name: ICSCR2 - description: RCC internal clock sources calibration register 2 - byte_offset: 12 - fieldset: ICSCR2 - - name: ICSCR3 - description: RCC internal clock sources calibration register 3 - byte_offset: 16 - fieldset: ICSCR3 - - name: CRRCR - description: RCC clock recovery RC register - byte_offset: 20 - fieldset: CRRCR - - name: CFGR1 - description: RCC clock configuration register 1 - byte_offset: 28 - fieldset: CFGR1 - - name: CFGR2 - description: RCC clock configuration register 2 - byte_offset: 32 - fieldset: CFGR2 - - name: CFGR3 - description: RCC clock configuration register 3 - byte_offset: 36 - fieldset: CFGR3 - - name: PLL1CFGR - description: RCC PLL1 configuration register - byte_offset: 40 - fieldset: PLL1CFGR - - name: PLL2CFGR - description: RCC PLL2 configuration register - byte_offset: 44 - fieldset: PLL2CFGR - - name: PLL3CFGR - description: RCC PLL3 configuration register - byte_offset: 48 - fieldset: PLL3CFGR - - name: PLL1DIVR - description: RCC PLL1 dividers register - byte_offset: 52 - fieldset: PLL1DIVR - - name: PLL1FRACR - description: RCC PLL1 fractional divider register - byte_offset: 56 - fieldset: PLL1FRACR - - name: PLL2DIVR - description: RCC PLL2 dividers configuration register - byte_offset: 60 - fieldset: PLL2DIVR - - name: PLL2FRACR - description: RCC PLL2 fractional divider register - byte_offset: 64 - fieldset: PLL2FRACR - - name: PLL3DIVR - description: RCC PLL3 dividers configuration register - byte_offset: 68 - fieldset: PLL3DIVR - - name: PLL3FRACR - description: RCC PLL3 fractional divider register - byte_offset: 72 - fieldset: PLL3FRACR - - name: CIER - description: RCC clock interrupt enable register - byte_offset: 80 - fieldset: CIER - - name: CIFR - description: RCC clock interrupt flag register - byte_offset: 84 - fieldset: CIFR - - name: CICR - description: RCC clock interrupt clear register - byte_offset: 88 - fieldset: CICR - - name: AHB1RSTR - description: RCC AHB1 peripheral reset register - byte_offset: 96 - fieldset: AHB1RSTR - - name: AHB2RSTR1 - description: RCC AHB2 peripheral reset register 1 - byte_offset: 100 - fieldset: AHB2RSTR1 - - name: AHB2RSTR2 - description: RCC AHB2 peripheral reset register 2 - byte_offset: 104 - fieldset: AHB2RSTR2 - - name: AHB3RSTR - description: RCC AHB3 peripheral reset register - byte_offset: 108 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: RCC APB1 peripheral reset register 1 - byte_offset: 116 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: RCC APB1 peripheral reset register 2 - byte_offset: 120 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: RCC APB2 peripheral reset register - byte_offset: 124 - fieldset: APB2RSTR - - name: APB3RSTR - description: RCC APB3 peripheral reset register - byte_offset: 128 - fieldset: APB3RSTR - - name: AHB1ENR - description: RCC AHB1 peripheral clock enable register - byte_offset: 136 - fieldset: AHB1ENR - - name: AHB2ENR1 - description: RCC AHB2 peripheral clock enable register 1 - byte_offset: 140 - fieldset: AHB2ENR1 - - name: AHB2ENR2 - description: RCC AHB2 peripheral clock enable register 2 - byte_offset: 144 - fieldset: AHB2ENR2 - - name: AHB3ENR - description: RCC AHB3 peripheral clock enable register - byte_offset: 148 - fieldset: AHB3ENR - - name: APB1ENR1 - description: RCC APB1 peripheral clock enable register 1 - byte_offset: 156 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: RCC APB1 peripheral clock enable register 2 - byte_offset: 160 - fieldset: APB1ENR2 - - name: APB2ENR - description: RCC APB2 peripheral clock enable register - byte_offset: 164 - fieldset: APB2ENR - - name: APB3ENR - description: RCC APB3 peripheral clock enable register - byte_offset: 168 - fieldset: APB3ENR - - name: AHB1SMENR - description: RCC AHB1 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 176 - fieldset: AHB1SMENR - - name: AHB2SMENR1 - description: "RCC AHB2 peripheral clocks enable in Sleep and\tStop modes register 1" - byte_offset: 180 - fieldset: AHB2SMENR1 - - name: AHB2SMENR2 - description: "RCC AHB2 peripheral clocks enable in Sleep and\tStop modes register 2" - byte_offset: 184 - fieldset: AHB2SMENR2 - - name: AHB3SMENR - description: RCC AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 188 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes\tregister 1" - byte_offset: 196 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: "RCC APB1 peripheral clocks enable in Sleep and\tStop modes register 2" - byte_offset: 200 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: RCC APB2 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 204 - fieldset: APB2SMENR - - name: APB3SMENR - description: RCC APB3 peripheral clock enable in Sleep and Stop modes register - byte_offset: 208 - fieldset: APB3SMENR - - name: SRDAMR - description: RCC SmartRun domain peripheral autonomous mode register - byte_offset: 216 - fieldset: SRDAMR - - name: CCIPR1 - description: RCC peripherals independent clock configuration register 1 - byte_offset: 224 - fieldset: CCIPR1 - - name: CCIPR2 - description: RCC peripherals independent clock configuration register 2 - byte_offset: 228 - fieldset: CCIPR2 - - name: CCIPR3 - description: RCC peripherals independent clock configuration register 3 - byte_offset: 232 - fieldset: CCIPR3 - - name: BDCR - description: RCC Backup domain control register - byte_offset: 240 - fieldset: BDCR - - name: CSR - description: RCC control/status register - byte_offset: 244 - fieldset: CSR - - name: SECCFGR - description: RCC secure configuration register - byte_offset: 272 - fieldset: SECCFGR - - name: PRIVCFGR - description: RCC privilege configuration register - byte_offset: 276 - fieldset: PRIVCFGR + - name: CR + description: RCC clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR1 + description: RCC internal clock sources calibration register 1 + byte_offset: 8 + fieldset: ICSCR1 + - name: ICSCR2 + description: RCC internal clock sources calibration register 2 + byte_offset: 12 + fieldset: ICSCR2 + - name: ICSCR3 + description: RCC internal clock sources calibration register 3 + byte_offset: 16 + fieldset: ICSCR3 + - name: CRRCR + description: RCC clock recovery RC register + byte_offset: 20 + fieldset: CRRCR + - name: CFGR1 + description: RCC clock configuration register 1 + byte_offset: 28 + fieldset: CFGR1 + - name: CFGR2 + description: RCC clock configuration register 2 + byte_offset: 32 + fieldset: CFGR2 + - name: CFGR3 + description: RCC clock configuration register 3 + byte_offset: 36 + fieldset: CFGR3 + - name: PLL1CFGR + description: RCC PLL1 configuration register + byte_offset: 40 + fieldset: PLL1CFGR + - name: PLL2CFGR + description: RCC PLL2 configuration register + byte_offset: 44 + fieldset: PLL2CFGR + - name: PLL3CFGR + description: RCC PLL3 configuration register + byte_offset: 48 + fieldset: PLL3CFGR + - name: PLL1DIVR + description: RCC PLL1 dividers register + byte_offset: 52 + fieldset: PLL1DIVR + - name: PLL1FRACR + description: RCC PLL1 fractional divider register + byte_offset: 56 + fieldset: PLL1FRACR + - name: PLL2DIVR + description: RCC PLL2 dividers configuration register + byte_offset: 60 + fieldset: PLL2DIVR + - name: PLL2FRACR + description: RCC PLL2 fractional divider register + byte_offset: 64 + fieldset: PLL2FRACR + - name: PLL3DIVR + description: RCC PLL3 dividers configuration register + byte_offset: 68 + fieldset: PLL3DIVR + - name: PLL3FRACR + description: RCC PLL3 fractional divider register + byte_offset: 72 + fieldset: PLL3FRACR + - name: CIER + description: RCC clock interrupt enable register + byte_offset: 80 + fieldset: CIER + - name: CIFR + description: RCC clock interrupt flag register + byte_offset: 84 + fieldset: CIFR + - name: CICR + description: RCC clock interrupt clear register + byte_offset: 88 + fieldset: CICR + - name: AHB1RSTR + description: RCC AHB1 peripheral reset register + byte_offset: 96 + fieldset: AHB1RSTR + - name: AHB2RSTR1 + description: RCC AHB2 peripheral reset register 1 + byte_offset: 100 + fieldset: AHB2RSTR1 + - name: AHB2RSTR2 + description: RCC AHB2 peripheral reset register 2 + byte_offset: 104 + fieldset: AHB2RSTR2 + - name: AHB3RSTR + description: RCC AHB3 peripheral reset register + byte_offset: 108 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: RCC APB1 peripheral reset register 1 + byte_offset: 116 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: RCC APB1 peripheral reset register 2 + byte_offset: 120 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: RCC APB2 peripheral reset register + byte_offset: 124 + fieldset: APB2RSTR + - name: APB3RSTR + description: RCC APB3 peripheral reset register + byte_offset: 128 + fieldset: APB3RSTR + - name: AHB1ENR + description: RCC AHB1 peripheral clock enable register + byte_offset: 136 + fieldset: AHB1ENR + - name: AHB2ENR1 + description: RCC AHB2 peripheral clock enable register 1 + byte_offset: 140 + fieldset: AHB2ENR1 + - name: AHB2ENR2 + description: RCC AHB2 peripheral clock enable register 2 + byte_offset: 144 + fieldset: AHB2ENR2 + - name: AHB3ENR + description: RCC AHB3 peripheral clock enable register + byte_offset: 148 + fieldset: AHB3ENR + - name: APB1ENR1 + description: RCC APB1 peripheral clock enable register 1 + byte_offset: 156 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: RCC APB1 peripheral clock enable register 2 + byte_offset: 160 + fieldset: APB1ENR2 + - name: APB2ENR + description: RCC APB2 peripheral clock enable register + byte_offset: 164 + fieldset: APB2ENR + - name: APB3ENR + description: RCC APB3 peripheral clock enable register + byte_offset: 168 + fieldset: APB3ENR + - name: AHB1SMENR + description: RCC AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 176 + fieldset: AHB1SMENR + - name: AHB2SMENR1 + description: "RCC AHB2 peripheral clocks enable in Sleep and\tStop modes register 1" + byte_offset: 180 + fieldset: AHB2SMENR1 + - name: AHB2SMENR2 + description: "RCC AHB2 peripheral clocks enable in Sleep and\tStop modes register 2" + byte_offset: 184 + fieldset: AHB2SMENR2 + - name: AHB3SMENR + description: RCC AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 188 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes\tregister 1" + byte_offset: 196 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: "RCC APB1 peripheral clocks enable in Sleep and\tStop modes register 2" + byte_offset: 200 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: RCC APB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 204 + fieldset: APB2SMENR + - name: APB3SMENR + description: RCC APB3 peripheral clock enable in Sleep and Stop modes register + byte_offset: 208 + fieldset: APB3SMENR + - name: SRDAMR + description: RCC SmartRun domain peripheral autonomous mode register + byte_offset: 216 + fieldset: SRDAMR + - name: CCIPR1 + description: RCC peripherals independent clock configuration register 1 + byte_offset: 224 + fieldset: CCIPR1 + - name: CCIPR2 + description: RCC peripherals independent clock configuration register 2 + byte_offset: 228 + fieldset: CCIPR2 + - name: CCIPR3 + description: RCC peripherals independent clock configuration register 3 + byte_offset: 232 + fieldset: CCIPR3 + - name: BDCR + description: RCC Backup domain control register + byte_offset: 240 + fieldset: BDCR + - name: CSR + description: RCC control/status register + byte_offset: 244 + fieldset: CSR + - name: SECCFGR + description: RCC secure configuration register + byte_offset: 272 + fieldset: SECCFGR + - name: PRIVCFGR + description: RCC privilege configuration register + byte_offset: 276 + fieldset: PRIVCFGR fieldset/AHB1ENR: description: RCC AHB1 peripheral clock enable register fields: - - name: GPDMA1EN - description: "GPDMA1 clock enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: CORDICEN - description: "CORDIC clock enable\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: FMACEN - description: "FMAC clock enable\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - - name: MDF1EN - description: "MDF1 clock enable\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - - name: FLASHEN - description: "FLASH clock enable\r Set and cleared by software. This bit can be disabled only when the Flash memory is in power down mode." - bit_offset: 8 - bit_size: 1 - - name: CRCEN - description: "CRC clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: JPEGEN - description: "JPEG clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 15 - bit_size: 1 - - name: TSCEN - description: "Touch sensing controller clock enable\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: RAMCFGEN - description: "RAMCFG clock enable\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: DMA2DEN - description: "DMA2D clock enable\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: GFXMMUEN - description: "GFXMMU clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 19 - bit_size: 1 - - name: GPU2DEN - description: "GPU2D clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 20 - bit_size: 1 - - name: DCACHE2EN - description: "DCACHE2 clock enable \r This bit is set and reset by software.\r Note: DCACHE2 clock must be enabled to access memories, even if the DCACHE2 is bypassed.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 21 - bit_size: 1 - - name: GTZC1EN - description: "GTZC1 clock enable\r Set and reset by software." - bit_offset: 24 - bit_size: 1 - - name: BKPSRAMEN - description: "BKPSRAM clock enable\r Set and reset by software." - bit_offset: 28 - bit_size: 1 - - name: DCACHE1EN - description: "DCACHE1 clock enable\r Set and reset by software.\r Note: DCACHE1 clock must be enabled when external memories are accessed through OCTOSPI1, OCTOSPI2 or FSMC, even if the DCACHE1 is bypassed." - bit_offset: 30 - bit_size: 1 - - name: SRAM1EN - description: "SRAM1 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: GPDMA1EN + description: "GPDMA1 clock enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: CORDICEN + description: "CORDIC clock enable\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: FMACEN + description: "FMAC clock enable\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + - name: MDF1EN + description: "MDF1 clock enable\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: FLASHEN + description: "FLASH clock enable\r Set and cleared by software. This bit can be disabled only when the Flash memory is in power down mode." + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: "CRC clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: JPEGEN + description: "JPEG clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 15 + bit_size: 1 + - name: TSCEN + description: "Touch sensing controller clock enable\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: RAMCFGEN + description: "RAMCFG clock enable\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: DMA2DEN + description: "DMA2D clock enable\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: GFXMMUEN + description: "GFXMMU clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 19 + bit_size: 1 + - name: GPU2DEN + description: "GPU2D clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 20 + bit_size: 1 + - name: DCACHE2EN + description: "DCACHE2 clock enable \r This bit is set and reset by software.\r Note: DCACHE2 clock must be enabled to access memories, even if the DCACHE2 is bypassed.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 21 + bit_size: 1 + - name: GTZC1EN + description: "GTZC1 clock enable\r Set and reset by software." + bit_offset: 24 + bit_size: 1 + - name: BKPSRAMEN + description: "BKPSRAM clock enable\r Set and reset by software." + bit_offset: 28 + bit_size: 1 + - name: DCACHE1EN + description: "DCACHE1 clock enable\r Set and reset by software.\r Note: DCACHE1 clock must be enabled when external memories are accessed through OCTOSPI1, OCTOSPI2 or FSMC, even if the DCACHE1 is bypassed." + bit_offset: 30 + bit_size: 1 + - name: SRAM1EN + description: "SRAM1 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB1RSTR: description: RCC AHB1 peripheral reset register fields: - - name: GPDMA1RST - description: "GPDMA1 reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: CORDICRST - description: "CORDIC reset\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: FMACRST - description: "FMAC reset\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: MDF1RST - description: "MDF1 reset\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: CRCRST - description: "CRC reset\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: JPEGRST - description: "JPEG reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 15 - bit_size: 1 - - name: TSCRST - description: "TSC reset\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: RAMCFGRST - description: "RAMCFG reset\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: DMA2DRST - description: "DMA2D reset\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: GFXMMURST - description: "GFXMMU reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 19 - bit_size: 1 - - name: GPU2DRST - description: "GPU2D reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 20 - bit_size: 1 + - name: GPDMA1RST + description: "GPDMA1 reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: CORDICRST + description: "CORDIC reset\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: FMACRST + description: "FMAC reset\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: MDF1RST + description: "MDF1 reset\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: CRCRST + description: "CRC reset\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: JPEGRST + description: "JPEG reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 15 + bit_size: 1 + - name: TSCRST + description: "TSC reset\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: RAMCFGRST + description: "RAMCFG reset\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: DMA2DRST + description: "DMA2D reset\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: GFXMMURST + description: "GFXMMU reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 19 + bit_size: 1 + - name: GPU2DRST + description: "GPU2D reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 20 + bit_size: 1 fieldset/AHB1SMENR: description: RCC AHB1 peripheral clocks enable in Sleep and Stop modes register fields: - - name: GPDMA1SMEN - description: "GPDMA1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 0 - bit_size: 1 - - name: CORDICSMEN - description: "CORDIC clocks enable during Sleep and Stop modes\r Set and cleared by software during Sleep mode." - bit_offset: 1 - bit_size: 1 - - name: FMACSMEN - description: "FMAC clocks enable during Sleep and Stop modes.\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: MDF1SMEN - description: "MDF1 clocks enable during Sleep and Stop modes.\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 3 - bit_size: 1 - - name: FLASHSMEN - description: "FLASH clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: CRCSMEN - description: "CRC clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: JPEGSMEN - description: "JPEG clocks enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 15 - bit_size: 1 - - name: TSCSMEN - description: "TSC clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: RAMCFGSMEN - description: "RAMCFG clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: DMA2DSMEN - description: "DMA2D clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: GFXMMUSMEN - description: "GFXMMU clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 19 - bit_size: 1 - - name: GPU2DSMEN - description: "GPU2D clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 20 - bit_size: 1 - - name: DCACHE2SMEN - description: "DCACHE2 clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 21 - bit_size: 1 - - name: GTZC1SMEN - description: "GTZC1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: BKPSRAMSMEN - description: "BKPSRAM clocks enable during Sleep and Stop modes\r Set and cleared by software" - bit_offset: 28 - bit_size: 1 - - name: ICACHESMEN - description: "ICACHE clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 29 - bit_size: 1 - - name: DCACHE1SMEN - description: "DCACHE1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 30 - bit_size: 1 - - name: SRAM1SMEN - description: "SRAM1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 31 - bit_size: 1 + - name: GPDMA1SMEN + description: "GPDMA1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 0 + bit_size: 1 + - name: CORDICSMEN + description: "CORDIC clocks enable during Sleep and Stop modes\r Set and cleared by software during Sleep mode." + bit_offset: 1 + bit_size: 1 + - name: FMACSMEN + description: "FMAC clocks enable during Sleep and Stop modes.\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: MDF1SMEN + description: "MDF1 clocks enable during Sleep and Stop modes.\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 3 + bit_size: 1 + - name: FLASHSMEN + description: "FLASH clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: CRCSMEN + description: "CRC clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: JPEGSMEN + description: "JPEG clocks enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 15 + bit_size: 1 + - name: TSCSMEN + description: "TSC clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: RAMCFGSMEN + description: "RAMCFG clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: DMA2DSMEN + description: "DMA2D clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: GFXMMUSMEN + description: "GFXMMU clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 19 + bit_size: 1 + - name: GPU2DSMEN + description: "GPU2D clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 20 + bit_size: 1 + - name: DCACHE2SMEN + description: "DCACHE2 clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 21 + bit_size: 1 + - name: GTZC1SMEN + description: "GTZC1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: BKPSRAMSMEN + description: "BKPSRAM clocks enable during Sleep and Stop modes\r Set and cleared by software" + bit_offset: 28 + bit_size: 1 + - name: ICACHESMEN + description: "ICACHE clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 29 + bit_size: 1 + - name: DCACHE1SMEN + description: "DCACHE1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 30 + bit_size: 1 + - name: SRAM1SMEN + description: "SRAM1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB2ENR1: description: RCC AHB2 peripheral clock enable register 1 fields: - - name: GPIOAEN - description: "IO port A clock enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: "IO port B clock enable\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: "IO port C clock enable\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: "IO port D clock enable\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: "IO port E clock enable\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: GPIOFEN - description: "IO port F clock enable\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: GPIOGEN - description: "IO port G clock enable\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: GPIOHEN - description: "IO port H clock enable\r Set and cleared by software." - bit_offset: 7 - bit_size: 1 - - name: GPIOIEN - description: "IO port I clock enable\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: GPIOJEN - description: "I/O port J clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 9 - bit_size: 1 - - name: ADC12EN - description: "ADC1 and ADC2 clock enable\r This bit is set and cleared by software.\r Note: This bit impacts ADC1 in STM32U535/545/575/585, and ADC1/ADC2 in�STM32U59x/5Ax/5Fx/5Gx." - bit_offset: 10 - bit_size: 1 - - name: DCMIEN - description: "DCMI and PSSI clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: USB_OTG_FSEN - description: "OTG_FS clock enable\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USB_OTG_HSEN - description: "OTG_HS clock enable\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USB_OTG_HS_PHYEN - description: "OTG_HS PHY clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 15 - bit_size: 1 - - name: AESEN - description: "AES clock enable\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: HASHEN - description: "HASH clock enable\r Set and cleared by software" - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: "RNG clock enable\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: PKAEN - description: "PKA clock enable\r Set and cleared by software." - bit_offset: 19 - bit_size: 1 - - name: SAESEN - description: "SAES clock enable\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: OCTOSPIMEN - description: "OCTOSPIM clock enable\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: OTFDEC1EN - description: "OTFDEC1 clock enable\r Set and cleared by software." - bit_offset: 23 - bit_size: 1 - - name: OTFDEC2EN - description: "OTFDEC2 clock enable\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: SDMMC1EN - description: "SDMMC1 clock enable\r Set and cleared by software." - bit_offset: 27 - bit_size: 1 - - name: SDMMC2EN - description: "SDMMC2 clock enable\r Set and cleared by software." - bit_offset: 28 - bit_size: 1 - - name: SRAM2EN - description: "SRAM2 clock enable\r Set and reset by software." - bit_offset: 30 - bit_size: 1 - - name: SRAM3EN - description: "SRAM3 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: GPIOAEN + description: "IO port A clock enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: "IO port B clock enable\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: "IO port C clock enable\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: "IO port D clock enable\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: "IO port E clock enable\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: GPIOFEN + description: "IO port F clock enable\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: GPIOGEN + description: "IO port G clock enable\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: GPIOHEN + description: "IO port H clock enable\r Set and cleared by software." + bit_offset: 7 + bit_size: 1 + - name: GPIOIEN + description: "IO port I clock enable\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: GPIOJEN + description: "I/O port J clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 9 + bit_size: 1 + - name: ADC12EN + description: "ADC1 and ADC2 clock enable\r This bit is set and cleared by software.\r Note: This bit impacts ADC1 in STM32U535/545/575/585, and ADC1/ADC2 in�STM32U59x/5Ax/5Fx/5Gx." + bit_offset: 10 + bit_size: 1 + - name: DCMIEN + description: "DCMI and PSSI clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: USB_OTG_FSEN + description: "OTG_FS clock enable\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USB_OTG_HSEN + description: "OTG_HS clock enable\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USB_OTG_HS_PHYEN + description: "OTG_HS PHY clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 15 + bit_size: 1 + - name: AESEN + description: "AES clock enable\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: HASHEN + description: "HASH clock enable\r Set and cleared by software" + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: "RNG clock enable\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: PKAEN + description: "PKA clock enable\r Set and cleared by software." + bit_offset: 19 + bit_size: 1 + - name: SAESEN + description: "SAES clock enable\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: OCTOSPIMEN + description: "OCTOSPIM clock enable\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: OTFDEC1EN + description: "OTFDEC1 clock enable\r Set and cleared by software." + bit_offset: 23 + bit_size: 1 + - name: OTFDEC2EN + description: "OTFDEC2 clock enable\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: SDMMC1EN + description: "SDMMC1 clock enable\r Set and cleared by software." + bit_offset: 27 + bit_size: 1 + - name: SDMMC2EN + description: "SDMMC2 clock enable\r Set and cleared by software." + bit_offset: 28 + bit_size: 1 + - name: SRAM2EN + description: "SRAM2 clock enable\r Set and reset by software." + bit_offset: 30 + bit_size: 1 + - name: SRAM3EN + description: "SRAM3 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB2ENR2: description: RCC AHB2 peripheral clock enable register 2 fields: - - name: FSMCEN - description: "FSMC clock enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: OCTOSPI1EN - description: "OCTOSPI1 clock enable\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: OCTOSPI2EN - description: "OCTOSPI2 clock enable\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: HSPI1EN - description: "HSPI1 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 12 - bit_size: 1 - - name: SRAM6EN - description: "SRAM6 clock enable \r This bit is set and reset by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 30 - bit_size: 1 - - name: SRAM5EN - description: "SRAM5 clock enable \r This bit is set and reset by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 31 - bit_size: 1 + - name: FSMCEN + description: "FSMC clock enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: OCTOSPI1EN + description: "OCTOSPI1 clock enable\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: OCTOSPI2EN + description: "OCTOSPI2 clock enable\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: HSPI1EN + description: "HSPI1 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 12 + bit_size: 1 + - name: SRAM6EN + description: "SRAM6 clock enable \r This bit is set and reset by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 30 + bit_size: 1 + - name: SRAM5EN + description: "SRAM5 clock enable \r This bit is set and reset by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 31 + bit_size: 1 fieldset/AHB2RSTR1: description: RCC AHB2 peripheral reset register 1 fields: - - name: GPIOARST - description: "IO port A reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: "IO port B reset\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: "IO port C reset\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: "IO port D reset\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: "IO port E reset\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: GPIOFRST - description: "IO port F reset\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: GPIOGRST - description: "IO port G reset\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: GPIOHRST - description: "IO port H reset\r Set and cleared by software." - bit_offset: 7 - bit_size: 1 - - name: GPIOIRST - description: "IO port I reset\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: GPIOJRST - description: "I/O port J reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 9 - bit_size: 1 - - name: ADC12RST - description: "ADC1 and ADC2 reset\r This bit is set and cleared by software.\r Note: This bit impacts ADC1 in STM32U535/545/575/585, and ADC1/ADC2 in�STM32U59x/5Ax/5Fx/5Gx." - bit_offset: 10 - bit_size: 1 - - name: DCMIRST - description: "DCMI and PSSI reset\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: USB_OTG_FSRST - description: "OTG_FS reset\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USB_OTG_HSRST - description: "OTG_HS reset\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: AESRST - description: "AES hardware accelerator reset\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: HASHRST - description: "Hash reset\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: "Random number generator reset\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: PKARST - description: "PKA reset\r Set and cleared by software." - bit_offset: 19 - bit_size: 1 - - name: SAESRST - description: "SAES hardware accelerator reset\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: OCTOSPIMRST - description: "OCTOSPIM reset\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: OTFDEC1RST - description: "OTFDEC1 reset\r Set and cleared by software." - bit_offset: 23 - bit_size: 1 - - name: OTFDEC2RST - description: "OTFDEC2 reset\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: SDMMC1RST - description: "SDMMC1 reset\r Set and cleared by software." - bit_offset: 27 - bit_size: 1 - - name: SDMMC2RST - description: "SDMMC2 reset\r Set and cleared by software." - bit_offset: 28 - bit_size: 1 + - name: GPIOARST + description: "IO port A reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: "IO port B reset\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: "IO port C reset\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: "IO port D reset\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: "IO port E reset\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: GPIOFRST + description: "IO port F reset\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: GPIOGRST + description: "IO port G reset\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: GPIOHRST + description: "IO port H reset\r Set and cleared by software." + bit_offset: 7 + bit_size: 1 + - name: GPIOIRST + description: "IO port I reset\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: GPIOJRST + description: "I/O port J reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 9 + bit_size: 1 + - name: ADC12RST + description: "ADC1 and ADC2 reset\r This bit is set and cleared by software.\r Note: This bit impacts ADC1 in STM32U535/545/575/585, and ADC1/ADC2 in�STM32U59x/5Ax/5Fx/5Gx." + bit_offset: 10 + bit_size: 1 + - name: DCMIRST + description: "DCMI and PSSI reset\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: USB_OTG_FSRST + description: "OTG_FS reset\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USB_OTG_HSRST + description: "OTG_HS reset\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: AESRST + description: "AES hardware accelerator reset\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: HASHRST + description: "Hash reset\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: "Random number generator reset\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: PKARST + description: "PKA reset\r Set and cleared by software." + bit_offset: 19 + bit_size: 1 + - name: SAESRST + description: "SAES hardware accelerator reset\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: OCTOSPIMRST + description: "OCTOSPIM reset\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: OTFDEC1RST + description: "OTFDEC1 reset\r Set and cleared by software." + bit_offset: 23 + bit_size: 1 + - name: OTFDEC2RST + description: "OTFDEC2 reset\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: SDMMC1RST + description: "SDMMC1 reset\r Set and cleared by software." + bit_offset: 27 + bit_size: 1 + - name: SDMMC2RST + description: "SDMMC2 reset\r Set and cleared by software." + bit_offset: 28 + bit_size: 1 fieldset/AHB2RSTR2: description: RCC AHB2 peripheral reset register 2 fields: - - name: FSMCRST - description: "Flexible memory controller reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: OCTOSPI1RST - description: "OCTOSPI1 reset\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: OCTOSPI2RST - description: "OCTOSPI2 reset\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: HSPI1RST - description: "HSPI1 reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 12 - bit_size: 1 + - name: FSMCRST + description: "Flexible memory controller reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: OCTOSPI1RST + description: "OCTOSPI1 reset\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: OCTOSPI2RST + description: "OCTOSPI2 reset\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: HSPI1RST + description: "HSPI1 reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 12 + bit_size: 1 fieldset/AHB2SMENR1: description: "RCC AHB2 peripheral clocks enable in Sleep and\tStop modes register 1" fields: - - name: GPIOASMEN - description: "IO port A clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: "IO port B clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: "IO port C clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: "IO port D clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: "IO port E clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: GPIOFSMEN - description: "IO port F clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: GPIOGSMEN - description: "IO port G clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: GPIOHSMEN - description: "IO port H clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 7 - bit_size: 1 - - name: GPIOISMEN - description: "IO port I clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: GPIOJSMEN - description: "I/O port J clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 9 - bit_size: 1 - - name: ADC12SMEN - description: "ADC1 and ADC2 clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit impacts ADC1 in STM32U535/545/575/585 and ADC1/ADC2 in�STM32U59x/5Ax/5Fx/5Gx." - bit_offset: 10 - bit_size: 1 - - name: DCMISMEN - description: "DCMI and PSSI clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: USB_OTG_FSSMEN - description: "OTG_FS clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USB_OTG_HSSMEN - description: "OTG_HS clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USB_OTG_HS_PHYSMEN - description: "OTG_HS PHY clock enable during Sleep and Stop modes\r This bit is set and cleared by software\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 15 - bit_size: 1 - - name: AESSMEN - description: "AES clock enable during Sleep and Stop modes\r Set and cleared by software" - bit_offset: 16 - bit_size: 1 - - name: HASHSMEN - description: "HASH clock enable during Sleep and Stop modes\r Set and cleared by software" - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: "Random number generator (RNG) clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: PKASMEN - description: "PKA clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 19 - bit_size: 1 - - name: SAESSMEN - description: "SAES accelerator clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: OCTOSPIMSMEN - description: "OCTOSPIM clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: OTFDEC1SMEN - description: "OTFDEC1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 23 - bit_size: 1 - - name: OTFDEC2SMEN - description: "OTFDEC2 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: SDMMC1SMEN - description: "SDMMC1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 27 - bit_size: 1 - - name: SDMMC2SMEN - description: "SDMMC2 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 28 - bit_size: 1 - - name: SRAM2SMEN - description: "SRAM2 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 30 - bit_size: 1 - - name: SRAM3SMEN - description: "SRAM3 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 31 - bit_size: 1 + - name: GPIOASMEN + description: "IO port A clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: "IO port B clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: "IO port C clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: "IO port D clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: "IO port E clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: GPIOFSMEN + description: "IO port F clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: GPIOGSMEN + description: "IO port G clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: GPIOHSMEN + description: "IO port H clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 7 + bit_size: 1 + - name: GPIOISMEN + description: "IO port I clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: GPIOJSMEN + description: "I/O port J clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 9 + bit_size: 1 + - name: ADC12SMEN + description: "ADC1 and ADC2 clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit impacts ADC1 in STM32U535/545/575/585 and ADC1/ADC2 in�STM32U59x/5Ax/5Fx/5Gx." + bit_offset: 10 + bit_size: 1 + - name: DCMISMEN + description: "DCMI and PSSI clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: USB_OTG_FSSMEN + description: "OTG_FS clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USB_OTG_HSSMEN + description: "OTG_HS clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USB_OTG_HS_PHYSMEN + description: "OTG_HS PHY clock enable during Sleep and Stop modes\r This bit is set and cleared by software\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 15 + bit_size: 1 + - name: AESSMEN + description: "AES clock enable during Sleep and Stop modes\r Set and cleared by software" + bit_offset: 16 + bit_size: 1 + - name: HASHSMEN + description: "HASH clock enable during Sleep and Stop modes\r Set and cleared by software" + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: "Random number generator (RNG) clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: PKASMEN + description: "PKA clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 19 + bit_size: 1 + - name: SAESSMEN + description: "SAES accelerator clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: OCTOSPIMSMEN + description: "OCTOSPIM clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: OTFDEC1SMEN + description: "OTFDEC1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 23 + bit_size: 1 + - name: OTFDEC2SMEN + description: "OTFDEC2 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: SDMMC1SMEN + description: "SDMMC1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 27 + bit_size: 1 + - name: SDMMC2SMEN + description: "SDMMC2 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 28 + bit_size: 1 + - name: SRAM2SMEN + description: "SRAM2 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 30 + bit_size: 1 + - name: SRAM3SMEN + description: "SRAM3 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB2SMENR2: description: "RCC AHB2 peripheral clocks enable in Sleep and\tStop modes register 2" fields: - - name: FSMCSMEN - description: "FSMC clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: OCTOSPI1SMEN - description: "OCTOSPI1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: OCTOSPI2SMEN - description: "OCTOSPI2 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 8 - bit_size: 1 - - name: HSPI1SMEN - description: "HSPI1 clock enable during Sleep and Stop modes \r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 12 - bit_size: 1 - - name: SRAM6SMEN - description: "SRAM6 clock enable during Sleep and Stop modes \r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 30 - bit_size: 1 - - name: SRAM5SMEN - description: "SRAM5 clock enable during Sleep and Stop modes \r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 31 - bit_size: 1 + - name: FSMCSMEN + description: "FSMC clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: OCTOSPI1SMEN + description: "OCTOSPI1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: OCTOSPI2SMEN + description: "OCTOSPI2 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 8 + bit_size: 1 + - name: HSPI1SMEN + description: "HSPI1 clock enable during Sleep and Stop modes \r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 12 + bit_size: 1 + - name: SRAM6SMEN + description: "SRAM6 clock enable during Sleep and Stop modes \r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 30 + bit_size: 1 + - name: SRAM5SMEN + description: "SRAM5 clock enable during Sleep and Stop modes \r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 31 + bit_size: 1 fieldset/AHB3ENR: description: RCC AHB3 peripheral clock enable register fields: - - name: LPGPIO1EN - description: "LPGPIO1 enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: PWREN - description: "PWR clock enable\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: ADC4EN - description: "ADC4 clock enable\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: DAC1EN - description: "DAC1 clock enable\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: LPDMA1EN - description: "LPDMA1 clock enable\r Set and cleared by software." - bit_offset: 9 - bit_size: 1 - - name: ADF1EN - description: "ADF1 clock enable\r Set and cleared by software." - bit_offset: 10 - bit_size: 1 - - name: GTZC2EN - description: "GTZC2 clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: SRAM4EN - description: "SRAM4 clock enable\r Set and reset by software." - bit_offset: 31 - bit_size: 1 + - name: LPGPIO1EN + description: "LPGPIO1 enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: PWREN + description: "PWR clock enable\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: ADC4EN + description: "ADC4 clock enable\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: DAC1EN + description: "DAC1 clock enable\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: LPDMA1EN + description: "LPDMA1 clock enable\r Set and cleared by software." + bit_offset: 9 + bit_size: 1 + - name: ADF1EN + description: "ADF1 clock enable\r Set and cleared by software." + bit_offset: 10 + bit_size: 1 + - name: GTZC2EN + description: "GTZC2 clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: SRAM4EN + description: "SRAM4 clock enable\r Set and reset by software." + bit_offset: 31 + bit_size: 1 fieldset/AHB3RSTR: description: RCC AHB3 peripheral reset register fields: - - name: LPGPIO1RST - description: "LPGPIO1 reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: ADC4RST - description: "ADC4 reset\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: DAC1RST - description: "DAC1 reset\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: LPDMA1RST - description: "LPDMA1 reset\r Set and cleared by software." - bit_offset: 9 - bit_size: 1 - - name: ADF1RST - description: "ADF1 reset\r Set and cleared by software." - bit_offset: 10 - bit_size: 1 + - name: LPGPIO1RST + description: "LPGPIO1 reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: ADC4RST + description: "ADC4 reset\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: DAC1RST + description: "DAC1 reset\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: LPDMA1RST + description: "LPDMA1 reset\r Set and cleared by software." + bit_offset: 9 + bit_size: 1 + - name: ADF1RST + description: "ADF1 reset\r Set and cleared by software." + bit_offset: 10 + bit_size: 1 fieldset/AHB3SMENR: description: RCC AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: LPGPIO1SMEN - description: "LPGPIO1 enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: PWRSMEN - description: "PWR clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: ADC4SMEN - description: "ADC4 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 5 - bit_size: 1 - - name: DAC1SMEN - description: "DAC1 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 6 - bit_size: 1 - - name: LPDMA1SMEN - description: "LPDMA1 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 9 - bit_size: 1 - - name: ADF1SMEN - description: "ADF1 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 10 - bit_size: 1 - - name: GTZC2SMEN - description: "GTZC2 clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: SRAM4SMEN - description: "SRAM4 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 31 - bit_size: 1 + - name: LPGPIO1SMEN + description: "LPGPIO1 enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: PWRSMEN + description: "PWR clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: ADC4SMEN + description: "ADC4 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 + - name: DAC1SMEN + description: "DAC1 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 6 + bit_size: 1 + - name: LPDMA1SMEN + description: "LPDMA1 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 9 + bit_size: 1 + - name: ADF1SMEN + description: "ADF1 clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 10 + bit_size: 1 + - name: GTZC2SMEN + description: "GTZC2 clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: SRAM4SMEN + description: "SRAM4 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR1: description: RCC APB1 peripheral clock enable register 1 fields: - - name: TIM2EN - description: "TIM2 clock enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3EN - description: "TIM3 clock enable\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: TIM4EN - description: "TIM4 clock enable\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: TIM5EN - description: "TIM5 clock enable\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: TIM6EN - description: "TIM6 clock enable\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7EN - description: "TIM7 clock enable\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: WWDGEN - description: "WWDG clock enable\r Set by software to enable the window watchdog clock. Reset by hardware system reset.\r This bit can also be set by hardware if the WWDG_SW option bit is reset." - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: "SPI2 clock enable\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: "USART2 clock enable\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: USART3EN - description: "USART3 clock enable\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: UART4EN - description: "UART4 clock enable\r Set and cleared by software." - bit_offset: 19 - bit_size: 1 - - name: UART5EN - description: "UART5 clock enable\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: I2C1EN - description: "I2C1 clock enable\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: "I2C2 clock enable\r Set and cleared by software." - bit_offset: 22 - bit_size: 1 - - name: CRSEN - description: "CRS clock enable\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: USART6EN - description: "USART6 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 25 - bit_size: 1 + - name: TIM2EN + description: "TIM2 clock enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: "TIM3 clock enable\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: TIM4EN + description: "TIM4 clock enable\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: TIM5EN + description: "TIM5 clock enable\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: TIM6EN + description: "TIM6 clock enable\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7EN + description: "TIM7 clock enable\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: WWDGEN + description: "WWDG clock enable\r Set by software to enable the window watchdog clock. Reset by hardware system reset.\r This bit can also be set by hardware if the WWDG_SW option bit is reset." + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: "SPI2 clock enable\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: "USART2 clock enable\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: USART3EN + description: "USART3 clock enable\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: UART4EN + description: "UART4 clock enable\r Set and cleared by software." + bit_offset: 19 + bit_size: 1 + - name: UART5EN + description: "UART5 clock enable\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: I2C1EN + description: "I2C1 clock enable\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: "I2C2 clock enable\r Set and cleared by software." + bit_offset: 22 + bit_size: 1 + - name: CRSEN + description: "CRS clock enable\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: USART6EN + description: "USART6 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 25 + bit_size: 1 fieldset/APB1ENR2: description: RCC APB1 peripheral clock enable register 2 fields: - - name: I2C4EN - description: "I2C4 clock enable\r Set and cleared by software" - bit_offset: 1 - bit_size: 1 - - name: LPTIM2EN - description: "LPTIM2 clock enable\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: I2C5EN - description: "I2C5 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 6 - bit_size: 1 - - name: I2C6EN - description: "I2C6 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 7 - bit_size: 1 - - name: FDCAN1EN - description: "FDCAN1 clock enable\r Set and cleared by software." - bit_offset: 9 - bit_size: 1 - - name: UCPD1EN - description: "UCPD1 clock enable\r Set and cleared by software." - bit_offset: 23 - bit_size: 1 + - name: I2C4EN + description: "I2C4 clock enable\r Set and cleared by software" + bit_offset: 1 + bit_size: 1 + - name: LPTIM2EN + description: "LPTIM2 clock enable\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: I2C5EN + description: "I2C5 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 6 + bit_size: 1 + - name: I2C6EN + description: "I2C6 clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 7 + bit_size: 1 + - name: FDCAN1EN + description: "FDCAN1 clock enable\r Set and cleared by software." + bit_offset: 9 + bit_size: 1 + - name: UCPD1EN + description: "UCPD1 clock enable\r Set and cleared by software." + bit_offset: 23 + bit_size: 1 fieldset/APB1RSTR1: description: RCC APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: "TIM2 reset\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3RST - description: "TIM3 reset\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: TIM4RST - description: "TIM4 reset\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: TIM5RST - description: "TIM5 reset\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: TIM6RST - description: "TIM6 reset\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7RST - description: "TIM7 reset\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: SPI2RST - description: "SPI2 reset\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: USART2RST - description: "USART2 reset\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: USART3RST - description: "USART3 reset\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: UART4RST - description: "UART4 reset\r Set and cleared by software." - bit_offset: 19 - bit_size: 1 - - name: UART5RST - description: "UART5 reset\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: I2C1RST - description: "I2C1 reset\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: "I2C2 reset\r Set and cleared by software." - bit_offset: 22 - bit_size: 1 - - name: CRSRST - description: "CRS reset\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: USART6RST - description: "USART6 reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 25 - bit_size: 1 + - name: TIM2RST + description: "TIM2 reset\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: "TIM3 reset\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: TIM4RST + description: "TIM4 reset\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: TIM5RST + description: "TIM5 reset\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: TIM6RST + description: "TIM6 reset\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7RST + description: "TIM7 reset\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: SPI2RST + description: "SPI2 reset\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: USART2RST + description: "USART2 reset\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: USART3RST + description: "USART3 reset\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: UART4RST + description: "UART4 reset\r Set and cleared by software." + bit_offset: 19 + bit_size: 1 + - name: UART5RST + description: "UART5 reset\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: I2C1RST + description: "I2C1 reset\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: "I2C2 reset\r Set and cleared by software." + bit_offset: 22 + bit_size: 1 + - name: CRSRST + description: "CRS reset\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: USART6RST + description: "USART6 reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 25 + bit_size: 1 fieldset/APB1RSTR2: description: RCC APB1 peripheral reset register 2 fields: - - name: I2C4RST - description: "I2C4 reset\r Set and cleared by software" - bit_offset: 1 - bit_size: 1 - - name: LPTIM2RST - description: "LPTIM2 reset\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: I2C5RST - description: "I2C5 reset\r This bit is set and cleared by software\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 6 - bit_size: 1 - - name: I2C6RST - description: "I2C6 reset\r This bit is set and cleared by software\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 7 - bit_size: 1 - - name: FDCAN1RST - description: "FDCAN1 reset\r Set and cleared by software." - bit_offset: 9 - bit_size: 1 - - name: UCPD1RST - description: "UCPD1 reset\r Set and cleared by software." - bit_offset: 23 - bit_size: 1 + - name: I2C4RST + description: "I2C4 reset\r Set and cleared by software" + bit_offset: 1 + bit_size: 1 + - name: LPTIM2RST + description: "LPTIM2 reset\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: I2C5RST + description: "I2C5 reset\r This bit is set and cleared by software\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 6 + bit_size: 1 + - name: I2C6RST + description: "I2C6 reset\r This bit is set and cleared by software\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 7 + bit_size: 1 + - name: FDCAN1RST + description: "FDCAN1 reset\r Set and cleared by software." + bit_offset: 9 + bit_size: 1 + - name: UCPD1RST + description: "UCPD1 reset\r Set and cleared by software." + bit_offset: 23 + bit_size: 1 fieldset/APB1SMENR1: description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes\tregister 1" fields: - - name: TIM2SMEN - description: "TIM2 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: TIM3SMEN - description: "TIM3 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: TIM4SMEN - description: "TIM4 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 2 - bit_size: 1 - - name: TIM5SMEN - description: "TIM5 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 3 - bit_size: 1 - - name: TIM6SMEN - description: "TIM6 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 4 - bit_size: 1 - - name: TIM7SMEN - description: "TIM7 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: WWDGSMEN - description: "Window watchdog clocks enable during Sleep and Stop modes\r Set and cleared by software. This bit is forced to 1 by hardware when the hardware WWDG option is activated." - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: "SPI2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 14 - bit_size: 1 - - name: USART2SMEN - description: "USART2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 17 - bit_size: 1 - - name: USART3SMEN - description: "USART3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 18 - bit_size: 1 - - name: UART4SMEN - description: "UART4 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 19 - bit_size: 1 - - name: UART5SMEN - description: "UART5 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 20 - bit_size: 1 - - name: I2C1SMEN - description: "I2C1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: "I2C2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 22 - bit_size: 1 - - name: CRSSMEN - description: "CRS clock enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: USART6SMEN - description: "USART6 clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 25 - bit_size: 1 + - name: TIM2SMEN + description: "TIM2 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: "TIM3 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: TIM4SMEN + description: "TIM4 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 2 + bit_size: 1 + - name: TIM5SMEN + description: "TIM5 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 3 + bit_size: 1 + - name: TIM6SMEN + description: "TIM6 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 4 + bit_size: 1 + - name: TIM7SMEN + description: "TIM7 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: WWDGSMEN + description: "Window watchdog clocks enable during Sleep and Stop modes\r Set and cleared by software. This bit is forced to 1 by hardware when the hardware WWDG option is activated." + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: "SPI2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 14 + bit_size: 1 + - name: USART2SMEN + description: "USART2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 17 + bit_size: 1 + - name: USART3SMEN + description: "USART3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 18 + bit_size: 1 + - name: UART4SMEN + description: "UART4 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 19 + bit_size: 1 + - name: UART5SMEN + description: "UART5 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 20 + bit_size: 1 + - name: I2C1SMEN + description: "I2C1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: "I2C2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 22 + bit_size: 1 + - name: CRSSMEN + description: "CRS clock enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: USART6SMEN + description: "USART6 clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 25 + bit_size: 1 fieldset/APB1SMENR2: description: "RCC APB1 peripheral clocks enable in Sleep and\tStop modes register 2" fields: - - name: I2C4SMEN - description: "I2C4 clocks enable during Sleep and Stop modes\r Set and cleared by software\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 1 - bit_size: 1 - - name: LPTIM2SMEN - description: "LPTIM2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 5 - bit_size: 1 - - name: I2C5SMEN - description: "I2C5 clock enable during Sleep and Stop modes\r This bit is set and cleared by software\r Note: This bit must be set to allow the peripheral to wake up from Stop modes.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 6 - bit_size: 1 - - name: I2C6SMEN - description: "I2C6 clock enable during Sleep and Stop modes\r This bit is set and cleared by software\r Note: This bit must be set to allow the peripheral to wake up from Stop modes.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 7 - bit_size: 1 - - name: FDCAN1SMEN - description: "FDCAN1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 9 - bit_size: 1 - - name: UCPD1SMEN - description: "UCPD1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 23 - bit_size: 1 + - name: I2C4SMEN + description: "I2C4 clocks enable during Sleep and Stop modes\r Set and cleared by software\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 1 + bit_size: 1 + - name: LPTIM2SMEN + description: "LPTIM2 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 + - name: I2C5SMEN + description: "I2C5 clock enable during Sleep and Stop modes\r This bit is set and cleared by software\r Note: This bit must be set to allow the peripheral to wake up from Stop modes.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 6 + bit_size: 1 + - name: I2C6SMEN + description: "I2C6 clock enable during Sleep and Stop modes\r This bit is set and cleared by software\r Note: This bit must be set to allow the peripheral to wake up from Stop modes.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 7 + bit_size: 1 + - name: FDCAN1SMEN + description: "FDCAN1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 9 + bit_size: 1 + - name: UCPD1SMEN + description: "UCPD1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 23 + bit_size: 1 fieldset/APB2ENR: description: RCC APB2 peripheral clock enable register fields: - - name: TIM1EN - description: "TIM1 clock enable\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: "SPI1 clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: TIM8EN - description: "TIM8 clock enable\r Set and cleared by software." - bit_offset: 13 - bit_size: 1 - - name: USART1EN - description: "USART1clock enable\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: TIM15EN - description: "TIM15 clock enable\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: TIM16EN - description: "TIM16 clock enable\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: "TIM17 clock enable\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: SAI1EN - description: "SAI1 clock enable\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: SAI2EN - description: "SAI2 clock enable\r Set and cleared by software." - bit_offset: 22 - bit_size: 1 - - name: USBEN - description: "USB clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 24 - bit_size: 1 - - name: GFXTIMEN - description: "GFXTIM clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 25 - bit_size: 1 - - name: LTDCEN - description: "LTDC clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 26 - bit_size: 1 - - name: DSIEN - description: "DSI clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 27 - bit_size: 1 + - name: TIM1EN + description: "TIM1 clock enable\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: "SPI1 clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: TIM8EN + description: "TIM8 clock enable\r Set and cleared by software." + bit_offset: 13 + bit_size: 1 + - name: USART1EN + description: "USART1clock enable\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: TIM15EN + description: "TIM15 clock enable\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: TIM16EN + description: "TIM16 clock enable\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: "TIM17 clock enable\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: SAI1EN + description: "SAI1 clock enable\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: SAI2EN + description: "SAI2 clock enable\r Set and cleared by software." + bit_offset: 22 + bit_size: 1 + - name: USBEN + description: "USB clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 24 + bit_size: 1 + - name: GFXTIMEN + description: "GFXTIM clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 25 + bit_size: 1 + - name: LTDCEN + description: "LTDC clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 26 + bit_size: 1 + - name: DSIEN + description: "DSI clock enable\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 27 + bit_size: 1 fieldset/APB2RSTR: description: RCC APB2 peripheral reset register fields: - - name: TIM1RST - description: "TIM1 reset\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: "SPI1 reset\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: TIM8RST - description: "TIM8 reset\r Set and cleared by software." - bit_offset: 13 - bit_size: 1 - - name: USART1RST - description: "USART1 reset\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: TIM15RST - description: "TIM15 reset\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: TIM16RST - description: "TIM16 reset\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: "TIM17 reset\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: SAI1RST - description: "SAI1 reset\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: SAI2RST - description: "SAI2 reset\r Set and cleared by software." - bit_offset: 22 - bit_size: 1 - - name: USBRST - description: "USB reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 24 - bit_size: 1 - - name: GFXTIMRST - description: "GFXTIM reset\r This bit is set and cleared by software.\r Note: .This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 25 - bit_size: 1 - - name: LTDCRST - description: "LTDC reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 26 - bit_size: 1 - - name: DSIRST - description: "DSI reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 27 - bit_size: 1 + - name: TIM1RST + description: "TIM1 reset\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: "SPI1 reset\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: TIM8RST + description: "TIM8 reset\r Set and cleared by software." + bit_offset: 13 + bit_size: 1 + - name: USART1RST + description: "USART1 reset\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: TIM15RST + description: "TIM15 reset\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: TIM16RST + description: "TIM16 reset\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: "TIM17 reset\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: SAI1RST + description: "SAI1 reset\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: SAI2RST + description: "SAI2 reset\r Set and cleared by software." + bit_offset: 22 + bit_size: 1 + - name: USBRST + description: "USB reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 24 + bit_size: 1 + - name: GFXTIMRST + description: "GFXTIM reset\r This bit is set and cleared by software.\r Note: .This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 25 + bit_size: 1 + - name: LTDCRST + description: "LTDC reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 26 + bit_size: 1 + - name: DSIRST + description: "DSI reset\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 27 + bit_size: 1 fieldset/APB2SMENR: description: RCC APB2 peripheral clocks enable in Sleep and Stop modes register fields: - - name: TIM1SMEN - description: "TIM1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: "SPI1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 12 - bit_size: 1 - - name: TIM8SMEN - description: "TIM8 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 13 - bit_size: 1 - - name: USART1SMEN - description: "USART1clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 14 - bit_size: 1 - - name: TIM15SMEN - description: "TIM15 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: TIM16SMEN - description: "TIM16 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: "TIM17 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 18 - bit_size: 1 - - name: SAI1SMEN - description: "SAI1 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 - - name: SAI2SMEN - description: "SAI2 clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 22 - bit_size: 1 - - name: USBSMEN - description: "USB clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 24 - bit_size: 1 - - name: GFXTIMSMEN - description: "GFXTIM clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 25 - bit_size: 1 - - name: LTDCSMEN - description: "LTDC clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 26 - bit_size: 1 - - name: DSISMEN - description: "DSI clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 27 - bit_size: 1 + - name: TIM1SMEN + description: "TIM1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: "SPI1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 12 + bit_size: 1 + - name: TIM8SMEN + description: "TIM8 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 13 + bit_size: 1 + - name: USART1SMEN + description: "USART1clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 14 + bit_size: 1 + - name: TIM15SMEN + description: "TIM15 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: TIM16SMEN + description: "TIM16 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: "TIM17 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 18 + bit_size: 1 + - name: SAI1SMEN + description: "SAI1 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 + - name: SAI2SMEN + description: "SAI2 clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 22 + bit_size: 1 + - name: USBSMEN + description: "USB clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 24 + bit_size: 1 + - name: GFXTIMSMEN + description: "GFXTIM clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 25 + bit_size: 1 + - name: LTDCSMEN + description: "LTDC clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 26 + bit_size: 1 + - name: DSISMEN + description: "DSI clock enable during Sleep and Stop modes\r This bit is set and cleared by software.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 27 + bit_size: 1 fieldset/APB3ENR: description: RCC APB3 peripheral clock enable register fields: - - name: SYSCFGEN - description: "SYSCFG clock enable\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: SPI3EN - description: "SPI3 clock enable\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: LPUART1EN - description: "LPUART1 clock enable\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: I2C3EN - description: "I2C3 clock enable\r Set and cleared by software." - bit_offset: 7 - bit_size: 1 - - name: LPTIM1EN - description: "LPTIM1 clock enable\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3EN - description: "LPTIM3 clock enable\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4EN - description: "LPTIM4 clock enable\r Set and cleared by software." - bit_offset: 13 - bit_size: 1 - - name: OPAMPEN - description: "OPAMP clock enable\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: COMPEN - description: "COMP clock enable\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: VREFEN - description: "VREFBUF clock enable\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBEN - description: "RTC and TAMP APB clock enable\r Set and cleared by software." - bit_offset: 21 - bit_size: 1 + - name: SYSCFGEN + description: "SYSCFG clock enable\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: SPI3EN + description: "SPI3 clock enable\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: LPUART1EN + description: "LPUART1 clock enable\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: I2C3EN + description: "I2C3 clock enable\r Set and cleared by software." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1EN + description: "LPTIM1 clock enable\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3EN + description: "LPTIM3 clock enable\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4EN + description: "LPTIM4 clock enable\r Set and cleared by software." + bit_offset: 13 + bit_size: 1 + - name: OPAMPEN + description: "OPAMP clock enable\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: COMPEN + description: "COMP clock enable\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: VREFEN + description: "VREFBUF clock enable\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBEN + description: "RTC and TAMP APB clock enable\r Set and cleared by software." + bit_offset: 21 + bit_size: 1 fieldset/APB3RSTR: description: RCC APB3 peripheral reset register fields: - - name: SYSCFGRST - description: "SYSCFG reset\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: SPI3RST - description: "SPI3 reset\r Set and cleared by software." - bit_offset: 5 - bit_size: 1 - - name: LPUART1RST - description: "LPUART1 reset\r Set and cleared by software." - bit_offset: 6 - bit_size: 1 - - name: I2C3RST - description: "I2C3 reset\r Set and cleared by software." - bit_offset: 7 - bit_size: 1 - - name: LPTIM1RST - description: "LPTIM1 reset\r Set and cleared by software." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3RST - description: "LPTIM3 reset\r Set and cleared by software." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4RST - description: "LPTIM4 reset\r Set and cleared by software." - bit_offset: 13 - bit_size: 1 - - name: OPAMPRST - description: "OPAMP reset\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: COMPRST - description: "COMP reset\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: VREFRST - description: "VREFBUF reset\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 + - name: SYSCFGRST + description: "SYSCFG reset\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: SPI3RST + description: "SPI3 reset\r Set and cleared by software." + bit_offset: 5 + bit_size: 1 + - name: LPUART1RST + description: "LPUART1 reset\r Set and cleared by software." + bit_offset: 6 + bit_size: 1 + - name: I2C3RST + description: "I2C3 reset\r Set and cleared by software." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1RST + description: "LPTIM1 reset\r Set and cleared by software." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3RST + description: "LPTIM3 reset\r Set and cleared by software." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4RST + description: "LPTIM4 reset\r Set and cleared by software." + bit_offset: 13 + bit_size: 1 + - name: OPAMPRST + description: "OPAMP reset\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: COMPRST + description: "COMP reset\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: VREFRST + description: "VREFBUF reset\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 fieldset/APB3SMENR: description: RCC APB3 peripheral clock enable in Sleep and Stop modes register fields: - - name: SYSCFGSMEN - description: "SYSCFG clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 1 - bit_size: 1 - - name: SPI3SMEN - description: "SPI3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 5 - bit_size: 1 - - name: LPUART1SMEN - description: "LPUART1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 6 - bit_size: 1 - - name: I2C3SMEN - description: "I2C3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 7 - bit_size: 1 - - name: LPTIM1SMEN - description: "LPTIM1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3SMEN - description: "LPTIM3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4SMEN - description: "LPTIM4 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 13 - bit_size: 1 - - name: OPAMPSMEN - description: "OPAMP clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: COMPSMEN - description: "COMP clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: VREFSMEN - description: "VREFBUF clocks enable during Sleep and Stop modes\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBSMEN - description: "RTC and TAMP APB clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 21 - bit_size: 1 + - name: SYSCFGSMEN + description: "SYSCFG clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 1 + bit_size: 1 + - name: SPI3SMEN + description: "SPI3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 + - name: LPUART1SMEN + description: "LPUART1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 6 + bit_size: 1 + - name: I2C3SMEN + description: "I2C3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1SMEN + description: "LPTIM1 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3SMEN + description: "LPTIM3 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4SMEN + description: "LPTIM4 clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 13 + bit_size: 1 + - name: OPAMPSMEN + description: "OPAMP clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: COMPSMEN + description: "COMP clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: VREFSMEN + description: "VREFBUF clocks enable during Sleep and Stop modes\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBSMEN + description: "RTC and TAMP APB clock enable during Sleep and Stop modes\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 21 + bit_size: 1 fieldset/BDCR: description: RCC Backup domain control register fields: - - name: LSEON - description: "LSE oscillator enable\r Set and cleared by software." - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: "LSE oscillator ready\r Set and cleared by hardware to indicate when the external 32 kHz oscillator is stable. After the LSEON bit is cleared, LSERDY goes low after six external low-speed oscillator clock cycles." - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: "LSE oscillator bypass\r Set and cleared by software to bypass oscillator in debug mode. This bit can be written only when the external 32 kHz oscillator is disabled (LSEON = 0 and LSERDY = 0)." - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: "LSE oscillator drive capability\r Set by software to modulate the drive capability of the LSE oscillator. This field can be written only when the external 32 kHz oscillator is disabled (LSEON = 0 and LSERDY = 0).\r Note: The oscillator is in 'Xtal mode when it is not in bypass mode." - bit_offset: 3 - bit_size: 2 - enum: LSEDRV - - name: LSECSSON - description: "CSS on LSE enable\r Set by software to enable the CSS on LSE. LSECSSON must be enabled after the LSE oscillator is enabled (LSEON bit enabled) and ready (LSERDY flag set by hardware), and after the RTCSEL bit is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD = 1). In that case, the software must disable the LSECSSON bit." - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: "CSS on LSE failure Detection\r Set by hardware to indicate when a failure is detected by the CCS on the external 32 kHz oscillator (LSE)." - bit_offset: 6 - bit_size: 1 - - name: LSESYSEN - description: "LSE system clock (LSESYS) enable\r Set by software to enable always the LSE system clock generated by RCC. This clock can be used by any peripheral when its source clock is the LSE or at system level in case of one of the LSCOSEL, MCO, MSI PLL mode or CSS on LSE is needed.\r The LSESYS clock can be generated even if LSESYSEN= 0 if the LSE clock is requested by the CSS on LSE, by a peripheral or any other source clock using LSE." - bit_offset: 7 - bit_size: 1 - - name: RTCSEL - description: "RTC and TAMP clock source selection\r Set by software to select the clock source for the RTC and TAMP . Once the RTC and TAMP clock source has been selected, it cannot be changed anymore unless the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The BDRST bit can be used to reset them." - bit_offset: 8 - bit_size: 2 - enum: RTCSEL - - name: LSESYSRDY - description: "LSE system clock (LSESYS) ready\r Set and cleared by hardware to indicate when the LSE system clock is stable.When the LSESYSEN bit is set, the LSESYSRDY flag is set after two LSE clock cycles.\r The LSE clock must be already enabled and stable (LSEON and LSERDY are set).\r When the LSEON bit is cleared, LSERDY goes low after six external low-speed oscillator clock cycles." - bit_offset: 11 - bit_size: 1 - - name: LSEGFON - description: "LSE clock glitch filter enable\r Set and cleared by hardware to enable the LSE glitch filter. This bit can be written only when the LSE is disabled (LSEON = 0 and LSERDY = 0)" - bit_offset: 12 - bit_size: 1 - - name: RTCEN - description: "RTC and TAMP clock enable\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: "Backup domain software reset\r Set and cleared by software." - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: "Low-speed clock output selection\r Set and cleared by software." - bit_offset: 25 - bit_size: 1 - enum: LSCOSEL - - name: LSION - description: "LSI oscillator enable\r Set and cleared by software." - bit_offset: 26 - bit_size: 1 - - name: LSIRDY - description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is stable. After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles. This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0." - bit_offset: 27 - bit_size: 1 - - name: LSIPREDIV - description: "Low-speed clock divider configuration\r Set and cleared by software to enable the LSI division. This bit can be written only when the LSI is disabled (LSION = 0 and LSIRDY = 0). If the LSI was previously enabled, it is necessary to wait for at least 60 μs after clearing LSION bit (synchronization time for LSI to be really disabled), before writing LSIPREDIV. The LSIPREDIV cannot be changed if the LSI is used by the IWDG or by the RTC." - bit_offset: 28 - bit_size: 1 - enum: LSIPREDIV + - name: LSEON + description: "LSE oscillator enable\r Set and cleared by software." + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: "LSE oscillator ready\r Set and cleared by hardware to indicate when the external 32 kHz oscillator is stable. After the LSEON bit is cleared, LSERDY goes low after six external low-speed oscillator clock cycles." + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: "LSE oscillator bypass\r Set and cleared by software to bypass oscillator in debug mode. This bit can be written only when the external 32 kHz oscillator is disabled (LSEON = 0 and LSERDY = 0)." + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: "LSE oscillator drive capability\r Set by software to modulate the drive capability of the LSE oscillator. This field can be written only when the external 32 kHz oscillator is disabled (LSEON = 0 and LSERDY = 0).\r Note: The oscillator is in 'Xtal mode when it is not in bypass mode." + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: "CSS on LSE enable\r Set by software to enable the CSS on LSE. LSECSSON must be enabled after the LSE oscillator is enabled (LSEON bit enabled) and ready (LSERDY flag set by hardware), and after the RTCSEL bit is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD = 1). In that case, the software must disable the LSECSSON bit." + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: "CSS on LSE failure Detection\r Set by hardware to indicate when a failure is detected by the CCS on the external 32 kHz oscillator (LSE)." + bit_offset: 6 + bit_size: 1 + - name: LSESYSEN + description: "LSE system clock (LSESYS) enable\r Set by software to enable always the LSE system clock generated by RCC. This clock can be used by any peripheral when its source clock is the LSE or at system level in case of one of the LSCOSEL, MCO, MSI PLL mode or CSS on LSE is needed.\r The LSESYS clock can be generated even if LSESYSEN= 0 if the LSE clock is requested by the CSS on LSE, by a peripheral or any other source clock using LSE." + bit_offset: 7 + bit_size: 1 + - name: RTCSEL + description: "RTC and TAMP clock source selection\r Set by software to select the clock source for the RTC and TAMP . Once the RTC and TAMP clock source has been selected, it cannot be changed anymore unless the Backup domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The BDRST bit can be used to reset them." + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: LSESYSRDY + description: "LSE system clock (LSESYS) ready\r Set and cleared by hardware to indicate when the LSE system clock is stable.When the LSESYSEN bit is set, the LSESYSRDY flag is set after two LSE clock cycles.\r The LSE clock must be already enabled and stable (LSEON and LSERDY are set).\r When the LSEON bit is cleared, LSERDY goes low after six external low-speed oscillator clock cycles." + bit_offset: 11 + bit_size: 1 + - name: LSEGFON + description: "LSE clock glitch filter enable\r Set and cleared by hardware to enable the LSE glitch filter. This bit can be written only when the LSE is disabled (LSEON = 0 and LSERDY = 0)" + bit_offset: 12 + bit_size: 1 + - name: RTCEN + description: "RTC and TAMP clock enable\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: "Backup domain software reset\r Set and cleared by software." + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: "Low-speed clock output (LSCO) enable\r Set and cleared by software." + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: "Low-speed clock output selection\r Set and cleared by software." + bit_offset: 25 + bit_size: 1 + enum: LSCOSEL + - name: LSION + description: "LSI oscillator enable\r Set and cleared by software." + bit_offset: 26 + bit_size: 1 + - name: LSIRDY + description: "LSI oscillator ready\r Set and cleared by hardware to indicate when the LSI oscillator is stable. After the LSION bit is cleared, LSIRDY goes low after three internal low-speed oscillator clock cycles. This bit is set when the LSI is used by IWDG or RTC, even if LSION = 0." + bit_offset: 27 + bit_size: 1 + - name: LSIPREDIV + description: "Low-speed clock divider configuration\r Set and cleared by software to enable the LSI division. This bit can be written only when the LSI is disabled (LSION = 0 and LSIRDY = 0). If the LSI was previously enabled, it is necessary to wait for at least 60 μs after clearing LSION bit (synchronization time for LSI to be really disabled), before writing LSIPREDIV. The LSIPREDIV cannot be changed if the LSI is used by the IWDG or by the RTC." + bit_offset: 28 + bit_size: 1 + enum: LSIPREDIV fieldset/CCIPR1: description: RCC peripherals independent clock configuration register 1 fields: - - name: USART1SEL - description: "USART1 kernel clock source selection\r This bits are used to select the USART1 kernel clock source.\r Note: The USART1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." - bit_offset: 0 - bit_size: 2 - enum: USARTSEL - - name: USART2SEL - description: "USART2 kernel clock source selection\r This bits are used to select the USART2 kernel clock source.\r Note: The USART2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." - bit_offset: 2 - bit_size: 2 - enum: USARTSEL - - name: USART3SEL - description: "USART3 kernel clock source selection\r This bits are used to select the USART3 kernel clock source.\r Note: The USART3 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." - bit_offset: 4 - bit_size: 2 - enum: USARTSEL - - name: UART4SEL - description: "UART4 kernel clock source selection\r This bits are used to select the UART4 kernel clock source.\r Note: The UART4 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." - bit_offset: 6 - bit_size: 2 - enum: UARTSEL - - name: UART5SEL - description: "UART5 kernel clock source selection\r These bits are used to select the UART5 kernel clock source.\r Note: The UART5 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." - bit_offset: 8 - bit_size: 2 - enum: UARTSEL - - name: I2C1SEL - description: "I2C1 kernel clock source selection\r These bits are used to select the I2C1 kernel clock source.\r Note: The I2C1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." - bit_offset: 10 - bit_size: 2 - enum: ICSEL - - name: I2C2SEL - description: "I2C2 kernel clock source selection\r These bits are used to select the I2C2 kernel clock source.\r Note: The I2C2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." - bit_offset: 12 - bit_size: 2 - enum: ICSEL - - name: I2C4SEL - description: "I2C4 kernel clock source selection\r These bits are used to select the I2C4 kernel clock source.\r Note: The I2C4 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." - bit_offset: 14 - bit_size: 2 - enum: ICSEL - - name: SPI2SEL - description: "SPI2 kernel clock source selection\r These bits are used to select the SPI2 kernel clock source.\r Note: The SPI2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." - bit_offset: 16 - bit_size: 2 - enum: SPISEL - - name: LPTIM2SEL - description: "Low-power timer 2 kernel clock source selection\r These bits are used to select the LPTIM2 kernel clock source.\r Note: The LPTIM2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is LSI, LSE or HSI16 if HSIKERON = 1." - bit_offset: 18 - bit_size: 2 - enum: LPTIMSEL - - name: SPI1SEL - description: "SPI1 kernel clock source selection\r These bits are used to select the SPI1 kernel clock source.\r Note: The SPI1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." - bit_offset: 20 - bit_size: 2 - enum: SPISEL - - name: SYSTICKSEL - description: "SysTick clock source selection\r These bits are used to select the SysTick clock source.\r Note: When LSE or LSI is selected, the AHB frequency must be at least four times higher than the LSI or LSE frequency. In addition, a jitter up to one HCLK cycle is introduced, due to the LSE or LSI sampling with HCLK in the SysTick circuitry." - bit_offset: 22 - bit_size: 2 - enum: SYSTICKSEL - - name: FDCAN1SEL - description: "FDCAN1 kernel clock source selection\r These bits are used to select the FDCAN1 kernel clock source." - bit_offset: 24 - bit_size: 2 - enum: FDCANSEL - - name: ICLKSEL - description: "intermediate clock source selection\r These bits are used to select the clock source used by OTG_FS and SDMMC." - bit_offset: 26 - bit_size: 2 - enum: ICLKSEL - - name: TIMICSEL - description: "Clocks sources for TIM16,TIM17 and LPTIM2 internal input capture\r When the TIMICSEL2 bit is set, the TIM16, TIM17 and LPTIM2 internal input capture can be connected either to HSI/256, MSI/4 or MSI/1024. Depending on TIMICSEL[1:0] value, MSI is either MSIK or MSIS.\r When TIMICSEL2 is cleared, the HSI, MSIK and MSIS clock sources cannot be selected as TIM16, TIM17 or LPTIM2 internal input capture.\r 0xx: HSI, MSIK and MSIS dividers disabled\r Note: The clock division must be disabled (TIMICSEL configured to 0xx) before selecting or changing a clock sources division." - bit_offset: 29 - bit_size: 3 - enum: TIMICSEL + - name: USART1SEL + description: "USART1 kernel clock source selection\r This bits are used to select the USART1 kernel clock source.\r Note: The USART1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 0 + bit_size: 2 + enum: USARTSEL + - name: USART2SEL + description: "USART2 kernel clock source selection\r This bits are used to select the USART2 kernel clock source.\r Note: The USART2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 2 + bit_size: 2 + enum: USARTSEL + - name: USART3SEL + description: "USART3 kernel clock source selection\r This bits are used to select the USART3 kernel clock source.\r Note: The USART3 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 4 + bit_size: 2 + enum: USARTSEL + - name: UART4SEL + description: "UART4 kernel clock source selection\r This bits are used to select the UART4 kernel clock source.\r Note: The UART4 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 6 + bit_size: 2 + enum: UARTSEL + - name: UART5SEL + description: "UART5 kernel clock source selection\r These bits are used to select the UART5 kernel clock source.\r Note: The UART5 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 8 + bit_size: 2 + enum: UARTSEL + - name: I2C1SEL + description: "I2C1 kernel clock source selection\r These bits are used to select the I2C1 kernel clock source.\r Note: The I2C1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." + bit_offset: 10 + bit_size: 2 + enum: ICSEL + - name: I2C2SEL + description: "I2C2 kernel clock source selection\r These bits are used to select the I2C2 kernel clock source.\r Note: The I2C2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." + bit_offset: 12 + bit_size: 2 + enum: ICSEL + - name: I2C4SEL + description: "I2C4 kernel clock source selection\r These bits are used to select the I2C4 kernel clock source.\r Note: The I2C4 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." + bit_offset: 14 + bit_size: 2 + enum: ICSEL + - name: SPI2SEL + description: "SPI2 kernel clock source selection\r These bits are used to select the SPI2 kernel clock source.\r Note: The SPI2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." + bit_offset: 16 + bit_size: 2 + enum: SPISEL + - name: LPTIM2SEL + description: "Low-power timer 2 kernel clock source selection\r These bits are used to select the LPTIM2 kernel clock source.\r Note: The LPTIM2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is LSI, LSE or HSI16 if HSIKERON = 1." + bit_offset: 18 + bit_size: 2 + enum: LPTIMSEL + - name: SPI1SEL + description: "SPI1 kernel clock source selection\r These bits are used to select the SPI1 kernel clock source.\r Note: The SPI1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or MSIK." + bit_offset: 20 + bit_size: 2 + enum: SPISEL + - name: SYSTICKSEL + description: "SysTick clock source selection\r These bits are used to select the SysTick clock source.\r Note: When LSE or LSI is selected, the AHB frequency must be at least four times higher than the LSI or LSE frequency. In addition, a jitter up to one HCLK cycle is introduced, due to the LSE or LSI sampling with HCLK in the SysTick circuitry." + bit_offset: 22 + bit_size: 2 + enum: SYSTICKSEL + - name: FDCAN1SEL + description: "FDCAN1 kernel clock source selection\r These bits are used to select the FDCAN1 kernel clock source." + bit_offset: 24 + bit_size: 2 + enum: FDCANSEL + - name: ICLKSEL + description: "intermediate clock source selection\r These bits are used to select the clock source used by OTG_FS and SDMMC." + bit_offset: 26 + bit_size: 2 + enum: ICLKSEL + - name: TIMICSEL + description: "Clocks sources for TIM16,TIM17 and LPTIM2 internal input capture\r When the TIMICSEL2 bit is set, the TIM16, TIM17 and LPTIM2 internal input capture can be connected either to HSI/256, MSI/4 or MSI/1024. Depending on TIMICSEL[1:0] value, MSI is either MSIK or MSIS.\r When TIMICSEL2 is cleared, the HSI, MSIK and MSIS clock sources cannot be selected as TIM16, TIM17 or LPTIM2 internal input capture.\r 0xx: HSI, MSIK and MSIS dividers disabled\r Note: The clock division must be disabled (TIMICSEL configured to 0xx) before selecting or changing a clock sources division." + bit_offset: 29 + bit_size: 3 + enum: TIMICSEL fieldset/CCIPR2: description: RCC peripherals independent clock configuration register 2 fields: - - name: MDF1SEL - description: "MDF1 kernel clock source selection\r These bits are used to select the MDF1 kernel clock source.\r others: reserved" - bit_offset: 0 - bit_size: 3 - enum: MDFSEL - - name: SAI1SEL - description: "SAI1 kernel clock source selection\r These bits are used to select the SAI1 kernel clock source.\r others: reserved\r Note: If the selected clock is the external clock and this clock is stopped, a switch to another clock is impossible." - bit_offset: 5 - bit_size: 3 - enum: SAISEL - - name: SAI2SEL - description: "SAI2 kernel clock source selection\r These bits are used to select the SAI2 kernel clock source.\r others: reserved\r Note: If the selected clock is the external clock and this clock is stopped, a switch to another clock is impossible." - bit_offset: 8 - bit_size: 3 - enum: SAISEL - - name: SAESSEL - description: "SAES kernel clock source selection\r This bit is used to select the SAES kernel clock source." - bit_offset: 11 - bit_size: 1 - enum: SAESSEL - - name: RNGSEL - description: "RNGSEL kernel clock source selection\r These bits are used to select the RNG kernel clock source." - bit_offset: 12 - bit_size: 2 - enum: RNGSEL - - name: SDMMCSEL - description: "SDMMC1 and SDMMC2 kernel clock source selection\r This bit is used to select the SDMMC kernel clock source. It is recommended to change this bit only after reset and before enabling the SDMMC." - bit_offset: 14 - bit_size: 1 - enum: SDMMCSEL - - name: DSISEL - description: "DSI kernel clock source selection\r This bit is used to select the DSI kernel clock source.\r This bit is only available on some devices in the STM32U5 Series. \r Refer to the device datasheet for availability of its associated peripheral. \r Note: If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 15 - bit_size: 1 - enum: DSISEL - - name: USART6SEL - description: "USART6 kernel clock source selection\r These bits are used to select the USART6 kernel clock source.\r The USART6 is functional in Stop 0 and Stop 1 modes only when the kernel clock is HSI16 or LSE.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." - bit_offset: 16 - bit_size: 2 - enum: USARTSEL - - name: LTDCSEL - description: "LTDC kernel clock source selection\r This bit is used to select the LTDC kernel clock source.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." - bit_offset: 18 - bit_size: 1 - enum: LTDCSEL - - name: OCTOSPISEL - description: "OCTOSPI1 and OCTOSPI2 kernel clock source selection\r These bits are used to select the OCTOSPI1 and OCTOSPI2 kernel clock source." - bit_offset: 20 - bit_size: 2 - enum: OCTOSPISEL - - name: HSPI1SEL - description: "HSPI1 kernel clock source selection\r These bits are used to select the HSPI1 kernel clock source.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." - bit_offset: 22 - bit_size: 2 - enum: HSPISEL - - name: I2C5SEL - description: "I2C5 kernel clock source selection\r These bits are used to select the I2C5 kernel clock source.\r The I2C5 is functional in Stop 0 and Stop 1 modes only when the kernel clock is HSI16�or MSIK.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." - bit_offset: 24 - bit_size: 2 - enum: ICSEL - - name: I2C6SEL - description: "I2C6 kernel clock source selection\r These bits are used to select the I2C6 kernel clock source.\r The I2C6 is functional in Stop 0 and Stop 1 modes only when the kernel clock is HSI16�or MSIK.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." - bit_offset: 26 - bit_size: 2 - enum: ICSEL - - name: OTGHSSEL - description: "OTG_HS PHY kernel clock source selection\r These bits are used to select the OTG_HS PHY kernel clock source.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." - bit_offset: 30 - bit_size: 2 - enum: OTGHSSEL + - name: MDF1SEL + description: "MDF1 kernel clock source selection\r These bits are used to select the MDF1 kernel clock source.\r others: reserved" + bit_offset: 0 + bit_size: 3 + enum: MDFSEL + - name: SAI1SEL + description: "SAI1 kernel clock source selection\r These bits are used to select the SAI1 kernel clock source.\r others: reserved\r Note: If the selected clock is the external clock and this clock is stopped, a switch to another clock is impossible." + bit_offset: 5 + bit_size: 3 + enum: SAISEL + - name: SAI2SEL + description: "SAI2 kernel clock source selection\r These bits are used to select the SAI2 kernel clock source.\r others: reserved\r Note: If the selected clock is the external clock and this clock is stopped, a switch to another clock is impossible." + bit_offset: 8 + bit_size: 3 + enum: SAISEL + - name: SAESSEL + description: "SAES kernel clock source selection\r This bit is used to select the SAES kernel clock source." + bit_offset: 11 + bit_size: 1 + enum: SAESSEL + - name: RNGSEL + description: "RNGSEL kernel clock source selection\r These bits are used to select the RNG kernel clock source." + bit_offset: 12 + bit_size: 2 + enum: RNGSEL + - name: SDMMCSEL + description: "SDMMC1 and SDMMC2 kernel clock source selection\r This bit is used to select the SDMMC kernel clock source. It is recommended to change this bit only after reset and before enabling the SDMMC." + bit_offset: 14 + bit_size: 1 + enum: SDMMCSEL + - name: DSISEL + description: "DSI kernel clock source selection\r This bit is used to select the DSI kernel clock source.\r This bit is only available on some devices in the STM32U5 Series. \r Refer to the device datasheet for availability of its associated peripheral. \r Note: If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 15 + bit_size: 1 + enum: DSISEL + - name: USART6SEL + description: "USART6 kernel clock source selection\r These bits are used to select the USART6 kernel clock source.\r The USART6 is functional in Stop 0 and Stop 1 modes only when the kernel clock is HSI16 or LSE.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." + bit_offset: 16 + bit_size: 2 + enum: USARTSEL + - name: LTDCSEL + description: "LTDC kernel clock source selection\r This bit is used to select the LTDC kernel clock source.\r Note: This bit is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bit as reserved and keep it at reset value." + bit_offset: 18 + bit_size: 1 + enum: LTDCSEL + - name: OCTOSPISEL + description: "OCTOSPI1 and OCTOSPI2 kernel clock source selection\r These bits are used to select the OCTOSPI1 and OCTOSPI2 kernel clock source." + bit_offset: 20 + bit_size: 2 + enum: OCTOSPISEL + - name: HSPI1SEL + description: "HSPI1 kernel clock source selection\r These bits are used to select the HSPI1 kernel clock source.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." + bit_offset: 22 + bit_size: 2 + enum: HSPISEL + - name: I2C5SEL + description: "I2C5 kernel clock source selection\r These bits are used to select the I2C5 kernel clock source.\r The I2C5 is functional in Stop 0 and Stop 1 modes only when the kernel clock is HSI16�or MSIK.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." + bit_offset: 24 + bit_size: 2 + enum: ICSEL + - name: I2C6SEL + description: "I2C6 kernel clock source selection\r These bits are used to select the I2C6 kernel clock source.\r The I2C6 is functional in Stop 0 and Stop 1 modes only when the kernel clock is HSI16�or MSIK.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." + bit_offset: 26 + bit_size: 2 + enum: ICSEL + - name: OTGHSSEL + description: "OTG_HS PHY kernel clock source selection\r These bits are used to select the OTG_HS PHY kernel clock source.\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." + bit_offset: 30 + bit_size: 2 + enum: OTGHSSEL fieldset/CCIPR3: description: RCC peripherals independent clock configuration register 3 fields: - - name: LPUART1SEL - description: "LPUART1 kernel clock source selection\r These bits are used to select the LPUART1 kernel clock source.\r others: reserved\r Note: The LPUART1 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16, LSE or MSIK." - bit_offset: 0 - bit_size: 3 - enum: LPUARTSEL - - name: SPI3SEL - description: "SPI3 kernel clock source selection\r These bits are used to select the SPI3 kernel clock source.\r Note: The SPI3 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16 or MSIK." - bit_offset: 3 - bit_size: 2 - enum: SPISEL - - name: I2C3SEL - description: "I2C3 kernel clock source selection\r These bits are used to select the I2C3 kernel clock source.\r Note: The I2C3 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16 or MSIK." - bit_offset: 6 - bit_size: 2 - enum: ICSEL - - name: LPTIM34SEL - description: "LPTIM3 and LPTIM4 kernel clock source selection\r These bits are used to select the LPTIM3 and LPTIM4 kernel clock source.\r Note: The LPTIM3 and LPTIM4 are functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is LSI, LSE, HSI16 with HSIKERON = 1 or MSIK with MSIKERON = 1." - bit_offset: 8 - bit_size: 2 - enum: LPTIMSEL - - name: LPTIM1SEL - description: "LPTIM1 kernel clock source selection\r These bits are used to select the LPTIM1 kernel clock source.\r Note: The LPTIM1 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is LSI, LSE, HSI16 with HSIKERON = 1 or MSIK with MSIKERON = 1." - bit_offset: 10 - bit_size: 2 - enum: LPTIMSEL - - name: ADCDACSEL - description: "ADC1, ADC4 and DAC1 kernel clock source selection\r These bits are used to select the ADC1, ADC4 and DAC1 kernel clock source.\r others: reserved\r Note: The ADC1, ADC4 and DAC1 are functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16 or MSIK (only ADC4 and DAC1 are functional in Stop 2 mode)." - bit_offset: 12 - bit_size: 3 - enum: ADCDACSEL - - name: DAC1SEL - description: "DAC1 sample and hold clock source selection\r This bit is used to select the DAC1 sample and hold clock source." - bit_offset: 15 - bit_size: 1 - enum: DACSEL - - name: ADF1SEL - description: "ADF1 kernel clock source selection\r These bits are used to select the ADF1 kernel clock source.\r others: reserved\r Note: The ADF1 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is AUDIOCLK or MSIK." - bit_offset: 16 - bit_size: 3 - enum: ADFSEL + - name: LPUART1SEL + description: "LPUART1 kernel clock source selection\r These bits are used to select the LPUART1 kernel clock source.\r others: reserved\r Note: The LPUART1 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16, LSE or MSIK." + bit_offset: 0 + bit_size: 3 + enum: LPUARTSEL + - name: SPI3SEL + description: "SPI3 kernel clock source selection\r These bits are used to select the SPI3 kernel clock source.\r Note: The SPI3 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16 or MSIK." + bit_offset: 3 + bit_size: 2 + enum: SPISEL + - name: I2C3SEL + description: "I2C3 kernel clock source selection\r These bits are used to select the I2C3 kernel clock source.\r Note: The I2C3 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16 or MSIK." + bit_offset: 6 + bit_size: 2 + enum: ICSEL + - name: LPTIM34SEL + description: "LPTIM3 and LPTIM4 kernel clock source selection\r These bits are used to select the LPTIM3 and LPTIM4 kernel clock source.\r Note: The LPTIM3 and LPTIM4 are functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is LSI, LSE, HSI16 with HSIKERON = 1 or MSIK with MSIKERON = 1." + bit_offset: 8 + bit_size: 2 + enum: LPTIMSEL + - name: LPTIM1SEL + description: "LPTIM1 kernel clock source selection\r These bits are used to select the LPTIM1 kernel clock source.\r Note: The LPTIM1 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is LSI, LSE, HSI16 with HSIKERON = 1 or MSIK with MSIKERON = 1." + bit_offset: 10 + bit_size: 2 + enum: LPTIMSEL + - name: ADCDACSEL + description: "ADC1, ADC4 and DAC1 kernel clock source selection\r These bits are used to select the ADC1, ADC4 and DAC1 kernel clock source.\r others: reserved\r Note: The ADC1, ADC4 and DAC1 are functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is HSI16 or MSIK (only ADC4 and DAC1 are functional in Stop 2 mode)." + bit_offset: 12 + bit_size: 3 + enum: ADCDACSEL + - name: DAC1SEL + description: "DAC1 sample and hold clock source selection\r This bit is used to select the DAC1 sample and hold clock source." + bit_offset: 15 + bit_size: 1 + enum: DACSEL + - name: ADF1SEL + description: "ADF1 kernel clock source selection\r These bits are used to select the ADF1 kernel clock source.\r others: reserved\r Note: The ADF1 is functional in Stop 0, Stop 1 and Stop 2 modes only when the kernel clock is AUDIOCLK or MSIK." + bit_offset: 16 + bit_size: 3 + enum: ADFSEL fieldset/CFGR1: description: RCC clock configuration register 1 fields: - - name: SW - description: "system clock switch\r Set and cleared by software to select system clock source (SYSCLK).\r Configured by hardware to force MSIS oscillator selection when exiting Standby or Shutdown mode. Configured by hardware to force MSIS or HSI16 oscillator selection when exiting Stop mode or in case of HSE oscillator failure, depending on STOPWUCK value." - bit_offset: 0 - bit_size: 2 - enum: SW - - name: SWS - description: "system clock switch status\r Set and cleared by hardware to indicate which clock source is used as system clock." - bit_offset: 2 - bit_size: 2 - enum: SW - - name: STOPWUCK - description: "wakeup from Stop and CSS backup clock selection\r Set and cleared by software to select the system clock used when exiting Stop mode.\r The selected clock is also used as emergency clock for the clock security system on HSE. Warning: STOPWUCK must not be modified when the CSS is enabled by HSECSSON bit in RCC_CR and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW = 10)." - bit_offset: 4 - bit_size: 1 - enum: STOPWUCK - - name: STOPKERWUCK - description: "wakeup from Stop kernel clock automatic enable selection\r Set and cleared by software to enable automatically another oscillator when exiting Stop mode. This oscillator can be used as independent kernel clock by peripherals." - bit_offset: 5 - bit_size: 1 - enum: STOPKERWUCK - - name: MCOSEL - description: "microcontroller clock output\r Set and cleared by software.\r Others: reserved\r Note: This clock output may have some truncated cycles at startup or during MCO clock source switching." - bit_offset: 24 - bit_size: 4 - enum: MCOSEL - - name: MCOPRE - description: "microcontroller clock output prescaler\r Set and cleared by software.\r It is highly recommended to change this prescaler before MCO output is enabled.\r Others: not allowed" - bit_offset: 28 - bit_size: 3 - enum: MCOPRE + - name: SW + description: "system clock switch\r Set and cleared by software to select system clock source (SYSCLK).\r Configured by hardware to force MSIS oscillator selection when exiting Standby or Shutdown mode. Configured by hardware to force MSIS or HSI16 oscillator selection when exiting Stop mode or in case of HSE oscillator failure, depending on STOPWUCK value." + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: "system clock switch status\r Set and cleared by hardware to indicate which clock source is used as system clock." + bit_offset: 2 + bit_size: 2 + enum: SW + - name: STOPWUCK + description: "wakeup from Stop and CSS backup clock selection\r Set and cleared by software to select the system clock used when exiting Stop mode.\r The selected clock is also used as emergency clock for the clock security system on HSE. Warning: STOPWUCK must not be modified when the CSS is enabled by HSECSSON bit in RCC_CR and the system clock is HSE (SWS = 10) or a switch on HSE is requested (SW = 10)." + bit_offset: 4 + bit_size: 1 + enum: STOPWUCK + - name: STOPKERWUCK + description: "wakeup from Stop kernel clock automatic enable selection\r Set and cleared by software to enable automatically another oscillator when exiting Stop mode. This oscillator can be used as independent kernel clock by peripherals." + bit_offset: 5 + bit_size: 1 + enum: STOPKERWUCK + - name: MCOSEL + description: "microcontroller clock output\r Set and cleared by software.\r Others: reserved\r Note: This clock output may have some truncated cycles at startup or during MCO clock source switching." + bit_offset: 24 + bit_size: 4 + enum: MCOSEL + - name: MCOPRE + description: "microcontroller clock output prescaler\r Set and cleared by software.\r It is highly recommended to change this prescaler before MCO output is enabled.\r Others: not allowed" + bit_offset: 28 + bit_size: 3 + enum: MCOPRE fieldset/CFGR2: description: RCC clock configuration register 2 fields: - - name: HPRE - description: "AHB prescaler\r Set and cleared by software to control the division factor of the AHB clock (HCLK).\r Depending on the device voltage range, the software must set these bits correctly to ensure that the system frequency does not exceed the maximum allowed frequency (for more details, refer to ). After a write operation to these bits and before decreasing the voltage range, this register must be read to be sure that the new value is taken into account.\r 0xxx: SYSCLK not divided" - bit_offset: 0 - bit_size: 4 - enum: HPRE - - name: PPRE1 - description: "APB1 prescaler\r Set and cleared by software to control the division factor of the APB1 clock (PCLK1).\r 0xx: HCLK not divided" - bit_offset: 4 - bit_size: 3 - enum: PPRE - - name: PPRE2 - description: "APB2 prescaler\r Set and cleared by software to control the division factor of the APB2 clock (PCLK2).\r 0xx: HCLK not divided" - bit_offset: 8 - bit_size: 3 - enum: PPRE - - name: DPRE - description: "DSI PHY prescaler\r This bitfiled is set and cleared by software to control the division factor of DSI PHY bus clock (DCLK).\r 0xx: DCLK not divided\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." - bit_offset: 12 - bit_size: 3 - enum: DPRE - - name: AHB1DIS - description: "AHB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB1 peripherals (except those listed hereafter) are used and when their clocks are disabled in RCC_AHB1ENR. When this bit is set, all the AHB1 peripherals clocks are off, except for FLASH, BKPSRAM, ICACHE, DCACHE1 and SRAM1." - bit_offset: 16 - bit_size: 1 - - name: AHB2DIS1 - description: "AHB2_1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2 peripherals from RCC_AHB2ENR1 (except SRAM2 and SRAM3) are used and when their clocks are disabled in RCC_AHB2ENR1. When this bit is set, all the AHB2 peripherals clocks from RCC_AHB2ENR1 are off, except for SRAM2 and SRAM3." - bit_offset: 17 - bit_size: 1 - - name: AHB2DIS2 - description: "AHB2_2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2 peripherals from RCC_AHB2ENR2 are used and when their clocks are disabled in RCC_AHB2ENR2. When this bit is set, all the AHB2 peripherals clocks from RCC_AHB2EBNR2 are off." - bit_offset: 18 - bit_size: 1 - - name: APB1DIS - description: "APB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the APB1 peripherals (except IWDG) are used and when their clocks are disabled in RCC_APB1ENR. When this bit is set, all the APB1 peripherals clocks are off, except for IWDG." - bit_offset: 19 - bit_size: 1 - - name: APB2DIS - description: "APB2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the APB2 peripherals are used and when their clocks are disabled in RCC_APB2ENR. When this bit is set, all the APB2 peripherals clocks are off." - bit_offset: 20 - bit_size: 1 + - name: HPRE + description: "AHB prescaler\r Set and cleared by software to control the division factor of the AHB clock (HCLK).\r Depending on the device voltage range, the software must set these bits correctly to ensure that the system frequency does not exceed the maximum allowed frequency (for more details, refer to ). After a write operation to these bits and before decreasing the voltage range, this register must be read to be sure that the new value is taken into account.\r 0xxx: SYSCLK not divided" + bit_offset: 0 + bit_size: 4 + enum: HPRE + - name: PPRE1 + description: "APB1 prescaler\r Set and cleared by software to control the division factor of the APB1 clock (PCLK1).\r 0xx: HCLK not divided" + bit_offset: 4 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: "APB2 prescaler\r Set and cleared by software to control the division factor of the APB2 clock (PCLK2).\r 0xx: HCLK not divided" + bit_offset: 8 + bit_size: 3 + enum: PPRE + - name: DPRE + description: "DSI PHY prescaler\r This bitfiled is set and cleared by software to control the division factor of DSI PHY bus clock (DCLK).\r 0xx: DCLK not divided\r Note: This bitfield is only available on some devices in the STM32U5 Series. Refer to the device datasheet for availability of its associated peripheral. If not present, consider this bitfield as reserved and keep it at reset value." + bit_offset: 12 + bit_size: 3 + enum: DPRE + - name: AHB1DIS + description: "AHB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB1 peripherals (except those listed hereafter) are used and when their clocks are disabled in RCC_AHB1ENR. When this bit is set, all the AHB1 peripherals clocks are off, except for FLASH, BKPSRAM, ICACHE, DCACHE1 and SRAM1." + bit_offset: 16 + bit_size: 1 + - name: AHB2DIS1 + description: "AHB2_1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2 peripherals from RCC_AHB2ENR1 (except SRAM2 and SRAM3) are used and when their clocks are disabled in RCC_AHB2ENR1. When this bit is set, all the AHB2 peripherals clocks from RCC_AHB2ENR1 are off, except for SRAM2 and SRAM3." + bit_offset: 17 + bit_size: 1 + - name: AHB2DIS2 + description: "AHB2_2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB2 peripherals from RCC_AHB2ENR2 are used and when their clocks are disabled in RCC_AHB2ENR2. When this bit is set, all the AHB2 peripherals clocks from RCC_AHB2EBNR2 are off." + bit_offset: 18 + bit_size: 1 + - name: APB1DIS + description: "APB1 clock disable\r This bit can be set in order to further reduce power consumption, when none of the APB1 peripherals (except IWDG) are used and when their clocks are disabled in RCC_APB1ENR. When this bit is set, all the APB1 peripherals clocks are off, except for IWDG." + bit_offset: 19 + bit_size: 1 + - name: APB2DIS + description: "APB2 clock disable\r This bit can be set in order to further reduce power consumption, when none of the APB2 peripherals are used and when their clocks are disabled in RCC_APB2ENR. When this bit is set, all the APB2 peripherals clocks are off." + bit_offset: 20 + bit_size: 1 fieldset/CFGR3: description: RCC clock configuration register 3 fields: - - name: PPRE3 - description: "APB3 prescaler\r Set and cleared by software to control the division factor of the APB3 clock (PCLK3).\r 0xx: HCLK not divided" - bit_offset: 4 - bit_size: 3 - enum: PPRE - - name: AHB3DIS - description: "AHB3 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB3 peripherals (except SRAM4) are used and when their clocks are disabled in RCC_AHB3ENR. When this bit is set, all the AHB3 peripherals clocks are off, except for SRAM4." - bit_offset: 16 - bit_size: 1 - - name: APB3DIS - description: "APB3 clock disable\r This bit can be set in order to further reduce power consumption, when none of the APB3 peripherals from RCC_APB3ENR are used and when their clocks are disabled in RCC_APB3ENR. When this bit is set, all the APB3 peripherals clocks are off." - bit_offset: 17 - bit_size: 1 + - name: PPRE3 + description: "APB3 prescaler\r Set and cleared by software to control the division factor of the APB3 clock (PCLK3).\r 0xx: HCLK not divided" + bit_offset: 4 + bit_size: 3 + enum: PPRE + - name: AHB3DIS + description: "AHB3 clock disable\r This bit can be set in order to further reduce power consumption, when none of the AHB3 peripherals (except SRAM4) are used and when their clocks are disabled in RCC_AHB3ENR. When this bit is set, all the AHB3 peripherals clocks are off, except for SRAM4." + bit_offset: 16 + bit_size: 1 + - name: APB3DIS + description: "APB3 clock disable\r This bit can be set in order to further reduce power consumption, when none of the APB3 peripherals from RCC_APB3ENR are used and when their clocks are disabled in RCC_APB3ENR. When this bit is set, all the APB3 peripherals clocks are off." + bit_offset: 17 + bit_size: 1 fieldset/CICR: description: RCC clock interrupt clear register fields: - - name: LSIRDYC - description: "LSI ready interrupt clear\r Writing this bit to 1 clears the LSIRDYF flag. Writing 0 has no effect." - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: "LSE ready interrupt clear\r Writing this bit to 1 clears the LSERDYF flag. Writing 0 has no effect." - bit_offset: 1 - bit_size: 1 - - name: MSISRDYC - description: "MSIS ready interrupt clear\r Writing this bit to 1 clears the MSISRDYF flag. Writing 0 has no effect." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: "HSI16 ready interrupt clear\r Writing this bit to 1 clears the HSIRDYF flag. Writing 0 has no effect." - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: "HSE ready interrupt clear\r Writing this bit to 1 clears the HSERDYF flag. Writing 0 has no effect." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYC - description: "HSI48 ready interrupt clear\r Writing this bit to 1 clears the HSI48RDYF flag. Writing 0 has no effect." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYC - description: "PLL1 ready interrupt clear\r Writing this bit to 1 clears the PLL1RDYF flag. Writing 0 has no effect." - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: CSSC - description: "Clock security system interrupt clear\r Writing this bit to 1 clears the CSSF flag. Writing 0 has no effect." - bit_offset: 10 - bit_size: 1 - - name: MSIKRDYC - description: "MSIK oscillator ready interrupt clear\r Writing this bit to 1 clears the MSIKRDYF flag. Writing 0 has no effect." - bit_offset: 11 - bit_size: 1 - - name: SHSIRDYC - description: "SHSI oscillator ready interrupt clear\r Writing this bit to 1 clears the SHSIRDYF flag. Writing 0 has no effect." - bit_offset: 12 - bit_size: 1 + - name: LSIRDYC + description: "LSI ready interrupt clear\r Writing this bit to 1 clears the LSIRDYF flag. Writing 0 has no effect." + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: "LSE ready interrupt clear\r Writing this bit to 1 clears the LSERDYF flag. Writing 0 has no effect." + bit_offset: 1 + bit_size: 1 + - name: MSISRDYC + description: "MSIS ready interrupt clear\r Writing this bit to 1 clears the MSISRDYF flag. Writing 0 has no effect." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: "HSI16 ready interrupt clear\r Writing this bit to 1 clears the HSIRDYF flag. Writing 0 has no effect." + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: "HSE ready interrupt clear\r Writing this bit to 1 clears the HSERDYF flag. Writing 0 has no effect." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYC + description: "HSI48 ready interrupt clear\r Writing this bit to 1 clears the HSI48RDYF flag. Writing 0 has no effect." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYC + description: "PLL1 ready interrupt clear\r Writing this bit to 1 clears the PLL1RDYF flag. Writing 0 has no effect." + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: CSSC + description: "Clock security system interrupt clear\r Writing this bit to 1 clears the CSSF flag. Writing 0 has no effect." + bit_offset: 10 + bit_size: 1 + - name: MSIKRDYC + description: "MSIK oscillator ready interrupt clear\r Writing this bit to 1 clears the MSIKRDYF flag. Writing 0 has no effect." + bit_offset: 11 + bit_size: 1 + - name: SHSIRDYC + description: "SHSI oscillator ready interrupt clear\r Writing this bit to 1 clears the SHSIRDYF flag. Writing 0 has no effect." + bit_offset: 12 + bit_size: 1 fieldset/CIER: description: RCC clock interrupt enable register fields: - - name: LSIRDYIE - description: "LSI ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSI oscillator stabilization." - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: "LSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSE oscillator stabilization." - bit_offset: 1 - bit_size: 1 - - name: MSISRDYIE - description: "MSIS ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the MSIS oscillator stabilization." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: "HSI16 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI16 oscillator stabilization." - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: "HSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSE oscillator stabilization." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYIE - description: "HSI48 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI48 oscillator stabilization." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYIE - description: "PLL ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by PLL1 lock." - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: MSIKRDYIE - description: "MSIK ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the MSIK oscillator stabilization." - bit_offset: 11 - bit_size: 1 - - name: SHSIRDYIE - description: "SHSI ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the SHSI oscillator stabilization." - bit_offset: 12 - bit_size: 1 + - name: LSIRDYIE + description: "LSI ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSI oscillator stabilization." + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: "LSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSE oscillator stabilization." + bit_offset: 1 + bit_size: 1 + - name: MSISRDYIE + description: "MSIS ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the MSIS oscillator stabilization." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: "HSI16 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI16 oscillator stabilization." + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: "HSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSE oscillator stabilization." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYIE + description: "HSI48 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI48 oscillator stabilization." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYIE + description: "PLL ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by PLL1 lock." + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: MSIKRDYIE + description: "MSIK ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the MSIK oscillator stabilization." + bit_offset: 11 + bit_size: 1 + - name: SHSIRDYIE + description: "SHSI ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the SHSI oscillator stabilization." + bit_offset: 12 + bit_size: 1 fieldset/CIFR: description: RCC clock interrupt flag register fields: - - name: LSIRDYF - description: "LSI ready interrupt flag\r Set by hardware when the LSI clock becomes stable and LSIRDYIE is set.\r Cleared by software setting the LSIRDYC bit." - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: "LSE ready interrupt flag\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set.\r Cleared by software setting the LSERDYC bit." - bit_offset: 1 - bit_size: 1 - - name: MSISRDYF - description: "MSIS ready interrupt flag\r Set by hardware when the MSIS clock becomes stable and MSISRDYIE is set.\r Cleared by software setting the MSISRDYC bit." - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: "HSI16 ready interrupt flag\r Set by hardware when the HSI16 clock becomes stable and HSIRDYIE is set in a response to setting the HSION (see RCC_CR). When HSION is not set but the HSI16 oscillator is enabled by the peripheral through a clock request, this bit is not set and no interrupt is generated.\r Cleared by software setting the HSIRDYC bit." - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: "HSE ready interrupt flag\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set.\r Cleared by software setting the HSERDYC bit." - bit_offset: 4 - bit_size: 1 - - name: HSI48RDYF - description: "HSI48 ready interrupt flag\r Set by hardware when the HSI48 clock becomes stable and HSI48RDYIE is set.\r Cleared by software setting the HSI48RDYC bit." - bit_offset: 5 - bit_size: 1 - - name: PLLRDYF - description: "PLL1 ready interrupt flag\r Set by hardware when the PLL1 locks and PLL1RDYIE is set.\r Cleared by software setting the PLL1RDYC bit." - bit_offset: 6 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: CSSF - description: "Clock security system interrupt flag\r Set by hardware when a failure is detected in the HSE oscillator.\r Cleared by software setting the CSSC bit." - bit_offset: 10 - bit_size: 1 - - name: MSIKRDYF - description: "MSIK ready interrupt flag\r Set by hardware when the MSIK clock becomes stable and MSIKRDYIE is set.\r Cleared by software setting the MSIKRDYC bit." - bit_offset: 11 - bit_size: 1 - - name: SHSIRDYF - description: "SHSI ready interrupt flag\r Set by hardware when the SHSI clock becomes stable and SHSIRDYIE is set.\r Cleared by software setting the SHSIRDYC bit." - bit_offset: 12 - bit_size: 1 + - name: LSIRDYF + description: "LSI ready interrupt flag\r Set by hardware when the LSI clock becomes stable and LSIRDYIE is set.\r Cleared by software setting the LSIRDYC bit." + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: "LSE ready interrupt flag\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set.\r Cleared by software setting the LSERDYC bit." + bit_offset: 1 + bit_size: 1 + - name: MSISRDYF + description: "MSIS ready interrupt flag\r Set by hardware when the MSIS clock becomes stable and MSISRDYIE is set.\r Cleared by software setting the MSISRDYC bit." + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: "HSI16 ready interrupt flag\r Set by hardware when the HSI16 clock becomes stable and HSIRDYIE is set in a response to setting the HSION (see RCC_CR). When HSION is not set but the HSI16 oscillator is enabled by the peripheral through a clock request, this bit is not set and no interrupt is generated.\r Cleared by software setting the HSIRDYC bit." + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: "HSE ready interrupt flag\r Set by hardware when the HSE clock becomes stable and HSERDYIE is set.\r Cleared by software setting the HSERDYC bit." + bit_offset: 4 + bit_size: 1 + - name: HSI48RDYF + description: "HSI48 ready interrupt flag\r Set by hardware when the HSI48 clock becomes stable and HSI48RDYIE is set.\r Cleared by software setting the HSI48RDYC bit." + bit_offset: 5 + bit_size: 1 + - name: PLLRDYF + description: "PLL1 ready interrupt flag\r Set by hardware when the PLL1 locks and PLL1RDYIE is set.\r Cleared by software setting the PLL1RDYC bit." + bit_offset: 6 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: CSSF + description: "Clock security system interrupt flag\r Set by hardware when a failure is detected in the HSE oscillator.\r Cleared by software setting the CSSC bit." + bit_offset: 10 + bit_size: 1 + - name: MSIKRDYF + description: "MSIK ready interrupt flag\r Set by hardware when the MSIK clock becomes stable and MSIKRDYIE is set.\r Cleared by software setting the MSIKRDYC bit." + bit_offset: 11 + bit_size: 1 + - name: SHSIRDYF + description: "SHSI ready interrupt flag\r Set by hardware when the SHSI clock becomes stable and SHSIRDYIE is set.\r Cleared by software setting the SHSIRDYC bit." + bit_offset: 12 + bit_size: 1 fieldset/CR: description: RCC clock control register fields: - - name: MSISON - description: "MSIS clock enable\r Set and cleared by software.\r Cleared by hardware to stop the MSIS oscillator when entering Stop, Standby or Shutdown mode.\r Set by hardware to force the MSIS oscillator ON when exiting Standby or Shutdown mode.\r Set by hardware to force the MSIS oscillator ON when STOPWUCK = 0 when exiting Stop modes or in case of a failure of the HSE oscillator.\r Set by hardware when used directly or indirectly as system clock." - bit_offset: 0 - bit_size: 1 - - name: MSIKERON - description: "MSI enable for some peripheral kernels\r Set and cleared by software to force MSI ON even in Stop modes. Keeping the MSI ON in Stop mode allows the communication speed not to be reduced by the MSI startup time. This bit has no effect on MSISON and MSIKON values (see autonomous mode for more details).\r The MSIKERON must be configured at 0 before entering Stop 3 mode." - bit_offset: 1 - bit_size: 1 - - name: MSISRDY - description: "MSIS clock ready flag\r Set by hardware to indicate that the MSIS oscillator is stable. This bit is set only when MSIS is enabled by software by setting MSISON.\r Note: Once the MSISON bit is cleared, MSISRDY goes low after six MSIS clock cycles." - bit_offset: 2 - bit_size: 1 - - name: MSIPLLEN - description: "MSI clock PLL-mode enable\r Set and cleared by software to enable/disable the PLL part of the MSI clock source.\r MSIPLLEN must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware). A hardware protection prevents from enabling MSIPLLEN if LSE is not ready.\r This bit is cleared by hardware when LSE is disabled (LSEON = 0) or when the CSS on LSE detects a LSE failure (see RCC_CSR)." - bit_offset: 3 - bit_size: 1 - - name: MSIKON - description: "MSIK clock enable\r Set and cleared by software.\r Cleared by hardware to stop the MSIK when entering Stop, Standby or Shutdown mode.\r Set by hardware to force the MSIK oscillator ON when exiting Standby or Shutdown mode.\r Set by hardware to force the MSIK oscillator ON when STOPWUCK = 0 or STOPKERWUCK = 0 when exiting Stop modes or in case of a failure of the HSE oscillator." - bit_offset: 4 - bit_size: 1 - - name: MSIKRDY - description: "MSIK clock ready flag\r Set by hardware to indicate that the MSIK is stable. This bit is set only when MSI kernel oscillator is enabled by software by setting MSIKON.\r Note: Once the MSIKON bit is cleared, MSIKRDY goes low after six MSIK oscillator clock cycles." - bit_offset: 5 - bit_size: 1 - - name: MSIPLLSEL - description: "MSI clock with PLL mode selection\r Set and cleared by software to select which MSI output clock uses the PLL mode. This bit can be written only when the MSI PLL mode is disabled (MSIPLLEN = 0).\r Note: If the MSI kernel clock output uses the same oscillator source than the MSI system clock output, then the PLL mode is applied to the both clocks outputs." - bit_offset: 6 - bit_size: 1 - enum: MSIPLLSEL - - name: MSIPLLFAST - description: "MSI PLL mode fast startup\r Set and reset by software to enable/disable the fast PLL mode start-up of the MSI clock\r source. This bit is used only if PLL mode is selected (MSIPLLEN = 1).\r The fast start-up feature is not active the first time the PLL mode is selected. The fast start-up is active when the MSI in PLL mode returns from switch off." - bit_offset: 7 - bit_size: 1 - enum: MSIPLLFAST - - name: HSION - description: "HSI16 clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSI16 oscillator when entering Stop, Standby or Shutdown mode.\r Set by hardware to force the HSI16 oscillator ON when STOPWUCK = 1 when leaving Stop modes, or in case of failure of the HSE crystal oscillator.\r This bit is set by hardware if the HSI16 is used directly or indirectly as system clock." - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: "HSI16 enable for some peripheral kernels\r Set and cleared by software to force HSI16 ON even in Stop modes. Keeping the HSI16 ON in Stop mode allows the communication speed not to be reduced by the HSI16 startup time. This bit has no effect on HSION value.\r Refer to for more details.\r The HSIKERON must be configured at 0 before entering Stop 3 mode." - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: "HSI16 clock ready flag\r Set by hardware to indicate that HSI16 oscillator is stable. This bit is set only when HSI16 is enabled by software by setting HSION.\r Note: Once the HSION bit is cleared, HSIRDY goes low after six HSI16 clock cycles." - bit_offset: 10 - bit_size: 1 - - name: HSI48ON - description: "HSI48 clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSI48 when entering in Stop, Standby or Shutdown modes." - bit_offset: 12 - bit_size: 1 - - name: HSI48RDY - description: "HSI48 clock ready flag\r Set by hardware to indicate that HSI48 oscillator is stable. This bit is set only when HSI48 is enabled by software by setting HSI48ON." - bit_offset: 13 - bit_size: 1 - - name: SHSION - description: "SHSI clock enable\r Set and cleared by software.\r Cleared by hardware to stop the SHSI when entering in Stop, Standby or Shutdown modes." - bit_offset: 14 - bit_size: 1 - - name: SHSIRDY - description: "SHSI clock ready flag\r Set by hardware to indicate that the SHSI oscillator is stable. This bit is set only when SHSI is enabled by software by setting SHSION.\r Note: Once the SHSION bit is cleared, SHSIRDY goes low after six SHSI clock cycles." - bit_offset: 15 - bit_size: 1 - - name: HSEON - description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE oscillator when entering Stop, Standby or Shutdown mode. This bit cannot be reset if the HSE oscillator is used directly or indirectly as the system clock." - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable.\r Note: Once the HSEON bit is cleared, HSERDY goes low after six HSE clock cycles." - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: "HSE crystal oscillator bypass\r Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit set, to be used by the device. The HSEBYP bit can be written only if the HSE oscillator is disabled." - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: "Clock security system enable\r Set by software to enable the clock security system. When CSSON is set, the clock detector is enabled by hardware when the HSE oscillator is ready, and disabled by hardware if a HSE clock failure is detected. This bit is set only and is cleared by reset." - bit_offset: 19 - bit_size: 1 - - name: HSEEXT - description: "HSE external clock bypass mode\r Set and reset by software to select the external clock mode in bypass mode. External clock mode must be configured with HSEON bit to be used by the device. This bit can be written only if the HSE oscillator is disabled. This bit is active only if the HSE bypass mode is enabled." - bit_offset: 20 - bit_size: 1 - enum: HSEEXT - - name: PLLON - description: "PLL1 enable\r Set and cleared by software to enable the main PLL.\r Cleared by hardware when entering Stop, Standby or Shutdown mode. This bit cannot be reset if the PLL1 clock is used as the system clock." - bit_offset: 24 - bit_size: 1 - array: - len: 3 - stride: 2 - - name: PLLRDY - description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked." - bit_offset: 25 - bit_size: 1 - array: - len: 3 - stride: 2 + - name: MSISON + description: "MSIS clock enable\r Set and cleared by software.\r Cleared by hardware to stop the MSIS oscillator when entering Stop, Standby or Shutdown mode.\r Set by hardware to force the MSIS oscillator ON when exiting Standby or Shutdown mode.\r Set by hardware to force the MSIS oscillator ON when STOPWUCK = 0 when exiting Stop modes or in case of a failure of the HSE oscillator.\r Set by hardware when used directly or indirectly as system clock." + bit_offset: 0 + bit_size: 1 + - name: MSIKERON + description: "MSI enable for some peripheral kernels\r Set and cleared by software to force MSI ON even in Stop modes. Keeping the MSI ON in Stop mode allows the communication speed not to be reduced by the MSI startup time. This bit has no effect on MSISON and MSIKON values (see autonomous mode for more details).\r The MSIKERON must be configured at 0 before entering Stop 3 mode." + bit_offset: 1 + bit_size: 1 + - name: MSISRDY + description: "MSIS clock ready flag\r Set by hardware to indicate that the MSIS oscillator is stable. This bit is set only when MSIS is enabled by software by setting MSISON.\r Note: Once the MSISON bit is cleared, MSISRDY goes low after six MSIS clock cycles." + bit_offset: 2 + bit_size: 1 + - name: MSIPLLEN + description: "MSI clock PLL-mode enable\r Set and cleared by software to enable/disable the PLL part of the MSI clock source.\r MSIPLLEN must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware). A hardware protection prevents from enabling MSIPLLEN if LSE is not ready.\r This bit is cleared by hardware when LSE is disabled (LSEON = 0) or when the CSS on LSE detects a LSE failure (see RCC_CSR)." + bit_offset: 3 + bit_size: 1 + - name: MSIKON + description: "MSIK clock enable\r Set and cleared by software.\r Cleared by hardware to stop the MSIK when entering Stop, Standby or Shutdown mode.\r Set by hardware to force the MSIK oscillator ON when exiting Standby or Shutdown mode.\r Set by hardware to force the MSIK oscillator ON when STOPWUCK = 0 or STOPKERWUCK = 0 when exiting Stop modes or in case of a failure of the HSE oscillator." + bit_offset: 4 + bit_size: 1 + - name: MSIKRDY + description: "MSIK clock ready flag\r Set by hardware to indicate that the MSIK is stable. This bit is set only when MSI kernel oscillator is enabled by software by setting MSIKON.\r Note: Once the MSIKON bit is cleared, MSIKRDY goes low after six MSIK oscillator clock cycles." + bit_offset: 5 + bit_size: 1 + - name: MSIPLLSEL + description: "MSI clock with PLL mode selection\r Set and cleared by software to select which MSI output clock uses the PLL mode. This bit can be written only when the MSI PLL mode is disabled (MSIPLLEN = 0).\r Note: If the MSI kernel clock output uses the same oscillator source than the MSI system clock output, then the PLL mode is applied to the both clocks outputs." + bit_offset: 6 + bit_size: 1 + enum: MSIPLLSEL + - name: MSIPLLFAST + description: "MSI PLL mode fast startup\r Set and reset by software to enable/disable the fast PLL mode start-up of the MSI clock\r source. This bit is used only if PLL mode is selected (MSIPLLEN = 1).\r The fast start-up feature is not active the first time the PLL mode is selected. The fast start-up is active when the MSI in PLL mode returns from switch off." + bit_offset: 7 + bit_size: 1 + enum: MSIPLLFAST + - name: HSION + description: "HSI16 clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSI16 oscillator when entering Stop, Standby or Shutdown mode.\r Set by hardware to force the HSI16 oscillator ON when STOPWUCK = 1 when leaving Stop modes, or in case of failure of the HSE crystal oscillator.\r This bit is set by hardware if the HSI16 is used directly or indirectly as system clock." + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: "HSI16 enable for some peripheral kernels\r Set and cleared by software to force HSI16 ON even in Stop modes. Keeping the HSI16 ON in Stop mode allows the communication speed not to be reduced by the HSI16 startup time. This bit has no effect on HSION value.\r Refer to for more details.\r The HSIKERON must be configured at 0 before entering Stop 3 mode." + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: "HSI16 clock ready flag\r Set by hardware to indicate that HSI16 oscillator is stable. This bit is set only when HSI16 is enabled by software by setting HSION.\r Note: Once the HSION bit is cleared, HSIRDY goes low after six HSI16 clock cycles." + bit_offset: 10 + bit_size: 1 + - name: HSI48ON + description: "HSI48 clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSI48 when entering in Stop, Standby or Shutdown modes." + bit_offset: 12 + bit_size: 1 + - name: HSI48RDY + description: "HSI48 clock ready flag\r Set by hardware to indicate that HSI48 oscillator is stable. This bit is set only when HSI48 is enabled by software by setting HSI48ON." + bit_offset: 13 + bit_size: 1 + - name: SHSION + description: "SHSI clock enable\r Set and cleared by software.\r Cleared by hardware to stop the SHSI when entering in Stop, Standby or Shutdown modes." + bit_offset: 14 + bit_size: 1 + - name: SHSIRDY + description: "SHSI clock ready flag\r Set by hardware to indicate that the SHSI oscillator is stable. This bit is set only when SHSI is enabled by software by setting SHSION.\r Note: Once the SHSION bit is cleared, SHSIRDY goes low after six SHSI clock cycles." + bit_offset: 15 + bit_size: 1 + - name: HSEON + description: "HSE clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE oscillator when entering Stop, Standby or Shutdown mode. This bit cannot be reset if the HSE oscillator is used directly or indirectly as the system clock." + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: "HSE clock ready flag\r Set by hardware to indicate that the HSE oscillator is stable.\r Note: Once the HSEON bit is cleared, HSERDY goes low after six HSE clock cycles." + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: "HSE crystal oscillator bypass\r Set and cleared by software to bypass the oscillator with an external clock. The external clock must be enabled with the HSEON bit set, to be used by the device. The HSEBYP bit can be written only if the HSE oscillator is disabled." + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: "Clock security system enable\r Set by software to enable the clock security system. When CSSON is set, the clock detector is enabled by hardware when the HSE oscillator is ready, and disabled by hardware if a HSE clock failure is detected. This bit is set only and is cleared by reset." + bit_offset: 19 + bit_size: 1 + - name: HSEEXT + description: "HSE external clock bypass mode\r Set and reset by software to select the external clock mode in bypass mode. External clock mode must be configured with HSEON bit to be used by the device. This bit can be written only if the HSE oscillator is disabled. This bit is active only if the HSE bypass mode is enabled." + bit_offset: 20 + bit_size: 1 + enum: HSEEXT + - name: PLLON + description: "PLL1 enable\r Set and cleared by software to enable the main PLL.\r Cleared by hardware when entering Stop, Standby or Shutdown mode. This bit cannot be reset if the PLL1 clock is used as the system clock." + bit_offset: 24 + bit_size: 1 + array: + len: 3 + stride: 2 + - name: PLLRDY + description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked." + bit_offset: 25 + bit_size: 1 + array: + len: 3 + stride: 2 fieldset/CRRCR: description: RCC clock recovery RC register fields: - - name: HSI48CAL - description: "HSI48 clock calibration\r These bits are initialized at startup with the factory-programmed HSI48 calibration trim value." - bit_offset: 0 - bit_size: 9 + - name: HSI48CAL + description: "HSI48 clock calibration\r These bits are initialized at startup with the factory-programmed HSI48 calibration trim value." + bit_offset: 0 + bit_size: 9 fieldset/CSR: description: RCC control/status register fields: - - name: MSIKSRANGE - description: "MSIK range after Standby mode\r Set by software to chose the MSIK frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSIKSRANGE can be written only when MSIRGSEL = 1.\r others: reserved\r Note: Changing the MSIKSRANGE does not change the current MSIK frequency." - bit_offset: 8 - bit_size: 4 - enum: MSIXSRANGE - - name: MSISSRANGE - description: "MSIS range after Standby mode\r Set by software to chose the MSIS frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSISSRANGE can be written only when MSIRGSEL = 1.\r others: reserved\r Note: Changing the MSISSRANGE does not change the current MSIS frequency." - bit_offset: 12 - bit_size: 4 - enum: MSIXSRANGE - - name: RMVF - description: "Remove reset flag\r Set by software to clear the reset flags." - bit_offset: 23 - bit_size: 1 - - name: OBLRSTF - description: "Option byte loader reset flag\r Set by hardware when a reset from the option byte loading occurs.\r Cleared by writing to the RMVF bit." - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: "NRST pin reset flag\r Set by hardware when a reset from the NRST pin occurs.\r Cleared by writing to the RMVF bit." - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: "BOR flag\r Set by hardware when a BOR occurs.\r Cleared by writing to the RMVF bit." - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: "Software reset flag\r Set by hardware when a software reset occurs.\r Cleared by writing to the RMVF bit." - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: "Independent watchdog reset flag\r Set by hardware when an independent watchdog reset domain occurs.\r Cleared by writing to the RMVF bit." - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: "Window watchdog reset flag\r Set by hardware when a window watchdog reset occurs.\r Cleared by writing to the RMVF bit." - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: "Low-power reset flag\r Set by hardware when a reset occurs due to Stop, Standby or Shutdown mode entry, whereas the corresponding nRST_STOP, nRST_STBY or nRST_SHDW option bit is cleared.\r Cleared by writing to the RMVF bit." - bit_offset: 31 - bit_size: 1 + - name: MSIKSRANGE + description: "MSIK range after Standby mode\r Set by software to chose the MSIK frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSIKSRANGE can be written only when MSIRGSEL = 1.\r others: reserved\r Note: Changing the MSIKSRANGE does not change the current MSIK frequency." + bit_offset: 8 + bit_size: 4 + enum: MSIXSRANGE + - name: MSISSRANGE + description: "MSIS range after Standby mode\r Set by software to chose the MSIS frequency at startup. This range is used after exiting Standby mode until MSIRGSEL is set. After a NRST pin or a power-on reset or when exiting Shutdown mode, the range is always 4 MHz. MSISSRANGE can be written only when MSIRGSEL = 1.\r others: reserved\r Note: Changing the MSISSRANGE does not change the current MSIS frequency." + bit_offset: 12 + bit_size: 4 + enum: MSIXSRANGE + - name: RMVF + description: "Remove reset flag\r Set by software to clear the reset flags." + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: "Option byte loader reset flag\r Set by hardware when a reset from the option byte loading occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: "NRST pin reset flag\r Set by hardware when a reset from the NRST pin occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: "BOR flag\r Set by hardware when a BOR occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: "Software reset flag\r Set by hardware when a software reset occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: "Independent watchdog reset flag\r Set by hardware when an independent watchdog reset domain occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: "Window watchdog reset flag\r Set by hardware when a window watchdog reset occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: "Low-power reset flag\r Set by hardware when a reset occurs due to Stop, Standby or Shutdown mode entry, whereas the corresponding nRST_STOP, nRST_STBY or nRST_SHDW option bit is cleared.\r Cleared by writing to the RMVF bit." + bit_offset: 31 + bit_size: 1 fieldset/ICSCR1: description: RCC internal clock sources calibration register 1 fields: - - name: MSICAL3 - description: "MSIRC3 clock calibration for MSI ranges 12 to 15\r These bits are initialized at startup with the factory-programmed MSIRC3 calibration trim value for ranges 12 to 15. When MSITRIM3 is written, MSICAL3 is updated with the sum of MSITRIM3[4:0] and the factory calibration trim value MSIRC2[4:0].\r There is no hardware protection to limit a potential overflow due to the addition of MSITRIM bitfield and factory program bitfield for this calibration value. Control must be managed by software at user level." - bit_offset: 0 - bit_size: 5 - - name: MSICAL2 - description: "MSIRC2 clock calibration for MSI ranges 8 to 11\r These bits are initialized at startup with the factory-programmed MSIRC2 calibration trim value for ranges 8 to 11. When MSITRIM2 is written, MSICAL2 is updated with the sum of MSITRIM2[4:0] and the factory calibration trim value MSIRC2[4:0].\r There is no hardware protection to limit a potential overflow due to the addition of MSITRIM bitfield and factory program bitfield for this calibration value. Control must be managed by software at user level." - bit_offset: 5 - bit_size: 5 - - name: MSICAL1 - description: "MSIRC1 clock calibration for MSI ranges 4 to 7\r These bits are initialized at startup with the factory-programmed MSIRC1 calibration trim value for ranges 4 to 7. When MSITRIM1 is written, MSICAL1 is updated with the sum of MSITRIM1[4:0] and the factory calibration trim value MSIRC1[4:0].\r There is no hardware protection to limit a potential overflow due to the addition of MSITRIM bitfield and factory program bitfield for this calibration value. Control must be managed by software at user level." - bit_offset: 10 - bit_size: 5 - - name: MSICAL0 - description: "MSIRC0 clock calibration for MSI ranges 0 to 3\r These bits are initialized at startup with the factory-programmed MSIRC0 calibration trim value for ranges 0 to 3. When MSITRIM0 is written, MSICAL0 is updated with the sum of MSITRIM0[4:0] and the factory-programmed calibration trim value MSIRC0[4:0]." - bit_offset: 15 - bit_size: 5 - - name: MSIBIAS - description: "MSI bias mode selection\r Set by software to select the MSI bias mode. By default, the MSI bias is in continuous mode in order to maintain the output clocks accuracy. Setting this bit reduces the MSI consumption under range 4 but decrease its accuracy." - bit_offset: 22 - bit_size: 1 - enum: MSIBIAS - - name: MSIRGSEL - description: "MSI clock range selection\r Set by software to select the MSIS and MSIK clocks range with MSISRANGE[3:0] and MSIKRANGE[3:0]. Write 0 has no effect.\r After exiting Standby or Shutdown mode, or after a reset, this bit is at 0 and the MSIS and MSIK ranges are provided by MSISSRANGE[3:0] and MSIKSRANGE[3:0] in RCC_CSR." - bit_offset: 23 - bit_size: 1 - enum: MSIRGSEL - - name: MSIKRANGE - description: "MSIK clock ranges\r These bits are configured by software to choose the frequency range of MSIK oscillator when MSIRGSEL is set. 16 frequency ranges are available:\r Note: MSIKRANGE can be modified when MSIK is OFF (MSISON = 0) or when MSIK is ready (MSIKRDY = 1). MSIKRANGE must NOT be modified when MSIK is ON and NOT ready (MSIKON = 1 and MSIKRDY = 0)\r MSIKRANGE is kept when the device wakes up from Stop mode, except when the MSIK range is above 24 MHz. In this case MSIKRANGE is changed by hardware into Range 2 (24 MHz)." - bit_offset: 24 - bit_size: 4 - enum: MSIRANGE - - name: MSISRANGE - description: "MSIS clock ranges\r These bits are configured by software to choose the frequency range of MSIS oscillator when MSIRGSEL is set. 16 frequency ranges are available:\r Note: MSISRANGE can be modified when MSIS is OFF (MSISON = 0) or when MSIS is ready (MSISRDY = 1). MSISRANGE must NOT be modified when MSIS is ON and NOT ready (MSISON = 1 and MSISRDY = 0)\r MSISRANGE is kept when the device wakes up from Stop mode, except when the MSIS range is above 24 MHz. In this case MSISRANGE is changed by hardware into Range 2 (24 MHz)." - bit_offset: 28 - bit_size: 4 - enum: MSIRANGE + - name: MSICAL3 + description: "MSIRC3 clock calibration for MSI ranges 12 to 15\r These bits are initialized at startup with the factory-programmed MSIRC3 calibration trim value for ranges 12 to 15. When MSITRIM3 is written, MSICAL3 is updated with the sum of MSITRIM3[4:0] and the factory calibration trim value MSIRC2[4:0].\r There is no hardware protection to limit a potential overflow due to the addition of MSITRIM bitfield and factory program bitfield for this calibration value. Control must be managed by software at user level." + bit_offset: 0 + bit_size: 5 + - name: MSICAL2 + description: "MSIRC2 clock calibration for MSI ranges 8 to 11\r These bits are initialized at startup with the factory-programmed MSIRC2 calibration trim value for ranges 8 to 11. When MSITRIM2 is written, MSICAL2 is updated with the sum of MSITRIM2[4:0] and the factory calibration trim value MSIRC2[4:0].\r There is no hardware protection to limit a potential overflow due to the addition of MSITRIM bitfield and factory program bitfield for this calibration value. Control must be managed by software at user level." + bit_offset: 5 + bit_size: 5 + - name: MSICAL1 + description: "MSIRC1 clock calibration for MSI ranges 4 to 7\r These bits are initialized at startup with the factory-programmed MSIRC1 calibration trim value for ranges 4 to 7. When MSITRIM1 is written, MSICAL1 is updated with the sum of MSITRIM1[4:0] and the factory calibration trim value MSIRC1[4:0].\r There is no hardware protection to limit a potential overflow due to the addition of MSITRIM bitfield and factory program bitfield for this calibration value. Control must be managed by software at user level." + bit_offset: 10 + bit_size: 5 + - name: MSICAL0 + description: "MSIRC0 clock calibration for MSI ranges 0 to 3\r These bits are initialized at startup with the factory-programmed MSIRC0 calibration trim value for ranges 0 to 3. When MSITRIM0 is written, MSICAL0 is updated with the sum of MSITRIM0[4:0] and the factory-programmed calibration trim value MSIRC0[4:0]." + bit_offset: 15 + bit_size: 5 + - name: MSIBIAS + description: "MSI bias mode selection\r Set by software to select the MSI bias mode. By default, the MSI bias is in continuous mode in order to maintain the output clocks accuracy. Setting this bit reduces the MSI consumption under range 4 but decrease its accuracy." + bit_offset: 22 + bit_size: 1 + enum: MSIBIAS + - name: MSIRGSEL + description: "MSI clock range selection\r Set by software to select the MSIS and MSIK clocks range with MSISRANGE[3:0] and MSIKRANGE[3:0]. Write 0 has no effect.\r After exiting Standby or Shutdown mode, or after a reset, this bit is at 0 and the MSIS and MSIK ranges are provided by MSISSRANGE[3:0] and MSIKSRANGE[3:0] in RCC_CSR." + bit_offset: 23 + bit_size: 1 + enum: MSIRGSEL + - name: MSIKRANGE + description: "MSIK clock ranges\r These bits are configured by software to choose the frequency range of MSIK oscillator when MSIRGSEL is set. 16 frequency ranges are available:\r Note: MSIKRANGE can be modified when MSIK is OFF (MSISON = 0) or when MSIK is ready (MSIKRDY = 1). MSIKRANGE must NOT be modified when MSIK is ON and NOT ready (MSIKON = 1 and MSIKRDY = 0)\r MSIKRANGE is kept when the device wakes up from Stop mode, except when the MSIK range is above 24 MHz. In this case MSIKRANGE is changed by hardware into Range 2 (24 MHz)." + bit_offset: 24 + bit_size: 4 + enum: MSIRANGE + - name: MSISRANGE + description: "MSIS clock ranges\r These bits are configured by software to choose the frequency range of MSIS oscillator when MSIRGSEL is set. 16 frequency ranges are available:\r Note: MSISRANGE can be modified when MSIS is OFF (MSISON = 0) or when MSIS is ready (MSISRDY = 1). MSISRANGE must NOT be modified when MSIS is ON and NOT ready (MSISON = 1 and MSISRDY = 0)\r MSISRANGE is kept when the device wakes up from Stop mode, except when the MSIS range is above 24 MHz. In this case MSISRANGE is changed by hardware into Range 2 (24 MHz)." + bit_offset: 28 + bit_size: 4 + enum: MSIRANGE fieldset/ICSCR2: description: RCC internal clock sources calibration register 2 fields: - - name: MSITRIM3 - description: "MSI clock trimming for ranges 12 to 15\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC3[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." - bit_offset: 0 - bit_size: 5 - - name: MSITRIM2 - description: "MSI clock trimming for ranges 8 to 11\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC2[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." - bit_offset: 5 - bit_size: 5 - - name: MSITRIM1 - description: "MSI clock trimming for ranges 4 to 7\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC1[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." - bit_offset: 10 - bit_size: 5 - - name: MSITRIM0 - description: "MSI clock trimming for ranges 0 to 3\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC0[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." - bit_offset: 15 - bit_size: 5 + - name: MSITRIM3 + description: "MSI clock trimming for ranges 12 to 15\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC3[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." + bit_offset: 0 + bit_size: 5 + - name: MSITRIM2 + description: "MSI clock trimming for ranges 8 to 11\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC2[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." + bit_offset: 5 + bit_size: 5 + - name: MSITRIM1 + description: "MSI clock trimming for ranges 4 to 7\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC1[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." + bit_offset: 10 + bit_size: 5 + - name: MSITRIM0 + description: "MSI clock trimming for ranges 0 to 3\r These bits provide an additional user-programmable trimming value that is added to the factory-programmed calibration trim value MSIRC0[4:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the MSI." + bit_offset: 15 + bit_size: 5 fieldset/ICSCR3: description: RCC internal clock sources calibration register 3 fields: - - name: HSICAL - description: "HSI clock calibration\r These bits are initialized at startup with the factory-programmed HSI calibration trim value. When HSITRIM is written, HSICAL is updated with the sum of HSITRIM and the factory trim value." - bit_offset: 0 - bit_size: 12 - - name: HSITRIM - description: "HSI clock trimming\r These bits provide an additional user-programmable trimming value that is added to the HSICAL[11:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the HSI." - bit_offset: 16 - bit_size: 5 + - name: HSICAL + description: "HSI clock calibration\r These bits are initialized at startup with the factory-programmed HSI calibration trim value. When HSITRIM is written, HSICAL is updated with the sum of HSITRIM and the factory trim value." + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: "HSI clock trimming\r These bits provide an additional user-programmable trimming value that is added to the HSICAL[11:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the HSI." + bit_offset: 16 + bit_size: 5 fieldset/PLL1CFGR: description: RCC PLL1 configuration register fields: - - name: PLLSRC - description: "PLL1 entry clock source\r Set and cleared by software to select PLL1 clock source. These bits can be written only when the PLL1 is disabled.\r In order to save power, when no PLL1 is used, the value of PLL1SRC must be 0." - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLRGE - description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1.\r This bit must be written before enabling the PLL1.\r 00-01-10: PLL1 input (ref1_ck) clock range frequency between 4 and 8 MHz" - bit_offset: 2 - bit_size: 2 - enum: PLLRGE - - name: PLLFRACEN - description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of PLL1FRACN into the ΣΠmodulator.\r In order to latch the PLL1FRACN value into the ΣΠmodulator, PLL1FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL1FRACN into the modulator (see for details)." - bit_offset: 4 - bit_size: 1 - - name: PLLM - description: "Prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1. The VCO1 input frequency is PLL1 input clock frequency/PLL1M.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 8 - bit_size: 4 - enum: PLLM - - name: PLLMBOOST - description: "Prescaler for EPOD booster input clock\r Set and cleared by software to configure the prescaler of the PLL1, used for the EPOD booster. The EPOD booster input frequency is PLL1 input clock frequency/PLL1MBOOST.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0) and EPOD Boost mode is disabled (see ).\r others: reserved" - bit_offset: 12 - bit_size: 4 - enum: PLLMBOOST - - name: PLLPEN - description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1_p_ck output of the PLL1.\r To save power, PLL1PEN and PLL1P bits must be set to 0 when the pll1_p_ck is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 16 - bit_size: 1 - - name: PLLQEN - description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1_q_ck output of the PLL1.\r To save power, PLL1QEN and PLL1Q bits must be set to 0 when the pll1_q_ck is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 17 - bit_size: 1 - - name: PLLREN - description: "PLL1 DIVR divider output enable\r Set and reset by software to enable the pll1_r_ck output of the PLL1.\r To save power, PLL1RENPLL2REN and PLL1R bits must be set to 0 when the pll1_r_ck is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." - bit_offset: 18 - bit_size: 1 + - name: PLLSRC + description: "PLL1 entry clock source\r Set and cleared by software to select PLL1 clock source. These bits can be written only when the PLL1 is disabled.\r In order to save power, when no PLL1 is used, the value of PLL1SRC must be 0." + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLRGE + description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1.\r This bit must be written before enabling the PLL1.\r 00-01-10: PLL1 input (ref1_ck) clock range frequency between 4 and 8 MHz" + bit_offset: 2 + bit_size: 2 + enum: PLLRGE + - name: PLLFRACEN + description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of PLL1FRACN into the ΣΠmodulator.\r In order to latch the PLL1FRACN value into the ΣΠmodulator, PLL1FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL1FRACN into the modulator (see for details)." + bit_offset: 4 + bit_size: 1 + - name: PLLM + description: "Prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1. The VCO1 input frequency is PLL1 input clock frequency/PLL1M.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 8 + bit_size: 4 + enum: PLLM + - name: PLLMBOOST + description: "Prescaler for EPOD booster input clock\r Set and cleared by software to configure the prescaler of the PLL1, used for the EPOD booster. The EPOD booster input frequency is PLL1 input clock frequency/PLL1MBOOST.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0) and EPOD Boost mode is disabled (see ).\r others: reserved" + bit_offset: 12 + bit_size: 4 + enum: PLLMBOOST + - name: PLLPEN + description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1_p_ck output of the PLL1.\r To save power, PLL1PEN and PLL1P bits must be set to 0 when the pll1_p_ck is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 16 + bit_size: 1 + - name: PLLQEN + description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1_q_ck output of the PLL1.\r To save power, PLL1QEN and PLL1Q bits must be set to 0 when the pll1_q_ck is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 17 + bit_size: 1 + - name: PLLREN + description: "PLL1 DIVR divider output enable\r Set and reset by software to enable the pll1_r_ck output of the PLL1.\r To save power, PLL1RENPLL2REN and PLL1R bits must be set to 0 when the pll1_r_ck is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 18 + bit_size: 1 fieldset/PLL1DIVR: description: RCC PLL1 dividers register fields: - - name: PLLN - description: "Multiplication factor for PLL1 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r Others: reserved\r VCO output frequency = Fref1_ck x PLL1N, when fractional value 0 has been loaded into PLL1FRACN, with:\r PLL1N between 4 and 512\r input frequency Fref1_ck between 4 and 16 MHz" - bit_offset: 0 - bit_size: 9 - - name: PLLP - description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1_p_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." - bit_offset: 9 - bit_size: 7 - - name: PLLQ - description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the pll1_q_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 16 - bit_size: 7 - - name: PLLR - description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1_r_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." - bit_offset: 24 - bit_size: 7 + - name: PLLN + description: "Multiplication factor for PLL1 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r Others: reserved\r VCO output frequency = Fref1_ck x PLL1N, when fractional value 0 has been loaded into PLL1FRACN, with:\r PLL1N between 4 and 512\r input frequency Fref1_ck between 4 and 16 MHz" + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1_p_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the pll1_q_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1_r_ck clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 24 + bit_size: 7 fieldset/PLL1FRACR: description: RCC PLL1 fractional divider register fields: - - name: PLLFRACN - description: "Fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r VCO output frequency = Fref1_ck x (PLL1N + (PLL1FRACN / 213)), with:\r PLL1N must be between 4 and 512.\r PLL1FRACN can be between 0 and 213- 1.\r The input frequency Fref1_ck must be between 4 and 16 MHz.\r To change the FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r Set the bit PLL1FRACEN to 0.\r Write the new fractional value into PLL1FRACN.\r Set the bit PLL1FRACEN to 1." - bit_offset: 3 - bit_size: 13 + - name: PLLFRACN + description: "Fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r VCO output frequency = Fref1_ck x (PLL1N + (PLL1FRACN / 213)), with:\r PLL1N must be between 4 and 512.\r PLL1FRACN can be between 0 and 213- 1.\r The input frequency Fref1_ck must be between 4 and 16 MHz.\r To change the FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r Set the bit PLL1FRACEN to 0.\r Write the new fractional value into PLL1FRACN.\r Set the bit PLL1FRACEN to 1." + bit_offset: 3 + bit_size: 13 fieldset/PLL2CFGR: description: RCC PLL2 configuration register fields: - - name: PLLSRC - description: "PLL2 entry clock source\r Set and cleared by software to select PLL2 clock source. These bits can be written only when the PLL2 is disabled.\r In order to save power, when no PLL2 is used, the value of PLL2SRC must be 0." - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLRGE - description: "PLL2 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL2.\r This bit must be written before enabling the PLL2.\r 00-01-10: PLL2 input (ref2_ck) clock range frequency between 4 and 8 MHz" - bit_offset: 2 - bit_size: 2 - enum: PLLRGE - - name: PLLFRACEN - description: "PLL2 fractional latch enable\r Set and reset by software to latch the content of PLL2FRACN into the ΣΠmodulator.\r In order to latch the PLL2FRACN value into the ΣΠmodulator, PLL2FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL2FRACN into the modulator (see for details)." - bit_offset: 4 - bit_size: 1 - - name: PLLM - description: "Prescaler for PLL2\r Set and cleared by software to configure the prescaler of the PLL2. The VCO2 input frequency is PLL2 input clock frequency/PLL2M.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." - bit_offset: 8 - bit_size: 4 - enum: PLLM - - name: PLLPEN - description: "PLL2 DIVP divider output enable\r Set and reset by software to enable the pll2_p_ck output of the PLL2.\r To save power, PLL2PEN and PLL2P bits must be set to 0 when the pll2_p_ck is not used.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0)." - bit_offset: 16 - bit_size: 1 - - name: PLLQEN - description: "PLL2 DIVQ divider output enable\r Set and reset by software to enable the pll2_q_ck output of the PLL2.\r To save power, PLL2QEN and PLL2Q bits must be set to 0 when the pll2_q_ck is not used.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0." - bit_offset: 17 - bit_size: 1 - - name: PLLREN - description: "PLL2 DIVR divider output enable\r Set and reset by software to enable the pll2_r_ck output of the PLL2.\r To save power, PLL2REN and PLL2R bits must be set to 0 when the pll2_r_ck is not used.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0)." - bit_offset: 18 - bit_size: 1 + - name: PLLSRC + description: "PLL2 entry clock source\r Set and cleared by software to select PLL2 clock source. These bits can be written only when the PLL2 is disabled.\r In order to save power, when no PLL2 is used, the value of PLL2SRC must be 0." + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLRGE + description: "PLL2 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL2.\r This bit must be written before enabling the PLL2.\r 00-01-10: PLL2 input (ref2_ck) clock range frequency between 4 and 8 MHz" + bit_offset: 2 + bit_size: 2 + enum: PLLRGE + - name: PLLFRACEN + description: "PLL2 fractional latch enable\r Set and reset by software to latch the content of PLL2FRACN into the ΣΠmodulator.\r In order to latch the PLL2FRACN value into the ΣΠmodulator, PLL2FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL2FRACN into the modulator (see for details)." + bit_offset: 4 + bit_size: 1 + - name: PLLM + description: "Prescaler for PLL2\r Set and cleared by software to configure the prescaler of the PLL2. The VCO2 input frequency is PLL2 input clock frequency/PLL2M.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." + bit_offset: 8 + bit_size: 4 + enum: PLLM + - name: PLLPEN + description: "PLL2 DIVP divider output enable\r Set and reset by software to enable the pll2_p_ck output of the PLL2.\r To save power, PLL2PEN and PLL2P bits must be set to 0 when the pll2_p_ck is not used.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0)." + bit_offset: 16 + bit_size: 1 + - name: PLLQEN + description: "PLL2 DIVQ divider output enable\r Set and reset by software to enable the pll2_q_ck output of the PLL2.\r To save power, PLL2QEN and PLL2Q bits must be set to 0 when the pll2_q_ck is not used.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0." + bit_offset: 17 + bit_size: 1 + - name: PLLREN + description: "PLL2 DIVR divider output enable\r Set and reset by software to enable the pll2_r_ck output of the PLL2.\r To save power, PLL2REN and PLL2R bits must be set to 0 when the pll2_r_ck is not used.\r This bit can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0)." + bit_offset: 18 + bit_size: 1 fieldset/PLL2DIVR: description: RCC PLL2 dividers configuration register fields: - - name: PLLN - description: "Multiplication factor for PLL2 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ...\r ...\r Others: reserved\r VCO output frequency = Fref2_ck x PLL2N, when fractional value 0 has been loaded into PLL2FRACN, with:\r PLL2N between 4 and 512\r input frequency Fref2_ck between 1MHz and 16MHz" - bit_offset: 0 - bit_size: 9 - - name: PLLP - description: "PLL2 DIVP division factor\r Set and reset by software to control the frequency of the pll2_p_ck clock.\r These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." - bit_offset: 9 - bit_size: 7 - - name: PLLQ - description: "PLL2 DIVQ division factor\r Set and reset by software to control the frequency of the pll2_q_ck clock.\r These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." - bit_offset: 16 - bit_size: 7 - - name: PLLR - description: "PLL2 DIVR division factor\r Set and reset by software to control the frequency of the pll2_r_ck clock.\r These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." - bit_offset: 24 - bit_size: 7 + - name: PLLN + description: "Multiplication factor for PLL2 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ...\r ...\r Others: reserved\r VCO output frequency = Fref2_ck x PLL2N, when fractional value 0 has been loaded into PLL2FRACN, with:\r PLL2N between 4 and 512\r input frequency Fref2_ck between 1MHz and 16MHz" + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: "PLL2 DIVP division factor\r Set and reset by software to control the frequency of the pll2_p_ck clock.\r These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: "PLL2 DIVQ division factor\r Set and reset by software to control the frequency of the pll2_q_ck clock.\r These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: "PLL2 DIVR division factor\r Set and reset by software to control the frequency of the pll2_r_ck clock.\r These bits can be written only when the PLL2 is disabled (PLL2ON = 0 and PLL2RDY = 0).\r ..." + bit_offset: 24 + bit_size: 7 fieldset/PLL2FRACR: description: RCC PLL2 fractional divider register fields: - - name: PLLFRACN - description: "Fractional part of the multiplication factor for PLL2 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL2 VCO.\r VCO output frequency = Fref2_ck x (PLL2N + (PLL2FRACN / 213)), with\r PLL2N must be between 4 and 512.\r PLL2FRACN can be between 0 and 213 - 1.\r The input frequency Fref2_ck must be between 4 and 16 MHz.\r In order to change the FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r Set the bit PLL2FRACEN to 0.\r Write the new fractional value into PLL2FRACN.\r Set the bit PLL2FRACEN to 1." - bit_offset: 3 - bit_size: 13 + - name: PLLFRACN + description: "Fractional part of the multiplication factor for PLL2 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL2 VCO.\r VCO output frequency = Fref2_ck x (PLL2N + (PLL2FRACN / 213)), with\r PLL2N must be between 4 and 512.\r PLL2FRACN can be between 0 and 213 - 1.\r The input frequency Fref2_ck must be between 4 and 16 MHz.\r In order to change the FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r Set the bit PLL2FRACEN to 0.\r Write the new fractional value into PLL2FRACN.\r Set the bit PLL2FRACEN to 1." + bit_offset: 3 + bit_size: 13 fieldset/PLL3CFGR: description: RCC PLL3 configuration register fields: - - name: PLLSRC - description: "PLL3 entry clock source\r Set and cleared by software to select PLL3 clock source. These bits can be written only when the PLL3 is disabled.\r In order to save power, when no PLL3 is used, the value of PLL3SRC must be 00." - bit_offset: 0 - bit_size: 2 - enum: PLLSRC - - name: PLLRGE - description: "PLL3 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL3.\r This bit must be written before enabling the PLL3.\r 00-01-10: PLL3 input (ref3_ck) clock range frequency between 4 and 8 MHz" - bit_offset: 2 - bit_size: 2 - enum: PLLRGE - - name: PLLFRACEN - description: "PLL3 fractional latch enable\r Set and reset by software to latch the content of PLL3FRACN into the ΣΠmodulator.\r In order to latch the PLL3FRACN value into the ΣΠmodulator, PLL3FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL3FRACN into the modulator (see for details)." - bit_offset: 4 - bit_size: 1 - - name: PLLM - description: "Prescaler for PLL3\r Set and cleared by software to configure the prescaler of the PLL3. The VCO3 input frequency is PLL3 input clock frequency/PLL3M.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." - bit_offset: 8 - bit_size: 4 - enum: PLLM - - name: PLLPEN - description: "PLL3 DIVP divider output enable\r Set and reset by software to enable the pll3_p_ck output of the PLL3.\r To save power, PLL3PEN and PLL3P bits must be set to 0 when the pll3_p_ck is not used.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0)." - bit_offset: 16 - bit_size: 1 - - name: PLLQEN - description: "PLL3 DIVQ divider output enable\r Set and reset by software to enable the pll3_q_ck output of the PLL3.\r To save power, PLL3QEN and PLL3Q bits must be set to 0 when the pll3_q_ck is not used.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0)." - bit_offset: 17 - bit_size: 1 - - name: PLLREN - description: "PLL3 DIVR divider output enable\r Set and reset by software to enable the pll3_r_ck output of the PLL3.\r To save power, PLL3REN and PLL3R bits must be set to 0 when the pll3_r_ck is not used.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0)." - bit_offset: 18 - bit_size: 1 + - name: PLLSRC + description: "PLL3 entry clock source\r Set and cleared by software to select PLL3 clock source. These bits can be written only when the PLL3 is disabled.\r In order to save power, when no PLL3 is used, the value of PLL3SRC must be 00." + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLRGE + description: "PLL3 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL3.\r This bit must be written before enabling the PLL3.\r 00-01-10: PLL3 input (ref3_ck) clock range frequency between 4 and 8 MHz" + bit_offset: 2 + bit_size: 2 + enum: PLLRGE + - name: PLLFRACEN + description: "PLL3 fractional latch enable\r Set and reset by software to latch the content of PLL3FRACN into the ΣΠmodulator.\r In order to latch the PLL3FRACN value into the ΣΠmodulator, PLL3FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL3FRACN into the modulator (see for details)." + bit_offset: 4 + bit_size: 1 + - name: PLLM + description: "Prescaler for PLL3\r Set and cleared by software to configure the prescaler of the PLL3. The VCO3 input frequency is PLL3 input clock frequency/PLL3M.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." + bit_offset: 8 + bit_size: 4 + enum: PLLM + - name: PLLPEN + description: "PLL3 DIVP divider output enable\r Set and reset by software to enable the pll3_p_ck output of the PLL3.\r To save power, PLL3PEN and PLL3P bits must be set to 0 when the pll3_p_ck is not used.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0)." + bit_offset: 16 + bit_size: 1 + - name: PLLQEN + description: "PLL3 DIVQ divider output enable\r Set and reset by software to enable the pll3_q_ck output of the PLL3.\r To save power, PLL3QEN and PLL3Q bits must be set to 0 when the pll3_q_ck is not used.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0)." + bit_offset: 17 + bit_size: 1 + - name: PLLREN + description: "PLL3 DIVR divider output enable\r Set and reset by software to enable the pll3_r_ck output of the PLL3.\r To save power, PLL3REN and PLL3R bits must be set to 0 when the pll3_r_ck is not used.\r This bit can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0)." + bit_offset: 18 + bit_size: 1 fieldset/PLL3DIVR: description: RCC PLL3 dividers configuration register fields: - - name: PLLN - description: "Multiplication factor for PLL3 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ...\r ...\r Others: reserved\r VCO output frequency = Fref3_ck x PLL3N, when fractional value 0 has been loaded into PLL3FRACN, with:\r PLL3N between 4 and 512\r input frequency Fref3_ck between 4 and 16MHz" - bit_offset: 0 - bit_size: 9 - - name: PLLP - description: "PLL3 DIVP division factor\r Set and reset by software to control the frequency of the pll3_p_ck clock.\r These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." - bit_offset: 9 - bit_size: 7 - - name: PLLQ - description: "PLL3 DIVQ division factor\r Set and reset by software to control the frequency of the pll3_q_ck clock.\r These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." - bit_offset: 16 - bit_size: 7 - - name: PLLR - description: "PLL3 DIVR division factor\r Set and reset by software to control the frequency of the pll3_r_ck clock.\r These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." - bit_offset: 24 - bit_size: 7 + - name: PLLN + description: "Multiplication factor for PLL3 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ...\r ...\r Others: reserved\r VCO output frequency = Fref3_ck x PLL3N, when fractional value 0 has been loaded into PLL3FRACN, with:\r PLL3N between 4 and 512\r input frequency Fref3_ck between 4 and 16MHz" + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: "PLL3 DIVP division factor\r Set and reset by software to control the frequency of the pll3_p_ck clock.\r These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: "PLL3 DIVQ division factor\r Set and reset by software to control the frequency of the pll3_q_ck clock.\r These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: "PLL3 DIVR division factor\r Set and reset by software to control the frequency of the pll3_r_ck clock.\r These bits can be written only when the PLL3 is disabled (PLL3ON = 0 and PLL3RDY = 0).\r ..." + bit_offset: 24 + bit_size: 7 fieldset/PLL3FRACR: description: RCC PLL3 fractional divider register fields: - - name: PLLFRACN - description: "Fractional part of the multiplication factor for PLL3 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL3 VCO.\r VCO output frequency = Fref3_ck x (PLL3N + (PLL3FRACN / 213)), with:\r PLL3N must be between 4 and 512.\r PLL3FRACN can be between 0 and 213 - 1.\r The input frequency Fref3_ck must be between 4 and 16 MHz.\r In order to change the FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r Set the bit PLL3FRACEN to 0.\r Write the new fractional value into PLL3FRACN.\r Set the bit PLL3FRACEN to 1." - bit_offset: 3 - bit_size: 13 + - name: PLLFRACN + description: "Fractional part of the multiplication factor for PLL3 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL3 VCO.\r VCO output frequency = Fref3_ck x (PLL3N + (PLL3FRACN / 213)), with:\r PLL3N must be between 4 and 512.\r PLL3FRACN can be between 0 and 213 - 1.\r The input frequency Fref3_ck must be between 4 and 16 MHz.\r In order to change the FRACN value on-the-fly even if the PLL is enabled, the application must proceed as follows:\r Set the bit PLL3FRACEN to 0.\r Write the new fractional value into PLL3FRACN.\r Set the bit PLL3FRACEN to 1." + bit_offset: 3 + bit_size: 13 fieldset/PRIVCFGR: description: RCC privilege configuration register fields: - - name: SPRIV - description: "RCC secure functions privilege configuration\r Set and reset by software. This bit can be written only by a secure privileged access." - bit_offset: 0 - bit_size: 1 - enum: PRIV - - name: NSPRIV - description: "RCC non-secure functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access, secure or non-secure." - bit_offset: 1 - bit_size: 1 - enum: PRIV + - name: SPRIV + description: "RCC secure functions privilege configuration\r Set and reset by software. This bit can be written only by a secure privileged access." + bit_offset: 0 + bit_size: 1 + enum: PRIV + - name: NSPRIV + description: "RCC non-secure functions privilege configuration\r Set and reset by software. This bit can be written only by privileged access, secure or non-secure." + bit_offset: 1 + bit_size: 1 + enum: PRIV fieldset/SECCFGR: description: RCC secure configuration register fields: - - name: HSISEC - description: "HSI clock configuration and status bits security\r Set and reset by software." - bit_offset: 0 - bit_size: 1 - enum: SECURITY - - name: HSESEC - description: "HSE clock configuration bits, status bits and HSE_CSS security\r Set and reset by software." - bit_offset: 1 - bit_size: 1 - enum: SECURITY - - name: MSISEC - description: "MSI clock configuration and status bits security\r Set and reset by software." - bit_offset: 2 - bit_size: 1 - enum: SECURITY - - name: LSISEC - description: "LSI clock configuration and status bits security\r Set and reset by software." - bit_offset: 3 - bit_size: 1 - enum: SECURITY - - name: LSESEC - description: "LSE clock configuration and status bits security\r Set and reset by software." - bit_offset: 4 - bit_size: 1 - enum: SECURITY - - name: SYSCLKSEC - description: "SYSCLK clock selection, STOPWUCK bit, clock output on MCO configuration security\r Set and reset by software." - bit_offset: 5 - bit_size: 1 - enum: SECURITY - - name: PRESCSEC - description: "AHBx/APBx prescaler configuration bits security\r Set and reset by software." - bit_offset: 6 - bit_size: 1 - enum: SECURITY - - name: PLLSEC - description: "PLL1 clock configuration and status bits security\r Set and reset by software." - bit_offset: 7 - bit_size: 1 - array: - len: 3 - stride: 1 - enum: SECURITY - - name: ICLKSEC - description: "intermediate clock source selection security\r Set and reset by software." - bit_offset: 10 - bit_size: 1 - enum: SECURITY - - name: HSI48SEC - description: "HSI48 clock configuration and status bits security\r Set and reset by software." - bit_offset: 11 - bit_size: 1 - enum: SECURITY - - name: RMVFSEC - description: "Remove reset flag security\r Set and reset by software." - bit_offset: 12 - bit_size: 1 - enum: SECURITY + - name: HSISEC + description: "HSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + enum: SECURITY + - name: HSESEC + description: "HSE clock configuration bits, status bits and HSE_CSS security\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + enum: SECURITY + - name: MSISEC + description: "MSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 2 + bit_size: 1 + enum: SECURITY + - name: LSISEC + description: "LSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + enum: SECURITY + - name: LSESEC + description: "LSE clock configuration and status bits security\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + enum: SECURITY + - name: SYSCLKSEC + description: "SYSCLK clock selection, STOPWUCK bit, clock output on MCO configuration security\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + enum: SECURITY + - name: PRESCSEC + description: "AHBx/APBx prescaler configuration bits security\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + enum: SECURITY + - name: PLLSEC + description: "PLL1 clock configuration and status bits security\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + array: + len: 3 + stride: 1 + enum: SECURITY + - name: ICLKSEC + description: "intermediate clock source selection security\r Set and reset by software." + bit_offset: 10 + bit_size: 1 + enum: SECURITY + - name: HSI48SEC + description: "HSI48 clock configuration and status bits security\r Set and reset by software." + bit_offset: 11 + bit_size: 1 + enum: SECURITY + - name: RMVFSEC + description: "Remove reset flag security\r Set and reset by software." + bit_offset: 12 + bit_size: 1 + enum: SECURITY fieldset/SRDAMR: description: RCC SmartRun domain peripheral autonomous mode register fields: - - name: SPI3AMEN - description: "SPI3 autonomous mode enable in Stop 0,1, 2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 5 - bit_size: 1 - - name: LPUART1AMEN - description: "LPUART1 autonomous mode enable in Stop 0,1, 2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 6 - bit_size: 1 - - name: I2C3AMEN - description: "I2C3 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 7 - bit_size: 1 - - name: LPTIM1AMEN - description: "LPTIM1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 11 - bit_size: 1 - - name: LPTIM3AMEN - description: "LPTIM3 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 12 - bit_size: 1 - - name: LPTIM4AMEN - description: "LPTIM4 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 13 - bit_size: 1 - - name: OPAMPAMEN - description: "OPAMP autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." - bit_offset: 14 - bit_size: 1 - - name: COMPAMEN - description: "COMP autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." - bit_offset: 15 - bit_size: 1 - - name: VREFAMEN - description: "VREFBUF autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." - bit_offset: 20 - bit_size: 1 - - name: RTCAPBAMEN - description: "RTC and TAMP autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 21 - bit_size: 1 - - name: ADC4AMEN - description: "ADC4 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 25 - bit_size: 1 - - name: LPGPIO1AMEN - description: "LPGPIO1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." - bit_offset: 26 - bit_size: 1 - - name: DAC1AMEN - description: "DAC1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 27 - bit_size: 1 - - name: LPDMA1AMEN - description: "LPDMA1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 28 - bit_size: 1 - - name: ADF1AMEN - description: "ADF1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." - bit_offset: 29 - bit_size: 1 - - name: SRAM4AMEN - description: "SRAM4 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." - bit_offset: 31 - bit_size: 1 + - name: SPI3AMEN + description: "SPI3 autonomous mode enable in Stop 0,1, 2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 + - name: LPUART1AMEN + description: "LPUART1 autonomous mode enable in Stop 0,1, 2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 6 + bit_size: 1 + - name: I2C3AMEN + description: "I2C3 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1AMEN + description: "LPTIM1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 11 + bit_size: 1 + - name: LPTIM3AMEN + description: "LPTIM3 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 12 + bit_size: 1 + - name: LPTIM4AMEN + description: "LPTIM4 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 13 + bit_size: 1 + - name: OPAMPAMEN + description: "OPAMP autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." + bit_offset: 14 + bit_size: 1 + - name: COMPAMEN + description: "COMP autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." + bit_offset: 15 + bit_size: 1 + - name: VREFAMEN + description: "VREFBUF autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." + bit_offset: 20 + bit_size: 1 + - name: RTCAPBAMEN + description: "RTC and TAMP autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 21 + bit_size: 1 + - name: ADC4AMEN + description: "ADC4 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 25 + bit_size: 1 + - name: LPGPIO1AMEN + description: "LPGPIO1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." + bit_offset: 26 + bit_size: 1 + - name: DAC1AMEN + description: "DAC1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 27 + bit_size: 1 + - name: LPDMA1AMEN + description: "LPDMA1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 28 + bit_size: 1 + - name: ADF1AMEN + description: "ADF1 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 29 + bit_size: 1 + - name: SRAM4AMEN + description: "SRAM4 autonomous mode enable in Stop 0,1,2 mode\r Set and cleared by software." + bit_offset: 31 + bit_size: 1 enum/ADCDACSEL: bit_size: 3 variants: - - name: HCLK - description: HCLK clock selected - value: 0 - - name: SYSCLK - description: SYSCLK selected - value: 1 - - name: PLL2_R - description: PLL2 R (pll2_r_ck) selected - value: 2 - - name: HSE - description: HSE clock selected - value: 3 - - name: HSI16 - description: HSI16 clock selected - value: 4 - - name: MSI_K - description: MSIK clock selected - value: 5 + - name: HCLK + description: HCLK clock selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: PLL2_R + description: PLL2 R (pll2_r_ck) selected + value: 2 + - name: HSE + description: HSE clock selected + value: 3 + - name: HSI16 + description: HSI16 clock selected + value: 4 + - name: MSI_K + description: MSIK clock selected + value: 5 enum/ADFSEL: bit_size: 3 variants: - - name: HCLK - description: HCLK selected - value: 0 - - name: PLL1_P - description: PLL1 P (pll1_p_ck) selected - value: 1 - - name: PLL3_Q - description: PLL3 Q (pll3_q_ck) selected - value: 2 - - name: AUDIOCLK - description: input pin AUDIOCLK selected - value: 3 - - name: MSIK - description: MSIK clock selected - value: 4 + - name: HCLK + description: HCLK selected + value: 0 + - name: PLL1_P + description: PLL1 P (pll1_p_ck) selected + value: 1 + - name: PLL3_Q + description: PLL3 Q (pll3_q_ck) selected + value: 2 + - name: AUDIOCLK + description: input pin AUDIOCLK selected + value: 3 + - name: MSIK + description: MSIK clock selected + value: 4 enum/DACSEL: bit_size: 1 variants: - - name: LSE - description: LSE selected - value: 0 - - name: LSI - description: LSI selected - value: 1 + - name: LSE + description: LSE selected + value: 0 + - name: LSI + description: LSI selected + value: 1 enum/DPRE: bit_size: 3 variants: - - name: NONE - description: DCLK not divided - value: 0 - - name: DIV2 - description: DCLK divided by 2 - value: 4 - - name: DIV4 - description: DCLK divided by 4 - value: 5 - - name: DIV8 - description: DCLK divided by 8 - value: 6 - - name: DIV16 - description: DCLK divided by 16 - value: 7 + - name: NONE + description: DCLK not divided + value: 0 + - name: DIV2 + description: DCLK divided by 2 + value: 4 + - name: DIV4 + description: DCLK divided by 4 + value: 5 + - name: DIV8 + description: DCLK divided by 8 + value: 6 + - name: DIV16 + description: DCLK divided by 16 + value: 7 enum/DSISEL: bit_size: 1 variants: - - name: PLL3_P - description: PLL3 “P” (pll3_p_ck) selected - value: 0 - - name: DCLK - description: DSI PHY PLL output selected - value: 1 + - name: PLL3_P + description: PLL3 “P” (pll3_p_ck) selected + value: 0 + - name: DCLK + description: DSI PHY PLL output selected + value: 1 enum/FDCANSEL: bit_size: 2 variants: - - name: HSE - description: HSE clock selected - value: 0 - - name: PLL1_Q - description: PLL1 Q (pll1_q_ck) selected - value: 1 - - name: PLL2_P - description: PLL2 P (pll2_p_ck) selected - value: 2 + - name: HSE + description: HSE clock selected + value: 0 + - name: PLL1_Q + description: PLL1 Q (pll1_q_ck) selected + value: 1 + - name: PLL2_P + description: PLL2 P (pll2_p_ck) selected + value: 2 enum/HPRE: bit_size: 4 variants: - - name: NONE - description: SYSCLK not divided - value: 0 - - name: DIV2 - description: SYSCLK divided by 2 - value: 8 - - name: DIV4 - description: SYSCLK divided by 4 - value: 9 - - name: DIV8 - description: SYSCLK divided by 8 - value: 10 - - name: DIV16 - description: SYSCLK divided by 16 - value: 11 - - name: DIV64 - description: SYSCLK divided by 64 - value: 12 - - name: DIV128 - description: SYSCLK divided by 128 - value: 13 - - name: DIV256 - description: SYSCLK divided by 256 - value: 14 - - name: DIV512 - description: SYSCLK divided by 512 - value: 15 + - name: NONE + description: SYSCLK not divided + value: 0 + - name: DIV2 + description: SYSCLK divided by 2 + value: 8 + - name: DIV4 + description: SYSCLK divided by 4 + value: 9 + - name: DIV8 + description: SYSCLK divided by 8 + value: 10 + - name: DIV16 + description: SYSCLK divided by 16 + value: 11 + - name: DIV64 + description: SYSCLK divided by 64 + value: 12 + - name: DIV128 + description: SYSCLK divided by 128 + value: 13 + - name: DIV256 + description: SYSCLK divided by 256 + value: 14 + - name: DIV512 + description: SYSCLK divided by 512 + value: 15 enum/HSEEXT: bit_size: 1 variants: - - name: ANALOG - description: external HSE clock analog mode - value: 0 - - name: DIGITAL - description: external HSE clock digital mode (through I/O Schmitt trigger) - value: 1 + - name: ANALOG + description: external HSE clock analog mode + value: 0 + - name: DIGITAL + description: external HSE clock digital mode (through I/O Schmitt trigger) + value: 1 enum/HSPISEL: bit_size: 2 variants: - - name: SYSCLK - description: SYSCLK selected - value: 0 - - name: PLL1_Q - description: "PLL1 “Q” (pll1_q_ck) selected, can be up to 200 MHz" - value: 1 - - name: PLL2_Q - description: "PLL2 “Q” (pll2_q_ck) selected, can be up to 200 MHz" - value: 2 - - name: PLL3_R - description: "PLL3 “R” (pll3_r_ck) selected, can be up to 200 MHz" - value: 3 + - name: SYSCLK + description: SYSCLK selected + value: 0 + - name: PLL1_Q + description: PLL1 “Q” (pll1_q_ck) selected, can be up to 200 MHz + value: 1 + - name: PLL2_Q + description: PLL2 “Q” (pll2_q_ck) selected, can be up to 200 MHz + value: 2 + - name: PLL3_R + description: PLL3 “R” (pll3_r_ck) selected, can be up to 200 MHz + value: 3 enum/ICLKSEL: bit_size: 2 variants: - - name: HSI48 - description: HSI48 clock selected - value: 0 - - name: PLL2_Q - description: PLL2 Q (pll2_q_ck) selected - value: 1 - - name: PLL1_Q - description: PLL1 Q (pll1_q_ck) selected - value: 2 - - name: MSIK - description: MSIK clock selected - value: 3 + - name: HSI48 + description: HSI48 clock selected + value: 0 + - name: PLL2_Q + description: PLL2 Q (pll2_q_ck) selected + value: 1 + - name: PLL1_Q + description: PLL1 Q (pll1_q_ck) selected + value: 2 + - name: MSIK + description: MSIK clock selected + value: 3 enum/ICSEL: bit_size: 2 variants: - - name: PCLK1 - description: PCLK1 selected - value: 0 - - name: SYSCLK - description: SYSCLK selected - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 - - name: MSIK - description: MSIK selected - value: 3 + - name: PCLK1 + description: PCLK1 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: MSIK + description: MSIK selected + value: 3 enum/LPTIMSEL: bit_size: 2 variants: - - name: PCLK1 - description: PCLK1 selected - value: 0 - - name: LSI - description: LSI selected - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 - - name: LSE - description: LSE selected - value: 3 + - name: PCLK1 + description: PCLK1 selected + value: 0 + - name: LSI + description: LSI selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 enum/LPUARTSEL: bit_size: 3 variants: - - name: PCLK3 - description: PCLK3 selected - value: 0 - - name: SYSCLK - description: SYSCLK selected - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 - - name: LSE - description: LSE selected - value: 3 - - name: MSIK - description: MSIK selected - value: 4 + - name: PCLK3 + description: PCLK3 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 + - name: MSIK + description: MSIK selected + value: 4 enum/LSCOSEL: bit_size: 1 variants: - - name: LSI - description: LSI clock selected - value: 0 - - name: LSE - description: LSE clock selected - value: 1 + - name: LSI + description: LSI clock selected + value: 0 + - name: LSE + description: LSE clock selected + value: 1 enum/LSEDRV: bit_size: 2 variants: - - name: LOW - description: "'Xtal mode lower driving capability" - value: 0 - - name: MEDIUM_LOW - description: "'Xtal mode medium-low driving capability" - value: 1 - - name: MEDIUM_HIGH - description: "'Xtal mode medium-high driving capability" - value: 2 - - name: HIGH - description: "'Xtal mode higher driving capability" - value: 3 + - name: LOW + description: '''Xtal mode lower driving capability' + value: 0 + - name: MEDIUM_LOW + description: '''Xtal mode medium-low driving capability' + value: 1 + - name: MEDIUM_HIGH + description: '''Xtal mode medium-high driving capability' + value: 2 + - name: HIGH + description: '''Xtal mode higher driving capability' + value: 3 enum/LSIPREDIV: bit_size: 1 variants: - - name: NONE - description: LSI not divided - value: 0 - - name: DIV_128 - description: LSI divided by 128 - value: 1 + - name: NONE + description: LSI not divided + value: 0 + - name: DIV_128 + description: LSI divided by 128 + value: 1 enum/LTDCSEL: bit_size: 1 variants: - - name: PLL3_R - description: PLL3 “R” (pll3_r_ck) selected - value: 0 - - name: PLL2_R - description: PLL2 “R” (pll2_r_ck) selected - value: 1 + - name: PLL3_R + description: PLL3 “R” (pll3_r_ck) selected + value: 0 + - name: PLL2_R + description: PLL2 “R” (pll2_r_ck) selected + value: 1 enum/MCOPRE: bit_size: 3 variants: - - name: NONE - description: MCO divided by 1 - value: 0 - - name: DIV2 - description: MCO divided by 2 - value: 1 - - name: DIV4 - description: MCO divided by 4 - value: 2 - - name: DIV8 - description: MCO divided by 8 - value: 3 - - name: DIV16 - description: MCO divided by 16 - value: 4 + - name: NONE + description: MCO divided by 1 + value: 0 + - name: DIV2 + description: MCO divided by 2 + value: 1 + - name: DIV4 + description: MCO divided by 4 + value: 2 + - name: DIV8 + description: MCO divided by 8 + value: 3 + - name: DIV16 + description: MCO divided by 16 + value: 4 enum/MCOSEL: bit_size: 4 variants: - - name: DISABLE - description: "MCO output disabled, no clock on MCO" - value: 0 - - name: SYSCLK - description: SYSCLK system clock selected - value: 1 - - name: MSIS - description: MSIS clock selected - value: 2 - - name: HSI16 - description: HSI16 clock selected - value: 3 - - name: HSE - description: HSE clock selected - value: 4 - - name: PLL1_R - description: Main PLL clock pll1_r_ck selected - value: 5 - - name: LSI - description: LSI clock selected - value: 6 - - name: LSE - description: LSE clock selected - value: 7 - - name: HSI48 - description: Internal HSI48 clock selected - value: 8 - - name: MSIK - description: MSIK clock selected - value: 9 + - name: DISABLE + description: MCO output disabled, no clock on MCO + value: 0 + - name: SYSCLK + description: SYSCLK system clock selected + value: 1 + - name: MSIS + description: MSIS clock selected + value: 2 + - name: HSI16 + description: HSI16 clock selected + value: 3 + - name: HSE + description: HSE clock selected + value: 4 + - name: PLL1_R + description: Main PLL clock pll1_r_ck selected + value: 5 + - name: LSI + description: LSI clock selected + value: 6 + - name: LSE + description: LSE clock selected + value: 7 + - name: HSI48 + description: Internal HSI48 clock selected + value: 8 + - name: MSIK + description: MSIK clock selected + value: 9 enum/MDFSEL: bit_size: 3 variants: - - name: HCLK - description: HCLK selected - value: 0 - - name: PLL1_P - description: PLL1 P (pll1_p_ck) selected - value: 1 - - name: PLL3_Q - description: PLL3 Q (pll3_q_ck) selected - value: 2 - - name: AUDIOCLK - description: input pin AUDIOCLK selected - value: 3 - - name: MSIK - description: MSIK clock selected - value: 4 + - name: HCLK + description: HCLK selected + value: 0 + - name: PLL1_P + description: PLL1 P (pll1_p_ck) selected + value: 1 + - name: PLL3_Q + description: PLL3 Q (pll3_q_ck) selected + value: 2 + - name: AUDIOCLK + description: input pin AUDIOCLK selected + value: 3 + - name: MSIK + description: MSIK clock selected + value: 4 enum/MSIBIAS: bit_size: 1 variants: - - name: CONTINUOUS - description: MSI bias continuous mode (clock accuracy fast settling time) - value: 0 - - name: SAMPLING - description: MSI bias sampling mode (ultra-low-power mode) - value: 1 + - name: CONTINUOUS + description: MSI bias continuous mode (clock accuracy fast settling time) + value: 0 + - name: SAMPLING + description: MSI bias sampling mode (ultra-low-power mode) + value: 1 enum/MSIPLLFAST: bit_size: 1 variants: - - name: NORMAL - description: MSI PLL normal start-up - value: 0 - - name: FAST - description: MSI PLL fast start-up - value: 1 + - name: NORMAL + description: MSI PLL normal start-up + value: 0 + - name: FAST + description: MSI PLL fast start-up + value: 1 enum/MSIPLLSEL: bit_size: 1 variants: - - name: MSIK - description: PLL mode applied to MSIK (MSI kernel) clock output - value: 0 - - name: MSIS - description: PLL mode applied to MSIS (MSI system) clock output - value: 1 + - name: MSIK + description: PLL mode applied to MSIK (MSI kernel) clock output + value: 0 + - name: MSIS + description: PLL mode applied to MSIS (MSI system) clock output + value: 1 enum/MSIRANGE: bit_size: 4 variants: - - name: RANGE_48MHZ - description: range 0 around 48 MHz - value: 0 - - name: RANGE_24MHZ - description: range 1 around 24 MHz - value: 1 - - name: RANGE_16MHZ - description: range 2 around 16 MHz - value: 2 - - name: RANGE_12MHZ - description: range 3 around 12 MHz - value: 3 - - name: RANGE_4MHZ - description: range 4 around 4 MHz (reset value) - value: 4 - - name: RANGE_2MHZ - description: range 5 around 2 MHz - value: 5 - - name: RANGE_1_33MHZ - description: range 6 around 1.33 MHz - value: 6 - - name: RANGE_1MHZ - description: range 7 around 1 MHz - value: 7 - - name: RANGE_3_072MHZ - description: range 8 around 3.072 MHz - value: 8 - - name: RANGE_1_536MHZ - description: range 9 around 1.536 MHz - value: 9 - - name: RANGE_1_024MHZ - description: range 10 around 1.024 MHz - value: 10 - - name: RANGE_768KHZ - description: range 11 around 768 kHz - value: 11 - - name: RANGE_400KHZ - description: range 12 around 400 kHz - value: 12 - - name: RANGE_200KHZ - description: range 13 around 200 kHz - value: 13 - - name: RANGE_133KHZ - description: range 14 around 133 kHz - value: 14 - - name: RANGE_100KHZ - description: range 15 around 100 kHz - value: 15 + - name: RANGE_48MHZ + description: range 0 around 48 MHz + value: 0 + - name: RANGE_24MHZ + description: range 1 around 24 MHz + value: 1 + - name: RANGE_16MHZ + description: range 2 around 16 MHz + value: 2 + - name: RANGE_12MHZ + description: range 3 around 12 MHz + value: 3 + - name: RANGE_4MHZ + description: range 4 around 4 MHz (reset value) + value: 4 + - name: RANGE_2MHZ + description: range 5 around 2 MHz + value: 5 + - name: RANGE_1_33MHZ + description: range 6 around 1.33 MHz + value: 6 + - name: RANGE_1MHZ + description: range 7 around 1 MHz + value: 7 + - name: RANGE_3_072MHZ + description: range 8 around 3.072 MHz + value: 8 + - name: RANGE_1_536MHZ + description: range 9 around 1.536 MHz + value: 9 + - name: RANGE_1_024MHZ + description: range 10 around 1.024 MHz + value: 10 + - name: RANGE_768KHZ + description: range 11 around 768 kHz + value: 11 + - name: RANGE_400KHZ + description: range 12 around 400 kHz + value: 12 + - name: RANGE_200KHZ + description: range 13 around 200 kHz + value: 13 + - name: RANGE_133KHZ + description: range 14 around 133 kHz + value: 14 + - name: RANGE_100KHZ + description: range 15 around 100 kHz + value: 15 enum/MSIRGSEL: bit_size: 1 variants: - - name: RCC_CSR - description: "MSIS/MSIK ranges provided by MSISSRANGE[3:0] and MSIKSRANGE[3:0] in RCC_CSR" - value: 0 - - name: RCC_ICSCR1 - description: "MSIS/MSIK ranges provided by MSISRANGE[3:0] and MSIKRANGE[3:0] in RCC_ICSCR1" - value: 1 + - name: RCC_CSR + description: MSIS/MSIK ranges provided by MSISSRANGE[3:0] and MSIKSRANGE[3:0] in RCC_CSR + value: 0 + - name: RCC_ICSCR1 + description: MSIS/MSIK ranges provided by MSISRANGE[3:0] and MSIKRANGE[3:0] in RCC_ICSCR1 + value: 1 enum/MSIXSRANGE: bit_size: 4 variants: - - name: RANGE_4MHZ - description: range 4 around 4M Hz (reset value) - value: 4 - - name: RANGE_2MHZ - description: range 5 around 2 MHz - value: 5 - - name: RANGE_1_5MHZ - description: range 6 around 1.5 MHz - value: 6 - - name: RANGE_1MHZ - description: range 7 around 1 MHz - value: 7 - - name: RANGE_3_072MHZ - description: range 8 around 3.072 MHz - value: 8 + - name: RANGE_4MHZ + description: range 4 around 4M Hz (reset value) + value: 4 + - name: RANGE_2MHZ + description: range 5 around 2 MHz + value: 5 + - name: RANGE_1_5MHZ + description: range 6 around 1.5 MHz + value: 6 + - name: RANGE_1MHZ + description: range 7 around 1 MHz + value: 7 + - name: RANGE_3_072MHZ + description: range 8 around 3.072 MHz + value: 8 enum/OCTOSPISEL: bit_size: 2 variants: - - name: SYSCLK - description: SYSCLK selected - value: 0 - - name: MSIK - description: MSIK selected - value: 1 - - name: PLL1_Q - description: "PLL1 Q (pll1_q_ck) selected, can be up to 200 MHz" - value: 2 - - name: PLL2_Q - description: "PLL2 Q (pll2_q_ck) selected, can be up to 200 MHz" - value: 3 + - name: SYSCLK + description: SYSCLK selected + value: 0 + - name: MSIK + description: MSIK selected + value: 1 + - name: PLL1_Q + description: PLL1 Q (pll1_q_ck) selected, can be up to 200 MHz + value: 2 + - name: PLL2_Q + description: PLL2 Q (pll2_q_ck) selected, can be up to 200 MHz + value: 3 enum/OTGHSSEL: bit_size: 2 variants: - - name: HSE - description: HSE selected - value: 0 - - name: PLL1_P - description: "PLL1 “P” (pll1_q_ck) selected," - value: 1 - - name: HSE_DIV2 - description: HSE/2 selected - value: 2 - - name: PLL1_P_DIV2 - description: PLL1 “P” divided by 2 (pll1_p_ck/2) selected - value: 3 + - name: HSE + description: HSE selected + value: 0 + - name: PLL1_P + description: PLL1 “P” (pll1_q_ck) selected, + value: 1 + - name: HSE_DIV2 + description: HSE/2 selected + value: 2 + - name: PLL1_P_DIV2 + description: PLL1 “P” divided by 2 (pll1_p_ck/2) selected + value: 3 enum/PLLM: bit_size: 4 variants: - - name: BYPASS - description: division by 1 (bypass) - value: 0 - - name: DIV2 - description: division by 2 - value: 1 - - name: DIV3 - description: division by 3 - value: 2 - - name: DIV16 - description: division by 16 - value: 15 + - name: BYPASS + description: division by 1 (bypass) + value: 0 + - name: DIV2 + description: division by 2 + value: 1 + - name: DIV3 + description: division by 3 + value: 2 + - name: DIV16 + description: division by 16 + value: 15 enum/PLLMBOOST: bit_size: 4 variants: - - name: BYPASS - description: division by 1 (bypass) - value: 0 - - name: DIV2 - description: division by 2 - value: 1 - - name: DIV4 - description: division by 4 - value: 2 - - name: DIV6 - description: division by 6 - value: 3 - - name: DIV8 - description: division by 8 - value: 4 - - name: DIV10 - description: division by 10 - value: 5 - - name: DIV12 - description: division by 12 - value: 6 - - name: DIV14 - description: division by 14 - value: 7 - - name: DIV16 - description: division by 16 - value: 8 + - name: BYPASS + description: division by 1 (bypass) + value: 0 + - name: DIV2 + description: division by 2 + value: 1 + - name: DIV4 + description: division by 4 + value: 2 + - name: DIV6 + description: division by 6 + value: 3 + - name: DIV8 + description: division by 8 + value: 4 + - name: DIV10 + description: division by 10 + value: 5 + - name: DIV12 + description: division by 12 + value: 6 + - name: DIV14 + description: division by 14 + value: 7 + - name: DIV16 + description: division by 16 + value: 8 enum/PLLRGE: bit_size: 2 variants: - - name: FREQ_4TO8MHZ - description: PLL2 input (ref2_ck) clock range frequency between 4 and 8 MHz - value: 0 - - name: FREQ_8TO16MHZ - description: PLL2 input (ref2_ck) clock range frequency between 8 and 16 MHz - value: 3 + - name: FREQ_4TO8MHZ + description: PLL2 input (ref2_ck) clock range frequency between 4 and 8 MHz + value: 0 + - name: FREQ_8TO16MHZ + description: PLL2 input (ref2_ck) clock range frequency between 8 and 16 MHz + value: 3 enum/PLLSRC: bit_size: 2 variants: - - name: NONE - description: No clock sent to PLL3 - value: 0 - - name: MSIS - description: MSIS clock selected as PLL3 clock entry - value: 1 - - name: HSI16 - description: HSI16 clock selected as PLL3 clock entry - value: 2 - - name: HSE - description: HSE clock selected as PLL3 clock entry - value: 3 + - name: NONE + description: No clock sent to PLL3 + value: 0 + - name: MSIS + description: MSIS clock selected as PLL3 clock entry + value: 1 + - name: HSI16 + description: HSI16 clock selected as PLL3 clock entry + value: 2 + - name: HSE + description: HSE clock selected as PLL3 clock entry + value: 3 enum/PPRE: bit_size: 3 variants: - - name: NONE - description: HCLK not divided - value: 0 - - name: DIV2 - description: HCLK divided by 2 - value: 4 - - name: DIV4 - description: HCLK divided by 4 - value: 5 - - name: DIV8 - description: HCLK divided by 8 - value: 6 - - name: DIV16 - description: HCLK divided by 16 - value: 7 + - name: NONE + description: HCLK not divided + value: 0 + - name: DIV2 + description: HCLK divided by 2 + value: 4 + - name: DIV4 + description: HCLK divided by 4 + value: 5 + - name: DIV8 + description: HCLK divided by 8 + value: 6 + - name: DIV16 + description: HCLK divided by 16 + value: 7 enum/PRIV: bit_size: 1 variants: - - name: UNPRIVILEGED - description: Read and write to secure functions can be done by privileged or unprivileged access. - value: 0 - - name: PRIVILEGED - description: Read and write to secure functions can be done by privileged access only. - value: 1 + - name: UNPRIVILEGED + description: Read and write to secure functions can be done by privileged or unprivileged access. + value: 0 + - name: PRIVILEGED + description: Read and write to secure functions can be done by privileged access only. + value: 1 enum/RNGSEL: bit_size: 2 variants: - - name: HSI48 - description: HSI48 selected - value: 0 - - name: HSI48_DIV2 - description: "HSI48 / 2 selected, can be used in Range 4" - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 + - name: HSI48 + description: HSI48 selected + value: 0 + - name: HSI48_DIV2 + description: HSI48 / 2 selected, can be used in Range 4 + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 enum/RTCSEL: bit_size: 2 variants: - - name: NONE - description: No clock selected - value: 0 - - name: LSE - description: LSE oscillator clock selected - value: 1 - - name: LSI - description: LSI oscillator clock selected - value: 2 - - name: HSE - description: HSE oscillator clock divided by 32 selected - value: 3 + - name: NONE + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 enum/SAESSEL: bit_size: 1 variants: - - name: SHSI - description: SHSI selected - value: 0 - - name: SHSI_DIV2 - description: "SHSI / 2 selected, can be used in Range 4" - value: 1 + - name: SHSI + description: SHSI selected + value: 0 + - name: SHSI_DIV2 + description: SHSI / 2 selected, can be used in Range 4 + value: 1 enum/SAISEL: bit_size: 3 variants: - - name: PLL2_P - description: PLL2 P (pll2_p_ck) selected - value: 0 - - name: PLL3_P - description: PLL3 P (pll3_p_ck) selected - value: 1 - - name: PLL1_P - description: PLL1 P (pll1_p_ck) selected - value: 2 - - name: AUDIOCLK - description: input pin AUDIOCLK selected - value: 3 - - name: HSI16 - description: HSI16 clock selected - value: 4 + - name: PLL2_P + description: PLL2 P (pll2_p_ck) selected + value: 0 + - name: PLL3_P + description: PLL3 P (pll3_p_ck) selected + value: 1 + - name: PLL1_P + description: PLL1 P (pll1_p_ck) selected + value: 2 + - name: AUDIOCLK + description: input pin AUDIOCLK selected + value: 3 + - name: HSI16 + description: HSI16 clock selected + value: 4 enum/SDMMCSEL: bit_size: 1 variants: - - name: ICLK - description: ICLK clock selected - value: 0 - - name: PLL1_P - description: "PLL1 P (pll1_p_ck) selected, in case higher than 48 MHz is needed (for SDR50 mode)" - value: 1 + - name: ICLK + description: ICLK clock selected + value: 0 + - name: PLL1_P + description: PLL1 P (pll1_p_ck) selected, in case higher than 48 MHz is needed (for SDR50 mode) + value: 1 enum/SECURITY: bit_size: 1 variants: - - name: NON_SECURE - description: non secure - value: 0 - - name: SECURE - description: secure - value: 1 + - name: NON_SECURE + description: non secure + value: 0 + - name: SECURE + description: secure + value: 1 enum/SPISEL: bit_size: 2 variants: - - name: PCLK2 - description: PCLK2 selected - value: 0 - - name: SYSCLK - description: SYSCLK selected - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 - - name: MSIK - description: MSIK selected - value: 3 + - name: PCLK2 + description: PCLK2 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: MSIK + description: MSIK selected + value: 3 enum/STOPKERWUCK: bit_size: 1 variants: - - name: MSIK - description: MSIK oscillator automatically enabled when exiting Stop mode - value: 0 - - name: HSI16 - description: HSI16 oscillator automatically enabled when exiting Stop mode - value: 1 + - name: MSIK + description: MSIK oscillator automatically enabled when exiting Stop mode + value: 0 + - name: HSI16 + description: HSI16 oscillator automatically enabled when exiting Stop mode + value: 1 enum/STOPWUCK: bit_size: 1 variants: - - name: MSIS - description: MSIS oscillator selected as wakeup from stop clock and CSS backup clock - value: 0 - - name: HSI16 - description: HSI16 oscillator selected as wakeup from stop clock and CSS backup clock - value: 1 + - name: MSIS + description: MSIS oscillator selected as wakeup from stop clock and CSS backup clock + value: 0 + - name: HSI16 + description: HSI16 oscillator selected as wakeup from stop clock and CSS backup clock + value: 1 enum/SW: bit_size: 2 variants: - - name: MSIS - description: MSIS selected as system clock - value: 0 - - name: HSI16 - description: HSI16 selected as system clock - value: 1 - - name: HSE - description: HSE selected as system clock - value: 2 - - name: PLL1R - description: PLL pll1_r_ck selected as system clock - value: 3 + - name: MSIS + description: MSIS selected as system clock + value: 0 + - name: HSI16 + description: HSI16 selected as system clock + value: 1 + - name: HSE + description: HSE selected as system clock + value: 2 + - name: PLL1R + description: PLL pll1_r_ck selected as system clock + value: 3 enum/SYSTICKSEL: bit_size: 2 variants: - - name: HCLK_DIV8 - description: HCLK/8 selected - value: 0 - - name: LSI - description: LSI selected - value: 1 - - name: LSE - description: LSE selected - value: 2 + - name: HCLK_DIV8 + description: HCLK/8 selected + value: 0 + - name: LSI + description: LSI selected + value: 1 + - name: LSE + description: LSE selected + value: 2 enum/TIMICSEL: bit_size: 3 variants: - - name: NONE - description: "No sources can be selected by TIM16, TIM17 and LPTIM2 as internal input capture" - value: 0 - - name: HSI256_MSIS1024_MSIS4 - description: "HSI/256, MSIS/1024 and MSIS/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture" - value: 4 - - name: HSI256_MSIS1024_MSIK4 - description: "HSI/256, MSIS/1024 and MSIK/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture" - value: 5 - - name: HSI256_MSIK1024_MSIS4 - description: "HSI/256, MSIK/1024 and MSIS/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture" - value: 6 - - name: HSI256_MSIK1024_MSIK4 - description: "HSI/256, MSIK/1024 and MSIK/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture" - value: 7 + - name: NONE + description: No sources can be selected by TIM16, TIM17 and LPTIM2 as internal input capture + value: 0 + - name: HSI256_MSIS1024_MSIS4 + description: HSI/256, MSIS/1024 and MSIS/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture + value: 4 + - name: HSI256_MSIS1024_MSIK4 + description: HSI/256, MSIS/1024 and MSIK/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture + value: 5 + - name: HSI256_MSIK1024_MSIS4 + description: HSI/256, MSIK/1024 and MSIS/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture + value: 6 + - name: HSI256_MSIK1024_MSIK4 + description: HSI/256, MSIK/1024 and MSIK/4 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture + value: 7 enum/UARTSEL: bit_size: 2 variants: - - name: PCLK1 - description: PCLK1 selected - value: 0 - - name: SYSCLK - description: SYSCLK selected - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 - - name: LSE - description: LSE selected - value: 3 + - name: PCLK1 + description: PCLK1 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 enum/USARTSEL: bit_size: 2 variants: - - name: PCLK2 - description: PCLK2 selected - value: 0 - - name: SYSCLK - description: SYSCLK selected - value: 1 - - name: HSI16 - description: HSI16 selected - value: 2 - - name: LSE - description: LSE selected - value: 3 + - name: PCLK2 + description: PCLK2 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 diff --git a/data/registers/rcc_wb.yaml b/data/registers/rcc_wb.yaml index 6739c08..b0f07d2 100644 --- a/data/registers/rcc_wb.yaml +++ b/data/registers/rcc_wb.yaml @@ -1,1638 +1,1637 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLCFGR - description: PLLSYS configuration register - byte_offset: 12 - fieldset: PLLCFGR - - name: PLLSAI1CFGR - description: PLLSAI1 configuration register - byte_offset: 16 - fieldset: PLLSAI1CFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: SMPSCR - description: Step Down converter control register - byte_offset: 36 - fieldset: SMPSCR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 40 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 44 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 48 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: APB1 peripheral reset register 1 - byte_offset: 56 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: APB1 peripheral reset register 2 - byte_offset: 60 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 64 - fieldset: APB2RSTR - - name: APB3RSTR - description: APB3 peripheral reset register - byte_offset: 68 - fieldset: APB3RSTR - - name: AHB1ENR - description: AHB1 peripheral clock enable register - byte_offset: 72 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 76 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 80 - fieldset: AHB3ENR - - name: APB1ENR1 - description: APB1ENR1 - byte_offset: 88 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: APB1 peripheral clock enable register 2 - byte_offset: 92 - fieldset: APB1ENR2 - - name: APB2ENR - description: APB2ENR - byte_offset: 96 - fieldset: APB2ENR - - name: AHB1SMENR - description: AHB1 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 104 - fieldset: AHB1SMENR - - name: AHB2SMENR - description: AHB2 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 108 - fieldset: AHB2SMENR - - name: AHB3SMENR - description: AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 112 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: APB1SMENR1 - byte_offset: 120 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 - byte_offset: 124 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: APB2SMENR - byte_offset: 128 - fieldset: APB2SMENR - - name: CCIPR - description: CCIPR - byte_offset: 136 - fieldset: CCIPR - - name: BDCR - description: BDCR - byte_offset: 144 - fieldset: BDCR - - name: CSR - description: CSR - byte_offset: 148 - fieldset: CSR - - name: CRRCR - description: Clock recovery RC register - byte_offset: 152 - fieldset: CRRCR - - name: HSECR - description: Clock HSE register - byte_offset: 156 - fieldset: HSECR - - name: EXTCFGR - description: Extended clock recovery register - byte_offset: 264 - fieldset: EXTCFGR - - name: C2AHB1ENR - description: CPU2 AHB1 peripheral clock enable register - byte_offset: 328 - fieldset: C2AHB1ENR - - name: C2AHB2ENR - description: CPU2 AHB2 peripheral clock enable register - byte_offset: 332 - fieldset: C2AHB2ENR - - name: C2AHB3ENR - description: CPU2 AHB3 peripheral clock enable register - byte_offset: 336 - fieldset: C2AHB3ENR - - name: C2APB1ENR1 - description: CPU2 APB1ENR1 - byte_offset: 344 - fieldset: C2APB1ENR1 - - name: C2APB1ENR2 - description: CPU2 APB1 peripheral clock enable register 2 - byte_offset: 348 - fieldset: C2APB1ENR2 - - name: C2APB2ENR - description: CPU2 APB2ENR - byte_offset: 352 - fieldset: C2APB2ENR - - name: C2APB3ENR - description: CPU2 APB3ENR - byte_offset: 356 - fieldset: C2APB3ENR - - name: C2AHB1SMENR - description: CPU2 AHB1 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 360 - fieldset: C2AHB1SMENR - - name: C2AHB2SMENR - description: CPU2 AHB2 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 364 - fieldset: C2AHB2SMENR - - name: C2AHB3SMENR - description: CPU2 AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 368 - fieldset: C2AHB3SMENR - - name: C2APB1SMENR1 - description: CPU2 APB1SMENR1 - byte_offset: 376 - fieldset: C2APB1SMENR1 - - name: C2APB1SMENR2 - description: CPU2 APB1 peripheral clocks enable in Sleep and Stop modes register 2 - byte_offset: 380 - fieldset: C2APB1SMENR2 - - name: C2APB2SMENR - description: CPU2 APB2SMENR - byte_offset: 384 - fieldset: C2APB2SMENR - - name: C2APB3SMENR - description: CPU2 APB3SMENR - byte_offset: 388 - fieldset: C2APB3SMENR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLCFGR + description: PLLSYS configuration register + byte_offset: 12 + fieldset: PLLCFGR + - name: PLLSAI1CFGR + description: PLLSAI1 configuration register + byte_offset: 16 + fieldset: PLLSAI1CFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: SMPSCR + description: Step Down converter control register + byte_offset: 36 + fieldset: SMPSCR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 40 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 44 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 48 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: APB1 peripheral reset register 1 + byte_offset: 56 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: APB1 peripheral reset register 2 + byte_offset: 60 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 64 + fieldset: APB2RSTR + - name: APB3RSTR + description: APB3 peripheral reset register + byte_offset: 68 + fieldset: APB3RSTR + - name: AHB1ENR + description: AHB1 peripheral clock enable register + byte_offset: 72 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 76 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 80 + fieldset: AHB3ENR + - name: APB1ENR1 + description: APB1ENR1 + byte_offset: 88 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: APB1 peripheral clock enable register 2 + byte_offset: 92 + fieldset: APB1ENR2 + - name: APB2ENR + description: APB2ENR + byte_offset: 96 + fieldset: APB2ENR + - name: AHB1SMENR + description: AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 104 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: AHB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 108 + fieldset: AHB2SMENR + - name: AHB3SMENR + description: AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 112 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: APB1SMENR1 + byte_offset: 120 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 + byte_offset: 124 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: APB2SMENR + byte_offset: 128 + fieldset: APB2SMENR + - name: CCIPR + description: CCIPR + byte_offset: 136 + fieldset: CCIPR + - name: BDCR + description: BDCR + byte_offset: 144 + fieldset: BDCR + - name: CSR + description: CSR + byte_offset: 148 + fieldset: CSR + - name: CRRCR + description: Clock recovery RC register + byte_offset: 152 + fieldset: CRRCR + - name: HSECR + description: Clock HSE register + byte_offset: 156 + fieldset: HSECR + - name: EXTCFGR + description: Extended clock recovery register + byte_offset: 264 + fieldset: EXTCFGR + - name: C2AHB1ENR + description: CPU2 AHB1 peripheral clock enable register + byte_offset: 328 + fieldset: C2AHB1ENR + - name: C2AHB2ENR + description: CPU2 AHB2 peripheral clock enable register + byte_offset: 332 + fieldset: C2AHB2ENR + - name: C2AHB3ENR + description: CPU2 AHB3 peripheral clock enable register + byte_offset: 336 + fieldset: C2AHB3ENR + - name: C2APB1ENR1 + description: CPU2 APB1ENR1 + byte_offset: 344 + fieldset: C2APB1ENR1 + - name: C2APB1ENR2 + description: CPU2 APB1 peripheral clock enable register 2 + byte_offset: 348 + fieldset: C2APB1ENR2 + - name: C2APB2ENR + description: CPU2 APB2ENR + byte_offset: 352 + fieldset: C2APB2ENR + - name: C2APB3ENR + description: CPU2 APB3ENR + byte_offset: 356 + fieldset: C2APB3ENR + - name: C2AHB1SMENR + description: CPU2 AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 360 + fieldset: C2AHB1SMENR + - name: C2AHB2SMENR + description: CPU2 AHB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 364 + fieldset: C2AHB2SMENR + - name: C2AHB3SMENR + description: CPU2 AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 368 + fieldset: C2AHB3SMENR + - name: C2APB1SMENR1 + description: CPU2 APB1SMENR1 + byte_offset: 376 + fieldset: C2APB1SMENR1 + - name: C2APB1SMENR2 + description: CPU2 APB1 peripheral clocks enable in Sleep and Stop modes register 2 + byte_offset: 380 + fieldset: C2APB1SMENR2 + - name: C2APB2SMENR + description: CPU2 APB2SMENR + byte_offset: 384 + fieldset: C2APB2SMENR + - name: C2APB3SMENR + description: CPU2 APB3SMENR + byte_offset: 388 + fieldset: C2APB3SMENR fieldset/AHB1ENR: description: AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: DMAMUX clock enable - bit_offset: 2 - bit_size: 1 - - name: CRCEN - description: CPU1 CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: TSCEN - description: Touch Sensing Controller clock enable - bit_offset: 16 - bit_size: 1 + - name: DMA1EN + description: DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: DMAMUX clock enable + bit_offset: 2 + bit_size: 1 + - name: CRCEN + description: CPU1 CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: TSCEN + description: Touch Sensing Controller clock enable + bit_offset: 16 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1RST - description: DMAMUX reset - bit_offset: 2 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 - - name: TSCRST - description: Touch Sensing Controller reset - bit_offset: 16 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1RST + description: DMAMUX reset + bit_offset: 2 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 + - name: TSCRST + description: Touch Sensing Controller reset + bit_offset: 16 + bit_size: 1 fieldset/AHB1SMENR: description: AHB1 peripheral clocks enable in Sleep and Stop modes register fields: - - name: DMA1SMEN - description: CPU1 DMA1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: CPU1 DMA2 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: CPU1 DMAMUX clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: SRAM1SMEN - description: CPU1 SRAM1 interface clocks enable during Sleep and Stop modes - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CPU1 CRCSMEN - bit_offset: 12 - bit_size: 1 - - name: TSCSMEN - description: CPU1 Touch Sensing Controller clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 + - name: DMA1SMEN + description: CPU1 DMA1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: CPU1 DMA2 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: CPU1 DMAMUX clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: SRAM1SMEN + description: CPU1 SRAM1 interface clocks enable during Sleep and Stop modes + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CPU1 CRCSMEN + bit_offset: 12 + bit_size: 1 + - name: TSCSMEN + description: CPU1 Touch Sensing Controller clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOHEN - description: IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: ADCEN - description: ADC clock enable - bit_offset: 13 - bit_size: 1 - - name: AES1EN - description: AES1 accelerator clock enable - bit_offset: 16 - bit_size: 1 + - name: GPIOAEN + description: IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOHEN + description: IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: ADCEN + description: ADC clock enable + bit_offset: 13 + bit_size: 1 + - name: AES1EN + description: AES1 accelerator clock enable + bit_offset: 16 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIODRST - description: IO port D reset - bit_offset: 3 - bit_size: 1 - - name: GPIOERST - description: IO port E reset - bit_offset: 4 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 - - name: ADCRST - description: ADC reset - bit_offset: 13 - bit_size: 1 - - name: AES1RST - description: AES1 hardware accelerator reset - bit_offset: 16 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIODRST + description: IO port D reset + bit_offset: 3 + bit_size: 1 + - name: GPIOERST + description: IO port E reset + bit_offset: 4 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 + - name: ADCRST + description: ADC reset + bit_offset: 13 + bit_size: 1 + - name: AES1RST + description: AES1 hardware accelerator reset + bit_offset: 16 + bit_size: 1 fieldset/AHB2SMENR: description: AHB2 peripheral clocks enable in Sleep and Stop modes register fields: - - name: GPIOASMEN - description: CPU1 IO port A clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: CPU1 IO port B clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: CPU1 IO port C clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: CPU1 IO port D clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: CPU1 IO port E clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: GPIOHSMEN - description: CPU1 IO port H clocks enable during Sleep and Stop modes - bit_offset: 7 - bit_size: 1 - - name: ADCFSSMEN - description: CPU1 ADC clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: AES1SMEN - description: CPU1 AES1 accelerator clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 + - name: GPIOASMEN + description: CPU1 IO port A clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: CPU1 IO port B clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: CPU1 IO port C clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: CPU1 IO port D clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: CPU1 IO port E clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: GPIOHSMEN + description: CPU1 IO port H clocks enable during Sleep and Stop modes + bit_offset: 7 + bit_size: 1 + - name: ADCFSSMEN + description: CPU1 ADC clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: AES1SMEN + description: CPU1 AES1 accelerator clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: QUADSPIEN - description: QUADSPIEN - bit_offset: 8 - bit_size: 1 - - name: PKAEN - description: PKAEN - bit_offset: 16 - bit_size: 1 - - name: AES2EN - description: AES2EN - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: RNGEN - bit_offset: 18 - bit_size: 1 - - name: HSEMEN - description: HSEMEN - bit_offset: 19 - bit_size: 1 - - name: IPCCEN - description: IPCCEN - bit_offset: 20 - bit_size: 1 - - name: FLASHEN - description: FLASHEN - bit_offset: 25 - bit_size: 1 + - name: QUADSPIEN + description: QUADSPIEN + bit_offset: 8 + bit_size: 1 + - name: PKAEN + description: PKAEN + bit_offset: 16 + bit_size: 1 + - name: AES2EN + description: AES2EN + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: RNGEN + bit_offset: 18 + bit_size: 1 + - name: HSEMEN + description: HSEMEN + bit_offset: 19 + bit_size: 1 + - name: IPCCEN + description: IPCCEN + bit_offset: 20 + bit_size: 1 + - name: FLASHEN + description: FLASHEN + bit_offset: 25 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: QSPIRST - description: Quad SPI memory interface reset - bit_offset: 8 - bit_size: 1 - - name: PKARST - description: PKA interface reset - bit_offset: 16 - bit_size: 1 - - name: AES2RST - description: AES2 interface reset - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: RNG interface reset - bit_offset: 18 - bit_size: 1 - - name: HSEMRST - description: HSEM interface reset - bit_offset: 19 - bit_size: 1 - - name: IPCCRST - description: IPCC interface reset - bit_offset: 20 - bit_size: 1 - - name: FLASHRST - description: Flash interface reset - bit_offset: 25 - bit_size: 1 + - name: QSPIRST + description: Quad SPI memory interface reset + bit_offset: 8 + bit_size: 1 + - name: PKARST + description: PKA interface reset + bit_offset: 16 + bit_size: 1 + - name: AES2RST + description: AES2 interface reset + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: RNG interface reset + bit_offset: 18 + bit_size: 1 + - name: HSEMRST + description: HSEM interface reset + bit_offset: 19 + bit_size: 1 + - name: IPCCRST + description: IPCC interface reset + bit_offset: 20 + bit_size: 1 + - name: FLASHRST + description: Flash interface reset + bit_offset: 25 + bit_size: 1 fieldset/AHB3SMENR: description: AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: QSPISMEN - description: QSPISMEN - bit_offset: 8 - bit_size: 1 - - name: PKASMEN - description: PKA accelerator clocks enable during CPU1 sleep mode - bit_offset: 16 - bit_size: 1 - - name: AES2SMEN - description: AES2 accelerator clocks enable during CPU1 sleep mode - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: True RNG clocks enable during CPU1 sleep mode - bit_offset: 18 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2a and SRAM2b memory interface clocks enable during CPU1 sleep mode - bit_offset: 24 - bit_size: 1 - - name: FLASHSMEN - description: Flash interface clocks enable during CPU1 sleep mode - bit_offset: 25 - bit_size: 1 + - name: QSPISMEN + description: QSPISMEN + bit_offset: 8 + bit_size: 1 + - name: PKASMEN + description: PKA accelerator clocks enable during CPU1 sleep mode + bit_offset: 16 + bit_size: 1 + - name: AES2SMEN + description: AES2 accelerator clocks enable during CPU1 sleep mode + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: True RNG clocks enable during CPU1 sleep mode + bit_offset: 18 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2a and SRAM2b memory interface clocks enable during CPU1 sleep mode + bit_offset: 24 + bit_size: 1 + - name: FLASHSMEN + description: Flash interface clocks enable during CPU1 sleep mode + bit_offset: 25 + bit_size: 1 fieldset/APB1ENR1: description: APB1ENR1 fields: - - name: TIM2EN - description: CPU1 TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: LCDEN - description: CPU1 LCD clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCAPBEN - description: CPU1 RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: CPU1 Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: CPU1 SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: I2C1EN - description: CPU1 I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C3EN - description: CPU1 I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: CPU1 CRS clock enable - bit_offset: 24 - bit_size: 1 - - name: USBEN - description: CPU1 USB clock enable - bit_offset: 26 - bit_size: 1 - - name: LPTIM1EN - description: CPU1 Low power timer 1 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: CPU1 TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: LCDEN + description: CPU1 LCD clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCAPBEN + description: CPU1 RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: CPU1 Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: CPU1 SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: I2C1EN + description: CPU1 I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C3EN + description: CPU1 I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: CPU1 CRS clock enable + bit_offset: 24 + bit_size: 1 + - name: USBEN + description: CPU1 USB clock enable + bit_offset: 26 + bit_size: 1 + - name: LPTIM1EN + description: CPU1 Low power timer 1 clock enable + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR2: description: APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: CPU1 Low power UART 1 clock enable - bit_offset: 0 - bit_size: 1 - - name: LPTIM2EN - description: CPU1 LPTIM2EN - bit_offset: 5 - bit_size: 1 + - name: LPUART1EN + description: CPU1 Low power UART 1 clock enable + bit_offset: 0 + bit_size: 1 + - name: LPTIM2EN + description: CPU1 LPTIM2EN + bit_offset: 5 + bit_size: 1 fieldset/APB1RSTR1: description: APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: LCDRST - description: LCD interface reset - bit_offset: 9 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: CRSRST - description: CRS reset - bit_offset: 24 - bit_size: 1 - - name: USBRST - description: USB FS reset - bit_offset: 26 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: LCDRST + description: LCD interface reset + bit_offset: 9 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: CRSRST + description: CRS reset + bit_offset: 24 + bit_size: 1 + - name: USBRST + description: USB FS reset + bit_offset: 26 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR2: description: APB1 peripheral reset register 2 fields: - - name: LPUART1RST - description: Low-power UART 1 reset - bit_offset: 0 - bit_size: 1 - - name: LPTIM2RST - description: Low-power timer 2 reset - bit_offset: 5 - bit_size: 1 + - name: LPUART1RST + description: Low-power UART 1 reset + bit_offset: 0 + bit_size: 1 + - name: LPTIM2RST + description: Low-power timer 2 reset + bit_offset: 5 + bit_size: 1 fieldset/APB1SMENR1: description: APB1SMENR1 fields: - - name: TIM2SMEN - description: TIM2 timer clocks enable during CPU1 Sleep mode - bit_offset: 0 - bit_size: 1 - - name: LCDSMEN - description: LCD clocks enable during CPU1 Sleep mode - bit_offset: 9 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC APB clocks enable during CPU1 Sleep mode - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clocks enable during CPU1 Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clocks enable during CPU1 Sleep mode - bit_offset: 14 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clocks enable during CPU1 Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clocks enable during CPU1 Sleep mode - bit_offset: 23 - bit_size: 1 - - name: CRSMEN - description: CRS clocks enable during CPU1 Sleep mode - bit_offset: 24 - bit_size: 1 - - name: USBSMEN - description: USB FS clocks enable during CPU1 Sleep mode - bit_offset: 26 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clocks enable during CPU1 Sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clocks enable during CPU1 Sleep mode + bit_offset: 0 + bit_size: 1 + - name: LCDSMEN + description: LCD clocks enable during CPU1 Sleep mode + bit_offset: 9 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC APB clocks enable during CPU1 Sleep mode + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clocks enable during CPU1 Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clocks enable during CPU1 Sleep mode + bit_offset: 14 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clocks enable during CPU1 Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clocks enable during CPU1 Sleep mode + bit_offset: 23 + bit_size: 1 + - name: CRSMEN + description: CRS clocks enable during CPU1 Sleep mode + bit_offset: 24 + bit_size: 1 + - name: USBSMEN + description: USB FS clocks enable during CPU1 Sleep mode + bit_offset: 26 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clocks enable during CPU1 Sleep mode + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR2: description: APB1 peripheral clocks enable in Sleep and Stop modes register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clocks enable during CPU1 Sleep mode - bit_offset: 0 - bit_size: 1 - - name: LPTIM2SMEN - description: Low power timer 2 clocks enable during CPU1 Sleep mode - bit_offset: 5 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clocks enable during CPU1 Sleep mode + bit_offset: 0 + bit_size: 1 + - name: LPTIM2SMEN + description: Low power timer 2 clocks enable during CPU1 Sleep mode + bit_offset: 5 + bit_size: 1 fieldset/APB2ENR: description: APB2ENR fields: - - name: TIM1EN - description: CPU1 TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: CPU1 SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: CPU1 USART1clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM16EN - description: CPU1 TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: CPU1 TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: SAI1EN - description: CPU1 SAI1 clock enable - bit_offset: 21 - bit_size: 1 + - name: TIM1EN + description: CPU1 TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: CPU1 SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: CPU1 USART1clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM16EN + description: CPU1 TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: CPU1 TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: SAI1EN + description: CPU1 SAI1 clock enable + bit_offset: 21 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 - - name: SAI1RST - description: Serial audio interface 1 (SAI1) reset - bit_offset: 21 - bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 + - name: SAI1RST + description: Serial audio interface 1 (SAI1) reset + bit_offset: 21 + bit_size: 1 fieldset/APB2SMENR: description: APB2SMENR fields: - - name: TIM1SMEN - description: TIM1 timer clocks enable during CPU1 Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clocks enable during CPU1 Sleep mode - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1clocks enable during CPU1 Sleep mode - bit_offset: 14 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clocks enable during CPU1 Sleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clocks enable during CPU1 Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SAI1SMEN - description: SAI1 clocks enable during CPU1 Sleep mode - bit_offset: 21 - bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clocks enable during CPU1 Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clocks enable during CPU1 Sleep mode + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1clocks enable during CPU1 Sleep mode + bit_offset: 14 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clocks enable during CPU1 Sleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clocks enable during CPU1 Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SAI1SMEN + description: SAI1 clocks enable during CPU1 Sleep mode + bit_offset: 21 + bit_size: 1 fieldset/APB3RSTR: description: APB3 peripheral reset register fields: - - name: RFRST - description: Radio system BLE reset - bit_offset: 0 - bit_size: 1 + - name: RFRST + description: Radio system BLE reset + bit_offset: 0 + bit_size: 1 fieldset/BDCR: description: BDCR fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: SE oscillator drive capability - bit_offset: 3 - bit_size: 2 - - name: LSECSSON - description: LSECSSON - bit_offset: 5 - bit_size: 1 - - name: LSECSSD_ - description: CSS on LSE failure detection - bit_offset: 6 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low speed clock output enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low speed clock output selection - bit_offset: 25 - bit_size: 2 + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: SE oscillator drive capability + bit_offset: 3 + bit_size: 2 + - name: LSECSSON + description: LSECSSON + bit_offset: 5 + bit_size: 1 + - name: LSECSSD_ + description: CSS on LSE failure detection + bit_offset: 6 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low speed clock output enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low speed clock output selection + bit_offset: 25 + bit_size: 2 fieldset/C2AHB1ENR: description: CPU2 AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: CPU2 DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: CPU2 DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: CPU2 DMAMUX clock enable - bit_offset: 2 - bit_size: 1 - - name: SRAM1EN - description: CPU2 SRAM1 clock enable - bit_offset: 9 - bit_size: 1 - - name: CRCEN - description: CPU2 CRC clock enable - bit_offset: 12 - bit_size: 1 - - name: TSCEN - description: CPU2 Touch Sensing Controller clock enable - bit_offset: 16 - bit_size: 1 + - name: DMA1EN + description: CPU2 DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: CPU2 DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: CPU2 DMAMUX clock enable + bit_offset: 2 + bit_size: 1 + - name: SRAM1EN + description: CPU2 SRAM1 clock enable + bit_offset: 9 + bit_size: 1 + - name: CRCEN + description: CPU2 CRC clock enable + bit_offset: 12 + bit_size: 1 + - name: TSCEN + description: CPU2 Touch Sensing Controller clock enable + bit_offset: 16 + bit_size: 1 fieldset/C2AHB1SMENR: description: CPU2 AHB1 peripheral clocks enable in Sleep and Stop modes register fields: - - name: DMA1SMEN - description: CPU2 DMA1 clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: CPU2 DMA2 clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: CPU2 DMAMUX clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clock enable during CPU1 CSleep mode - bit_offset: 9 - bit_size: 1 - - name: CRCSMEN - description: CPU2 CRCSMEN - bit_offset: 12 - bit_size: 1 - - name: TSCSMEN - description: CPU2 Touch Sensing Controller clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 + - name: DMA1SMEN + description: CPU2 DMA1 clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: CPU2 DMA2 clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: CPU2 DMAMUX clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clock enable during CPU1 CSleep mode + bit_offset: 9 + bit_size: 1 + - name: CRCSMEN + description: CPU2 CRCSMEN + bit_offset: 12 + bit_size: 1 + - name: TSCSMEN + description: CPU2 Touch Sensing Controller clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 fieldset/C2AHB2ENR: description: CPU2 AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: CPU2 IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: CPU2 IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: CPU2 IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIODEN - description: CPU2 IO port D clock enable - bit_offset: 3 - bit_size: 1 - - name: GPIOEEN - description: CPU2 IO port E clock enable - bit_offset: 4 - bit_size: 1 - - name: GPIOHEN - description: CPU2 IO port H clock enable - bit_offset: 7 - bit_size: 1 - - name: ADCEN - description: CPU2 ADC clock enable - bit_offset: 13 - bit_size: 1 - - name: AES1EN - description: CPU2 AES1 accelerator clock enable - bit_offset: 16 - bit_size: 1 + - name: GPIOAEN + description: CPU2 IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: CPU2 IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: CPU2 IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIODEN + description: CPU2 IO port D clock enable + bit_offset: 3 + bit_size: 1 + - name: GPIOEEN + description: CPU2 IO port E clock enable + bit_offset: 4 + bit_size: 1 + - name: GPIOHEN + description: CPU2 IO port H clock enable + bit_offset: 7 + bit_size: 1 + - name: ADCEN + description: CPU2 ADC clock enable + bit_offset: 13 + bit_size: 1 + - name: AES1EN + description: CPU2 AES1 accelerator clock enable + bit_offset: 16 + bit_size: 1 fieldset/C2AHB2SMENR: description: CPU2 AHB2 peripheral clocks enable in Sleep and Stop modes register fields: - - name: GPIOASMEN - description: CPU2 IO port A clocks enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: CPU2 IO port B clocks enable during Sleep and Stop modes - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: CPU2 IO port C clocks enable during Sleep and Stop modes - bit_offset: 2 - bit_size: 1 - - name: GPIODSMEN - description: CPU2 IO port D clocks enable during Sleep and Stop modes - bit_offset: 3 - bit_size: 1 - - name: GPIOESMEN - description: CPU2 IO port E clocks enable during Sleep and Stop modes - bit_offset: 4 - bit_size: 1 - - name: GPIOHSMEN - description: CPU2 IO port H clocks enable during Sleep and Stop modes - bit_offset: 7 - bit_size: 1 - - name: ADCFSSMEN - description: CPU2 ADC clocks enable during Sleep and Stop modes - bit_offset: 13 - bit_size: 1 - - name: AES1SMEN - description: CPU2 AES1 accelerator clocks enable during Sleep and Stop modes - bit_offset: 16 - bit_size: 1 + - name: GPIOASMEN + description: CPU2 IO port A clocks enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: CPU2 IO port B clocks enable during Sleep and Stop modes + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: CPU2 IO port C clocks enable during Sleep and Stop modes + bit_offset: 2 + bit_size: 1 + - name: GPIODSMEN + description: CPU2 IO port D clocks enable during Sleep and Stop modes + bit_offset: 3 + bit_size: 1 + - name: GPIOESMEN + description: CPU2 IO port E clocks enable during Sleep and Stop modes + bit_offset: 4 + bit_size: 1 + - name: GPIOHSMEN + description: CPU2 IO port H clocks enable during Sleep and Stop modes + bit_offset: 7 + bit_size: 1 + - name: ADCFSSMEN + description: CPU2 ADC clocks enable during Sleep and Stop modes + bit_offset: 13 + bit_size: 1 + - name: AES1SMEN + description: CPU2 AES1 accelerator clocks enable during Sleep and Stop modes + bit_offset: 16 + bit_size: 1 fieldset/C2AHB3ENR: description: CPU2 AHB3 peripheral clock enable register fields: - - name: PKAEN - description: CPU2 PKAEN - bit_offset: 16 - bit_size: 1 - - name: AES2EN - description: CPU2 AES2EN - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: CPU2 RNGEN - bit_offset: 18 - bit_size: 1 - - name: HSEMEN - description: CPU2 HSEMEN - bit_offset: 19 - bit_size: 1 - - name: IPCCEN - description: CPU2 IPCCEN - bit_offset: 20 - bit_size: 1 - - name: FLASHEN - description: CPU2 FLASHEN - bit_offset: 25 - bit_size: 1 + - name: PKAEN + description: CPU2 PKAEN + bit_offset: 16 + bit_size: 1 + - name: AES2EN + description: CPU2 AES2EN + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: CPU2 RNGEN + bit_offset: 18 + bit_size: 1 + - name: HSEMEN + description: CPU2 HSEMEN + bit_offset: 19 + bit_size: 1 + - name: IPCCEN + description: CPU2 IPCCEN + bit_offset: 20 + bit_size: 1 + - name: FLASHEN + description: CPU2 FLASHEN + bit_offset: 25 + bit_size: 1 fieldset/C2AHB3SMENR: description: CPU2 AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: PKASMEN - description: PKA accelerator clocks enable during CPU2 sleep modes - bit_offset: 16 - bit_size: 1 - - name: AES2SMEN - description: AES2 accelerator clocks enable during CPU2 sleep modes - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: True RNG clocks enable during CPU2 sleep modes - bit_offset: 18 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2a and SRAM2b memory interface clocks enable during CPU2 sleep modes - bit_offset: 24 - bit_size: 1 - - name: FLASHSMEN - description: Flash interface clocks enable during CPU2 sleep modes - bit_offset: 25 - bit_size: 1 + - name: PKASMEN + description: PKA accelerator clocks enable during CPU2 sleep modes + bit_offset: 16 + bit_size: 1 + - name: AES2SMEN + description: AES2 accelerator clocks enable during CPU2 sleep modes + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: True RNG clocks enable during CPU2 sleep modes + bit_offset: 18 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2a and SRAM2b memory interface clocks enable during CPU2 sleep modes + bit_offset: 24 + bit_size: 1 + - name: FLASHSMEN + description: Flash interface clocks enable during CPU2 sleep modes + bit_offset: 25 + bit_size: 1 fieldset/C2APB1ENR1: description: CPU2 APB1ENR1 fields: - - name: TIM2EN - description: CPU2 TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: LCDEN - description: CPU2 LCD clock enable - bit_offset: 9 - bit_size: 1 - - name: RTCAPBEN - description: CPU2 RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: SPI2EN - description: CPU2 SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: I2C1EN - description: CPU2 I2C1 clock enable - bit_offset: 21 - bit_size: 1 - - name: I2C3EN - description: CPU2 I2C3 clock enable - bit_offset: 23 - bit_size: 1 - - name: CRSEN - description: CPU2 CRS clock enable - bit_offset: 24 - bit_size: 1 - - name: USBEN - description: CPU2 USB clock enable - bit_offset: 26 - bit_size: 1 - - name: LPTIM1EN - description: CPU2 Low power timer 1 clock enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: CPU2 TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: LCDEN + description: CPU2 LCD clock enable + bit_offset: 9 + bit_size: 1 + - name: RTCAPBEN + description: CPU2 RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: SPI2EN + description: CPU2 SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: I2C1EN + description: CPU2 I2C1 clock enable + bit_offset: 21 + bit_size: 1 + - name: I2C3EN + description: CPU2 I2C3 clock enable + bit_offset: 23 + bit_size: 1 + - name: CRSEN + description: CPU2 CRS clock enable + bit_offset: 24 + bit_size: 1 + - name: USBEN + description: CPU2 USB clock enable + bit_offset: 26 + bit_size: 1 + - name: LPTIM1EN + description: CPU2 Low power timer 1 clock enable + bit_offset: 31 + bit_size: 1 fieldset/C2APB1ENR2: description: CPU2 APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: CPU2 Low power UART 1 clock enable - bit_offset: 0 - bit_size: 1 - - name: LPTIM2EN - description: CPU2 LPTIM2EN - bit_offset: 5 - bit_size: 1 + - name: LPUART1EN + description: CPU2 Low power UART 1 clock enable + bit_offset: 0 + bit_size: 1 + - name: LPTIM2EN + description: CPU2 LPTIM2EN + bit_offset: 5 + bit_size: 1 fieldset/C2APB1SMENR1: description: CPU2 APB1SMENR1 fields: - - name: TIM2SMEN - description: TIM2 timer clocks enable during CPU2 Sleep mode - bit_offset: 0 - bit_size: 1 - - name: LCDSMEN - description: LCD clocks enable during CPU2 Sleep mode - bit_offset: 9 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC APB clocks enable during CPU2 Sleep mode - bit_offset: 10 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clocks enable during CPU2 Sleep mode - bit_offset: 14 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clocks enable during CPU2 Sleep mode - bit_offset: 21 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clocks enable during CPU2 Sleep mode - bit_offset: 23 - bit_size: 1 - - name: CRSMEN - description: CRS clocks enable during CPU2 Sleep mode - bit_offset: 24 - bit_size: 1 - - name: USBSMEN - description: USB FS clocks enable during CPU2 Sleep mode - bit_offset: 26 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clocks enable during CPU2 Sleep mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clocks enable during CPU2 Sleep mode + bit_offset: 0 + bit_size: 1 + - name: LCDSMEN + description: LCD clocks enable during CPU2 Sleep mode + bit_offset: 9 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC APB clocks enable during CPU2 Sleep mode + bit_offset: 10 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clocks enable during CPU2 Sleep mode + bit_offset: 14 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clocks enable during CPU2 Sleep mode + bit_offset: 21 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clocks enable during CPU2 Sleep mode + bit_offset: 23 + bit_size: 1 + - name: CRSMEN + description: CRS clocks enable during CPU2 Sleep mode + bit_offset: 24 + bit_size: 1 + - name: USBSMEN + description: USB FS clocks enable during CPU2 Sleep mode + bit_offset: 26 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clocks enable during CPU2 Sleep mode + bit_offset: 31 + bit_size: 1 fieldset/C2APB1SMENR2: description: CPU2 APB1 peripheral clocks enable in Sleep and Stop modes register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clocks enable during CPU2 Sleep mode - bit_offset: 0 - bit_size: 1 - - name: LPTIM2SMEN - description: Low power timer 2 clocks enable during CPU2 Sleep mode - bit_offset: 5 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clocks enable during CPU2 Sleep mode + bit_offset: 0 + bit_size: 1 + - name: LPTIM2SMEN + description: Low power timer 2 clocks enable during CPU2 Sleep mode + bit_offset: 5 + bit_size: 1 fieldset/C2APB2ENR: description: CPU2 APB2ENR fields: - - name: TIM1EN - description: CPU2 TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: CPU2 SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: CPU2 USART1clock enable - bit_offset: 14 - bit_size: 1 - - name: TIM16EN - description: CPU2 TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: CPU2 TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 - - name: SAI1EN - description: CPU2 SAI1 clock enable - bit_offset: 21 - bit_size: 1 + - name: TIM1EN + description: CPU2 TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: CPU2 SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: CPU2 USART1clock enable + bit_offset: 14 + bit_size: 1 + - name: TIM16EN + description: CPU2 TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: CPU2 TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 + - name: SAI1EN + description: CPU2 SAI1 clock enable + bit_offset: 21 + bit_size: 1 fieldset/C2APB2SMENR: description: CPU2 APB2SMENR fields: - - name: TIM1SMEN - description: TIM1 timer clocks enable during CPU2 Sleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clocks enable during CPU2 Sleep mode - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1clocks enable during CPU2 Sleep mode - bit_offset: 14 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clocks enable during CPU2 Sleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clocks enable during CPU2 Sleep mode - bit_offset: 18 - bit_size: 1 - - name: SAI1SMEN - description: SAI1 clocks enable during CPU2 Sleep mode - bit_offset: 21 - bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clocks enable during CPU2 Sleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clocks enable during CPU2 Sleep mode + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1clocks enable during CPU2 Sleep mode + bit_offset: 14 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clocks enable during CPU2 Sleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clocks enable during CPU2 Sleep mode + bit_offset: 18 + bit_size: 1 + - name: SAI1SMEN + description: SAI1 clocks enable during CPU2 Sleep mode + bit_offset: 21 + bit_size: 1 fieldset/C2APB3ENR: description: CPU2 APB3ENR fields: - - name: BLEEN - description: CPU2 BLE interface clock enable - bit_offset: 0 - bit_size: 1 - - name: EN802 - description: CPU2 802.15.4 interface clock enable - bit_offset: 1 - bit_size: 1 + - name: BLEEN + description: CPU2 BLE interface clock enable + bit_offset: 0 + bit_size: 1 + - name: EN802 + description: CPU2 802.15.4 interface clock enable + bit_offset: 1 + bit_size: 1 fieldset/C2APB3SMENR: description: CPU2 APB3SMENR fields: - - name: BLESMEN - description: BLE interface clocks enable during CPU2 Sleep mode - bit_offset: 0 - bit_size: 1 - - name: SMEN802 - description: 802.15.4 interface clocks enable during CPU2 Sleep modes - bit_offset: 1 - bit_size: 1 + - name: BLESMEN + description: BLE interface clocks enable during CPU2 Sleep mode + bit_offset: 0 + bit_size: 1 + - name: SMEN802 + description: 802.15.4 interface clocks enable during CPU2 Sleep modes + bit_offset: 1 + bit_size: 1 fieldset/CCIPR: description: CCIPR fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 18 - bit_size: 2 - - name: LPTIM2SEL - description: Low power timer 2 clock source selection - bit_offset: 20 - bit_size: 2 - - name: SAI1SEL - description: SAI1 clock source selection - bit_offset: 22 - bit_size: 2 - - name: CLK48SEL - description: 48 MHz clock source selection - bit_offset: 26 - bit_size: 2 - - name: ADCSEL - description: ADCs clock source selection - bit_offset: 28 - bit_size: 2 - - name: RNGSEL - description: RNG clock source selection - bit_offset: 30 - bit_size: 2 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 18 + bit_size: 2 + - name: LPTIM2SEL + description: Low power timer 2 clock source selection + bit_offset: 20 + bit_size: 2 + - name: SAI1SEL + description: SAI1 clock source selection + bit_offset: 22 + bit_size: 2 + - name: CLK48SEL + description: 48 MHz clock source selection + bit_offset: 26 + bit_size: 2 + - name: ADCSEL + description: ADCs clock source selection + bit_offset: 28 + bit_size: 2 + - name: RNGSEL + description: RNG clock source selection + bit_offset: 30 + bit_size: 2 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - - name: HPRE - description: AHB prescaler - bit_offset: 4 - bit_size: 4 - - name: PPRE1 - description: PB low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - - name: PPRE2 - description: APB high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - - name: STOPWUCK - description: Wakeup from Stop and CSS backup clock selection - bit_offset: 15 - bit_size: 1 - - name: HPREF - description: AHB prescaler flag - bit_offset: 16 - bit_size: 1 - - name: PPRE1F - description: APB1 prescaler flag - bit_offset: 17 - bit_size: 1 - - name: PPRE2F - description: APB2 prescaler flag - bit_offset: 18 - bit_size: 1 - - name: MCOSEL - description: Microcontroller clock output - bit_offset: 24 - bit_size: 4 - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + - name: HPRE + description: AHB prescaler + bit_offset: 4 + bit_size: 4 + - name: PPRE1 + description: PB low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + - name: PPRE2 + description: APB high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + - name: STOPWUCK + description: Wakeup from Stop and CSS backup clock selection + bit_offset: 15 + bit_size: 1 + - name: HPREF + description: AHB prescaler flag + bit_offset: 16 + bit_size: 1 + - name: PPRE1F + description: APB1 prescaler flag + bit_offset: 17 + bit_size: 1 + - name: PPRE2F + description: APB2 prescaler flag + bit_offset: 18 + bit_size: 1 + - name: MCOSEL + description: Microcontroller clock output + bit_offset: 24 + bit_size: 4 + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSI1RDYC - description: LSI1 ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: MSIRDYC - description: MSI ready interrupt clear - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: HSI ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYC - description: PLLSAI1 ready interrupt clear - bit_offset: 6 - bit_size: 1 - - name: HSECSSC - description: HSE Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYC - description: HSI48 ready interrupt clear - bit_offset: 10 - bit_size: 1 - - name: LSI2RDYC - description: LSI2 ready interrupt clear - bit_offset: 11 - bit_size: 1 + - name: LSI1RDYC + description: LSI1 ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: MSIRDYC + description: MSI ready interrupt clear + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: HSI ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYC + description: PLLSAI1 ready interrupt clear + bit_offset: 6 + bit_size: 1 + - name: HSECSSC + description: HSE Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYC + description: HSI48 ready interrupt clear + bit_offset: 10 + bit_size: 1 + - name: LSI2RDYC + description: LSI2 ready interrupt clear + bit_offset: 11 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSI1RDYIE - description: LSI1 ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: HSI ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLRDYIE - description: PLLSYS ready interrupt enable - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYIE - description: PLLSAI1 ready interrupt enable - bit_offset: 6 - bit_size: 1 - - name: LSECSSIE - description: LSE clock security system interrupt enable - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYIE - description: HSI48 ready interrupt enable - bit_offset: 10 - bit_size: 1 - - name: LSI2RDYIE - description: LSI2 ready interrupt enable - bit_offset: 11 - bit_size: 1 + - name: LSI1RDYIE + description: LSI1 ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: HSI ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: PLLSYS ready interrupt enable + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYIE + description: PLLSAI1 ready interrupt enable + bit_offset: 6 + bit_size: 1 + - name: LSECSSIE + description: LSE clock security system interrupt enable + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYIE + description: HSI48 ready interrupt enable + bit_offset: 10 + bit_size: 1 + - name: LSI2RDYIE + description: LSI2 ready interrupt enable + bit_offset: 11 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSI1RDYF - description: LSI1 ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: HSI ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: PLLSAI1RDYF - description: PLLSAI1 ready interrupt flag - bit_offset: 6 - bit_size: 1 - - name: HSECSSF - description: HSE Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 - - name: HSI48RDYF - description: HSI48 ready interrupt flag - bit_offset: 10 - bit_size: 1 - - name: LSI2RDYF - description: LSI2 ready interrupt flag - bit_offset: 11 - bit_size: 1 + - name: LSI1RDYF + description: LSI1 ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: HSI ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: PLLSAI1RDYF + description: PLLSAI1 ready interrupt flag + bit_offset: 6 + bit_size: 1 + - name: HSECSSF + description: HSE Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 + - name: HSI48RDYF + description: HSI48 ready interrupt flag + bit_offset: 10 + bit_size: 1 + - name: LSI2RDYF + description: LSI2 ready interrupt flag + bit_offset: 11 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: MSION - description: MSI clock enable - bit_offset: 0 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag - bit_offset: 1 - bit_size: 1 - - name: MSIPLLEN - description: MSI clock PLL enable - bit_offset: 2 - bit_size: 1 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 4 - bit_size: 4 - - name: HSION - description: HSI clock enabled - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI always enable for peripheral kernels - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI clock ready flag - bit_offset: 10 - bit_size: 1 - - name: HSIASFS - description: HSI automatic start from Stop - bit_offset: 11 - bit_size: 1 - - name: HSIKERDY - description: HSI kernel clock ready flag for peripherals requests - bit_offset: 12 - bit_size: 1 - - name: HSEON - description: HSE clock enabled - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE clock ready flag - bit_offset: 17 - bit_size: 1 - - name: HSEBYP - description: HSE crystal oscillator bypass - bit_offset: 18 - bit_size: 1 - - name: CSSON - description: HSE Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: HSEPRE - description: HSE sysclk and PLL M divider prescaler - bit_offset: 20 - bit_size: 1 - - name: PLLON - description: Main PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL clock ready flag - bit_offset: 25 - bit_size: 1 - - name: PLLSAI1ON - description: SAI1 PLL enable - bit_offset: 26 - bit_size: 1 - - name: PLLSAI1RDY - description: SAI1 PLL clock ready flag - bit_offset: 27 - bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 0 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag + bit_offset: 1 + bit_size: 1 + - name: MSIPLLEN + description: MSI clock PLL enable + bit_offset: 2 + bit_size: 1 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 4 + bit_size: 4 + - name: HSION + description: HSI clock enabled + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI always enable for peripheral kernels + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI clock ready flag + bit_offset: 10 + bit_size: 1 + - name: HSIASFS + description: HSI automatic start from Stop + bit_offset: 11 + bit_size: 1 + - name: HSIKERDY + description: HSI kernel clock ready flag for peripherals requests + bit_offset: 12 + bit_size: 1 + - name: HSEON + description: HSE clock enabled + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE clock ready flag + bit_offset: 17 + bit_size: 1 + - name: HSEBYP + description: HSE crystal oscillator bypass + bit_offset: 18 + bit_size: 1 + - name: CSSON + description: HSE Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: HSEPRE + description: HSE sysclk and PLL M divider prescaler + bit_offset: 20 + bit_size: 1 + - name: PLLON + description: Main PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL clock ready flag + bit_offset: 25 + bit_size: 1 + - name: PLLSAI1ON + description: SAI1 PLL enable + bit_offset: 26 + bit_size: 1 + - name: PLLSAI1RDY + description: SAI1 PLL clock ready flag + bit_offset: 27 + bit_size: 1 fieldset/CRRCR: description: Clock recovery RC register fields: - - name: HSI48ON - description: HSI48 oscillator enabled - bit_offset: 0 - bit_size: 1 - - name: HSI48RDY - description: HSI48 clock ready - bit_offset: 1 - bit_size: 1 - - name: HSI48CAL - description: HSI48 clock calibration - bit_offset: 7 - bit_size: 9 + - name: HSI48ON + description: HSI48 oscillator enabled + bit_offset: 0 + bit_size: 1 + - name: HSI48RDY + description: HSI48 clock ready + bit_offset: 1 + bit_size: 1 + - name: HSI48CAL + description: HSI48 clock calibration + bit_offset: 7 + bit_size: 9 fieldset/CSR: description: CSR fields: - - name: LSI1ON - description: LSI1 oscillator enabled - bit_offset: 0 - bit_size: 1 - - name: LSI1RDY - description: LSI1 oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSI2ON - description: LSI2 oscillator enabled - bit_offset: 2 - bit_size: 1 - - name: LSI2RDY - description: LSI2 oscillator ready - bit_offset: 3 - bit_size: 1 - - name: LSI2TRIMEN - description: LSI2 oscillator trimming enable - bit_offset: 4 - bit_size: 1 - - name: LSI2TRIMOK - description: LSI2 oscillator trim OK - bit_offset: 5 - bit_size: 1 - - name: LSI2BW - description: LSI2 oscillator bias configuration - bit_offset: 8 - bit_size: 4 - - name: RFWKPSEL - description: RF system wakeup clock source selection - bit_offset: 14 - bit_size: 2 - - name: RFRSTS - description: Radio system BLE and 802.15.4 reset status - bit_offset: 16 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: BOR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSI1ON + description: LSI1 oscillator enabled + bit_offset: 0 + bit_size: 1 + - name: LSI1RDY + description: LSI1 oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSI2ON + description: LSI2 oscillator enabled + bit_offset: 2 + bit_size: 1 + - name: LSI2RDY + description: LSI2 oscillator ready + bit_offset: 3 + bit_size: 1 + - name: LSI2TRIMEN + description: LSI2 oscillator trimming enable + bit_offset: 4 + bit_size: 1 + - name: LSI2TRIMOK + description: LSI2 oscillator trim OK + bit_offset: 5 + bit_size: 1 + - name: LSI2BW + description: LSI2 oscillator bias configuration + bit_offset: 8 + bit_size: 4 + - name: RFWKPSEL + description: RF system wakeup clock source selection + bit_offset: 14 + bit_size: 2 + - name: RFRSTS + description: Radio system BLE and 802.15.4 reset status + bit_offset: 16 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: BOR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/EXTCFGR: description: Extended clock recovery register fields: - - name: SHDHPRE - description: Shared AHB prescaler - bit_offset: 0 - bit_size: 4 - - name: C2HPRE - description: CPU2 AHB prescaler - bit_offset: 4 - bit_size: 4 - - name: SHDHPREF - description: Shared AHB prescaler flag - bit_offset: 16 - bit_size: 1 - - name: C2HPREF - description: CPU2 AHB prescaler flag - bit_offset: 17 - bit_size: 1 - - name: RFCSS - description: RF clock source selected - bit_offset: 20 - bit_size: 1 + - name: SHDHPRE + description: Shared AHB prescaler + bit_offset: 0 + bit_size: 4 + - name: C2HPRE + description: CPU2 AHB prescaler + bit_offset: 4 + bit_size: 4 + - name: SHDHPREF + description: Shared AHB prescaler flag + bit_offset: 16 + bit_size: 1 + - name: C2HPREF + description: CPU2 AHB prescaler flag + bit_offset: 17 + bit_size: 1 + - name: RFCSS + description: RF clock source selected + bit_offset: 20 + bit_size: 1 fieldset/HSECR: description: Clock HSE register fields: - - name: UNLOCKED - description: Register lock system - bit_offset: 0 - bit_size: 1 - - name: HSES - description: HSE Sense amplifier threshold - bit_offset: 3 - bit_size: 1 - - name: HSEGMC - description: HSE current control - bit_offset: 4 - bit_size: 3 - - name: HSETUNE - description: HSE capacitor tuning - bit_offset: 8 - bit_size: 6 + - name: UNLOCKED + description: Register lock system + bit_offset: 0 + bit_size: 1 + - name: HSES + description: HSE Sense amplifier threshold + bit_offset: 3 + bit_size: 1 + - name: HSEGMC + description: HSE current control + bit_offset: 4 + bit_size: 3 + - name: HSETUNE + description: HSE capacitor tuning + bit_offset: 8 + bit_size: 6 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: MSICAL - description: MSI clock calibration - bit_offset: 0 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 8 - bit_size: 8 - - name: HSICAL - description: HSI clock calibration - bit_offset: 16 - bit_size: 8 - - name: HSITRIM - description: HSI clock trimming - bit_offset: 24 - bit_size: 7 + - name: MSICAL + description: MSI clock calibration + bit_offset: 0 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 8 + bit_size: 8 + - name: HSICAL + description: HSI clock calibration + bit_offset: 16 + bit_size: 8 + - name: HSITRIM + description: HSI clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLLCFGR: description: PLLSYS configuration register fields: - - name: PLLSRC - description: "Main PLL, PLLSAI1 and PLLSAI2 entry clock source" - bit_offset: 0 - bit_size: 2 - - name: PLLM - description: Division factor M for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock - bit_offset: 4 - bit_size: 3 - - name: PLLN - description: Main PLLSYS multiplication factor N - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: Main PLLSYSP output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: Main PLL division factor P for PPLSYSSAICLK - bit_offset: 17 - bit_size: 5 - - name: PLLQEN - description: Main PLLSYSQ output enable - bit_offset: 24 - bit_size: 1 - - name: PLLQ - description: Main PLLSYS division factor Q for PLLSYSUSBCLK - bit_offset: 25 - bit_size: 3 - - name: PLLREN - description: Main PLLSYSR PLLCLK output enable - bit_offset: 28 - bit_size: 1 - - name: PLLR - description: Main PLLSYS division factor R for SYSCLK (system clock) - bit_offset: 29 - bit_size: 3 + - name: PLLSRC + description: Main PLL, PLLSAI1 and PLLSAI2 entry clock source + bit_offset: 0 + bit_size: 2 + - name: PLLM + description: Division factor M for the main PLL and audio PLL (PLLSAI1 and PLLSAI2) input clock + bit_offset: 4 + bit_size: 3 + - name: PLLN + description: Main PLLSYS multiplication factor N + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: Main PLLSYSP output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: Main PLL division factor P for PPLSYSSAICLK + bit_offset: 17 + bit_size: 5 + - name: PLLQEN + description: Main PLLSYSQ output enable + bit_offset: 24 + bit_size: 1 + - name: PLLQ + description: Main PLLSYS division factor Q for PLLSYSUSBCLK + bit_offset: 25 + bit_size: 3 + - name: PLLREN + description: Main PLLSYSR PLLCLK output enable + bit_offset: 28 + bit_size: 1 + - name: PLLR + description: Main PLLSYS division factor R for SYSCLK (system clock) + bit_offset: 29 + bit_size: 3 fieldset/PLLSAI1CFGR: description: PLLSAI1 configuration register fields: - - name: PLLN - description: SAIPLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: SAIPLL PLLSAI1CLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: SAI1PLL division factor P for PLLSAICLK (SAI1clock) - bit_offset: 17 - bit_size: 5 - - name: PLLQEN - description: SAIPLL PLLSAIUSBCLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLQ - description: SAIPLL division factor Q for PLLSAIUSBCLK (48 MHz clock) - bit_offset: 25 - bit_size: 3 - - name: PLLREN - description: PLLSAI PLLADC1CLK output enable - bit_offset: 28 - bit_size: 1 - - name: PLLR - description: PLLSAI division factor R for PLLADC1CLK (ADC clock) - bit_offset: 29 - bit_size: 3 + - name: PLLN + description: SAIPLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: SAIPLL PLLSAI1CLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: SAI1PLL division factor P for PLLSAICLK (SAI1clock) + bit_offset: 17 + bit_size: 5 + - name: PLLQEN + description: SAIPLL PLLSAIUSBCLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLQ + description: SAIPLL division factor Q for PLLSAIUSBCLK (48 MHz clock) + bit_offset: 25 + bit_size: 3 + - name: PLLREN + description: PLLSAI PLLADC1CLK output enable + bit_offset: 28 + bit_size: 1 + - name: PLLR + description: PLLSAI division factor R for PLLADC1CLK (ADC clock) + bit_offset: 29 + bit_size: 3 fieldset/SMPSCR: description: Step Down converter control register fields: - - name: SMPSSEL - description: Step Down converter clock selection - bit_offset: 0 - bit_size: 2 - - name: SMPSDIV - description: Step Down converter clock prescaler - bit_offset: 4 - bit_size: 2 - - name: SMPSSWS - description: Step Down converter clock switch status - bit_offset: 8 - bit_size: 2 + - name: SMPSSEL + description: Step Down converter clock selection + bit_offset: 0 + bit_size: 2 + - name: SMPSDIV + description: Step Down converter clock prescaler + bit_offset: 4 + bit_size: 2 + - name: SMPSSWS + description: Step Down converter clock switch status + bit_offset: 8 + bit_size: 2 diff --git a/data/registers/rcc_wl5.yaml b/data/registers/rcc_wl5.yaml index 9b9fee8..fd8006e 100644 --- a/data/registers/rcc_wl5.yaml +++ b/data/registers/rcc_wl5.yaml @@ -1,1437 +1,1436 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 12 - fieldset: PLLCFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 40 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 44 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 48 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: APB1 peripheral reset register 1 - byte_offset: 56 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: APB1 peripheral reset register 2 - byte_offset: 60 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 64 - fieldset: APB2RSTR - - name: APB3RSTR - description: APB3 peripheral reset register - byte_offset: 68 - fieldset: APB3RSTR - - name: AHB1ENR - description: AHB1 peripheral clock enable register - byte_offset: 72 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 76 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 80 - fieldset: AHB3ENR - - name: APB1ENR1 - description: APB1 peripheral clock enable register 1 - byte_offset: 88 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: APB1 peripheral clock enable register 2 - byte_offset: 92 - fieldset: APB1ENR2 - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 96 - fieldset: APB2ENR - - name: APB3ENR - description: APB3 peripheral clock enable register - byte_offset: 100 - fieldset: APB3ENR - - name: AHB1SMENR - description: AHB1 peripheral clocks enable in Sleep modes register - byte_offset: 104 - fieldset: AHB1SMENR - - name: AHB2SMENR - description: AHB2 peripheral clocks enable in Sleep modes register - byte_offset: 108 - fieldset: AHB2SMENR - - name: AHB3SMENR - description: AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 112 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: APB1 peripheral clocks enable in Sleep mode register 1 - byte_offset: 120 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: APB1 peripheral clocks enable in Sleep mode register 2 - byte_offset: 124 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: APB2 peripheral clocks enable in Sleep mode register - byte_offset: 128 - fieldset: APB2SMENR - - name: APB3SMENR - description: APB3 peripheral clock enable in Sleep mode register - byte_offset: 132 - fieldset: APB3SMENR - - name: CCIPR - description: Peripherals independent clock configuration register - byte_offset: 136 - fieldset: CCIPR - - name: BDCR - description: Backup domain control register - byte_offset: 144 - fieldset: BDCR - - name: CSR - description: Control/status register - byte_offset: 148 - fieldset: CSR - - name: EXTCFGR - description: Extended clock recovery register - byte_offset: 264 - fieldset: EXTCFGR - - name: C2AHB1ENR - description: CPU2 AHB1 peripheral clock enable register - byte_offset: 328 - fieldset: C2AHB1ENR - - name: C2AHB2ENR - description: CPU2 AHB2 peripheral clock enable register - byte_offset: 332 - fieldset: C2AHB2ENR - - name: C2AHB3ENR - description: "CPU2 AHB3 peripheral clock enable register [dual core device only]" - byte_offset: 336 - fieldset: C2AHB3ENR - - name: C2APB1ENR1 - description: "CPU2 APB1 peripheral clock enable register 1 [dual core device only]" - byte_offset: 344 - fieldset: C2APB1ENR1 - - name: C2APB1ENR2 - description: "CPU2 APB1 peripheral clock enable register 2 [dual core device only]" - byte_offset: 348 - fieldset: C2APB1ENR2 - - name: C2APB2ENR - description: "CPU2 APB2 peripheral clock enable register [dual core device only]" - byte_offset: 352 - fieldset: C2APB2ENR - - name: C2APB3ENR - description: "CPU2 APB3 peripheral clock enable register [dual core device only]" - byte_offset: 356 - fieldset: C2APB3ENR - - name: C2AHB1SMENR - description: "CPU2 AHB1 peripheral clocks enable in Sleep modes register [dual core device only]" - byte_offset: 360 - fieldset: C2AHB1SMENR - - name: C2AHB2SMENR - description: "CPU2 AHB2 peripheral clocks enable in Sleep modes register [dual core device only]" - byte_offset: 364 - fieldset: C2AHB2SMENR - - name: C2AHB3SMENR - description: "CPU2 AHB3 peripheral clocks enable in Sleep mode register [dual core device only]" - byte_offset: 368 - fieldset: C2AHB3SMENR - - name: C2APB1SMENR1 - description: "CPU2 APB1 peripheral clocks enable in Sleep mode register 1 [dual core device only]" - byte_offset: 376 - fieldset: C2APB1SMENR1 - - name: C2APB1SMENR2 - description: "CPU2 APB1 peripheral clocks enable in Sleep mode register 2 [dual core device only]" - byte_offset: 380 - fieldset: C2APB1SMENR2 - - name: C2APB2SMENR - description: "CPU2 APB2 peripheral clocks enable in Sleep mode register [dual core device only]" - byte_offset: 384 - fieldset: C2APB2SMENR - - name: C2APB3SMENR - description: "CPU2 APB3 peripheral clock enable in Sleep mode register [dual core device only]" - byte_offset: 388 - fieldset: C2APB3SMENR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 12 + fieldset: PLLCFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 40 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 44 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 48 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: APB1 peripheral reset register 1 + byte_offset: 56 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: APB1 peripheral reset register 2 + byte_offset: 60 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 64 + fieldset: APB2RSTR + - name: APB3RSTR + description: APB3 peripheral reset register + byte_offset: 68 + fieldset: APB3RSTR + - name: AHB1ENR + description: AHB1 peripheral clock enable register + byte_offset: 72 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 76 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 80 + fieldset: AHB3ENR + - name: APB1ENR1 + description: APB1 peripheral clock enable register 1 + byte_offset: 88 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: APB1 peripheral clock enable register 2 + byte_offset: 92 + fieldset: APB1ENR2 + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 96 + fieldset: APB2ENR + - name: APB3ENR + description: APB3 peripheral clock enable register + byte_offset: 100 + fieldset: APB3ENR + - name: AHB1SMENR + description: AHB1 peripheral clocks enable in Sleep modes register + byte_offset: 104 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: AHB2 peripheral clocks enable in Sleep modes register + byte_offset: 108 + fieldset: AHB2SMENR + - name: AHB3SMENR + description: AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 112 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: APB1 peripheral clocks enable in Sleep mode register 1 + byte_offset: 120 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: APB1 peripheral clocks enable in Sleep mode register 2 + byte_offset: 124 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: APB2 peripheral clocks enable in Sleep mode register + byte_offset: 128 + fieldset: APB2SMENR + - name: APB3SMENR + description: APB3 peripheral clock enable in Sleep mode register + byte_offset: 132 + fieldset: APB3SMENR + - name: CCIPR + description: Peripherals independent clock configuration register + byte_offset: 136 + fieldset: CCIPR + - name: BDCR + description: Backup domain control register + byte_offset: 144 + fieldset: BDCR + - name: CSR + description: Control/status register + byte_offset: 148 + fieldset: CSR + - name: EXTCFGR + description: Extended clock recovery register + byte_offset: 264 + fieldset: EXTCFGR + - name: C2AHB1ENR + description: CPU2 AHB1 peripheral clock enable register + byte_offset: 328 + fieldset: C2AHB1ENR + - name: C2AHB2ENR + description: CPU2 AHB2 peripheral clock enable register + byte_offset: 332 + fieldset: C2AHB2ENR + - name: C2AHB3ENR + description: CPU2 AHB3 peripheral clock enable register [dual core device only] + byte_offset: 336 + fieldset: C2AHB3ENR + - name: C2APB1ENR1 + description: CPU2 APB1 peripheral clock enable register 1 [dual core device only] + byte_offset: 344 + fieldset: C2APB1ENR1 + - name: C2APB1ENR2 + description: CPU2 APB1 peripheral clock enable register 2 [dual core device only] + byte_offset: 348 + fieldset: C2APB1ENR2 + - name: C2APB2ENR + description: CPU2 APB2 peripheral clock enable register [dual core device only] + byte_offset: 352 + fieldset: C2APB2ENR + - name: C2APB3ENR + description: CPU2 APB3 peripheral clock enable register [dual core device only] + byte_offset: 356 + fieldset: C2APB3ENR + - name: C2AHB1SMENR + description: CPU2 AHB1 peripheral clocks enable in Sleep modes register [dual core device only] + byte_offset: 360 + fieldset: C2AHB1SMENR + - name: C2AHB2SMENR + description: CPU2 AHB2 peripheral clocks enable in Sleep modes register [dual core device only] + byte_offset: 364 + fieldset: C2AHB2SMENR + - name: C2AHB3SMENR + description: CPU2 AHB3 peripheral clocks enable in Sleep mode register [dual core device only] + byte_offset: 368 + fieldset: C2AHB3SMENR + - name: C2APB1SMENR1 + description: CPU2 APB1 peripheral clocks enable in Sleep mode register 1 [dual core device only] + byte_offset: 376 + fieldset: C2APB1SMENR1 + - name: C2APB1SMENR2 + description: CPU2 APB1 peripheral clocks enable in Sleep mode register 2 [dual core device only] + byte_offset: 380 + fieldset: C2APB1SMENR2 + - name: C2APB2SMENR + description: CPU2 APB2 peripheral clocks enable in Sleep mode register [dual core device only] + byte_offset: 384 + fieldset: C2APB2SMENR + - name: C2APB3SMENR + description: CPU2 APB3 peripheral clock enable in Sleep mode register [dual core device only] + byte_offset: 388 + fieldset: C2APB3SMENR fieldset/AHB1ENR: description: AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: CPU1 DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: CPU1 DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: CPU1 DMAMUX1 clock enable - bit_offset: 2 - bit_size: 1 - - name: CRCEN - description: CPU1 CRC clock enable - bit_offset: 12 - bit_size: 1 + - name: DMA1EN + description: CPU1 DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: CPU1 DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: CPU1 DMAMUX1 clock enable + bit_offset: 2 + bit_size: 1 + - name: CRCEN + description: CPU1 CRC clock enable + bit_offset: 12 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1RST - description: DMAMUX1 reset - bit_offset: 2 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1RST + description: DMAMUX1 reset + bit_offset: 2 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 fieldset/AHB1SMENR: description: AHB1 peripheral clocks enable in Sleep modes register fields: - - name: DMA1SMEN - description: DMA1 clock enable during CPU1 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clock enable during CPU1 CSleep mode - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: DMAMUX1 clock enable during CPU1 CSleep mode. - bit_offset: 2 - bit_size: 1 - - name: CRCSMEN - description: CRC clock enable during CPU1 CSleep mode. - bit_offset: 12 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clock enable during CPU1 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clock enable during CPU1 CSleep mode + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: DMAMUX1 clock enable during CPU1 CSleep mode. + bit_offset: 2 + bit_size: 1 + - name: CRCSMEN + description: CRC clock enable during CPU1 CSleep mode. + bit_offset: 12 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: CPU1 IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: CPU1 IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: CPU1 IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOHEN - description: CPU1 IO port H clock enable - bit_offset: 7 - bit_size: 1 + - name: GPIOAEN + description: CPU1 IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: CPU1 IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: CPU1 IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOHEN + description: CPU1 IO port H clock enable + bit_offset: 7 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 fieldset/AHB2SMENR: description: AHB2 peripheral clocks enable in Sleep modes register fields: - - name: GPIOASMEN - description: IO port A clock enable during CPU1 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: IO port B clock enable during CPU1 CSleep mode. - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: IO port C clock enable during CPU1 CSleep mode. - bit_offset: 2 - bit_size: 1 - - name: GPIOHSMEN - description: IO port H clock enable during CPU1 CSleep mode. - bit_offset: 7 - bit_size: 1 + - name: GPIOASMEN + description: IO port A clock enable during CPU1 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: IO port B clock enable during CPU1 CSleep mode. + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: IO port C clock enable during CPU1 CSleep mode. + bit_offset: 2 + bit_size: 1 + - name: GPIOHSMEN + description: IO port H clock enable during CPU1 CSleep mode. + bit_offset: 7 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: PKAEN - description: PKAEN - bit_offset: 16 - bit_size: 1 - - name: AESEN - description: AESEN - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: RNGEN - bit_offset: 18 - bit_size: 1 - - name: HSEMEN - description: HSEMEN - bit_offset: 19 - bit_size: 1 - - name: IPCCEN - description: IPCCEN - bit_offset: 20 - bit_size: 1 - - name: FLASHEN - description: CPU1 Flash interface clock enable - bit_offset: 25 - bit_size: 1 + - name: PKAEN + description: PKAEN + bit_offset: 16 + bit_size: 1 + - name: AESEN + description: AESEN + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: RNGEN + bit_offset: 18 + bit_size: 1 + - name: HSEMEN + description: HSEMEN + bit_offset: 19 + bit_size: 1 + - name: IPCCEN + description: IPCCEN + bit_offset: 20 + bit_size: 1 + - name: FLASHEN + description: CPU1 Flash interface clock enable + bit_offset: 25 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: PKARST - description: PKARST - bit_offset: 16 - bit_size: 1 - - name: AESRST - description: AESRST - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: RNGRST - bit_offset: 18 - bit_size: 1 - - name: HSEMRST - description: HSEMRST - bit_offset: 19 - bit_size: 1 - - name: IPCCRST - description: IPCCRST - bit_offset: 20 - bit_size: 1 - - name: FLASHRST - description: Flash interface reset - bit_offset: 25 - bit_size: 1 + - name: PKARST + description: PKARST + bit_offset: 16 + bit_size: 1 + - name: AESRST + description: AESRST + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: RNGRST + bit_offset: 18 + bit_size: 1 + - name: HSEMRST + description: HSEMRST + bit_offset: 19 + bit_size: 1 + - name: IPCCRST + description: IPCCRST + bit_offset: 20 + bit_size: 1 + - name: FLASHRST + description: Flash interface reset + bit_offset: 25 + bit_size: 1 fieldset/AHB3SMENR: description: AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: PKASMEN - description: PKA accelerator clock enable during CPU1 CSleep mode. - bit_offset: 16 - bit_size: 1 - - name: AESSMEN - description: AES accelerator clock enable during CPU1 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: True RNG clocks enable during CPU1 Csleep and CStop modes - bit_offset: 18 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clock enable during CPU1 CSleep mode. - bit_offset: 23 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2 memory interface clock enable during CPU1 CSleep mode - bit_offset: 24 - bit_size: 1 - - name: FLASHSMEN - description: Flash interface clock enable during CPU1 CSleep mode. - bit_offset: 25 - bit_size: 1 + - name: PKASMEN + description: PKA accelerator clock enable during CPU1 CSleep mode. + bit_offset: 16 + bit_size: 1 + - name: AESSMEN + description: AES accelerator clock enable during CPU1 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: True RNG clocks enable during CPU1 Csleep and CStop modes + bit_offset: 18 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clock enable during CPU1 CSleep mode. + bit_offset: 23 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2 memory interface clock enable during CPU1 CSleep mode + bit_offset: 24 + bit_size: 1 + - name: FLASHSMEN + description: Flash interface clock enable during CPU1 CSleep mode. + bit_offset: 25 + bit_size: 1 fieldset/APB1ENR1: description: APB1 peripheral clock enable register 1 fields: - - name: TIM2EN - description: CPU1 TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: RTCAPBEN - description: CPU1 RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: CPU1 Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: CPU1 SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: CPU1 USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: I2C1EN - description: CPU1 I2C1 clocks enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: CPU1 I2C2 clocks enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: CPU1 I2C3 clocks enable - bit_offset: 23 - bit_size: 1 - - name: DAC1EN - description: CPU1 DAC1 clock enable - bit_offset: 29 - bit_size: 1 - - name: LPTIM1EN - description: CPU1 Low power timer 1 clocks enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: CPU1 TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: RTCAPBEN + description: CPU1 RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: CPU1 Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: CPU1 SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: CPU1 USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: I2C1EN + description: CPU1 I2C1 clocks enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: CPU1 I2C2 clocks enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: CPU1 I2C3 clocks enable + bit_offset: 23 + bit_size: 1 + - name: DAC1EN + description: CPU1 DAC1 clock enable + bit_offset: 29 + bit_size: 1 + - name: LPTIM1EN + description: CPU1 Low power timer 1 clocks enable + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR2: description: APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: CPU1 Low power UART 1 clocks enable - bit_offset: 0 - bit_size: 1 - - name: LPTIM2EN - description: CPU1 Low power timer 2 clocks enable - bit_offset: 5 - bit_size: 1 - - name: LPTIM3EN - description: CPU1 Low power timer 3 clocks enable - bit_offset: 6 - bit_size: 1 + - name: LPUART1EN + description: CPU1 Low power UART 1 clocks enable + bit_offset: 0 + bit_size: 1 + - name: LPTIM2EN + description: CPU1 Low power timer 2 clocks enable + bit_offset: 5 + bit_size: 1 + - name: LPTIM3EN + description: CPU1 Low power timer 3 clocks enable + bit_offset: 6 + bit_size: 1 fieldset/APB1RSTR1: description: APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: DACRST - description: DAC1 reset - bit_offset: 29 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: DACRST + description: DAC1 reset + bit_offset: 29 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR2: description: APB1 peripheral reset register 2 fields: - - name: LPUART1RST - description: Low-power UART 1 reset - bit_offset: 0 - bit_size: 1 - - name: LPTIM2RST - description: Low-power timer 2 reset - bit_offset: 5 - bit_size: 1 - - name: LPTIM3RST - description: Low-power timer 3 reset - bit_offset: 6 - bit_size: 1 + - name: LPUART1RST + description: Low-power UART 1 reset + bit_offset: 0 + bit_size: 1 + - name: LPTIM2RST + description: Low-power timer 2 reset + bit_offset: 5 + bit_size: 1 + - name: LPTIM3RST + description: Low-power timer 3 reset + bit_offset: 6 + bit_size: 1 fieldset/APB1SMENR1: description: APB1 peripheral clocks enable in Sleep mode register 1 fields: - - name: TIM2SMEN - description: TIM2 timer clock enable during CPU1 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC bus clock enable during CPU1 CSleep mode. - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clocks enable during CPU1 CSleep mode. - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clock enable during CPU1 CSleep mode. - bit_offset: 14 - bit_size: 1 - - name: USART2SMEN - description: USART2 clock enable during CPU1 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clock enable during CPU1 Csleep and CStop modes - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clock enable during CPU1 Csleep and CStop modes - bit_offset: 22 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clock enable during CPU1 Csleep and CStop modes - bit_offset: 23 - bit_size: 1 - - name: DACSMEN - description: DAC1 clock enable during CPU1 CSleep mode. - bit_offset: 29 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clock enable during CPU1 Csleep and CStop mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clock enable during CPU1 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC bus clock enable during CPU1 CSleep mode. + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clocks enable during CPU1 CSleep mode. + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clock enable during CPU1 CSleep mode. + bit_offset: 14 + bit_size: 1 + - name: USART2SMEN + description: USART2 clock enable during CPU1 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clock enable during CPU1 Csleep and CStop modes + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clock enable during CPU1 Csleep and CStop modes + bit_offset: 22 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clock enable during CPU1 Csleep and CStop modes + bit_offset: 23 + bit_size: 1 + - name: DACSMEN + description: DAC1 clock enable during CPU1 CSleep mode. + bit_offset: 29 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clock enable during CPU1 Csleep and CStop mode + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR2: description: APB1 peripheral clocks enable in Sleep mode register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clock enable during CPU1 Csleep and CStop modes. - bit_offset: 0 - bit_size: 1 - - name: LPTIM2SMEN - description: Low power timer 2 clock enable during CPU1 Csleep and CStop modes - bit_offset: 5 - bit_size: 1 - - name: LPTIM3SMEN - description: Low power timer 3 clock enable during CPU1 Csleep and CStop modes - bit_offset: 6 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clock enable during CPU1 Csleep and CStop modes. + bit_offset: 0 + bit_size: 1 + - name: LPTIM2SMEN + description: Low power timer 2 clock enable during CPU1 Csleep and CStop modes + bit_offset: 5 + bit_size: 1 + - name: LPTIM3SMEN + description: Low power timer 3 clock enable during CPU1 Csleep and CStop modes + bit_offset: 6 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: ADCEN - description: CPU1 ADC clocks enable - bit_offset: 9 - bit_size: 1 - - name: TIM1EN - description: CPU1 TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: CPU1 SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: CPU1 USART1clocks enable - bit_offset: 14 - bit_size: 1 - - name: TIM16EN - description: CPU1 TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: CPU1 TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 + - name: ADCEN + description: CPU1 ADC clocks enable + bit_offset: 9 + bit_size: 1 + - name: TIM1EN + description: CPU1 TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: CPU1 SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: CPU1 USART1clocks enable + bit_offset: 14 + bit_size: 1 + - name: TIM16EN + description: CPU1 TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: CPU1 TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: ADCRST - description: ADC reset - bit_offset: 9 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 + - name: ADCRST + description: ADC reset + bit_offset: 9 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 fieldset/APB2SMENR: description: APB2 peripheral clocks enable in Sleep mode register fields: - - name: ADCSMEN - description: ADC clocks enable during CPU1 Csleep and CStop modes - bit_offset: 9 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clock enable during CPU1 CSleep mode. - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clock enable during CPU1 CSleep mode. - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1 clock enable during CPU1 Csleep and CStop modes. - bit_offset: 14 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clock enable during CPU1 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clock enable during CPU1 CSleep mode. - bit_offset: 18 - bit_size: 1 + - name: ADCSMEN + description: ADC clocks enable during CPU1 Csleep and CStop modes + bit_offset: 9 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clock enable during CPU1 CSleep mode. + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clock enable during CPU1 CSleep mode. + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1 clock enable during CPU1 Csleep and CStop modes. + bit_offset: 14 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clock enable during CPU1 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clock enable during CPU1 CSleep mode. + bit_offset: 18 + bit_size: 1 fieldset/APB3ENR: description: APB3 peripheral clock enable register fields: - - name: SUBGHZSPIEN - description: sub-GHz radio SPI clock enable - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPIEN + description: sub-GHz radio SPI clock enable + bit_offset: 0 + bit_size: 1 fieldset/APB3RSTR: description: APB3 peripheral reset register fields: - - name: SUBGHZSPIRST - description: Sub-GHz radio SPI reset - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPIRST + description: Sub-GHz radio SPI reset + bit_offset: 0 + bit_size: 1 fieldset/APB3SMENR: description: APB3 peripheral clock enable in Sleep mode register fields: - - name: SUBGHZSPISMEN - description: Sub-GHz radio SPI clock enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPISMEN + description: Sub-GHz radio SPI clock enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 fieldset/BDCR: description: Backup domain control register fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - - name: LSECSSON - description: CSS on LSE enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: CSS on LSE failure Detection - bit_offset: 6 - bit_size: 1 - - name: LSESYSEN - description: LSE system clock enable - bit_offset: 7 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - - name: LSESYSRDY - description: LSE system clock ready - bit_offset: 11 - bit_size: 1 - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low speed clock output enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low speed clock output selection - bit_offset: 25 - bit_size: 1 + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + - name: LSECSSON + description: CSS on LSE enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: CSS on LSE failure Detection + bit_offset: 6 + bit_size: 1 + - name: LSESYSEN + description: LSE system clock enable + bit_offset: 7 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + - name: LSESYSRDY + description: LSE system clock ready + bit_offset: 11 + bit_size: 1 + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low speed clock output enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low speed clock output selection + bit_offset: 25 + bit_size: 1 fieldset/C2AHB1ENR: description: CPU2 AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: CPU2 DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: CPU2 DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: CPU2 DMAMUX1 clock enable - bit_offset: 2 - bit_size: 1 - - name: CRCEN - description: CPU2 CRC clock enable - bit_offset: 12 - bit_size: 1 + - name: DMA1EN + description: CPU2 DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: CPU2 DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: CPU2 DMAMUX1 clock enable + bit_offset: 2 + bit_size: 1 + - name: CRCEN + description: CPU2 CRC clock enable + bit_offset: 12 + bit_size: 1 fieldset/C2AHB1SMENR: - description: "CPU2 AHB1 peripheral clocks enable in Sleep modes register [dual core device only]" + description: CPU2 AHB1 peripheral clocks enable in Sleep modes register [dual core device only] fields: - - name: DMA1SMEN - description: DMA1 clock enable during CPU2 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clock enable during CPU2 CSleep mode. - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: DMAMUX1 clock enable during CPU2 CSleep mode. - bit_offset: 2 - bit_size: 1 - - name: CRCSMEN - description: CRC clock enable during CPU2 CSleep mode. - bit_offset: 12 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clock enable during CPU2 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clock enable during CPU2 CSleep mode. + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: DMAMUX1 clock enable during CPU2 CSleep mode. + bit_offset: 2 + bit_size: 1 + - name: CRCSMEN + description: CRC clock enable during CPU2 CSleep mode. + bit_offset: 12 + bit_size: 1 fieldset/C2AHB2ENR: description: CPU2 AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: CPU2 IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: CPU2 IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: CPU2 IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOHEN - description: CPU2 IO port H clock enable - bit_offset: 7 - bit_size: 1 + - name: GPIOAEN + description: CPU2 IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: CPU2 IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: CPU2 IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOHEN + description: CPU2 IO port H clock enable + bit_offset: 7 + bit_size: 1 fieldset/C2AHB2SMENR: - description: "CPU2 AHB2 peripheral clocks enable in Sleep modes register [dual core device only]" + description: CPU2 AHB2 peripheral clocks enable in Sleep modes register [dual core device only] fields: - - name: GPIOASMEN - description: IO port A clock enable during CPU2 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: IO port B clock enable during CPU2 CSleep mode. - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: IO port C clock enable during CPU2 CSleep mode. - bit_offset: 2 - bit_size: 1 - - name: GPIOHSMEN - description: IO port H clock enable during CPU2 CSleep mode. - bit_offset: 7 - bit_size: 1 + - name: GPIOASMEN + description: IO port A clock enable during CPU2 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: IO port B clock enable during CPU2 CSleep mode. + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: IO port C clock enable during CPU2 CSleep mode. + bit_offset: 2 + bit_size: 1 + - name: GPIOHSMEN + description: IO port H clock enable during CPU2 CSleep mode. + bit_offset: 7 + bit_size: 1 fieldset/C2AHB3ENR: - description: "CPU2 AHB3 peripheral clock enable register [dual core device only]" + description: CPU2 AHB3 peripheral clock enable register [dual core device only] fields: - - name: PKAEN - description: CPU2 PKA accelerator clock enable - bit_offset: 16 - bit_size: 1 - - name: AESEN - description: CPU2 AES accelerator clock enable - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: CPU2 True RNG clocks enable - bit_offset: 18 - bit_size: 1 - - name: HSEMEN - description: CPU2 HSEM clock enable - bit_offset: 19 - bit_size: 1 - - name: IPCCEN - description: CPU2 IPCC interface clock enable - bit_offset: 20 - bit_size: 1 - - name: FLASHEN - description: CPU2 Flash interface clock enable - bit_offset: 25 - bit_size: 1 + - name: PKAEN + description: CPU2 PKA accelerator clock enable + bit_offset: 16 + bit_size: 1 + - name: AESEN + description: CPU2 AES accelerator clock enable + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: CPU2 True RNG clocks enable + bit_offset: 18 + bit_size: 1 + - name: HSEMEN + description: CPU2 HSEM clock enable + bit_offset: 19 + bit_size: 1 + - name: IPCCEN + description: CPU2 IPCC interface clock enable + bit_offset: 20 + bit_size: 1 + - name: FLASHEN + description: CPU2 Flash interface clock enable + bit_offset: 25 + bit_size: 1 fieldset/C2AHB3SMENR: - description: "CPU2 AHB3 peripheral clocks enable in Sleep mode register [dual core device only]" + description: CPU2 AHB3 peripheral clocks enable in Sleep mode register [dual core device only] fields: - - name: PKASMEN - description: PKA accelerator clock enable during CPU2 CSleep mode. - bit_offset: 16 - bit_size: 1 - - name: AESSMEN - description: AES accelerator clock enable during CPU2 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: True RNG clock enable during CPU2 CSleep and CStop mode. - bit_offset: 18 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clock enable during CPU2 CSleep mode. - bit_offset: 23 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2 memory interface clock enable during CPU2 CSleep mode. - bit_offset: 24 - bit_size: 1 - - name: FLASHSMEN - description: Flash interface clock enable during CPU2 CSleep mode. - bit_offset: 25 - bit_size: 1 + - name: PKASMEN + description: PKA accelerator clock enable during CPU2 CSleep mode. + bit_offset: 16 + bit_size: 1 + - name: AESSMEN + description: AES accelerator clock enable during CPU2 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: True RNG clock enable during CPU2 CSleep and CStop mode. + bit_offset: 18 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clock enable during CPU2 CSleep mode. + bit_offset: 23 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2 memory interface clock enable during CPU2 CSleep mode. + bit_offset: 24 + bit_size: 1 + - name: FLASHSMEN + description: Flash interface clock enable during CPU2 CSleep mode. + bit_offset: 25 + bit_size: 1 fieldset/C2APB1ENR1: - description: "CPU2 APB1 peripheral clock enable register 1 [dual core device only]" + description: CPU2 APB1 peripheral clock enable register 1 [dual core device only] fields: - - name: TIM2EN - description: CPU2 TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: RTCAPBEN - description: CPU2 RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: SPI2EN - description: CPU2 SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: CPU2 USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: I2C1EN - description: CPU2 I2C1 clocks enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: CPU2 I2C2 clocks enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: CPU2 I2C3 clocks enable - bit_offset: 23 - bit_size: 1 - - name: DAC1EN - description: CPU2 DAC1 clock enable - bit_offset: 29 - bit_size: 1 - - name: LPTIM1EN - description: CPU2 Low power timer 1 clocks enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: CPU2 TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: RTCAPBEN + description: CPU2 RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: SPI2EN + description: CPU2 SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: CPU2 USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: I2C1EN + description: CPU2 I2C1 clocks enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: CPU2 I2C2 clocks enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: CPU2 I2C3 clocks enable + bit_offset: 23 + bit_size: 1 + - name: DAC1EN + description: CPU2 DAC1 clock enable + bit_offset: 29 + bit_size: 1 + - name: LPTIM1EN + description: CPU2 Low power timer 1 clocks enable + bit_offset: 31 + bit_size: 1 fieldset/C2APB1ENR2: - description: "CPU2 APB1 peripheral clock enable register 2 [dual core device only]" + description: CPU2 APB1 peripheral clock enable register 2 [dual core device only] fields: - - name: LPUART1EN - description: CPU2 Low power UART 1 clocks enable - bit_offset: 0 - bit_size: 1 - - name: LPTIM2EN - description: CPU2 Low power timer 2 clocks enable - bit_offset: 5 - bit_size: 1 - - name: LPTIM3EN - description: CPU2 Low power timer 3 clocks enable - bit_offset: 6 - bit_size: 1 + - name: LPUART1EN + description: CPU2 Low power UART 1 clocks enable + bit_offset: 0 + bit_size: 1 + - name: LPTIM2EN + description: CPU2 Low power timer 2 clocks enable + bit_offset: 5 + bit_size: 1 + - name: LPTIM3EN + description: CPU2 Low power timer 3 clocks enable + bit_offset: 6 + bit_size: 1 fieldset/C2APB1SMENR1: - description: "CPU2 APB1 peripheral clocks enable in Sleep mode register 1 [dual core device only]" + description: CPU2 APB1 peripheral clocks enable in Sleep mode register 1 [dual core device only] fields: - - name: TIM2SMEN - description: TIM2 timer clock enable during CPU2 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC bus clock enable during CPU2 CSleep mode. - bit_offset: 10 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clock enable during CPU2 CSleep mode. - bit_offset: 14 - bit_size: 1 - - name: USART2SMEN - description: USART2 clock enable during CPU2 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clock enable during CPU2 CSleep and CStop modes - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clock enable during CPU2 CSleep and CStop modes - bit_offset: 22 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clock enable during CPU2 CSleep and CStop modes - bit_offset: 23 - bit_size: 1 - - name: DAC1SMEN - description: DAC1 clock enable during CPU2 CSleep mode. - bit_offset: 29 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clock enable during CPU2 CSleep and CStop mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clock enable during CPU2 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC bus clock enable during CPU2 CSleep mode. + bit_offset: 10 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clock enable during CPU2 CSleep mode. + bit_offset: 14 + bit_size: 1 + - name: USART2SMEN + description: USART2 clock enable during CPU2 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clock enable during CPU2 CSleep and CStop modes + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clock enable during CPU2 CSleep and CStop modes + bit_offset: 22 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clock enable during CPU2 CSleep and CStop modes + bit_offset: 23 + bit_size: 1 + - name: DAC1SMEN + description: DAC1 clock enable during CPU2 CSleep mode. + bit_offset: 29 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clock enable during CPU2 CSleep and CStop mode + bit_offset: 31 + bit_size: 1 fieldset/C2APB1SMENR2: - description: "CPU2 APB1 peripheral clocks enable in Sleep mode register 2 [dual core device only]" + description: CPU2 APB1 peripheral clocks enable in Sleep mode register 2 [dual core device only] fields: - - name: LPUART1SMEN - description: Low power UART 1 clock enable during CPU2 CSleep and CStop mode - bit_offset: 0 - bit_size: 1 - - name: LPTIM2SMEN - description: Low power timer 2 clocks enable during CPU2 CSleep and CStop modes. - bit_offset: 5 - bit_size: 1 - - name: LPTIM3SMEN - description: Low power timer 3 clocks enable during CPU2 CSleep and CStop modes. - bit_offset: 6 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clock enable during CPU2 CSleep and CStop mode + bit_offset: 0 + bit_size: 1 + - name: LPTIM2SMEN + description: Low power timer 2 clocks enable during CPU2 CSleep and CStop modes. + bit_offset: 5 + bit_size: 1 + - name: LPTIM3SMEN + description: Low power timer 3 clocks enable during CPU2 CSleep and CStop modes. + bit_offset: 6 + bit_size: 1 fieldset/C2APB2ENR: - description: "CPU2 APB2 peripheral clock enable register [dual core device only]" + description: CPU2 APB2 peripheral clock enable register [dual core device only] fields: - - name: ADCEN - description: ADC clocks enable - bit_offset: 9 - bit_size: 1 - - name: TIM1EN - description: CPU2 TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: CPU2 SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: CPU2 USART1clocks enable - bit_offset: 14 - bit_size: 1 - - name: TIM16EN - description: CPU2 TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: CPU2 TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 + - name: ADCEN + description: ADC clocks enable + bit_offset: 9 + bit_size: 1 + - name: TIM1EN + description: CPU2 TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: CPU2 SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: CPU2 USART1clocks enable + bit_offset: 14 + bit_size: 1 + - name: TIM16EN + description: CPU2 TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: CPU2 TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 fieldset/C2APB2SMENR: - description: "CPU2 APB2 peripheral clocks enable in Sleep mode register [dual core device only]" + description: CPU2 APB2 peripheral clocks enable in Sleep mode register [dual core device only] fields: - - name: ADCSMEN - description: ADC clocks enable during CPU2 Csleep and CStop modes - bit_offset: 9 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clock enable during CPU2 CSleep mode - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clock enable during CPU2 CSleep mode - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1clock enable during CPU2 CSleep and CStop mode - bit_offset: 14 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clock enable during CPU2 CSleep mode - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clock enable during CPU2 CSleep mode - bit_offset: 18 - bit_size: 1 + - name: ADCSMEN + description: ADC clocks enable during CPU2 Csleep and CStop modes + bit_offset: 9 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clock enable during CPU2 CSleep mode + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clock enable during CPU2 CSleep mode + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1clock enable during CPU2 CSleep and CStop mode + bit_offset: 14 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clock enable during CPU2 CSleep mode + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clock enable during CPU2 CSleep mode + bit_offset: 18 + bit_size: 1 fieldset/C2APB3ENR: - description: "CPU2 APB3 peripheral clock enable register [dual core device only]" + description: CPU2 APB3 peripheral clock enable register [dual core device only] fields: - - name: SUBGHZSPIEN - description: CPU2 sub-GHz radio SPI clock enable - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPIEN + description: CPU2 sub-GHz radio SPI clock enable + bit_offset: 0 + bit_size: 1 fieldset/C2APB3SMENR: - description: "CPU2 APB3 peripheral clock enable in Sleep mode register [dual core device only]" + description: CPU2 APB3 peripheral clock enable in Sleep mode register [dual core device only] fields: - - name: SUBGHZSPISMEN - description: sub-GHz radio SPI clock enable during CPU2 CSleep and CStop modes - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPISMEN + description: sub-GHz radio SPI clock enable during CPU2 CSleep and CStop modes + bit_offset: 0 + bit_size: 1 fieldset/CCIPR: description: Peripherals independent clock configuration register fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - - name: SPI2SEL - description: SPI2 I2S clock source selection - bit_offset: 8 - bit_size: 2 - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - - name: I2C2SEL - description: I2C2 clock source selection - bit_offset: 14 - bit_size: 2 - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 18 - bit_size: 2 - - name: LPTIM2SEL - description: Low power timer 2 clock source selection - bit_offset: 20 - bit_size: 2 - - name: LPTIM3SEL - description: Low power timer 3 clock source selection - bit_offset: 22 - bit_size: 2 - - name: ADCSEL - description: ADC clock source selection - bit_offset: 28 - bit_size: 2 - enum: ADCSEL - - name: RNGSEL - description: RNG clock source selection - bit_offset: 30 - bit_size: 2 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + - name: SPI2SEL + description: SPI2 I2S clock source selection + bit_offset: 8 + bit_size: 2 + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + - name: I2C2SEL + description: I2C2 clock source selection + bit_offset: 14 + bit_size: 2 + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 18 + bit_size: 2 + - name: LPTIM2SEL + description: Low power timer 2 clock source selection + bit_offset: 20 + bit_size: 2 + - name: LPTIM3SEL + description: Low power timer 3 clock source selection + bit_offset: 22 + bit_size: 2 + - name: ADCSEL + description: ADC clock source selection + bit_offset: 28 + bit_size: 2 + enum: ADCSEL + - name: RNGSEL + description: RNG clock source selection + bit_offset: 30 + bit_size: 2 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - - name: HPRE - description: "HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.)" - bit_offset: 4 - bit_size: 4 - - name: PPRE1 - description: PCLK1 low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - - name: PPRE2 - description: PCLK2 high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - - name: STOPWUCK - description: Wakeup from Stop and CSS backup clock selection - bit_offset: 15 - bit_size: 1 - - name: HPREF - description: "HCLK1 prescaler flag (CPU1, AHB1, AHB2, and SRAM1)" - bit_offset: 16 - bit_size: 1 - - name: PPRE1F - description: PCLK1 prescaler flag (APB1) - bit_offset: 17 - bit_size: 1 - - name: PPRE2F - description: PCLK2 prescaler flag (APB2) - bit_offset: 18 - bit_size: 1 - - name: MCOSEL - description: Microcontroller clock output - bit_offset: 24 - bit_size: 4 - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + - name: HPRE + description: HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.) + bit_offset: 4 + bit_size: 4 + - name: PPRE1 + description: PCLK1 low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + - name: PPRE2 + description: PCLK2 high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + - name: STOPWUCK + description: Wakeup from Stop and CSS backup clock selection + bit_offset: 15 + bit_size: 1 + - name: HPREF + description: HCLK1 prescaler flag (CPU1, AHB1, AHB2, and SRAM1) + bit_offset: 16 + bit_size: 1 + - name: PPRE1F + description: PCLK1 prescaler flag (APB1) + bit_offset: 17 + bit_size: 1 + - name: PPRE2F + description: PCLK2 prescaler flag (APB2) + bit_offset: 18 + bit_size: 1 + - name: MCOSEL + description: Microcontroller clock output + bit_offset: 24 + bit_size: 4 + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: MSIRDYC - description: MSI ready interrupt clear - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: HSI16 ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE32 ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: CSSC - description: HSE32 Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: MSIRDYC + description: MSI ready interrupt clear + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: HSI16 ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE32 ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: CSSC + description: HSE32 Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: HSI16 ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE32 ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSIE - description: LSE clock security system interrupt enable - bit_offset: 9 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: HSI16 ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE32 ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSIE + description: LSE clock security system interrupt enable + bit_offset: 9 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: HSI16 ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE32 ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: CSSF - description: HSE32 Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: HSI16 ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE32 ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: CSSF + description: HSE32 Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: MSION - description: MSI clock enable - bit_offset: 0 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag (After reset this bit will be read 1 once the MSI is ready) - bit_offset: 1 - bit_size: 1 - - name: MSIPLLEN - description: MSI clock PLL enable - bit_offset: 2 - bit_size: 1 - - name: MSIRGSEL - description: MSI range control selection - bit_offset: 3 - bit_size: 1 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 4 - bit_size: 4 - - name: HSION - description: HSI16 clock enable - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI16 always enable for peripheral kernel clocks. - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI16 clock ready flag. (After wakeup from Stop this bit will be read 1 once the HSI16 is ready) - bit_offset: 10 - bit_size: 1 - - name: HSIASFS - description: HSI16 automatic start from Stop - bit_offset: 11 - bit_size: 1 - - name: HSIKERDY - description: HSI16 kernel clock ready flag for peripherals requests. - bit_offset: 12 - bit_size: 1 - - name: HSEON - description: HSE32 clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE32 clock ready flag - bit_offset: 17 - bit_size: 1 - - name: CSSON - description: HSE32 Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: HSEPRE - description: HSE32 sysclk prescaler - bit_offset: 20 - bit_size: 1 - - name: HSEBYPPWR - description: Enable HSE32 VDDTCXO output on package pin PB0-VDDTCXO. - bit_offset: 21 - bit_size: 1 - - name: PLLON - description: Main PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 0 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag (After reset this bit will be read 1 once the MSI is ready) + bit_offset: 1 + bit_size: 1 + - name: MSIPLLEN + description: MSI clock PLL enable + bit_offset: 2 + bit_size: 1 + - name: MSIRGSEL + description: MSI range control selection + bit_offset: 3 + bit_size: 1 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 4 + bit_size: 4 + - name: HSION + description: HSI16 clock enable + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI16 always enable for peripheral kernel clocks. + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI16 clock ready flag. (After wakeup from Stop this bit will be read 1 once the HSI16 is ready) + bit_offset: 10 + bit_size: 1 + - name: HSIASFS + description: HSI16 automatic start from Stop + bit_offset: 11 + bit_size: 1 + - name: HSIKERDY + description: HSI16 kernel clock ready flag for peripherals requests. + bit_offset: 12 + bit_size: 1 + - name: HSEON + description: HSE32 clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE32 clock ready flag + bit_offset: 17 + bit_size: 1 + - name: CSSON + description: HSE32 Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: HSEPRE + description: HSE32 sysclk prescaler + bit_offset: 20 + bit_size: 1 + - name: HSEBYPPWR + description: Enable HSE32 VDDTCXO output on package pin PB0-VDDTCXO. + bit_offset: 21 + bit_size: 1 + - name: PLLON + description: Main PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: Control/status register fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSIPRE - description: LSI frequency prescaler - bit_offset: 4 - bit_size: 1 - - name: MSISRANGE - description: MSI clock ranges - bit_offset: 8 - bit_size: 4 - - name: RFRSTF - description: Radio in reset status flag - bit_offset: 14 - bit_size: 1 - - name: RFRST - description: Radio reset - bit_offset: 15 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: RFILARSTF - description: Radio illegal access flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: BOR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSIPRE + description: LSI frequency prescaler + bit_offset: 4 + bit_size: 1 + - name: MSISRANGE + description: MSI clock ranges + bit_offset: 8 + bit_size: 4 + - name: RFRSTF + description: Radio in reset status flag + bit_offset: 14 + bit_size: 1 + - name: RFRST + description: Radio reset + bit_offset: 15 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: RFILARSTF + description: Radio illegal access flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: BOR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/EXTCFGR: description: Extended clock recovery register fields: - - name: SHDHPRE - description: "HCLK3 shared prescaler (AHB3, Flash, and SRAM2)" - bit_offset: 0 - bit_size: 4 - - name: C2HPRE - description: "[dual core device only] HCLK2 prescaler (CPU2)" - bit_offset: 4 - bit_size: 4 - - name: SHDHPREF - description: "HCLK3 shared prescaler flag (AHB3, Flash, and SRAM2)" - bit_offset: 16 - bit_size: 1 - - name: C2HPREF - description: CLK2 prescaler flag (CPU2) - bit_offset: 17 - bit_size: 1 + - name: SHDHPRE + description: HCLK3 shared prescaler (AHB3, Flash, and SRAM2) + bit_offset: 0 + bit_size: 4 + - name: C2HPRE + description: '[dual core device only] HCLK2 prescaler (CPU2)' + bit_offset: 4 + bit_size: 4 + - name: SHDHPREF + description: HCLK3 shared prescaler flag (AHB3, Flash, and SRAM2) + bit_offset: 16 + bit_size: 1 + - name: C2HPREF + description: CLK2 prescaler flag (CPU2) + bit_offset: 17 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: MSICAL - description: MSI clock calibration - bit_offset: 0 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 8 - bit_size: 8 - - name: HSICAL - description: HSI16 clock calibration - bit_offset: 16 - bit_size: 8 - - name: HSITRIM - description: HSI16 clock trimming - bit_offset: 24 - bit_size: 7 + - name: MSICAL + description: MSI clock calibration + bit_offset: 0 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 8 + bit_size: 8 + - name: HSICAL + description: HSI16 clock calibration + bit_offset: 16 + bit_size: 8 + - name: HSITRIM + description: HSI16 clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLSRC - description: Main PLL entry clock source - bit_offset: 0 - bit_size: 2 - - name: PLLM - description: Division factor for the main PLL input clock - bit_offset: 4 - bit_size: 3 - - name: PLLN - description: Main PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: Main PLL PLLPCLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: Main PLL division factor for PLLPCLK. - bit_offset: 17 - bit_size: 5 - - name: PLLQEN - description: Main PLL PLLQCLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLQ - description: Main PLL division factor for PLLQCLK - bit_offset: 25 - bit_size: 3 - - name: PLLREN - description: Main PLL PLLRCLK output enable - bit_offset: 28 - bit_size: 1 - - name: PLLR - description: Main PLL division factor for PLLRCLK - bit_offset: 29 - bit_size: 3 + - name: PLLSRC + description: Main PLL entry clock source + bit_offset: 0 + bit_size: 2 + - name: PLLM + description: Division factor for the main PLL input clock + bit_offset: 4 + bit_size: 3 + - name: PLLN + description: Main PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: Main PLL PLLPCLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: Main PLL division factor for PLLPCLK. + bit_offset: 17 + bit_size: 5 + - name: PLLQEN + description: Main PLL PLLQCLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLQ + description: Main PLL division factor for PLLQCLK + bit_offset: 25 + bit_size: 3 + - name: PLLREN + description: Main PLL PLLRCLK output enable + bit_offset: 28 + bit_size: 1 + - name: PLLR + description: Main PLL division factor for PLLRCLK + bit_offset: 29 + bit_size: 3 enum/ADCSEL: bit_size: 2 variants: - - name: HSI16 - description: HSI16 used as ADC clock source - value: 1 - - name: PLLPCLK - description: PLLPCLK used as ADC clock source - value: 2 - - name: SYSCLK - description: SYSCLK used as ADC clock source - value: 3 + - name: HSI16 + description: HSI16 used as ADC clock source + value: 1 + - name: PLLPCLK + description: PLLPCLK used as ADC clock source + value: 2 + - name: SYSCLK + description: SYSCLK used as ADC clock source + value: 3 diff --git a/data/registers/rcc_wle.yaml b/data/registers/rcc_wle.yaml index 0ebd82c..bbe6b99 100644 --- a/data/registers/rcc_wle.yaml +++ b/data/registers/rcc_wle.yaml @@ -1,1059 +1,1058 @@ ---- block/RCC: description: Reset and clock control items: - - name: CR - description: Clock control register - byte_offset: 0 - fieldset: CR - - name: ICSCR - description: Internal clock sources calibration register - byte_offset: 4 - fieldset: ICSCR - - name: CFGR - description: Clock configuration register - byte_offset: 8 - fieldset: CFGR - - name: PLLCFGR - description: PLL configuration register - byte_offset: 12 - fieldset: PLLCFGR - - name: CIER - description: Clock interrupt enable register - byte_offset: 24 - fieldset: CIER - - name: CIFR - description: Clock interrupt flag register - byte_offset: 28 - access: Read - fieldset: CIFR - - name: CICR - description: Clock interrupt clear register - byte_offset: 32 - access: Write - fieldset: CICR - - name: AHB1RSTR - description: AHB1 peripheral reset register - byte_offset: 40 - fieldset: AHB1RSTR - - name: AHB2RSTR - description: AHB2 peripheral reset register - byte_offset: 44 - fieldset: AHB2RSTR - - name: AHB3RSTR - description: AHB3 peripheral reset register - byte_offset: 48 - fieldset: AHB3RSTR - - name: APB1RSTR1 - description: APB1 peripheral reset register 1 - byte_offset: 56 - fieldset: APB1RSTR1 - - name: APB1RSTR2 - description: APB1 peripheral reset register 2 - byte_offset: 60 - fieldset: APB1RSTR2 - - name: APB2RSTR - description: APB2 peripheral reset register - byte_offset: 64 - fieldset: APB2RSTR - - name: APB3RSTR - description: APB3 peripheral reset register - byte_offset: 68 - fieldset: APB3RSTR - - name: AHB1ENR - description: AHB1 peripheral clock enable register - byte_offset: 72 - fieldset: AHB1ENR - - name: AHB2ENR - description: AHB2 peripheral clock enable register - byte_offset: 76 - fieldset: AHB2ENR - - name: AHB3ENR - description: AHB3 peripheral clock enable register - byte_offset: 80 - fieldset: AHB3ENR - - name: APB1ENR1 - description: APB1 peripheral clock enable register 1 - byte_offset: 88 - fieldset: APB1ENR1 - - name: APB1ENR2 - description: APB1 peripheral clock enable register 2 - byte_offset: 92 - fieldset: APB1ENR2 - - name: APB2ENR - description: APB2 peripheral clock enable register - byte_offset: 96 - fieldset: APB2ENR - - name: APB3ENR - description: APB3 peripheral clock enable register - byte_offset: 100 - fieldset: APB3ENR - - name: AHB1SMENR - description: AHB1 peripheral clocks enable in Sleep modes register - byte_offset: 104 - fieldset: AHB1SMENR - - name: AHB2SMENR - description: AHB2 peripheral clocks enable in Sleep modes register - byte_offset: 108 - fieldset: AHB2SMENR - - name: AHB3SMENR - description: AHB3 peripheral clocks enable in Sleep and Stop modes register - byte_offset: 112 - fieldset: AHB3SMENR - - name: APB1SMENR1 - description: APB1 peripheral clocks enable in Sleep mode register 1 - byte_offset: 120 - fieldset: APB1SMENR1 - - name: APB1SMENR2 - description: APB1 peripheral clocks enable in Sleep mode register 2 - byte_offset: 124 - fieldset: APB1SMENR2 - - name: APB2SMENR - description: APB2 peripheral clocks enable in Sleep mode register - byte_offset: 128 - fieldset: APB2SMENR - - name: APB3SMENR - description: APB3 peripheral clock enable in Sleep mode register - byte_offset: 132 - fieldset: APB3SMENR - - name: CCIPR - description: Peripherals independent clock configuration register - byte_offset: 136 - fieldset: CCIPR - - name: BDCR - description: Backup domain control register - byte_offset: 144 - fieldset: BDCR - - name: CSR - description: Control/status register - byte_offset: 148 - fieldset: CSR - - name: EXTCFGR - description: Extended clock recovery register - byte_offset: 264 - fieldset: EXTCFGR + - name: CR + description: Clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR + description: Internal clock sources calibration register + byte_offset: 4 + fieldset: ICSCR + - name: CFGR + description: Clock configuration register + byte_offset: 8 + fieldset: CFGR + - name: PLLCFGR + description: PLL configuration register + byte_offset: 12 + fieldset: PLLCFGR + - name: CIER + description: Clock interrupt enable register + byte_offset: 24 + fieldset: CIER + - name: CIFR + description: Clock interrupt flag register + byte_offset: 28 + access: Read + fieldset: CIFR + - name: CICR + description: Clock interrupt clear register + byte_offset: 32 + access: Write + fieldset: CICR + - name: AHB1RSTR + description: AHB1 peripheral reset register + byte_offset: 40 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: AHB2 peripheral reset register + byte_offset: 44 + fieldset: AHB2RSTR + - name: AHB3RSTR + description: AHB3 peripheral reset register + byte_offset: 48 + fieldset: AHB3RSTR + - name: APB1RSTR1 + description: APB1 peripheral reset register 1 + byte_offset: 56 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: APB1 peripheral reset register 2 + byte_offset: 60 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: APB2 peripheral reset register + byte_offset: 64 + fieldset: APB2RSTR + - name: APB3RSTR + description: APB3 peripheral reset register + byte_offset: 68 + fieldset: APB3RSTR + - name: AHB1ENR + description: AHB1 peripheral clock enable register + byte_offset: 72 + fieldset: AHB1ENR + - name: AHB2ENR + description: AHB2 peripheral clock enable register + byte_offset: 76 + fieldset: AHB2ENR + - name: AHB3ENR + description: AHB3 peripheral clock enable register + byte_offset: 80 + fieldset: AHB3ENR + - name: APB1ENR1 + description: APB1 peripheral clock enable register 1 + byte_offset: 88 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: APB1 peripheral clock enable register 2 + byte_offset: 92 + fieldset: APB1ENR2 + - name: APB2ENR + description: APB2 peripheral clock enable register + byte_offset: 96 + fieldset: APB2ENR + - name: APB3ENR + description: APB3 peripheral clock enable register + byte_offset: 100 + fieldset: APB3ENR + - name: AHB1SMENR + description: AHB1 peripheral clocks enable in Sleep modes register + byte_offset: 104 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: AHB2 peripheral clocks enable in Sleep modes register + byte_offset: 108 + fieldset: AHB2SMENR + - name: AHB3SMENR + description: AHB3 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 112 + fieldset: AHB3SMENR + - name: APB1SMENR1 + description: APB1 peripheral clocks enable in Sleep mode register 1 + byte_offset: 120 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: APB1 peripheral clocks enable in Sleep mode register 2 + byte_offset: 124 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: APB2 peripheral clocks enable in Sleep mode register + byte_offset: 128 + fieldset: APB2SMENR + - name: APB3SMENR + description: APB3 peripheral clock enable in Sleep mode register + byte_offset: 132 + fieldset: APB3SMENR + - name: CCIPR + description: Peripherals independent clock configuration register + byte_offset: 136 + fieldset: CCIPR + - name: BDCR + description: Backup domain control register + byte_offset: 144 + fieldset: BDCR + - name: CSR + description: Control/status register + byte_offset: 148 + fieldset: CSR + - name: EXTCFGR + description: Extended clock recovery register + byte_offset: 264 + fieldset: EXTCFGR fieldset/AHB1ENR: description: AHB1 peripheral clock enable register fields: - - name: DMA1EN - description: CPU1 DMA1 clock enable - bit_offset: 0 - bit_size: 1 - - name: DMA2EN - description: CPU1 DMA2 clock enable - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1EN - description: CPU1 DMAMUX1 clock enable - bit_offset: 2 - bit_size: 1 - - name: CRCEN - description: CPU1 CRC clock enable - bit_offset: 12 - bit_size: 1 + - name: DMA1EN + description: CPU1 DMA1 clock enable + bit_offset: 0 + bit_size: 1 + - name: DMA2EN + description: CPU1 DMA2 clock enable + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1EN + description: CPU1 DMAMUX1 clock enable + bit_offset: 2 + bit_size: 1 + - name: CRCEN + description: CPU1 CRC clock enable + bit_offset: 12 + bit_size: 1 fieldset/AHB1RSTR: description: AHB1 peripheral reset register fields: - - name: DMA1RST - description: DMA1 reset - bit_offset: 0 - bit_size: 1 - - name: DMA2RST - description: DMA2 reset - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1RST - description: DMAMUX1 reset - bit_offset: 2 - bit_size: 1 - - name: CRCRST - description: CRC reset - bit_offset: 12 - bit_size: 1 + - name: DMA1RST + description: DMA1 reset + bit_offset: 0 + bit_size: 1 + - name: DMA2RST + description: DMA2 reset + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1RST + description: DMAMUX1 reset + bit_offset: 2 + bit_size: 1 + - name: CRCRST + description: CRC reset + bit_offset: 12 + bit_size: 1 fieldset/AHB1SMENR: description: AHB1 peripheral clocks enable in Sleep modes register fields: - - name: DMA1SMEN - description: DMA1 clock enable during CPU1 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: DMA2SMEN - description: DMA2 clock enable during CPU1 CSleep mode - bit_offset: 1 - bit_size: 1 - - name: DMAMUX1SMEN - description: DMAMUX1 clock enable during CPU1 CSleep mode. - bit_offset: 2 - bit_size: 1 - - name: CRCSMEN - description: CRC clock enable during CPU1 CSleep mode. - bit_offset: 12 - bit_size: 1 + - name: DMA1SMEN + description: DMA1 clock enable during CPU1 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: DMA2SMEN + description: DMA2 clock enable during CPU1 CSleep mode + bit_offset: 1 + bit_size: 1 + - name: DMAMUX1SMEN + description: DMAMUX1 clock enable during CPU1 CSleep mode. + bit_offset: 2 + bit_size: 1 + - name: CRCSMEN + description: CRC clock enable during CPU1 CSleep mode. + bit_offset: 12 + bit_size: 1 fieldset/AHB2ENR: description: AHB2 peripheral clock enable register fields: - - name: GPIOAEN - description: CPU1 IO port A clock enable - bit_offset: 0 - bit_size: 1 - - name: GPIOBEN - description: CPU1 IO port B clock enable - bit_offset: 1 - bit_size: 1 - - name: GPIOCEN - description: CPU1 IO port C clock enable - bit_offset: 2 - bit_size: 1 - - name: GPIOHEN - description: CPU1 IO port H clock enable - bit_offset: 7 - bit_size: 1 + - name: GPIOAEN + description: CPU1 IO port A clock enable + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: CPU1 IO port B clock enable + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: CPU1 IO port C clock enable + bit_offset: 2 + bit_size: 1 + - name: GPIOHEN + description: CPU1 IO port H clock enable + bit_offset: 7 + bit_size: 1 fieldset/AHB2RSTR: description: AHB2 peripheral reset register fields: - - name: GPIOARST - description: IO port A reset - bit_offset: 0 - bit_size: 1 - - name: GPIOBRST - description: IO port B reset - bit_offset: 1 - bit_size: 1 - - name: GPIOCRST - description: IO port C reset - bit_offset: 2 - bit_size: 1 - - name: GPIOHRST - description: IO port H reset - bit_offset: 7 - bit_size: 1 + - name: GPIOARST + description: IO port A reset + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: IO port B reset + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: IO port C reset + bit_offset: 2 + bit_size: 1 + - name: GPIOHRST + description: IO port H reset + bit_offset: 7 + bit_size: 1 fieldset/AHB2SMENR: description: AHB2 peripheral clocks enable in Sleep modes register fields: - - name: GPIOASMEN - description: IO port A clock enable during CPU1 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: GPIOBSMEN - description: IO port B clock enable during CPU1 CSleep mode. - bit_offset: 1 - bit_size: 1 - - name: GPIOCSMEN - description: IO port C clock enable during CPU1 CSleep mode. - bit_offset: 2 - bit_size: 1 - - name: GPIOHSMEN - description: IO port H clock enable during CPU1 CSleep mode. - bit_offset: 7 - bit_size: 1 + - name: GPIOASMEN + description: IO port A clock enable during CPU1 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: IO port B clock enable during CPU1 CSleep mode. + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: IO port C clock enable during CPU1 CSleep mode. + bit_offset: 2 + bit_size: 1 + - name: GPIOHSMEN + description: IO port H clock enable during CPU1 CSleep mode. + bit_offset: 7 + bit_size: 1 fieldset/AHB3ENR: description: AHB3 peripheral clock enable register fields: - - name: PKAEN - description: PKAEN - bit_offset: 16 - bit_size: 1 - - name: AESEN - description: AESEN - bit_offset: 17 - bit_size: 1 - - name: RNGEN - description: RNGEN - bit_offset: 18 - bit_size: 1 - - name: HSEMEN - description: HSEMEN - bit_offset: 19 - bit_size: 1 - - name: FLASHEN - description: CPU1 Flash interface clock enable - bit_offset: 25 - bit_size: 1 + - name: PKAEN + description: PKAEN + bit_offset: 16 + bit_size: 1 + - name: AESEN + description: AESEN + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: RNGEN + bit_offset: 18 + bit_size: 1 + - name: HSEMEN + description: HSEMEN + bit_offset: 19 + bit_size: 1 + - name: FLASHEN + description: CPU1 Flash interface clock enable + bit_offset: 25 + bit_size: 1 fieldset/AHB3RSTR: description: AHB3 peripheral reset register fields: - - name: PKARST - description: PKARST - bit_offset: 16 - bit_size: 1 - - name: AESRST - description: AESRST - bit_offset: 17 - bit_size: 1 - - name: RNGRST - description: RNGRST - bit_offset: 18 - bit_size: 1 - - name: HSEMRST - description: HSEMRST - bit_offset: 19 - bit_size: 1 - - name: FLASHRST - description: Flash interface reset - bit_offset: 25 - bit_size: 1 + - name: PKARST + description: PKARST + bit_offset: 16 + bit_size: 1 + - name: AESRST + description: AESRST + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: RNGRST + bit_offset: 18 + bit_size: 1 + - name: HSEMRST + description: HSEMRST + bit_offset: 19 + bit_size: 1 + - name: FLASHRST + description: Flash interface reset + bit_offset: 25 + bit_size: 1 fieldset/AHB3SMENR: description: AHB3 peripheral clocks enable in Sleep and Stop modes register fields: - - name: PKASMEN - description: PKA accelerator clock enable during CPU1 CSleep mode. - bit_offset: 16 - bit_size: 1 - - name: AESSMEN - description: AES accelerator clock enable during CPU1 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: RNGSMEN - description: True RNG clocks enable during CPU1 Csleep and CStop modes - bit_offset: 18 - bit_size: 1 - - name: SRAM1SMEN - description: SRAM1 interface clock enable during CPU1 CSleep mode. - bit_offset: 23 - bit_size: 1 - - name: SRAM2SMEN - description: SRAM2 memory interface clock enable during CPU1 CSleep mode - bit_offset: 24 - bit_size: 1 - - name: FLASHSMEN - description: Flash interface clock enable during CPU1 CSleep mode. - bit_offset: 25 - bit_size: 1 + - name: PKASMEN + description: PKA accelerator clock enable during CPU1 CSleep mode. + bit_offset: 16 + bit_size: 1 + - name: AESSMEN + description: AES accelerator clock enable during CPU1 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: True RNG clocks enable during CPU1 Csleep and CStop modes + bit_offset: 18 + bit_size: 1 + - name: SRAM1SMEN + description: SRAM1 interface clock enable during CPU1 CSleep mode. + bit_offset: 23 + bit_size: 1 + - name: SRAM2SMEN + description: SRAM2 memory interface clock enable during CPU1 CSleep mode + bit_offset: 24 + bit_size: 1 + - name: FLASHSMEN + description: Flash interface clock enable during CPU1 CSleep mode. + bit_offset: 25 + bit_size: 1 fieldset/APB1ENR1: description: APB1 peripheral clock enable register 1 fields: - - name: TIM2EN - description: CPU1 TIM2 timer clock enable - bit_offset: 0 - bit_size: 1 - - name: RTCAPBEN - description: CPU1 RTC APB clock enable - bit_offset: 10 - bit_size: 1 - - name: WWDGEN - description: CPU1 Window watchdog clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI2EN - description: CPU1 SPI2 clock enable - bit_offset: 14 - bit_size: 1 - - name: USART2EN - description: CPU1 USART2 clock enable - bit_offset: 17 - bit_size: 1 - - name: I2C1EN - description: CPU1 I2C1 clocks enable - bit_offset: 21 - bit_size: 1 - - name: I2C2EN - description: CPU1 I2C2 clocks enable - bit_offset: 22 - bit_size: 1 - - name: I2C3EN - description: CPU1 I2C3 clocks enable - bit_offset: 23 - bit_size: 1 - - name: DAC1EN - description: CPU1 DAC1 clock enable - bit_offset: 29 - bit_size: 1 - - name: LPTIM1EN - description: CPU1 Low power timer 1 clocks enable - bit_offset: 31 - bit_size: 1 + - name: TIM2EN + description: CPU1 TIM2 timer clock enable + bit_offset: 0 + bit_size: 1 + - name: RTCAPBEN + description: CPU1 RTC APB clock enable + bit_offset: 10 + bit_size: 1 + - name: WWDGEN + description: CPU1 Window watchdog clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI2EN + description: CPU1 SPI2 clock enable + bit_offset: 14 + bit_size: 1 + - name: USART2EN + description: CPU1 USART2 clock enable + bit_offset: 17 + bit_size: 1 + - name: I2C1EN + description: CPU1 I2C1 clocks enable + bit_offset: 21 + bit_size: 1 + - name: I2C2EN + description: CPU1 I2C2 clocks enable + bit_offset: 22 + bit_size: 1 + - name: I2C3EN + description: CPU1 I2C3 clocks enable + bit_offset: 23 + bit_size: 1 + - name: DAC1EN + description: CPU1 DAC1 clock enable + bit_offset: 29 + bit_size: 1 + - name: LPTIM1EN + description: CPU1 Low power timer 1 clocks enable + bit_offset: 31 + bit_size: 1 fieldset/APB1ENR2: description: APB1 peripheral clock enable register 2 fields: - - name: LPUART1EN - description: CPU1 Low power UART 1 clocks enable - bit_offset: 0 - bit_size: 1 - - name: LPTIM2EN - description: CPU1 Low power timer 2 clocks enable - bit_offset: 5 - bit_size: 1 - - name: LPTIM3EN - description: CPU1 Low power timer 3 clocks enable - bit_offset: 6 - bit_size: 1 + - name: LPUART1EN + description: CPU1 Low power UART 1 clocks enable + bit_offset: 0 + bit_size: 1 + - name: LPTIM2EN + description: CPU1 Low power timer 2 clocks enable + bit_offset: 5 + bit_size: 1 + - name: LPTIM3EN + description: CPU1 Low power timer 3 clocks enable + bit_offset: 6 + bit_size: 1 fieldset/APB1RSTR1: description: APB1 peripheral reset register 1 fields: - - name: TIM2RST - description: TIM2 timer reset - bit_offset: 0 - bit_size: 1 - - name: SPI2RST - description: SPI2 reset - bit_offset: 14 - bit_size: 1 - - name: USART2RST - description: USART2 reset - bit_offset: 17 - bit_size: 1 - - name: I2C1RST - description: I2C1 reset - bit_offset: 21 - bit_size: 1 - - name: I2C2RST - description: I2C2 reset - bit_offset: 22 - bit_size: 1 - - name: I2C3RST - description: I2C3 reset - bit_offset: 23 - bit_size: 1 - - name: DACRST - description: DAC reset - bit_offset: 29 - bit_size: 1 - - name: LPTIM1RST - description: Low Power Timer 1 reset - bit_offset: 31 - bit_size: 1 + - name: TIM2RST + description: TIM2 timer reset + bit_offset: 0 + bit_size: 1 + - name: SPI2RST + description: SPI2 reset + bit_offset: 14 + bit_size: 1 + - name: USART2RST + description: USART2 reset + bit_offset: 17 + bit_size: 1 + - name: I2C1RST + description: I2C1 reset + bit_offset: 21 + bit_size: 1 + - name: I2C2RST + description: I2C2 reset + bit_offset: 22 + bit_size: 1 + - name: I2C3RST + description: I2C3 reset + bit_offset: 23 + bit_size: 1 + - name: DACRST + description: DAC reset + bit_offset: 29 + bit_size: 1 + - name: LPTIM1RST + description: Low Power Timer 1 reset + bit_offset: 31 + bit_size: 1 fieldset/APB1RSTR2: description: APB1 peripheral reset register 2 fields: - - name: LPUART1RST - description: Low-power UART 1 reset - bit_offset: 0 - bit_size: 1 - - name: LPTIM2RST - description: Low-power timer 2 reset - bit_offset: 5 - bit_size: 1 - - name: LPTIM3RST - description: Low-power timer 3 reset - bit_offset: 6 - bit_size: 1 + - name: LPUART1RST + description: Low-power UART 1 reset + bit_offset: 0 + bit_size: 1 + - name: LPTIM2RST + description: Low-power timer 2 reset + bit_offset: 5 + bit_size: 1 + - name: LPTIM3RST + description: Low-power timer 3 reset + bit_offset: 6 + bit_size: 1 fieldset/APB1SMENR1: description: APB1 peripheral clocks enable in Sleep mode register 1 fields: - - name: TIM2SMEN - description: TIM2 timer clock enable during CPU1 CSleep mode. - bit_offset: 0 - bit_size: 1 - - name: RTCAPBSMEN - description: RTC bus clock enable during CPU1 CSleep mode. - bit_offset: 10 - bit_size: 1 - - name: WWDGSMEN - description: Window watchdog clocks enable during CPU1 CSleep mode. - bit_offset: 11 - bit_size: 1 - - name: SPI2SMEN - description: SPI2 clock enable during CPU1 CSleep mode. - bit_offset: 14 - bit_size: 1 - - name: USART2SMEN - description: USART2 clock enable during CPU1 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: I2C1SMEN - description: I2C1 clock enable during CPU1 Csleep and CStop modes - bit_offset: 21 - bit_size: 1 - - name: I2C2SMEN - description: I2C2 clock enable during CPU1 Csleep and CStop modes - bit_offset: 22 - bit_size: 1 - - name: I2C3SMEN - description: I2C3 clock enable during CPU1 Csleep and CStop modes - bit_offset: 23 - bit_size: 1 - - name: DACSMEN - description: DAC clock enable during CPU1 CSleep mode. - bit_offset: 29 - bit_size: 1 - - name: LPTIM1SMEN - description: Low power timer 1 clock enable during CPU1 Csleep and CStop mode - bit_offset: 31 - bit_size: 1 + - name: TIM2SMEN + description: TIM2 timer clock enable during CPU1 CSleep mode. + bit_offset: 0 + bit_size: 1 + - name: RTCAPBSMEN + description: RTC bus clock enable during CPU1 CSleep mode. + bit_offset: 10 + bit_size: 1 + - name: WWDGSMEN + description: Window watchdog clocks enable during CPU1 CSleep mode. + bit_offset: 11 + bit_size: 1 + - name: SPI2SMEN + description: SPI2 clock enable during CPU1 CSleep mode. + bit_offset: 14 + bit_size: 1 + - name: USART2SMEN + description: USART2 clock enable during CPU1 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: I2C1SMEN + description: I2C1 clock enable during CPU1 Csleep and CStop modes + bit_offset: 21 + bit_size: 1 + - name: I2C2SMEN + description: I2C2 clock enable during CPU1 Csleep and CStop modes + bit_offset: 22 + bit_size: 1 + - name: I2C3SMEN + description: I2C3 clock enable during CPU1 Csleep and CStop modes + bit_offset: 23 + bit_size: 1 + - name: DACSMEN + description: DAC clock enable during CPU1 CSleep mode. + bit_offset: 29 + bit_size: 1 + - name: LPTIM1SMEN + description: Low power timer 1 clock enable during CPU1 Csleep and CStop mode + bit_offset: 31 + bit_size: 1 fieldset/APB1SMENR2: description: APB1 peripheral clocks enable in Sleep mode register 2 fields: - - name: LPUART1SMEN - description: Low power UART 1 clock enable during CPU1 Csleep and CStop modes. - bit_offset: 0 - bit_size: 1 - - name: LPTIM2SMEN - description: Low power timer 2 clock enable during CPU1 Csleep and CStop modes - bit_offset: 5 - bit_size: 1 - - name: LPTIM3SMEN - description: Low power timer 3 clock enable during CPU1 Csleep and CStop modes - bit_offset: 6 - bit_size: 1 + - name: LPUART1SMEN + description: Low power UART 1 clock enable during CPU1 Csleep and CStop modes. + bit_offset: 0 + bit_size: 1 + - name: LPTIM2SMEN + description: Low power timer 2 clock enable during CPU1 Csleep and CStop modes + bit_offset: 5 + bit_size: 1 + - name: LPTIM3SMEN + description: Low power timer 3 clock enable during CPU1 Csleep and CStop modes + bit_offset: 6 + bit_size: 1 fieldset/APB2ENR: description: APB2 peripheral clock enable register fields: - - name: ADCEN - description: CPU1 ADC clocks enable - bit_offset: 9 - bit_size: 1 - - name: TIM1EN - description: CPU1 TIM1 timer clock enable - bit_offset: 11 - bit_size: 1 - - name: SPI1EN - description: CPU1 SPI1 clock enable - bit_offset: 12 - bit_size: 1 - - name: USART1EN - description: CPU1 USART1clocks enable - bit_offset: 14 - bit_size: 1 - - name: TIM16EN - description: CPU1 TIM16 timer clock enable - bit_offset: 17 - bit_size: 1 - - name: TIM17EN - description: CPU1 TIM17 timer clock enable - bit_offset: 18 - bit_size: 1 + - name: ADCEN + description: CPU1 ADC clocks enable + bit_offset: 9 + bit_size: 1 + - name: TIM1EN + description: CPU1 TIM1 timer clock enable + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: CPU1 SPI1 clock enable + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: CPU1 USART1clocks enable + bit_offset: 14 + bit_size: 1 + - name: TIM16EN + description: CPU1 TIM16 timer clock enable + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: CPU1 TIM17 timer clock enable + bit_offset: 18 + bit_size: 1 fieldset/APB2RSTR: description: APB2 peripheral reset register fields: - - name: ADCRST - description: ADC reset - bit_offset: 9 - bit_size: 1 - - name: TIM1RST - description: TIM1 timer reset - bit_offset: 11 - bit_size: 1 - - name: SPI1RST - description: SPI1 reset - bit_offset: 12 - bit_size: 1 - - name: USART1RST - description: USART1 reset - bit_offset: 14 - bit_size: 1 - - name: TIM16RST - description: TIM16 timer reset - bit_offset: 17 - bit_size: 1 - - name: TIM17RST - description: TIM17 timer reset - bit_offset: 18 - bit_size: 1 + - name: ADCRST + description: ADC reset + bit_offset: 9 + bit_size: 1 + - name: TIM1RST + description: TIM1 timer reset + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: SPI1 reset + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: USART1 reset + bit_offset: 14 + bit_size: 1 + - name: TIM16RST + description: TIM16 timer reset + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: TIM17 timer reset + bit_offset: 18 + bit_size: 1 fieldset/APB2SMENR: description: APB2 peripheral clocks enable in Sleep mode register fields: - - name: ADCSMEN - description: ADC clocks enable during CPU1 Csleep and CStop modes - bit_offset: 9 - bit_size: 1 - - name: TIM1SMEN - description: TIM1 timer clock enable during CPU1 CSleep mode. - bit_offset: 11 - bit_size: 1 - - name: SPI1SMEN - description: SPI1 clock enable during CPU1 CSleep mode. - bit_offset: 12 - bit_size: 1 - - name: USART1SMEN - description: USART1 clock enable during CPU1 Csleep and CStop modes. - bit_offset: 14 - bit_size: 1 - - name: TIM16SMEN - description: TIM16 timer clock enable during CPU1 CSleep mode. - bit_offset: 17 - bit_size: 1 - - name: TIM17SMEN - description: TIM17 timer clock enable during CPU1 CSleep mode. - bit_offset: 18 - bit_size: 1 + - name: ADCSMEN + description: ADC clocks enable during CPU1 Csleep and CStop modes + bit_offset: 9 + bit_size: 1 + - name: TIM1SMEN + description: TIM1 timer clock enable during CPU1 CSleep mode. + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: SPI1 clock enable during CPU1 CSleep mode. + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: USART1 clock enable during CPU1 Csleep and CStop modes. + bit_offset: 14 + bit_size: 1 + - name: TIM16SMEN + description: TIM16 timer clock enable during CPU1 CSleep mode. + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: TIM17 timer clock enable during CPU1 CSleep mode. + bit_offset: 18 + bit_size: 1 fieldset/APB3ENR: description: APB3 peripheral clock enable register fields: - - name: SUBGHZSPIEN - description: sub-GHz radio SPI clock enable - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPIEN + description: sub-GHz radio SPI clock enable + bit_offset: 0 + bit_size: 1 fieldset/APB3RSTR: description: APB3 peripheral reset register fields: - - name: SUBGHZSPIRST - description: Sub-GHz radio SPI reset - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPIRST + description: Sub-GHz radio SPI reset + bit_offset: 0 + bit_size: 1 fieldset/APB3SMENR: description: APB3 peripheral clock enable in Sleep mode register fields: - - name: SUBGHZSPISMEN - description: Sub-GHz radio SPI clock enable during Sleep and Stop modes - bit_offset: 0 - bit_size: 1 + - name: SUBGHZSPISMEN + description: Sub-GHz radio SPI clock enable during Sleep and Stop modes + bit_offset: 0 + bit_size: 1 fieldset/BDCR: description: Backup domain control register fields: - - name: LSEON - description: LSE oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSERDY - description: LSE oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSEBYP - description: LSE oscillator bypass - bit_offset: 2 - bit_size: 1 - - name: LSEDRV - description: LSE oscillator drive capability - bit_offset: 3 - bit_size: 2 - - name: LSECSSON - description: CSS on LSE enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSD - description: CSS on LSE failure Detection - bit_offset: 6 - bit_size: 1 - - name: LSESYSEN - description: LSE system clock enable - bit_offset: 7 - bit_size: 1 - - name: RTCSEL - description: RTC clock source selection - bit_offset: 8 - bit_size: 2 - - name: LSESYSRDY - description: LSE system clock ready - bit_offset: 11 - bit_size: 1 - - name: RTCEN - description: RTC clock enable - bit_offset: 15 - bit_size: 1 - - name: BDRST - description: Backup domain software reset - bit_offset: 16 - bit_size: 1 - - name: LSCOEN - description: Low speed clock output enable - bit_offset: 24 - bit_size: 1 - - name: LSCOSEL - description: Low speed clock output selection - bit_offset: 25 - bit_size: 1 + - name: LSEON + description: LSE oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: LSE oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: LSE oscillator bypass + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: LSE oscillator drive capability + bit_offset: 3 + bit_size: 2 + - name: LSECSSON + description: CSS on LSE enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: CSS on LSE failure Detection + bit_offset: 6 + bit_size: 1 + - name: LSESYSEN + description: LSE system clock enable + bit_offset: 7 + bit_size: 1 + - name: RTCSEL + description: RTC clock source selection + bit_offset: 8 + bit_size: 2 + - name: LSESYSRDY + description: LSE system clock ready + bit_offset: 11 + bit_size: 1 + - name: RTCEN + description: RTC clock enable + bit_offset: 15 + bit_size: 1 + - name: BDRST + description: Backup domain software reset + bit_offset: 16 + bit_size: 1 + - name: LSCOEN + description: Low speed clock output enable + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: Low speed clock output selection + bit_offset: 25 + bit_size: 1 fieldset/CCIPR: description: Peripherals independent clock configuration register fields: - - name: USART1SEL - description: USART1 clock source selection - bit_offset: 0 - bit_size: 2 - - name: USART2SEL - description: USART2 clock source selection - bit_offset: 2 - bit_size: 2 - - name: SPI2SEL - description: SPI2 I2S clock source selection - bit_offset: 8 - bit_size: 2 - - name: LPUART1SEL - description: LPUART1 clock source selection - bit_offset: 10 - bit_size: 2 - - name: I2C1SEL - description: I2C1 clock source selection - bit_offset: 12 - bit_size: 2 - - name: I2C2SEL - description: I2C2 clock source selection - bit_offset: 14 - bit_size: 2 - - name: I2C3SEL - description: I2C3 clock source selection - bit_offset: 16 - bit_size: 2 - - name: LPTIM1SEL - description: Low power timer 1 clock source selection - bit_offset: 18 - bit_size: 2 - - name: LPTIM2SEL - description: Low power timer 2 clock source selection - bit_offset: 20 - bit_size: 2 - - name: LPTIM3SEL - description: Low power timer 3 clock source selection - bit_offset: 22 - bit_size: 2 - - name: ADCSEL - description: ADC clock source selection - bit_offset: 28 - bit_size: 2 - enum: ADCSEL - - name: RNGSEL - description: RNG clock source selection - bit_offset: 30 - bit_size: 2 + - name: USART1SEL + description: USART1 clock source selection + bit_offset: 0 + bit_size: 2 + - name: USART2SEL + description: USART2 clock source selection + bit_offset: 2 + bit_size: 2 + - name: SPI2SEL + description: SPI2 I2S clock source selection + bit_offset: 8 + bit_size: 2 + - name: LPUART1SEL + description: LPUART1 clock source selection + bit_offset: 10 + bit_size: 2 + - name: I2C1SEL + description: I2C1 clock source selection + bit_offset: 12 + bit_size: 2 + - name: I2C2SEL + description: I2C2 clock source selection + bit_offset: 14 + bit_size: 2 + - name: I2C3SEL + description: I2C3 clock source selection + bit_offset: 16 + bit_size: 2 + - name: LPTIM1SEL + description: Low power timer 1 clock source selection + bit_offset: 18 + bit_size: 2 + - name: LPTIM2SEL + description: Low power timer 2 clock source selection + bit_offset: 20 + bit_size: 2 + - name: LPTIM3SEL + description: Low power timer 3 clock source selection + bit_offset: 22 + bit_size: 2 + - name: ADCSEL + description: ADC clock source selection + bit_offset: 28 + bit_size: 2 + enum: ADCSEL + - name: RNGSEL + description: RNG clock source selection + bit_offset: 30 + bit_size: 2 fieldset/CFGR: description: Clock configuration register fields: - - name: SW - description: System clock switch - bit_offset: 0 - bit_size: 2 - - name: SWS - description: System clock switch status - bit_offset: 2 - bit_size: 2 - - name: HPRE - description: "HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.)" - bit_offset: 4 - bit_size: 4 - - name: PPRE1 - description: PCLK1 low-speed prescaler (APB1) - bit_offset: 8 - bit_size: 3 - - name: PPRE2 - description: PCLK2 high-speed prescaler (APB2) - bit_offset: 11 - bit_size: 3 - - name: STOPWUCK - description: Wakeup from Stop and CSS backup clock selection - bit_offset: 15 - bit_size: 1 - - name: HPREF - description: "HCLK1 prescaler flag (CPU1, AHB1, AHB2, and SRAM1)" - bit_offset: 16 - bit_size: 1 - - name: PPRE1F - description: PCLK1 prescaler flag (APB1) - bit_offset: 17 - bit_size: 1 - - name: PPRE2F - description: PCLK2 prescaler flag (APB2) - bit_offset: 18 - bit_size: 1 - - name: MCOSEL - description: Microcontroller clock output - bit_offset: 24 - bit_size: 4 - - name: MCOPRE - description: Microcontroller clock output prescaler - bit_offset: 28 - bit_size: 3 + - name: SW + description: System clock switch + bit_offset: 0 + bit_size: 2 + - name: SWS + description: System clock switch status + bit_offset: 2 + bit_size: 2 + - name: HPRE + description: HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.) + bit_offset: 4 + bit_size: 4 + - name: PPRE1 + description: PCLK1 low-speed prescaler (APB1) + bit_offset: 8 + bit_size: 3 + - name: PPRE2 + description: PCLK2 high-speed prescaler (APB2) + bit_offset: 11 + bit_size: 3 + - name: STOPWUCK + description: Wakeup from Stop and CSS backup clock selection + bit_offset: 15 + bit_size: 1 + - name: HPREF + description: HCLK1 prescaler flag (CPU1, AHB1, AHB2, and SRAM1) + bit_offset: 16 + bit_size: 1 + - name: PPRE1F + description: PCLK1 prescaler flag (APB1) + bit_offset: 17 + bit_size: 1 + - name: PPRE2F + description: PCLK2 prescaler flag (APB2) + bit_offset: 18 + bit_size: 1 + - name: MCOSEL + description: Microcontroller clock output + bit_offset: 24 + bit_size: 4 + - name: MCOPRE + description: Microcontroller clock output prescaler + bit_offset: 28 + bit_size: 3 fieldset/CICR: description: Clock interrupt clear register fields: - - name: LSIRDYC - description: LSI ready interrupt clear - bit_offset: 0 - bit_size: 1 - - name: LSERDYC - description: LSE ready interrupt clear - bit_offset: 1 - bit_size: 1 - - name: MSIRDYC - description: MSI ready interrupt clear - bit_offset: 2 - bit_size: 1 - - name: HSIRDYC - description: HSI16 ready interrupt clear - bit_offset: 3 - bit_size: 1 - - name: HSERDYC - description: HSE32 ready interrupt clear - bit_offset: 4 - bit_size: 1 - - name: PLLRDYC - description: PLL ready interrupt clear - bit_offset: 5 - bit_size: 1 - - name: CSSC - description: HSE32 Clock security system interrupt clear - bit_offset: 8 - bit_size: 1 - - name: LSECSSC - description: LSE Clock security system interrupt clear - bit_offset: 9 - bit_size: 1 + - name: LSIRDYC + description: LSI ready interrupt clear + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: LSE ready interrupt clear + bit_offset: 1 + bit_size: 1 + - name: MSIRDYC + description: MSI ready interrupt clear + bit_offset: 2 + bit_size: 1 + - name: HSIRDYC + description: HSI16 ready interrupt clear + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: HSE32 ready interrupt clear + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: PLL ready interrupt clear + bit_offset: 5 + bit_size: 1 + - name: CSSC + description: HSE32 Clock security system interrupt clear + bit_offset: 8 + bit_size: 1 + - name: LSECSSC + description: LSE Clock security system interrupt clear + bit_offset: 9 + bit_size: 1 fieldset/CIER: description: Clock interrupt enable register fields: - - name: LSIRDYIE - description: LSI ready interrupt enable - bit_offset: 0 - bit_size: 1 - - name: LSERDYIE - description: LSE ready interrupt enable - bit_offset: 1 - bit_size: 1 - - name: MSIRDYIE - description: MSI ready interrupt enable - bit_offset: 2 - bit_size: 1 - - name: HSIRDYIE - description: HSI16 ready interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HSERDYIE - description: HSE32 ready interrupt enable - bit_offset: 4 - bit_size: 1 - - name: PLLRDYIE - description: PLL ready interrupt enable - bit_offset: 5 - bit_size: 1 - - name: LSECSSIE - description: LSE clock security system interrupt enable - bit_offset: 9 - bit_size: 1 + - name: LSIRDYIE + description: LSI ready interrupt enable + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: LSE ready interrupt enable + bit_offset: 1 + bit_size: 1 + - name: MSIRDYIE + description: MSI ready interrupt enable + bit_offset: 2 + bit_size: 1 + - name: HSIRDYIE + description: HSI16 ready interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: HSE32 ready interrupt enable + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: PLL ready interrupt enable + bit_offset: 5 + bit_size: 1 + - name: LSECSSIE + description: LSE clock security system interrupt enable + bit_offset: 9 + bit_size: 1 fieldset/CIFR: description: Clock interrupt flag register fields: - - name: LSIRDYF - description: LSI ready interrupt flag - bit_offset: 0 - bit_size: 1 - - name: LSERDYF - description: LSE ready interrupt flag - bit_offset: 1 - bit_size: 1 - - name: MSIRDYF - description: MSI ready interrupt flag - bit_offset: 2 - bit_size: 1 - - name: HSIRDYF - description: HSI16 ready interrupt flag - bit_offset: 3 - bit_size: 1 - - name: HSERDYF - description: HSE32 ready interrupt flag - bit_offset: 4 - bit_size: 1 - - name: PLLRDYF - description: PLL ready interrupt flag - bit_offset: 5 - bit_size: 1 - - name: CSSF - description: HSE32 Clock security system interrupt flag - bit_offset: 8 - bit_size: 1 - - name: LSECSSF - description: LSE Clock security system interrupt flag - bit_offset: 9 - bit_size: 1 + - name: LSIRDYF + description: LSI ready interrupt flag + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: LSE ready interrupt flag + bit_offset: 1 + bit_size: 1 + - name: MSIRDYF + description: MSI ready interrupt flag + bit_offset: 2 + bit_size: 1 + - name: HSIRDYF + description: HSI16 ready interrupt flag + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: HSE32 ready interrupt flag + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: PLL ready interrupt flag + bit_offset: 5 + bit_size: 1 + - name: CSSF + description: HSE32 Clock security system interrupt flag + bit_offset: 8 + bit_size: 1 + - name: LSECSSF + description: LSE Clock security system interrupt flag + bit_offset: 9 + bit_size: 1 fieldset/CR: description: Clock control register fields: - - name: MSION - description: MSI clock enable - bit_offset: 0 - bit_size: 1 - - name: MSIRDY - description: MSI clock ready flag (After reset this bit will be read 1 once the MSI is ready) - bit_offset: 1 - bit_size: 1 - - name: MSIPLLEN - description: MSI clock PLL enable - bit_offset: 2 - bit_size: 1 - - name: MSIRGSEL - description: MSI range control selection - bit_offset: 3 - bit_size: 1 - - name: MSIRANGE - description: MSI clock ranges - bit_offset: 4 - bit_size: 4 - - name: HSION - description: HSI16 clock enable - bit_offset: 8 - bit_size: 1 - - name: HSIKERON - description: HSI16 always enable for peripheral kernel clocks. - bit_offset: 9 - bit_size: 1 - - name: HSIRDY - description: HSI16 clock ready flag. (After wakeup from Stop this bit will be read 1 once the HSI16 is ready) - bit_offset: 10 - bit_size: 1 - - name: HSIASFS - description: HSI16 automatic start from Stop - bit_offset: 11 - bit_size: 1 - - name: HSIKERDY - description: HSI16 kernel clock ready flag for peripherals requests. - bit_offset: 12 - bit_size: 1 - - name: HSEON - description: HSE32 clock enable - bit_offset: 16 - bit_size: 1 - - name: HSERDY - description: HSE32 clock ready flag - bit_offset: 17 - bit_size: 1 - - name: CSSON - description: HSE32 Clock security system enable - bit_offset: 19 - bit_size: 1 - - name: HSEPRE - description: HSE32 sysclk prescaler - bit_offset: 20 - bit_size: 1 - - name: HSEBYPPWR - description: Enable HSE32 VDDTCXO output on package pin PB0-VDDTCXO. - bit_offset: 21 - bit_size: 1 - - name: PLLON - description: Main PLL enable - bit_offset: 24 - bit_size: 1 - - name: PLLRDY - description: Main PLL clock ready flag - bit_offset: 25 - bit_size: 1 + - name: MSION + description: MSI clock enable + bit_offset: 0 + bit_size: 1 + - name: MSIRDY + description: MSI clock ready flag (After reset this bit will be read 1 once the MSI is ready) + bit_offset: 1 + bit_size: 1 + - name: MSIPLLEN + description: MSI clock PLL enable + bit_offset: 2 + bit_size: 1 + - name: MSIRGSEL + description: MSI range control selection + bit_offset: 3 + bit_size: 1 + - name: MSIRANGE + description: MSI clock ranges + bit_offset: 4 + bit_size: 4 + - name: HSION + description: HSI16 clock enable + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: HSI16 always enable for peripheral kernel clocks. + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: HSI16 clock ready flag. (After wakeup from Stop this bit will be read 1 once the HSI16 is ready) + bit_offset: 10 + bit_size: 1 + - name: HSIASFS + description: HSI16 automatic start from Stop + bit_offset: 11 + bit_size: 1 + - name: HSIKERDY + description: HSI16 kernel clock ready flag for peripherals requests. + bit_offset: 12 + bit_size: 1 + - name: HSEON + description: HSE32 clock enable + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: HSE32 clock ready flag + bit_offset: 17 + bit_size: 1 + - name: CSSON + description: HSE32 Clock security system enable + bit_offset: 19 + bit_size: 1 + - name: HSEPRE + description: HSE32 sysclk prescaler + bit_offset: 20 + bit_size: 1 + - name: HSEBYPPWR + description: Enable HSE32 VDDTCXO output on package pin PB0-VDDTCXO. + bit_offset: 21 + bit_size: 1 + - name: PLLON + description: Main PLL enable + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: Main PLL clock ready flag + bit_offset: 25 + bit_size: 1 fieldset/CSR: description: Control/status register fields: - - name: LSION - description: LSI oscillator enable - bit_offset: 0 - bit_size: 1 - - name: LSIRDY - description: LSI oscillator ready - bit_offset: 1 - bit_size: 1 - - name: LSIPRE - description: LSI frequency prescaler - bit_offset: 4 - bit_size: 1 - - name: MSISRANGE - description: MSI clock ranges - bit_offset: 8 - bit_size: 4 - - name: RFRSTF - description: Radio in reset status flag - bit_offset: 14 - bit_size: 1 - - name: RFRST - description: Radio reset - bit_offset: 15 - bit_size: 1 - - name: RMVF - description: Remove reset flag - bit_offset: 23 - bit_size: 1 - - name: RFILARSTF - description: Radio illegal access flag - bit_offset: 24 - bit_size: 1 - - name: OBLRSTF - description: Option byte loader reset flag - bit_offset: 25 - bit_size: 1 - - name: PINRSTF - description: Pin reset flag - bit_offset: 26 - bit_size: 1 - - name: BORRSTF - description: BOR flag - bit_offset: 27 - bit_size: 1 - - name: SFTRSTF - description: Software reset flag - bit_offset: 28 - bit_size: 1 - - name: IWDGRSTF - description: Independent window watchdog reset flag - bit_offset: 29 - bit_size: 1 - - name: WWDGRSTF - description: Window watchdog reset flag - bit_offset: 30 - bit_size: 1 - - name: LPWRRSTF - description: Low-power reset flag - bit_offset: 31 - bit_size: 1 + - name: LSION + description: LSI oscillator enable + bit_offset: 0 + bit_size: 1 + - name: LSIRDY + description: LSI oscillator ready + bit_offset: 1 + bit_size: 1 + - name: LSIPRE + description: LSI frequency prescaler + bit_offset: 4 + bit_size: 1 + - name: MSISRANGE + description: MSI clock ranges + bit_offset: 8 + bit_size: 4 + - name: RFRSTF + description: Radio in reset status flag + bit_offset: 14 + bit_size: 1 + - name: RFRST + description: Radio reset + bit_offset: 15 + bit_size: 1 + - name: RMVF + description: Remove reset flag + bit_offset: 23 + bit_size: 1 + - name: RFILARSTF + description: Radio illegal access flag + bit_offset: 24 + bit_size: 1 + - name: OBLRSTF + description: Option byte loader reset flag + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: Pin reset flag + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: BOR flag + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: Software reset flag + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: Independent window watchdog reset flag + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: Window watchdog reset flag + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: Low-power reset flag + bit_offset: 31 + bit_size: 1 fieldset/EXTCFGR: description: Extended clock recovery register fields: - - name: SHDHPRE - description: "HCLK3 shared prescaler (AHB3, Flash, and SRAM2)" - bit_offset: 0 - bit_size: 4 - - name: SHDHPREF - description: "HCLK3 shared prescaler flag (AHB3, Flash, and SRAM2)" - bit_offset: 16 - bit_size: 1 + - name: SHDHPRE + description: HCLK3 shared prescaler (AHB3, Flash, and SRAM2) + bit_offset: 0 + bit_size: 4 + - name: SHDHPREF + description: HCLK3 shared prescaler flag (AHB3, Flash, and SRAM2) + bit_offset: 16 + bit_size: 1 fieldset/ICSCR: description: Internal clock sources calibration register fields: - - name: MSICAL - description: MSI clock calibration - bit_offset: 0 - bit_size: 8 - - name: MSITRIM - description: MSI clock trimming - bit_offset: 8 - bit_size: 8 - - name: HSICAL - description: HSI16 clock calibration - bit_offset: 16 - bit_size: 8 - - name: HSITRIM - description: HSI16 clock trimming - bit_offset: 24 - bit_size: 7 + - name: MSICAL + description: MSI clock calibration + bit_offset: 0 + bit_size: 8 + - name: MSITRIM + description: MSI clock trimming + bit_offset: 8 + bit_size: 8 + - name: HSICAL + description: HSI16 clock calibration + bit_offset: 16 + bit_size: 8 + - name: HSITRIM + description: HSI16 clock trimming + bit_offset: 24 + bit_size: 7 fieldset/PLLCFGR: description: PLL configuration register fields: - - name: PLLSRC - description: Main PLL entry clock source - bit_offset: 0 - bit_size: 2 - - name: PLLM - description: Division factor for the main PLL input clock - bit_offset: 4 - bit_size: 3 - - name: PLLN - description: Main PLL multiplication factor for VCO - bit_offset: 8 - bit_size: 7 - - name: PLLPEN - description: Main PLL PLLPCLK output enable - bit_offset: 16 - bit_size: 1 - - name: PLLP - description: Main PLL division factor for PLLPCLK. - bit_offset: 17 - bit_size: 5 - - name: PLLQEN - description: Main PLL PLLQCLK output enable - bit_offset: 24 - bit_size: 1 - - name: PLLQ - description: Main PLL division factor for PLLQCLK - bit_offset: 25 - bit_size: 3 - - name: PLLREN - description: Main PLL PLLRCLK output enable - bit_offset: 28 - bit_size: 1 - - name: PLLR - description: Main PLL division factor for PLLRCLK - bit_offset: 29 - bit_size: 3 + - name: PLLSRC + description: Main PLL entry clock source + bit_offset: 0 + bit_size: 2 + - name: PLLM + description: Division factor for the main PLL input clock + bit_offset: 4 + bit_size: 3 + - name: PLLN + description: Main PLL multiplication factor for VCO + bit_offset: 8 + bit_size: 7 + - name: PLLPEN + description: Main PLL PLLPCLK output enable + bit_offset: 16 + bit_size: 1 + - name: PLLP + description: Main PLL division factor for PLLPCLK. + bit_offset: 17 + bit_size: 5 + - name: PLLQEN + description: Main PLL PLLQCLK output enable + bit_offset: 24 + bit_size: 1 + - name: PLLQ + description: Main PLL division factor for PLLQCLK + bit_offset: 25 + bit_size: 3 + - name: PLLREN + description: Main PLL PLLRCLK output enable + bit_offset: 28 + bit_size: 1 + - name: PLLR + description: Main PLL division factor for PLLRCLK + bit_offset: 29 + bit_size: 3 enum/ADCSEL: bit_size: 2 variants: - - name: HSI16 - description: HSI16 used as ADC clock source - value: 1 - - name: PLLPCLK - description: PLLPCLK used as ADC clock source - value: 2 - - name: SYSCLK - description: SYSCLK used as ADC clock source - value: 3 + - name: HSI16 + description: HSI16 used as ADC clock source + value: 1 + - name: PLLPCLK + description: PLLPCLK used as ADC clock source + value: 2 + - name: SYSCLK + description: SYSCLK used as ADC clock source + value: 3 diff --git a/data/registers/rng_v1.yaml b/data/registers/rng_v1.yaml index bb95691..fef8acb 100644 --- a/data/registers/rng_v1.yaml +++ b/data/registers/rng_v1.yaml @@ -1,54 +1,53 @@ ---- block/RNG: description: Random number generator items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: SR - description: status register - byte_offset: 4 - fieldset: SR - - name: DR - description: data register - byte_offset: 8 - access: Read + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + fieldset: SR + - name: DR + description: data register + byte_offset: 8 + access: Read fieldset/CR: description: control register fields: - - name: RNGEN - description: Random number generator enable - bit_offset: 2 - bit_size: 1 - - name: IE - description: Interrupt enable - bit_offset: 3 - bit_size: 1 - - name: CED - description: Clock error detection - bit_offset: 5 - bit_size: 1 + - name: RNGEN + description: Random number generator enable + bit_offset: 2 + bit_size: 1 + - name: IE + description: Interrupt enable + bit_offset: 3 + bit_size: 1 + - name: CED + description: Clock error detection + bit_offset: 5 + bit_size: 1 fieldset/SR: description: status register fields: - - name: DRDY - description: Data ready - bit_offset: 0 - bit_size: 1 - - name: CECS - description: Clock error current status - bit_offset: 1 - bit_size: 1 - - name: SECS - description: Seed error current status - bit_offset: 2 - bit_size: 1 - - name: CEIS - description: Clock error interrupt status - bit_offset: 5 - bit_size: 1 - - name: SEIS - description: Seed error interrupt status - bit_offset: 6 - bit_size: 1 + - name: DRDY + description: Data ready + bit_offset: 0 + bit_size: 1 + - name: CECS + description: Clock error current status + bit_offset: 1 + bit_size: 1 + - name: SECS + description: Seed error current status + bit_offset: 2 + bit_size: 1 + - name: CEIS + description: Clock error interrupt status + bit_offset: 5 + bit_size: 1 + - name: SEIS + description: Seed error interrupt status + bit_offset: 6 + bit_size: 1 diff --git a/data/registers/rng_v2.yaml b/data/registers/rng_v2.yaml index a90b9a8..fd856a4 100644 --- a/data/registers/rng_v2.yaml +++ b/data/registers/rng_v2.yaml @@ -1,192 +1,191 @@ ---- block/RNG: description: Random number generator items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: SR - description: status register - byte_offset: 4 - fieldset: SR - - name: DR - description: data register - byte_offset: 8 - access: Read - - name: HTCR - description: health test control register - byte_offset: 16 - fieldset: HTCR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + fieldset: SR + - name: DR + description: data register + byte_offset: 8 + access: Read + - name: HTCR + description: health test control register + byte_offset: 16 + fieldset: HTCR fieldset/CR: description: control register fields: - - name: RNGEN - description: Random number generator enable - bit_offset: 2 - bit_size: 1 - - name: IE - description: Interrupt enable - bit_offset: 3 - bit_size: 1 - - name: CED - description: Clock error detection - bit_offset: 5 - bit_size: 1 - - name: RNG_CONFIG3 - description: RNG configuration 3 - bit_offset: 8 - bit_size: 4 - enum: RNG_CONFIG3 - - name: NISTC - description: Non NIST compliant - bit_offset: 12 - bit_size: 1 - enum: NISTC - - name: RNG_CONFIG2 - description: RNG configuration 2 - bit_offset: 13 - bit_size: 3 - enum: RNG_CONFIG2 - - name: CLKDIV - description: Clock divider factor - bit_offset: 16 - bit_size: 4 - enum: CLKDIV - - name: RNG_CONFIG1 - description: RNG configuration 1 - bit_offset: 20 - bit_size: 6 - enum: RNG_CONFIG1 - - name: CONDRST - description: Conditioning soft reset - bit_offset: 30 - bit_size: 1 - - name: CONFIGLOCK - description: Config Lock - bit_offset: 31 - bit_size: 1 -fieldset/SR: - description: status register - fields: - - name: DRDY - description: Data ready - bit_offset: 0 - bit_size: 1 - - name: CECS - description: Clock error current status - bit_offset: 1 - bit_size: 1 - - name: SECS - description: Seed error current status - bit_offset: 2 - bit_size: 1 - - name: CEIS - description: Clock error interrupt status - bit_offset: 5 - bit_size: 1 - - name: SEIS - description: Seed error interrupt status - bit_offset: 6 - bit_size: 1 + - name: RNGEN + description: Random number generator enable + bit_offset: 2 + bit_size: 1 + - name: IE + description: Interrupt enable + bit_offset: 3 + bit_size: 1 + - name: CED + description: Clock error detection + bit_offset: 5 + bit_size: 1 + - name: RNG_CONFIG3 + description: RNG configuration 3 + bit_offset: 8 + bit_size: 4 + enum: RNG_CONFIG3 + - name: NISTC + description: Non NIST compliant + bit_offset: 12 + bit_size: 1 + enum: NISTC + - name: RNG_CONFIG2 + description: RNG configuration 2 + bit_offset: 13 + bit_size: 3 + enum: RNG_CONFIG2 + - name: CLKDIV + description: Clock divider factor + bit_offset: 16 + bit_size: 4 + enum: CLKDIV + - name: RNG_CONFIG1 + description: RNG configuration 1 + bit_offset: 20 + bit_size: 6 + enum: RNG_CONFIG1 + - name: CONDRST + description: Conditioning soft reset + bit_offset: 30 + bit_size: 1 + - name: CONFIGLOCK + description: Config Lock + bit_offset: 31 + bit_size: 1 fieldset/HTCR: description: Health test control register fields: - - name: HTCFG - description: Health test configuration - bit_offset: 0 - bit_size: 32 - enum: HTCFG + - name: HTCFG + description: Health test configuration + bit_offset: 0 + bit_size: 32 + enum: HTCFG +fieldset/SR: + description: status register + fields: + - name: DRDY + description: Data ready + bit_offset: 0 + bit_size: 1 + - name: CECS + description: Clock error current status + bit_offset: 1 + bit_size: 1 + - name: SECS + description: Seed error current status + bit_offset: 2 + bit_size: 1 + - name: CEIS + description: Clock error interrupt status + bit_offset: 5 + bit_size: 1 + - name: SEIS + description: Seed error interrupt status + bit_offset: 6 + bit_size: 1 enum/CLKDIV: bit_size: 4 variants: - - name: NoDiv - description: Internal RNG clock after divider is similar to incoming RNG clock - value: 0 - - name: Div_2_1 - description: Divide RNG clock by 2^1 - value: 1 - - name: Div_2_2 - description: Divide RNG clock by 2^2 - value: 2 - - name: Div_2_3 - description: Divide RNG clock by 2^3 - value: 3 - - name: Div_2_4 - description: Divide RNG clock by 2^4 - value: 4 - - name: Div_2_5 - description: Divide RNG clock by 2^5 - value: 5 - - name: Div_2_6 - description: Divide RNG clock by 2^6 - value: 6 - - name: Div_2_7 - description: Divide RNG clock by 2^7 - value: 7 - - name: Div_2_8 - description: Divide RNG clock by 2^8 - value: 8 - - name: Div_2_9 - description: Divide RNG clock by 2^9 - value: 9 - - name: Div_2_10 - description: Divide RNG clock by 2^10 - value: 10 - - name: Div_2_11 - description: Divide RNG clock by 2^11 - value: 11 - - name: Div_2_12 - description: Divide RNG clock by 2^12 - value: 12 - - name: Div_2_13 - description: Divide RNG clock by 2^13 - value: 13 - - name: Div_2_14 - description: Divide RNG clock by 2^14 - value: 14 - - name: Div_2_15 - description: Divide RNG clock by 2^15 - value: 15 + - name: NoDiv + description: Internal RNG clock after divider is similar to incoming RNG clock + value: 0 + - name: Div_2_1 + description: Divide RNG clock by 2^1 + value: 1 + - name: Div_2_2 + description: Divide RNG clock by 2^2 + value: 2 + - name: Div_2_3 + description: Divide RNG clock by 2^3 + value: 3 + - name: Div_2_4 + description: Divide RNG clock by 2^4 + value: 4 + - name: Div_2_5 + description: Divide RNG clock by 2^5 + value: 5 + - name: Div_2_6 + description: Divide RNG clock by 2^6 + value: 6 + - name: Div_2_7 + description: Divide RNG clock by 2^7 + value: 7 + - name: Div_2_8 + description: Divide RNG clock by 2^8 + value: 8 + - name: Div_2_9 + description: Divide RNG clock by 2^9 + value: 9 + - name: Div_2_10 + description: Divide RNG clock by 2^10 + value: 10 + - name: Div_2_11 + description: Divide RNG clock by 2^11 + value: 11 + - name: Div_2_12 + description: Divide RNG clock by 2^12 + value: 12 + - name: Div_2_13 + description: Divide RNG clock by 2^13 + value: 13 + - name: Div_2_14 + description: Divide RNG clock by 2^14 + value: 14 + - name: Div_2_15 + description: Divide RNG clock by 2^15 + value: 15 enum/HTCFG: bit_size: 32 variants: - - name: Recommended - description: Recommended value for RNG certification (0x0000_AA74) - value: 43636 - - name: Magic - description: Magic number to be written before any write (0x1759_0ABC) - value: 391711420 + - name: Recommended + description: Recommended value for RNG certification (0x0000_AA74) + value: 43636 + - name: Magic + description: Magic number to be written before any write (0x1759_0ABC) + value: 391711420 enum/NISTC: bit_size: 1 variants: - - name: Default - description: Hardware default values for NIST compliant RNG. In this configuration per 128-bit output two conditioning loops are performed and 256 bits of noise source are used - value: 0 - - name: Custom - description: Custom values for NIST compliant RNG - value: 1 + - name: Default + description: Hardware default values for NIST compliant RNG. In this configuration per 128-bit output two conditioning loops are performed and 256 bits of noise source are used + value: 0 + - name: Custom + description: Custom values for NIST compliant RNG + value: 1 enum/RNG_CONFIG1: bit_size: 6 variants: - - name: ConfigA - description: Recommended value for config A (NIST certifiable) - value: 15 - - name: ConfigB - description: Recommended value for config B (not NIST certifiable) - value: 24 + - name: ConfigA + description: Recommended value for config A (NIST certifiable) + value: 15 + - name: ConfigB + description: Recommended value for config B (not NIST certifiable) + value: 24 enum/RNG_CONFIG2: bit_size: 3 variants: - - name: ConfigA_B - description: Recommended value for config A and B - value: 0 + - name: ConfigA_B + description: Recommended value for config A and B + value: 0 enum/RNG_CONFIG3: bit_size: 4 variants: - - name: ConfigB - description: Recommended value for config B (not NIST certifiable) - value: 0 - - name: ConfigA - description: Recommended value for config A (NIST certifiable) - value: 13 + - name: ConfigB + description: Recommended value for config B (not NIST certifiable) + value: 0 + - name: ConfigA + description: Recommended value for config A (NIST certifiable) + value: 13 diff --git a/data/registers/rng_v3.yaml b/data/registers/rng_v3.yaml index 5530968..7d59727 100644 --- a/data/registers/rng_v3.yaml +++ b/data/registers/rng_v3.yaml @@ -1,196 +1,195 @@ ---- block/RNG: description: Random number generator items: - - name: CR - description: control register - byte_offset: 0 - fieldset: CR - - name: SR - description: status register - byte_offset: 4 - fieldset: SR - - name: DR - description: data register - byte_offset: 8 - access: Read - - name: HTCR - description: health test control register - byte_offset: 16 - fieldset: HTCR + - name: CR + description: control register + byte_offset: 0 + fieldset: CR + - name: SR + description: status register + byte_offset: 4 + fieldset: SR + - name: DR + description: data register + byte_offset: 8 + access: Read + - name: HTCR + description: health test control register + byte_offset: 16 + fieldset: HTCR fieldset/CR: description: control register fields: - - name: RNGEN - description: Random number generator enable - bit_offset: 2 - bit_size: 1 - - name: IE - description: Interrupt enable - bit_offset: 3 - bit_size: 1 - - name: CED - description: Clock error detection - bit_offset: 5 - bit_size: 1 - - name: ARDIS - description: Auto reset disable - bit_offset: 7 - bit_size: 1 - - name: RNG_CONFIG3 - description: RNG configuration 3 - bit_offset: 8 - bit_size: 4 - enum: RNG_CONFIG3 - - name: NISTC - description: Non NIST compliant - bit_offset: 12 - bit_size: 1 - enum: NISTC - - name: RNG_CONFIG2 - description: RNG configuration 2 - bit_offset: 13 - bit_size: 3 - enum: RNG_CONFIG2 - - name: CLKDIV - description: Clock divider factor - bit_offset: 16 - bit_size: 4 - enum: CLKDIV - - name: RNG_CONFIG1 - description: RNG configuration 1 - bit_offset: 20 - bit_size: 6 - enum: RNG_CONFIG1 - - name: CONDRST - description: Conditioning soft reset - bit_offset: 30 - bit_size: 1 - - name: CONFIGLOCK - description: Config Lock - bit_offset: 31 - bit_size: 1 -fieldset/SR: - description: status register - fields: - - name: DRDY - description: Data ready - bit_offset: 0 - bit_size: 1 - - name: CECS - description: Clock error current status - bit_offset: 1 - bit_size: 1 - - name: SECS - description: Seed error current status - bit_offset: 2 - bit_size: 1 - - name: CEIS - description: Clock error interrupt status - bit_offset: 5 - bit_size: 1 - - name: SEIS - description: Seed error interrupt status - bit_offset: 6 - bit_size: 1 + - name: RNGEN + description: Random number generator enable + bit_offset: 2 + bit_size: 1 + - name: IE + description: Interrupt enable + bit_offset: 3 + bit_size: 1 + - name: CED + description: Clock error detection + bit_offset: 5 + bit_size: 1 + - name: ARDIS + description: Auto reset disable + bit_offset: 7 + bit_size: 1 + - name: RNG_CONFIG3 + description: RNG configuration 3 + bit_offset: 8 + bit_size: 4 + enum: RNG_CONFIG3 + - name: NISTC + description: Non NIST compliant + bit_offset: 12 + bit_size: 1 + enum: NISTC + - name: RNG_CONFIG2 + description: RNG configuration 2 + bit_offset: 13 + bit_size: 3 + enum: RNG_CONFIG2 + - name: CLKDIV + description: Clock divider factor + bit_offset: 16 + bit_size: 4 + enum: CLKDIV + - name: RNG_CONFIG1 + description: RNG configuration 1 + bit_offset: 20 + bit_size: 6 + enum: RNG_CONFIG1 + - name: CONDRST + description: Conditioning soft reset + bit_offset: 30 + bit_size: 1 + - name: CONFIGLOCK + description: Config Lock + bit_offset: 31 + bit_size: 1 fieldset/HTCR: description: Health test control register fields: - - name: HTCFG - description: Health test configuration - bit_offset: 0 - bit_size: 32 - enum: HTCFG + - name: HTCFG + description: Health test configuration + bit_offset: 0 + bit_size: 32 + enum: HTCFG +fieldset/SR: + description: status register + fields: + - name: DRDY + description: Data ready + bit_offset: 0 + bit_size: 1 + - name: CECS + description: Clock error current status + bit_offset: 1 + bit_size: 1 + - name: SECS + description: Seed error current status + bit_offset: 2 + bit_size: 1 + - name: CEIS + description: Clock error interrupt status + bit_offset: 5 + bit_size: 1 + - name: SEIS + description: Seed error interrupt status + bit_offset: 6 + bit_size: 1 enum/CLKDIV: bit_size: 4 variants: - - name: NoDiv - description: Internal RNG clock after divider is similar to incoming RNG clock - value: 0 - - name: Div_2_1 - description: Divide RNG clock by 2^1 - value: 1 - - name: Div_2_2 - description: Divide RNG clock by 2^2 - value: 2 - - name: Div_2_3 - description: Divide RNG clock by 2^3 - value: 3 - - name: Div_2_4 - description: Divide RNG clock by 2^4 - value: 4 - - name: Div_2_5 - description: Divide RNG clock by 2^5 - value: 5 - - name: Div_2_6 - description: Divide RNG clock by 2^6 - value: 6 - - name: Div_2_7 - description: Divide RNG clock by 2^7 - value: 7 - - name: Div_2_8 - description: Divide RNG clock by 2^8 - value: 8 - - name: Div_2_9 - description: Divide RNG clock by 2^9 - value: 9 - - name: Div_2_10 - description: Divide RNG clock by 2^10 - value: 10 - - name: Div_2_11 - description: Divide RNG clock by 2^11 - value: 11 - - name: Div_2_12 - description: Divide RNG clock by 2^12 - value: 12 - - name: Div_2_13 - description: Divide RNG clock by 2^13 - value: 13 - - name: Div_2_14 - description: Divide RNG clock by 2^14 - value: 14 - - name: Div_2_15 - description: Divide RNG clock by 2^15 - value: 15 + - name: NoDiv + description: Internal RNG clock after divider is similar to incoming RNG clock + value: 0 + - name: Div_2_1 + description: Divide RNG clock by 2^1 + value: 1 + - name: Div_2_2 + description: Divide RNG clock by 2^2 + value: 2 + - name: Div_2_3 + description: Divide RNG clock by 2^3 + value: 3 + - name: Div_2_4 + description: Divide RNG clock by 2^4 + value: 4 + - name: Div_2_5 + description: Divide RNG clock by 2^5 + value: 5 + - name: Div_2_6 + description: Divide RNG clock by 2^6 + value: 6 + - name: Div_2_7 + description: Divide RNG clock by 2^7 + value: 7 + - name: Div_2_8 + description: Divide RNG clock by 2^8 + value: 8 + - name: Div_2_9 + description: Divide RNG clock by 2^9 + value: 9 + - name: Div_2_10 + description: Divide RNG clock by 2^10 + value: 10 + - name: Div_2_11 + description: Divide RNG clock by 2^11 + value: 11 + - name: Div_2_12 + description: Divide RNG clock by 2^12 + value: 12 + - name: Div_2_13 + description: Divide RNG clock by 2^13 + value: 13 + - name: Div_2_14 + description: Divide RNG clock by 2^14 + value: 14 + - name: Div_2_15 + description: Divide RNG clock by 2^15 + value: 15 enum/HTCFG: bit_size: 32 variants: - - name: Recommended - description: Recommended value for RNG certification (0x0000_AA74) - value: 43636 - - name: Magic - description: Magic number to be written before any write (0x1759_0ABC) - value: 391711420 + - name: Recommended + description: Recommended value for RNG certification (0x0000_AA74) + value: 43636 + - name: Magic + description: Magic number to be written before any write (0x1759_0ABC) + value: 391711420 enum/NISTC: bit_size: 1 variants: - - name: Default - description: Hardware default values for NIST compliant RNG. In this configuration per 128-bit output two conditioning loops are performed and 256 bits of noise source are used - value: 0 - - name: Custom - description: Custom values for NIST compliant RNG - value: 1 + - name: Default + description: Hardware default values for NIST compliant RNG. In this configuration per 128-bit output two conditioning loops are performed and 256 bits of noise source are used + value: 0 + - name: Custom + description: Custom values for NIST compliant RNG + value: 1 enum/RNG_CONFIG1: bit_size: 6 variants: - - name: ConfigA - description: Recommended value for config A (NIST certifiable) - value: 15 - - name: ConfigB - description: Recommended value for config B (not NIST certifiable) - value: 24 + - name: ConfigA + description: Recommended value for config A (NIST certifiable) + value: 15 + - name: ConfigB + description: Recommended value for config B (not NIST certifiable) + value: 24 enum/RNG_CONFIG2: bit_size: 3 variants: - - name: ConfigA_B - description: Recommended value for config A and B - value: 0 + - name: ConfigA_B + description: Recommended value for config A and B + value: 0 enum/RNG_CONFIG3: bit_size: 4 variants: - - name: ConfigB - description: Recommended value for config B (not NIST certifiable) - value: 0 - - name: ConfigA - description: Recommended value for config A (NIST certifiable) - value: 13 + - name: ConfigB + description: Recommended value for config B (not NIST certifiable) + value: 0 + - name: ConfigA + description: Recommended value for config A (NIST certifiable) + value: 13 diff --git a/data/registers/rtc_v1.yaml b/data/registers/rtc_v1.yaml index 50d3fff..53afc30 100644 --- a/data/registers/rtc_v1.yaml +++ b/data/registers/rtc_v1.yaml @@ -1,168 +1,167 @@ ---- block/RTC: description: Real-time clock items: - - name: CRH - description: Control Register High - byte_offset: 0 - fieldset: CRH - - name: CRL - description: Control Register Low - byte_offset: 4 - fieldset: CRL - - name: PRLH - description: Prescaler Load Register High - byte_offset: 8 - access: Write - fieldset: PRLH - - name: PRLL - description: Prescaler Load Register Low - byte_offset: 12 - access: Write - fieldset: PRLL - - name: DIVH - description: Prescaler Divider Register High - byte_offset: 16 - access: Read - fieldset: DIVH - - name: DIVL - description: Prescaler Divider Register Low - byte_offset: 20 - access: Read - fieldset: DIVL - - name: CNTH - description: Counter Register High - byte_offset: 24 - fieldset: CNTH - - name: CNTL - description: Counter Register Low - byte_offset: 28 - fieldset: CNTL - - name: ALRH - description: Alarm Register High - byte_offset: 32 - access: Write - fieldset: ALRH - - name: ALRL - description: Alarm Register Low - byte_offset: 36 - access: Write - fieldset: ALRL + - name: CRH + description: Control Register High + byte_offset: 0 + fieldset: CRH + - name: CRL + description: Control Register Low + byte_offset: 4 + fieldset: CRL + - name: PRLH + description: Prescaler Load Register High + byte_offset: 8 + access: Write + fieldset: PRLH + - name: PRLL + description: Prescaler Load Register Low + byte_offset: 12 + access: Write + fieldset: PRLL + - name: DIVH + description: Prescaler Divider Register High + byte_offset: 16 + access: Read + fieldset: DIVH + - name: DIVL + description: Prescaler Divider Register Low + byte_offset: 20 + access: Read + fieldset: DIVL + - name: CNTH + description: Counter Register High + byte_offset: 24 + fieldset: CNTH + - name: CNTL + description: Counter Register Low + byte_offset: 28 + fieldset: CNTL + - name: ALRH + description: Alarm Register High + byte_offset: 32 + access: Write + fieldset: ALRH + - name: ALRL + description: Alarm Register Low + byte_offset: 36 + access: Write + fieldset: ALRL fieldset/ALRH: description: Alarm Register High fields: - - name: ALRH - description: Alarm register high - bit_offset: 0 - bit_size: 16 + - name: ALRH + description: Alarm register high + bit_offset: 0 + bit_size: 16 fieldset/ALRL: description: Alarm Register Low fields: - - name: ALRL - description: Alarm register low - bit_offset: 0 - bit_size: 16 + - name: ALRL + description: Alarm register low + bit_offset: 0 + bit_size: 16 fieldset/CNTH: description: Counter Register High fields: - - name: CNTH - description: Counter register high - bit_offset: 0 - bit_size: 16 + - name: CNTH + description: Counter register high + bit_offset: 0 + bit_size: 16 fieldset/CNTL: description: Counter Register Low fields: - - name: CNTL - description: Counter register low - bit_offset: 0 - bit_size: 16 + - name: CNTL + description: Counter register low + bit_offset: 0 + bit_size: 16 fieldset/CRH: description: Control Register High fields: - - name: SECIE - description: Second interrupt enable - bit_offset: 0 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 1 - bit_size: 1 - - name: OWIE - description: Overflow interrupt enable - bit_offset: 2 - bit_size: 1 + - name: SECIE + description: Second interrupt enable + bit_offset: 0 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 1 + bit_size: 1 + - name: OWIE + description: Overflow interrupt enable + bit_offset: 2 + bit_size: 1 fieldset/CRL: description: Control Register Low fields: - - name: SECF - description: Second flag - bit_offset: 0 - bit_size: 1 - - name: ALRF - description: Alarm flag - bit_offset: 1 - bit_size: 1 - - name: OWF - description: Overflow flag - bit_offset: 2 - bit_size: 1 - - name: RSF - description: Registers synchronized flag - bit_offset: 3 - bit_size: 1 - - name: CNF - description: Configuration flag - bit_offset: 4 - bit_size: 1 - enum: CNF - - name: RTOFF - description: RTC operation OFF - bit_offset: 5 - bit_size: 1 - enum: RTOFF + - name: SECF + description: Second flag + bit_offset: 0 + bit_size: 1 + - name: ALRF + description: Alarm flag + bit_offset: 1 + bit_size: 1 + - name: OWF + description: Overflow flag + bit_offset: 2 + bit_size: 1 + - name: RSF + description: Registers synchronized flag + bit_offset: 3 + bit_size: 1 + - name: CNF + description: Configuration flag + bit_offset: 4 + bit_size: 1 + enum: CNF + - name: RTOFF + description: RTC operation OFF + bit_offset: 5 + bit_size: 1 + enum: RTOFF fieldset/DIVH: description: Prescaler Divider Register High fields: - - name: DIVH - description: Prescaler divider register high - bit_offset: 0 - bit_size: 4 + - name: DIVH + description: Prescaler divider register high + bit_offset: 0 + bit_size: 4 fieldset/DIVL: description: Prescaler Divider Register Low fields: - - name: DIVL - description: Prescaler divider register low - bit_offset: 0 - bit_size: 16 + - name: DIVL + description: Prescaler divider register low + bit_offset: 0 + bit_size: 16 fieldset/PRLH: description: Prescaler Load Register High fields: - - name: PRLH - description: Prescaler load register high - bit_offset: 0 - bit_size: 4 + - name: PRLH + description: Prescaler load register high + bit_offset: 0 + bit_size: 4 fieldset/PRLL: description: Prescaler Load Register Low fields: - - name: PRLL - description: Prescaler divider register low - bit_offset: 0 - bit_size: 16 + - name: PRLL + description: Prescaler divider register low + bit_offset: 0 + bit_size: 16 enum/CNF: bit_size: 1 variants: - - name: Exit - description: Exit configuration mode (start update of RTC registers) - value: 0 - - name: Enter - description: Enter configuration mode - value: 1 + - name: Exit + description: Exit configuration mode (start update of RTC registers) + value: 0 + - name: Enter + description: Enter configuration mode + value: 1 enum/RTOFF: bit_size: 1 variants: - - name: Enabled - description: Last write operation on RTC registers is still ongoing - value: 0 - - name: Disabled - description: Last write operation on RTC registers terminated - value: 1 + - name: Enabled + description: Last write operation on RTC registers is still ongoing + value: 0 + - name: Disabled + description: Last write operation on RTC registers terminated + value: 1 diff --git a/data/registers/rtc_v2f0.yaml b/data/registers/rtc_v2f0.yaml index 0ce88e7..395ba61 100644 --- a/data/registers/rtc_v2f0.yaml +++ b/data/registers/rtc_v2f0.yaml @@ -1,840 +1,839 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 1 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAFCR - description: Tamper and alternate function configuration register - byte_offset: 64 - fieldset: TAFCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 1 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: BKPR - description: Backup register - array: - len: 5 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 1 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAFCR + description: Tamper and alternate function configuration register + byte_offset: 64 + fieldset: TAFCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 1 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: BKPR + description: Backup register + array: + len: 5 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 1 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 1 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 1 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 1 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 1 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 1 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 1 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 1 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAFCR: description: Tamper and alternate function configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: PC13VALUE - description: PC13 value - bit_offset: 18 - bit_size: 1 - enum: PCVALUE - - name: PC13MODE - description: PC13 mode - bit_offset: 19 - bit_size: 1 - enum: PCMODE - - name: PC14VALUE - description: PC14 value - bit_offset: 20 - bit_size: 1 - enum: PCVALUE - - name: PC14MODE - description: PC14 mode - bit_offset: 21 - bit_size: 1 - enum: PCMODE - - name: PC15VALUE - description: PC15 value - bit_offset: 22 - bit_size: 1 - enum: PCVALUE - - name: PC15MODE - description: PC15 mode - bit_offset: 23 - bit_size: 1 - enum: PCMODE + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: PC13VALUE + description: PC13 value + bit_offset: 18 + bit_size: 1 + enum: PCVALUE + - name: PC13MODE + description: PC13 mode + bit_offset: 19 + bit_size: 1 + enum: PCMODE + - name: PC14VALUE + description: PC14 value + bit_offset: 20 + bit_size: 1 + enum: PCVALUE + - name: PC14MODE + description: PC14 mode + bit_offset: 21 + bit_size: 1 + enum: PCMODE + - name: PC15VALUE + description: PC15 value + bit_offset: 22 + bit_size: 1 + enum: PCVALUE + - name: PC15MODE + description: PC15 mode + bit_offset: 23 + bit_size: 1 + enum: PCMODE fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/PCMODE: bit_size: 1 variants: - - name: Floating - description: PCx is controlled by the GPIO configuration Register. Consequently PC15 is floating in Standby mode - value: 0 - - name: PushPull - description: PCx is forced to push-pull output if LSE is disabled - value: 1 + - name: Floating + description: PCx is controlled by the GPIO configuration Register. Consequently PC15 is floating in Standby mode + value: 0 + - name: PushPull + description: PCx is forced to push-pull output if LSE is disabled + value: 1 enum/PCVALUE: bit_size: 1 variants: - - name: Low - description: "If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic low" - value: 0 - - name: High - description: "If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic high" - value: 1 + - name: Low + description: If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic low + value: 0 + - name: High + description: If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic high + value: 1 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2f2.yaml b/data/registers/rtc_v2f2.yaml index 571793c..6edb8f6 100644 --- a/data/registers/rtc_v2f2.yaml +++ b/data/registers/rtc_v2f2.yaml @@ -1,591 +1,590 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: CALIBR - description: Calibration register - byte_offset: 24 - fieldset: CALIBR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TAFCR - description: Tamper and alternate function configuration register - byte_offset: 64 - fieldset: TAFCR - - name: BKPR - description: Backup register - array: - len: 20 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: CALIBR + description: Calibration register + byte_offset: 24 + fieldset: CALIBR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TAFCR + description: Tamper and alternate function configuration register + byte_offset: 64 + fieldset: TAFCR + - name: BKPR + description: Backup register + array: + len: 20 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALIBR: description: Calibration register fields: - - name: DC - description: Digital calibration - bit_offset: 0 - bit_size: 5 - - name: DCS - description: Digital calibration sign - bit_offset: 7 - bit_size: 1 + - name: DC + description: Digital calibration + bit_offset: 0 + bit_size: 5 + - name: DCS + description: Digital calibration sign + bit_offset: 7 + bit_size: 1 fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - - name: DCE - description: Coarse digital calibration enable - bit_offset: 7 - bit_size: 1 - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + - name: DCE + description: Coarse digital calibration enable + bit_offset: 7 + bit_size: 1 + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 1 - stride: 1 + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 1 + stride: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/TAFCR: description: Tamper and alternate function configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMP1INSEL - description: Tamper 1 mapping - bit_offset: 16 - bit_size: 1 - - name: TSINSEL - description: Timestamp mapping - bit_offset: 17 - bit_size: 1 - - name: ALARMOUTTYPE - description: AFO_ALARM output type - bit_offset: 18 - bit_size: 1 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMP1INSEL + description: Tamper 1 mapping + bit_offset: 16 + bit_size: 1 + - name: TSINSEL + description: Timestamp mapping + bit_offset: 17 + bit_size: 1 + - name: ALARMOUTTYPE + description: AFO_ALARM output type + bit_offset: 18 + bit_size: 1 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2f3.yaml b/data/registers/rtc_v2f3.yaml index 433f6cc..c93b79d 100644 --- a/data/registers/rtc_v2f3.yaml +++ b/data/registers/rtc_v2f3.yaml @@ -1,848 +1,847 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAFCR - description: Tamper and alternate function configuration register - byte_offset: 64 - fieldset: TAFCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: BKPR - description: Backup register - array: - len: 32 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAFCR + description: Tamper and alternate function configuration register + byte_offset: 64 + fieldset: TAFCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: BKPR + description: Backup register + array: + len: 32 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAFCR: description: Tamper and alternate function configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: PC13VALUE - description: PC13 value - bit_offset: 18 - bit_size: 1 - enum: PCVALUE - - name: PC13MODE - description: PC13 mode - bit_offset: 19 - bit_size: 1 - enum: PCMODE - - name: PC14VALUE - description: PC14 value - bit_offset: 20 - bit_size: 1 - enum: PCVALUE - - name: PC14MODE - description: PC14 mode - bit_offset: 21 - bit_size: 1 - enum: PCMODE - - name: PC15VALUE - description: PC15 value - bit_offset: 22 - bit_size: 1 - enum: PCVALUE - - name: PC15MODE - description: PC15 mode - bit_offset: 23 - bit_size: 1 - enum: PCMODE + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: PC13VALUE + description: PC13 value + bit_offset: 18 + bit_size: 1 + enum: PCVALUE + - name: PC13MODE + description: PC13 mode + bit_offset: 19 + bit_size: 1 + enum: PCMODE + - name: PC14VALUE + description: PC14 value + bit_offset: 20 + bit_size: 1 + enum: PCVALUE + - name: PC14MODE + description: PC14 mode + bit_offset: 21 + bit_size: 1 + enum: PCMODE + - name: PC15VALUE + description: PC15 value + bit_offset: 22 + bit_size: 1 + enum: PCVALUE + - name: PC15MODE + description: PC15 mode + bit_offset: 23 + bit_size: 1 + enum: PCMODE fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/PCMODE: bit_size: 1 variants: - - name: Floating - description: PCx is controlled by the GPIO configuration Register. Consequently PC15 is floating in Standby mode - value: 0 - - name: PushPull - description: PCx is forced to push-pull output if LSE is disabled - value: 1 + - name: Floating + description: PCx is controlled by the GPIO configuration Register. Consequently PC15 is floating in Standby mode + value: 0 + - name: PushPull + description: PCx is forced to push-pull output if LSE is disabled + value: 1 enum/PCVALUE: bit_size: 1 variants: - - name: Low - description: "If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic low" - value: 0 - - name: High - description: "If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic high" - value: 1 + - name: Low + description: If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic low + value: 0 + - name: High + description: If the LSE is disabled and PCxMODE = 1, set PCxVALUE to logic high + value: 1 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2f4.yaml b/data/registers/rtc_v2f4.yaml index f3a945f..ab1a017 100644 --- a/data/registers/rtc_v2f4.yaml +++ b/data/registers/rtc_v2f4.yaml @@ -1,831 +1,830 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: CALIBR - description: Calibration register - byte_offset: 24 - fieldset: CALIBR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAFCR - description: Tamper and alternate function configuration register - byte_offset: 64 - fieldset: TAFCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: BKPR - description: Backup register - array: - len: 20 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: CALIBR + description: Calibration register + byte_offset: 24 + fieldset: CALIBR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAFCR + description: Tamper and alternate function configuration register + byte_offset: 64 + fieldset: TAFCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: BKPR + description: Backup register + array: + len: 20 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALIBR: description: Calibration register fields: - - name: DC - description: Digital calibration - bit_offset: 0 - bit_size: 5 - - name: DCS - description: Digital calibration sign - bit_offset: 7 - bit_size: 1 + - name: DC + description: Digital calibration + bit_offset: 0 + bit_size: 5 + - name: DCS + description: Digital calibration sign + bit_offset: 7 + bit_size: 1 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: DCE - description: Coarse digital calibration enable - bit_offset: 7 - bit_size: 1 - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: DCE + description: Coarse digital calibration enable + bit_offset: 7 + bit_size: 1 + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAFCR: description: Tamper and alternate function configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: TAMP1INSEL - description: Tamper 1 mapping - bit_offset: 16 - bit_size: 1 - - name: TSINSEL - description: Timestamp mapping - bit_offset: 17 - bit_size: 1 - - name: ALARMOUTTYPE - description: AFO_ALARM output type - bit_offset: 18 - bit_size: 1 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: TAMP1INSEL + description: Tamper 1 mapping + bit_offset: 16 + bit_size: 1 + - name: TSINSEL + description: Timestamp mapping + bit_offset: 17 + bit_size: 1 + - name: ALARMOUTTYPE + description: AFO_ALARM output type + bit_offset: 18 + bit_size: 1 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2f7.yaml b/data/registers/rtc_v2f7.yaml index 7f33f5d..2aabd35 100644 --- a/data/registers/rtc_v2f7.yaml +++ b/data/registers/rtc_v2f7.yaml @@ -1,846 +1,845 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAMPCR - description: Tamper configuration register - byte_offset: 64 - fieldset: TAMPCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: OR - description: Option register - byte_offset: 76 - fieldset: OR - - name: BKPR - description: Backup register - array: - len: 32 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAMPCR + description: Tamper configuration register + byte_offset: 64 + fieldset: TAMPCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: OR + description: Option register + byte_offset: 76 + fieldset: OR + - name: BKPR + description: Backup register + array: + len: 32 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 - - name: ITSE - description: Timestamp on internal event enable - bit_offset: 24 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 + - name: ITSE + description: Timestamp on internal event enable + bit_offset: 24 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF - - name: ITSF - description: Internal time-stamp flag - bit_offset: 17 - bit_size: 1 + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF + - name: ITSF + description: Internal time-stamp flag + bit_offset: 17 + bit_size: 1 fieldset/OR: description: Option register fields: - - name: TSINSEL - description: Timestamp mapping - bit_offset: 1 - bit_size: 2 - - name: RTC_ALARM_TYPE - description: RTC_ALARM on PC13 output type - bit_offset: 3 - bit_size: 1 + - name: TSINSEL + description: Timestamp mapping + bit_offset: 1 + bit_size: 2 + - name: RTC_ALARM_TYPE + description: RTC_ALARM on PC13 output type + bit_offset: 3 + bit_size: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAMPCR: description: Tamper configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: TAMPXIE - description: Tamper interrupt enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXNOERASE - description: Tamper no erase - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXMF - description: Tamper mask flag - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: TAMPXIE + description: Tamper interrupt enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXNOERASE + description: Tamper no erase + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXMF + description: Tamper mask flag + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2h7.yaml b/data/registers/rtc_v2h7.yaml index cec720f..81060e3 100644 --- a/data/registers/rtc_v2h7.yaml +++ b/data/registers/rtc_v2h7.yaml @@ -1,846 +1,845 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAMPCR - description: Tamper configuration register - byte_offset: 64 - fieldset: TAMPCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: OR - description: Option register - byte_offset: 76 - fieldset: OR - - name: BKPR - description: Backup register - array: - len: 32 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAMPCR + description: Tamper configuration register + byte_offset: 64 + fieldset: TAMPCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: OR + description: Option register + byte_offset: 76 + fieldset: OR + - name: BKPR + description: Backup register + array: + len: 32 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 - - name: ITSE - description: Timestamp on internal event enable - bit_offset: 24 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 + - name: ITSE + description: Timestamp on internal event enable + bit_offset: 24 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF - - name: ITSF - description: Internal time-stamp flag - bit_offset: 17 - bit_size: 1 + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF + - name: ITSF + description: Internal time-stamp flag + bit_offset: 17 + bit_size: 1 fieldset/OR: description: Option register fields: - - name: RTC_ALARM_TYPE - description: RTC_ALARM output type on PC13 - bit_offset: 0 - bit_size: 1 - - name: RTC_OUT_RMP - description: RTC_OUT remap - bit_offset: 1 - bit_size: 1 + - name: RTC_ALARM_TYPE + description: RTC_ALARM output type on PC13 + bit_offset: 0 + bit_size: 1 + - name: RTC_OUT_RMP + description: RTC_OUT remap + bit_offset: 1 + bit_size: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAMPCR: description: Tamper configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: TAMPXIE - description: Tamper interrupt enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXNOERASE - description: Tamper no erase - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXMF - description: Tamper mask flag - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: TAMPXIE + description: Tamper interrupt enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXNOERASE + description: Tamper no erase + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXMF + description: Tamper mask flag + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2l0.yaml b/data/registers/rtc_v2l0.yaml index 75dd62e..7ad5c77 100644 --- a/data/registers/rtc_v2l0.yaml +++ b/data/registers/rtc_v2l0.yaml @@ -1,838 +1,837 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAMPCR - description: Tamper configuration register - byte_offset: 64 - fieldset: TAMPCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: OR - description: Option register - byte_offset: 76 - fieldset: OR - - name: BKPR - description: Backup register - array: - len: 5 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAMPCR + description: Tamper configuration register + byte_offset: 64 + fieldset: TAMPCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: OR + description: Option register + byte_offset: 76 + fieldset: OR + - name: BKPR + description: Backup register + array: + len: 5 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/OR: description: Option register fields: - - name: RTC_ALARM_TYPE - description: RTC_ALARM on PC13 output type - bit_offset: 0 - bit_size: 1 - - name: RTC_OUT_RMP - description: RTC_ALARM on PC13 output type - bit_offset: 1 - bit_size: 1 + - name: RTC_ALARM_TYPE + description: RTC_ALARM on PC13 output type + bit_offset: 0 + bit_size: 1 + - name: RTC_OUT_RMP + description: RTC_ALARM on PC13 output type + bit_offset: 1 + bit_size: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAMPCR: description: Tamper configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: TAMPXIE - description: Tamper interrupt enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXNOERASE - description: Tamper no erase - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXMF - description: Tamper mask flag - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: TAMPXIE + description: Tamper interrupt enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXNOERASE + description: Tamper no erase + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXMF + description: Tamper mask flag + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2l1.yaml b/data/registers/rtc_v2l1.yaml index 2442d86..12c1ea3 100644 --- a/data/registers/rtc_v2l1.yaml +++ b/data/registers/rtc_v2l1.yaml @@ -1,825 +1,824 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: CALIBR - description: Calibration register - byte_offset: 24 - fieldset: CALIBR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAFCR - description: Tamper and alternate function configuration register - byte_offset: 64 - fieldset: TAFCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: BKPR - description: Backup register - array: - len: 32 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: CALIBR + description: Calibration register + byte_offset: 24 + fieldset: CALIBR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAFCR + description: Tamper and alternate function configuration register + byte_offset: 64 + fieldset: TAFCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: BKPR + description: Backup register + array: + len: 32 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALIBR: description: Calibration register fields: - - name: DC - description: Digital calibration - bit_offset: 0 - bit_size: 5 - - name: DCS - description: Digital calibration sign - bit_offset: 7 - bit_size: 1 + - name: DC + description: Digital calibration + bit_offset: 0 + bit_size: 5 + - name: DCS + description: Digital calibration sign + bit_offset: 7 + bit_size: 1 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: DCE - description: Coarse digital calibration enable - bit_offset: 7 - bit_size: 1 - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: DCE + description: Coarse digital calibration enable + bit_offset: 7 + bit_size: 1 + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAFCR: description: Tamper and alternate function configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: ALARMOUTTYPE - description: AFO_ALARM output type - bit_offset: 18 - bit_size: 1 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: ALARMOUTTYPE + description: AFO_ALARM output type + bit_offset: 18 + bit_size: 1 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2l4.yaml b/data/registers/rtc_v2l4.yaml index 0c4d309..bca17e2 100644 --- a/data/registers/rtc_v2l4.yaml +++ b/data/registers/rtc_v2l4.yaml @@ -1,842 +1,841 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAMPCR - description: Tamper configuration register - byte_offset: 64 - fieldset: TAMPCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: OR - description: Option register - byte_offset: 76 - fieldset: OR - - name: BKPR - description: Backup register - array: - len: 32 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAMPCR + description: Tamper configuration register + byte_offset: 64 + fieldset: TAMPCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: OR + description: Option register + byte_offset: 76 + fieldset: OR + - name: BKPR + description: Backup register + array: + len: 32 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 - - name: ITSE - description: Timestamp on internal event enable - bit_offset: 24 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 + - name: ITSE + description: Timestamp on internal event enable + bit_offset: 24 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/OR: description: Option register fields: - - name: RTC_ALARM_TYPE - description: RTC_ALARM on PC13 output type - bit_offset: 0 - bit_size: 1 - - name: RTC_OUT_RMP - description: RTC_OUT remap - bit_offset: 1 - bit_size: 1 + - name: RTC_ALARM_TYPE + description: RTC_ALARM on PC13 output type + bit_offset: 0 + bit_size: 1 + - name: RTC_OUT_RMP + description: RTC_OUT remap + bit_offset: 1 + bit_size: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAMPCR: description: Tamper configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: TAMPXIE - description: Tamper interrupt enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXNOERASE - description: Tamper no erase - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXMF - description: Tamper mask flag - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: TAMPXIE + description: Tamper interrupt enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXNOERASE + description: Tamper no erase + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXMF + description: Tamper mask flag + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v2wb.yaml b/data/registers/rtc_v2wb.yaml index 0a0a11f..9530fc3 100644 --- a/data/registers/rtc_v2wb.yaml +++ b/data/registers/rtc_v2wb.yaml @@ -1,846 +1,845 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: CR - description: Control register - byte_offset: 8 - fieldset: CR - - name: ISR - description: Initialization and status register - byte_offset: 12 - fieldset: ISR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 4 - byte_offset: 28 - fieldset: ALRMR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: SSR - description: Sub second register - byte_offset: 40 - access: Read - fieldset: SSR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: CALR - description: Calibration register - byte_offset: 60 - fieldset: CALR - - name: TAMPCR - description: Tamper configuration register - byte_offset: 64 - fieldset: TAMPCR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 4 - byte_offset: 68 - fieldset: ALRMSSR - - name: OR - description: Option register - byte_offset: 76 - fieldset: OR - - name: BKPR - description: Backup register - array: - len: 20 - stride: 4 - byte_offset: 80 - fieldset: BKPR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: CR + description: Control register + byte_offset: 8 + fieldset: CR + - name: ISR + description: Initialization and status register + byte_offset: 12 + fieldset: ISR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 4 + byte_offset: 28 + fieldset: ALRMR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: SSR + description: Sub second register + byte_offset: 40 + access: Read + fieldset: SSR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: CALR + description: Calibration register + byte_offset: 60 + fieldset: CALR + - name: TAMPCR + description: Tamper configuration register + byte_offset: 64 + fieldset: TAMPCR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 4 + byte_offset: 68 + fieldset: ALRMSSR + - name: OR + description: Option register + byte_offset: 76 + fieldset: OR + - name: BKPR + description: Backup register + array: + len: 20 + stride: 4 + byte_offset: 80 + fieldset: BKPR fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 4 + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 4 fieldset/BKPR: description: Backup register fields: - - name: BKP - description: BKP - bit_offset: 0 - bit_size: 32 + - name: BKP + description: BKP + bit_offset: 0 + bit_size: 32 fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: Reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 - - name: ITSE - description: Timestamp on internal event enable - bit_offset: 24 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: Reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 + - name: ITSE + description: Timestamp on internal event enable + bit_offset: 24 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ISR: description: Initialization and status register fields: - - name: ALRWF - description: Alarm write flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRWF - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: ALRF - description: Alarm flag - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTF - description: Wakeup timer flag - bit_offset: 10 - bit_size: 1 - - name: TSF - description: Timestamp flag - bit_offset: 11 - bit_size: 1 - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 12 - bit_size: 1 - - name: TAMPF - description: Tamper detection flag - bit_offset: 13 - bit_size: 1 - array: - len: 3 - stride: 1 - - name: RECALPF - description: Recalibration pending flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF - - name: ITSF - description: Internal time-stamp flag - bit_offset: 17 - bit_size: 1 + - name: ALRWF + description: Alarm write flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRWF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: ALRF + description: Alarm flag + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTF + description: Wakeup timer flag + bit_offset: 10 + bit_size: 1 + - name: TSF + description: Timestamp flag + bit_offset: 11 + bit_size: 1 + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 12 + bit_size: 1 + - name: TAMPF + description: Tamper detection flag + bit_offset: 13 + bit_size: 1 + array: + len: 3 + stride: 1 + - name: RECALPF + description: Recalibration pending flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF + - name: ITSF + description: Internal time-stamp flag + bit_offset: 17 + bit_size: 1 fieldset/OR: description: Option register fields: - - name: RTC_ALARM_TYPE - description: RTC_ALARM on PC13 output type - bit_offset: 0 - bit_size: 1 - - name: RTC_OUT_RMP - description: RTC_OUT remap - bit_offset: 1 - bit_size: 1 + - name: RTC_ALARM_TYPE + description: RTC_ALARM on PC13 output type + bit_offset: 0 + bit_size: 1 + - name: RTC_OUT_RMP + description: RTC_OUT remap + bit_offset: 1 + bit_size: 1 fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SSR: description: Sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TAMPCR: description: Tamper configuration register fields: - - name: TAMPE - description: Tamper detection enable - bit_offset: 0 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - - name: TAMPTRG - description: Active level for tamper - bit_offset: 1 - bit_size: 1 - array: - offsets: - - 0 - - 3 - - 5 - enum: TAMPTRG - - name: TAMPIE - description: Tamper interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 7 - bit_size: 1 - - name: TAMPFREQ - description: Tamper sampling frequency - bit_offset: 8 - bit_size: 3 - enum: TAMPFREQ - - name: TAMPFLT - description: Tamper filter count - bit_offset: 11 - bit_size: 2 - enum: TAMPFLT - - name: TAMPPRCH - description: Tamper precharge duration - bit_offset: 13 - bit_size: 2 - enum: TAMPPRCH - - name: TAMPPUDIS - description: Tamper pull-up disable - bit_offset: 15 - bit_size: 1 - enum: TAMPPUDIS - - name: TAMPXIE - description: Tamper interrupt enable - bit_offset: 16 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXNOERASE - description: Tamper no erase - bit_offset: 17 - bit_size: 1 - array: - len: 3 - stride: 3 - - name: TAMPXMF - description: Tamper mask flag - bit_offset: 18 - bit_size: 1 - array: - len: 3 - stride: 3 + - name: TAMPE + description: Tamper detection enable + bit_offset: 0 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + - name: TAMPTRG + description: Active level for tamper + bit_offset: 1 + bit_size: 1 + array: + offsets: + - 0 + - 3 + - 5 + enum: TAMPTRG + - name: TAMPIE + description: Tamper interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 7 + bit_size: 1 + - name: TAMPFREQ + description: Tamper sampling frequency + bit_offset: 8 + bit_size: 3 + enum: TAMPFREQ + - name: TAMPFLT + description: Tamper filter count + bit_offset: 11 + bit_size: 2 + enum: TAMPFLT + - name: TAMPPRCH + description: Tamper precharge duration + bit_offset: 13 + bit_size: 2 + enum: TAMPPRCH + - name: TAMPPUDIS + description: Tamper pull-up disable + bit_offset: 15 + bit_size: 1 + enum: TAMPPUDIS + - name: TAMPXIE + description: Tamper interrupt enable + bit_offset: 16 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXNOERASE + description: Tamper no erase + bit_offset: 17 + bit_size: 1 + array: + len: 3 + stride: 3 + - name: TAMPXMF + description: Tamper mask flag + bit_offset: 18 + bit_size: 1 + array: + len: 3 + stride: 3 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 16 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 16 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care" - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care + value: 1 enum/ALRWF: bit_size: 1 variants: - - name: UpdateNotAllowed - description: Alarm update not allowed - value: 0 - - name: UpdateAllowed - description: Alarm update allowed - value: 1 + - name: UpdateNotAllowed + description: Alarm update not allowed + value: 0 + - name: UpdateAllowed + description: Alarm update allowed + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALW16: bit_size: 1 variants: - - name: Sixteen_Second - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: Sixteen_Second + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: Eight_Second - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: Eight_Second + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: Twenty_Four_Hour - description: 24 hour/day format - value: 0 - - name: AM_PM - description: AM/PM hour format - value: 1 + - name: Twenty_Four_Hour + description: 24 hour/day format + value: 0 + - name: AM_PM + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/TAMPFLT: bit_size: 2 variants: - - name: Immediate - description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) - value: 0 - - name: Samples2 - description: Tamper event is activated after 2 consecutive samples at the active level - value: 1 - - name: Samples4 - description: Tamper event is activated after 4 consecutive samples at the active level - value: 2 - - name: Samples8 - description: Tamper event is activated after 8 consecutive samples at the active level - value: 3 + - name: Immediate + description: Tamper event is activated on edge of RTC_TAMPx input transitions to the active level (no internal pull-up on RTC_TAMPx input) + value: 0 + - name: Samples2 + description: Tamper event is activated after 2 consecutive samples at the active level + value: 1 + - name: Samples4 + description: Tamper event is activated after 4 consecutive samples at the active level + value: 2 + - name: Samples8 + description: Tamper event is activated after 8 consecutive samples at the active level + value: 3 enum/TAMPFREQ: bit_size: 3 variants: - - name: Div32768 - description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) - value: 0 - - name: Div16384 - description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) - value: 1 - - name: Div8192 - description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) - value: 2 - - name: Div4096 - description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) - value: 3 - - name: Div2048 - description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) - value: 4 - - name: Div1024 - description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) - value: 5 - - name: Div512 - description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) - value: 6 - - name: Div256 - description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) - value: 7 + - name: Div32768 + description: RTCCLK / 32768 (1 Hz when RTCCLK = 32768 Hz) + value: 0 + - name: Div16384 + description: RTCCLK / 16384 (2 Hz when RTCCLK = 32768 Hz) + value: 1 + - name: Div8192 + description: RTCCLK / 8192 (4 Hz when RTCCLK = 32768 Hz) + value: 2 + - name: Div4096 + description: RTCCLK / 4096 (8 Hz when RTCCLK = 32768 Hz) + value: 3 + - name: Div2048 + description: RTCCLK / 2048 (16 Hz when RTCCLK = 32768 Hz) + value: 4 + - name: Div1024 + description: RTCCLK / 1024 (32 Hz when RTCCLK = 32768 Hz) + value: 5 + - name: Div512 + description: RTCCLK / 512 (64 Hz when RTCCLK = 32768 Hz) + value: 6 + - name: Div256 + description: RTCCLK / 256 (128 Hz when RTCCLK = 32768 Hz) + value: 7 enum/TAMPPRCH: bit_size: 2 variants: - - name: Cycles1 - description: 1 RTCCLK cycle - value: 0 - - name: Cycles2 - description: 2 RTCCLK cycles - value: 1 - - name: Cycles4 - description: 4 RTCCLK cycles - value: 2 - - name: Cycles8 - description: 8 RTCCLK cycles - value: 3 + - name: Cycles1 + description: 1 RTCCLK cycle + value: 0 + - name: Cycles2 + description: 2 RTCCLK cycles + value: 1 + - name: Cycles4 + description: 4 RTCCLK cycles + value: 2 + - name: Cycles8 + description: 8 RTCCLK cycles + value: 3 enum/TAMPPUDIS: bit_size: 1 variants: - - name: Enabled - description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) - value: 0 - - name: Disabled - description: Disable precharge of RTC_TAMPx pins - value: 1 + - name: Enabled + description: Precharge RTC_TAMPx pins before sampling (enable internal pull-up) + value: 0 + - name: Disabled + description: Disable precharge of RTC_TAMPx pins + value: 1 enum/TAMPTRG: bit_size: 1 variants: - - name: RisingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event." - value: 0 - - name: FallingEdge - description: "If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event" - value: 1 + - name: RisingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input rising edge triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input staying low triggers a tamper detection event.' + value: 0 + - name: FallingEdge + description: 'If TAMPFLT = 00: RTC_TAMPx input staying high triggers a tamper detection event. If TAMPFLT ≠ 00: RTC_TAMPx input falling edge triggers a tamper detection event' + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 diff --git a/data/registers/rtc_v3.yaml b/data/registers/rtc_v3.yaml index 78024d5..e1c1841 100644 --- a/data/registers/rtc_v3.yaml +++ b/data/registers/rtc_v3.yaml @@ -1,975 +1,974 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: SSR - description: Sub second register - byte_offset: 8 - access: Read - fieldset: SSR - - name: ICSR - description: Initialization control and status register - byte_offset: 12 - fieldset: ICSR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: CR - description: Control register - byte_offset: 24 - fieldset: CR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: CALR - description: Calibration register - byte_offset: 40 - fieldset: CALR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 8 - byte_offset: 64 - fieldset: ALRMR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 8 - byte_offset: 68 - fieldset: ALRMSSR - - name: SR - description: Status register - byte_offset: 80 - access: Read - fieldset: SR - - name: MISR - description: Masked interrupt status register - byte_offset: 84 - access: Read - fieldset: MISR - - name: SCR - description: Status clear register - byte_offset: 92 - access: Write - fieldset: SCR - - name: ALRBINR - description: Alarm binary mode register - array: - len: 2 - stride: 4 - byte_offset: 112 - fieldset: ALRBINR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: SSR + description: Sub second register + byte_offset: 8 + access: Read + fieldset: SSR + - name: ICSR + description: Initialization control and status register + byte_offset: 12 + fieldset: ICSR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: CR + description: Control register + byte_offset: 24 + fieldset: CR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: CALR + description: Calibration register + byte_offset: 40 + fieldset: CALR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 8 + byte_offset: 64 + fieldset: ALRMR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 8 + byte_offset: 68 + fieldset: ALRMSSR + - name: SR + description: Status register + byte_offset: 80 + access: Read + fieldset: SR + - name: MISR + description: Masked interrupt status register + byte_offset: 84 + access: Read + fieldset: MISR + - name: SCR + description: Status clear register + byte_offset: 92 + access: Write + fieldset: SCR + - name: ALRBINR + description: Alarm binary mode register + array: + len: 2 + stride: 4 + byte_offset: 112 + fieldset: ALRBINR fieldset/ALRBINR: description: RTC alarm A binary mode register fields: - - name: SS - description: Synchronous counter alarm value in Binary mode - bit_offset: 0 - bit_size: 32 + - name: SS + description: Synchronous counter alarm value in Binary mode + bit_offset: 0 + bit_size: 32 fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm A seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm A minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm A hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm A date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm A seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm A minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm A hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm A date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 6 - - name: SSCLR - description: Clear synchronous counter on alarm (Binary mode only) - bit_offset: 31 - bit_size: 1 - enum: ALRMSSR_SSCLR + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 6 + - name: SSCLR + description: Clear synchronous counter on alarm (Binary mode only) + bit_offset: 31 + bit_size: 1 + enum: ALRMSSR_SSCLR fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: LPCAL - description: Calibration low-power mode - bit_offset: 12 - bit_size: 1 - enum: LPCAL - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: LPCAL + description: Calibration low-power mode + bit_offset: 12 + bit_size: 1 + enum: LPCAL + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: RTC_REFIN reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: SSRUIE - description: SSR underflow interrupt enable - bit_offset: 7 - bit_size: 1 - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRAIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 - - name: ITSE - description: Timestamp on internal event enable - bit_offset: 24 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 25 - bit_size: 1 - - name: TAMPOE - description: Tamper detection output enable on TAMPALRM - bit_offset: 26 - bit_size: 1 - - name: TAMPALRM_PU - description: TAMPALRM pull-up enable - bit_offset: 29 - bit_size: 1 - enum: TAMPALRM_PU - - name: TAMPALRM_TYPE - description: TAMPALRM output type - bit_offset: 30 - bit_size: 1 - enum: TAMPALRM_TYPE - - name: OUT2EN - description: RTC_OUT2 output enable - bit_offset: 31 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: RTC_REFIN reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: SSRUIE + description: SSR underflow interrupt enable + bit_offset: 7 + bit_size: 1 + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRAIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 + - name: ITSE + description: Timestamp on internal event enable + bit_offset: 24 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 25 + bit_size: 1 + - name: TAMPOE + description: Tamper detection output enable on TAMPALRM + bit_offset: 26 + bit_size: 1 + - name: TAMPALRM_PU + description: TAMPALRM pull-up enable + bit_offset: 29 + bit_size: 1 + enum: TAMPALRM_PU + - name: TAMPALRM_TYPE + description: TAMPALRM output type + bit_offset: 30 + bit_size: 1 + enum: TAMPALRM_TYPE + - name: OUT2EN + description: RTC_OUT2 output enable + bit_offset: 31 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ICSR: description: Initialization control and status register fields: - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: BIN - description: Binary mode - bit_offset: 8 - bit_size: 2 - enum: BIN - - name: BCDU - description: BCD update - bit_offset: 10 - bit_size: 3 - enum: BCDU - - name: RECALPF - description: Recalibration pending Flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: BIN + description: Binary mode + bit_offset: 8 + bit_size: 2 + enum: BIN + - name: BCDU + description: BCD update + bit_offset: 10 + bit_size: 3 + enum: BCDU + - name: RECALPF + description: Recalibration pending Flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/MISR: description: Masked interrupt status register fields: - - name: ALRMF - description: Alarm masked flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRMF - - name: WUTMF - description: Wakeup timer masked flag - bit_offset: 2 - bit_size: 1 - enum: WUTMF - - name: TSMF - description: Timestamp masked flag - bit_offset: 3 - bit_size: 1 - enum: TSMF - - name: TSOVMF - description: Timestamp overflow masked flag - bit_offset: 4 - bit_size: 1 - enum: TSOVMF - - name: ITSMF - description: Internal timestamp masked flag - bit_offset: 5 - bit_size: 1 - enum: ITSMF - - name: SSRUMF - description: SSR underflow masked flag - bit_offset: 6 - bit_size: 1 - enum: SSRUMF + - name: ALRMF + description: Alarm masked flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRMF + - name: WUTMF + description: Wakeup timer masked flag + bit_offset: 2 + bit_size: 1 + enum: WUTMF + - name: TSMF + description: Timestamp masked flag + bit_offset: 3 + bit_size: 1 + enum: TSMF + - name: TSOVMF + description: Timestamp overflow masked flag + bit_offset: 4 + bit_size: 1 + enum: TSOVMF + - name: ITSMF + description: Internal timestamp masked flag + bit_offset: 5 + bit_size: 1 + enum: ITSMF + - name: SSRUMF + description: SSR underflow masked flag + bit_offset: 6 + bit_size: 1 + enum: SSRUMF fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/SCR: description: Status clear register fields: - - name: CALRF - description: Clear alarm A flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CALRF - - name: CWUTF - description: Clear wakeup timer flag - bit_offset: 2 - bit_size: 1 - enum: CALRF - - name: CTSF - description: Clear timestamp flag - bit_offset: 3 - bit_size: 1 - enum: CALRF - - name: CTSOVF - description: Clear timestamp overflow flag - bit_offset: 4 - bit_size: 1 - enum: CALRF - - name: CITSF - description: Clear internal timestamp flag - bit_offset: 5 - bit_size: 1 - enum: CALRF - - name: CSSRUF - description: Clear SSR underflow flag - bit_offset: 6 - bit_size: 1 - enum: CALRF + - name: CALRF + description: Clear alarm A flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CALRF + - name: CWUTF + description: Clear wakeup timer flag + bit_offset: 2 + bit_size: 1 + enum: CALRF + - name: CTSF + description: Clear timestamp flag + bit_offset: 3 + bit_size: 1 + enum: CALRF + - name: CTSOVF + description: Clear timestamp overflow flag + bit_offset: 4 + bit_size: 1 + enum: CALRF + - name: CITSF + description: Clear internal timestamp flag + bit_offset: 5 + bit_size: 1 + enum: CALRF + - name: CSSRUF + description: Clear SSR underflow flag + bit_offset: 6 + bit_size: 1 + enum: CALRF fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: ALRF - description: Alarm flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRF - - name: WUTF - description: Wakeup timer flag - bit_offset: 2 - bit_size: 1 - enum: WUTF - - name: TSF - description: Timestamp flag - bit_offset: 3 - bit_size: 1 - enum: TSF - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 4 - bit_size: 1 - enum: TSOVF - - name: ITSF - description: Internal timestamp flag - bit_offset: 5 - bit_size: 1 - enum: ITSF - - name: SSRUF - description: SSR underflow flag - bit_offset: 6 - bit_size: 1 - enum: SSRUF + - name: ALRF + description: Alarm flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRF + - name: WUTF + description: Wakeup timer flag + bit_offset: 2 + bit_size: 1 + enum: WUTF + - name: TSF + description: Timestamp flag + bit_offset: 3 + bit_size: 1 + enum: TSF + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 4 + bit_size: 1 + enum: TSOVF + - name: ITSF + description: Internal timestamp flag + bit_offset: 5 + bit_size: 1 + enum: ITSF + - name: SSRUF + description: SSR underflow flag + bit_offset: 6 + bit_size: 1 + enum: SSRUF fieldset/SSR: description: Sub second register fields: - - name: SS - description: Synchronous binary counter - bit_offset: 0 - bit_size: 32 + - name: SS + description: Synchronous binary counter + bit_offset: 0 + bit_size: 32 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 32 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 32 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 - enum: KEY + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 + enum: KEY fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 - - name: WUTOCLR - description: Wakeup auto-reload output clear value - bit_offset: 16 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 + - name: WUTOCLR + description: Wakeup auto-reload output clear value + bit_offset: 16 + bit_size: 16 enum/ALRF: bit_size: 1 variants: - - name: Match - description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) - value: 1 + - name: Match + description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) + value: 1 enum/ALRMF: bit_size: 1 variants: - - name: Match - description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) - value: 1 + - name: Match + description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) + value: 1 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care." - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care. + value: 1 enum/ALRMSSR_SSCLR: bit_size: 1 variants: - - name: FreeRunning - description: "The synchronous binary counter (SS[31:0] in RTC_SSR) is free-running" - value: 0 - - name: ALRMBINR - description: "The synchronous binary counter (SS[31:0] in RTC_SSR) is running from 0xFFFF FFFF to RTC_ALRMABINR → SS[31:0] value and is automatically reloaded with 0xFFFF FFFF when reaching RTC_ALRMABINR → SS[31:0]" - value: 1 + - name: FreeRunning + description: The synchronous binary counter (SS[31:0] in RTC_SSR) is free-running + value: 0 + - name: ALRMBINR + description: The synchronous binary counter (SS[31:0] in RTC_SSR) is running from 0xFFFF FFFF to RTC_ALRMABINR → SS[31:0] value and is automatically reloaded with 0xFFFF FFFF when reaching RTC_ALRMABINR → SS[31:0] + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/BCDU: bit_size: 3 variants: - - name: Bit7 - description: "1s increment each time SS[7:0]=0" - value: 0 - - name: Bit8 - description: "1s increment each time SS[8:0]=0" - value: 1 - - name: Bit9 - description: "1s increment each time SS[9:0]=0" - value: 2 - - name: Bit10 - description: "1s increment each time SS[10:0]=0" - value: 3 - - name: Bit11 - description: "1s increment each time SS[11:0]=0" - value: 4 - - name: Bit12 - description: "1s increment each time SS[12:0]=0" - value: 5 - - name: Bit13 - description: "1s increment each time SS[13:0]=0" - value: 6 - - name: Bit14 - description: "1s increment each time SS[14:0]=0" - value: 7 + - name: Bit7 + description: 1s increment each time SS[7:0]=0 + value: 0 + - name: Bit8 + description: 1s increment each time SS[8:0]=0 + value: 1 + - name: Bit9 + description: 1s increment each time SS[9:0]=0 + value: 2 + - name: Bit10 + description: 1s increment each time SS[10:0]=0 + value: 3 + - name: Bit11 + description: 1s increment each time SS[11:0]=0 + value: 4 + - name: Bit12 + description: 1s increment each time SS[12:0]=0 + value: 5 + - name: Bit13 + description: 1s increment each time SS[13:0]=0 + value: 6 + - name: Bit14 + description: 1s increment each time SS[14:0]=0 + value: 7 enum/BIN: bit_size: 2 variants: - - name: BCD - description: Free running BCD calendar mode (Binary mode disabled) - value: 0 - - name: Binary - description: Free running Binary mode (BCD mode disabled) - value: 1 - - name: BinBCD - description: Free running BCD calendar and Binary modes - value: 2 - - name: BinBCD2 - description: Free running BCD calendar and Binary modes - value: 3 + - name: BCD + description: Free running BCD calendar mode (Binary mode disabled) + value: 0 + - name: Binary + description: Free running Binary mode (BCD mode disabled) + value: 1 + - name: BinBCD + description: Free running BCD calendar and Binary modes + value: 2 + - name: BinBCD2 + description: Free running BCD calendar and Binary modes + value: 3 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALRF: bit_size: 1 variants: - - name: Clear - description: Clear interrupt flag by writing 1 - value: 1 + - name: Clear + description: Clear interrupt flag by writing 1 + value: 1 enum/CALW16: bit_size: 1 variants: - - name: SixteenSeconds - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: SixteenSeconds + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: EightSeconds - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: EightSeconds + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: TwentyFourHour - description: 24 hour/day format - value: 0 - - name: AmPm - description: AM/PM hour format - value: 1 + - name: TwentyFourHour + description: 24 hour/day format + value: 0 + - name: AmPm + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/ITSF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a timestamp on the internal event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a timestamp on the internal event occurs + value: 1 enum/ITSMF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a timestamp on the internal event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a timestamp on the internal event occurs + value: 1 enum/KEY: bit_size: 8 variants: - - name: Activate - description: Activate write protection (any value that is not the keys) - value: 0 - - name: Deactivate2 - description: Key 2 - value: 83 - - name: Deactivate1 - description: Key 1 - value: 202 + - name: Activate + description: Activate write protection (any value that is not the keys) + value: 0 + - name: Deactivate2 + description: Key 2 + value: 83 + - name: Deactivate1 + description: Key 1 + value: 202 enum/LPCAL: bit_size: 1 variants: - - name: RTCCLK - description: "Calibration window is 220 RTCCLK, which is a high-consumption mode. This mode should be set only when less than 32s calibration window is required" - value: 0 - - name: CkApre - description: "Calibration window is 220 ck_apre, which is the required configuration for ultra-low consumption mode" - value: 1 + - name: RTCCLK + description: Calibration window is 220 RTCCLK, which is a high-consumption mode. This mode should be set only when less than 32s calibration window is required + value: 0 + - name: CkApre + description: Calibration window is 220 ck_apre, which is the required configuration for ultra-low consumption mode + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/SSRUF: bit_size: 1 variants: - - name: Underflow - description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 - value: 1 + - name: Underflow + description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 + value: 1 enum/SSRUMF: bit_size: 1 variants: - - name: Underflow - description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 - value: 1 + - name: Underflow + description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 + value: 1 enum/TAMPALRM_PU: bit_size: 1 variants: - - name: NoPullUp - description: No pull-up is applied on TAMPALRM output - value: 0 - - name: PullUp - description: A pull-up is applied on TAMPALRM output - value: 1 + - name: NoPullUp + description: No pull-up is applied on TAMPALRM output + value: 0 + - name: PullUp + description: A pull-up is applied on TAMPALRM output + value: 1 enum/TAMPALRM_TYPE: bit_size: 1 variants: - - name: PushPull - description: TAMPALRM is push-pull output - value: 0 - - name: OpenDrain - description: TAMPALRM is open-drain output - value: 1 + - name: PushPull + description: TAMPALRM is push-pull output + value: 0 + - name: OpenDrain + description: TAMPALRM is open-drain output + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/TSF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a time-stamp event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a time-stamp event occurs + value: 1 enum/TSMF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a time-stamp event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a time-stamp event occurs + value: 1 enum/TSOVF: bit_size: 1 variants: - - name: Overflow - description: This flag is set by hardware when a time-stamp event occurs while TSF is already set - value: 1 + - name: Overflow + description: This flag is set by hardware when a time-stamp event occurs while TSF is already set + value: 1 enum/TSOVMF: bit_size: 1 variants: - - name: Overflow - description: This flag is set by hardware when a time-stamp event occurs while TSF is already set - value: 1 + - name: Overflow + description: This flag is set by hardware when a time-stamp event occurs while TSF is already set + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 enum/WUTF: bit_size: 1 variants: - - name: Zero - description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 - value: 1 + - name: Zero + description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 + value: 1 enum/WUTMF: bit_size: 1 variants: - - name: Zero - description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 - value: 1 + - name: Zero + description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 + value: 1 diff --git a/data/registers/rtc_v3u5.yaml b/data/registers/rtc_v3u5.yaml index 59857e5..fe764d1 100644 --- a/data/registers/rtc_v3u5.yaml +++ b/data/registers/rtc_v3u5.yaml @@ -1,1088 +1,1087 @@ ---- block/RTC: description: Real-time clock items: - - name: TR - description: Time register - byte_offset: 0 - fieldset: TR - - name: DR - description: Date register - byte_offset: 4 - fieldset: DR - - name: SSR - description: Sub second register - byte_offset: 8 - access: Read - fieldset: SSR - - name: ICSR - description: Initialization control and status register - byte_offset: 12 - fieldset: ICSR - - name: PRER - description: Prescaler register - byte_offset: 16 - fieldset: PRER - - name: WUTR - description: Wakeup timer register - byte_offset: 20 - fieldset: WUTR - - name: CR - description: Control register - byte_offset: 24 - fieldset: CR - - name: PRIVCR - description: Privilege mode control register - byte_offset: 28 - fieldset: PRIVCR - - name: SECCFGR - description: Secure mode control register - byte_offset: 32 - fieldset: SECCFGR - - name: WPR - description: Write protection register - byte_offset: 36 - access: Write - fieldset: WPR - - name: CALR - description: Calibration register - byte_offset: 40 - fieldset: CALR - - name: SHIFTR - description: Shift control register - byte_offset: 44 - access: Write - fieldset: SHIFTR - - name: TSTR - description: Timestamp time register - byte_offset: 48 - access: Read - fieldset: TSTR - - name: TSDR - description: Timestamp date register - byte_offset: 52 - access: Read - fieldset: TSDR - - name: TSSSR - description: Timestamp sub second register - byte_offset: 56 - access: Read - fieldset: TSSSR - - name: ALRMR - description: Alarm register - array: - len: 2 - stride: 8 - byte_offset: 64 - fieldset: ALRMR - - name: ALRMSSR - description: Alarm sub second register - array: - len: 2 - stride: 8 - byte_offset: 68 - fieldset: ALRMSSR - - name: SR - description: Status register - byte_offset: 80 - access: Read - fieldset: SR - - name: MISR - description: Masked interrupt status register - byte_offset: 84 - access: Read - fieldset: MISR - - name: SMISR - description: Secure masked interrupt status register - byte_offset: 88 - access: Read - fieldset: SMISR - - name: SCR - description: Status clear register - byte_offset: 92 - access: Write - fieldset: SCR - - name: ALRBINR - description: Alarm binary mode register - array: - len: 2 - stride: 4 - byte_offset: 112 - fieldset: ALRBINR + - name: TR + description: Time register + byte_offset: 0 + fieldset: TR + - name: DR + description: Date register + byte_offset: 4 + fieldset: DR + - name: SSR + description: Sub second register + byte_offset: 8 + access: Read + fieldset: SSR + - name: ICSR + description: Initialization control and status register + byte_offset: 12 + fieldset: ICSR + - name: PRER + description: Prescaler register + byte_offset: 16 + fieldset: PRER + - name: WUTR + description: Wakeup timer register + byte_offset: 20 + fieldset: WUTR + - name: CR + description: Control register + byte_offset: 24 + fieldset: CR + - name: PRIVCR + description: Privilege mode control register + byte_offset: 28 + fieldset: PRIVCR + - name: SECCFGR + description: Secure mode control register + byte_offset: 32 + fieldset: SECCFGR + - name: WPR + description: Write protection register + byte_offset: 36 + access: Write + fieldset: WPR + - name: CALR + description: Calibration register + byte_offset: 40 + fieldset: CALR + - name: SHIFTR + description: Shift control register + byte_offset: 44 + access: Write + fieldset: SHIFTR + - name: TSTR + description: Timestamp time register + byte_offset: 48 + access: Read + fieldset: TSTR + - name: TSDR + description: Timestamp date register + byte_offset: 52 + access: Read + fieldset: TSDR + - name: TSSSR + description: Timestamp sub second register + byte_offset: 56 + access: Read + fieldset: TSSSR + - name: ALRMR + description: Alarm register + array: + len: 2 + stride: 8 + byte_offset: 64 + fieldset: ALRMR + - name: ALRMSSR + description: Alarm sub second register + array: + len: 2 + stride: 8 + byte_offset: 68 + fieldset: ALRMSSR + - name: SR + description: Status register + byte_offset: 80 + access: Read + fieldset: SR + - name: MISR + description: Masked interrupt status register + byte_offset: 84 + access: Read + fieldset: MISR + - name: SMISR + description: Secure masked interrupt status register + byte_offset: 88 + access: Read + fieldset: SMISR + - name: SCR + description: Status clear register + byte_offset: 92 + access: Write + fieldset: SCR + - name: ALRBINR + description: Alarm binary mode register + array: + len: 2 + stride: 4 + byte_offset: 112 + fieldset: ALRBINR fieldset/ALRBINR: description: RTC alarm A binary mode register fields: - - name: SS - description: Synchronous counter alarm value in Binary mode - bit_offset: 0 - bit_size: 32 + - name: SS + description: Synchronous counter alarm value in Binary mode + bit_offset: 0 + bit_size: 32 fieldset/ALRMR: description: Alarm register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MSK1 - description: Alarm A seconds mask - bit_offset: 7 - bit_size: 1 - enum: ALRMR_MSK - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: MSK2 - description: Alarm A minutes mask - bit_offset: 15 - bit_size: 1 - enum: ALRMR_MSK - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: ALRMR_PM - - name: MSK3 - description: Alarm A hours mask - bit_offset: 23 - bit_size: 1 - enum: ALRMR_MSK - - name: DU - description: Date units or day in BCD format - bit_offset: 24 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 28 - bit_size: 2 - - name: WDSEL - description: Week day selection - bit_offset: 30 - bit_size: 1 - enum: ALRMR_WDSEL - - name: MSK4 - description: Alarm A date mask - bit_offset: 31 - bit_size: 1 - enum: ALRMR_MSK + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MSK1 + description: Alarm A seconds mask + bit_offset: 7 + bit_size: 1 + enum: ALRMR_MSK + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: MSK2 + description: Alarm A minutes mask + bit_offset: 15 + bit_size: 1 + enum: ALRMR_MSK + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: ALRMR_PM + - name: MSK3 + description: Alarm A hours mask + bit_offset: 23 + bit_size: 1 + enum: ALRMR_MSK + - name: DU + description: Date units or day in BCD format + bit_offset: 24 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 28 + bit_size: 2 + - name: WDSEL + description: Week day selection + bit_offset: 30 + bit_size: 1 + enum: ALRMR_WDSEL + - name: MSK4 + description: Alarm A date mask + bit_offset: 31 + bit_size: 1 + enum: ALRMR_MSK fieldset/ALRMSSR: description: Alarm sub second register fields: - - name: SS - description: Sub seconds value - bit_offset: 0 - bit_size: 15 - - name: MASKSS - description: Mask the most-significant bits starting at this bit - bit_offset: 24 - bit_size: 6 - - name: SSCLR - description: Clear synchronous counter on alarm (Binary mode only) - bit_offset: 31 - bit_size: 1 - enum: ALRMSSR_SSCLR + - name: SS + description: Sub seconds value + bit_offset: 0 + bit_size: 15 + - name: MASKSS + description: Mask the most-significant bits starting at this bit + bit_offset: 24 + bit_size: 6 + - name: SSCLR + description: Clear synchronous counter on alarm (Binary mode only) + bit_offset: 31 + bit_size: 1 + enum: ALRMSSR_SSCLR fieldset/CALR: description: Calibration register fields: - - name: CALM - description: Calibration minus - bit_offset: 0 - bit_size: 9 - - name: LPCAL - description: Calibration low-power mode - bit_offset: 12 - bit_size: 1 - enum: LPCAL - - name: CALW16 - description: Use a 16-second calibration cycle period - bit_offset: 13 - bit_size: 1 - enum: CALW16 - - name: CALW8 - description: Use an 8-second calibration cycle period - bit_offset: 14 - bit_size: 1 - enum: CALW8 - - name: CALP - description: Increase frequency of RTC by 488.5 ppm - bit_offset: 15 - bit_size: 1 - enum: CALP + - name: CALM + description: Calibration minus + bit_offset: 0 + bit_size: 9 + - name: LPCAL + description: Calibration low-power mode + bit_offset: 12 + bit_size: 1 + enum: LPCAL + - name: CALW16 + description: Use a 16-second calibration cycle period + bit_offset: 13 + bit_size: 1 + enum: CALW16 + - name: CALW8 + description: Use an 8-second calibration cycle period + bit_offset: 14 + bit_size: 1 + enum: CALW8 + - name: CALP + description: Increase frequency of RTC by 488.5 ppm + bit_offset: 15 + bit_size: 1 + enum: CALP fieldset/CR: description: Control register fields: - - name: WUCKSEL - description: Wakeup clock selection - bit_offset: 0 - bit_size: 3 - enum: WUCKSEL - - name: TSEDGE - description: Timestamp event active edge - bit_offset: 3 - bit_size: 1 - enum: TSEDGE - - name: REFCKON - description: RTC_REFIN reference clock detection enable (50 or 60 Hz) - bit_offset: 4 - bit_size: 1 - enum: REFCKON - - name: BYPSHAD - description: Bypass the shadow registers - bit_offset: 5 - bit_size: 1 - - name: FMT - description: Hour format - bit_offset: 6 - bit_size: 1 - enum: FMT - - name: SSRUIE - description: SSR underflow interrupt enable - bit_offset: 7 - bit_size: 1 - - name: ALRE - description: Alarm enable - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTE - description: Wakeup timer enable - bit_offset: 10 - bit_size: 1 - - name: TSE - description: Timestamp enable - bit_offset: 11 - bit_size: 1 - - name: ALRAIE - description: Alarm interrupt enable - bit_offset: 12 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: WUTIE - description: Wakeup timer interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TSIE - description: Timestamp interrupt enable - bit_offset: 15 - bit_size: 1 - - name: ADD1H - description: Add 1 hour (summer time change) - bit_offset: 16 - bit_size: 1 - - name: SUB1H - description: Subtract 1 hour (winter time change) - bit_offset: 17 - bit_size: 1 - - name: BKP - description: Backup - bit_offset: 18 - bit_size: 1 - - name: COSEL - description: Calibration output selection - bit_offset: 19 - bit_size: 1 - enum: COSEL - - name: POL - description: Output polarity - bit_offset: 20 - bit_size: 1 - enum: POL - - name: OSEL - description: Output selection - bit_offset: 21 - bit_size: 2 - enum: OSEL - - name: COE - description: Calibration output enable - bit_offset: 23 - bit_size: 1 - - name: ITSE - description: Timestamp on internal event enable - bit_offset: 24 - bit_size: 1 - - name: TAMPTS - description: Activate timestamp on tamper detection event - bit_offset: 25 - bit_size: 1 - - name: TAMPOE - description: Tamper detection output enable on TAMPALRM - bit_offset: 26 - bit_size: 1 - - name: ALRFCLR - description: ALRFCLR - bit_offset: 27 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: TAMPALRM_PU - description: TAMPALRM pull-up enable - bit_offset: 29 - bit_size: 1 - enum: TAMPALRM_PU - - name: TAMPALRM_TYPE - description: TAMPALRM output type - bit_offset: 30 - bit_size: 1 - enum: TAMPALRM_TYPE - - name: OUT2EN - description: RTC_OUT2 output enable - bit_offset: 31 - bit_size: 1 + - name: WUCKSEL + description: Wakeup clock selection + bit_offset: 0 + bit_size: 3 + enum: WUCKSEL + - name: TSEDGE + description: Timestamp event active edge + bit_offset: 3 + bit_size: 1 + enum: TSEDGE + - name: REFCKON + description: RTC_REFIN reference clock detection enable (50 or 60 Hz) + bit_offset: 4 + bit_size: 1 + enum: REFCKON + - name: BYPSHAD + description: Bypass the shadow registers + bit_offset: 5 + bit_size: 1 + - name: FMT + description: Hour format + bit_offset: 6 + bit_size: 1 + enum: FMT + - name: SSRUIE + description: SSR underflow interrupt enable + bit_offset: 7 + bit_size: 1 + - name: ALRE + description: Alarm enable + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTE + description: Wakeup timer enable + bit_offset: 10 + bit_size: 1 + - name: TSE + description: Timestamp enable + bit_offset: 11 + bit_size: 1 + - name: ALRAIE + description: Alarm interrupt enable + bit_offset: 12 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: WUTIE + description: Wakeup timer interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TSIE + description: Timestamp interrupt enable + bit_offset: 15 + bit_size: 1 + - name: ADD1H + description: Add 1 hour (summer time change) + bit_offset: 16 + bit_size: 1 + - name: SUB1H + description: Subtract 1 hour (winter time change) + bit_offset: 17 + bit_size: 1 + - name: BKP + description: Backup + bit_offset: 18 + bit_size: 1 + - name: COSEL + description: Calibration output selection + bit_offset: 19 + bit_size: 1 + enum: COSEL + - name: POL + description: Output polarity + bit_offset: 20 + bit_size: 1 + enum: POL + - name: OSEL + description: Output selection + bit_offset: 21 + bit_size: 2 + enum: OSEL + - name: COE + description: Calibration output enable + bit_offset: 23 + bit_size: 1 + - name: ITSE + description: Timestamp on internal event enable + bit_offset: 24 + bit_size: 1 + - name: TAMPTS + description: Activate timestamp on tamper detection event + bit_offset: 25 + bit_size: 1 + - name: TAMPOE + description: Tamper detection output enable on TAMPALRM + bit_offset: 26 + bit_size: 1 + - name: ALRFCLR + description: ALRFCLR + bit_offset: 27 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: TAMPALRM_PU + description: TAMPALRM pull-up enable + bit_offset: 29 + bit_size: 1 + enum: TAMPALRM_PU + - name: TAMPALRM_TYPE + description: TAMPALRM output type + bit_offset: 30 + bit_size: 1 + enum: TAMPALRM_TYPE + - name: OUT2EN + description: RTC_OUT2 output enable + bit_offset: 31 + bit_size: 1 fieldset/DR: description: Date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 - - name: YU - description: Year units in BCD format - bit_offset: 16 - bit_size: 4 - - name: YT - description: Year tens in BCD format - bit_offset: 20 - bit_size: 4 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 + - name: YU + description: Year units in BCD format + bit_offset: 16 + bit_size: 4 + - name: YT + description: Year tens in BCD format + bit_offset: 20 + bit_size: 4 fieldset/ICSR: description: Initialization control and status register fields: - - name: WUTWF - description: Wakeup timer write flag - bit_offset: 2 - bit_size: 1 - - name: SHPF - description: Shift operation pending - bit_offset: 3 - bit_size: 1 - - name: INITS - description: Initialization status flag - bit_offset: 4 - bit_size: 1 - - name: RSF - description: Registers synchronization flag - bit_offset: 5 - bit_size: 1 - - name: INITF - description: Initialization flag - bit_offset: 6 - bit_size: 1 - - name: INIT - description: Initialization mode - bit_offset: 7 - bit_size: 1 - enum: INIT - - name: BIN - description: Binary mode - bit_offset: 8 - bit_size: 2 - enum: BIN - - name: BCDU - description: BCD update - bit_offset: 10 - bit_size: 3 - enum: BCDU - - name: RECALPF - description: Recalibration pending Flag - bit_offset: 16 - bit_size: 1 - enum: RECALPF + - name: WUTWF + description: Wakeup timer write flag + bit_offset: 2 + bit_size: 1 + - name: SHPF + description: Shift operation pending + bit_offset: 3 + bit_size: 1 + - name: INITS + description: Initialization status flag + bit_offset: 4 + bit_size: 1 + - name: RSF + description: Registers synchronization flag + bit_offset: 5 + bit_size: 1 + - name: INITF + description: Initialization flag + bit_offset: 6 + bit_size: 1 + - name: INIT + description: Initialization mode + bit_offset: 7 + bit_size: 1 + enum: INIT + - name: BIN + description: Binary mode + bit_offset: 8 + bit_size: 2 + enum: BIN + - name: BCDU + description: BCD update + bit_offset: 10 + bit_size: 3 + enum: BCDU + - name: RECALPF + description: Recalibration pending Flag + bit_offset: 16 + bit_size: 1 + enum: RECALPF fieldset/MISR: description: Masked interrupt status register fields: - - name: ALRMF - description: Alarm masked flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRMF - - name: WUTMF - description: Wakeup timer masked flag - bit_offset: 2 - bit_size: 1 - enum: WUTMF - - name: TSMF - description: Timestamp masked flag - bit_offset: 3 - bit_size: 1 - enum: TSMF - - name: TSOVMF - description: Timestamp overflow masked flag - bit_offset: 4 - bit_size: 1 - enum: TSOVMF - - name: ITSMF - description: Internal timestamp masked flag - bit_offset: 5 - bit_size: 1 - enum: ITSMF - - name: SSRUMF - description: SSR underflow masked flag - bit_offset: 6 - bit_size: 1 - enum: SSRUMF + - name: ALRMF + description: Alarm masked flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRMF + - name: WUTMF + description: Wakeup timer masked flag + bit_offset: 2 + bit_size: 1 + enum: WUTMF + - name: TSMF + description: Timestamp masked flag + bit_offset: 3 + bit_size: 1 + enum: TSMF + - name: TSOVMF + description: Timestamp overflow masked flag + bit_offset: 4 + bit_size: 1 + enum: TSOVMF + - name: ITSMF + description: Internal timestamp masked flag + bit_offset: 5 + bit_size: 1 + enum: ITSMF + - name: SSRUMF + description: SSR underflow masked flag + bit_offset: 6 + bit_size: 1 + enum: SSRUMF fieldset/PRER: description: Prescaler register fields: - - name: PREDIV_S - description: Synchronous prescaler factor - bit_offset: 0 - bit_size: 15 - - name: PREDIV_A - description: Asynchronous prescaler factor - bit_offset: 16 - bit_size: 7 + - name: PREDIV_S + description: Synchronous prescaler factor + bit_offset: 0 + bit_size: 15 + - name: PREDIV_A + description: Asynchronous prescaler factor + bit_offset: 16 + bit_size: 7 fieldset/PRIVCR: description: Privilege mode control register fields: - - name: ALRAPRIV - description: ALRAPRIV - bit_offset: 0 - bit_size: 1 - - name: ALRBPRIV - description: ALRBPRIV - bit_offset: 1 - bit_size: 1 - - name: WUTPRIV - description: WUTPRIV - bit_offset: 2 - bit_size: 1 - - name: TSPRIV - description: TSPRIV - bit_offset: 3 - bit_size: 1 - - name: CALPRIV - description: CALPRIV - bit_offset: 13 - bit_size: 1 - - name: INITPRIV - description: INITPRIV - bit_offset: 14 - bit_size: 1 - - name: PRIV - description: PRIV - bit_offset: 15 - bit_size: 1 + - name: ALRAPRIV + description: ALRAPRIV + bit_offset: 0 + bit_size: 1 + - name: ALRBPRIV + description: ALRBPRIV + bit_offset: 1 + bit_size: 1 + - name: WUTPRIV + description: WUTPRIV + bit_offset: 2 + bit_size: 1 + - name: TSPRIV + description: TSPRIV + bit_offset: 3 + bit_size: 1 + - name: CALPRIV + description: CALPRIV + bit_offset: 13 + bit_size: 1 + - name: INITPRIV + description: INITPRIV + bit_offset: 14 + bit_size: 1 + - name: PRIV + description: PRIV + bit_offset: 15 + bit_size: 1 fieldset/SCR: description: Status clear register fields: - - name: CALRF - description: Clear alarm A flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: CALRF - - name: CWUTF - description: Clear wakeup timer flag - bit_offset: 2 - bit_size: 1 - enum: CALRF - - name: CTSF - description: Clear timestamp flag - bit_offset: 3 - bit_size: 1 - enum: CALRF - - name: CTSOVF - description: Clear timestamp overflow flag - bit_offset: 4 - bit_size: 1 - enum: CALRF - - name: CITSF - description: Clear internal timestamp flag - bit_offset: 5 - bit_size: 1 - enum: CALRF - - name: CSSRUF - description: Clear SSR underflow flag - bit_offset: 6 - bit_size: 1 - enum: CALRF + - name: CALRF + description: Clear alarm A flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: CALRF + - name: CWUTF + description: Clear wakeup timer flag + bit_offset: 2 + bit_size: 1 + enum: CALRF + - name: CTSF + description: Clear timestamp flag + bit_offset: 3 + bit_size: 1 + enum: CALRF + - name: CTSOVF + description: Clear timestamp overflow flag + bit_offset: 4 + bit_size: 1 + enum: CALRF + - name: CITSF + description: Clear internal timestamp flag + bit_offset: 5 + bit_size: 1 + enum: CALRF + - name: CSSRUF + description: Clear SSR underflow flag + bit_offset: 6 + bit_size: 1 + enum: CALRF fieldset/SECCFGR: description: Secure mode control register fields: - - name: ALRASEC - description: ALRASEC - bit_offset: 0 - bit_size: 1 - - name: ALRBSEC - description: ALRBSEC - bit_offset: 1 - bit_size: 1 - - name: WUTSEC - description: WUTSEC - bit_offset: 2 - bit_size: 1 - - name: TSSEC - description: TSSEC - bit_offset: 3 - bit_size: 1 - - name: CALSEC - description: CALSEC - bit_offset: 13 - bit_size: 1 - - name: INITSEC - description: INITSEC - bit_offset: 14 - bit_size: 1 - - name: SEC - description: SEC - bit_offset: 15 - bit_size: 1 + - name: ALRASEC + description: ALRASEC + bit_offset: 0 + bit_size: 1 + - name: ALRBSEC + description: ALRBSEC + bit_offset: 1 + bit_size: 1 + - name: WUTSEC + description: WUTSEC + bit_offset: 2 + bit_size: 1 + - name: TSSEC + description: TSSEC + bit_offset: 3 + bit_size: 1 + - name: CALSEC + description: CALSEC + bit_offset: 13 + bit_size: 1 + - name: INITSEC + description: INITSEC + bit_offset: 14 + bit_size: 1 + - name: SEC + description: SEC + bit_offset: 15 + bit_size: 1 fieldset/SHIFTR: description: Shift control register fields: - - name: SUBFS - description: Subtract a fraction of a second - bit_offset: 0 - bit_size: 15 - - name: ADD1S - description: Add one second - bit_offset: 31 - bit_size: 1 + - name: SUBFS + description: Subtract a fraction of a second + bit_offset: 0 + bit_size: 15 + - name: ADD1S + description: Add one second + bit_offset: 31 + bit_size: 1 fieldset/SMISR: description: Secure masked interrupt status register fields: - - name: ALRAMF - description: ALRAMF - bit_offset: 0 - bit_size: 1 - - name: ALRBMF - description: ALRBMF - bit_offset: 1 - bit_size: 1 - - name: WUTMF - description: WUTMF - bit_offset: 2 - bit_size: 1 - - name: TSMF - description: TSMF - bit_offset: 3 - bit_size: 1 - - name: TSOVMF - description: TSOVMF - bit_offset: 4 - bit_size: 1 - - name: ITSMF - description: ITSMF - bit_offset: 5 - bit_size: 1 - - name: SSRUMF - description: SSRUMF - bit_offset: 6 - bit_size: 1 + - name: ALRAMF + description: ALRAMF + bit_offset: 0 + bit_size: 1 + - name: ALRBMF + description: ALRBMF + bit_offset: 1 + bit_size: 1 + - name: WUTMF + description: WUTMF + bit_offset: 2 + bit_size: 1 + - name: TSMF + description: TSMF + bit_offset: 3 + bit_size: 1 + - name: TSOVMF + description: TSOVMF + bit_offset: 4 + bit_size: 1 + - name: ITSMF + description: ITSMF + bit_offset: 5 + bit_size: 1 + - name: SSRUMF + description: SSRUMF + bit_offset: 6 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: ALRF - description: Alarm flag - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - enum: ALRF - - name: WUTF - description: Wakeup timer flag - bit_offset: 2 - bit_size: 1 - enum: WUTF - - name: TSF - description: Timestamp flag - bit_offset: 3 - bit_size: 1 - enum: TSF - - name: TSOVF - description: Timestamp overflow flag - bit_offset: 4 - bit_size: 1 - enum: TSOVF - - name: ITSF - description: Internal timestamp flag - bit_offset: 5 - bit_size: 1 - enum: ITSF - - name: SSRUF - description: SSR underflow flag - bit_offset: 6 - bit_size: 1 - enum: SSRUF + - name: ALRF + description: Alarm flag + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + enum: ALRF + - name: WUTF + description: Wakeup timer flag + bit_offset: 2 + bit_size: 1 + enum: WUTF + - name: TSF + description: Timestamp flag + bit_offset: 3 + bit_size: 1 + enum: TSF + - name: TSOVF + description: Timestamp overflow flag + bit_offset: 4 + bit_size: 1 + enum: TSOVF + - name: ITSF + description: Internal timestamp flag + bit_offset: 5 + bit_size: 1 + enum: ITSF + - name: SSRUF + description: SSR underflow flag + bit_offset: 6 + bit_size: 1 + enum: SSRUF fieldset/SSR: description: Sub second register fields: - - name: SS - description: Synchronous binary counter - bit_offset: 0 - bit_size: 32 + - name: SS + description: Synchronous binary counter + bit_offset: 0 + bit_size: 32 fieldset/TR: description: Time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 - enum: AMPM + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 + enum: AMPM fieldset/TSDR: description: Timestamp date register fields: - - name: DU - description: Date units in BCD format - bit_offset: 0 - bit_size: 4 - - name: DT - description: Date tens in BCD format - bit_offset: 4 - bit_size: 2 - - name: MU - description: Month units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MT - description: Month tens in BCD format - bit_offset: 12 - bit_size: 1 - - name: WDU - description: Week day units - bit_offset: 13 - bit_size: 3 + - name: DU + description: Date units in BCD format + bit_offset: 0 + bit_size: 4 + - name: DT + description: Date tens in BCD format + bit_offset: 4 + bit_size: 2 + - name: MU + description: Month units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MT + description: Month tens in BCD format + bit_offset: 12 + bit_size: 1 + - name: WDU + description: Week day units + bit_offset: 13 + bit_size: 3 fieldset/TSSSR: description: Timestamp sub second register fields: - - name: SS - description: Sub second value - bit_offset: 0 - bit_size: 32 + - name: SS + description: Sub second value + bit_offset: 0 + bit_size: 32 fieldset/TSTR: description: Timestamp time register fields: - - name: SU - description: Second units in BCD format - bit_offset: 0 - bit_size: 4 - - name: ST - description: Second tens in BCD format - bit_offset: 4 - bit_size: 3 - - name: MNU - description: Minute units in BCD format - bit_offset: 8 - bit_size: 4 - - name: MNT - description: Minute tens in BCD format - bit_offset: 12 - bit_size: 3 - - name: HU - description: Hour units in BCD format - bit_offset: 16 - bit_size: 4 - - name: HT - description: Hour tens in BCD format - bit_offset: 20 - bit_size: 2 - - name: PM - description: AM/PM notation - bit_offset: 22 - bit_size: 1 + - name: SU + description: Second units in BCD format + bit_offset: 0 + bit_size: 4 + - name: ST + description: Second tens in BCD format + bit_offset: 4 + bit_size: 3 + - name: MNU + description: Minute units in BCD format + bit_offset: 8 + bit_size: 4 + - name: MNT + description: Minute tens in BCD format + bit_offset: 12 + bit_size: 3 + - name: HU + description: Hour units in BCD format + bit_offset: 16 + bit_size: 4 + - name: HT + description: Hour tens in BCD format + bit_offset: 20 + bit_size: 2 + - name: PM + description: AM/PM notation + bit_offset: 22 + bit_size: 1 fieldset/WPR: description: Write protection register fields: - - name: KEY - description: Write protection key - bit_offset: 0 - bit_size: 8 - enum: KEY + - name: KEY + description: Write protection key + bit_offset: 0 + bit_size: 8 + enum: KEY fieldset/WUTR: description: Wakeup timer register fields: - - name: WUT - description: Wakeup auto-reload value bits - bit_offset: 0 - bit_size: 16 - - name: WUTOCLR - description: Wakeup auto-reload output clear value - bit_offset: 16 - bit_size: 16 + - name: WUT + description: Wakeup auto-reload value bits + bit_offset: 0 + bit_size: 16 + - name: WUTOCLR + description: Wakeup auto-reload output clear value + bit_offset: 16 + bit_size: 16 enum/ALRF: bit_size: 1 variants: - - name: Match - description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) - value: 1 + - name: Match + description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) + value: 1 enum/ALRMF: bit_size: 1 variants: - - name: Match - description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) - value: 1 + - name: Match + description: This flag is set by hardware when the time/date registers (RTC_TR and RTC_DR) match the Alarm A register (RTC_ALRMAR) + value: 1 enum/ALRMR_MSK: bit_size: 1 variants: - - name: Mask - description: Alarm set if the date/day match - value: 0 - - name: NotMask - description: Date/day don’t care in Alarm comparison - value: 1 + - name: Mask + description: Alarm set if the date/day match + value: 0 + - name: NotMask + description: Date/day don’t care in Alarm comparison + value: 1 enum/ALRMR_PM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/ALRMR_WDSEL: bit_size: 1 variants: - - name: DateUnits - description: "DU[3:0] represents the date units" - value: 0 - - name: WeekDay - description: "DU[3:0] represents the week day. DT[1:0] is don’t care." - value: 1 + - name: DateUnits + description: DU[3:0] represents the date units + value: 0 + - name: WeekDay + description: DU[3:0] represents the week day. DT[1:0] is don’t care. + value: 1 enum/ALRMSSR_SSCLR: bit_size: 1 variants: - - name: FreeRunning - description: "The synchronous binary counter (SS[31:0] in RTC_SSR) is free-running" - value: 0 - - name: ALRMBINR - description: "The synchronous binary counter (SS[31:0] in RTC_SSR) is running from 0xFFFF FFFF to RTC_ALRMABINR → SS[31:0] value and is automatically reloaded with 0xFFFF FFFF when reaching RTC_ALRMABINR → SS[31:0]" - value: 1 + - name: FreeRunning + description: The synchronous binary counter (SS[31:0] in RTC_SSR) is free-running + value: 0 + - name: ALRMBINR + description: The synchronous binary counter (SS[31:0] in RTC_SSR) is running from 0xFFFF FFFF to RTC_ALRMABINR → SS[31:0] value and is automatically reloaded with 0xFFFF FFFF when reaching RTC_ALRMABINR → SS[31:0] + value: 1 enum/AMPM: bit_size: 1 variants: - - name: AM - description: AM or 24-hour format - value: 0 - - name: PM - description: PM - value: 1 + - name: AM + description: AM or 24-hour format + value: 0 + - name: PM + description: PM + value: 1 enum/BCDU: bit_size: 3 variants: - - name: Bit7 - description: "1s increment each time SS[7:0]=0" - value: 0 - - name: Bit8 - description: "1s increment each time SS[8:0]=0" - value: 1 - - name: Bit9 - description: "1s increment each time SS[9:0]=0" - value: 2 - - name: Bit10 - description: "1s increment each time SS[10:0]=0" - value: 3 - - name: Bit11 - description: "1s increment each time SS[11:0]=0" - value: 4 - - name: Bit12 - description: "1s increment each time SS[12:0]=0" - value: 5 - - name: Bit13 - description: "1s increment each time SS[13:0]=0" - value: 6 - - name: Bit14 - description: "1s increment each time SS[14:0]=0" - value: 7 + - name: Bit7 + description: 1s increment each time SS[7:0]=0 + value: 0 + - name: Bit8 + description: 1s increment each time SS[8:0]=0 + value: 1 + - name: Bit9 + description: 1s increment each time SS[9:0]=0 + value: 2 + - name: Bit10 + description: 1s increment each time SS[10:0]=0 + value: 3 + - name: Bit11 + description: 1s increment each time SS[11:0]=0 + value: 4 + - name: Bit12 + description: 1s increment each time SS[12:0]=0 + value: 5 + - name: Bit13 + description: 1s increment each time SS[13:0]=0 + value: 6 + - name: Bit14 + description: 1s increment each time SS[14:0]=0 + value: 7 enum/BIN: bit_size: 2 variants: - - name: BCD - description: Free running BCD calendar mode (Binary mode disabled) - value: 0 - - name: Binary - description: Free running Binary mode (BCD mode disabled) - value: 1 - - name: BinBCD - description: Free running BCD calendar and Binary modes - value: 2 - - name: BinBCD2 - description: Free running BCD calendar and Binary modes - value: 3 + - name: BCD + description: Free running BCD calendar mode (Binary mode disabled) + value: 0 + - name: Binary + description: Free running Binary mode (BCD mode disabled) + value: 1 + - name: BinBCD + description: Free running BCD calendar and Binary modes + value: 2 + - name: BinBCD2 + description: Free running BCD calendar and Binary modes + value: 3 enum/CALP: bit_size: 1 variants: - - name: NoChange - description: No RTCCLK pulses are added - value: 0 - - name: IncreaseFreq - description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) - value: 1 + - name: NoChange + description: No RTCCLK pulses are added + value: 0 + - name: IncreaseFreq + description: One RTCCLK pulse is effectively inserted every 2^11 pulses (frequency increased by 488.5 ppm) + value: 1 enum/CALRF: bit_size: 1 variants: - - name: Clear - description: Clear interrupt flag by writing 1 - value: 1 + - name: Clear + description: Clear interrupt flag by writing 1 + value: 1 enum/CALW16: bit_size: 1 variants: - - name: SixteenSeconds - description: "When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1" - value: 1 + - name: SixteenSeconds + description: When CALW16 is set to ‘1’, the 16-second calibration cycle period is selected.This bit must not be set to ‘1’ if CALW8=1 + value: 1 enum/CALW8: bit_size: 1 variants: - - name: EightSeconds - description: "When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected" - value: 1 + - name: EightSeconds + description: When CALW8 is set to ‘1’, the 8-second calibration cycle period is selected + value: 1 enum/COSEL: bit_size: 1 variants: - - name: CalFreq_512Hz - description: Calibration output is 512 Hz (with default prescaler setting) - value: 0 - - name: CalFreq_1Hz - description: Calibration output is 1 Hz (with default prescaler setting) - value: 1 + - name: CalFreq_512Hz + description: Calibration output is 512 Hz (with default prescaler setting) + value: 0 + - name: CalFreq_1Hz + description: Calibration output is 1 Hz (with default prescaler setting) + value: 1 enum/FMT: bit_size: 1 variants: - - name: TwentyFourHour - description: 24 hour/day format - value: 0 - - name: AmPm - description: AM/PM hour format - value: 1 + - name: TwentyFourHour + description: 24 hour/day format + value: 0 + - name: AmPm + description: AM/PM hour format + value: 1 enum/INIT: bit_size: 1 variants: - - name: FreeRunningMode - description: Free running mode - value: 0 - - name: InitMode - description: "Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset." - value: 1 + - name: FreeRunningMode + description: Free running mode + value: 0 + - name: InitMode + description: Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER). Counters are stopped and start counting from the new value when INIT is reset. + value: 1 enum/ITSF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a timestamp on the internal event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a timestamp on the internal event occurs + value: 1 enum/ITSMF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a timestamp on the internal event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a timestamp on the internal event occurs + value: 1 enum/KEY: bit_size: 8 variants: - - name: Activate - description: Activate write protection (any value that is not the keys) - value: 0 - - name: Deactivate2 - description: Key 2 - value: 83 - - name: Deactivate1 - description: Key 1 - value: 202 + - name: Activate + description: Activate write protection (any value that is not the keys) + value: 0 + - name: Deactivate2 + description: Key 2 + value: 83 + - name: Deactivate1 + description: Key 1 + value: 202 enum/LPCAL: bit_size: 1 variants: - - name: RTCCLK - description: "Calibration window is 220 RTCCLK, which is a high-consumption mode. This mode should be set only when less than 32s calibration window is required" - value: 0 - - name: CkApre - description: "Calibration window is 220 ck_apre, which is the required configuration for ultra-low consumption mode" - value: 1 + - name: RTCCLK + description: Calibration window is 220 RTCCLK, which is a high-consumption mode. This mode should be set only when less than 32s calibration window is required + value: 0 + - name: CkApre + description: Calibration window is 220 ck_apre, which is the required configuration for ultra-low consumption mode + value: 1 enum/OSEL: bit_size: 2 variants: - - name: Disabled - description: Output disabled - value: 0 - - name: AlarmA - description: Alarm A output enabled - value: 1 - - name: AlarmB - description: Alarm B output enabled - value: 2 - - name: Wakeup - description: Wakeup output enabled - value: 3 + - name: Disabled + description: Output disabled + value: 0 + - name: AlarmA + description: Alarm A output enabled + value: 1 + - name: AlarmB + description: Alarm B output enabled + value: 2 + - name: Wakeup + description: Wakeup output enabled + value: 3 enum/POL: bit_size: 1 variants: - - name: High - description: "The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 0 - - name: Low - description: "The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0])" - value: 1 + - name: High + description: The pin is high when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 0 + - name: Low + description: The pin is low when ALRAF/ALRBF/WUTF is asserted (depending on OSEL[1:0]) + value: 1 enum/RECALPF: bit_size: 1 variants: - - name: Pending - description: "The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0" - value: 1 + - name: Pending + description: The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0 + value: 1 enum/REFCKON: bit_size: 1 variants: - - name: Disabled - description: RTC_REFIN detection disabled - value: 0 - - name: Enabled - description: RTC_REFIN detection enabled - value: 1 + - name: Disabled + description: RTC_REFIN detection disabled + value: 0 + - name: Enabled + description: RTC_REFIN detection enabled + value: 1 enum/SSRUF: bit_size: 1 variants: - - name: Underflow - description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 - value: 1 + - name: Underflow + description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 + value: 1 enum/SSRUMF: bit_size: 1 variants: - - name: Underflow - description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 - value: 1 + - name: Underflow + description: This flag is set by hardware when the SSR rolls under 0. SSRUF is not set when SSCLR=1 + value: 1 enum/TAMPALRM_PU: bit_size: 1 variants: - - name: NoPullUp - description: No pull-up is applied on TAMPALRM output - value: 0 - - name: PullUp - description: A pull-up is applied on TAMPALRM output - value: 1 + - name: NoPullUp + description: No pull-up is applied on TAMPALRM output + value: 0 + - name: PullUp + description: A pull-up is applied on TAMPALRM output + value: 1 enum/TAMPALRM_TYPE: bit_size: 1 variants: - - name: PushPull - description: TAMPALRM is push-pull output - value: 0 - - name: OpenDrain - description: TAMPALRM is open-drain output - value: 1 + - name: PushPull + description: TAMPALRM is push-pull output + value: 0 + - name: OpenDrain + description: TAMPALRM is open-drain output + value: 1 enum/TSEDGE: bit_size: 1 variants: - - name: RisingEdge - description: RTC_TS input rising edge generates a time-stamp event - value: 0 - - name: FallingEdge - description: RTC_TS input falling edge generates a time-stamp event - value: 1 + - name: RisingEdge + description: RTC_TS input rising edge generates a time-stamp event + value: 0 + - name: FallingEdge + description: RTC_TS input falling edge generates a time-stamp event + value: 1 enum/TSF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a time-stamp event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a time-stamp event occurs + value: 1 enum/TSMF: bit_size: 1 variants: - - name: TimestampEvent - description: This flag is set by hardware when a time-stamp event occurs - value: 1 + - name: TimestampEvent + description: This flag is set by hardware when a time-stamp event occurs + value: 1 enum/TSOVF: bit_size: 1 variants: - - name: Overflow - description: This flag is set by hardware when a time-stamp event occurs while TSF is already set - value: 1 + - name: Overflow + description: This flag is set by hardware when a time-stamp event occurs while TSF is already set + value: 1 enum/TSOVMF: bit_size: 1 variants: - - name: Overflow - description: This flag is set by hardware when a time-stamp event occurs while TSF is already set - value: 1 + - name: Overflow + description: This flag is set by hardware when a time-stamp event occurs while TSF is already set + value: 1 enum/WUCKSEL: bit_size: 3 variants: - - name: Div16 - description: RTC/16 clock is selected - value: 0 - - name: Div8 - description: RTC/8 clock is selected - value: 1 - - name: Div4 - description: RTC/4 clock is selected - value: 2 - - name: Div2 - description: RTC/2 clock is selected - value: 3 - - name: ClockSpare - description: ck_spre (usually 1 Hz) clock is selected - value: 4 - - name: ClockSpareWithOffset - description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value - value: 6 + - name: Div16 + description: RTC/16 clock is selected + value: 0 + - name: Div8 + description: RTC/8 clock is selected + value: 1 + - name: Div4 + description: RTC/4 clock is selected + value: 2 + - name: Div2 + description: RTC/2 clock is selected + value: 3 + - name: ClockSpare + description: ck_spre (usually 1 Hz) clock is selected + value: 4 + - name: ClockSpareWithOffset + description: ck_spre (usually 1 Hz) clock is selected and 2^16 is added to the WUT counter value + value: 6 enum/WUTF: bit_size: 1 variants: - - name: Zero - description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 - value: 1 + - name: Zero + description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 + value: 1 enum/WUTMF: bit_size: 1 variants: - - name: Zero - description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 - value: 1 + - name: Zero + description: This flag is set by hardware when the wakeup auto-reload counter reaches 0 + value: 1 diff --git a/data/registers/sai_v1.yaml b/data/registers/sai_v1.yaml index 7e58c5e..b289a9f 100644 --- a/data/registers/sai_v1.yaml +++ b/data/registers/sai_v1.yaml @@ -1,587 +1,586 @@ ---- block/CH: - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR items: - - name: CR1 - description: Configuration register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Configuration register 2 - byte_offset: 4 - fieldset: CR2 - - name: FRCR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 8 - fieldset: FRCR - - name: SLOTR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 12 - fieldset: SLOTR - - name: IM - description: Interrupt mask register 2 - byte_offset: 16 - fieldset: IM - - name: SR - description: Status register - byte_offset: 20 - access: Read - fieldset: SR - - name: CLRFR - description: Clear flag register - byte_offset: 24 - access: Write - fieldset: CLRFR - - name: DR - description: Data register - byte_offset: 28 - fieldset: DR + - name: CR1 + description: Configuration register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Configuration register 2 + byte_offset: 4 + fieldset: CR2 + - name: FRCR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 8 + fieldset: FRCR + - name: SLOTR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 12 + fieldset: SLOTR + - name: IM + description: Interrupt mask register 2 + byte_offset: 16 + fieldset: IM + - name: SR + description: Status register + byte_offset: 20 + access: Read + fieldset: SR + - name: CLRFR + description: Clear flag register + byte_offset: 24 + access: Write + fieldset: CLRFR + - name: DR + description: Data register + byte_offset: 28 + fieldset: DR block/SAI: description: Serial audio interface items: - - name: CH - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" - array: - len: 2 - stride: 32 - byte_offset: 4 - block: CH + - name: CH + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR + array: + len: 2 + stride: 32 + byte_offset: 4 + block: CH fieldset/CLRFR: description: Clear flag register fields: - - name: COVRUDR - description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 0 - bit_size: 1 - - name: CMUTEDET - description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 1 - bit_size: 1 - - name: CWCKCFG - description: "Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0." - bit_offset: 2 - bit_size: 1 - - name: CCNRDY - description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. - bit_offset: 4 - bit_size: 1 - - name: CAFSDET - description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. - bit_offset: 5 - bit_size: 1 - - name: CLFSDET - description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. - bit_offset: 6 - bit_size: 1 + - name: COVRUDR + description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 0 + bit_size: 1 + - name: CMUTEDET + description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 1 + bit_size: 1 + - name: CWCKCFG + description: Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 2 + bit_size: 1 + - name: CCNRDY + description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 4 + bit_size: 1 + - name: CAFSDET + description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. + bit_offset: 5 + bit_size: 1 + - name: CLFSDET + description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. + bit_offset: 6 + bit_size: 1 fieldset/CR1: description: Configuration register 1 fields: - - name: MODE - description: SAIx audio block mode immediately - bit_offset: 0 - bit_size: 2 - enum: MODE - - name: PRTCFG - description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. - bit_offset: 2 - bit_size: 2 - enum: PRTCFG - - name: DS - description: "Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled." - bit_offset: 5 - bit_size: 3 - enum: DS - - name: LSBFIRST - description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. - bit_offset: 8 - bit_size: 1 - enum: LSBFIRST - - name: CKSTR - description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. - bit_offset: 9 - bit_size: 1 - enum: CKSTR - - name: SYNCEN - description: "Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled." - bit_offset: 10 - bit_size: 2 - enum: SYNCEN - - name: MONO - description: "Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details." - bit_offset: 12 - bit_size: 1 - enum: MONO - - name: OUTDRIV - description: "Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration." - bit_offset: 13 - bit_size: 1 - enum: OUTDRIV - - name: SAIEN - description: "Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit." - bit_offset: 16 - bit_size: 1 - - name: DMAEN - description: "DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode." - bit_offset: 17 - bit_size: 1 - - name: NODIV - description: No fixed divider between MCLK and FS - bit_offset: 19 - bit_size: 1 - enum: NODIV - - name: MCKDIV - description: "Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:" - bit_offset: 20 - bit_size: 4 + - name: MODE + description: SAIx audio block mode immediately + bit_offset: 0 + bit_size: 2 + enum: MODE + - name: PRTCFG + description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. + bit_offset: 2 + bit_size: 2 + enum: PRTCFG + - name: DS + description: Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled. + bit_offset: 5 + bit_size: 3 + enum: DS + - name: LSBFIRST + description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. + bit_offset: 8 + bit_size: 1 + enum: LSBFIRST + - name: CKSTR + description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. + bit_offset: 9 + bit_size: 1 + enum: CKSTR + - name: SYNCEN + description: 'Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled.' + bit_offset: 10 + bit_size: 2 + enum: SYNCEN + - name: MONO + description: 'Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details.' + bit_offset: 12 + bit_size: 1 + enum: MONO + - name: OUTDRIV + description: 'Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration.' + bit_offset: 13 + bit_size: 1 + enum: OUTDRIV + - name: SAIEN + description: 'Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit.' + bit_offset: 16 + bit_size: 1 + - name: DMAEN + description: 'DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode.' + bit_offset: 17 + bit_size: 1 + - name: NODIV + description: No fixed divider between MCLK and FS + bit_offset: 19 + bit_size: 1 + enum: NODIV + - name: MCKDIV + description: 'Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:' + bit_offset: 20 + bit_size: 4 fieldset/CR2: description: Configuration register 2 fields: - - name: FTH - description: FIFO threshold. This bit is set and cleared by software. - bit_offset: 0 - bit_size: 3 - enum: FTH - - name: FFLUSH - description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. - bit_offset: 3 - bit_size: 1 - enum: FFLUSH - - name: TRIS - description: "Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details." - bit_offset: 4 - bit_size: 1 - - name: MUTE - description: "Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 5 - bit_size: 1 - - name: MUTEVAL - description: "Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 6 - bit_size: 1 - enum: MUTEVAL - - name: MUTECNT - description: "Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details." - bit_offset: 7 - bit_size: 6 - - name: CPL - description: "Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm." - bit_offset: 13 - bit_size: 1 - enum: CPL - - name: COMP - description: "Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected." - bit_offset: 14 - bit_size: 2 - enum: COMP + - name: FTH + description: FIFO threshold. This bit is set and cleared by software. + bit_offset: 0 + bit_size: 3 + enum: FTH + - name: FFLUSH + description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. + bit_offset: 3 + bit_size: 1 + enum: FFLUSH + - name: TRIS + description: 'Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details.' + bit_offset: 4 + bit_size: 1 + - name: MUTE + description: 'Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 5 + bit_size: 1 + - name: MUTEVAL + description: 'Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 6 + bit_size: 1 + enum: MUTEVAL + - name: MUTECNT + description: 'Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details.' + bit_offset: 7 + bit_size: 6 + - name: CPL + description: 'Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm.' + bit_offset: 13 + bit_size: 1 + enum: CPL + - name: COMP + description: 'Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected.' + bit_offset: 14 + bit_size: 2 + enum: COMP fieldset/DR: description: Data register fields: - - name: DATA - description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. - bit_offset: 0 - bit_size: 32 + - name: DATA + description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. + bit_offset: 0 + bit_size: 32 fieldset/FRCR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FRL - description: "Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration." - bit_offset: 0 - bit_size: 8 - - name: FSALL - description: "Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled." - bit_offset: 8 - bit_size: 7 - - name: FSDEF - description: "Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled." - bit_offset: 16 - bit_size: 1 - - name: FSPOL - description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 17 - bit_size: 1 - enum: FSPOL - - name: FSOFF - description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 18 - bit_size: 1 - enum: FSOFF + - name: FRL + description: 'Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration.' + bit_offset: 0 + bit_size: 8 + - name: FSALL + description: Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled. + bit_offset: 8 + bit_size: 7 + - name: FSDEF + description: 'Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled.' + bit_offset: 16 + bit_size: 1 + - name: FSPOL + description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 17 + bit_size: 1 + enum: FSPOL + - name: FSOFF + description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 18 + bit_size: 1 + enum: FSOFF fieldset/IM: description: Interrupt mask register 2 fields: - - name: OVRUDRIE - description: "Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set." - bit_offset: 0 - bit_size: 1 - - name: MUTEDETIE - description: "Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode." - bit_offset: 1 - bit_size: 1 - - name: WCKCFGIE - description: "Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes." - bit_offset: 2 - bit_size: 1 - - name: FREQIE - description: "FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode," - bit_offset: 3 - bit_size: 1 - - name: CNRDYIE - description: "Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver." - bit_offset: 4 - bit_size: 1 - - name: AFSDETIE - description: "Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 5 - bit_size: 1 - - name: LFSDETIE - description: "Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 6 - bit_size: 1 + - name: OVRUDRIE + description: Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set. + bit_offset: 0 + bit_size: 1 + - name: MUTEDETIE + description: Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode. + bit_offset: 1 + bit_size: 1 + - name: WCKCFGIE + description: 'Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes.' + bit_offset: 2 + bit_size: 1 + - name: FREQIE + description: FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode, + bit_offset: 3 + bit_size: 1 + - name: CNRDYIE + description: Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver. + bit_offset: 4 + bit_size: 1 + - name: AFSDETIE + description: Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 5 + bit_size: 1 + - name: LFSDETIE + description: Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 6 + bit_size: 1 fieldset/SLOTR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FBOFF - description: "First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 0 - bit_size: 5 - - name: SLOTSZ - description: "Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 6 - bit_size: 2 - enum: SLOTSZ - - name: NBSLOT - description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 8 - bit_size: 4 - - name: SLOTEN - description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 16 - bit_size: 16 - enum: SLOTEN + - name: FBOFF + description: First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 0 + bit_size: 5 + - name: SLOTSZ + description: 'Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.' + bit_offset: 6 + bit_size: 2 + enum: SLOTSZ + - name: NBSLOT + description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 8 + bit_size: 4 + - name: SLOTEN + description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 16 + bit_size: 16 + enum: SLOTEN fieldset/SR: description: Status register fields: - - name: OVRUDR - description: "Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register." - bit_offset: 0 - bit_size: 1 - enum: OVRUDR - - name: MUTEDET - description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. - bit_offset: 1 - bit_size: 1 - enum: MUTEDET - - name: WCKCFG - description: "Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register." - bit_offset: 2 - bit_size: 1 - enum: WCKCFG - - name: FREQ - description: "FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register." - bit_offset: 3 - bit_size: 1 - enum: FREQ - - name: CNRDY - description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. - bit_offset: 4 - bit_size: 1 - enum: CNRDY - - name: AFSDET - description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. - bit_offset: 5 - bit_size: 1 - enum: AFSDET - - name: LFSDET - description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register - bit_offset: 6 - bit_size: 1 - enum: LFSDET - - name: FLVL - description: "FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:" - bit_offset: 16 - bit_size: 3 - enum: FLVL + - name: OVRUDR + description: Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register. + bit_offset: 0 + bit_size: 1 + enum: OVRUDR + - name: MUTEDET + description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. + bit_offset: 1 + bit_size: 1 + enum: MUTEDET + - name: WCKCFG + description: Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register. + bit_offset: 2 + bit_size: 1 + enum: WCKCFG + - name: FREQ + description: 'FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register.' + bit_offset: 3 + bit_size: 1 + enum: FREQ + - name: CNRDY + description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. + bit_offset: 4 + bit_size: 1 + enum: CNRDY + - name: AFSDET + description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. + bit_offset: 5 + bit_size: 1 + enum: AFSDET + - name: LFSDET + description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register + bit_offset: 6 + bit_size: 1 + enum: LFSDET + - name: FLVL + description: 'FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:' + bit_offset: 16 + bit_size: 3 + enum: FLVL enum/AFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: EarlySync - description: Frame synchronization signal is detected earlier than expected - value: 1 + - name: NoError + description: No error + value: 0 + - name: EarlySync + description: Frame synchronization signal is detected earlier than expected + value: 1 enum/CKSTR: bit_size: 1 variants: - - name: FallingEdge - description: Data strobing edge is falling edge of SCK - value: 0 - - name: RisingEdge - description: Data strobing edge is rising edge of SCK - value: 1 + - name: FallingEdge + description: Data strobing edge is falling edge of SCK + value: 0 + - name: RisingEdge + description: Data strobing edge is rising edge of SCK + value: 1 enum/CNRDY: bit_size: 1 variants: - - name: Ready - description: External AC’97 Codec is ready - value: 0 - - name: NotReady - description: External AC’97 Codec is not ready - value: 1 + - name: Ready + description: External AC’97 Codec is ready + value: 0 + - name: NotReady + description: External AC’97 Codec is not ready + value: 1 enum/COMP: bit_size: 2 variants: - - name: NoCompanding - description: No companding algorithm - value: 0 - - name: MuLaw - description: μ-Law algorithm - value: 2 - - name: ALaw - description: A-Law algorithm - value: 3 + - name: NoCompanding + description: No companding algorithm + value: 0 + - name: MuLaw + description: μ-Law algorithm + value: 2 + - name: ALaw + description: A-Law algorithm + value: 3 enum/CPL: bit_size: 1 variants: - - name: OnesComplement - description: 1’s complement representation - value: 0 - - name: TwosComplement - description: 2’s complement representation - value: 1 + - name: OnesComplement + description: 1’s complement representation + value: 0 + - name: TwosComplement + description: 2’s complement representation + value: 1 enum/DS: bit_size: 3 variants: - - name: Bit8 - description: 8 bits - value: 2 - - name: Bit10 - description: 10 bits - value: 3 - - name: Bit16 - description: 16 bits - value: 4 - - name: Bit20 - description: 20 bits - value: 5 - - name: Bit24 - description: 24 bits - value: 6 - - name: Bit32 - description: 32 bits - value: 7 + - name: Bit8 + description: 8 bits + value: 2 + - name: Bit10 + description: 10 bits + value: 3 + - name: Bit16 + description: 16 bits + value: 4 + - name: Bit20 + description: 20 bits + value: 5 + - name: Bit24 + description: 24 bits + value: 6 + - name: Bit32 + description: 32 bits + value: 7 enum/FFLUSH: bit_size: 1 variants: - - name: NoFlush - description: No FIFO flush - value: 0 - - name: Flush - description: FIFO flush. Programming this bit to 1 triggers the FIFO Flush. All the internal FIFO pointers (read and write) are cleared - value: 1 + - name: NoFlush + description: No FIFO flush + value: 0 + - name: Flush + description: FIFO flush. Programming this bit to 1 triggers the FIFO Flush. All the internal FIFO pointers (read and write) are cleared + value: 1 enum/FLVL: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: FIFO <= 1⁄4 but not empty - value: 1 - - name: Quarter2 - description: 1⁄4 < FIFO <= 1⁄2 - value: 2 - - name: Quarter3 - description: 1⁄2 < FIFO <= 3⁄4 - value: 3 - - name: Quarter4 - description: 3⁄4 < FIFO but not full - value: 4 - - name: Full - description: FIFO full - value: 5 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: FIFO <= 1⁄4 but not empty + value: 1 + - name: Quarter2 + description: 1⁄4 < FIFO <= 1⁄2 + value: 2 + - name: Quarter3 + description: 1⁄2 < FIFO <= 3⁄4 + value: 3 + - name: Quarter4 + description: 3⁄4 < FIFO but not full + value: 4 + - name: Full + description: FIFO full + value: 5 enum/FREQ: bit_size: 1 variants: - - name: NoRequest - description: No FIFO request - value: 0 - - name: Request - description: FIFO request to read or to write the SAI_xDR - value: 1 + - name: NoRequest + description: No FIFO request + value: 0 + - name: Request + description: FIFO request to read or to write the SAI_xDR + value: 1 enum/FSOFF: bit_size: 1 variants: - - name: OnFirst - description: FS is asserted on the first bit of the slot 0 - value: 0 - - name: BeforeFirst - description: FS is asserted one bit before the first bit of the slot 0 - value: 1 + - name: OnFirst + description: FS is asserted on the first bit of the slot 0 + value: 0 + - name: BeforeFirst + description: FS is asserted one bit before the first bit of the slot 0 + value: 1 enum/FSPOL: bit_size: 1 variants: - - name: FallingEdge - description: FS is active low (falling edge) - value: 0 - - name: RisingEdge - description: FS is active high (rising edge) - value: 1 + - name: FallingEdge + description: FS is active low (falling edge) + value: 0 + - name: RisingEdge + description: FS is active high (rising edge) + value: 1 enum/FTH: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: 1⁄4 FIFO - value: 1 - - name: Quarter2 - description: 1⁄2 FIFO - value: 2 - - name: Quarter3 - description: 3⁄4 FIFO - value: 3 - - name: Full - description: FIFO full - value: 4 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: 1⁄4 FIFO + value: 1 + - name: Quarter2 + description: 1⁄2 FIFO + value: 2 + - name: Quarter3 + description: 3⁄4 FIFO + value: 3 + - name: Full + description: FIFO full + value: 4 enum/LFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: NoSync - description: Frame synchronization signal is not present at the right time - value: 1 + - name: NoError + description: No error + value: 0 + - name: NoSync + description: Frame synchronization signal is not present at the right time + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MsbFirst - description: Data are transferred with MSB first - value: 0 - - name: LsbFirst - description: Data are transferred with LSB first - value: 1 + - name: MsbFirst + description: Data are transferred with MSB first + value: 0 + - name: LsbFirst + description: Data are transferred with LSB first + value: 1 enum/MODE: bit_size: 2 variants: - - name: MasterTx - description: Master transmitter - value: 0 - - name: MasterRx - description: Master receiver - value: 1 - - name: SlaveTx - description: Slave transmitter - value: 2 - - name: SlaveRx - description: Slave receiver - value: 3 + - name: MasterTx + description: Master transmitter + value: 0 + - name: MasterRx + description: Master receiver + value: 1 + - name: SlaveTx + description: Slave transmitter + value: 2 + - name: SlaveRx + description: Slave receiver + value: 3 enum/MONO: bit_size: 1 variants: - - name: Stereo - description: Stereo mode - value: 0 - - name: Mono - description: Mono mode - value: 1 + - name: Stereo + description: Stereo mode + value: 0 + - name: Mono + description: Mono mode + value: 1 enum/MUTEDET: bit_size: 1 variants: - - name: NoMute - description: No MUTE detection on the SD input line - value: 0 - - name: Mute - description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame - value: 1 + - name: NoMute + description: No MUTE detection on the SD input line + value: 0 + - name: Mute + description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame + value: 1 enum/MUTEVAL: bit_size: 1 variants: - - name: SendZero - description: Bit value 0 is sent during the mute mode - value: 0 - - name: SendLast - description: Last values are sent during the mute mode - value: 1 + - name: SendZero + description: Bit value 0 is sent during the mute mode + value: 0 + - name: SendLast + description: Last values are sent during the mute mode + value: 1 enum/NODIV: bit_size: 1 variants: - - name: MasterClock - description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value - value: 0 - - name: NoDiv - description: "MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL." - value: 1 + - name: MasterClock + description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value + value: 0 + - name: NoDiv + description: MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL. + value: 1 enum/OUTDRIV: bit_size: 1 variants: - - name: OnStart - description: Audio block output driven when SAIEN is set - value: 0 - - name: Immediately - description: Audio block output driven immediately after the setting of this bit - value: 1 + - name: OnStart + description: Audio block output driven when SAIEN is set + value: 0 + - name: Immediately + description: Audio block output driven immediately after the setting of this bit + value: 1 enum/OVRUDR: bit_size: 1 variants: - - name: NoError - description: No overrun/underrun error - value: 0 - - name: Overrun - description: Overrun/underrun error detection - value: 1 + - name: NoError + description: No overrun/underrun error + value: 0 + - name: Overrun + description: Overrun/underrun error detection + value: 1 enum/PRTCFG: bit_size: 2 variants: - - name: Free - description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol - value: 0 - - name: Spdif - description: SPDIF protocol - value: 1 - - name: Ac97 - description: AC’97 protocol - value: 2 + - name: Free + description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol + value: 0 + - name: Spdif + description: SPDIF protocol + value: 1 + - name: Ac97 + description: AC’97 protocol + value: 2 enum/SLOTEN: bit_size: 16 variants: - - name: Inactive - description: Inactive slot - value: 0 - - name: Active - description: Active slot - value: 1 + - name: Inactive + description: Inactive slot + value: 0 + - name: Active + description: Active slot + value: 1 enum/SLOTSZ: bit_size: 2 variants: - - name: DataSize - description: "The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register)" - value: 0 - - name: Bit16 - description: 16-bit - value: 1 - - name: Bit32 - description: 32-bit - value: 2 + - name: DataSize + description: The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register) + value: 0 + - name: Bit16 + description: 16-bit + value: 1 + - name: Bit32 + description: 32-bit + value: 2 enum/SYNCEN: bit_size: 2 variants: - - name: Asynchronous - description: audio sub-block in asynchronous mode - value: 0 - - name: Internal - description: "audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode" - value: 1 - - name: External - description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode - value: 2 + - name: Asynchronous + description: audio sub-block in asynchronous mode + value: 0 + - name: Internal + description: audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode + value: 1 + - name: External + description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode + value: 2 enum/WCKCFG: bit_size: 1 variants: - - name: Correct - description: Clock configuration is correct - value: 0 - - name: Wrong - description: Clock configuration does not respect the rule concerning the frame length specification - value: 1 + - name: Correct + description: Clock configuration is correct + value: 0 + - name: Wrong + description: Clock configuration does not respect the rule concerning the frame length specification + value: 1 diff --git a/data/registers/sai_v2.yaml b/data/registers/sai_v2.yaml index f16c640..c78633e 100644 --- a/data/registers/sai_v2.yaml +++ b/data/registers/sai_v2.yaml @@ -1,602 +1,601 @@ ---- block/CH: - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR items: - - name: CR1 - description: Configuration register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Configuration register 2 - byte_offset: 4 - fieldset: CR2 - - name: FRCR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 8 - fieldset: FRCR - - name: SLOTR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 12 - fieldset: SLOTR - - name: IM - description: Interrupt mask register 2 - byte_offset: 16 - fieldset: IM - - name: SR - description: Status register - byte_offset: 20 - access: Read - fieldset: SR - - name: CLRFR - description: Clear flag register - byte_offset: 24 - access: Write - fieldset: CLRFR - - name: DR - description: Data register - byte_offset: 28 - fieldset: DR + - name: CR1 + description: Configuration register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Configuration register 2 + byte_offset: 4 + fieldset: CR2 + - name: FRCR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 8 + fieldset: FRCR + - name: SLOTR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 12 + fieldset: SLOTR + - name: IM + description: Interrupt mask register 2 + byte_offset: 16 + fieldset: IM + - name: SR + description: Status register + byte_offset: 20 + access: Read + fieldset: SR + - name: CLRFR + description: Clear flag register + byte_offset: 24 + access: Write + fieldset: CLRFR + - name: DR + description: Data register + byte_offset: 28 + fieldset: DR block/SAI: description: Serial audio interface items: - - name: GCR - description: Global configuration register - byte_offset: 0 - fieldset: GCR - - name: CH - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" - array: - len: 2 - stride: 32 - byte_offset: 4 - block: CH + - name: GCR + description: Global configuration register + byte_offset: 0 + fieldset: GCR + - name: CH + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR + array: + len: 2 + stride: 32 + byte_offset: 4 + block: CH fieldset/CLRFR: description: Clear flag register fields: - - name: COVRUDR - description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 0 - bit_size: 1 - - name: CMUTEDET - description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 1 - bit_size: 1 - - name: CWCKCFG - description: "Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0." - bit_offset: 2 - bit_size: 1 - - name: CCNRDY - description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. - bit_offset: 4 - bit_size: 1 - - name: CAFSDET - description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. - bit_offset: 5 - bit_size: 1 - - name: CLFSDET - description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. - bit_offset: 6 - bit_size: 1 + - name: COVRUDR + description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 0 + bit_size: 1 + - name: CMUTEDET + description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 1 + bit_size: 1 + - name: CWCKCFG + description: Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 2 + bit_size: 1 + - name: CCNRDY + description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 4 + bit_size: 1 + - name: CAFSDET + description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. + bit_offset: 5 + bit_size: 1 + - name: CLFSDET + description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. + bit_offset: 6 + bit_size: 1 fieldset/CR1: description: Configuration register 1 fields: - - name: MODE - description: SAIx audio block mode immediately - bit_offset: 0 - bit_size: 2 - enum: MODE - - name: PRTCFG - description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. - bit_offset: 2 - bit_size: 2 - enum: PRTCFG - - name: DS - description: "Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled." - bit_offset: 5 - bit_size: 3 - enum: DS - - name: LSBFIRST - description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. - bit_offset: 8 - bit_size: 1 - enum: LSBFIRST - - name: CKSTR - description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. - bit_offset: 9 - bit_size: 1 - enum: CKSTR - - name: SYNCEN - description: "Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled." - bit_offset: 10 - bit_size: 2 - enum: SYNCEN - - name: MONO - description: "Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details." - bit_offset: 12 - bit_size: 1 - enum: MONO - - name: OUTDRIV - description: "Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration." - bit_offset: 13 - bit_size: 1 - enum: OUTDRIV - - name: SAIEN - description: "Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit." - bit_offset: 16 - bit_size: 1 - - name: DMAEN - description: "DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode." - bit_offset: 17 - bit_size: 1 - - name: NODIV - description: No fixed divider between MCLK and FS - bit_offset: 19 - bit_size: 1 - enum: NODIV - - name: MCKDIV - description: "Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:" - bit_offset: 20 - bit_size: 4 + - name: MODE + description: SAIx audio block mode immediately + bit_offset: 0 + bit_size: 2 + enum: MODE + - name: PRTCFG + description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. + bit_offset: 2 + bit_size: 2 + enum: PRTCFG + - name: DS + description: Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled. + bit_offset: 5 + bit_size: 3 + enum: DS + - name: LSBFIRST + description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. + bit_offset: 8 + bit_size: 1 + enum: LSBFIRST + - name: CKSTR + description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. + bit_offset: 9 + bit_size: 1 + enum: CKSTR + - name: SYNCEN + description: 'Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled.' + bit_offset: 10 + bit_size: 2 + enum: SYNCEN + - name: MONO + description: 'Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details.' + bit_offset: 12 + bit_size: 1 + enum: MONO + - name: OUTDRIV + description: 'Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration.' + bit_offset: 13 + bit_size: 1 + enum: OUTDRIV + - name: SAIEN + description: 'Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit.' + bit_offset: 16 + bit_size: 1 + - name: DMAEN + description: 'DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode.' + bit_offset: 17 + bit_size: 1 + - name: NODIV + description: No fixed divider between MCLK and FS + bit_offset: 19 + bit_size: 1 + enum: NODIV + - name: MCKDIV + description: 'Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:' + bit_offset: 20 + bit_size: 4 fieldset/CR2: description: Configuration register 2 fields: - - name: FTH - description: FIFO threshold. This bit is set and cleared by software. - bit_offset: 0 - bit_size: 3 - enum: FTH - - name: FFLUSH - description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. - bit_offset: 3 - bit_size: 1 - enum: FFLUSH - - name: TRIS - description: "Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details." - bit_offset: 4 - bit_size: 1 - - name: MUTE - description: "Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 5 - bit_size: 1 - - name: MUTEVAL - description: "Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 6 - bit_size: 1 - enum: MUTEVAL - - name: MUTECNT - description: "Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details." - bit_offset: 7 - bit_size: 6 - - name: CPL - description: "Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm." - bit_offset: 13 - bit_size: 1 - enum: CPL - - name: COMP - description: "Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected." - bit_offset: 14 - bit_size: 2 - enum: COMP + - name: FTH + description: FIFO threshold. This bit is set and cleared by software. + bit_offset: 0 + bit_size: 3 + enum: FTH + - name: FFLUSH + description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. + bit_offset: 3 + bit_size: 1 + enum: FFLUSH + - name: TRIS + description: 'Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details.' + bit_offset: 4 + bit_size: 1 + - name: MUTE + description: 'Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 5 + bit_size: 1 + - name: MUTEVAL + description: 'Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 6 + bit_size: 1 + enum: MUTEVAL + - name: MUTECNT + description: 'Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details.' + bit_offset: 7 + bit_size: 6 + - name: CPL + description: 'Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm.' + bit_offset: 13 + bit_size: 1 + enum: CPL + - name: COMP + description: 'Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected.' + bit_offset: 14 + bit_size: 2 + enum: COMP fieldset/DR: description: Data register fields: - - name: DATA - description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. - bit_offset: 0 - bit_size: 32 + - name: DATA + description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. + bit_offset: 0 + bit_size: 32 fieldset/FRCR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FRL - description: "Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration." - bit_offset: 0 - bit_size: 8 - - name: FSALL - description: "Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled." - bit_offset: 8 - bit_size: 7 - - name: FSDEF - description: "Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled." - bit_offset: 16 - bit_size: 1 - - name: FSPOL - description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 17 - bit_size: 1 - enum: FSPOL - - name: FSOFF - description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 18 - bit_size: 1 - enum: FSOFF + - name: FRL + description: 'Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration.' + bit_offset: 0 + bit_size: 8 + - name: FSALL + description: Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled. + bit_offset: 8 + bit_size: 7 + - name: FSDEF + description: 'Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled.' + bit_offset: 16 + bit_size: 1 + - name: FSPOL + description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 17 + bit_size: 1 + enum: FSPOL + - name: FSOFF + description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 18 + bit_size: 1 + enum: FSOFF fieldset/GCR: description: Global configuration register fields: - - name: SYNCIN - description: Synchronization inputs - bit_offset: 0 - bit_size: 2 - - name: SYNCOUT - description: Synchronization outputs These bits are set and cleared by software. - bit_offset: 4 - bit_size: 2 + - name: SYNCIN + description: Synchronization inputs + bit_offset: 0 + bit_size: 2 + - name: SYNCOUT + description: Synchronization outputs These bits are set and cleared by software. + bit_offset: 4 + bit_size: 2 fieldset/IM: description: Interrupt mask register 2 fields: - - name: OVRUDRIE - description: "Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set." - bit_offset: 0 - bit_size: 1 - - name: MUTEDETIE - description: "Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode." - bit_offset: 1 - bit_size: 1 - - name: WCKCFGIE - description: "Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes." - bit_offset: 2 - bit_size: 1 - - name: FREQIE - description: "FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode," - bit_offset: 3 - bit_size: 1 - - name: CNRDYIE - description: "Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver." - bit_offset: 4 - bit_size: 1 - - name: AFSDETIE - description: "Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 5 - bit_size: 1 - - name: LFSDETIE - description: "Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 6 - bit_size: 1 + - name: OVRUDRIE + description: Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set. + bit_offset: 0 + bit_size: 1 + - name: MUTEDETIE + description: Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode. + bit_offset: 1 + bit_size: 1 + - name: WCKCFGIE + description: 'Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes.' + bit_offset: 2 + bit_size: 1 + - name: FREQIE + description: FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode, + bit_offset: 3 + bit_size: 1 + - name: CNRDYIE + description: Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver. + bit_offset: 4 + bit_size: 1 + - name: AFSDETIE + description: Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 5 + bit_size: 1 + - name: LFSDETIE + description: Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 6 + bit_size: 1 fieldset/SLOTR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FBOFF - description: "First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 0 - bit_size: 5 - - name: SLOTSZ - description: "Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 6 - bit_size: 2 - enum: SLOTSZ - - name: NBSLOT - description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 8 - bit_size: 4 - - name: SLOTEN - description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 16 - bit_size: 16 - enum: SLOTEN + - name: FBOFF + description: First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 0 + bit_size: 5 + - name: SLOTSZ + description: 'Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.' + bit_offset: 6 + bit_size: 2 + enum: SLOTSZ + - name: NBSLOT + description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 8 + bit_size: 4 + - name: SLOTEN + description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 16 + bit_size: 16 + enum: SLOTEN fieldset/SR: description: Status register fields: - - name: OVRUDR - description: "Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register." - bit_offset: 0 - bit_size: 1 - enum: OVRUDR - - name: MUTEDET - description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. - bit_offset: 1 - bit_size: 1 - enum: MUTEDET - - name: WCKCFG - description: "Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register." - bit_offset: 2 - bit_size: 1 - enum: WCKCFG - - name: FREQ - description: "FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register." - bit_offset: 3 - bit_size: 1 - enum: FREQ - - name: CNRDY - description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. - bit_offset: 4 - bit_size: 1 - enum: CNRDY - - name: AFSDET - description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. - bit_offset: 5 - bit_size: 1 - enum: AFSDET - - name: LFSDET - description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register - bit_offset: 6 - bit_size: 1 - enum: LFSDET - - name: FLVL - description: "FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:" - bit_offset: 16 - bit_size: 3 - enum: FLVL + - name: OVRUDR + description: Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register. + bit_offset: 0 + bit_size: 1 + enum: OVRUDR + - name: MUTEDET + description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. + bit_offset: 1 + bit_size: 1 + enum: MUTEDET + - name: WCKCFG + description: Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register. + bit_offset: 2 + bit_size: 1 + enum: WCKCFG + - name: FREQ + description: 'FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register.' + bit_offset: 3 + bit_size: 1 + enum: FREQ + - name: CNRDY + description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. + bit_offset: 4 + bit_size: 1 + enum: CNRDY + - name: AFSDET + description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. + bit_offset: 5 + bit_size: 1 + enum: AFSDET + - name: LFSDET + description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register + bit_offset: 6 + bit_size: 1 + enum: LFSDET + - name: FLVL + description: 'FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:' + bit_offset: 16 + bit_size: 3 + enum: FLVL enum/AFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: EarlySync - description: Frame synchronization signal is detected earlier than expected - value: 1 + - name: NoError + description: No error + value: 0 + - name: EarlySync + description: Frame synchronization signal is detected earlier than expected + value: 1 enum/CKSTR: bit_size: 1 variants: - - name: FallingEdge - description: Data strobing edge is falling edge of SCK - value: 0 - - name: RisingEdge - description: Data strobing edge is rising edge of SCK - value: 1 + - name: FallingEdge + description: Data strobing edge is falling edge of SCK + value: 0 + - name: RisingEdge + description: Data strobing edge is rising edge of SCK + value: 1 enum/CNRDY: bit_size: 1 variants: - - name: Ready - description: External AC’97 Codec is ready - value: 0 - - name: NotReady - description: External AC’97 Codec is not ready - value: 1 + - name: Ready + description: External AC’97 Codec is ready + value: 0 + - name: NotReady + description: External AC’97 Codec is not ready + value: 1 enum/COMP: bit_size: 2 variants: - - name: NoCompanding - description: No companding algorithm - value: 0 - - name: MuLaw - description: μ-Law algorithm - value: 2 - - name: ALaw - description: A-Law algorithm - value: 3 + - name: NoCompanding + description: No companding algorithm + value: 0 + - name: MuLaw + description: μ-Law algorithm + value: 2 + - name: ALaw + description: A-Law algorithm + value: 3 enum/CPL: bit_size: 1 variants: - - name: OnesComplement - description: 1’s complement representation - value: 0 - - name: TwosComplement - description: 2’s complement representation - value: 1 + - name: OnesComplement + description: 1’s complement representation + value: 0 + - name: TwosComplement + description: 2’s complement representation + value: 1 enum/DS: bit_size: 3 variants: - - name: Bit8 - description: 8 bits - value: 2 - - name: Bit10 - description: 10 bits - value: 3 - - name: Bit16 - description: 16 bits - value: 4 - - name: Bit20 - description: 20 bits - value: 5 - - name: Bit24 - description: 24 bits - value: 6 - - name: Bit32 - description: 32 bits - value: 7 + - name: Bit8 + description: 8 bits + value: 2 + - name: Bit10 + description: 10 bits + value: 3 + - name: Bit16 + description: 16 bits + value: 4 + - name: Bit20 + description: 20 bits + value: 5 + - name: Bit24 + description: 24 bits + value: 6 + - name: Bit32 + description: 32 bits + value: 7 enum/FFLUSH: bit_size: 1 variants: - - name: NoFlush - description: No FIFO flush - value: 0 - - name: Flush - description: FIFO flush. Programming this bit to 1 triggers the FIFO Flush. All the internal FIFO pointers (read and write) are cleared - value: 1 + - name: NoFlush + description: No FIFO flush + value: 0 + - name: Flush + description: FIFO flush. Programming this bit to 1 triggers the FIFO Flush. All the internal FIFO pointers (read and write) are cleared + value: 1 enum/FLVL: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: FIFO <= 1⁄4 but not empty - value: 1 - - name: Quarter2 - description: 1⁄4 < FIFO <= 1⁄2 - value: 2 - - name: Quarter3 - description: 1⁄2 < FIFO <= 3⁄4 - value: 3 - - name: Quarter4 - description: 3⁄4 < FIFO but not full - value: 4 - - name: Full - description: FIFO full - value: 5 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: FIFO <= 1⁄4 but not empty + value: 1 + - name: Quarter2 + description: 1⁄4 < FIFO <= 1⁄2 + value: 2 + - name: Quarter3 + description: 1⁄2 < FIFO <= 3⁄4 + value: 3 + - name: Quarter4 + description: 3⁄4 < FIFO but not full + value: 4 + - name: Full + description: FIFO full + value: 5 enum/FREQ: bit_size: 1 variants: - - name: NoRequest - description: No FIFO request - value: 0 - - name: Request - description: FIFO request to read or to write the SAI_xDR - value: 1 + - name: NoRequest + description: No FIFO request + value: 0 + - name: Request + description: FIFO request to read or to write the SAI_xDR + value: 1 enum/FSOFF: bit_size: 1 variants: - - name: OnFirst - description: FS is asserted on the first bit of the slot 0 - value: 0 - - name: BeforeFirst - description: FS is asserted one bit before the first bit of the slot 0 - value: 1 + - name: OnFirst + description: FS is asserted on the first bit of the slot 0 + value: 0 + - name: BeforeFirst + description: FS is asserted one bit before the first bit of the slot 0 + value: 1 enum/FSPOL: bit_size: 1 variants: - - name: FallingEdge - description: FS is active low (falling edge) - value: 0 - - name: RisingEdge - description: FS is active high (rising edge) - value: 1 + - name: FallingEdge + description: FS is active low (falling edge) + value: 0 + - name: RisingEdge + description: FS is active high (rising edge) + value: 1 enum/FTH: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: 1⁄4 FIFO - value: 1 - - name: Quarter2 - description: 1⁄2 FIFO - value: 2 - - name: Quarter3 - description: 3⁄4 FIFO - value: 3 - - name: Full - description: FIFO full - value: 4 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: 1⁄4 FIFO + value: 1 + - name: Quarter2 + description: 1⁄2 FIFO + value: 2 + - name: Quarter3 + description: 3⁄4 FIFO + value: 3 + - name: Full + description: FIFO full + value: 4 enum/LFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: NoSync - description: Frame synchronization signal is not present at the right time - value: 1 + - name: NoError + description: No error + value: 0 + - name: NoSync + description: Frame synchronization signal is not present at the right time + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MsbFirst - description: Data are transferred with MSB first - value: 0 - - name: LsbFirst - description: Data are transferred with LSB first - value: 1 + - name: MsbFirst + description: Data are transferred with MSB first + value: 0 + - name: LsbFirst + description: Data are transferred with LSB first + value: 1 enum/MODE: bit_size: 2 variants: - - name: MasterTx - description: Master transmitter - value: 0 - - name: MasterRx - description: Master receiver - value: 1 - - name: SlaveTx - description: Slave transmitter - value: 2 - - name: SlaveRx - description: Slave receiver - value: 3 + - name: MasterTx + description: Master transmitter + value: 0 + - name: MasterRx + description: Master receiver + value: 1 + - name: SlaveTx + description: Slave transmitter + value: 2 + - name: SlaveRx + description: Slave receiver + value: 3 enum/MONO: bit_size: 1 variants: - - name: Stereo - description: Stereo mode - value: 0 - - name: Mono - description: Mono mode - value: 1 + - name: Stereo + description: Stereo mode + value: 0 + - name: Mono + description: Mono mode + value: 1 enum/MUTEDET: bit_size: 1 variants: - - name: NoMute - description: No MUTE detection on the SD input line - value: 0 - - name: Mute - description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame - value: 1 + - name: NoMute + description: No MUTE detection on the SD input line + value: 0 + - name: Mute + description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame + value: 1 enum/MUTEVAL: bit_size: 1 variants: - - name: SendZero - description: Bit value 0 is sent during the mute mode - value: 0 - - name: SendLast - description: Last values are sent during the mute mode - value: 1 + - name: SendZero + description: Bit value 0 is sent during the mute mode + value: 0 + - name: SendLast + description: Last values are sent during the mute mode + value: 1 enum/NODIV: bit_size: 1 variants: - - name: MasterClock - description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value - value: 0 - - name: NoDiv - description: "MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL." - value: 1 + - name: MasterClock + description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value + value: 0 + - name: NoDiv + description: MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL. + value: 1 enum/OUTDRIV: bit_size: 1 variants: - - name: OnStart - description: Audio block output driven when SAIEN is set - value: 0 - - name: Immediately - description: Audio block output driven immediately after the setting of this bit - value: 1 + - name: OnStart + description: Audio block output driven when SAIEN is set + value: 0 + - name: Immediately + description: Audio block output driven immediately after the setting of this bit + value: 1 enum/OVRUDR: bit_size: 1 variants: - - name: NoError - description: No overrun/underrun error - value: 0 - - name: Overrun - description: Overrun/underrun error detection - value: 1 + - name: NoError + description: No overrun/underrun error + value: 0 + - name: Overrun + description: Overrun/underrun error detection + value: 1 enum/PRTCFG: bit_size: 2 variants: - - name: Free - description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol - value: 0 - - name: Spdif - description: SPDIF protocol - value: 1 - - name: Ac97 - description: AC’97 protocol - value: 2 + - name: Free + description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol + value: 0 + - name: Spdif + description: SPDIF protocol + value: 1 + - name: Ac97 + description: AC’97 protocol + value: 2 enum/SLOTEN: bit_size: 16 variants: - - name: Inactive - description: Inactive slot - value: 0 - - name: Active - description: Active slot - value: 1 + - name: Inactive + description: Inactive slot + value: 0 + - name: Active + description: Active slot + value: 1 enum/SLOTSZ: bit_size: 2 variants: - - name: DataSize - description: "The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register)" - value: 0 - - name: Bit16 - description: 16-bit - value: 1 - - name: Bit32 - description: 32-bit - value: 2 + - name: DataSize + description: The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register) + value: 0 + - name: Bit16 + description: 16-bit + value: 1 + - name: Bit32 + description: 32-bit + value: 2 enum/SYNCEN: bit_size: 2 variants: - - name: Asynchronous - description: audio sub-block in asynchronous mode - value: 0 - - name: Internal - description: "audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode" - value: 1 - - name: External - description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode - value: 2 + - name: Asynchronous + description: audio sub-block in asynchronous mode + value: 0 + - name: Internal + description: audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode + value: 1 + - name: External + description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode + value: 2 enum/WCKCFG: bit_size: 1 variants: - - name: Correct - description: Clock configuration is correct - value: 0 - - name: Wrong - description: Clock configuration does not respect the rule concerning the frame length specification - value: 1 + - name: Correct + description: Clock configuration is correct + value: 0 + - name: Wrong + description: Clock configuration does not respect the rule concerning the frame length specification + value: 1 diff --git a/data/registers/sai_v3.yaml b/data/registers/sai_v3.yaml index d17db2f..3caf819 100644 --- a/data/registers/sai_v3.yaml +++ b/data/registers/sai_v3.yaml @@ -1,666 +1,665 @@ ---- block/CH: - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR items: - - name: CR1 - description: Configuration register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Configuration register 2 - byte_offset: 4 - fieldset: CR2 - - name: FRCR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 8 - fieldset: FRCR - - name: SLOTR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 12 - fieldset: SLOTR - - name: IM - description: Interrupt mask register 2 - byte_offset: 16 - fieldset: IM - - name: SR - description: Status register - byte_offset: 20 - access: Read - fieldset: SR - - name: CLRFR - description: Clear flag register - byte_offset: 24 - access: Write - fieldset: CLRFR - - name: DR - description: Data register - byte_offset: 28 - fieldset: DR + - name: CR1 + description: Configuration register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Configuration register 2 + byte_offset: 4 + fieldset: CR2 + - name: FRCR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 8 + fieldset: FRCR + - name: SLOTR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 12 + fieldset: SLOTR + - name: IM + description: Interrupt mask register 2 + byte_offset: 16 + fieldset: IM + - name: SR + description: Status register + byte_offset: 20 + access: Read + fieldset: SR + - name: CLRFR + description: Clear flag register + byte_offset: 24 + access: Write + fieldset: CLRFR + - name: DR + description: Data register + byte_offset: 28 + fieldset: DR block/SAI: description: Serial audio interface items: - - name: GCR - description: Global configuration register - byte_offset: 0 - fieldset: GCR - - name: CH - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" - array: - len: 2 - stride: 32 - byte_offset: 4 - block: CH - - name: PDMCR - description: PDM control register - byte_offset: 68 - fieldset: PDMCR - - name: PDMDLY - description: PDM delay register - byte_offset: 72 - fieldset: PDMDLY + - name: GCR + description: Global configuration register + byte_offset: 0 + fieldset: GCR + - name: CH + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR + array: + len: 2 + stride: 32 + byte_offset: 4 + block: CH + - name: PDMCR + description: PDM control register + byte_offset: 68 + fieldset: PDMCR + - name: PDMDLY + description: PDM delay register + byte_offset: 72 + fieldset: PDMDLY fieldset/CLRFR: description: Clear flag register fields: - - name: COVRUDR - description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 0 - bit_size: 1 - - name: CMUTEDET - description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 1 - bit_size: 1 - - name: CWCKCFG - description: "Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0." - bit_offset: 2 - bit_size: 1 - - name: CCNRDY - description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. - bit_offset: 4 - bit_size: 1 - - name: CAFSDET - description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. - bit_offset: 5 - bit_size: 1 - - name: CLFSDET - description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. - bit_offset: 6 - bit_size: 1 + - name: COVRUDR + description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 0 + bit_size: 1 + - name: CMUTEDET + description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 1 + bit_size: 1 + - name: CWCKCFG + description: Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 2 + bit_size: 1 + - name: CCNRDY + description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 4 + bit_size: 1 + - name: CAFSDET + description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. + bit_offset: 5 + bit_size: 1 + - name: CLFSDET + description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. + bit_offset: 6 + bit_size: 1 fieldset/CR1: description: Configuration register 1 fields: - - name: MODE - description: SAIx audio block mode immediately - bit_offset: 0 - bit_size: 2 - enum: MODE - - name: PRTCFG - description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. - bit_offset: 2 - bit_size: 2 - enum: PRTCFG - - name: DS - description: "Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled." - bit_offset: 5 - bit_size: 3 - enum: DS - - name: LSBFIRST - description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. - bit_offset: 8 - bit_size: 1 - enum: LSBFIRST - - name: CKSTR - description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. - bit_offset: 9 - bit_size: 1 - enum: CKSTR - - name: SYNCEN - description: "Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled." - bit_offset: 10 - bit_size: 2 - enum: SYNCEN - - name: MONO - description: "Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details." - bit_offset: 12 - bit_size: 1 - enum: MONO - - name: OUTDRIV - description: "Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration." - bit_offset: 13 - bit_size: 1 - enum: OUTDRIV - - name: SAIEN - description: "Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit." - bit_offset: 16 - bit_size: 1 - - name: DMAEN - description: "DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode." - bit_offset: 17 - bit_size: 1 - - name: NODIV - description: No fixed divider between MCLK and FS - bit_offset: 19 - bit_size: 1 - enum: NODIV - - name: MCKDIV - description: "Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:" - bit_offset: 20 - bit_size: 6 - - name: OSR - description: Oversampling ratio for master clock - bit_offset: 26 - bit_size: 1 + - name: MODE + description: SAIx audio block mode immediately + bit_offset: 0 + bit_size: 2 + enum: MODE + - name: PRTCFG + description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. + bit_offset: 2 + bit_size: 2 + enum: PRTCFG + - name: DS + description: Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled. + bit_offset: 5 + bit_size: 3 + enum: DS + - name: LSBFIRST + description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. + bit_offset: 8 + bit_size: 1 + enum: LSBFIRST + - name: CKSTR + description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. + bit_offset: 9 + bit_size: 1 + enum: CKSTR + - name: SYNCEN + description: 'Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled.' + bit_offset: 10 + bit_size: 2 + enum: SYNCEN + - name: MONO + description: 'Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details.' + bit_offset: 12 + bit_size: 1 + enum: MONO + - name: OUTDRIV + description: 'Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration.' + bit_offset: 13 + bit_size: 1 + enum: OUTDRIV + - name: SAIEN + description: 'Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit.' + bit_offset: 16 + bit_size: 1 + - name: DMAEN + description: 'DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode.' + bit_offset: 17 + bit_size: 1 + - name: NODIV + description: No fixed divider between MCLK and FS + bit_offset: 19 + bit_size: 1 + enum: NODIV + - name: MCKDIV + description: 'Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:' + bit_offset: 20 + bit_size: 6 + - name: OSR + description: Oversampling ratio for master clock + bit_offset: 26 + bit_size: 1 fieldset/CR2: description: Configuration register 2 fields: - - name: FTH - description: FIFO threshold. This bit is set and cleared by software. - bit_offset: 0 - bit_size: 3 - enum: FTH - - name: FFLUSH - description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. - bit_offset: 3 - bit_size: 1 - - name: TRIS - description: "Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details." - bit_offset: 4 - bit_size: 1 - - name: MUTE - description: "Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 5 - bit_size: 1 - - name: MUTEVAL - description: "Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 6 - bit_size: 1 - enum: MUTEVAL - - name: MUTECNT - description: "Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details." - bit_offset: 7 - bit_size: 6 - - name: CPL - description: "Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm." - bit_offset: 13 - bit_size: 1 - enum: CPL - - name: COMP - description: "Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected." - bit_offset: 14 - bit_size: 2 - enum: COMP + - name: FTH + description: FIFO threshold. This bit is set and cleared by software. + bit_offset: 0 + bit_size: 3 + enum: FTH + - name: FFLUSH + description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. + bit_offset: 3 + bit_size: 1 + - name: TRIS + description: 'Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details.' + bit_offset: 4 + bit_size: 1 + - name: MUTE + description: 'Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 5 + bit_size: 1 + - name: MUTEVAL + description: 'Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 6 + bit_size: 1 + enum: MUTEVAL + - name: MUTECNT + description: 'Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details.' + bit_offset: 7 + bit_size: 6 + - name: CPL + description: 'Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm.' + bit_offset: 13 + bit_size: 1 + enum: CPL + - name: COMP + description: 'Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected.' + bit_offset: 14 + bit_size: 2 + enum: COMP fieldset/DR: description: Data register fields: - - name: DATA - description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. - bit_offset: 0 - bit_size: 32 + - name: DATA + description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. + bit_offset: 0 + bit_size: 32 fieldset/FRCR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FRL - description: "Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration." - bit_offset: 0 - bit_size: 8 - - name: FSALL - description: "Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled." - bit_offset: 8 - bit_size: 7 - - name: FSDEF - description: "Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled." - bit_offset: 16 - bit_size: 1 - - name: FSPOL - description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 17 - bit_size: 1 - enum: FSPOL - - name: FSOFF - description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 18 - bit_size: 1 - enum: FSOFF + - name: FRL + description: 'Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration.' + bit_offset: 0 + bit_size: 8 + - name: FSALL + description: Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled. + bit_offset: 8 + bit_size: 7 + - name: FSDEF + description: 'Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled.' + bit_offset: 16 + bit_size: 1 + - name: FSPOL + description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 17 + bit_size: 1 + enum: FSPOL + - name: FSOFF + description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 18 + bit_size: 1 + enum: FSOFF fieldset/GCR: description: Global configuration register fields: - - name: SYNCIN - description: Synchronization inputs - bit_offset: 0 - bit_size: 2 - - name: SYNCOUT - description: Synchronization outputs These bits are set and cleared by software. - bit_offset: 4 - bit_size: 2 + - name: SYNCIN + description: Synchronization inputs + bit_offset: 0 + bit_size: 2 + - name: SYNCOUT + description: Synchronization outputs These bits are set and cleared by software. + bit_offset: 4 + bit_size: 2 fieldset/IM: description: Interrupt mask register 2 fields: - - name: OVRUDRIE - description: "Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set." - bit_offset: 0 - bit_size: 1 - - name: MUTEDETIE - description: "Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode." - bit_offset: 1 - bit_size: 1 - - name: WCKCFGIE - description: "Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes." - bit_offset: 2 - bit_size: 1 - - name: FREQIE - description: "FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode," - bit_offset: 3 - bit_size: 1 - - name: CNRDYIE - description: "Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver." - bit_offset: 4 - bit_size: 1 - - name: AFSDETIE - description: "Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 5 - bit_size: 1 - - name: LFSDETIE - description: "Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 6 - bit_size: 1 + - name: OVRUDRIE + description: Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set. + bit_offset: 0 + bit_size: 1 + - name: MUTEDETIE + description: Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode. + bit_offset: 1 + bit_size: 1 + - name: WCKCFGIE + description: 'Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes.' + bit_offset: 2 + bit_size: 1 + - name: FREQIE + description: FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode, + bit_offset: 3 + bit_size: 1 + - name: CNRDYIE + description: Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver. + bit_offset: 4 + bit_size: 1 + - name: AFSDETIE + description: Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 5 + bit_size: 1 + - name: LFSDETIE + description: Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 6 + bit_size: 1 fieldset/PDMCR: description: PDM control register fields: - - name: PDMEN - description: PDM enable - bit_offset: 0 - bit_size: 1 - - name: MICNBR - description: Number of microphones - bit_offset: 4 - bit_size: 2 - - name: CKEN1 - description: Clock enable of bitstream clock number 1 - bit_offset: 8 - bit_size: 1 - - name: CKEN2 - description: Clock enable of bitstream clock number 2 - bit_offset: 9 - bit_size: 1 - - name: CKEN3 - description: Clock enable of bitstream clock number 3 - bit_offset: 10 - bit_size: 1 - - name: CKEN4 - description: Clock enable of bitstream clock number 4 - bit_offset: 11 - bit_size: 1 + - name: PDMEN + description: PDM enable + bit_offset: 0 + bit_size: 1 + - name: MICNBR + description: Number of microphones + bit_offset: 4 + bit_size: 2 + - name: CKEN1 + description: Clock enable of bitstream clock number 1 + bit_offset: 8 + bit_size: 1 + - name: CKEN2 + description: Clock enable of bitstream clock number 2 + bit_offset: 9 + bit_size: 1 + - name: CKEN3 + description: Clock enable of bitstream clock number 3 + bit_offset: 10 + bit_size: 1 + - name: CKEN4 + description: Clock enable of bitstream clock number 4 + bit_offset: 11 + bit_size: 1 fieldset/PDMDLY: description: PDM delay register fields: - - name: DLYM1L - description: Delay line adjust for first microphone of pair 1 - bit_offset: 0 - bit_size: 3 - - name: DLYM1R - description: Delay line adjust for second microphone of pair 1 - bit_offset: 4 - bit_size: 3 - - name: DLYM2L - description: Delay line for first microphone of pair 2 - bit_offset: 8 - bit_size: 3 - - name: DLYM2R - description: Delay line for second microphone of pair 2 - bit_offset: 12 - bit_size: 3 - - name: DLYM3L - description: Delay line for first microphone of pair 3 - bit_offset: 16 - bit_size: 3 - - name: DLYM3R - description: Delay line for second microphone of pair 3 - bit_offset: 20 - bit_size: 3 - - name: DLYM4L - description: Delay line for first microphone of pair 4 - bit_offset: 24 - bit_size: 3 - - name: DLYM4R - description: Delay line for second microphone of pair 4 - bit_offset: 28 - bit_size: 3 + - name: DLYM1L + description: Delay line adjust for first microphone of pair 1 + bit_offset: 0 + bit_size: 3 + - name: DLYM1R + description: Delay line adjust for second microphone of pair 1 + bit_offset: 4 + bit_size: 3 + - name: DLYM2L + description: Delay line for first microphone of pair 2 + bit_offset: 8 + bit_size: 3 + - name: DLYM2R + description: Delay line for second microphone of pair 2 + bit_offset: 12 + bit_size: 3 + - name: DLYM3L + description: Delay line for first microphone of pair 3 + bit_offset: 16 + bit_size: 3 + - name: DLYM3R + description: Delay line for second microphone of pair 3 + bit_offset: 20 + bit_size: 3 + - name: DLYM4L + description: Delay line for first microphone of pair 4 + bit_offset: 24 + bit_size: 3 + - name: DLYM4R + description: Delay line for second microphone of pair 4 + bit_offset: 28 + bit_size: 3 fieldset/SLOTR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FBOFF - description: "First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 0 - bit_size: 5 - - name: SLOTSZ - description: "Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 6 - bit_size: 2 - enum: SLOTSZ - - name: NBSLOT - description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 8 - bit_size: 4 - - name: SLOTEN - description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 16 - bit_size: 16 - enum: SLOTEN + - name: FBOFF + description: First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 0 + bit_size: 5 + - name: SLOTSZ + description: 'Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.' + bit_offset: 6 + bit_size: 2 + enum: SLOTSZ + - name: NBSLOT + description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 8 + bit_size: 4 + - name: SLOTEN + description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 16 + bit_size: 16 + enum: SLOTEN fieldset/SR: description: Status register fields: - - name: OVRUDR - description: "Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register." - bit_offset: 0 - bit_size: 1 - enum: OVRUDR - - name: MUTEDET - description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. - bit_offset: 1 - bit_size: 1 - enum: MUTEDET - - name: WCKCFG - description: "Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register." - bit_offset: 2 - bit_size: 1 - enum: WCKCFG - - name: FREQ - description: "FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register." - bit_offset: 3 - bit_size: 1 - enum: FREQ - - name: CNRDY - description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. - bit_offset: 4 - bit_size: 1 - enum: CNRDY - - name: AFSDET - description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. - bit_offset: 5 - bit_size: 1 - enum: AFSDET - - name: LFSDET - description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register - bit_offset: 6 - bit_size: 1 - enum: LFSDET - - name: FLVL - description: "FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:" - bit_offset: 16 - bit_size: 3 - enum: FLVL + - name: OVRUDR + description: Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register. + bit_offset: 0 + bit_size: 1 + enum: OVRUDR + - name: MUTEDET + description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. + bit_offset: 1 + bit_size: 1 + enum: MUTEDET + - name: WCKCFG + description: Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register. + bit_offset: 2 + bit_size: 1 + enum: WCKCFG + - name: FREQ + description: 'FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register.' + bit_offset: 3 + bit_size: 1 + enum: FREQ + - name: CNRDY + description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. + bit_offset: 4 + bit_size: 1 + enum: CNRDY + - name: AFSDET + description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. + bit_offset: 5 + bit_size: 1 + enum: AFSDET + - name: LFSDET + description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register + bit_offset: 6 + bit_size: 1 + enum: LFSDET + - name: FLVL + description: 'FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:' + bit_offset: 16 + bit_size: 3 + enum: FLVL enum/AFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: EarlySync - description: Frame synchronization signal is detected earlier than expected - value: 1 + - name: NoError + description: No error + value: 0 + - name: EarlySync + description: Frame synchronization signal is detected earlier than expected + value: 1 enum/CKSTR: bit_size: 1 variants: - - name: FallingEdge - description: Data strobing edge is falling edge of SCK - value: 0 - - name: RisingEdge - description: Data strobing edge is rising edge of SCK - value: 1 + - name: FallingEdge + description: Data strobing edge is falling edge of SCK + value: 0 + - name: RisingEdge + description: Data strobing edge is rising edge of SCK + value: 1 enum/CNRDY: bit_size: 1 variants: - - name: Ready - description: External AC’97 Codec is ready - value: 0 - - name: NotReady - description: External AC’97 Codec is not ready - value: 1 + - name: Ready + description: External AC’97 Codec is ready + value: 0 + - name: NotReady + description: External AC’97 Codec is not ready + value: 1 enum/COMP: bit_size: 2 variants: - - name: NoCompanding - description: No companding algorithm - value: 0 - - name: MuLaw - description: μ-Law algorithm - value: 2 - - name: ALaw - description: A-Law algorithm - value: 3 + - name: NoCompanding + description: No companding algorithm + value: 0 + - name: MuLaw + description: μ-Law algorithm + value: 2 + - name: ALaw + description: A-Law algorithm + value: 3 enum/CPL: bit_size: 1 variants: - - name: OnesComplement - description: 1’s complement representation - value: 0 - - name: TwosComplement - description: 2’s complement representation - value: 1 + - name: OnesComplement + description: 1’s complement representation + value: 0 + - name: TwosComplement + description: 2’s complement representation + value: 1 enum/DS: bit_size: 3 variants: - - name: Bit8 - description: 8 bits - value: 2 - - name: Bit10 - description: 10 bits - value: 3 - - name: Bit16 - description: 16 bits - value: 4 - - name: Bit20 - description: 20 bits - value: 5 - - name: Bit24 - description: 24 bits - value: 6 - - name: Bit32 - description: 32 bits - value: 7 + - name: Bit8 + description: 8 bits + value: 2 + - name: Bit10 + description: 10 bits + value: 3 + - name: Bit16 + description: 16 bits + value: 4 + - name: Bit20 + description: 20 bits + value: 5 + - name: Bit24 + description: 24 bits + value: 6 + - name: Bit32 + description: 32 bits + value: 7 enum/FLVL: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: FIFO <= 1⁄4 but not empty - value: 1 - - name: Quarter2 - description: 1⁄4 < FIFO <= 1⁄2 - value: 2 - - name: Quarter3 - description: 1⁄2 < FIFO <= 3⁄4 - value: 3 - - name: Quarter4 - description: 3⁄4 < FIFO but not full - value: 4 - - name: Full - description: FIFO full - value: 5 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: FIFO <= 1⁄4 but not empty + value: 1 + - name: Quarter2 + description: 1⁄4 < FIFO <= 1⁄2 + value: 2 + - name: Quarter3 + description: 1⁄2 < FIFO <= 3⁄4 + value: 3 + - name: Quarter4 + description: 3⁄4 < FIFO but not full + value: 4 + - name: Full + description: FIFO full + value: 5 enum/FREQ: bit_size: 1 variants: - - name: NoRequest - description: No FIFO request - value: 0 - - name: Request - description: FIFO request to read or to write the SAI_xDR - value: 1 + - name: NoRequest + description: No FIFO request + value: 0 + - name: Request + description: FIFO request to read or to write the SAI_xDR + value: 1 enum/FSOFF: bit_size: 1 variants: - - name: OnFirst - description: FS is asserted on the first bit of the slot 0 - value: 0 - - name: BeforeFirst - description: FS is asserted one bit before the first bit of the slot 0 - value: 1 + - name: OnFirst + description: FS is asserted on the first bit of the slot 0 + value: 0 + - name: BeforeFirst + description: FS is asserted one bit before the first bit of the slot 0 + value: 1 enum/FSPOL: bit_size: 1 variants: - - name: FallingEdge - description: FS is active low (falling edge) - value: 0 - - name: RisingEdge - description: FS is active high (rising edge) - value: 1 + - name: FallingEdge + description: FS is active low (falling edge) + value: 0 + - name: RisingEdge + description: FS is active high (rising edge) + value: 1 enum/FTH: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: 1⁄4 FIFO - value: 1 - - name: Quarter2 - description: 1⁄2 FIFO - value: 2 - - name: Quarter3 - description: 3⁄4 FIFO - value: 3 - - name: Full - description: FIFO full - value: 4 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: 1⁄4 FIFO + value: 1 + - name: Quarter2 + description: 1⁄2 FIFO + value: 2 + - name: Quarter3 + description: 3⁄4 FIFO + value: 3 + - name: Full + description: FIFO full + value: 4 enum/LFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: NoSync - description: Frame synchronization signal is not present at the right time - value: 1 + - name: NoError + description: No error + value: 0 + - name: NoSync + description: Frame synchronization signal is not present at the right time + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MsbFirst - description: Data are transferred with MSB first - value: 0 - - name: LsbFirst - description: Data are transferred with LSB first - value: 1 + - name: MsbFirst + description: Data are transferred with MSB first + value: 0 + - name: LsbFirst + description: Data are transferred with LSB first + value: 1 enum/MODE: bit_size: 2 variants: - - name: MasterTx - description: Master transmitter - value: 0 - - name: MasterRx - description: Master receiver - value: 1 - - name: SlaveTx - description: Slave transmitter - value: 2 - - name: SlaveRx - description: Slave receiver - value: 3 + - name: MasterTx + description: Master transmitter + value: 0 + - name: MasterRx + description: Master receiver + value: 1 + - name: SlaveTx + description: Slave transmitter + value: 2 + - name: SlaveRx + description: Slave receiver + value: 3 enum/MONO: bit_size: 1 variants: - - name: Stereo - description: Stereo mode - value: 0 - - name: Mono - description: Mono mode - value: 1 + - name: Stereo + description: Stereo mode + value: 0 + - name: Mono + description: Mono mode + value: 1 enum/MUTEDET: bit_size: 1 variants: - - name: NoMute - description: No MUTE detection on the SD input line - value: 0 - - name: Mute - description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame - value: 1 + - name: NoMute + description: No MUTE detection on the SD input line + value: 0 + - name: Mute + description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame + value: 1 enum/MUTEVAL: bit_size: 1 variants: - - name: SendZero - description: Bit value 0 is sent during the mute mode - value: 0 - - name: SendLast - description: Last values are sent during the mute mode - value: 1 + - name: SendZero + description: Bit value 0 is sent during the mute mode + value: 0 + - name: SendLast + description: Last values are sent during the mute mode + value: 1 enum/NODIV: bit_size: 1 variants: - - name: MasterClock - description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value - value: 0 - - name: NoDiv - description: "MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL." - value: 1 + - name: MasterClock + description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value + value: 0 + - name: NoDiv + description: MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL. + value: 1 enum/OUTDRIV: bit_size: 1 variants: - - name: OnStart - description: Audio block output driven when SAIEN is set - value: 0 - - name: Immediately - description: Audio block output driven immediately after the setting of this bit - value: 1 + - name: OnStart + description: Audio block output driven when SAIEN is set + value: 0 + - name: Immediately + description: Audio block output driven immediately after the setting of this bit + value: 1 enum/OVRUDR: bit_size: 1 variants: - - name: NoError - description: No overrun/underrun error - value: 0 - - name: Overrun - description: Overrun/underrun error detection - value: 1 + - name: NoError + description: No overrun/underrun error + value: 0 + - name: Overrun + description: Overrun/underrun error detection + value: 1 enum/PRTCFG: bit_size: 2 variants: - - name: Free - description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol - value: 0 - - name: Spdif - description: SPDIF protocol - value: 1 - - name: Ac97 - description: AC’97 protocol - value: 2 + - name: Free + description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol + value: 0 + - name: Spdif + description: SPDIF protocol + value: 1 + - name: Ac97 + description: AC’97 protocol + value: 2 enum/SLOTEN: bit_size: 16 variants: - - name: Inactive - description: Inactive slot - value: 0 - - name: Active - description: Active slot - value: 1 + - name: Inactive + description: Inactive slot + value: 0 + - name: Active + description: Active slot + value: 1 enum/SLOTSZ: bit_size: 2 variants: - - name: DataSize - description: "The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register)" - value: 0 - - name: Bit16 - description: 16-bit - value: 1 - - name: Bit32 - description: 32-bit - value: 2 + - name: DataSize + description: The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register) + value: 0 + - name: Bit16 + description: 16-bit + value: 1 + - name: Bit32 + description: 32-bit + value: 2 enum/SYNCEN: bit_size: 2 variants: - - name: Asynchronous - description: audio sub-block in asynchronous mode - value: 0 - - name: Internal - description: "audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode" - value: 1 - - name: External - description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode - value: 2 + - name: Asynchronous + description: audio sub-block in asynchronous mode + value: 0 + - name: Internal + description: audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode + value: 1 + - name: External + description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode + value: 2 enum/WCKCFG: bit_size: 1 variants: - - name: Correct - description: Clock configuration is correct - value: 0 - - name: Wrong - description: Clock configuration does not respect the rule concerning the frame length specification - value: 1 + - name: Correct + description: Clock configuration is correct + value: 0 + - name: Wrong + description: Clock configuration does not respect the rule concerning the frame length specification + value: 1 diff --git a/data/registers/sai_v4.yaml b/data/registers/sai_v4.yaml index 887eb1b..99d3c75 100644 --- a/data/registers/sai_v4.yaml +++ b/data/registers/sai_v4.yaml @@ -1,670 +1,669 @@ ---- block/CH: - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR items: - - name: CR1 - description: Configuration register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Configuration register 2 - byte_offset: 4 - fieldset: CR2 - - name: FRCR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 8 - fieldset: FRCR - - name: SLOTR - description: This register has no meaning in AC97 and SPDIF audio protocol - byte_offset: 12 - fieldset: SLOTR - - name: IM - description: Interrupt mask register 2 - byte_offset: 16 - fieldset: IM - - name: SR - description: Status register - byte_offset: 20 - access: Read - fieldset: SR - - name: CLRFR - description: Clear flag register - byte_offset: 24 - access: Write - fieldset: CLRFR - - name: DR - description: Data register - byte_offset: 28 - fieldset: DR + - name: CR1 + description: Configuration register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Configuration register 2 + byte_offset: 4 + fieldset: CR2 + - name: FRCR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 8 + fieldset: FRCR + - name: SLOTR + description: This register has no meaning in AC97 and SPDIF audio protocol + byte_offset: 12 + fieldset: SLOTR + - name: IM + description: Interrupt mask register 2 + byte_offset: 16 + fieldset: IM + - name: SR + description: Status register + byte_offset: 20 + access: Read + fieldset: SR + - name: CLRFR + description: Clear flag register + byte_offset: 24 + access: Write + fieldset: CLRFR + - name: DR + description: Data register + byte_offset: 28 + fieldset: DR block/SAI: description: Serial audio interface items: - - name: GCR - description: Global configuration register - byte_offset: 0 - fieldset: GCR - - name: CH - description: "Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR" - array: - len: 2 - stride: 32 - byte_offset: 4 - block: CH - - name: PDMCR - description: PDM control register - byte_offset: 68 - fieldset: PDMCR - - name: PDMDLY - description: PDM delay register - byte_offset: 72 - fieldset: PDMDLY + - name: GCR + description: Global configuration register + byte_offset: 0 + fieldset: GCR + - name: CH + description: Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR + array: + len: 2 + stride: 32 + byte_offset: 4 + block: CH + - name: PDMCR + description: PDM control register + byte_offset: 68 + fieldset: PDMCR + - name: PDMDLY + description: PDM delay register + byte_offset: 72 + fieldset: PDMDLY fieldset/CLRFR: description: Clear flag register fields: - - name: COVRUDR - description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 0 - bit_size: 1 - - name: CMUTEDET - description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. - bit_offset: 1 - bit_size: 1 - - name: CWCKCFG - description: "Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0." - bit_offset: 2 - bit_size: 1 - - name: CCNRDY - description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. - bit_offset: 4 - bit_size: 1 - - name: CAFSDET - description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. - bit_offset: 5 - bit_size: 1 - - name: CLFSDET - description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. - bit_offset: 6 - bit_size: 1 + - name: COVRUDR + description: Clear overrun / underrun. This bit is write only. Programming this bit to 1 clears the OVRUDR flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 0 + bit_size: 1 + - name: CMUTEDET + description: Mute detection flag. This bit is write only. Programming this bit to 1 clears the MUTEDET flag in the SAI_xSR register. Reading this bit always returns the value 0. + bit_offset: 1 + bit_size: 1 + - name: CWCKCFG + description: Clear wrong clock configuration flag. This bit is write only. Programming this bit to 1 clears the WCKCFG flag in the SAI_xSR register. This bit is used only when the audio block is set as master (MODE[1] = 0) and NODIV = 0 in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 2 + bit_size: 1 + - name: CCNRDY + description: Clear Codec not ready flag. This bit is write only. Programming this bit to 1 clears the CNRDY flag in the SAI_xSR register. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register. Reading this bit always returns the value 0. + bit_offset: 4 + bit_size: 1 + - name: CAFSDET + description: Clear anticipated frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the AFSDET flag in the SAI_xSR register. It is not used in AC97or SPDIF mode. Reading this bit always returns the value 0. + bit_offset: 5 + bit_size: 1 + - name: CLFSDET + description: Clear late frame synchronization detection flag. This bit is write only. Programming this bit to 1 clears the LFSDET flag in the SAI_xSR register. This bit is not used in AC97or SPDIF mode Reading this bit always returns the value 0. + bit_offset: 6 + bit_size: 1 fieldset/CR1: description: Configuration register 1 fields: - - name: MODE - description: SAIx audio block mode immediately - bit_offset: 0 - bit_size: 2 - enum: MODE - - name: PRTCFG - description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. - bit_offset: 2 - bit_size: 2 - enum: PRTCFG - - name: DS - description: "Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled." - bit_offset: 5 - bit_size: 3 - enum: DS - - name: LSBFIRST - description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. - bit_offset: 8 - bit_size: 1 - enum: LSBFIRST - - name: CKSTR - description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. - bit_offset: 9 - bit_size: 1 - enum: CKSTR - - name: SYNCEN - description: "Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled." - bit_offset: 10 - bit_size: 2 - enum: SYNCEN - - name: MONO - description: "Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details." - bit_offset: 12 - bit_size: 1 - enum: MONO - - name: OUTDRIV - description: "Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration." - bit_offset: 13 - bit_size: 1 - enum: OUTDRIV - - name: SAIEN - description: "Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit." - bit_offset: 16 - bit_size: 1 - - name: DMAEN - description: "DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode." - bit_offset: 17 - bit_size: 1 - - name: NODIV - description: No fixed divider between MCLK and FS - bit_offset: 19 - bit_size: 1 - enum: NODIV - - name: MCKDIV - description: "Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:" - bit_offset: 20 - bit_size: 6 - - name: OSR - description: Oversampling ratio for master clock - bit_offset: 26 - bit_size: 1 - - name: MCKEN - description: Master clock generation enable - bit_offset: 27 - bit_size: 1 + - name: MODE + description: SAIx audio block mode immediately + bit_offset: 0 + bit_size: 2 + enum: MODE + - name: PRTCFG + description: Protocol configuration. These bits are set and cleared by software. These bits have to be configured when the audio block is disabled. + bit_offset: 2 + bit_size: 2 + enum: PRTCFG + - name: DS + description: Data size. These bits are set and cleared by software. These bits are ignored when the SPDIF protocols are selected (bit PRTCFG[1:0]), because the frame and the data size are fixed in such case. When the companding mode is selected through COMP[1:0] bits, DS[1:0] are ignored since the data size is fixed to 8 bits by the algorithm. These bits must be configured when the audio block is disabled. + bit_offset: 5 + bit_size: 3 + enum: DS + - name: LSBFIRST + description: Least significant bit first. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in AC97 audio protocol since AC97 data are always transferred with the MSB first. This bit has no meaning in SPDIF audio protocol since in SPDIF data are always transferred with LSB first. + bit_offset: 8 + bit_size: 1 + enum: LSBFIRST + - name: CKSTR + description: Clock strobing edge. This bit is set and cleared by software. It must be configured when the audio block is disabled. This bit has no meaning in SPDIF audio protocol. + bit_offset: 9 + bit_size: 1 + enum: CKSTR + - name: SYNCEN + description: 'Synchronization enable. These bits are set and cleared by software. They must be configured when the audio sub-block is disabled. Note: The audio sub-block should be configured as asynchronous when SPDIF mode is enabled.' + bit_offset: 10 + bit_size: 2 + enum: SYNCEN + - name: MONO + description: 'Mono mode. This bit is set and cleared by software. It is meaningful only when the number of slots is equal to 2. When the mono mode is selected, slot 0 data are duplicated on slot 1 when the audio block operates as a transmitter. In reception mode, the slot1 is discarded and only the data received from slot 0 are stored. Refer to Section: Mono/stereo mode for more details.' + bit_offset: 12 + bit_size: 1 + enum: MONO + - name: OUTDRIV + description: 'Output drive. This bit is set and cleared by software. Note: This bit has to be set before enabling the audio block and after the audio block configuration.' + bit_offset: 13 + bit_size: 1 + enum: OUTDRIV + - name: SAIEN + description: 'Audio block enable where x is A or B. This bit is set by software. To switch off the audio block, the application software must program this bit to 0 and poll the bit till it reads back 0, meaning that the block is completely disabled. Before setting this bit to 1, check that it is set to 0, otherwise the enable command will not be taken into account. This bit allows to control the state of SAIx audio block. If it is disabled when an audio frame transfer is ongoing, the ongoing transfer completes and the cell is fully disabled at the end of this audio frame transfer. Note: When SAIx block is configured in master mode, the clock must be present on the input of SAIx before setting SAIXEN bit.' + bit_offset: 16 + bit_size: 1 + - name: DMAEN + description: 'DMA enable. This bit is set and cleared by software. Note: Since the audio block defaults to operate as a transmitter after reset, the MODE[1:0] bits must be configured before setting DMAEN to avoid a DMA request in receiver mode.' + bit_offset: 17 + bit_size: 1 + - name: NODIV + description: No fixed divider between MCLK and FS + bit_offset: 19 + bit_size: 1 + enum: NODIV + - name: MCKDIV + description: 'Master clock divider. These bits are set and cleared by software. These bits are meaningless when the audio block operates in slave mode. They have to be configured when the audio block is disabled. Others: the master clock frequency is calculated accordingly to the following formula:' + bit_offset: 20 + bit_size: 6 + - name: OSR + description: Oversampling ratio for master clock + bit_offset: 26 + bit_size: 1 + - name: MCKEN + description: Master clock generation enable + bit_offset: 27 + bit_size: 1 fieldset/CR2: description: Configuration register 2 fields: - - name: FTH - description: FIFO threshold. This bit is set and cleared by software. - bit_offset: 0 - bit_size: 3 - enum: FTH - - name: FFLUSH - description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. - bit_offset: 3 - bit_size: 1 - - name: TRIS - description: "Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details." - bit_offset: 4 - bit_size: 1 - - name: MUTE - description: "Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 5 - bit_size: 1 - - name: MUTEVAL - description: "Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks." - bit_offset: 6 - bit_size: 1 - enum: MUTEVAL - - name: MUTECNT - description: "Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details." - bit_offset: 7 - bit_size: 6 - - name: CPL - description: "Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm." - bit_offset: 13 - bit_size: 1 - enum: CPL - - name: COMP - description: "Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected." - bit_offset: 14 - bit_size: 2 - enum: COMP + - name: FTH + description: FIFO threshold. This bit is set and cleared by software. + bit_offset: 0 + bit_size: 3 + enum: FTH + - name: FFLUSH + description: FIFO flush. This bit is set by software. It is always read as 0. This bit should be configured when the SAI is disabled. + bit_offset: 3 + bit_size: 1 + - name: TRIS + description: 'Tristate management on data line. This bit is set and cleared by software. It is meaningful only if the audio block is configured as a transmitter. This bit is not used when the audio block is configured in SPDIF mode. It should be configured when SAI is disabled. Refer to Section: Output data line management on an inactive slot for more details.' + bit_offset: 4 + bit_size: 1 + - name: MUTE + description: 'Mute. This bit is set and cleared by software. It is meaningful only when the audio block operates as a transmitter. The MUTE value is linked to value of MUTEVAL if the number of slots is lower or equal to 2, or equal to 0 if it is greater than 2. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 5 + bit_size: 1 + - name: MUTEVAL + description: 'Mute value. This bit is set and cleared by software.It must be written before enabling the audio block: SAIXEN. This bit is meaningful only when the audio block operates as a transmitter, the number of slots is lower or equal to 2 and the MUTE bit is set. If more slots are declared, the bit value sent during the transmission in mute mode is equal to 0, whatever the value of MUTEVAL. if the number of slot is lower or equal to 2 and MUTEVAL = 1, the MUTE value transmitted for each slot is the one sent during the previous frame. Refer to Section: Mute mode for more details. Note: This bit is meaningless and should not be used for SPDIF audio blocks.' + bit_offset: 6 + bit_size: 1 + enum: MUTEVAL + - name: MUTECNT + description: 'Mute counter. These bits are set and cleared by software. They are used only in reception mode. The value set in these bits is compared to the number of consecutive mute frames detected in reception. When the number of mute frames is equal to this value, the flag MUTEDET will be set and an interrupt will be generated if bit MUTEDETIE is set. Refer to Section: Mute mode for more details.' + bit_offset: 7 + bit_size: 6 + - name: CPL + description: 'Complement bit. This bit is set and cleared by software. It defines the type of complement to be used for companding mode Note: This bit has effect only when the companding mode is -Law algorithm or A-Law algorithm.' + bit_offset: 13 + bit_size: 1 + enum: CPL + - name: COMP + description: 'Companding mode. These bits are set and cleared by software. The -Law and the A-Law log are a part of the CCITT G.711 recommendation, the type of complement that will be used depends on CPL bit. The data expansion or data compression are determined by the state of bit MODE[0]. The data compression is applied if the audio block is configured as a transmitter. The data expansion is automatically applied when the audio block is configured as a receiver. Refer to Section: Companding mode for more details. Note: Companding mode is applicable only when TDM is selected.' + bit_offset: 14 + bit_size: 2 + enum: COMP fieldset/DR: description: Data register fields: - - name: DATA - description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. - bit_offset: 0 - bit_size: 32 + - name: DATA + description: Data A write to this register loads the FIFO provided the FIFO is not full. A read from this register empties the FIFO if the FIFO is not empty. + bit_offset: 0 + bit_size: 32 fieldset/FRCR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FRL - description: "Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration." - bit_offset: 0 - bit_size: 8 - - name: FSALL - description: "Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled." - bit_offset: 8 - bit_size: 7 - - name: FSDEF - description: "Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled." - bit_offset: 16 - bit_size: 1 - - name: FSPOL - description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 17 - bit_size: 1 - enum: FSPOL - - name: FSOFF - description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. - bit_offset: 18 - bit_size: 1 - enum: FSOFF + - name: FRL + description: 'Frame length. These bits are set and cleared by software. They define the audio frame length expressed in number of SCK clock cycles: the number of bits in the frame is equal to FRL[7:0] + 1. The minimum number of bits to transfer in an audio frame must be equal to 8, otherwise the audio block will behaves in an unexpected way. This is the case when the data size is 8 bits and only one slot 0 is defined in NBSLOT[4:0] of SAI_xSLOTR register (NBSLOT[3:0] = 0000). In master mode, if the master clock (available on MCLK_x pin) is used, the frame length should be aligned with a number equal to a power of 2, ranging from 8 to 256. When the master clock is not used (NODIV = 1), it is recommended to program the frame length to an value ranging from 8 to 256. These bits are meaningless and are not used in AC97 or SPDIF audio block configuration.' + bit_offset: 0 + bit_size: 8 + - name: FSALL + description: Frame synchronization active level length. These bits are set and cleared by software. They specify the length in number of bit clock (SCK) + 1 (FSALL[6:0] + 1) of the active level of the FS signal in the audio frame These bits are meaningless and are not used in AC97 or SPDIF audio block configuration. They must be configured when the audio block is disabled. + bit_offset: 8 + bit_size: 7 + - name: FSDEF + description: 'Frame synchronization definition. This bit is set and cleared by software. When the bit is set, the number of slots defined in the SAI_xSLOTR register has to be even. It means that half of this number of slots will be dedicated to the left channel and the other slots for the right channel (e.g: this bit has to be set for I2S or MSB/LSB-justified protocols...). This bit is meaningless and is not used in AC97 or SPDIF audio block configuration. It must be configured when the audio block is disabled.' + bit_offset: 16 + bit_size: 1 + - name: FSPOL + description: Frame synchronization polarity. This bit is set and cleared by software. It is used to configure the level of the start of frame on the FS signal. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 17 + bit_size: 1 + enum: FSPOL + - name: FSOFF + description: Frame synchronization offset. This bit is set and cleared by software. It is meaningless and is not used in AC97 or SPDIF audio block configuration. This bit must be configured when the audio block is disabled. + bit_offset: 18 + bit_size: 1 + enum: FSOFF fieldset/GCR: description: Global configuration register fields: - - name: SYNCIN - description: Synchronization inputs - bit_offset: 0 - bit_size: 2 - - name: SYNCOUT - description: Synchronization outputs These bits are set and cleared by software. - bit_offset: 4 - bit_size: 2 + - name: SYNCIN + description: Synchronization inputs + bit_offset: 0 + bit_size: 2 + - name: SYNCOUT + description: Synchronization outputs These bits are set and cleared by software. + bit_offset: 4 + bit_size: 2 fieldset/IM: description: Interrupt mask register 2 fields: - - name: OVRUDRIE - description: "Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set." - bit_offset: 0 - bit_size: 1 - - name: MUTEDETIE - description: "Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode." - bit_offset: 1 - bit_size: 1 - - name: WCKCFGIE - description: "Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes." - bit_offset: 2 - bit_size: 1 - - name: FREQIE - description: "FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode," - bit_offset: 3 - bit_size: 1 - - name: CNRDYIE - description: "Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver." - bit_offset: 4 - bit_size: 1 - - name: AFSDETIE - description: "Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 5 - bit_size: 1 - - name: LFSDETIE - description: "Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master." - bit_offset: 6 - bit_size: 1 + - name: OVRUDRIE + description: Overrun/underrun interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the OVRUDR bit in the SAI_xSR register is set. + bit_offset: 0 + bit_size: 1 + - name: MUTEDETIE + description: Mute detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the MUTEDET bit in the SAI_xSR register is set. This bit has a meaning only if the audio block is configured in receiver mode. + bit_offset: 1 + bit_size: 1 + - name: WCKCFGIE + description: 'Wrong clock configuration interrupt enable. This bit is set and cleared by software. This bit is taken into account only if the audio block is configured as a master (MODE[1] = 0) and NODIV = 0. It generates an interrupt if the WCKCFG flag in the SAI_xSR register is set. Note: This bit is used only in TDM mode and is meaningless in other modes.' + bit_offset: 2 + bit_size: 1 + - name: FREQIE + description: FIFO request interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt is generated if the FREQ bit in the SAI_xSR register is set. Since the audio block defaults to operate as a transmitter after reset, the MODE bit must be configured before setting FREQIE to avoid a parasitic interruption in receiver mode, + bit_offset: 3 + bit_size: 1 + - name: CNRDYIE + description: Codec not ready interrupt enable (AC97). This bit is set and cleared by software. When the interrupt is enabled, the audio block detects in the slot 0 (tag0) of the AC97 frame if the Codec connected to this line is ready or not. If it is not ready, the CNRDY flag in the SAI_xSR register is set and an interruption i generated. This bit has a meaning only if the AC97 mode is selected through PRTCFG[1:0] bits and the audio block is operates as a receiver. + bit_offset: 4 + bit_size: 1 + - name: AFSDETIE + description: Anticipated frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the AFSDET bit in the SAI_xSR register is set. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 5 + bit_size: 1 + - name: LFSDETIE + description: Late frame synchronization detection interrupt enable. This bit is set and cleared by software. When this bit is set, an interrupt will be generated if the LFSDET bit is set in the SAI_xSR register. This bit is meaningless in AC97, SPDIF mode or when the audio block operates as a master. + bit_offset: 6 + bit_size: 1 fieldset/PDMCR: description: PDM control register fields: - - name: PDMEN - description: PDM enable - bit_offset: 0 - bit_size: 1 - - name: MICNBR - description: Number of microphones - bit_offset: 4 - bit_size: 2 - - name: CKEN1 - description: Clock enable of bitstream clock number 1 - bit_offset: 8 - bit_size: 1 - - name: CKEN2 - description: Clock enable of bitstream clock number 2 - bit_offset: 9 - bit_size: 1 - - name: CKEN3 - description: Clock enable of bitstream clock number 3 - bit_offset: 10 - bit_size: 1 - - name: CKEN4 - description: Clock enable of bitstream clock number 4 - bit_offset: 11 - bit_size: 1 + - name: PDMEN + description: PDM enable + bit_offset: 0 + bit_size: 1 + - name: MICNBR + description: Number of microphones + bit_offset: 4 + bit_size: 2 + - name: CKEN1 + description: Clock enable of bitstream clock number 1 + bit_offset: 8 + bit_size: 1 + - name: CKEN2 + description: Clock enable of bitstream clock number 2 + bit_offset: 9 + bit_size: 1 + - name: CKEN3 + description: Clock enable of bitstream clock number 3 + bit_offset: 10 + bit_size: 1 + - name: CKEN4 + description: Clock enable of bitstream clock number 4 + bit_offset: 11 + bit_size: 1 fieldset/PDMDLY: description: PDM delay register fields: - - name: DLYM1L - description: Delay line adjust for first microphone of pair 1 - bit_offset: 0 - bit_size: 3 - - name: DLYM1R - description: Delay line adjust for second microphone of pair 1 - bit_offset: 4 - bit_size: 3 - - name: DLYM2L - description: Delay line for first microphone of pair 2 - bit_offset: 8 - bit_size: 3 - - name: DLYM2R - description: Delay line for second microphone of pair 2 - bit_offset: 12 - bit_size: 3 - - name: DLYM3L - description: Delay line for first microphone of pair 3 - bit_offset: 16 - bit_size: 3 - - name: DLYM3R - description: Delay line for second microphone of pair 3 - bit_offset: 20 - bit_size: 3 - - name: DLYM4L - description: Delay line for first microphone of pair 4 - bit_offset: 24 - bit_size: 3 - - name: DLYM4R - description: Delay line for second microphone of pair 4 - bit_offset: 28 - bit_size: 3 + - name: DLYM1L + description: Delay line adjust for first microphone of pair 1 + bit_offset: 0 + bit_size: 3 + - name: DLYM1R + description: Delay line adjust for second microphone of pair 1 + bit_offset: 4 + bit_size: 3 + - name: DLYM2L + description: Delay line for first microphone of pair 2 + bit_offset: 8 + bit_size: 3 + - name: DLYM2R + description: Delay line for second microphone of pair 2 + bit_offset: 12 + bit_size: 3 + - name: DLYM3L + description: Delay line for first microphone of pair 3 + bit_offset: 16 + bit_size: 3 + - name: DLYM3R + description: Delay line for second microphone of pair 3 + bit_offset: 20 + bit_size: 3 + - name: DLYM4L + description: Delay line for first microphone of pair 4 + bit_offset: 24 + bit_size: 3 + - name: DLYM4R + description: Delay line for second microphone of pair 4 + bit_offset: 28 + bit_size: 3 fieldset/SLOTR: description: This register has no meaning in AC97 and SPDIF audio protocol fields: - - name: FBOFF - description: "First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 0 - bit_size: 5 - - name: SLOTSZ - description: "Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode." - bit_offset: 6 - bit_size: 2 - enum: SLOTSZ - - name: NBSLOT - description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 8 - bit_size: 4 - - name: SLOTEN - description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. - bit_offset: 16 - bit_size: 16 - enum: SLOTEN + - name: FBOFF + description: First bit offset These bits are set and cleared by software. The value set in this bitfield defines the position of the first data transfer bit in the slot. It represents an offset value. In transmission mode, the bits outside the data field are forced to 0. In reception mode, the extra received bits are discarded. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 0 + bit_size: 5 + - name: SLOTSZ + description: 'Slot size This bits is set and cleared by software. The slot size must be higher or equal to the data size. If this condition is not respected, the behavior of the SAI will be undetermined. Refer to Section: Output data line management on an inactive slot for information on how to drive SD line. These bits must be set when the audio block is disabled. They are ignored in AC97 or SPDIF mode.' + bit_offset: 6 + bit_size: 2 + enum: SLOTSZ + - name: NBSLOT + description: Number of slots in an audio frame. These bits are set and cleared by software. The value set in this bitfield represents the number of slots + 1 in the audio frame (including the number of inactive slots). The maximum number of slots is 16. The number of slots should be even if FSDEF bit in the SAI_xFRCR register is set. The number of slots must be configured when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 8 + bit_size: 4 + - name: SLOTEN + description: Slot enable. These bits are set and cleared by software. Each SLOTEN bit corresponds to a slot position from 0 to 15 (maximum 16 slots). The slot must be enabled when the audio block is disabled. They are ignored in AC97 or SPDIF mode. + bit_offset: 16 + bit_size: 16 + enum: SLOTEN fieldset/SR: description: Status register fields: - - name: OVRUDR - description: "Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register." - bit_offset: 0 - bit_size: 1 - enum: OVRUDR - - name: MUTEDET - description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. - bit_offset: 1 - bit_size: 1 - enum: MUTEDET - - name: WCKCFG - description: "Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register." - bit_offset: 2 - bit_size: 1 - enum: WCKCFG - - name: FREQ - description: "FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register." - bit_offset: 3 - bit_size: 1 - enum: FREQ - - name: CNRDY - description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. - bit_offset: 4 - bit_size: 1 - enum: CNRDY - - name: AFSDET - description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. - bit_offset: 5 - bit_size: 1 - enum: AFSDET - - name: LFSDET - description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register - bit_offset: 6 - bit_size: 1 - enum: LFSDET - - name: FLVL - description: "FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:" - bit_offset: 16 - bit_size: 3 - enum: FLVL + - name: OVRUDR + description: Overrun / underrun. This bit is read only. The overrun and underrun conditions can occur only when the audio block is configured as a receiver and a transmitter, respectively. It can generate an interrupt if OVRUDRIE bit is set in SAI_xIM register. This flag is cleared when the software sets COVRUDR bit in SAI_xCLRFR register. + bit_offset: 0 + bit_size: 1 + enum: OVRUDR + - name: MUTEDET + description: Mute detection. This bit is read only. This flag is set if consecutive 0 values are received in each slot of a given audio frame and for a consecutive number of audio frames (set in the MUTECNT bit in the SAI_xCR2 register). It can generate an interrupt if MUTEDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets bit CMUTEDET in the SAI_xCLRFR register. + bit_offset: 1 + bit_size: 1 + enum: MUTEDET + - name: WCKCFG + description: Wrong clock configuration flag. This bit is read only. This bit is used only when the audio block operates in master mode (MODE[1] = 0) and NODIV = 0. It can generate an interrupt if WCKCFGIE bit is set in SAI_xIM register. This flag is cleared when the software sets CWCKCFG bit in SAI_xCLRFR register. + bit_offset: 2 + bit_size: 1 + enum: WCKCFG + - name: FREQ + description: 'FIFO request. This bit is read only. The request depends on the audio block configuration: If the block is configured in transmission mode, the FIFO request is related to a write request operation in the SAI_xDR. If the block configured in reception, the FIFO request related to a read request operation from the SAI_xDR. This flag can generate an interrupt if FREQIE bit is set in SAI_xIM register.' + bit_offset: 3 + bit_size: 1 + enum: FREQ + - name: CNRDY + description: Codec not ready. This bit is read only. This bit is used only when the AC97 audio protocol is selected in the SAI_xCR1 register and configured in receiver mode. It can generate an interrupt if CNRDYIE bit is set in SAI_xIM register. This flag is cleared when the software sets CCNRDY bit in SAI_xCLRFR register. + bit_offset: 4 + bit_size: 1 + enum: CNRDY + - name: AFSDET + description: Anticipated frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97or SPDIF mode. It can generate an interrupt if AFSDETIE bit is set in SAI_xIM register. This flag is cleared when the software sets CAFSDET bit in SAI_xCLRFR register. + bit_offset: 5 + bit_size: 1 + enum: AFSDET + - name: LFSDET + description: Late frame synchronization detection. This bit is read only. This flag can be set only if the audio block is configured in slave mode. It is not used in AC97 or SPDIF mode. It can generate an interrupt if LFSDETIE bit is set in the SAI_xIM register. This flag is cleared when the software sets bit CLFSDET in SAI_xCLRFR register + bit_offset: 6 + bit_size: 1 + enum: LFSDET + - name: FLVL + description: 'FIFO level threshold. This bit is read only. The FIFO level threshold flag is managed only by hardware and its setting depends on SAI block configuration (transmitter or receiver mode). If the SAI block is configured as transmitter: If SAI block is configured as receiver:' + bit_offset: 16 + bit_size: 3 + enum: FLVL enum/AFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: EarlySync - description: Frame synchronization signal is detected earlier than expected - value: 1 + - name: NoError + description: No error + value: 0 + - name: EarlySync + description: Frame synchronization signal is detected earlier than expected + value: 1 enum/CKSTR: bit_size: 1 variants: - - name: FallingEdge - description: Data strobing edge is falling edge of SCK - value: 0 - - name: RisingEdge - description: Data strobing edge is rising edge of SCK - value: 1 + - name: FallingEdge + description: Data strobing edge is falling edge of SCK + value: 0 + - name: RisingEdge + description: Data strobing edge is rising edge of SCK + value: 1 enum/CNRDY: bit_size: 1 variants: - - name: Ready - description: External AC’97 Codec is ready - value: 0 - - name: NotReady - description: External AC’97 Codec is not ready - value: 1 + - name: Ready + description: External AC’97 Codec is ready + value: 0 + - name: NotReady + description: External AC’97 Codec is not ready + value: 1 enum/COMP: bit_size: 2 variants: - - name: NoCompanding - description: No companding algorithm - value: 0 - - name: MuLaw - description: μ-Law algorithm - value: 2 - - name: ALaw - description: A-Law algorithm - value: 3 + - name: NoCompanding + description: No companding algorithm + value: 0 + - name: MuLaw + description: μ-Law algorithm + value: 2 + - name: ALaw + description: A-Law algorithm + value: 3 enum/CPL: bit_size: 1 variants: - - name: OnesComplement - description: 1’s complement representation - value: 0 - - name: TwosComplement - description: 2’s complement representation - value: 1 + - name: OnesComplement + description: 1’s complement representation + value: 0 + - name: TwosComplement + description: 2’s complement representation + value: 1 enum/DS: bit_size: 3 variants: - - name: Bit8 - description: 8 bits - value: 2 - - name: Bit10 - description: 10 bits - value: 3 - - name: Bit16 - description: 16 bits - value: 4 - - name: Bit20 - description: 20 bits - value: 5 - - name: Bit24 - description: 24 bits - value: 6 - - name: Bit32 - description: 32 bits - value: 7 + - name: Bit8 + description: 8 bits + value: 2 + - name: Bit10 + description: 10 bits + value: 3 + - name: Bit16 + description: 16 bits + value: 4 + - name: Bit20 + description: 20 bits + value: 5 + - name: Bit24 + description: 24 bits + value: 6 + - name: Bit32 + description: 32 bits + value: 7 enum/FLVL: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: FIFO <= 1⁄4 but not empty - value: 1 - - name: Quarter2 - description: 1⁄4 < FIFO <= 1⁄2 - value: 2 - - name: Quarter3 - description: 1⁄2 < FIFO <= 3⁄4 - value: 3 - - name: Quarter4 - description: 3⁄4 < FIFO but not full - value: 4 - - name: Full - description: FIFO full - value: 5 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: FIFO <= 1⁄4 but not empty + value: 1 + - name: Quarter2 + description: 1⁄4 < FIFO <= 1⁄2 + value: 2 + - name: Quarter3 + description: 1⁄2 < FIFO <= 3⁄4 + value: 3 + - name: Quarter4 + description: 3⁄4 < FIFO but not full + value: 4 + - name: Full + description: FIFO full + value: 5 enum/FREQ: bit_size: 1 variants: - - name: NoRequest - description: No FIFO request - value: 0 - - name: Request - description: FIFO request to read or to write the SAI_xDR - value: 1 + - name: NoRequest + description: No FIFO request + value: 0 + - name: Request + description: FIFO request to read or to write the SAI_xDR + value: 1 enum/FSOFF: bit_size: 1 variants: - - name: OnFirst - description: FS is asserted on the first bit of the slot 0 - value: 0 - - name: BeforeFirst - description: FS is asserted one bit before the first bit of the slot 0 - value: 1 + - name: OnFirst + description: FS is asserted on the first bit of the slot 0 + value: 0 + - name: BeforeFirst + description: FS is asserted one bit before the first bit of the slot 0 + value: 1 enum/FSPOL: bit_size: 1 variants: - - name: FallingEdge - description: FS is active low (falling edge) - value: 0 - - name: RisingEdge - description: FS is active high (rising edge) - value: 1 + - name: FallingEdge + description: FS is active low (falling edge) + value: 0 + - name: RisingEdge + description: FS is active high (rising edge) + value: 1 enum/FTH: bit_size: 3 variants: - - name: Empty - description: FIFO empty - value: 0 - - name: Quarter1 - description: 1⁄4 FIFO - value: 1 - - name: Quarter2 - description: 1⁄2 FIFO - value: 2 - - name: Quarter3 - description: 3⁄4 FIFO - value: 3 - - name: Full - description: FIFO full - value: 4 + - name: Empty + description: FIFO empty + value: 0 + - name: Quarter1 + description: 1⁄4 FIFO + value: 1 + - name: Quarter2 + description: 1⁄2 FIFO + value: 2 + - name: Quarter3 + description: 3⁄4 FIFO + value: 3 + - name: Full + description: FIFO full + value: 4 enum/LFSDET: bit_size: 1 variants: - - name: NoError - description: No error - value: 0 - - name: NoSync - description: Frame synchronization signal is not present at the right time - value: 1 + - name: NoError + description: No error + value: 0 + - name: NoSync + description: Frame synchronization signal is not present at the right time + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MsbFirst - description: Data are transferred with MSB first - value: 0 - - name: LsbFirst - description: Data are transferred with LSB first - value: 1 + - name: MsbFirst + description: Data are transferred with MSB first + value: 0 + - name: LsbFirst + description: Data are transferred with LSB first + value: 1 enum/MODE: bit_size: 2 variants: - - name: MasterTx - description: Master transmitter - value: 0 - - name: MasterRx - description: Master receiver - value: 1 - - name: SlaveTx - description: Slave transmitter - value: 2 - - name: SlaveRx - description: Slave receiver - value: 3 + - name: MasterTx + description: Master transmitter + value: 0 + - name: MasterRx + description: Master receiver + value: 1 + - name: SlaveTx + description: Slave transmitter + value: 2 + - name: SlaveRx + description: Slave receiver + value: 3 enum/MONO: bit_size: 1 variants: - - name: Stereo - description: Stereo mode - value: 0 - - name: Mono - description: Mono mode - value: 1 + - name: Stereo + description: Stereo mode + value: 0 + - name: Mono + description: Mono mode + value: 1 enum/MUTEDET: bit_size: 1 variants: - - name: NoMute - description: No MUTE detection on the SD input line - value: 0 - - name: Mute - description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame - value: 1 + - name: NoMute + description: No MUTE detection on the SD input line + value: 0 + - name: Mute + description: MUTE value detected on the SD input line (0 value) for a specified number of consecutive audio frame + value: 1 enum/MUTEVAL: bit_size: 1 variants: - - name: SendZero - description: Bit value 0 is sent during the mute mode - value: 0 - - name: SendLast - description: Last values are sent during the mute mode - value: 1 + - name: SendZero + description: Bit value 0 is sent during the mute mode + value: 0 + - name: SendLast + description: Last values are sent during the mute mode + value: 1 enum/NODIV: bit_size: 1 variants: - - name: MasterClock - description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value - value: 0 - - name: NoDiv - description: "MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL." - value: 1 + - name: MasterClock + description: MCLK output is enabled. Forces the ratio between FS and MCLK to 256 or 512 according to the OSR value + value: 0 + - name: NoDiv + description: MCLK output enable set by the MCKEN bit (where present, else 0). Ratio between FS and MCLK depends on FRL. + value: 1 enum/OUTDRIV: bit_size: 1 variants: - - name: OnStart - description: Audio block output driven when SAIEN is set - value: 0 - - name: Immediately - description: Audio block output driven immediately after the setting of this bit - value: 1 + - name: OnStart + description: Audio block output driven when SAIEN is set + value: 0 + - name: Immediately + description: Audio block output driven immediately after the setting of this bit + value: 1 enum/OVRUDR: bit_size: 1 variants: - - name: NoError - description: No overrun/underrun error - value: 0 - - name: Overrun - description: Overrun/underrun error detection - value: 1 + - name: NoError + description: No overrun/underrun error + value: 0 + - name: Overrun + description: Overrun/underrun error detection + value: 1 enum/PRTCFG: bit_size: 2 variants: - - name: Free - description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol - value: 0 - - name: Spdif - description: SPDIF protocol - value: 1 - - name: Ac97 - description: AC’97 protocol - value: 2 + - name: Free + description: Free protocol. Free protocol allows to use the powerful configuration of the audio block to address a specific audio protocol + value: 0 + - name: Spdif + description: SPDIF protocol + value: 1 + - name: Ac97 + description: AC’97 protocol + value: 2 enum/SLOTEN: bit_size: 16 variants: - - name: Inactive - description: Inactive slot - value: 0 - - name: Active - description: Active slot - value: 1 + - name: Inactive + description: Inactive slot + value: 0 + - name: Active + description: Active slot + value: 1 enum/SLOTSZ: bit_size: 2 variants: - - name: DataSize - description: "The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register)" - value: 0 - - name: Bit16 - description: 16-bit - value: 1 - - name: Bit32 - description: 32-bit - value: 2 + - name: DataSize + description: The slot size is equivalent to the data size (specified in DS[3:0] in the SAI_xCR1 register) + value: 0 + - name: Bit16 + description: 16-bit + value: 1 + - name: Bit32 + description: 32-bit + value: 2 enum/SYNCEN: bit_size: 2 variants: - - name: Asynchronous - description: audio sub-block in asynchronous mode - value: 0 - - name: Internal - description: "audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode" - value: 1 - - name: External - description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode - value: 2 + - name: Asynchronous + description: audio sub-block in asynchronous mode + value: 0 + - name: Internal + description: audio sub-block is synchronous with the other internal audio sub-block. In this case, the audio sub-block must be configured in slave mode + value: 1 + - name: External + description: audio sub-block is synchronous with an external SAI embedded peripheral. In this case the audio sub-block should be configured in Slave mode + value: 2 enum/WCKCFG: bit_size: 1 variants: - - name: Correct - description: Clock configuration is correct - value: 0 - - name: Wrong - description: Clock configuration does not respect the rule concerning the frame length specification - value: 1 + - name: Correct + description: Clock configuration is correct + value: 0 + - name: Wrong + description: Clock configuration does not respect the rule concerning the frame length specification + value: 1 diff --git a/data/registers/sbs_h5.yaml b/data/registers/sbs_h5.yaml index 6299993..2b9d3f5 100644 --- a/data/registers/sbs_h5.yaml +++ b/data/registers/sbs_h5.yaml @@ -1,410 +1,409 @@ ---- block/SBS: description: SBS register block items: - - name: HDPLCR - description: SBS temporal isolation control register - byte_offset: 16 - fieldset: HDPLCR - - name: HDPLSR - description: SBS temporal isolation status register - byte_offset: 20 - fieldset: HDPLSR - - name: NEXTHDPLCR - description: SBS next HDPL control register - byte_offset: 24 - fieldset: NEXTHDPLCR - - name: DBGCR - description: SBS debug control register - byte_offset: 32 - fieldset: DBGCR - - name: DBGLOCKR - description: SBS debug lock register - byte_offset: 36 - fieldset: DBGLOCKR - - name: RSSCMDR - description: SBS RSS command register - byte_offset: 52 - fieldset: RSSCMDR - - name: EPOCHSELCR - description: SBS EPOCH selection control register - byte_offset: 160 - fieldset: EPOCHSELCR - - name: SECCFGR - description: SBS security mode configuration control register - byte_offset: 192 - fieldset: SECCFGR - - name: PMCR - description: SBS product mode and configuration register - byte_offset: 256 - fieldset: PMCR - - name: FPUIMR - description: SBS FPU interrupt mask register - byte_offset: 260 - fieldset: FPUIMR - - name: MESR - description: SBS memory erase status register - byte_offset: 264 - fieldset: MESR - - name: CCCSR - description: SBS compensation cell for I/Os control and status register - byte_offset: 272 - fieldset: CCCSR - - name: CCVALR - description: SBS compensation cell for I/Os value register - byte_offset: 276 - fieldset: CCVALR - - name: CCSWCR - description: SBS compensation cell for I/Os software code register - byte_offset: 280 - fieldset: CCSWCR - - name: CFGR2 - description: SBS Class B register - byte_offset: 288 - fieldset: CFGR2 - - name: CNSLCKR - description: SBS CPU non-secure lock register - byte_offset: 324 - fieldset: CNSLCKR - - name: CSLCKR - description: SBS CPU secure lock register - byte_offset: 328 - fieldset: CSLCKR - - name: ECCNMIR - description: SBS flift ECC NMI mask register - byte_offset: 332 - fieldset: ECCNMIR + - name: HDPLCR + description: SBS temporal isolation control register + byte_offset: 16 + fieldset: HDPLCR + - name: HDPLSR + description: SBS temporal isolation status register + byte_offset: 20 + fieldset: HDPLSR + - name: NEXTHDPLCR + description: SBS next HDPL control register + byte_offset: 24 + fieldset: NEXTHDPLCR + - name: DBGCR + description: SBS debug control register + byte_offset: 32 + fieldset: DBGCR + - name: DBGLOCKR + description: SBS debug lock register + byte_offset: 36 + fieldset: DBGLOCKR + - name: RSSCMDR + description: SBS RSS command register + byte_offset: 52 + fieldset: RSSCMDR + - name: EPOCHSELCR + description: SBS EPOCH selection control register + byte_offset: 160 + fieldset: EPOCHSELCR + - name: SECCFGR + description: SBS security mode configuration control register + byte_offset: 192 + fieldset: SECCFGR + - name: PMCR + description: SBS product mode and configuration register + byte_offset: 256 + fieldset: PMCR + - name: FPUIMR + description: SBS FPU interrupt mask register + byte_offset: 260 + fieldset: FPUIMR + - name: MESR + description: SBS memory erase status register + byte_offset: 264 + fieldset: MESR + - name: CCCSR + description: SBS compensation cell for I/Os control and status register + byte_offset: 272 + fieldset: CCCSR + - name: CCVALR + description: SBS compensation cell for I/Os value register + byte_offset: 276 + fieldset: CCVALR + - name: CCSWCR + description: SBS compensation cell for I/Os software code register + byte_offset: 280 + fieldset: CCSWCR + - name: CFGR2 + description: SBS Class B register + byte_offset: 288 + fieldset: CFGR2 + - name: CNSLCKR + description: SBS CPU non-secure lock register + byte_offset: 324 + fieldset: CNSLCKR + - name: CSLCKR + description: SBS CPU secure lock register + byte_offset: 328 + fieldset: CSLCKR + - name: ECCNMIR + description: SBS flift ECC NMI mask register + byte_offset: 332 + fieldset: ECCNMIR fieldset/CCCSR: description: SBS compensation cell for I/Os control and status register fields: - - name: EN - description: "enable compensation cell for VDDIO power rail\r This bit enables the I/O compensation cell." - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 2 - - name: CS - description: "code selection for VDDIO power rail (reset value set to 1)\r This bit selects the code to be applied for the I/O compensation cell." - bit_offset: 1 - bit_size: 1 - array: - len: 2 - stride: 2 - enum: CS - - name: RDY - description: "VDDIO compensation cell ready flag\r This bit provides the status of the compensation cell." - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: EN + description: "enable compensation cell for VDDIO power rail\r This bit enables the I/O compensation cell." + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 2 + - name: CS + description: "code selection for VDDIO power rail (reset value set to 1)\r This bit selects the code to be applied for the I/O compensation cell." + bit_offset: 1 + bit_size: 1 + array: + len: 2 + stride: 2 + enum: CS + - name: RDY + description: "VDDIO compensation cell ready flag\r This bit provides the status of the compensation cell." + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 fieldset/CCSWCR: description: SBS compensation cell for I/Os software code register fields: - - name: SW_ANSRC1 - description: "NMOS compensation code for VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." - bit_offset: 0 - bit_size: 4 - - name: SW_APSRC1 - description: "PMOS compensation code for the VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." - bit_offset: 4 - bit_size: 4 - - name: SW_ANSRC2 - description: "NMOS compensation code for VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." - bit_offset: 8 - bit_size: 4 - - name: SW_APSRC2 - description: "PMOS compensation code for the VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." - bit_offset: 12 - bit_size: 4 + - name: SW_ANSRC1 + description: "NMOS compensation code for VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." + bit_offset: 0 + bit_size: 4 + - name: SW_APSRC1 + description: "PMOS compensation code for the VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." + bit_offset: 4 + bit_size: 4 + - name: SW_ANSRC2 + description: "NMOS compensation code for VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." + bit_offset: 8 + bit_size: 4 + - name: SW_APSRC2 + description: "PMOS compensation code for the VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." + bit_offset: 12 + bit_size: 4 fieldset/CCVALR: description: SBS compensation cell for I/Os value register fields: - - name: ANSRC1 - description: "compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 0 - bit_size: 4 - - name: APSRC1 - description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 4 - bit_size: 4 - - name: ANSRC2 - description: "Compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 8 - bit_size: 4 - - name: APSRC2 - description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 12 - bit_size: 4 + - name: ANSRC1 + description: "compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 0 + bit_size: 4 + - name: APSRC1 + description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 4 + bit_size: 4 + - name: ANSRC2 + description: "Compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 8 + bit_size: 4 + - name: APSRC2 + description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 12 + bit_size: 4 fieldset/CFGR2: description: SBS Class B register fields: - - name: CLL - description: "core lockup lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the lockup (HardFault) output of Cortex-M33 with TIM1/8/15/16/17 break inputs." - bit_offset: 0 - bit_size: 1 - - name: SEL - description: "SRAM ECC error lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM double ECC error signal with break input of TIM1/8/15/16/17." - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: "PVD lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection with TIM1/8/15/16/17 break inputs." - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: "ECC lock\r This bit is set and cleared by software. It can be used to enable and lock the Flash memory double ECC error with break input of TIM1/8/15/6/17." - bit_offset: 3 - bit_size: 1 + - name: CLL + description: "core lockup lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the lockup (HardFault) output of Cortex-M33 with TIM1/8/15/16/17 break inputs." + bit_offset: 0 + bit_size: 1 + - name: SEL + description: "SRAM ECC error lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM double ECC error signal with break input of TIM1/8/15/16/17." + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: "PVD lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection with TIM1/8/15/16/17 break inputs." + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: "ECC lock\r This bit is set and cleared by software. It can be used to enable and lock the Flash memory double ECC error with break input of TIM1/8/15/6/17." + bit_offset: 3 + bit_size: 1 fieldset/CNSLCKR: description: SBS CPU non-secure lock register fields: - - name: LOCKNSVTOR - description: "VTOR_NS register lock\r This bit is set by software and cleared only by a system reset." - bit_offset: 0 - bit_size: 1 - - name: LOCKNSMPU - description: "non-secure MPU register lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to non-secure MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers." - bit_offset: 1 - bit_size: 1 + - name: LOCKNSVTOR + description: "VTOR_NS register lock\r This bit is set by software and cleared only by a system reset." + bit_offset: 0 + bit_size: 1 + - name: LOCKNSMPU + description: "non-secure MPU register lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to non-secure MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers." + bit_offset: 1 + bit_size: 1 fieldset/CSLCKR: description: SBS CPU secure lock register fields: - - name: LOCKSVTAIRCR - description: "VTOR_S and AIRCR register lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to VTOR_S register, PRIS and BFHFNMINS bits in the AIRCR register." - bit_offset: 0 - bit_size: 1 - - name: LOCKSMPU - description: "secure MPU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to secure MPU_CTRL, MPU_RNR and MPU_RBAR registers." - bit_offset: 1 - bit_size: 1 - - name: LOCKSAU - description: "SAU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to SAU_CTRL, SAU_RNR, SAU_RBAR and SAU_RLAR registers." - bit_offset: 2 - bit_size: 1 + - name: LOCKSVTAIRCR + description: "VTOR_S and AIRCR register lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to VTOR_S register, PRIS and BFHFNMINS bits in the AIRCR register." + bit_offset: 0 + bit_size: 1 + - name: LOCKSMPU + description: "secure MPU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to secure MPU_CTRL, MPU_RNR and MPU_RBAR registers." + bit_offset: 1 + bit_size: 1 + - name: LOCKSAU + description: "SAU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to SAU_CTRL, SAU_RNR, SAU_RBAR and SAU_RLAR registers." + bit_offset: 2 + bit_size: 1 fieldset/DBGCR: description: SBS debug control register fields: - - name: AP_UNLOCK - description: "access port unlock\r Write 0xB4 to this bitfield to open the device access port." - bit_offset: 0 - bit_size: 8 - - name: DBG_UNLOCK - description: "debug unlock when DBG_AUTH_HDPL is reached\r Write 0xB4 to this bitfield to open the debug when HDPL in SBS_HDPLSR equals to DBG_AUTH_HDPL in this register." - bit_offset: 8 - bit_size: 8 - - name: DBG_AUTH_HDPL - description: "authenticated debug temporal isolation level\r Writing to this bitfield defines at which HDPL the authenticated debug opens.\r Note: Writing any other values is ignored. Reading any other value means the debug never opens." - bit_offset: 16 - bit_size: 8 - enum: DBG_AUTH_HDPL - - name: DBG_AUTH_SEC - description: "control debug opening secure/non-secure\r Write 0xB4 to this bitfield to open debug for secure and non-secure.\r Writing any other values only open non-secure." - bit_offset: 24 - bit_size: 8 + - name: AP_UNLOCK + description: "access port unlock\r Write 0xB4 to this bitfield to open the device access port." + bit_offset: 0 + bit_size: 8 + - name: DBG_UNLOCK + description: "debug unlock when DBG_AUTH_HDPL is reached\r Write 0xB4 to this bitfield to open the debug when HDPL in SBS_HDPLSR equals to DBG_AUTH_HDPL in this register." + bit_offset: 8 + bit_size: 8 + - name: DBG_AUTH_HDPL + description: "authenticated debug temporal isolation level\r Writing to this bitfield defines at which HDPL the authenticated debug opens.\r Note: Writing any other values is ignored. Reading any other value means the debug never opens." + bit_offset: 16 + bit_size: 8 + enum: DBG_AUTH_HDPL + - name: DBG_AUTH_SEC + description: "control debug opening secure/non-secure\r Write 0xB4 to this bitfield to open debug for secure and non-secure.\r Writing any other values only open non-secure." + bit_offset: 24 + bit_size: 8 fieldset/DBGLOCKR: description: SBS debug lock register fields: - - name: DBGCFG_LOCK - description: "debug configuration lock\r Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4.\r 0xC3 is the recommended value to lock the debug configuration using this bitfield.\r Other: Writes to SBS_DBGCR ignored" - bit_offset: 0 - bit_size: 8 - enum: DBGCFG_LOCK + - name: DBGCFG_LOCK + description: "debug configuration lock\r Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4.\r 0xC3 is the recommended value to lock the debug configuration using this bitfield.\r Other: Writes to SBS_DBGCR ignored" + bit_offset: 0 + bit_size: 8 + enum: DBGCFG_LOCK fieldset/ECCNMIR: description: SBS flift ECC NMI mask register fields: - - name: ECCNMI_MASK_EN - description: NMI behavior setup when a double ECC error occurs on flitf data part - bit_offset: 0 - bit_size: 1 + - name: ECCNMI_MASK_EN + description: NMI behavior setup when a double ECC error occurs on flitf data part + bit_offset: 0 + bit_size: 1 fieldset/EPOCHSELCR: description: SBS EPOCH selection control register fields: - - name: EPOCH_SEL - description: "select EPOCH value to be sent to the SAES\r 1x: EPOCH forced to zero (value used to retrieve PUF reference value at boot time)" - bit_offset: 0 - bit_size: 2 - enum: EPOCH_SEL + - name: EPOCH_SEL + description: "select EPOCH value to be sent to the SAES\r 1x: EPOCH forced to zero (value used to retrieve PUF reference value at boot time)" + bit_offset: 0 + bit_size: 2 + enum: EPOCH_SEL fieldset/FPUIMR: description: SBS FPU interrupt mask register fields: - - name: FPU_IE - description: "FPU interrupt enable\r Set and cleared by software to enable the Cortex-M33 FPU interrupts\r FPU_IE[5]: inexact interrupt enable (interrupt disabled at reset)\r FPU_IE[4]: input abnormal interrupt enable\r FPU_IE[3]: overflow interrupt enable\r FPU_IE[2]: underflow interrupt enable\r FPU_IE[1]: divide-by-zero interrupt enable\r FPU_IE[0]: invalid operation interrupt enable" - bit_offset: 0 - bit_size: 6 + - name: FPU_IE + description: "FPU interrupt enable\r Set and cleared by software to enable the Cortex-M33 FPU interrupts\r FPU_IE[5]: inexact interrupt enable (interrupt disabled at reset)\r FPU_IE[4]: input abnormal interrupt enable\r FPU_IE[3]: overflow interrupt enable\r FPU_IE[2]: underflow interrupt enable\r FPU_IE[1]: divide-by-zero interrupt enable\r FPU_IE[0]: invalid operation interrupt enable" + bit_offset: 0 + bit_size: 6 fieldset/HDPLCR: description: SBS temporal isolation control register fields: - - name: INCR_HDPL - description: "increment HDPL value\r Other: all other values allow a HDPL level increment." - bit_offset: 0 - bit_size: 8 - enum: INCR_HDPL + - name: INCR_HDPL + description: "increment HDPL value\r Other: all other values allow a HDPL level increment." + bit_offset: 0 + bit_size: 8 + enum: INCR_HDPL fieldset/HDPLSR: description: SBS temporal isolation status register fields: - - name: HDPL - description: "temporal isolation level\r This bitfield returns the current temporal isolation level." - bit_offset: 0 - bit_size: 8 - enum: HDPL + - name: HDPL + description: "temporal isolation level\r This bitfield returns the current temporal isolation level." + bit_offset: 0 + bit_size: 8 + enum: HDPL fieldset/MESR: description: SBS memory erase status register fields: - - name: MCLR - description: "erase after reset status\r This bit shows the status of the protection for SRAM2, BKPRAM, ICACHE, DCACHE, ICACHE and PKA. It is set by hardware and reset by software" - bit_offset: 0 - bit_size: 1 - - name: IPMEE - description: "end-of-erase status for ICACHE and PKA RAM\r This bit shows the status of the protection for ICACHE and PKA. It is set by hardware and reset by software." - bit_offset: 16 - bit_size: 1 + - name: MCLR + description: "erase after reset status\r This bit shows the status of the protection for SRAM2, BKPRAM, ICACHE, DCACHE, ICACHE and PKA. It is set by hardware and reset by software" + bit_offset: 0 + bit_size: 1 + - name: IPMEE + description: "end-of-erase status for ICACHE and PKA RAM\r This bit shows the status of the protection for ICACHE and PKA. It is set by hardware and reset by software." + bit_offset: 16 + bit_size: 1 fieldset/NEXTHDPLCR: description: SBS next HDPL control register fields: - - name: NEXTHDPL - description: "index to point to a higher HDPL than the current one\r Index to add to the current HDPL to point (through OBK-HDPL) to the next secure storage areas (OBK-HDPL = HDPL + NEXTHDPL). See for more details." - bit_offset: 0 - bit_size: 2 + - name: NEXTHDPL + description: "index to point to a higher HDPL than the current one\r Index to add to the current HDPL to point (through OBK-HDPL) to the next secure storage areas (OBK-HDPL = HDPL + NEXTHDPL). See for more details." + bit_offset: 0 + bit_size: 2 fieldset/PMCR: description: SBS product mode and configuration register fields: - - name: BOOSTEN - description: "booster enable\r Set this bit to reduce the total harmonic distortion of the analog switch when the processor supply is below 2.7 V. The booster can be activated to guaranty AC performance on analog switch when the supply is below 2.7 V. When the booster is activated, the analog switch performances are the same as with the full voltage range." - bit_offset: 8 - bit_size: 1 - - name: BOOSTVDDSEL - description: "booster VDD selection\r Note: Booster must not be used when VDDA < 2.7 V, but VDD > 2.7 V (add current consumption).\r When both VDD < 2.7 V and VDDA < 2.7 V, booster is needed to get full AC performances from I/O analog switches." - bit_offset: 9 - bit_size: 1 - - name: PB6_FMPLUS - description: Fast-mode Plus command on PB(6) - bit_offset: 16 - bit_size: 1 - - name: PB7_FMPLUS - description: Fast-mode Plus command on PB(7) - bit_offset: 17 - bit_size: 1 - - name: PB8_FMPLUS - description: Fast-mode Plus command on PB(8) - bit_offset: 18 - bit_size: 1 - - name: PB9_FMPLUS - description: Fast-mode Plus command on PB(9) - bit_offset: 19 - bit_size: 1 - - name: ETH_SEL_PHY - description: "Ethernet PHY interface selection\r Other: reserved" - bit_offset: 21 - bit_size: 3 - enum: ETH_SEL_PHY + - name: BOOSTEN + description: "booster enable\r Set this bit to reduce the total harmonic distortion of the analog switch when the processor supply is below 2.7 V. The booster can be activated to guaranty AC performance on analog switch when the supply is below 2.7 V. When the booster is activated, the analog switch performances are the same as with the full voltage range." + bit_offset: 8 + bit_size: 1 + - name: BOOSTVDDSEL + description: "booster VDD selection\r Note: Booster must not be used when VDDA < 2.7 V, but VDD > 2.7 V (add current consumption).\r When both VDD < 2.7 V and VDDA < 2.7 V, booster is needed to get full AC performances from I/O analog switches." + bit_offset: 9 + bit_size: 1 + - name: PB6_FMPLUS + description: Fast-mode Plus command on PB(6) + bit_offset: 16 + bit_size: 1 + - name: PB7_FMPLUS + description: Fast-mode Plus command on PB(7) + bit_offset: 17 + bit_size: 1 + - name: PB8_FMPLUS + description: Fast-mode Plus command on PB(8) + bit_offset: 18 + bit_size: 1 + - name: PB9_FMPLUS + description: Fast-mode Plus command on PB(9) + bit_offset: 19 + bit_size: 1 + - name: ETH_SEL_PHY + description: "Ethernet PHY interface selection\r Other: reserved" + bit_offset: 21 + bit_size: 3 + enum: ETH_SEL_PHY fieldset/RSSCMDR: description: SBS RSS command register fields: - - name: RSSCMD - description: "RSS command\r The application can use this bitfield to pass on a command to the RSS, executed at the next reset.\r When RSSCMD ≠ 0 and PRODUCT_STATE is in Open, then the system always boots on RSS whatever is the boot pin value." - bit_offset: 0 - bit_size: 16 + - name: RSSCMD + description: "RSS command\r The application can use this bitfield to pass on a command to the RSS, executed at the next reset.\r When RSSCMD ≠ 0 and PRODUCT_STATE is in Open, then the system always boots on RSS whatever is the boot pin value." + bit_offset: 0 + bit_size: 16 fieldset/SECCFGR: description: SBS security mode configuration control register fields: - - name: SBSSEC - description: "SBS clock control, memory-erase status register and compensation cell register security enable" - bit_offset: 0 - bit_size: 1 - enum: SEC - - name: CLASSBSEC - description: ClassB security enable - bit_offset: 1 - bit_size: 1 - enum: SEC - - name: FPUSEC - description: "FPU security enable\r Note: This bit can only be written through privilege transaction." - bit_offset: 3 - bit_size: 1 - enum: SEC - - name: SDCE_SEC_EN - description: control accessibility of SMPS_DIV_CLOCK _EN in SBS_PMCR - bit_offset: 31 - bit_size: 1 + - name: SBSSEC + description: SBS clock control, memory-erase status register and compensation cell register security enable + bit_offset: 0 + bit_size: 1 + enum: SEC + - name: CLASSBSEC + description: ClassB security enable + bit_offset: 1 + bit_size: 1 + enum: SEC + - name: FPUSEC + description: "FPU security enable\r Note: This bit can only be written through privilege transaction." + bit_offset: 3 + bit_size: 1 + enum: SEC + - name: SDCE_SEC_EN + description: control accessibility of SMPS_DIV_CLOCK _EN in SBS_PMCR + bit_offset: 31 + bit_size: 1 enum/CS: bit_size: 1 variants: - - name: Cell - description: Code from the cell (available in the SBS_CCVR) - value: 0 - - name: Software - description: Code from SBS_CCCR - value: 1 + - name: Cell + description: Code from the cell (available in the SBS_CCVR) + value: 0 + - name: Software + description: Code from SBS_CCCR + value: 1 enum/DBGCFG_LOCK: bit_size: 8 variants: - - name: B_0xB4 - description: Writes to SBS_DBGCR allowed (default) - value: 180 + - name: B_0xB4 + description: Writes to SBS_DBGCR allowed (default) + value: 180 enum/DBG_AUTH_HDPL: bit_size: 8 variants: - - name: B_0x51 - description: HDPL1 - value: 81 - - name: B_0x6F - description: HDPL3 - value: 111 - - name: B_0x8A - description: HDPL2 - value: 138 + - name: B_0x51 + description: HDPL1 + value: 81 + - name: B_0x6F + description: HDPL3 + value: 111 + - name: B_0x8A + description: HDPL2 + value: 138 enum/EPOCH_SEL: bit_size: 2 variants: - - name: B_0x0 - description: SEC_EPOCH counter input selected - value: 0 - - name: B_0x1 - description: NS_EPOCH (non-secure) input selected - value: 1 + - name: B_0x0 + description: SEC_EPOCH counter input selected + value: 0 + - name: B_0x1 + description: NS_EPOCH (non-secure) input selected + value: 1 enum/ETH_SEL_PHY: bit_size: 3 variants: - - name: B_0x0 - description: GMII or MII - value: 0 - - name: B_0x1 - description: reserved (RGMII) - value: 1 - - name: B_0x4 - description: RMII - value: 4 + - name: B_0x0 + description: GMII or MII + value: 0 + - name: B_0x1 + description: reserved (RGMII) + value: 1 + - name: B_0x4 + description: RMII + value: 4 enum/HDPL: bit_size: 8 variants: - - name: B_0x51 - description: "HDPL1, iRoT" - value: 81 - - name: B_0x6F - description: "HDPL3, application (secure/non-secure)" - value: 111 - - name: B_0x8A - description: "HDPL2, uRoT" - value: 138 - - name: B_0xB4 - description: "HDPL0, RSS" - value: 180 + - name: B_0x51 + description: HDPL1, iRoT + value: 81 + - name: B_0x6F + description: HDPL3, application (secure/non-secure) + value: 111 + - name: B_0x8A + description: HDPL2, uRoT + value: 138 + - name: B_0xB4 + description: HDPL0, RSS + value: 180 enum/INCR_HDPL: bit_size: 8 variants: - - name: B_0x6A - description: recommended value to increment HDPL level by one - value: 106 - - name: B_0xB4 - description: no increment - value: 180 + - name: B_0x6A + description: recommended value to increment HDPL level by one + value: 106 + - name: B_0xB4 + description: no increment + value: 180 enum/SEC: bit_size: 1 variants: - - name: B_0x0 - description: SBS_CFGR2 register accessible through secure or non-secure transaction - value: 0 - - name: B_0x1 - description: SBS_CFGR2 register only accessible through secure transaction - value: 1 + - name: B_0x0 + description: SBS_CFGR2 register accessible through secure or non-secure transaction + value: 0 + - name: B_0x1 + description: SBS_CFGR2 register only accessible through secure transaction + value: 1 diff --git a/data/registers/sbs_h50.yaml b/data/registers/sbs_h50.yaml index 777043e..8328357 100644 --- a/data/registers/sbs_h50.yaml +++ b/data/registers/sbs_h50.yaml @@ -1,288 +1,287 @@ ---- block/SBS: - description: "System configuration, boot and security" + description: System configuration, boot and security items: - - name: HDPLCR - description: SBS temporal isolation control register - byte_offset: 16 - fieldset: HDPLCR - - name: HDPLSR - description: SBS temporal isolation status register - byte_offset: 20 - fieldset: HDPLSR - - name: DBGCR - description: SBS debug control register - byte_offset: 32 - fieldset: DBGCR - - name: DBGLOCKR - description: SBS debug lock register - byte_offset: 36 - fieldset: DBGLOCKR - - name: PMCR - description: SBS product mode and configuration register - byte_offset: 256 - fieldset: PMCR - - name: FPUIMR - description: SBS FPU interrupt mask register - byte_offset: 260 - fieldset: FPUIMR - - name: MESR - description: SBS memory erase status register - byte_offset: 264 - fieldset: MESR - - name: CCCSR - description: SBS compensation cell for I/Os control and status register - byte_offset: 272 - fieldset: CCCSR - - name: CCVALR - description: SBS compensation cell for I/Os value register - byte_offset: 276 - fieldset: CCVALR - - name: CCSWCR - description: SBS compensation cell for I/Os software code register - byte_offset: 280 - fieldset: CCSWCR - - name: CFGR2 - description: SBS Class B register - byte_offset: 288 - fieldset: CFGR2 - - name: CNSLCKR - description: SBS CPU lock register - byte_offset: 324 - fieldset: CNSLCKR - - name: ECCNMIR - description: SBS flift ECC NMI mask register - byte_offset: 332 - fieldset: ECCNMIR + - name: HDPLCR + description: SBS temporal isolation control register + byte_offset: 16 + fieldset: HDPLCR + - name: HDPLSR + description: SBS temporal isolation status register + byte_offset: 20 + fieldset: HDPLSR + - name: DBGCR + description: SBS debug control register + byte_offset: 32 + fieldset: DBGCR + - name: DBGLOCKR + description: SBS debug lock register + byte_offset: 36 + fieldset: DBGLOCKR + - name: PMCR + description: SBS product mode and configuration register + byte_offset: 256 + fieldset: PMCR + - name: FPUIMR + description: SBS FPU interrupt mask register + byte_offset: 260 + fieldset: FPUIMR + - name: MESR + description: SBS memory erase status register + byte_offset: 264 + fieldset: MESR + - name: CCCSR + description: SBS compensation cell for I/Os control and status register + byte_offset: 272 + fieldset: CCCSR + - name: CCVALR + description: SBS compensation cell for I/Os value register + byte_offset: 276 + fieldset: CCVALR + - name: CCSWCR + description: SBS compensation cell for I/Os software code register + byte_offset: 280 + fieldset: CCSWCR + - name: CFGR2 + description: SBS Class B register + byte_offset: 288 + fieldset: CFGR2 + - name: CNSLCKR + description: SBS CPU lock register + byte_offset: 324 + fieldset: CNSLCKR + - name: ECCNMIR + description: SBS flift ECC NMI mask register + byte_offset: 332 + fieldset: ECCNMIR fieldset/CCCSR: description: SBS compensation cell for I/Os control and status register fields: - - name: EN - description: "enable compensation cell for VDDIO power rail\r This bit enables the I/O compensation cell." - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 2 - - name: CS - description: "code selection for VDDIO power rail (reset value set to 1)\r This bit selects the code to be applied for the I/O compensation cell." - bit_offset: 1 - bit_size: 1 - array: - len: 2 - stride: 2 - enum: CS - - name: RDY - description: "VDDIO compensation cell ready flag\r This bit provides the status of the compensation cell." - bit_offset: 8 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: EN + description: "enable compensation cell for VDDIO power rail\r This bit enables the I/O compensation cell." + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 2 + - name: CS + description: "code selection for VDDIO power rail (reset value set to 1)\r This bit selects the code to be applied for the I/O compensation cell." + bit_offset: 1 + bit_size: 1 + array: + len: 2 + stride: 2 + enum: CS + - name: RDY + description: "VDDIO compensation cell ready flag\r This bit provides the status of the compensation cell." + bit_offset: 8 + bit_size: 1 + array: + len: 2 + stride: 1 fieldset/CCSWCR: description: SBS compensation cell for I/Os software code register fields: - - name: SW_ANSRC1 - description: "NMOS compensation code for VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." - bit_offset: 0 - bit_size: 4 - - name: SW_APSRC1 - description: "PMOS compensation code for the VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." - bit_offset: 4 - bit_size: 4 - - name: SW_ANSRC2 - description: "NMOS compensation code for VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." - bit_offset: 8 - bit_size: 4 - - name: SW_APSRC2 - description: "PMOS compensation code for the VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." - bit_offset: 12 - bit_size: 4 + - name: SW_ANSRC1 + description: "NMOS compensation code for VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." + bit_offset: 0 + bit_size: 4 + - name: SW_APSRC1 + description: "PMOS compensation code for the VDD power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR." + bit_offset: 4 + bit_size: 4 + - name: SW_ANSRC2 + description: "NMOS compensation code for VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." + bit_offset: 8 + bit_size: 4 + - name: SW_APSRC2 + description: "PMOS compensation code for the VDDIO power rails\r This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR." + bit_offset: 12 + bit_size: 4 fieldset/CCVALR: description: SBS compensation cell for I/Os value register fields: - - name: ANSRC1 - description: "compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 0 - bit_size: 4 - - name: APSRC1 - description: "compensation value for the PMOS transistor \r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 4 - bit_size: 4 - - name: ANSRC2 - description: "Compensation value for the NMOS transistor \r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 8 - bit_size: 4 - - name: APSRC2 - description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." - bit_offset: 12 - bit_size: 4 + - name: ANSRC1 + description: "compensation value for the NMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 0 + bit_size: 4 + - name: APSRC1 + description: "compensation value for the PMOS transistor \r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 4 + bit_size: 4 + - name: ANSRC2 + description: "Compensation value for the NMOS transistor \r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 8 + bit_size: 4 + - name: APSRC2 + description: "compensation value for the PMOS transistor\r This value is provided by the cell and must be interpreted by the processor to compensate the slew rate in the functional range." + bit_offset: 12 + bit_size: 4 fieldset/CFGR2: description: SBS Class B register fields: - - name: CLL - description: "core lockup lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the lockup (HardFault) output of Cortex-M33 with TIM1 break inputs." - bit_offset: 0 - bit_size: 1 - - name: SEL - description: "SRAM ECC error lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM double ECC error signal with break input of TIM1." - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: "PVD lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection with TIM1 break inputs." - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: "ECC lock\r This bit is set and cleared by software. It can be used to enable and lock the Flash memory double ECC error with break input of TIM1." - bit_offset: 3 - bit_size: 1 + - name: CLL + description: "core lockup lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the lockup (HardFault) output of Cortex-M33 with TIM1 break inputs." + bit_offset: 0 + bit_size: 1 + - name: SEL + description: "SRAM ECC error lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM double ECC error signal with break input of TIM1." + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: "PVD lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection with TIM1 break inputs." + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: "ECC lock\r This bit is set and cleared by software. It can be used to enable and lock the Flash memory double ECC error with break input of TIM1." + bit_offset: 3 + bit_size: 1 fieldset/CNSLCKR: description: SBS CPU lock register fields: - - name: LOCKNSVTOR - description: "VTOR_NS register lock\r This bit is set by software and cleared only by a system reset." - bit_offset: 0 - bit_size: 1 - - name: LOCKNSMPU - description: "MPU register lock \r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers." - bit_offset: 1 - bit_size: 1 + - name: LOCKNSVTOR + description: "VTOR_NS register lock\r This bit is set by software and cleared only by a system reset." + bit_offset: 0 + bit_size: 1 + - name: LOCKNSMPU + description: "MPU register lock \r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers." + bit_offset: 1 + bit_size: 1 fieldset/DBGCR: description: SBS debug control register fields: - - name: AP_UNLOCK - description: "access port unlock\r Write 0xB4 to this bitfield to open the device access port." - bit_offset: 0 - bit_size: 8 - - name: DBG_UNLOCK - description: "debug unlock when DBG_AUTH_HDPL is reached\r Write 0xB4 to this bitfield to open the debug when HDPL in SBS_HDPLSR equals to DBG_AUTH_HDPL in this register." - bit_offset: 8 - bit_size: 8 - - name: DBG_AUTH_HDPL - description: "authenticated debug temporal isolation level\r Writing to this bitfield defines at which HDPL the authenticated debug opens.\r Note: Writing any other values is ignored. Reading any other value means the debug never opens." - bit_offset: 16 - bit_size: 8 - enum: DBG_AUTH_HDPL + - name: AP_UNLOCK + description: "access port unlock\r Write 0xB4 to this bitfield to open the device access port." + bit_offset: 0 + bit_size: 8 + - name: DBG_UNLOCK + description: "debug unlock when DBG_AUTH_HDPL is reached\r Write 0xB4 to this bitfield to open the debug when HDPL in SBS_HDPLSR equals to DBG_AUTH_HDPL in this register." + bit_offset: 8 + bit_size: 8 + - name: DBG_AUTH_HDPL + description: "authenticated debug temporal isolation level\r Writing to this bitfield defines at which HDPL the authenticated debug opens.\r Note: Writing any other values is ignored. Reading any other value means the debug never opens." + bit_offset: 16 + bit_size: 8 + enum: DBG_AUTH_HDPL fieldset/DBGLOCKR: description: SBS debug lock register fields: - - name: DBGCFG_LOCK - description: "debug configuration lock\r Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4.\r 0xC3 is the recommended value to lock the debug configuration using this bitfield.\r Other: Writes to SBS_DBGCR ignored" - bit_offset: 0 - bit_size: 8 - enum: DBGCFG_LOCK + - name: DBGCFG_LOCK + description: "debug configuration lock\r Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4.\r 0xC3 is the recommended value to lock the debug configuration using this bitfield.\r Other: Writes to SBS_DBGCR ignored" + bit_offset: 0 + bit_size: 8 + enum: DBGCFG_LOCK fieldset/ECCNMIR: description: SBS flift ECC NMI mask register fields: - - name: ECCNMI_MASK_EN - description: NMI behavior setup when a double ECC error occurs on flitf data part - bit_offset: 0 - bit_size: 1 + - name: ECCNMI_MASK_EN + description: NMI behavior setup when a double ECC error occurs on flitf data part + bit_offset: 0 + bit_size: 1 fieldset/FPUIMR: description: SBS FPU interrupt mask register fields: - - name: FPU_IE - description: "FPU interrupt enable\r Set and cleared by software to enable the Cortex-M33 FPU interrupts\r FPU_IE[5]: inexact interrupt enable (interrupt disabled at reset)\r FPU_IE[4]: input abnormal interrupt enable\r FPU_IE[3]: overflow interrupt enable\r FPU_IE[2]: underflow interrupt enable\r FPU_IE[1]: divide-by-zero interrupt enable\r FPU_IE[0]: invalid operation interrupt enable" - bit_offset: 0 - bit_size: 6 + - name: FPU_IE + description: "FPU interrupt enable\r Set and cleared by software to enable the Cortex-M33 FPU interrupts\r FPU_IE[5]: inexact interrupt enable (interrupt disabled at reset)\r FPU_IE[4]: input abnormal interrupt enable\r FPU_IE[3]: overflow interrupt enable\r FPU_IE[2]: underflow interrupt enable\r FPU_IE[1]: divide-by-zero interrupt enable\r FPU_IE[0]: invalid operation interrupt enable" + bit_offset: 0 + bit_size: 6 fieldset/HDPLCR: description: SBS temporal isolation control register fields: - - name: INCR_HDPL - description: "increment HDPL value\r Other: all other values allow a HDPL level increment." - bit_offset: 0 - bit_size: 8 - enum: INCR_HDPL + - name: INCR_HDPL + description: "increment HDPL value\r Other: all other values allow a HDPL level increment." + bit_offset: 0 + bit_size: 8 + enum: INCR_HDPL fieldset/HDPLSR: description: SBS temporal isolation status register fields: - - name: HDPL - description: "temporal isolation level\r This bitfield returns the current temporal isolation level." - bit_offset: 0 - bit_size: 8 - enum: HDPL + - name: HDPL + description: "temporal isolation level\r This bitfield returns the current temporal isolation level." + bit_offset: 0 + bit_size: 8 + enum: HDPL fieldset/MESR: description: SBS memory erase status register fields: - - name: MCLR - description: "erase after reset status\r This bit shows the status of the protection for SRAM2, BKPRAM, ICACHE, ICACHE. It is set by hardware and reset by software" - bit_offset: 0 - bit_size: 1 - - name: IPMEE - description: "end-of-erase status for ICACHE\r This bit shows the status of the protection for ICACHE. It is set by hardware and reset by software." - bit_offset: 16 - bit_size: 1 + - name: MCLR + description: "erase after reset status\r This bit shows the status of the protection for SRAM2, BKPRAM, ICACHE, ICACHE. It is set by hardware and reset by software" + bit_offset: 0 + bit_size: 1 + - name: IPMEE + description: "end-of-erase status for ICACHE\r This bit shows the status of the protection for ICACHE. It is set by hardware and reset by software." + bit_offset: 16 + bit_size: 1 fieldset/PMCR: description: SBS product mode and configuration register fields: - - name: BOOSTEN - description: "booster enable\r Set this bit to reduce the total harmonic distortion of the analog switch when the processor supply is below 2.7 V. The booster can be activated to guaranty AC performance on analog switch when the supply is below 2.7 V. When the booster is activated, the analog switch performances are the same as with the full voltage range." - bit_offset: 8 - bit_size: 1 - - name: BOOSTVDDSEL - description: "booster VDD selection\r Note: Booster must not be used when VDDA < 2.7 V, but VDD > 2.7 V (add current consumption).\r Note: When both VDD < 2.7 V and VDDA < 2.7 V, booster is needed to get full AC performances from I/O analog switches." - bit_offset: 9 - bit_size: 1 - - name: PB6_FMPLUS - description: Fast-mode Plus command on PB(6) - bit_offset: 16 - bit_size: 1 - - name: PB7_FMPLUS - description: Fast-mode Plus command on PB(7) - bit_offset: 17 - bit_size: 1 - - name: PB8_FMPLUS - description: Fast-mode Plus command on PB(8) - bit_offset: 18 - bit_size: 1 + - name: BOOSTEN + description: "booster enable\r Set this bit to reduce the total harmonic distortion of the analog switch when the processor supply is below 2.7 V. The booster can be activated to guaranty AC performance on analog switch when the supply is below 2.7 V. When the booster is activated, the analog switch performances are the same as with the full voltage range." + bit_offset: 8 + bit_size: 1 + - name: BOOSTVDDSEL + description: "booster VDD selection\r Note: Booster must not be used when VDDA < 2.7 V, but VDD > 2.7 V (add current consumption).\r Note: When both VDD < 2.7 V and VDDA < 2.7 V, booster is needed to get full AC performances from I/O analog switches." + bit_offset: 9 + bit_size: 1 + - name: PB6_FMPLUS + description: Fast-mode Plus command on PB(6) + bit_offset: 16 + bit_size: 1 + - name: PB7_FMPLUS + description: Fast-mode Plus command on PB(7) + bit_offset: 17 + bit_size: 1 + - name: PB8_FMPLUS + description: Fast-mode Plus command on PB(8) + bit_offset: 18 + bit_size: 1 enum/CS: bit_size: 1 variants: - - name: Cell - description: Code from the cell (available in SBS_CCVR) - value: 0 - - name: Software - description: Code from SBS_CCCR - value: 1 + - name: Cell + description: Code from the cell (available in SBS_CCVR) + value: 0 + - name: Software + description: Code from SBS_CCCR + value: 1 enum/DBGCFG_LOCK: bit_size: 8 variants: - - name: B_0xB4 - description: Writes to SBS_DBGCR allowed (default) - value: 180 + - name: B_0xB4 + description: Writes to SBS_DBGCR allowed (default) + value: 180 enum/DBG_AUTH_HDPL: bit_size: 8 variants: - - name: B_0x51 - description: HDPL1 - value: 81 - - name: B_0x6F - description: HDPL3 - value: 111 - - name: B_0x8A - description: HDPL2 - value: 138 + - name: B_0x51 + description: HDPL1 + value: 81 + - name: B_0x6F + description: HDPL3 + value: 111 + - name: B_0x8A + description: HDPL2 + value: 138 enum/HDPL: bit_size: 8 variants: - - name: B_0x51 - description: "HDPL1, iRoT" - value: 81 - - name: B_0x6F - description: "HDPL3, application" - value: 111 - - name: B_0x8A - description: "HDPL2, uRoT" - value: 138 - - name: B_0xB4 - description: "HDPL0, RSS" - value: 180 + - name: B_0x51 + description: HDPL1, iRoT + value: 81 + - name: B_0x6F + description: HDPL3, application + value: 111 + - name: B_0x8A + description: HDPL2, uRoT + value: 138 + - name: B_0xB4 + description: HDPL0, RSS + value: 180 enum/INCR_HDPL: bit_size: 8 variants: - - name: B_0x6A - description: recommended value to increment HDPL level by one - value: 106 - - name: B_0xB4 - description: no increment - value: 180 + - name: B_0x6A + description: recommended value to increment HDPL level by one + value: 106 + - name: B_0xB4 + description: no increment + value: 180 diff --git a/data/registers/sdmmc_v1.yaml b/data/registers/sdmmc_v1.yaml index 0eb958f..72e5810 100644 --- a/data/registers/sdmmc_v1.yaml +++ b/data/registers/sdmmc_v1.yaml @@ -1,494 +1,493 @@ ---- block/SDMMC: description: Secure digital input/output interface items: - - name: POWER - description: power control register - byte_offset: 0 - fieldset: POWER - - name: CLKCR - description: SDI clock control register - byte_offset: 4 - fieldset: CLKCR - - name: ARGR - description: argument register - byte_offset: 8 - fieldset: ARGR - - name: CMDR - description: command register - byte_offset: 12 - fieldset: CMDR - - name: RESPCMDR - description: command response register - byte_offset: 16 - access: Read - fieldset: RESPCMDR - - name: RESPR - description: response 1..4 register - array: - len: 4 - stride: 4 - byte_offset: 20 - access: Read - fieldset: RESP1R - - name: DTIMER - description: data timer register - byte_offset: 36 - fieldset: DTIMER - - name: DLENR - description: data length register - byte_offset: 40 - fieldset: DLENR - - name: DCTRL - description: data control register - byte_offset: 44 - fieldset: DCTRL - - name: DCNTR - description: data counter register - byte_offset: 48 - access: Read - fieldset: DCNTR - - name: STAR - description: status register - byte_offset: 52 - access: Read - fieldset: STAR - - name: ICR - description: interrupt clear register - byte_offset: 56 - fieldset: ICR - - name: MASKR - description: mask register - byte_offset: 60 - fieldset: MASKR - - name: FIFOCNT - description: FIFO counter register - byte_offset: 72 - access: Read - fieldset: FIFOCNT - - name: FIFOR - description: data FIFO register - byte_offset: 128 - fieldset: FIFOR + - name: POWER + description: power control register + byte_offset: 0 + fieldset: POWER + - name: CLKCR + description: SDI clock control register + byte_offset: 4 + fieldset: CLKCR + - name: ARGR + description: argument register + byte_offset: 8 + fieldset: ARGR + - name: CMDR + description: command register + byte_offset: 12 + fieldset: CMDR + - name: RESPCMDR + description: command response register + byte_offset: 16 + access: Read + fieldset: RESPCMDR + - name: RESPR + description: response 1..4 register + array: + len: 4 + stride: 4 + byte_offset: 20 + access: Read + fieldset: RESP1R + - name: DTIMER + description: data timer register + byte_offset: 36 + fieldset: DTIMER + - name: DLENR + description: data length register + byte_offset: 40 + fieldset: DLENR + - name: DCTRL + description: data control register + byte_offset: 44 + fieldset: DCTRL + - name: DCNTR + description: data counter register + byte_offset: 48 + access: Read + fieldset: DCNTR + - name: STAR + description: status register + byte_offset: 52 + access: Read + fieldset: STAR + - name: ICR + description: interrupt clear register + byte_offset: 56 + fieldset: ICR + - name: MASKR + description: mask register + byte_offset: 60 + fieldset: MASKR + - name: FIFOCNT + description: FIFO counter register + byte_offset: 72 + access: Read + fieldset: FIFOCNT + - name: FIFOR + description: data FIFO register + byte_offset: 128 + fieldset: FIFOR fieldset/ARGR: description: argument register fields: - - name: CMDARG - description: Command argument - bit_offset: 0 - bit_size: 32 + - name: CMDARG + description: Command argument + bit_offset: 0 + bit_size: 32 fieldset/CLKCR: description: SDI clock control register fields: - - name: CLKDIV - description: Clock divide factor - bit_offset: 0 - bit_size: 8 - - name: CLKEN - description: Clock enable bit - bit_offset: 8 - bit_size: 1 - - name: PWRSAV - description: Power saving configuration bit - bit_offset: 9 - bit_size: 1 - - name: BYPASS - description: Clock divider bypass enable bit - bit_offset: 10 - bit_size: 1 - - name: WIDBUS - description: Wide bus mode enable bit - bit_offset: 11 - bit_size: 2 - - name: NEGEDGE - description: SDIO_CK dephasing selection bit - bit_offset: 13 - bit_size: 1 - - name: HWFC_EN - description: HW Flow Control enable - bit_offset: 14 - bit_size: 1 + - name: CLKDIV + description: Clock divide factor + bit_offset: 0 + bit_size: 8 + - name: CLKEN + description: Clock enable bit + bit_offset: 8 + bit_size: 1 + - name: PWRSAV + description: Power saving configuration bit + bit_offset: 9 + bit_size: 1 + - name: BYPASS + description: Clock divider bypass enable bit + bit_offset: 10 + bit_size: 1 + - name: WIDBUS + description: Wide bus mode enable bit + bit_offset: 11 + bit_size: 2 + - name: NEGEDGE + description: SDIO_CK dephasing selection bit + bit_offset: 13 + bit_size: 1 + - name: HWFC_EN + description: HW Flow Control enable + bit_offset: 14 + bit_size: 1 fieldset/CMDR: description: command register fields: - - name: CMDINDEX - description: Command index - bit_offset: 0 - bit_size: 6 - - name: WAITRESP - description: Wait for response bits - bit_offset: 6 - bit_size: 2 - - name: WAITINT - description: CPSM waits for interrupt request - bit_offset: 8 - bit_size: 1 - - name: WAITPEND - description: CPSM Waits for ends of data transfer (CmdPend internal signal) - bit_offset: 9 - bit_size: 1 - - name: CPSMEN - description: Command path state machine (CPSM) Enable bit - bit_offset: 10 - bit_size: 1 - - name: SDIOSuspend - description: SD I/O suspend command - bit_offset: 11 - bit_size: 1 + - name: CMDINDEX + description: Command index + bit_offset: 0 + bit_size: 6 + - name: WAITRESP + description: Wait for response bits + bit_offset: 6 + bit_size: 2 + - name: WAITINT + description: CPSM waits for interrupt request + bit_offset: 8 + bit_size: 1 + - name: WAITPEND + description: CPSM Waits for ends of data transfer (CmdPend internal signal) + bit_offset: 9 + bit_size: 1 + - name: CPSMEN + description: Command path state machine (CPSM) Enable bit + bit_offset: 10 + bit_size: 1 + - name: SDIOSuspend + description: SD I/O suspend command + bit_offset: 11 + bit_size: 1 fieldset/DCNTR: description: data counter register fields: - - name: DATACOUNT - description: Data count value - bit_offset: 0 - bit_size: 25 + - name: DATACOUNT + description: Data count value + bit_offset: 0 + bit_size: 25 fieldset/DCTRL: description: data control register fields: - - name: DTEN - description: DTEN - bit_offset: 0 - bit_size: 1 - - name: DTDIR - description: Data transfer direction selection - bit_offset: 1 - bit_size: 1 - - name: DTMODE - description: "Data transfer mode selection 1: Stream or SDIO multibyte data transfer" - bit_offset: 2 - bit_size: 1 - - name: DMAEN - description: DMA enable bit - bit_offset: 3 - bit_size: 1 - - name: DBLOCKSIZE - description: Data block size - bit_offset: 4 - bit_size: 4 - - name: RWSTART - description: Read wait start - bit_offset: 8 - bit_size: 1 - - name: RWSTOP - description: Read wait stop - bit_offset: 9 - bit_size: 1 - - name: RWMOD - description: Read wait mode - bit_offset: 10 - bit_size: 1 - - name: SDIOEN - description: SD I/O enable functions - bit_offset: 11 - bit_size: 1 + - name: DTEN + description: DTEN + bit_offset: 0 + bit_size: 1 + - name: DTDIR + description: Data transfer direction selection + bit_offset: 1 + bit_size: 1 + - name: DTMODE + description: 'Data transfer mode selection 1: Stream or SDIO multibyte data transfer' + bit_offset: 2 + bit_size: 1 + - name: DMAEN + description: DMA enable bit + bit_offset: 3 + bit_size: 1 + - name: DBLOCKSIZE + description: Data block size + bit_offset: 4 + bit_size: 4 + - name: RWSTART + description: Read wait start + bit_offset: 8 + bit_size: 1 + - name: RWSTOP + description: Read wait stop + bit_offset: 9 + bit_size: 1 + - name: RWMOD + description: Read wait mode + bit_offset: 10 + bit_size: 1 + - name: SDIOEN + description: SD I/O enable functions + bit_offset: 11 + bit_size: 1 fieldset/DLENR: description: data length register fields: - - name: DATALENGTH - description: Data length value - bit_offset: 0 - bit_size: 25 + - name: DATALENGTH + description: Data length value + bit_offset: 0 + bit_size: 25 fieldset/DTIMER: description: data timer register fields: - - name: DATATIME - description: Data timeout period - bit_offset: 0 - bit_size: 32 + - name: DATATIME + description: Data timeout period + bit_offset: 0 + bit_size: 32 fieldset/FIFOCNT: description: FIFO counter register fields: - - name: FIFOCOUNT - description: Remaining number of words to be written to or read from the FIFO - bit_offset: 0 - bit_size: 24 + - name: FIFOCOUNT + description: Remaining number of words to be written to or read from the FIFO + bit_offset: 0 + bit_size: 24 fieldset/FIFOR: description: data FIFO register fields: - - name: FIFOData - description: Receive and transmit FIFO data - bit_offset: 0 - bit_size: 32 + - name: FIFOData + description: Receive and transmit FIFO data + bit_offset: 0 + bit_size: 32 fieldset/ICR: description: interrupt clear register fields: - - name: CCRCFAILC - description: CCRCFAIL flag clear bit - bit_offset: 0 - bit_size: 1 - - name: DCRCFAILC - description: DCRCFAIL flag clear bit - bit_offset: 1 - bit_size: 1 - - name: CTIMEOUTC - description: CTIMEOUT flag clear bit - bit_offset: 2 - bit_size: 1 - - name: DTIMEOUTC - description: DTIMEOUT flag clear bit - bit_offset: 3 - bit_size: 1 - - name: TXUNDERRC - description: TXUNDERR flag clear bit - bit_offset: 4 - bit_size: 1 - - name: RXOVERRC - description: RXOVERR flag clear bit - bit_offset: 5 - bit_size: 1 - - name: CMDRENDC - description: CMDREND flag clear bit - bit_offset: 6 - bit_size: 1 - - name: CMDSENTC - description: CMDSENT flag clear bit - bit_offset: 7 - bit_size: 1 - - name: DATAENDC - description: DATAEND flag clear bit - bit_offset: 8 - bit_size: 1 - - name: STBITERRC - description: STBITERR flag clear bit - bit_offset: 9 - bit_size: 1 - - name: DBCKENDC - description: DBCKEND flag clear bit - bit_offset: 10 - bit_size: 1 - - name: SDIOITC - description: SDIOIT flag clear bit - bit_offset: 22 - bit_size: 1 + - name: CCRCFAILC + description: CCRCFAIL flag clear bit + bit_offset: 0 + bit_size: 1 + - name: DCRCFAILC + description: DCRCFAIL flag clear bit + bit_offset: 1 + bit_size: 1 + - name: CTIMEOUTC + description: CTIMEOUT flag clear bit + bit_offset: 2 + bit_size: 1 + - name: DTIMEOUTC + description: DTIMEOUT flag clear bit + bit_offset: 3 + bit_size: 1 + - name: TXUNDERRC + description: TXUNDERR flag clear bit + bit_offset: 4 + bit_size: 1 + - name: RXOVERRC + description: RXOVERR flag clear bit + bit_offset: 5 + bit_size: 1 + - name: CMDRENDC + description: CMDREND flag clear bit + bit_offset: 6 + bit_size: 1 + - name: CMDSENTC + description: CMDSENT flag clear bit + bit_offset: 7 + bit_size: 1 + - name: DATAENDC + description: DATAEND flag clear bit + bit_offset: 8 + bit_size: 1 + - name: STBITERRC + description: STBITERR flag clear bit + bit_offset: 9 + bit_size: 1 + - name: DBCKENDC + description: DBCKEND flag clear bit + bit_offset: 10 + bit_size: 1 + - name: SDIOITC + description: SDIOIT flag clear bit + bit_offset: 22 + bit_size: 1 fieldset/MASKR: description: mask register fields: - - name: CCRCFAILIE - description: Command CRC fail interrupt enable - bit_offset: 0 - bit_size: 1 - - name: DCRCFAILIE - description: Data CRC fail interrupt enable - bit_offset: 1 - bit_size: 1 - - name: CTIMEOUTIE - description: Command timeout interrupt enable - bit_offset: 2 - bit_size: 1 - - name: DTIMEOUTIE - description: Data timeout interrupt enable - bit_offset: 3 - bit_size: 1 - - name: TXUNDERRIE - description: Tx FIFO underrun error interrupt enable - bit_offset: 4 - bit_size: 1 - - name: RXOVERRIE - description: Rx FIFO overrun error interrupt enable - bit_offset: 5 - bit_size: 1 - - name: CMDRENDIE - description: Command response received interrupt enable - bit_offset: 6 - bit_size: 1 - - name: CMDSENTIE - description: Command sent interrupt enable - bit_offset: 7 - bit_size: 1 - - name: DATAENDIE - description: Data end interrupt enable - bit_offset: 8 - bit_size: 1 - - name: STBITERRE - description: STBITERR interrupt enable - bit_offset: 9 - bit_size: 1 - - name: DBCKENDIE - description: Data block end interrupt enable - bit_offset: 10 - bit_size: 1 - - name: CMDACTIE - description: Command acting interrupt enable - bit_offset: 11 - bit_size: 1 - - name: TXACTIE - description: Data transmit acting interrupt enable - bit_offset: 12 - bit_size: 1 - - name: RXACTIE - description: Data receive acting interrupt enable - bit_offset: 13 - bit_size: 1 - - name: TXFIFOHEIE - description: Tx FIFO half empty interrupt enable - bit_offset: 14 - bit_size: 1 - - name: RXFIFOHFIE - description: Rx FIFO half full interrupt enable - bit_offset: 15 - bit_size: 1 - - name: TXFIFOFIE - description: Tx FIFO full interrupt enable - bit_offset: 16 - bit_size: 1 - - name: RXFIFOFIE - description: Rx FIFO full interrupt enable - bit_offset: 17 - bit_size: 1 - - name: TXFIFOEIE - description: Tx FIFO empty interrupt enable - bit_offset: 18 - bit_size: 1 - - name: RXFIFOEIE - description: Rx FIFO empty interrupt enable - bit_offset: 19 - bit_size: 1 - - name: TXDAVLIE - description: Data available in Tx FIFO interrupt enable - bit_offset: 20 - bit_size: 1 - - name: RXDAVLIE - description: Data available in Rx FIFO interrupt enable - bit_offset: 21 - bit_size: 1 - - name: SDIOITIE - description: SDIO mode interrupt received interrupt enable - bit_offset: 22 - bit_size: 1 + - name: CCRCFAILIE + description: Command CRC fail interrupt enable + bit_offset: 0 + bit_size: 1 + - name: DCRCFAILIE + description: Data CRC fail interrupt enable + bit_offset: 1 + bit_size: 1 + - name: CTIMEOUTIE + description: Command timeout interrupt enable + bit_offset: 2 + bit_size: 1 + - name: DTIMEOUTIE + description: Data timeout interrupt enable + bit_offset: 3 + bit_size: 1 + - name: TXUNDERRIE + description: Tx FIFO underrun error interrupt enable + bit_offset: 4 + bit_size: 1 + - name: RXOVERRIE + description: Rx FIFO overrun error interrupt enable + bit_offset: 5 + bit_size: 1 + - name: CMDRENDIE + description: Command response received interrupt enable + bit_offset: 6 + bit_size: 1 + - name: CMDSENTIE + description: Command sent interrupt enable + bit_offset: 7 + bit_size: 1 + - name: DATAENDIE + description: Data end interrupt enable + bit_offset: 8 + bit_size: 1 + - name: STBITERRE + description: STBITERR interrupt enable + bit_offset: 9 + bit_size: 1 + - name: DBCKENDIE + description: Data block end interrupt enable + bit_offset: 10 + bit_size: 1 + - name: CMDACTIE + description: Command acting interrupt enable + bit_offset: 11 + bit_size: 1 + - name: TXACTIE + description: Data transmit acting interrupt enable + bit_offset: 12 + bit_size: 1 + - name: RXACTIE + description: Data receive acting interrupt enable + bit_offset: 13 + bit_size: 1 + - name: TXFIFOHEIE + description: Tx FIFO half empty interrupt enable + bit_offset: 14 + bit_size: 1 + - name: RXFIFOHFIE + description: Rx FIFO half full interrupt enable + bit_offset: 15 + bit_size: 1 + - name: TXFIFOFIE + description: Tx FIFO full interrupt enable + bit_offset: 16 + bit_size: 1 + - name: RXFIFOFIE + description: Rx FIFO full interrupt enable + bit_offset: 17 + bit_size: 1 + - name: TXFIFOEIE + description: Tx FIFO empty interrupt enable + bit_offset: 18 + bit_size: 1 + - name: RXFIFOEIE + description: Rx FIFO empty interrupt enable + bit_offset: 19 + bit_size: 1 + - name: TXDAVLIE + description: Data available in Tx FIFO interrupt enable + bit_offset: 20 + bit_size: 1 + - name: RXDAVLIE + description: Data available in Rx FIFO interrupt enable + bit_offset: 21 + bit_size: 1 + - name: SDIOITIE + description: SDIO mode interrupt received interrupt enable + bit_offset: 22 + bit_size: 1 fieldset/POWER: description: power control register fields: - - name: PWRCTRL - description: PWRCTRL - bit_offset: 0 - bit_size: 2 + - name: PWRCTRL + description: PWRCTRL + bit_offset: 0 + bit_size: 2 fieldset/RESP1R: description: response 1..4 register fields: - - name: CARDSTATUS - description: see Table 132 - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table 132 + bit_offset: 0 + bit_size: 32 fieldset/RESP2R: description: response 1..4 register fields: - - name: CARDSTATUS - description: see Table 132 - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table 132 + bit_offset: 0 + bit_size: 32 fieldset/RESP3R: description: response 1..4 register fields: - - name: CARDSTATUS - description: see Table 132 - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table 132 + bit_offset: 0 + bit_size: 32 fieldset/RESP4R: description: response 1..4 register fields: - - name: CARDSTATUS - description: see Table 132 - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table 132 + bit_offset: 0 + bit_size: 32 fieldset/RESPCMDR: description: command response register fields: - - name: RESPCMD - description: Response command index - bit_offset: 0 - bit_size: 6 + - name: RESPCMD + description: Response command index + bit_offset: 0 + bit_size: 6 fieldset/STAR: description: status register fields: - - name: CCRCFAIL - description: Command response received (CRC check failed) - bit_offset: 0 - bit_size: 1 - - name: DCRCFAIL - description: Data block sent/received (CRC check failed) - bit_offset: 1 - bit_size: 1 - - name: CTIMEOUT - description: Command response timeout - bit_offset: 2 - bit_size: 1 - - name: DTIMEOUT - description: Data timeout - bit_offset: 3 - bit_size: 1 - - name: TXUNDERR - description: Transmit FIFO underrun error - bit_offset: 4 - bit_size: 1 - - name: RXOVERR - description: Received FIFO overrun error - bit_offset: 5 - bit_size: 1 - - name: CMDREND - description: Command response received (CRC check passed) - bit_offset: 6 - bit_size: 1 - - name: CMDSENT - description: Command sent (no response required) - bit_offset: 7 - bit_size: 1 - - name: DATAEND - description: "Data end (data counter, SDIDCOUNT, is zero)" - bit_offset: 8 - bit_size: 1 - - name: STBITERR - description: " Start bit not detected on all data signals in wide bus mode" - bit_offset: 9 - bit_size: 1 - - name: DBCKEND - description: Data block sent/received (CRC check passed) - bit_offset: 10 - bit_size: 1 - - name: CMDACT - description: Command transfer in progress - bit_offset: 11 - bit_size: 1 - - name: TXACT - description: Data transmit in progress - bit_offset: 12 - bit_size: 1 - - name: RXACT - description: Data receive in progress - bit_offset: 13 - bit_size: 1 - - name: TXFIFOHE - description: "Transmit FIFO half empty: at least 8 words can be written into the FIFO" - bit_offset: 14 - bit_size: 1 - - name: RXFIFOHF - description: "Receive FIFO half full: there are at least 8 words in the FIFO" - bit_offset: 15 - bit_size: 1 - - name: TXFIFOF - description: Transmit FIFO full - bit_offset: 16 - bit_size: 1 - - name: RXFIFOF - description: Receive FIFO full - bit_offset: 17 - bit_size: 1 - - name: TXFIFOE - description: Transmit FIFO empty - bit_offset: 18 - bit_size: 1 - - name: RXFIFOE - description: Receive FIFO empty - bit_offset: 19 - bit_size: 1 - - name: TXDAVL - description: Data available in transmit FIFO - bit_offset: 20 - bit_size: 1 - - name: RXDAVL - description: Data available in receive FIFO - bit_offset: 21 - bit_size: 1 - - name: SDIOIT - description: SDIO interrupt received - bit_offset: 22 - bit_size: 1 + - name: CCRCFAIL + description: Command response received (CRC check failed) + bit_offset: 0 + bit_size: 1 + - name: DCRCFAIL + description: Data block sent/received (CRC check failed) + bit_offset: 1 + bit_size: 1 + - name: CTIMEOUT + description: Command response timeout + bit_offset: 2 + bit_size: 1 + - name: DTIMEOUT + description: Data timeout + bit_offset: 3 + bit_size: 1 + - name: TXUNDERR + description: Transmit FIFO underrun error + bit_offset: 4 + bit_size: 1 + - name: RXOVERR + description: Received FIFO overrun error + bit_offset: 5 + bit_size: 1 + - name: CMDREND + description: Command response received (CRC check passed) + bit_offset: 6 + bit_size: 1 + - name: CMDSENT + description: Command sent (no response required) + bit_offset: 7 + bit_size: 1 + - name: DATAEND + description: Data end (data counter, SDIDCOUNT, is zero) + bit_offset: 8 + bit_size: 1 + - name: STBITERR + description: Start bit not detected on all data signals in wide bus mode + bit_offset: 9 + bit_size: 1 + - name: DBCKEND + description: Data block sent/received (CRC check passed) + bit_offset: 10 + bit_size: 1 + - name: CMDACT + description: Command transfer in progress + bit_offset: 11 + bit_size: 1 + - name: TXACT + description: Data transmit in progress + bit_offset: 12 + bit_size: 1 + - name: RXACT + description: Data receive in progress + bit_offset: 13 + bit_size: 1 + - name: TXFIFOHE + description: 'Transmit FIFO half empty: at least 8 words can be written into the FIFO' + bit_offset: 14 + bit_size: 1 + - name: RXFIFOHF + description: 'Receive FIFO half full: there are at least 8 words in the FIFO' + bit_offset: 15 + bit_size: 1 + - name: TXFIFOF + description: Transmit FIFO full + bit_offset: 16 + bit_size: 1 + - name: RXFIFOF + description: Receive FIFO full + bit_offset: 17 + bit_size: 1 + - name: TXFIFOE + description: Transmit FIFO empty + bit_offset: 18 + bit_size: 1 + - name: RXFIFOE + description: Receive FIFO empty + bit_offset: 19 + bit_size: 1 + - name: TXDAVL + description: Data available in transmit FIFO + bit_offset: 20 + bit_size: 1 + - name: RXDAVL + description: Data available in receive FIFO + bit_offset: 21 + bit_size: 1 + - name: SDIOIT + description: SDIO interrupt received + bit_offset: 22 + bit_size: 1 diff --git a/data/registers/sdmmc_v2.yaml b/data/registers/sdmmc_v2.yaml index cd30ff0..3210812 100644 --- a/data/registers/sdmmc_v2.yaml +++ b/data/registers/sdmmc_v2.yaml @@ -1,669 +1,668 @@ ---- block/SDMMC: description: SDMMC items: - - name: POWER - description: SDMMC power control register - byte_offset: 0 - fieldset: POWER - - name: CLKCR - description: "The SDMMC_CLKCR register controls the SDMMC_CK output clock, the SDMMC_RX_CLK receive clock, and the bus width." - byte_offset: 4 - fieldset: CLKCR - - name: ARGR - description: "The SDMMC_ARGR register contains a 32-bit command argument, which is sent to a card as part of a command message." - byte_offset: 8 - fieldset: ARGR - - name: CMDR - description: The SDMMC_CMDR register contains the command index and command type bits. The command index is sent to a card as part of a command message. The command type bits control the command path state machine (CPSM). - byte_offset: 12 - fieldset: CMDR - - name: RESPCMDR - description: SDMMC command response register - byte_offset: 16 - access: Read - fieldset: RESPCMDR - - name: RESPR - description: "The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response." - array: - len: 4 - stride: 4 - byte_offset: 20 - access: Read - fieldset: RESP1R - - name: DTIMER - description: "The SDMMC_DTIMER register contains the data timeout period, in card bus clock periods. A counter loads the value from the SDMMC_DTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_R or Busy state. If the timer reaches 0 while the DPSM is in either of these states, the timeout status flag is set." - byte_offset: 36 - fieldset: DTIMER - - name: DLENR - description: The SDMMC_DLENR register contains the number of data bytes to be transferred. The value is loaded into the data counter when data transfer starts. - byte_offset: 40 - fieldset: DLENR - - name: DCTRL - description: The SDMMC_DCTRL register control the data path state machine (DPSM). - byte_offset: 44 - fieldset: DCTRL - - name: DCNTR - description: "The SDMMC_DCNTR register loads the value from the data length register (see SDMMC_DLENR) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As data is transferred, the counter decrements the value until it reaches 0. The DPSM then moves to the Idle state and when there has been no error, the data status end flag (DATAEND) is set." - byte_offset: 48 - access: Read - fieldset: DCNTR - - name: STAR - description: "The SDMMC_STAR register is a read-only register. It contains two types of flag:Static flags (bits [29,21,11:0]): these bits remain asserted until they are cleared by writing to the SDMMC interrupt Clear register (see SDMMC_ICR)Dynamic flags (bits [20:12]): these bits change state depending on the state of the underlying logic (for example, FIFO full and empty flags are asserted and de-asserted as data while written to the FIFO)" - byte_offset: 52 - access: Read - fieldset: STAR - - name: ICR - description: The SDMMC_ICR register is a write-only register. Writing a bit with 1 clears the corresponding bit in the SDMMC_STAR status register. - byte_offset: 56 - fieldset: ICR - - name: MASKR - description: The interrupt mask register determines which status flags generate an interrupt request by setting the corresponding bit to 1. - byte_offset: 60 - fieldset: MASKR - - name: ACKTIMER - description: "The SDMMC_ACKTIMER register contains the acknowledgment timeout period, in SDMMC_CK bus clock periods. A counter loads the value from the SDMMC_ACKTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_Ack state. If the timer reaches 0 while the DPSM is in this states, the acknowledgment timeout status flag is set." - byte_offset: 64 - fieldset: ACKTIMER - - name: IDMACTRLR - description: The receive and transmit FIFOs can be read or written as 32-bit wide registers. The FIFOs contain 32 entries on 32 sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO. - byte_offset: 80 - fieldset: IDMACTRLR - - name: IDMABSIZER - description: The SDMMC_IDMABSIZER register contains the buffers size when in double buffer configuration. - byte_offset: 84 - fieldset: IDMABSIZER - - name: IDMABASE0R - description: The SDMMC_IDMABASE0R register contains the memory buffer base address in single buffer configuration and the buffer 0 base address in double buffer configuration. - byte_offset: 88 - fieldset: IDMABASE0R - - name: IDMABASE1R - description: The SDMMC_IDMABASE1R register contains the double buffer configuration second buffer memory base address. - byte_offset: 92 - fieldset: IDMABASE1R - - name: FIFOR - description: The receive and transmit FIFOs can be only read or written as word (32-bit) wide registers. The FIFOs contain 16 entries on sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO.When accessing SDMMC_FIFOR with half word or byte access an AHB bus fault is generated. - byte_offset: 128 - fieldset: FIFOR - - name: VER - description: SDMMC IP version register - byte_offset: 1012 - access: Read - fieldset: VER - - name: ID - description: SDMMC IP identification register - byte_offset: 1016 - access: Read - fieldset: ID + - name: POWER + description: SDMMC power control register + byte_offset: 0 + fieldset: POWER + - name: CLKCR + description: The SDMMC_CLKCR register controls the SDMMC_CK output clock, the SDMMC_RX_CLK receive clock, and the bus width. + byte_offset: 4 + fieldset: CLKCR + - name: ARGR + description: The SDMMC_ARGR register contains a 32-bit command argument, which is sent to a card as part of a command message. + byte_offset: 8 + fieldset: ARGR + - name: CMDR + description: The SDMMC_CMDR register contains the command index and command type bits. The command index is sent to a card as part of a command message. The command type bits control the command path state machine (CPSM). + byte_offset: 12 + fieldset: CMDR + - name: RESPCMDR + description: SDMMC command response register + byte_offset: 16 + access: Read + fieldset: RESPCMDR + - name: RESPR + description: The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response. + array: + len: 4 + stride: 4 + byte_offset: 20 + access: Read + fieldset: RESP1R + - name: DTIMER + description: The SDMMC_DTIMER register contains the data timeout period, in card bus clock periods. A counter loads the value from the SDMMC_DTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_R or Busy state. If the timer reaches 0 while the DPSM is in either of these states, the timeout status flag is set. + byte_offset: 36 + fieldset: DTIMER + - name: DLENR + description: The SDMMC_DLENR register contains the number of data bytes to be transferred. The value is loaded into the data counter when data transfer starts. + byte_offset: 40 + fieldset: DLENR + - name: DCTRL + description: The SDMMC_DCTRL register control the data path state machine (DPSM). + byte_offset: 44 + fieldset: DCTRL + - name: DCNTR + description: The SDMMC_DCNTR register loads the value from the data length register (see SDMMC_DLENR) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As data is transferred, the counter decrements the value until it reaches 0. The DPSM then moves to the Idle state and when there has been no error, the data status end flag (DATAEND) is set. + byte_offset: 48 + access: Read + fieldset: DCNTR + - name: STAR + description: 'The SDMMC_STAR register is a read-only register. It contains two types of flag:Static flags (bits [29,21,11:0]): these bits remain asserted until they are cleared by writing to the SDMMC interrupt Clear register (see SDMMC_ICR)Dynamic flags (bits [20:12]): these bits change state depending on the state of the underlying logic (for example, FIFO full and empty flags are asserted and de-asserted as data while written to the FIFO)' + byte_offset: 52 + access: Read + fieldset: STAR + - name: ICR + description: The SDMMC_ICR register is a write-only register. Writing a bit with 1 clears the corresponding bit in the SDMMC_STAR status register. + byte_offset: 56 + fieldset: ICR + - name: MASKR + description: The interrupt mask register determines which status flags generate an interrupt request by setting the corresponding bit to 1. + byte_offset: 60 + fieldset: MASKR + - name: ACKTIMER + description: The SDMMC_ACKTIMER register contains the acknowledgment timeout period, in SDMMC_CK bus clock periods. A counter loads the value from the SDMMC_ACKTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_Ack state. If the timer reaches 0 while the DPSM is in this states, the acknowledgment timeout status flag is set. + byte_offset: 64 + fieldset: ACKTIMER + - name: IDMACTRLR + description: The receive and transmit FIFOs can be read or written as 32-bit wide registers. The FIFOs contain 32 entries on 32 sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO. + byte_offset: 80 + fieldset: IDMACTRLR + - name: IDMABSIZER + description: The SDMMC_IDMABSIZER register contains the buffers size when in double buffer configuration. + byte_offset: 84 + fieldset: IDMABSIZER + - name: IDMABASE0R + description: The SDMMC_IDMABASE0R register contains the memory buffer base address in single buffer configuration and the buffer 0 base address in double buffer configuration. + byte_offset: 88 + fieldset: IDMABASE0R + - name: IDMABASE1R + description: The SDMMC_IDMABASE1R register contains the double buffer configuration second buffer memory base address. + byte_offset: 92 + fieldset: IDMABASE1R + - name: FIFOR + description: The receive and transmit FIFOs can be only read or written as word (32-bit) wide registers. The FIFOs contain 16 entries on sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO.When accessing SDMMC_FIFOR with half word or byte access an AHB bus fault is generated. + byte_offset: 128 + fieldset: FIFOR + - name: VER + description: SDMMC IP version register + byte_offset: 1012 + access: Read + fieldset: VER + - name: ID + description: SDMMC IP identification register + byte_offset: 1016 + access: Read + fieldset: ID fieldset/ACKTIMER: - description: "The SDMMC_ACKTIMER register contains the acknowledgment timeout period, in SDMMC_CK bus clock periods. A counter loads the value from the SDMMC_ACKTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_Ack state. If the timer reaches 0 while the DPSM is in this states, the acknowledgment timeout status flag is set." + description: The SDMMC_ACKTIMER register contains the acknowledgment timeout period, in SDMMC_CK bus clock periods. A counter loads the value from the SDMMC_ACKTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_Ack state. If the timer reaches 0 while the DPSM is in this states, the acknowledgment timeout status flag is set. fields: - - name: ACKTIME - description: Boot acknowledgment timeout period This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). Boot acknowledgment timeout period expressed in card bus clock periods. - bit_offset: 0 - bit_size: 25 + - name: ACKTIME + description: Boot acknowledgment timeout period This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). Boot acknowledgment timeout period expressed in card bus clock periods. + bit_offset: 0 + bit_size: 25 fieldset/ARGR: - description: "The SDMMC_ARGR register contains a 32-bit command argument, which is sent to a card as part of a command message." + description: The SDMMC_ARGR register contains a 32-bit command argument, which is sent to a card as part of a command message. fields: - - name: CMDARG - description: "Command argument. These bits can only be written by firmware when CPSM is disabled (CPSMEN = 0). Command argument sent to a card as part of a command message. If a command contains an argument, it must be loaded into this register before writing a command to the command register." - bit_offset: 0 - bit_size: 32 + - name: CMDARG + description: Command argument. These bits can only be written by firmware when CPSM is disabled (CPSMEN = 0). Command argument sent to a card as part of a command message. If a command contains an argument, it must be loaded into this register before writing a command to the command register. + bit_offset: 0 + bit_size: 32 fieldset/CLKCR: - description: "The SDMMC_CLKCR register controls the SDMMC_CK output clock, the SDMMC_RX_CLK receive clock, and the bus width." + description: The SDMMC_CLKCR register controls the SDMMC_CK output clock, the SDMMC_RX_CLK receive clock, and the bus width. fields: - - name: CLKDIV - description: "Clock divide factor This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0). This field defines the divide factor between the input clock (SDMMCCLK) and the output clock (SDMMC_CK): SDMMC_CK frequency = SDMMCCLK / [2 * CLKDIV]. 0xx: etc.. xxx: etc.." - bit_offset: 0 - bit_size: 10 - - name: PWRSAV - description: "Power saving configuration bit This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) For power saving, the SDMMC_CK clock output can be disabled when the bus is idle by setting PWRSAV:" - bit_offset: 12 - bit_size: 1 - - name: WIDBUS - description: Wide bus mode enable bit This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) - bit_offset: 14 - bit_size: 2 - - name: NEGEDGE - description: "SDMMC_CK dephasing selection bit for data and Command. This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0). When clock division = 1 (CLKDIV = 0), this bit has no effect. Data and Command change on SDMMC_CK falling edge. When clock division >1 (CLKDIV > 0) & DDR = 0: - SDMMC_CK edge occurs on SDMMCCLK rising edge. When clock division >1 (CLKDIV > 0) & DDR = 1: - Data changed on the SDMMCCLK falling edge succeeding a SDMMC_CK edge. - SDMMC_CK edge occurs on SDMMCCLK rising edge. - Data changed on the SDMMC_CK falling edge succeeding a SDMMC_CK edge. - SDMMC_CK edge occurs on SDMMCCLK rising edge." - bit_offset: 16 - bit_size: 1 - - name: HWFC_EN - description: "Hardware flow control enable This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) When Hardware flow control is enabled, the meaning of the TXFIFOE and RXFIFOF flags change, please see SDMMC status register definition in Section56.8.11." - bit_offset: 17 - bit_size: 1 - - name: DDR - description: Data rate signaling selection This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) DDR rate shall only be selected with 4-bit or 8-bit wide bus mode. (WIDBUS > 00). DDR = 1 has no effect when WIDBUS = 00 (1-bit wide bus). DDR rate shall only be selected with clock division >1. (CLKDIV > 0) - bit_offset: 18 - bit_size: 1 - - name: BUSSPEED - description: "Bus speed mode selection between DS, HS, SDR12, SDR25 and SDR50, DDR50, SDR104. This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0)" - bit_offset: 19 - bit_size: 1 - - name: SELCLKRX - description: Receive clock selection. These bits can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) - bit_offset: 20 - bit_size: 2 + - name: CLKDIV + description: 'Clock divide factor This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0). This field defines the divide factor between the input clock (SDMMCCLK) and the output clock (SDMMC_CK): SDMMC_CK frequency = SDMMCCLK / [2 * CLKDIV]. 0xx: etc.. xxx: etc..' + bit_offset: 0 + bit_size: 10 + - name: PWRSAV + description: 'Power saving configuration bit This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) For power saving, the SDMMC_CK clock output can be disabled when the bus is idle by setting PWRSAV:' + bit_offset: 12 + bit_size: 1 + - name: WIDBUS + description: Wide bus mode enable bit This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) + bit_offset: 14 + bit_size: 2 + - name: NEGEDGE + description: 'SDMMC_CK dephasing selection bit for data and Command. This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0). When clock division = 1 (CLKDIV = 0), this bit has no effect. Data and Command change on SDMMC_CK falling edge. When clock division >1 (CLKDIV > 0) & DDR = 0: - SDMMC_CK edge occurs on SDMMCCLK rising edge. When clock division >1 (CLKDIV > 0) & DDR = 1: - Data changed on the SDMMCCLK falling edge succeeding a SDMMC_CK edge. - SDMMC_CK edge occurs on SDMMCCLK rising edge. - Data changed on the SDMMC_CK falling edge succeeding a SDMMC_CK edge. - SDMMC_CK edge occurs on SDMMCCLK rising edge.' + bit_offset: 16 + bit_size: 1 + - name: HWFC_EN + description: Hardware flow control enable This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) When Hardware flow control is enabled, the meaning of the TXFIFOE and RXFIFOF flags change, please see SDMMC status register definition in Section56.8.11. + bit_offset: 17 + bit_size: 1 + - name: DDR + description: Data rate signaling selection This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) DDR rate shall only be selected with 4-bit or 8-bit wide bus mode. (WIDBUS > 00). DDR = 1 has no effect when WIDBUS = 00 (1-bit wide bus). DDR rate shall only be selected with clock division >1. (CLKDIV > 0) + bit_offset: 18 + bit_size: 1 + - name: BUSSPEED + description: Bus speed mode selection between DS, HS, SDR12, SDR25 and SDR50, DDR50, SDR104. This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) + bit_offset: 19 + bit_size: 1 + - name: SELCLKRX + description: Receive clock selection. These bits can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0) + bit_offset: 20 + bit_size: 2 fieldset/CMDR: description: The SDMMC_CMDR register contains the command index and command type bits. The command index is sent to a card as part of a command message. The command type bits control the command path state machine (CPSM). fields: - - name: CMDINDEX - description: Command index. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). The command index is sent to the card as part of a command message. - bit_offset: 0 - bit_size: 6 - - name: CMDTRANS - description: "The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). If this bit is set, the CPSM issues an end of interrupt period and issues DataEnable signal to the DPSM when the command is sent." - bit_offset: 6 - bit_size: 1 - - name: CMDSTOP - description: "The CPSM treats the command as a Stop Transmission command and signals Abort to the DPSM. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). If this bit is set, the CPSM issues the Abort signal to the DPSM when the command is sent." - bit_offset: 7 - bit_size: 1 - - name: WAITRESP - description: "Wait for response bits. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). They are used to configure whether the CPSM is to wait for a response, and if yes, which kind of response." - bit_offset: 8 - bit_size: 2 - - name: WAITINT - description: "CPSM waits for interrupt request. If this bit is set, the CPSM disables command timeout and waits for an card interrupt request (Response). If this bit is cleared in the CPSM Wait state, will cause the abort of the interrupt mode." - bit_offset: 10 - bit_size: 1 - - name: WAITPEND - description: "CPSM Waits for end of data transfer (CmdPend internal signal) from DPSM. This bit when set, the CPSM waits for the end of data transfer trigger before it starts sending a command. WAITPEND is only taken into account when DTMODE = MMC stream data transfer, WIDBUS = 1-bit wide bus mode, DPSMACT = 1 and DTDIR = from host to card." - bit_offset: 11 - bit_size: 1 - - name: CPSMEN - description: "Command path state machine (CPSM) Enable bit This bit is written 1 by firmware, and cleared by hardware when the CPSM enters the Idle state. If this bit is set, the CPSM is enabled. When DTEN = 1, no command will be transfered nor boot procedure will be started. CPSMEN is cleared to 0." - bit_offset: 12 - bit_size: 1 - - name: DTHOLD - description: "Hold new data block transmission and reception in the DPSM. If this bit is set, the DPSM will not move from the Wait_S state to the Send state or from the Wait_R state to the Receive state." - bit_offset: 13 - bit_size: 1 - - name: BOOTMODE - description: Select the boot mode procedure to be used. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0) - bit_offset: 14 - bit_size: 1 - - name: BOOTEN - description: Enable boot mode procedure. - bit_offset: 15 - bit_size: 1 - - name: CMDSUSPEND - description: "The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). CMDSUSPEND = 1 and CMDTRANS = 0 Suspend command, start interrupt period when response bit BS=0. CMDSUSPEND = 1 and CMDTRANS = 1 Resume command with data, end interrupt period when response bit DF=1." - bit_offset: 16 - bit_size: 1 + - name: CMDINDEX + description: Command index. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). The command index is sent to the card as part of a command message. + bit_offset: 0 + bit_size: 6 + - name: CMDTRANS + description: The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). If this bit is set, the CPSM issues an end of interrupt period and issues DataEnable signal to the DPSM when the command is sent. + bit_offset: 6 + bit_size: 1 + - name: CMDSTOP + description: The CPSM treats the command as a Stop Transmission command and signals Abort to the DPSM. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). If this bit is set, the CPSM issues the Abort signal to the DPSM when the command is sent. + bit_offset: 7 + bit_size: 1 + - name: WAITRESP + description: Wait for response bits. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). They are used to configure whether the CPSM is to wait for a response, and if yes, which kind of response. + bit_offset: 8 + bit_size: 2 + - name: WAITINT + description: CPSM waits for interrupt request. If this bit is set, the CPSM disables command timeout and waits for an card interrupt request (Response). If this bit is cleared in the CPSM Wait state, will cause the abort of the interrupt mode. + bit_offset: 10 + bit_size: 1 + - name: WAITPEND + description: CPSM Waits for end of data transfer (CmdPend internal signal) from DPSM. This bit when set, the CPSM waits for the end of data transfer trigger before it starts sending a command. WAITPEND is only taken into account when DTMODE = MMC stream data transfer, WIDBUS = 1-bit wide bus mode, DPSMACT = 1 and DTDIR = from host to card. + bit_offset: 11 + bit_size: 1 + - name: CPSMEN + description: Command path state machine (CPSM) Enable bit This bit is written 1 by firmware, and cleared by hardware when the CPSM enters the Idle state. If this bit is set, the CPSM is enabled. When DTEN = 1, no command will be transfered nor boot procedure will be started. CPSMEN is cleared to 0. + bit_offset: 12 + bit_size: 1 + - name: DTHOLD + description: Hold new data block transmission and reception in the DPSM. If this bit is set, the DPSM will not move from the Wait_S state to the Send state or from the Wait_R state to the Receive state. + bit_offset: 13 + bit_size: 1 + - name: BOOTMODE + description: Select the boot mode procedure to be used. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0) + bit_offset: 14 + bit_size: 1 + - name: BOOTEN + description: Enable boot mode procedure. + bit_offset: 15 + bit_size: 1 + - name: CMDSUSPEND + description: The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). CMDSUSPEND = 1 and CMDTRANS = 0 Suspend command, start interrupt period when response bit BS=0. CMDSUSPEND = 1 and CMDTRANS = 1 Resume command with data, end interrupt period when response bit DF=1. + bit_offset: 16 + bit_size: 1 fieldset/DCNTR: - description: "The SDMMC_DCNTR register loads the value from the data length register (see SDMMC_DLENR) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As data is transferred, the counter decrements the value until it reaches 0. The DPSM then moves to the Idle state and when there has been no error, the data status end flag (DATAEND) is set." + description: The SDMMC_DCNTR register loads the value from the data length register (see SDMMC_DLENR) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As data is transferred, the counter decrements the value until it reaches 0. The DPSM then moves to the Idle state and when there has been no error, the data status end flag (DATAEND) is set. fields: - - name: DATACOUNT - description: "Data count value When read, the number of remaining data bytes to be transferred is returned. Write has no effect." - bit_offset: 0 - bit_size: 25 + - name: DATACOUNT + description: Data count value When read, the number of remaining data bytes to be transferred is returned. Write has no effect. + bit_offset: 0 + bit_size: 25 fieldset/DCTRL: description: The SDMMC_DCTRL register control the data path state machine (DPSM). fields: - - name: DTEN - description: "Data transfer enable bit This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). This bit is cleared by Hardware when data transfer completes. This bit shall only be used to transfer data when no associated data transfer command is used, i.e. shall not be used with SD or eMMC cards." - bit_offset: 0 - bit_size: 1 - - name: DTDIR - description: Data transfer direction selection This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). - bit_offset: 1 - bit_size: 1 - - name: DTMODE - description: Data transfer mode selection. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). - bit_offset: 2 - bit_size: 2 - - name: DBLOCKSIZE - description: "Data block size This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). Define the data block length when the block data transfer mode is selected: When DATALENGTH is not a multiple of DBLOCKSIZE, the transfered data is truncated at a multiple of DBLOCKSIZE. (Any remain data will not be transfered.) When DDR = 1, DBLOCKSIZE = 0000 shall not be used. (No data will be transfered)" - bit_offset: 4 - bit_size: 4 - - name: RWSTART - description: "Read wait start. If this bit is set, read wait operation starts." - bit_offset: 8 - bit_size: 1 - - name: RWSTOP - description: Read wait stop This bit is written by firmware and auto cleared by hardware when the DPSM moves from the READ_WAIT state to the WAIT_R or IDLE state. - bit_offset: 9 - bit_size: 1 - - name: RWMOD - description: Read wait mode. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). - bit_offset: 10 - bit_size: 1 - - name: SDIOEN - description: "SD I/O interrupt enable functions This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). If this bit is set, the DPSM enables the SD I/O card specific interrupt operation." - bit_offset: 11 - bit_size: 1 - - name: BOOTACKEN - description: Enable the reception of the boot acknowledgment. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). - bit_offset: 12 - bit_size: 1 - - name: FIFORST - description: "FIFO reset, will flush any remaining data. This bit can only be written by firmware when IDMAEN= 0 and DPSM is active (DPSMACT = 1). This bit will only take effect when a transfer error or transfer hold occurs." - bit_offset: 13 - bit_size: 1 + - name: DTEN + description: Data transfer enable bit This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). This bit is cleared by Hardware when data transfer completes. This bit shall only be used to transfer data when no associated data transfer command is used, i.e. shall not be used with SD or eMMC cards. + bit_offset: 0 + bit_size: 1 + - name: DTDIR + description: Data transfer direction selection This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). + bit_offset: 1 + bit_size: 1 + - name: DTMODE + description: Data transfer mode selection. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). + bit_offset: 2 + bit_size: 2 + - name: DBLOCKSIZE + description: 'Data block size This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). Define the data block length when the block data transfer mode is selected: When DATALENGTH is not a multiple of DBLOCKSIZE, the transfered data is truncated at a multiple of DBLOCKSIZE. (Any remain data will not be transfered.) When DDR = 1, DBLOCKSIZE = 0000 shall not be used. (No data will be transfered)' + bit_offset: 4 + bit_size: 4 + - name: RWSTART + description: Read wait start. If this bit is set, read wait operation starts. + bit_offset: 8 + bit_size: 1 + - name: RWSTOP + description: Read wait stop This bit is written by firmware and auto cleared by hardware when the DPSM moves from the READ_WAIT state to the WAIT_R or IDLE state. + bit_offset: 9 + bit_size: 1 + - name: RWMOD + description: Read wait mode. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). + bit_offset: 10 + bit_size: 1 + - name: SDIOEN + description: SD I/O interrupt enable functions This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). If this bit is set, the DPSM enables the SD I/O card specific interrupt operation. + bit_offset: 11 + bit_size: 1 + - name: BOOTACKEN + description: Enable the reception of the boot acknowledgment. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). + bit_offset: 12 + bit_size: 1 + - name: FIFORST + description: FIFO reset, will flush any remaining data. This bit can only be written by firmware when IDMAEN= 0 and DPSM is active (DPSMACT = 1). This bit will only take effect when a transfer error or transfer hold occurs. + bit_offset: 13 + bit_size: 1 fieldset/DLENR: description: The SDMMC_DLENR register contains the number of data bytes to be transferred. The value is loaded into the data counter when data transfer starts. fields: - - name: DATALENGTH - description: "Data length value This register can only be written by firmware when DPSM is inactive (DPSMACT = 0). Number of data bytes to be transferred. When DDR = 1 DATALENGTH is truncated to a multiple of 2. (The last odd byte is not transfered) When DATALENGTH = 0 no data will be transfered, when requested by a CPSMEN and CMDTRANS = 1 also no command will be transfered. DTEN and CPSMEN are cleared to 0." - bit_offset: 0 - bit_size: 25 + - name: DATALENGTH + description: Data length value This register can only be written by firmware when DPSM is inactive (DPSMACT = 0). Number of data bytes to be transferred. When DDR = 1 DATALENGTH is truncated to a multiple of 2. (The last odd byte is not transfered) When DATALENGTH = 0 no data will be transfered, when requested by a CPSMEN and CMDTRANS = 1 also no command will be transfered. DTEN and CPSMEN are cleared to 0. + bit_offset: 0 + bit_size: 25 fieldset/DTIMER: - description: "The SDMMC_DTIMER register contains the data timeout period, in card bus clock periods. A counter loads the value from the SDMMC_DTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_R or Busy state. If the timer reaches 0 while the DPSM is in either of these states, the timeout status flag is set." + description: The SDMMC_DTIMER register contains the data timeout period, in card bus clock periods. A counter loads the value from the SDMMC_DTIMER register, and starts decrementing when the data path state machine (DPSM) enters the Wait_R or Busy state. If the timer reaches 0 while the DPSM is in either of these states, the timeout status flag is set. fields: - - name: DATATIME - description: Data and R1b busy timeout period This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0). Data and R1b busy timeout period expressed in card bus clock periods. - bit_offset: 0 - bit_size: 32 + - name: DATATIME + description: Data and R1b busy timeout period This bit can only be written when the CPSM and DPSM are not active (CPSMACT = 0 and DPSMACT = 0). Data and R1b busy timeout period expressed in card bus clock periods. + bit_offset: 0 + bit_size: 32 fieldset/FIFOR: description: The receive and transmit FIFOs can be only read or written as word (32-bit) wide registers. The FIFOs contain 16 entries on sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO.When accessing SDMMC_FIFOR with half word or byte access an AHB bus fault is generated. fields: - - name: FIFODATA - description: Receive and transmit FIFO data This register can only be read or written by firmware when the DPSM is active (DPSMACT=1). The FIFO data occupies 16 entries of 32-bit words. - bit_offset: 0 - bit_size: 32 + - name: FIFODATA + description: Receive and transmit FIFO data This register can only be read or written by firmware when the DPSM is active (DPSMACT=1). The FIFO data occupies 16 entries of 32-bit words. + bit_offset: 0 + bit_size: 32 fieldset/ICR: description: The SDMMC_ICR register is a write-only register. Writing a bit with 1 clears the corresponding bit in the SDMMC_STAR status register. fields: - - name: CCRCFAILC - description: CCRCFAIL flag clear bit Set by software to clear the CCRCFAIL flag. - bit_offset: 0 - bit_size: 1 - - name: DCRCFAILC - description: DCRCFAIL flag clear bit Set by software to clear the DCRCFAIL flag. - bit_offset: 1 - bit_size: 1 - - name: CTIMEOUTC - description: CTIMEOUT flag clear bit Set by software to clear the CTIMEOUT flag. - bit_offset: 2 - bit_size: 1 - - name: DTIMEOUTC - description: DTIMEOUT flag clear bit Set by software to clear the DTIMEOUT flag. - bit_offset: 3 - bit_size: 1 - - name: TXUNDERRC - description: TXUNDERR flag clear bit Set by software to clear TXUNDERR flag. - bit_offset: 4 - bit_size: 1 - - name: RXOVERRC - description: RXOVERR flag clear bit Set by software to clear the RXOVERR flag. - bit_offset: 5 - bit_size: 1 - - name: CMDRENDC - description: CMDREND flag clear bit Set by software to clear the CMDREND flag. - bit_offset: 6 - bit_size: 1 - - name: CMDSENTC - description: CMDSENT flag clear bit Set by software to clear the CMDSENT flag. - bit_offset: 7 - bit_size: 1 - - name: DATAENDC - description: DATAEND flag clear bit Set by software to clear the DATAEND flag. - bit_offset: 8 - bit_size: 1 - - name: DHOLDC - description: DHOLD flag clear bit Set by software to clear the DHOLD flag. - bit_offset: 9 - bit_size: 1 - - name: DBCKENDC - description: DBCKEND flag clear bit Set by software to clear the DBCKEND flag. - bit_offset: 10 - bit_size: 1 - - name: DABORTC - description: DABORT flag clear bit Set by software to clear the DABORT flag. - bit_offset: 11 - bit_size: 1 - - name: BUSYD0ENDC - description: BUSYD0END flag clear bit Set by software to clear the BUSYD0END flag. - bit_offset: 21 - bit_size: 1 - - name: SDIOITC - description: SDIOIT flag clear bit Set by software to clear the SDIOIT flag. - bit_offset: 22 - bit_size: 1 - - name: ACKFAILC - description: ACKFAIL flag clear bit Set by software to clear the ACKFAIL flag. - bit_offset: 23 - bit_size: 1 - - name: ACKTIMEOUTC - description: ACKTIMEOUT flag clear bit Set by software to clear the ACKTIMEOUT flag. - bit_offset: 24 - bit_size: 1 - - name: VSWENDC - description: VSWEND flag clear bit Set by software to clear the VSWEND flag. - bit_offset: 25 - bit_size: 1 - - name: CKSTOPC - description: CKSTOP flag clear bit Set by software to clear the CKSTOP flag. - bit_offset: 26 - bit_size: 1 - - name: IDMATEC - description: IDMA transfer error clear bit Set by software to clear the IDMATE flag. - bit_offset: 27 - bit_size: 1 - - name: IDMABTCC - description: IDMA buffer transfer complete clear bit Set by software to clear the IDMABTC flag. - bit_offset: 28 - bit_size: 1 + - name: CCRCFAILC + description: CCRCFAIL flag clear bit Set by software to clear the CCRCFAIL flag. + bit_offset: 0 + bit_size: 1 + - name: DCRCFAILC + description: DCRCFAIL flag clear bit Set by software to clear the DCRCFAIL flag. + bit_offset: 1 + bit_size: 1 + - name: CTIMEOUTC + description: CTIMEOUT flag clear bit Set by software to clear the CTIMEOUT flag. + bit_offset: 2 + bit_size: 1 + - name: DTIMEOUTC + description: DTIMEOUT flag clear bit Set by software to clear the DTIMEOUT flag. + bit_offset: 3 + bit_size: 1 + - name: TXUNDERRC + description: TXUNDERR flag clear bit Set by software to clear TXUNDERR flag. + bit_offset: 4 + bit_size: 1 + - name: RXOVERRC + description: RXOVERR flag clear bit Set by software to clear the RXOVERR flag. + bit_offset: 5 + bit_size: 1 + - name: CMDRENDC + description: CMDREND flag clear bit Set by software to clear the CMDREND flag. + bit_offset: 6 + bit_size: 1 + - name: CMDSENTC + description: CMDSENT flag clear bit Set by software to clear the CMDSENT flag. + bit_offset: 7 + bit_size: 1 + - name: DATAENDC + description: DATAEND flag clear bit Set by software to clear the DATAEND flag. + bit_offset: 8 + bit_size: 1 + - name: DHOLDC + description: DHOLD flag clear bit Set by software to clear the DHOLD flag. + bit_offset: 9 + bit_size: 1 + - name: DBCKENDC + description: DBCKEND flag clear bit Set by software to clear the DBCKEND flag. + bit_offset: 10 + bit_size: 1 + - name: DABORTC + description: DABORT flag clear bit Set by software to clear the DABORT flag. + bit_offset: 11 + bit_size: 1 + - name: BUSYD0ENDC + description: BUSYD0END flag clear bit Set by software to clear the BUSYD0END flag. + bit_offset: 21 + bit_size: 1 + - name: SDIOITC + description: SDIOIT flag clear bit Set by software to clear the SDIOIT flag. + bit_offset: 22 + bit_size: 1 + - name: ACKFAILC + description: ACKFAIL flag clear bit Set by software to clear the ACKFAIL flag. + bit_offset: 23 + bit_size: 1 + - name: ACKTIMEOUTC + description: ACKTIMEOUT flag clear bit Set by software to clear the ACKTIMEOUT flag. + bit_offset: 24 + bit_size: 1 + - name: VSWENDC + description: VSWEND flag clear bit Set by software to clear the VSWEND flag. + bit_offset: 25 + bit_size: 1 + - name: CKSTOPC + description: CKSTOP flag clear bit Set by software to clear the CKSTOP flag. + bit_offset: 26 + bit_size: 1 + - name: IDMATEC + description: IDMA transfer error clear bit Set by software to clear the IDMATE flag. + bit_offset: 27 + bit_size: 1 + - name: IDMABTCC + description: IDMA buffer transfer complete clear bit Set by software to clear the IDMABTC flag. + bit_offset: 28 + bit_size: 1 fieldset/ID: description: SDMMC IP identification register fields: - - name: IP_ID - description: SDMMC IP identification. - bit_offset: 0 - bit_size: 32 + - name: IP_ID + description: SDMMC IP identification. + bit_offset: 0 + bit_size: 32 fieldset/IDMABASE0R: description: The SDMMC_IDMABASE0R register contains the memory buffer base address in single buffer configuration and the buffer 0 base address in double buffer configuration. fields: - - name: IDMABASE0 - description: "Buffer 0 memory base address bits [31:2], shall be word aligned (bit [1:0] are always 0 and read only). This register can be written by firmware when DPSM is inactive (DPSMACT = 0), and can dynamically be written by firmware when DPSM active (DPSMACT = 1) and memory buffer 0 is inactive (IDMABACT = 1)." - bit_offset: 0 - bit_size: 32 + - name: IDMABASE0 + description: Buffer 0 memory base address bits [31:2], shall be word aligned (bit [1:0] are always 0 and read only). This register can be written by firmware when DPSM is inactive (DPSMACT = 0), and can dynamically be written by firmware when DPSM active (DPSMACT = 1) and memory buffer 0 is inactive (IDMABACT = 1). + bit_offset: 0 + bit_size: 32 fieldset/IDMABASE1R: description: The SDMMC_IDMABASE1R register contains the double buffer configuration second buffer memory base address. fields: - - name: IDMABASE1 - description: "Buffer 1 memory base address, shall be word aligned (bit [1:0] are always 0 and read only). This register can be written by firmware when DPSM is inactive (DPSMACT = 0), and can dynamically be written by firmware when DPSM active (DPSMACT = 1) and memory buffer 1 is inactive (IDMABACT = 0)." - bit_offset: 0 - bit_size: 32 + - name: IDMABASE1 + description: Buffer 1 memory base address, shall be word aligned (bit [1:0] are always 0 and read only). This register can be written by firmware when DPSM is inactive (DPSMACT = 0), and can dynamically be written by firmware when DPSM active (DPSMACT = 1) and memory buffer 1 is inactive (IDMABACT = 0). + bit_offset: 0 + bit_size: 32 fieldset/IDMABSIZER: description: The SDMMC_IDMABSIZER register contains the buffers size when in double buffer configuration. fields: - - name: IDMABNDT - description: "Number of transfers per buffer. This 8-bit value shall be multiplied by 8 to get the size of the buffer in 32-bit words and by 32 to get the size of the buffer in bytes. Example: IDMABNDT = 0x01: buffer size = 8 words = 32 bytes. These bits can only be written by firmware when DPSM is inactive (DPSMACT = 0)." - bit_offset: 5 - bit_size: 8 + - name: IDMABNDT + description: 'Number of transfers per buffer. This 8-bit value shall be multiplied by 8 to get the size of the buffer in 32-bit words and by 32 to get the size of the buffer in bytes. Example: IDMABNDT = 0x01: buffer size = 8 words = 32 bytes. These bits can only be written by firmware when DPSM is inactive (DPSMACT = 0).' + bit_offset: 5 + bit_size: 8 fieldset/IDMACTRLR: description: The receive and transmit FIFOs can be read or written as 32-bit wide registers. The FIFOs contain 32 entries on 32 sequential addresses. This allows the CPU to use its load and store multiple operands to read from/write to the FIFO. fields: - - name: IDMAEN - description: IDMA enable This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). - bit_offset: 0 - bit_size: 1 - - name: IDMABMODE - description: Buffer mode selection. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). - bit_offset: 1 - bit_size: 1 - - name: IDMABACT - description: Double buffer mode active buffer indication This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). When IDMA is enabled this bit is toggled by hardware. - bit_offset: 2 - bit_size: 1 + - name: IDMAEN + description: IDMA enable This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). + bit_offset: 0 + bit_size: 1 + - name: IDMABMODE + description: Buffer mode selection. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). + bit_offset: 1 + bit_size: 1 + - name: IDMABACT + description: Double buffer mode active buffer indication This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). When IDMA is enabled this bit is toggled by hardware. + bit_offset: 2 + bit_size: 1 fieldset/MASKR: description: The interrupt mask register determines which status flags generate an interrupt request by setting the corresponding bit to 1. fields: - - name: CCRCFAILIE - description: Command CRC fail interrupt enable Set and cleared by software to enable/disable interrupt caused by command CRC failure. - bit_offset: 0 - bit_size: 1 - - name: DCRCFAILIE - description: Data CRC fail interrupt enable Set and cleared by software to enable/disable interrupt caused by data CRC failure. - bit_offset: 1 - bit_size: 1 - - name: CTIMEOUTIE - description: Command timeout interrupt enable Set and cleared by software to enable/disable interrupt caused by command timeout. - bit_offset: 2 - bit_size: 1 - - name: DTIMEOUTIE - description: Data timeout interrupt enable Set and cleared by software to enable/disable interrupt caused by data timeout. - bit_offset: 3 - bit_size: 1 - - name: TXUNDERRIE - description: Tx FIFO underrun error interrupt enable Set and cleared by software to enable/disable interrupt caused by Tx FIFO underrun error. - bit_offset: 4 - bit_size: 1 - - name: RXOVERRIE - description: Rx FIFO overrun error interrupt enable Set and cleared by software to enable/disable interrupt caused by Rx FIFO overrun error. - bit_offset: 5 - bit_size: 1 - - name: CMDRENDIE - description: Command response received interrupt enable Set and cleared by software to enable/disable interrupt caused by receiving command response. - bit_offset: 6 - bit_size: 1 - - name: CMDSENTIE - description: Command sent interrupt enable Set and cleared by software to enable/disable interrupt caused by sending command. - bit_offset: 7 - bit_size: 1 - - name: DATAENDIE - description: Data end interrupt enable Set and cleared by software to enable/disable interrupt caused by data end. - bit_offset: 8 - bit_size: 1 - - name: DHOLDIE - description: Data hold interrupt enable Set and cleared by software to enable/disable the interrupt generated when sending new data is hold in the DPSM Wait_S state. - bit_offset: 9 - bit_size: 1 - - name: DBCKENDIE - description: Data block end interrupt enable Set and cleared by software to enable/disable interrupt caused by data block end. - bit_offset: 10 - bit_size: 1 - - name: DABORTIE - description: Data transfer aborted interrupt enable Set and cleared by software to enable/disable interrupt caused by a data transfer being aborted. - bit_offset: 11 - bit_size: 1 - - name: TXFIFOHEIE - description: Tx FIFO half empty interrupt enable Set and cleared by software to enable/disable interrupt caused by Tx FIFO half empty. - bit_offset: 14 - bit_size: 1 - - name: RXFIFOHFIE - description: Rx FIFO half full interrupt enable Set and cleared by software to enable/disable interrupt caused by Rx FIFO half full. - bit_offset: 15 - bit_size: 1 - - name: RXFIFOFIE - description: Rx FIFO full interrupt enable Set and cleared by software to enable/disable interrupt caused by Rx FIFO full. - bit_offset: 17 - bit_size: 1 - - name: TXFIFOEIE - description: Tx FIFO empty interrupt enable Set and cleared by software to enable/disable interrupt caused by Tx FIFO empty. - bit_offset: 18 - bit_size: 1 - - name: BUSYD0ENDIE - description: BUSYD0END interrupt enable Set and cleared by software to enable/disable the interrupt generated when SDMMC_D0 signal changes from busy to NOT busy following a CMD response. - bit_offset: 21 - bit_size: 1 - - name: SDIOITIE - description: SDIO mode interrupt received interrupt enable Set and cleared by software to enable/disable the interrupt generated when receiving the SDIO mode interrupt. - bit_offset: 22 - bit_size: 1 - - name: ACKFAILIE - description: Acknowledgment Fail interrupt enable Set and cleared by software to enable/disable interrupt caused by acknowledgment Fail. - bit_offset: 23 - bit_size: 1 - - name: ACKTIMEOUTIE - description: Acknowledgment timeout interrupt enable Set and cleared by software to enable/disable interrupt caused by acknowledgment timeout. - bit_offset: 24 - bit_size: 1 - - name: VSWENDIE - description: Voltage switch critical timing section completion interrupt enable Set and cleared by software to enable/disable the interrupt generated when voltage switch critical timing section completion. - bit_offset: 25 - bit_size: 1 - - name: CKSTOPIE - description: Voltage Switch clock stopped interrupt enable Set and cleared by software to enable/disable interrupt caused by Voltage Switch clock stopped. - bit_offset: 26 - bit_size: 1 - - name: IDMABTCIE - description: IDMA buffer transfer complete interrupt enable Set and cleared by software to enable/disable the interrupt generated when the IDMA has transferred all data belonging to a memory buffer. - bit_offset: 28 - bit_size: 1 + - name: CCRCFAILIE + description: Command CRC fail interrupt enable Set and cleared by software to enable/disable interrupt caused by command CRC failure. + bit_offset: 0 + bit_size: 1 + - name: DCRCFAILIE + description: Data CRC fail interrupt enable Set and cleared by software to enable/disable interrupt caused by data CRC failure. + bit_offset: 1 + bit_size: 1 + - name: CTIMEOUTIE + description: Command timeout interrupt enable Set and cleared by software to enable/disable interrupt caused by command timeout. + bit_offset: 2 + bit_size: 1 + - name: DTIMEOUTIE + description: Data timeout interrupt enable Set and cleared by software to enable/disable interrupt caused by data timeout. + bit_offset: 3 + bit_size: 1 + - name: TXUNDERRIE + description: Tx FIFO underrun error interrupt enable Set and cleared by software to enable/disable interrupt caused by Tx FIFO underrun error. + bit_offset: 4 + bit_size: 1 + - name: RXOVERRIE + description: Rx FIFO overrun error interrupt enable Set and cleared by software to enable/disable interrupt caused by Rx FIFO overrun error. + bit_offset: 5 + bit_size: 1 + - name: CMDRENDIE + description: Command response received interrupt enable Set and cleared by software to enable/disable interrupt caused by receiving command response. + bit_offset: 6 + bit_size: 1 + - name: CMDSENTIE + description: Command sent interrupt enable Set and cleared by software to enable/disable interrupt caused by sending command. + bit_offset: 7 + bit_size: 1 + - name: DATAENDIE + description: Data end interrupt enable Set and cleared by software to enable/disable interrupt caused by data end. + bit_offset: 8 + bit_size: 1 + - name: DHOLDIE + description: Data hold interrupt enable Set and cleared by software to enable/disable the interrupt generated when sending new data is hold in the DPSM Wait_S state. + bit_offset: 9 + bit_size: 1 + - name: DBCKENDIE + description: Data block end interrupt enable Set and cleared by software to enable/disable interrupt caused by data block end. + bit_offset: 10 + bit_size: 1 + - name: DABORTIE + description: Data transfer aborted interrupt enable Set and cleared by software to enable/disable interrupt caused by a data transfer being aborted. + bit_offset: 11 + bit_size: 1 + - name: TXFIFOHEIE + description: Tx FIFO half empty interrupt enable Set and cleared by software to enable/disable interrupt caused by Tx FIFO half empty. + bit_offset: 14 + bit_size: 1 + - name: RXFIFOHFIE + description: Rx FIFO half full interrupt enable Set and cleared by software to enable/disable interrupt caused by Rx FIFO half full. + bit_offset: 15 + bit_size: 1 + - name: RXFIFOFIE + description: Rx FIFO full interrupt enable Set and cleared by software to enable/disable interrupt caused by Rx FIFO full. + bit_offset: 17 + bit_size: 1 + - name: TXFIFOEIE + description: Tx FIFO empty interrupt enable Set and cleared by software to enable/disable interrupt caused by Tx FIFO empty. + bit_offset: 18 + bit_size: 1 + - name: BUSYD0ENDIE + description: BUSYD0END interrupt enable Set and cleared by software to enable/disable the interrupt generated when SDMMC_D0 signal changes from busy to NOT busy following a CMD response. + bit_offset: 21 + bit_size: 1 + - name: SDIOITIE + description: SDIO mode interrupt received interrupt enable Set and cleared by software to enable/disable the interrupt generated when receiving the SDIO mode interrupt. + bit_offset: 22 + bit_size: 1 + - name: ACKFAILIE + description: Acknowledgment Fail interrupt enable Set and cleared by software to enable/disable interrupt caused by acknowledgment Fail. + bit_offset: 23 + bit_size: 1 + - name: ACKTIMEOUTIE + description: Acknowledgment timeout interrupt enable Set and cleared by software to enable/disable interrupt caused by acknowledgment timeout. + bit_offset: 24 + bit_size: 1 + - name: VSWENDIE + description: Voltage switch critical timing section completion interrupt enable Set and cleared by software to enable/disable the interrupt generated when voltage switch critical timing section completion. + bit_offset: 25 + bit_size: 1 + - name: CKSTOPIE + description: Voltage Switch clock stopped interrupt enable Set and cleared by software to enable/disable interrupt caused by Voltage Switch clock stopped. + bit_offset: 26 + bit_size: 1 + - name: IDMABTCIE + description: IDMA buffer transfer complete interrupt enable Set and cleared by software to enable/disable the interrupt generated when the IDMA has transferred all data belonging to a memory buffer. + bit_offset: 28 + bit_size: 1 fieldset/POWER: description: SDMMC power control register fields: - - name: PWRCTRL - description: "SDMMC state control bits. These bits can only be written when the SDMMC is not in the power-on state (PWRCTRL?11). These bits are used to define the functional state of the SDMMC signals: Any further write will be ignored, PWRCTRL value will keep 11." - bit_offset: 0 - bit_size: 2 - - name: VSWITCH - description: "Voltage switch sequence start. This bit is used to start the timing critical section of the voltage switch sequence:" - bit_offset: 2 - bit_size: 1 - - name: VSWITCHEN - description: "Voltage switch procedure enable. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). This bit is used to stop the SDMMC_CK after the voltage switch command response:" - bit_offset: 3 - bit_size: 1 - - name: DIRPOL - description: Data and command direction signals polarity selection. This bit can only be written when the SDMMC is in the power-off state (PWRCTRL = 00). - bit_offset: 4 - bit_size: 1 + - name: PWRCTRL + description: 'SDMMC state control bits. These bits can only be written when the SDMMC is not in the power-on state (PWRCTRL?11). These bits are used to define the functional state of the SDMMC signals: Any further write will be ignored, PWRCTRL value will keep 11.' + bit_offset: 0 + bit_size: 2 + - name: VSWITCH + description: 'Voltage switch sequence start. This bit is used to start the timing critical section of the voltage switch sequence:' + bit_offset: 2 + bit_size: 1 + - name: VSWITCHEN + description: 'Voltage switch procedure enable. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). This bit is used to stop the SDMMC_CK after the voltage switch command response:' + bit_offset: 3 + bit_size: 1 + - name: DIRPOL + description: Data and command direction signals polarity selection. This bit can only be written when the SDMMC is in the power-off state (PWRCTRL = 00). + bit_offset: 4 + bit_size: 1 fieldset/RESP1R: - description: "The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response." + description: The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response. fields: - - name: CARDSTATUS - description: see Table 432 - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table 432 + bit_offset: 0 + bit_size: 32 fieldset/RESP2R: - description: "The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response." + description: The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response. fields: - - name: CARDSTATUS - description: see Table404. - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table404. + bit_offset: 0 + bit_size: 32 fieldset/RESP3R: - description: "The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response." + description: The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response. fields: - - name: CARDSTATUS - description: see Table404. - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table404. + bit_offset: 0 + bit_size: 32 fieldset/RESP4R: - description: "The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response." + description: The SDMMC_RESP1/2/3/4R registers contain the status of a card, which is part of the received response. fields: - - name: CARDSTATUS - description: see Table404. - bit_offset: 0 - bit_size: 32 + - name: CARDSTATUS + description: see Table404. + bit_offset: 0 + bit_size: 32 fieldset/RESPCMDR: description: SDMMC command response register fields: - - name: RESPCMD - description: Response command index - bit_offset: 0 - bit_size: 6 + - name: RESPCMD + description: Response command index + bit_offset: 0 + bit_size: 6 fieldset/STAR: - description: "The SDMMC_STAR register is a read-only register. It contains two types of flag:Static flags (bits [29,21,11:0]): these bits remain asserted until they are cleared by writing to the SDMMC interrupt Clear register (see SDMMC_ICR)Dynamic flags (bits [20:12]): these bits change state depending on the state of the underlying logic (for example, FIFO full and empty flags are asserted and de-asserted as data while written to the FIFO)" + description: 'The SDMMC_STAR register is a read-only register. It contains two types of flag:Static flags (bits [29,21,11:0]): these bits remain asserted until they are cleared by writing to the SDMMC interrupt Clear register (see SDMMC_ICR)Dynamic flags (bits [20:12]): these bits change state depending on the state of the underlying logic (for example, FIFO full and empty flags are asserted and de-asserted as data while written to the FIFO)' fields: - - name: CCRCFAIL - description: Command response received (CRC check failed). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 0 - bit_size: 1 - - name: DCRCFAIL - description: Data block sent/received (CRC check failed). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 1 - bit_size: 1 - - name: CTIMEOUT - description: Command response timeout. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. The Command Timeout period has a fixed value of 64 SDMMC_CK clock periods. - bit_offset: 2 - bit_size: 1 - - name: DTIMEOUT - description: Data timeout. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 3 - bit_size: 1 - - name: TXUNDERR - description: Transmit FIFO underrun error or IDMA read transfer error. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 4 - bit_size: 1 - - name: RXOVERR - description: Received FIFO overrun error or IDMA write transfer error. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 5 - bit_size: 1 - - name: CMDREND - description: "Command response received (CRC check passed, or no CRC). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR." - bit_offset: 6 - bit_size: 1 - - name: CMDSENT - description: Command sent (no response required). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 7 - bit_size: 1 - - name: DATAEND - description: "Data transfer ended correctly. (data counter, DATACOUNT is zero and no errors occur). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR." - bit_offset: 8 - bit_size: 1 - - name: DHOLD - description: Data transfer Hold. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 9 - bit_size: 1 - - name: DBCKEND - description: Data block sent/received. (CRC check passed) and DPSM moves to the READWAIT state. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 10 - bit_size: 1 - - name: DABORT - description: Data transfer aborted by CMD12. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 11 - bit_size: 1 - - name: DPSMACT - description: "Data path state machine active, i.e. not in Idle state. This is a hardware status flag only, does not generate an interrupt." - bit_offset: 12 - bit_size: 1 - - name: CPSMACT - description: "Command path state machine active, i.e. not in Idle state. This is a hardware status flag only, does not generate an interrupt." - bit_offset: 13 - bit_size: 1 - - name: TXFIFOHE - description: Transmit FIFO half empty At least half the number of words can be written into the FIFO. This bit is cleared when the FIFO becomes half+1 full. - bit_offset: 14 - bit_size: 1 - - name: RXFIFOHF - description: Receive FIFO half full There are at least half the number of words in the FIFO. This bit is cleared when the FIFO becomes half+1 empty. - bit_offset: 15 - bit_size: 1 - - name: TXFIFOF - description: "Transmit FIFO full This is a hardware status flag only, does not generate an interrupt. This bit is cleared when one FIFO location becomes empty." - bit_offset: 16 - bit_size: 1 - - name: RXFIFOF - description: Receive FIFO full This bit is cleared when one FIFO location becomes empty. - bit_offset: 17 - bit_size: 1 - - name: TXFIFOE - description: Transmit FIFO empty This bit is cleared when one FIFO location becomes full. - bit_offset: 18 - bit_size: 1 - - name: RXFIFOE - description: "Receive FIFO empty This is a hardware status flag only, does not generate an interrupt. This bit is cleared when one FIFO location becomes full." - bit_offset: 19 - bit_size: 1 - - name: BUSYD0 - description: "Inverted value of SDMMC_D0 line (Busy), sampled at the end of a CMD response and a second time 2 SDMMC_CK cycles after the CMD response. This bit is reset to not busy when the SDMMCD0 line changes from busy to not busy. This bit does not signal busy due to data transfer. This is a hardware status flag only, it does not generate an interrupt." - bit_offset: 20 - bit_size: 1 - - name: BUSYD0END - description: end of SDMMC_D0 Busy following a CMD response detected. This indicates only end of busy following a CMD response. This bit does not signal busy due to data transfer. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 21 - bit_size: 1 - - name: SDIOIT - description: SDIO interrupt received. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 22 - bit_size: 1 - - name: ACKFAIL - description: Boot acknowledgment received (boot acknowledgment check fail). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 23 - bit_size: 1 - - name: ACKTIMEOUT - description: Boot acknowledgment timeout. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 24 - bit_size: 1 - - name: VSWEND - description: Voltage switch critical timing section completion. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 25 - bit_size: 1 - - name: CKSTOP - description: SDMMC_CK stopped in Voltage switch procedure. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 26 - bit_size: 1 - - name: IDMATE - description: IDMA transfer error. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 27 - bit_size: 1 - - name: IDMABTC - description: IDMA buffer transfer complete. interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. - bit_offset: 28 - bit_size: 1 + - name: CCRCFAIL + description: Command response received (CRC check failed). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 0 + bit_size: 1 + - name: DCRCFAIL + description: Data block sent/received (CRC check failed). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 1 + bit_size: 1 + - name: CTIMEOUT + description: Command response timeout. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. The Command Timeout period has a fixed value of 64 SDMMC_CK clock periods. + bit_offset: 2 + bit_size: 1 + - name: DTIMEOUT + description: Data timeout. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 3 + bit_size: 1 + - name: TXUNDERR + description: Transmit FIFO underrun error or IDMA read transfer error. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 4 + bit_size: 1 + - name: RXOVERR + description: Received FIFO overrun error or IDMA write transfer error. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 5 + bit_size: 1 + - name: CMDREND + description: Command response received (CRC check passed, or no CRC). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 6 + bit_size: 1 + - name: CMDSENT + description: Command sent (no response required). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 7 + bit_size: 1 + - name: DATAEND + description: Data transfer ended correctly. (data counter, DATACOUNT is zero and no errors occur). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 8 + bit_size: 1 + - name: DHOLD + description: Data transfer Hold. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 9 + bit_size: 1 + - name: DBCKEND + description: Data block sent/received. (CRC check passed) and DPSM moves to the READWAIT state. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 10 + bit_size: 1 + - name: DABORT + description: Data transfer aborted by CMD12. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 11 + bit_size: 1 + - name: DPSMACT + description: Data path state machine active, i.e. not in Idle state. This is a hardware status flag only, does not generate an interrupt. + bit_offset: 12 + bit_size: 1 + - name: CPSMACT + description: Command path state machine active, i.e. not in Idle state. This is a hardware status flag only, does not generate an interrupt. + bit_offset: 13 + bit_size: 1 + - name: TXFIFOHE + description: Transmit FIFO half empty At least half the number of words can be written into the FIFO. This bit is cleared when the FIFO becomes half+1 full. + bit_offset: 14 + bit_size: 1 + - name: RXFIFOHF + description: Receive FIFO half full There are at least half the number of words in the FIFO. This bit is cleared when the FIFO becomes half+1 empty. + bit_offset: 15 + bit_size: 1 + - name: TXFIFOF + description: Transmit FIFO full This is a hardware status flag only, does not generate an interrupt. This bit is cleared when one FIFO location becomes empty. + bit_offset: 16 + bit_size: 1 + - name: RXFIFOF + description: Receive FIFO full This bit is cleared when one FIFO location becomes empty. + bit_offset: 17 + bit_size: 1 + - name: TXFIFOE + description: Transmit FIFO empty This bit is cleared when one FIFO location becomes full. + bit_offset: 18 + bit_size: 1 + - name: RXFIFOE + description: Receive FIFO empty This is a hardware status flag only, does not generate an interrupt. This bit is cleared when one FIFO location becomes full. + bit_offset: 19 + bit_size: 1 + - name: BUSYD0 + description: Inverted value of SDMMC_D0 line (Busy), sampled at the end of a CMD response and a second time 2 SDMMC_CK cycles after the CMD response. This bit is reset to not busy when the SDMMCD0 line changes from busy to not busy. This bit does not signal busy due to data transfer. This is a hardware status flag only, it does not generate an interrupt. + bit_offset: 20 + bit_size: 1 + - name: BUSYD0END + description: end of SDMMC_D0 Busy following a CMD response detected. This indicates only end of busy following a CMD response. This bit does not signal busy due to data transfer. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 21 + bit_size: 1 + - name: SDIOIT + description: SDIO interrupt received. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 22 + bit_size: 1 + - name: ACKFAIL + description: Boot acknowledgment received (boot acknowledgment check fail). Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 23 + bit_size: 1 + - name: ACKTIMEOUT + description: Boot acknowledgment timeout. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 24 + bit_size: 1 + - name: VSWEND + description: Voltage switch critical timing section completion. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 25 + bit_size: 1 + - name: CKSTOP + description: SDMMC_CK stopped in Voltage switch procedure. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 26 + bit_size: 1 + - name: IDMATE + description: IDMA transfer error. Interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 27 + bit_size: 1 + - name: IDMABTC + description: IDMA buffer transfer complete. interrupt flag is cleared by writing corresponding interrupt clear bit in SDMMC_ICR. + bit_offset: 28 + bit_size: 1 fieldset/VER: description: SDMMC IP version register fields: - - name: MINREV - description: IP minor revision number. - bit_offset: 0 - bit_size: 4 - - name: MAJREV - description: IP major revision number. - bit_offset: 4 - bit_size: 4 + - name: MINREV + description: IP minor revision number. + bit_offset: 0 + bit_size: 4 + - name: MAJREV + description: IP major revision number. + bit_offset: 4 + bit_size: 4 diff --git a/data/registers/spdifrx_v1.yaml b/data/registers/spdifrx_v1.yaml index ada1268..53b6aef 100644 --- a/data/registers/spdifrx_v1.yaml +++ b/data/registers/spdifrx_v1.yaml @@ -1,238 +1,237 @@ ---- block/SPDIFRX: description: Receiver Interface items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: IMR - description: Interrupt mask register - byte_offset: 4 - fieldset: IMR - - name: SR - description: Status register - byte_offset: 8 - access: Read - fieldset: SR - - name: IFCR - description: Interrupt Flag Clear register - byte_offset: 12 - access: Write - fieldset: IFCR - - name: DR - description: Data input register - byte_offset: 16 - access: Read - fieldset: DR - - name: CSR - description: Channel Status register - byte_offset: 20 - access: Read - fieldset: CSR - - name: DIR - description: Debug Information register - byte_offset: 24 - access: Read - fieldset: DIR + - name: CR + description: Control register + byte_offset: 0 + fieldset: CR + - name: IMR + description: Interrupt mask register + byte_offset: 4 + fieldset: IMR + - name: SR + description: Status register + byte_offset: 8 + access: Read + fieldset: SR + - name: IFCR + description: Interrupt Flag Clear register + byte_offset: 12 + access: Write + fieldset: IFCR + - name: DR + description: Data input register + byte_offset: 16 + access: Read + fieldset: DR + - name: CSR + description: Channel Status register + byte_offset: 20 + access: Read + fieldset: CSR + - name: DIR + description: Debug Information register + byte_offset: 24 + access: Read + fieldset: DIR fieldset/CR: description: Control register fields: - - name: SPDIFEN - description: Peripheral Block Enable - bit_offset: 0 - bit_size: 2 - - name: RXDMAEN - description: Receiver DMA ENable for data flow - bit_offset: 2 - bit_size: 1 - - name: RXSTEO - description: STerEO Mode - bit_offset: 3 - bit_size: 1 - - name: DRFMT - description: RX Data format - bit_offset: 4 - bit_size: 2 - - name: PMSK - description: Mask Parity error bit - bit_offset: 6 - bit_size: 1 - - name: VMSK - description: Mask of Validity bit - bit_offset: 7 - bit_size: 1 - - name: CUMSK - description: Mask of channel status and user bits - bit_offset: 8 - bit_size: 1 - - name: PTMSK - description: Mask of Preamble Type bits - bit_offset: 9 - bit_size: 1 - - name: CBDMAEN - description: Control Buffer DMA ENable for control flow - bit_offset: 10 - bit_size: 1 - - name: CHSEL - description: Channel Selection - bit_offset: 11 - bit_size: 1 - - name: NBTR - description: Maximum allowed re-tries during synchronization phase - bit_offset: 12 - bit_size: 2 - - name: WFA - description: Wait For Activity - bit_offset: 14 - bit_size: 1 - - name: INSEL - description: input selection - bit_offset: 16 - bit_size: 3 + - name: SPDIFEN + description: Peripheral Block Enable + bit_offset: 0 + bit_size: 2 + - name: RXDMAEN + description: Receiver DMA ENable for data flow + bit_offset: 2 + bit_size: 1 + - name: RXSTEO + description: STerEO Mode + bit_offset: 3 + bit_size: 1 + - name: DRFMT + description: RX Data format + bit_offset: 4 + bit_size: 2 + - name: PMSK + description: Mask Parity error bit + bit_offset: 6 + bit_size: 1 + - name: VMSK + description: Mask of Validity bit + bit_offset: 7 + bit_size: 1 + - name: CUMSK + description: Mask of channel status and user bits + bit_offset: 8 + bit_size: 1 + - name: PTMSK + description: Mask of Preamble Type bits + bit_offset: 9 + bit_size: 1 + - name: CBDMAEN + description: Control Buffer DMA ENable for control flow + bit_offset: 10 + bit_size: 1 + - name: CHSEL + description: Channel Selection + bit_offset: 11 + bit_size: 1 + - name: NBTR + description: Maximum allowed re-tries during synchronization phase + bit_offset: 12 + bit_size: 2 + - name: WFA + description: Wait For Activity + bit_offset: 14 + bit_size: 1 + - name: INSEL + description: input selection + bit_offset: 16 + bit_size: 3 fieldset/CSR: description: Channel Status register fields: - - name: USR - description: User data information - bit_offset: 0 - bit_size: 16 - - name: CS - description: Channel A status information - bit_offset: 16 - bit_size: 8 - - name: SOB - description: Start Of Block - bit_offset: 24 - bit_size: 1 + - name: USR + description: User data information + bit_offset: 0 + bit_size: 16 + - name: CS + description: Channel A status information + bit_offset: 16 + bit_size: 8 + - name: SOB + description: Start Of Block + bit_offset: 24 + bit_size: 1 fieldset/DIR: description: Debug Information register fields: - - name: THI - description: Threshold HIGH - bit_offset: 0 - bit_size: 13 - - name: TLO - description: Threshold LOW - bit_offset: 16 - bit_size: 13 + - name: THI + description: Threshold HIGH + bit_offset: 0 + bit_size: 13 + - name: TLO + description: Threshold LOW + bit_offset: 16 + bit_size: 13 fieldset/DR: description: Data input register fields: - - name: DR - description: Parity Error bit - bit_offset: 0 - bit_size: 24 - - name: PE - description: Parity Error bit - bit_offset: 24 - bit_size: 1 - - name: V - description: Validity bit - bit_offset: 25 - bit_size: 1 - - name: U - description: User bit - bit_offset: 26 - bit_size: 1 - - name: C - description: Channel Status bit - bit_offset: 27 - bit_size: 1 - - name: PT - description: Preamble Type - bit_offset: 28 - bit_size: 2 + - name: DR + description: Parity Error bit + bit_offset: 0 + bit_size: 24 + - name: PE + description: Parity Error bit + bit_offset: 24 + bit_size: 1 + - name: V + description: Validity bit + bit_offset: 25 + bit_size: 1 + - name: U + description: User bit + bit_offset: 26 + bit_size: 1 + - name: C + description: Channel Status bit + bit_offset: 27 + bit_size: 1 + - name: PT + description: Preamble Type + bit_offset: 28 + bit_size: 2 fieldset/IFCR: description: Interrupt Flag Clear register fields: - - name: PERRCF - description: Clears the Parity error flag - bit_offset: 2 - bit_size: 1 - - name: OVRCF - description: Clears the Overrun error flag - bit_offset: 3 - bit_size: 1 - - name: SBDCF - description: Clears the Synchronization Block Detected flag - bit_offset: 4 - bit_size: 1 - - name: SYNCDCF - description: Clears the Synchronization Done flag - bit_offset: 5 - bit_size: 1 + - name: PERRCF + description: Clears the Parity error flag + bit_offset: 2 + bit_size: 1 + - name: OVRCF + description: Clears the Overrun error flag + bit_offset: 3 + bit_size: 1 + - name: SBDCF + description: Clears the Synchronization Block Detected flag + bit_offset: 4 + bit_size: 1 + - name: SYNCDCF + description: Clears the Synchronization Done flag + bit_offset: 5 + bit_size: 1 fieldset/IMR: description: Interrupt mask register fields: - - name: RXNEIE - description: RXNE interrupt enable - bit_offset: 0 - bit_size: 1 - - name: CSRNEIE - description: Control Buffer Ready Interrupt Enable - bit_offset: 1 - bit_size: 1 - - name: PERRIE - description: Parity error interrupt enable - bit_offset: 2 - bit_size: 1 - - name: OVRIE - description: Overrun error Interrupt Enable - bit_offset: 3 - bit_size: 1 - - name: SBLKIE - description: Synchronization Block Detected Interrupt Enable - bit_offset: 4 - bit_size: 1 - - name: SYNCDIE - description: Synchronization Done - bit_offset: 5 - bit_size: 1 - - name: IFEIE - description: Serial Interface Error Interrupt Enable - bit_offset: 6 - bit_size: 1 + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 0 + bit_size: 1 + - name: CSRNEIE + description: Control Buffer Ready Interrupt Enable + bit_offset: 1 + bit_size: 1 + - name: PERRIE + description: Parity error interrupt enable + bit_offset: 2 + bit_size: 1 + - name: OVRIE + description: Overrun error Interrupt Enable + bit_offset: 3 + bit_size: 1 + - name: SBLKIE + description: Synchronization Block Detected Interrupt Enable + bit_offset: 4 + bit_size: 1 + - name: SYNCDIE + description: Synchronization Done + bit_offset: 5 + bit_size: 1 + - name: IFEIE + description: Serial Interface Error Interrupt Enable + bit_offset: 6 + bit_size: 1 fieldset/SR: description: Status register fields: - - name: RXNE - description: Read data register not empty - bit_offset: 0 - bit_size: 1 - - name: CSRNE - description: Control Buffer register is not empty - bit_offset: 1 - bit_size: 1 - - name: PERR - description: Parity error - bit_offset: 2 - bit_size: 1 - - name: OVR - description: Overrun error - bit_offset: 3 - bit_size: 1 - - name: SBD - description: Synchronization Block Detected - bit_offset: 4 - bit_size: 1 - - name: SYNCD - description: Synchronization Done - bit_offset: 5 - bit_size: 1 - - name: FERR - description: Framing error - bit_offset: 6 - bit_size: 1 - - name: SERR - description: Synchronization error - bit_offset: 7 - bit_size: 1 - - name: TERR - description: Time-out error - bit_offset: 8 - bit_size: 1 - - name: WIDTH - description: Duration of 5 symbols counted with SPDIF_CLK - bit_offset: 16 - bit_size: 15 + - name: RXNE + description: Read data register not empty + bit_offset: 0 + bit_size: 1 + - name: CSRNE + description: Control Buffer register is not empty + bit_offset: 1 + bit_size: 1 + - name: PERR + description: Parity error + bit_offset: 2 + bit_size: 1 + - name: OVR + description: Overrun error + bit_offset: 3 + bit_size: 1 + - name: SBD + description: Synchronization Block Detected + bit_offset: 4 + bit_size: 1 + - name: SYNCD + description: Synchronization Done + bit_offset: 5 + bit_size: 1 + - name: FERR + description: Framing error + bit_offset: 6 + bit_size: 1 + - name: SERR + description: Synchronization error + bit_offset: 7 + bit_size: 1 + - name: TERR + description: Time-out error + bit_offset: 8 + bit_size: 1 + - name: WIDTH + description: Duration of 5 symbols counted with SPDIF_CLK + bit_offset: 16 + bit_size: 15 diff --git a/data/registers/spi_f1.yaml b/data/registers/spi_f1.yaml index 324b8f1..5c2278e 100644 --- a/data/registers/spi_f1.yaml +++ b/data/registers/spi_f1.yaml @@ -1,454 +1,453 @@ ---- block/SPI: description: Serial peripheral interface items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2 - - name: SR - description: status register - byte_offset: 8 - fieldset: SR - - name: DR - description: data register - byte_offset: 12 - fieldset: DR - - name: CRCPR - description: CRC polynomial register - byte_offset: 16 - fieldset: CRCPR - - name: RXCRCR - description: RX CRC register - byte_offset: 20 - access: Read - fieldset: RXCRCR - - name: TXCRCR - description: TX CRC register - byte_offset: 24 - access: Read - fieldset: TXCRCR - - name: I2SCFGR - description: I2S configuration register - byte_offset: 28 - fieldset: I2SCFGR - - name: I2SPR - description: I2S prescaler register - byte_offset: 32 - fieldset: I2SPR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: SR + description: status register + byte_offset: 8 + fieldset: SR + - name: DR + description: data register + byte_offset: 12 + fieldset: DR + - name: CRCPR + description: CRC polynomial register + byte_offset: 16 + fieldset: CRCPR + - name: RXCRCR + description: RX CRC register + byte_offset: 20 + access: Read + fieldset: RXCRCR + - name: TXCRCR + description: TX CRC register + byte_offset: 24 + access: Read + fieldset: TXCRCR + - name: I2SCFGR + description: I2S configuration register + byte_offset: 28 + fieldset: I2SCFGR + - name: I2SPR + description: I2S prescaler register + byte_offset: 32 + fieldset: I2SPR fieldset/CR1: description: control register 1 fields: - - name: CPHA - description: Clock phase - bit_offset: 0 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 1 - bit_size: 1 - enum: CPOL - - name: MSTR - description: Master selection - bit_offset: 2 - bit_size: 1 - enum: MSTR - - name: BR - description: Baud rate control - bit_offset: 3 - bit_size: 3 - enum: BR - - name: SPE - description: SPI enable - bit_offset: 6 - bit_size: 1 - - name: LSBFIRST - description: Frame format - bit_offset: 7 - bit_size: 1 - enum: LSBFIRST - - name: SSI - description: Internal slave select - bit_offset: 8 - bit_size: 1 - - name: SSM - description: Software slave management - bit_offset: 9 - bit_size: 1 - - name: RXONLY - description: Receive only - bit_offset: 10 - bit_size: 1 - enum: RXONLY - - name: DFF - description: Data frame format - bit_offset: 11 - bit_size: 1 - enum: DFF - - name: CRCNEXT - description: CRC transfer next - bit_offset: 12 - bit_size: 1 - enum: CRCNEXT - - name: CRCEN - description: Hardware CRC calculation enable - bit_offset: 13 - bit_size: 1 - - name: BIDIOE - description: Output enable in bidirectional mode - bit_offset: 14 - bit_size: 1 - enum: BIDIOE - - name: BIDIMODE - description: Bidirectional data mode enable - bit_offset: 15 - bit_size: 1 - enum: BIDIMODE + - name: CPHA + description: Clock phase + bit_offset: 0 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 1 + bit_size: 1 + enum: CPOL + - name: MSTR + description: Master selection + bit_offset: 2 + bit_size: 1 + enum: MSTR + - name: BR + description: Baud rate control + bit_offset: 3 + bit_size: 3 + enum: BR + - name: SPE + description: SPI enable + bit_offset: 6 + bit_size: 1 + - name: LSBFIRST + description: Frame format + bit_offset: 7 + bit_size: 1 + enum: LSBFIRST + - name: SSI + description: Internal slave select + bit_offset: 8 + bit_size: 1 + - name: SSM + description: Software slave management + bit_offset: 9 + bit_size: 1 + - name: RXONLY + description: Receive only + bit_offset: 10 + bit_size: 1 + enum: RXONLY + - name: DFF + description: Data frame format + bit_offset: 11 + bit_size: 1 + enum: DFF + - name: CRCNEXT + description: CRC transfer next + bit_offset: 12 + bit_size: 1 + enum: CRCNEXT + - name: CRCEN + description: Hardware CRC calculation enable + bit_offset: 13 + bit_size: 1 + - name: BIDIOE + description: Output enable in bidirectional mode + bit_offset: 14 + bit_size: 1 + enum: BIDIOE + - name: BIDIMODE + description: Bidirectional data mode enable + bit_offset: 15 + bit_size: 1 + enum: BIDIMODE fieldset/CR2: description: control register 2 fields: - - name: RXDMAEN - description: Rx buffer DMA enable - bit_offset: 0 - bit_size: 1 - - name: TXDMAEN - description: Tx buffer DMA enable - bit_offset: 1 - bit_size: 1 - - name: SSOE - description: SS output enable - bit_offset: 2 - bit_size: 1 - - name: ERRIE - description: Error interrupt enable - bit_offset: 5 - bit_size: 1 - - name: RXNEIE - description: RX buffer not empty interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: Tx buffer empty interrupt enable - bit_offset: 7 - bit_size: 1 + - name: RXDMAEN + description: Rx buffer DMA enable + bit_offset: 0 + bit_size: 1 + - name: TXDMAEN + description: Tx buffer DMA enable + bit_offset: 1 + bit_size: 1 + - name: SSOE + description: SS output enable + bit_offset: 2 + bit_size: 1 + - name: ERRIE + description: Error interrupt enable + bit_offset: 5 + bit_size: 1 + - name: RXNEIE + description: RX buffer not empty interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: Tx buffer empty interrupt enable + bit_offset: 7 + bit_size: 1 fieldset/CRCPR: description: CRC polynomial register fields: - - name: CRCPOLY - description: CRC polynomial register - bit_offset: 0 - bit_size: 16 + - name: CRCPOLY + description: CRC polynomial register + bit_offset: 0 + bit_size: 16 fieldset/DR: description: data register fields: - - name: DR - description: Data register - bit_offset: 0 - bit_size: 16 + - name: DR + description: Data register + bit_offset: 0 + bit_size: 16 fieldset/I2SCFGR: description: I2S configuration register fields: - - name: CHLEN - description: Channel length (number of bits per audio channel) - bit_offset: 0 - bit_size: 1 - enum: CHLEN - - name: DATLEN - description: Data length to be transferred - bit_offset: 1 - bit_size: 2 - enum: DATLEN - - name: CKPOL - description: Steady state clock polarity - bit_offset: 3 - bit_size: 1 - enum: CKPOL - - name: I2SSTD - description: I2S standard selection - bit_offset: 4 - bit_size: 2 - enum: I2SSTD - - name: PCMSYNC - description: PCM frame synchronization - bit_offset: 7 - bit_size: 1 - enum: PCMSYNC - - name: I2SCFG - description: I2S configuration mode - bit_offset: 8 - bit_size: 2 - enum: I2SCFG - - name: I2SE - description: I2S Enable - bit_offset: 10 - bit_size: 1 - - name: I2SMOD - description: I2S mode selection - bit_offset: 11 - bit_size: 1 + - name: CHLEN + description: Channel length (number of bits per audio channel) + bit_offset: 0 + bit_size: 1 + enum: CHLEN + - name: DATLEN + description: Data length to be transferred + bit_offset: 1 + bit_size: 2 + enum: DATLEN + - name: CKPOL + description: Steady state clock polarity + bit_offset: 3 + bit_size: 1 + enum: CKPOL + - name: I2SSTD + description: I2S standard selection + bit_offset: 4 + bit_size: 2 + enum: I2SSTD + - name: PCMSYNC + description: PCM frame synchronization + bit_offset: 7 + bit_size: 1 + enum: PCMSYNC + - name: I2SCFG + description: I2S configuration mode + bit_offset: 8 + bit_size: 2 + enum: I2SCFG + - name: I2SE + description: I2S Enable + bit_offset: 10 + bit_size: 1 + - name: I2SMOD + description: I2S mode selection + bit_offset: 11 + bit_size: 1 fieldset/I2SPR: description: I2S prescaler register fields: - - name: I2SDIV - description: I2S Linear prescaler - bit_offset: 0 - bit_size: 8 - - name: ODD - description: Odd factor for the prescaler - bit_offset: 8 - bit_size: 1 - enum: ODD - - name: MCKOE - description: Master clock output enable - bit_offset: 9 - bit_size: 1 + - name: I2SDIV + description: I2S Linear prescaler + bit_offset: 0 + bit_size: 8 + - name: ODD + description: Odd factor for the prescaler + bit_offset: 8 + bit_size: 1 + enum: ODD + - name: MCKOE + description: Master clock output enable + bit_offset: 9 + bit_size: 1 fieldset/RXCRCR: description: RX CRC register fields: - - name: RxCRC - description: Rx CRC register - bit_offset: 0 - bit_size: 16 + - name: RxCRC + description: Rx CRC register + bit_offset: 0 + bit_size: 16 fieldset/SR: description: status register fields: - - name: RXNE - description: Receive buffer not empty - bit_offset: 0 - bit_size: 1 - - name: TXE - description: Transmit buffer empty - bit_offset: 1 - bit_size: 1 - - name: CHSIDE - description: Channel side - bit_offset: 2 - bit_size: 1 - enum: CHSIDE - - name: UDR - description: Underrun flag - bit_offset: 3 - bit_size: 1 - - name: CRCERR - description: CRC error flag - bit_offset: 4 - bit_size: 1 - - name: MODF - description: Mode fault - bit_offset: 5 - bit_size: 1 - - name: OVR - description: Overrun flag - bit_offset: 6 - bit_size: 1 - - name: BSY - description: Busy flag - bit_offset: 7 - bit_size: 1 + - name: RXNE + description: Receive buffer not empty + bit_offset: 0 + bit_size: 1 + - name: TXE + description: Transmit buffer empty + bit_offset: 1 + bit_size: 1 + - name: CHSIDE + description: Channel side + bit_offset: 2 + bit_size: 1 + enum: CHSIDE + - name: UDR + description: Underrun flag + bit_offset: 3 + bit_size: 1 + - name: CRCERR + description: CRC error flag + bit_offset: 4 + bit_size: 1 + - name: MODF + description: Mode fault + bit_offset: 5 + bit_size: 1 + - name: OVR + description: Overrun flag + bit_offset: 6 + bit_size: 1 + - name: BSY + description: Busy flag + bit_offset: 7 + bit_size: 1 fieldset/TXCRCR: description: TX CRC register fields: - - name: TxCRC - description: Tx CRC register - bit_offset: 0 - bit_size: 16 + - name: TxCRC + description: Tx CRC register + bit_offset: 0 + bit_size: 16 enum/BIDIMODE: bit_size: 1 variants: - - name: Unidirectional - description: 2-line unidirectional data mode selected - value: 0 - - name: Bidirectional - description: 1-line bidirectional data mode selected - value: 1 + - name: Unidirectional + description: 2-line unidirectional data mode selected + value: 0 + - name: Bidirectional + description: 1-line bidirectional data mode selected + value: 1 enum/BIDIOE: bit_size: 1 variants: - - name: OutputDisabled - description: Output disabled (receive-only mode) - value: 0 - - name: OutputEnabled - description: Output enabled (transmit-only mode) - value: 1 + - name: OutputDisabled + description: Output disabled (receive-only mode) + value: 0 + - name: OutputEnabled + description: Output enabled (transmit-only mode) + value: 1 enum/BR: bit_size: 3 variants: - - name: Div2 - description: f_PCLK / 2 - value: 0 - - name: Div4 - description: f_PCLK / 4 - value: 1 - - name: Div8 - description: f_PCLK / 8 - value: 2 - - name: Div16 - description: f_PCLK / 16 - value: 3 - - name: Div32 - description: f_PCLK / 32 - value: 4 - - name: Div64 - description: f_PCLK / 64 - value: 5 - - name: Div128 - description: f_PCLK / 128 - value: 6 - - name: Div256 - description: f_PCLK / 256 - value: 7 + - name: Div2 + description: f_PCLK / 2 + value: 0 + - name: Div4 + description: f_PCLK / 4 + value: 1 + - name: Div8 + description: f_PCLK / 8 + value: 2 + - name: Div16 + description: f_PCLK / 16 + value: 3 + - name: Div32 + description: f_PCLK / 32 + value: 4 + - name: Div64 + description: f_PCLK / 64 + value: 5 + - name: Div128 + description: f_PCLK / 128 + value: 6 + - name: Div256 + description: f_PCLK / 256 + value: 7 enum/CHLEN: bit_size: 1 variants: - - name: SixteenBit - description: 16-bit wide - value: 0 - - name: ThirtyTwoBit - description: 32-bit wide - value: 1 + - name: SixteenBit + description: 16-bit wide + value: 0 + - name: ThirtyTwoBit + description: 32-bit wide + value: 1 enum/CHSIDE: bit_size: 1 variants: - - name: Left - description: Channel left has to be transmitted or has been received - value: 0 - - name: Right - description: Channel right has to be transmitted or has been received - value: 1 + - name: Left + description: Channel left has to be transmitted or has been received + value: 0 + - name: Right + description: Channel right has to be transmitted or has been received + value: 1 enum/CKPOL: bit_size: 1 variants: - - name: IdleLow - description: I2S clock inactive state is low level - value: 0 - - name: IdleHigh - description: I2S clock inactive state is high level - value: 1 + - name: IdleLow + description: I2S clock inactive state is low level + value: 0 + - name: IdleHigh + description: I2S clock inactive state is high level + value: 1 enum/CPHA: bit_size: 1 variants: - - name: FirstEdge - description: The first clock transition is the first data capture edge - value: 0 - - name: SecondEdge - description: The second clock transition is the first data capture edge - value: 1 + - name: FirstEdge + description: The first clock transition is the first data capture edge + value: 0 + - name: SecondEdge + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: IdleLow - description: CK to 0 when idle - value: 0 - - name: IdleHigh - description: CK to 1 when idle - value: 1 + - name: IdleLow + description: CK to 0 when idle + value: 0 + - name: IdleHigh + description: CK to 1 when idle + value: 1 enum/CRCNEXT: bit_size: 1 variants: - - name: TxBuffer - description: Next transmit value is from Tx buffer - value: 0 - - name: CRC - description: Next transmit value is from Tx CRC register - value: 1 + - name: TxBuffer + description: Next transmit value is from Tx buffer + value: 0 + - name: CRC + description: Next transmit value is from Tx CRC register + value: 1 enum/DATLEN: bit_size: 2 variants: - - name: SixteenBit - description: 16-bit data length - value: 0 - - name: TwentyFourBit - description: 24-bit data length - value: 1 - - name: ThirtyTwoBit - description: 32-bit data length - value: 2 + - name: SixteenBit + description: 16-bit data length + value: 0 + - name: TwentyFourBit + description: 24-bit data length + value: 1 + - name: ThirtyTwoBit + description: 32-bit data length + value: 2 enum/DFF: bit_size: 1 variants: - - name: EightBit - description: 8-bit data frame format is selected for transmission/reception - value: 0 - - name: SixteenBit - description: 16-bit data frame format is selected for transmission/reception - value: 1 + - name: EightBit + description: 8-bit data frame format is selected for transmission/reception + value: 0 + - name: SixteenBit + description: 16-bit data frame format is selected for transmission/reception + value: 1 enum/I2SCFG: bit_size: 2 variants: - - name: SlaveTx - description: Slave - transmit - value: 0 - - name: SlaveRx - description: Slave - receive - value: 1 - - name: MasterTx - description: Master - transmit - value: 2 - - name: MasterRx - description: Master - receive - value: 3 + - name: SlaveTx + description: Slave - transmit + value: 0 + - name: SlaveRx + description: Slave - receive + value: 1 + - name: MasterTx + description: Master - transmit + value: 2 + - name: MasterRx + description: Master - receive + value: 3 enum/I2SSTD: bit_size: 2 variants: - - name: Philips - description: I2S Philips standard - value: 0 - - name: MSB - description: MSB justified standard - value: 1 - - name: LSB - description: LSB justified standard - value: 2 - - name: PCM - description: PCM standard - value: 3 + - name: Philips + description: I2S Philips standard + value: 0 + - name: MSB + description: MSB justified standard + value: 1 + - name: LSB + description: LSB justified standard + value: 2 + - name: PCM + description: PCM standard + value: 3 enum/LSBFIRST: bit_size: 1 variants: - - name: MSBFirst - description: Data is transmitted/received with the MSB first - value: 0 - - name: LSBFirst - description: Data is transmitted/received with the LSB first - value: 1 + - name: MSBFirst + description: Data is transmitted/received with the MSB first + value: 0 + - name: LSBFirst + description: Data is transmitted/received with the LSB first + value: 1 enum/MSTR: bit_size: 1 variants: - - name: Slave - description: Slave configuration - value: 0 - - name: Master - description: Master configuration - value: 1 + - name: Slave + description: Slave configuration + value: 0 + - name: Master + description: Master configuration + value: 1 enum/ODD: bit_size: 1 variants: - - name: Even - description: Real divider value is I2SDIV * 2 - value: 0 - - name: Odd - description: Real divider value is (I2SDIV * 2) + 1 - value: 1 + - name: Even + description: Real divider value is I2SDIV * 2 + value: 0 + - name: Odd + description: Real divider value is (I2SDIV * 2) + 1 + value: 1 enum/PCMSYNC: bit_size: 1 variants: - - name: Short - description: Short frame synchronisation - value: 0 - - name: Long - description: Long frame synchronisation - value: 1 + - name: Short + description: Short frame synchronisation + value: 0 + - name: Long + description: Long frame synchronisation + value: 1 enum/RXONLY: bit_size: 1 variants: - - name: FullDuplex - description: Full duplex (Transmit and receive) - value: 0 - - name: OutputDisabled - description: Output disabled (Receive-only mode) - value: 1 + - name: FullDuplex + description: Full duplex (Transmit and receive) + value: 0 + - name: OutputDisabled + description: Output disabled (Receive-only mode) + value: 1 diff --git a/data/registers/spi_v1.yaml b/data/registers/spi_v1.yaml index 753a612..3e2d40d 100644 --- a/data/registers/spi_v1.yaml +++ b/data/registers/spi_v1.yaml @@ -1,472 +1,471 @@ ---- block/SPI: description: Serial peripheral interface items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2 - - name: SR - description: status register - byte_offset: 8 - fieldset: SR - - name: DR - description: data register - byte_offset: 12 - fieldset: DR - - name: CRCPR - description: CRC polynomial register - byte_offset: 16 - fieldset: CRCPR - - name: RXCRCR - description: RX CRC register - byte_offset: 20 - access: Read - fieldset: RXCRCR - - name: TXCRCR - description: TX CRC register - byte_offset: 24 - access: Read - fieldset: TXCRCR - - name: I2SCFGR - description: I2S configuration register - byte_offset: 28 - fieldset: I2SCFGR - - name: I2SPR - description: I2S prescaler register - byte_offset: 32 - fieldset: I2SPR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: SR + description: status register + byte_offset: 8 + fieldset: SR + - name: DR + description: data register + byte_offset: 12 + fieldset: DR + - name: CRCPR + description: CRC polynomial register + byte_offset: 16 + fieldset: CRCPR + - name: RXCRCR + description: RX CRC register + byte_offset: 20 + access: Read + fieldset: RXCRCR + - name: TXCRCR + description: TX CRC register + byte_offset: 24 + access: Read + fieldset: TXCRCR + - name: I2SCFGR + description: I2S configuration register + byte_offset: 28 + fieldset: I2SCFGR + - name: I2SPR + description: I2S prescaler register + byte_offset: 32 + fieldset: I2SPR fieldset/CR1: description: control register 1 fields: - - name: CPHA - description: Clock phase - bit_offset: 0 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 1 - bit_size: 1 - enum: CPOL - - name: MSTR - description: Master selection - bit_offset: 2 - bit_size: 1 - enum: MSTR - - name: BR - description: Baud rate control - bit_offset: 3 - bit_size: 3 - enum: BR - - name: SPE - description: SPI enable - bit_offset: 6 - bit_size: 1 - - name: LSBFIRST - description: Frame format - bit_offset: 7 - bit_size: 1 - enum: LSBFIRST - - name: SSI - description: Internal slave select - bit_offset: 8 - bit_size: 1 - - name: SSM - description: Software slave management - bit_offset: 9 - bit_size: 1 - - name: RXONLY - description: Receive only - bit_offset: 10 - bit_size: 1 - enum: RXONLY - - name: DFF - description: Data frame format - bit_offset: 11 - bit_size: 1 - enum: DFF - - name: CRCNEXT - description: CRC transfer next - bit_offset: 12 - bit_size: 1 - enum: CRCNEXT - - name: CRCEN - description: Hardware CRC calculation enable - bit_offset: 13 - bit_size: 1 - - name: BIDIOE - description: Output enable in bidirectional mode - bit_offset: 14 - bit_size: 1 - enum: BIDIOE - - name: BIDIMODE - description: Bidirectional data mode enable - bit_offset: 15 - bit_size: 1 - enum: BIDIMODE + - name: CPHA + description: Clock phase + bit_offset: 0 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 1 + bit_size: 1 + enum: CPOL + - name: MSTR + description: Master selection + bit_offset: 2 + bit_size: 1 + enum: MSTR + - name: BR + description: Baud rate control + bit_offset: 3 + bit_size: 3 + enum: BR + - name: SPE + description: SPI enable + bit_offset: 6 + bit_size: 1 + - name: LSBFIRST + description: Frame format + bit_offset: 7 + bit_size: 1 + enum: LSBFIRST + - name: SSI + description: Internal slave select + bit_offset: 8 + bit_size: 1 + - name: SSM + description: Software slave management + bit_offset: 9 + bit_size: 1 + - name: RXONLY + description: Receive only + bit_offset: 10 + bit_size: 1 + enum: RXONLY + - name: DFF + description: Data frame format + bit_offset: 11 + bit_size: 1 + enum: DFF + - name: CRCNEXT + description: CRC transfer next + bit_offset: 12 + bit_size: 1 + enum: CRCNEXT + - name: CRCEN + description: Hardware CRC calculation enable + bit_offset: 13 + bit_size: 1 + - name: BIDIOE + description: Output enable in bidirectional mode + bit_offset: 14 + bit_size: 1 + enum: BIDIOE + - name: BIDIMODE + description: Bidirectional data mode enable + bit_offset: 15 + bit_size: 1 + enum: BIDIMODE fieldset/CR2: description: control register 2 fields: - - name: RXDMAEN - description: Rx buffer DMA enable - bit_offset: 0 - bit_size: 1 - - name: TXDMAEN - description: Tx buffer DMA enable - bit_offset: 1 - bit_size: 1 - - name: SSOE - description: SS output enable - bit_offset: 2 - bit_size: 1 - - name: FRF - description: Frame format - bit_offset: 4 - bit_size: 1 - enum: FRF - - name: ERRIE - description: Error interrupt enable - bit_offset: 5 - bit_size: 1 - - name: RXNEIE - description: RX buffer not empty interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: Tx buffer empty interrupt enable - bit_offset: 7 - bit_size: 1 + - name: RXDMAEN + description: Rx buffer DMA enable + bit_offset: 0 + bit_size: 1 + - name: TXDMAEN + description: Tx buffer DMA enable + bit_offset: 1 + bit_size: 1 + - name: SSOE + description: SS output enable + bit_offset: 2 + bit_size: 1 + - name: FRF + description: Frame format + bit_offset: 4 + bit_size: 1 + enum: FRF + - name: ERRIE + description: Error interrupt enable + bit_offset: 5 + bit_size: 1 + - name: RXNEIE + description: RX buffer not empty interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: Tx buffer empty interrupt enable + bit_offset: 7 + bit_size: 1 fieldset/CRCPR: description: CRC polynomial register fields: - - name: CRCPOLY - description: CRC polynomial register - bit_offset: 0 - bit_size: 16 + - name: CRCPOLY + description: CRC polynomial register + bit_offset: 0 + bit_size: 16 fieldset/DR: description: data register fields: - - name: DR - description: Data register - bit_offset: 0 - bit_size: 16 + - name: DR + description: Data register + bit_offset: 0 + bit_size: 16 fieldset/I2SCFGR: description: I2S configuration register fields: - - name: CHLEN - description: Channel length (number of bits per audio channel) - bit_offset: 0 - bit_size: 1 - enum: CHLEN - - name: DATLEN - description: Data length to be transferred - bit_offset: 1 - bit_size: 2 - enum: DATLEN - - name: CKPOL - description: Steady state clock polarity - bit_offset: 3 - bit_size: 1 - enum: CKPOL - - name: I2SSTD - description: I2S standard selection - bit_offset: 4 - bit_size: 2 - enum: I2SSTD - - name: PCMSYNC - description: PCM frame synchronization - bit_offset: 7 - bit_size: 1 - enum: PCMSYNC - - name: I2SCFG - description: I2S configuration mode - bit_offset: 8 - bit_size: 2 - enum: I2SCFG - - name: I2SE - description: I2S Enable - bit_offset: 10 - bit_size: 1 - - name: I2SMOD - description: I2S mode selection - bit_offset: 11 - bit_size: 1 + - name: CHLEN + description: Channel length (number of bits per audio channel) + bit_offset: 0 + bit_size: 1 + enum: CHLEN + - name: DATLEN + description: Data length to be transferred + bit_offset: 1 + bit_size: 2 + enum: DATLEN + - name: CKPOL + description: Steady state clock polarity + bit_offset: 3 + bit_size: 1 + enum: CKPOL + - name: I2SSTD + description: I2S standard selection + bit_offset: 4 + bit_size: 2 + enum: I2SSTD + - name: PCMSYNC + description: PCM frame synchronization + bit_offset: 7 + bit_size: 1 + enum: PCMSYNC + - name: I2SCFG + description: I2S configuration mode + bit_offset: 8 + bit_size: 2 + enum: I2SCFG + - name: I2SE + description: I2S Enable + bit_offset: 10 + bit_size: 1 + - name: I2SMOD + description: I2S mode selection + bit_offset: 11 + bit_size: 1 fieldset/I2SPR: description: I2S prescaler register fields: - - name: I2SDIV - description: I2S Linear prescaler - bit_offset: 0 - bit_size: 8 - - name: ODD - description: Odd factor for the prescaler - bit_offset: 8 - bit_size: 1 - enum: ODD - - name: MCKOE - description: Master clock output enable - bit_offset: 9 - bit_size: 1 + - name: I2SDIV + description: I2S Linear prescaler + bit_offset: 0 + bit_size: 8 + - name: ODD + description: Odd factor for the prescaler + bit_offset: 8 + bit_size: 1 + enum: ODD + - name: MCKOE + description: Master clock output enable + bit_offset: 9 + bit_size: 1 fieldset/RXCRCR: description: RX CRC register fields: - - name: RxCRC - description: Rx CRC register - bit_offset: 0 - bit_size: 16 + - name: RxCRC + description: Rx CRC register + bit_offset: 0 + bit_size: 16 fieldset/SR: description: status register fields: - - name: RXNE - description: Receive buffer not empty - bit_offset: 0 - bit_size: 1 - - name: TXE - description: Transmit buffer empty - bit_offset: 1 - bit_size: 1 - - name: CHSIDE - description: Channel side - bit_offset: 2 - bit_size: 1 - enum: CHSIDE - - name: UDR - description: Underrun flag - bit_offset: 3 - bit_size: 1 - - name: CRCERR - description: CRC error flag - bit_offset: 4 - bit_size: 1 - - name: MODF - description: Mode fault - bit_offset: 5 - bit_size: 1 - - name: OVR - description: Overrun flag - bit_offset: 6 - bit_size: 1 - - name: BSY - description: Busy flag - bit_offset: 7 - bit_size: 1 - - name: FRE - description: TI frame format error - bit_offset: 8 - bit_size: 1 + - name: RXNE + description: Receive buffer not empty + bit_offset: 0 + bit_size: 1 + - name: TXE + description: Transmit buffer empty + bit_offset: 1 + bit_size: 1 + - name: CHSIDE + description: Channel side + bit_offset: 2 + bit_size: 1 + enum: CHSIDE + - name: UDR + description: Underrun flag + bit_offset: 3 + bit_size: 1 + - name: CRCERR + description: CRC error flag + bit_offset: 4 + bit_size: 1 + - name: MODF + description: Mode fault + bit_offset: 5 + bit_size: 1 + - name: OVR + description: Overrun flag + bit_offset: 6 + bit_size: 1 + - name: BSY + description: Busy flag + bit_offset: 7 + bit_size: 1 + - name: FRE + description: TI frame format error + bit_offset: 8 + bit_size: 1 fieldset/TXCRCR: description: TX CRC register fields: - - name: TxCRC - description: Tx CRC register - bit_offset: 0 - bit_size: 16 + - name: TxCRC + description: Tx CRC register + bit_offset: 0 + bit_size: 16 enum/BIDIMODE: bit_size: 1 variants: - - name: Unidirectional - description: 2-line unidirectional data mode selected - value: 0 - - name: Bidirectional - description: 1-line bidirectional data mode selected - value: 1 + - name: Unidirectional + description: 2-line unidirectional data mode selected + value: 0 + - name: Bidirectional + description: 1-line bidirectional data mode selected + value: 1 enum/BIDIOE: bit_size: 1 variants: - - name: OutputDisabled - description: Output disabled (receive-only mode) - value: 0 - - name: OutputEnabled - description: Output enabled (transmit-only mode) - value: 1 + - name: OutputDisabled + description: Output disabled (receive-only mode) + value: 0 + - name: OutputEnabled + description: Output enabled (transmit-only mode) + value: 1 enum/BR: bit_size: 3 variants: - - name: Div2 - description: f_PCLK / 2 - value: 0 - - name: Div4 - description: f_PCLK / 4 - value: 1 - - name: Div8 - description: f_PCLK / 8 - value: 2 - - name: Div16 - description: f_PCLK / 16 - value: 3 - - name: Div32 - description: f_PCLK / 32 - value: 4 - - name: Div64 - description: f_PCLK / 64 - value: 5 - - name: Div128 - description: f_PCLK / 128 - value: 6 - - name: Div256 - description: f_PCLK / 256 - value: 7 + - name: Div2 + description: f_PCLK / 2 + value: 0 + - name: Div4 + description: f_PCLK / 4 + value: 1 + - name: Div8 + description: f_PCLK / 8 + value: 2 + - name: Div16 + description: f_PCLK / 16 + value: 3 + - name: Div32 + description: f_PCLK / 32 + value: 4 + - name: Div64 + description: f_PCLK / 64 + value: 5 + - name: Div128 + description: f_PCLK / 128 + value: 6 + - name: Div256 + description: f_PCLK / 256 + value: 7 enum/CHLEN: bit_size: 1 variants: - - name: SixteenBit - description: 16-bit wide - value: 0 - - name: ThirtyTwoBit - description: 32-bit wide - value: 1 + - name: SixteenBit + description: 16-bit wide + value: 0 + - name: ThirtyTwoBit + description: 32-bit wide + value: 1 enum/CHSIDE: bit_size: 1 variants: - - name: Left - description: Channel left has to be transmitted or has been received - value: 0 - - name: Right - description: Channel right has to be transmitted or has been received - value: 1 + - name: Left + description: Channel left has to be transmitted or has been received + value: 0 + - name: Right + description: Channel right has to be transmitted or has been received + value: 1 enum/CKPOL: bit_size: 1 variants: - - name: IdleLow - description: I2S clock inactive state is low level - value: 0 - - name: IdleHigh - description: I2S clock inactive state is high level - value: 1 + - name: IdleLow + description: I2S clock inactive state is low level + value: 0 + - name: IdleHigh + description: I2S clock inactive state is high level + value: 1 enum/CPHA: bit_size: 1 variants: - - name: FirstEdge - description: The first clock transition is the first data capture edge - value: 0 - - name: SecondEdge - description: The second clock transition is the first data capture edge - value: 1 + - name: FirstEdge + description: The first clock transition is the first data capture edge + value: 0 + - name: SecondEdge + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: IdleLow - description: CK to 0 when idle - value: 0 - - name: IdleHigh - description: CK to 1 when idle - value: 1 + - name: IdleLow + description: CK to 0 when idle + value: 0 + - name: IdleHigh + description: CK to 1 when idle + value: 1 enum/CRCNEXT: bit_size: 1 variants: - - name: TxBuffer - description: Next transmit value is from Tx buffer - value: 0 - - name: CRC - description: Next transmit value is from Tx CRC register - value: 1 + - name: TxBuffer + description: Next transmit value is from Tx buffer + value: 0 + - name: CRC + description: Next transmit value is from Tx CRC register + value: 1 enum/DATLEN: bit_size: 2 variants: - - name: SixteenBit - description: 16-bit data length - value: 0 - - name: TwentyFourBit - description: 24-bit data length - value: 1 - - name: ThirtyTwoBit - description: 32-bit data length - value: 2 + - name: SixteenBit + description: 16-bit data length + value: 0 + - name: TwentyFourBit + description: 24-bit data length + value: 1 + - name: ThirtyTwoBit + description: 32-bit data length + value: 2 enum/DFF: bit_size: 1 variants: - - name: EightBit - description: 8-bit data frame format is selected for transmission/reception - value: 0 - - name: SixteenBit - description: 16-bit data frame format is selected for transmission/reception - value: 1 + - name: EightBit + description: 8-bit data frame format is selected for transmission/reception + value: 0 + - name: SixteenBit + description: 16-bit data frame format is selected for transmission/reception + value: 1 enum/FRF: bit_size: 1 variants: - - name: Motorola - description: SPI Motorola mode - value: 0 - - name: TI - description: SPI TI mode - value: 1 + - name: Motorola + description: SPI Motorola mode + value: 0 + - name: TI + description: SPI TI mode + value: 1 enum/I2SCFG: bit_size: 2 variants: - - name: SlaveTx - description: Slave - transmit - value: 0 - - name: SlaveRx - description: Slave - receive - value: 1 - - name: MasterTx - description: Master - transmit - value: 2 - - name: MasterRx - description: Master - receive - value: 3 + - name: SlaveTx + description: Slave - transmit + value: 0 + - name: SlaveRx + description: Slave - receive + value: 1 + - name: MasterTx + description: Master - transmit + value: 2 + - name: MasterRx + description: Master - receive + value: 3 enum/I2SSTD: bit_size: 2 variants: - - name: Philips - description: I2S Philips standard - value: 0 - - name: MSB - description: MSB justified standard - value: 1 - - name: LSB - description: LSB justified standard - value: 2 - - name: PCM - description: PCM standard - value: 3 + - name: Philips + description: I2S Philips standard + value: 0 + - name: MSB + description: MSB justified standard + value: 1 + - name: LSB + description: LSB justified standard + value: 2 + - name: PCM + description: PCM standard + value: 3 enum/LSBFIRST: bit_size: 1 variants: - - name: MSBFirst - description: Data is transmitted/received with the MSB first - value: 0 - - name: LSBFirst - description: Data is transmitted/received with the LSB first - value: 1 + - name: MSBFirst + description: Data is transmitted/received with the MSB first + value: 0 + - name: LSBFirst + description: Data is transmitted/received with the LSB first + value: 1 enum/MSTR: bit_size: 1 variants: - - name: Slave - description: Slave configuration - value: 0 - - name: Master - description: Master configuration - value: 1 + - name: Slave + description: Slave configuration + value: 0 + - name: Master + description: Master configuration + value: 1 enum/ODD: bit_size: 1 variants: - - name: Even - description: Real divider value is I2SDIV * 2 - value: 0 - - name: Odd - description: Real divider value is (I2SDIV * 2) + 1 - value: 1 + - name: Even + description: Real divider value is I2SDIV * 2 + value: 0 + - name: Odd + description: Real divider value is (I2SDIV * 2) + 1 + value: 1 enum/PCMSYNC: bit_size: 1 variants: - - name: Short - description: Short frame synchronisation - value: 0 - - name: Long - description: Long frame synchronisation - value: 1 + - name: Short + description: Short frame synchronisation + value: 0 + - name: Long + description: Long frame synchronisation + value: 1 enum/RXONLY: bit_size: 1 variants: - - name: FullDuplex - description: Full duplex (Transmit and receive) - value: 0 - - name: OutputDisabled - description: Output disabled (Receive-only mode) - value: 1 + - name: FullDuplex + description: Full duplex (Transmit and receive) + value: 0 + - name: OutputDisabled + description: Output disabled (Receive-only mode) + value: 1 diff --git a/data/registers/spi_v2.yaml b/data/registers/spi_v2.yaml index f0c5bc5..625e39b 100644 --- a/data/registers/spi_v2.yaml +++ b/data/registers/spi_v2.yaml @@ -1,639 +1,638 @@ ---- block/SPI: description: Serial peripheral interface items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2 - - name: SR - description: status register - byte_offset: 8 - fieldset: SR - - name: DR - description: data register - byte_offset: 12 - fieldset: DR - - name: CRCPR - description: CRC polynomial register - byte_offset: 16 - fieldset: CRCPR - - name: RXCRCR - description: RX CRC register - byte_offset: 20 - access: Read - fieldset: RXCRCR - - name: TXCRCR - description: TX CRC register - byte_offset: 24 - access: Read - fieldset: TXCRCR - - name: I2SCFGR - description: I2S configuration register - byte_offset: 28 - fieldset: I2SCFGR - - name: I2SPR - description: I2S prescaler register - byte_offset: 32 - fieldset: I2SPR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: SR + description: status register + byte_offset: 8 + fieldset: SR + - name: DR + description: data register + byte_offset: 12 + fieldset: DR + - name: CRCPR + description: CRC polynomial register + byte_offset: 16 + fieldset: CRCPR + - name: RXCRCR + description: RX CRC register + byte_offset: 20 + access: Read + fieldset: RXCRCR + - name: TXCRCR + description: TX CRC register + byte_offset: 24 + access: Read + fieldset: TXCRCR + - name: I2SCFGR + description: I2S configuration register + byte_offset: 28 + fieldset: I2SCFGR + - name: I2SPR + description: I2S prescaler register + byte_offset: 32 + fieldset: I2SPR fieldset/CR1: description: control register 1 fields: - - name: CPHA - description: Clock phase - bit_offset: 0 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 1 - bit_size: 1 - enum: CPOL - - name: MSTR - description: Master selection - bit_offset: 2 - bit_size: 1 - enum: MSTR - - name: BR - description: Baud rate control - bit_offset: 3 - bit_size: 3 - enum: BR - - name: SPE - description: SPI enable - bit_offset: 6 - bit_size: 1 - - name: LSBFIRST - description: Frame format - bit_offset: 7 - bit_size: 1 - enum: LSBFIRST - - name: SSI - description: Internal slave select - bit_offset: 8 - bit_size: 1 - - name: SSM - description: Software slave management - bit_offset: 9 - bit_size: 1 - - name: RXONLY - description: Receive only - bit_offset: 10 - bit_size: 1 - enum: RXONLY - - name: CRCL - description: CRC length - bit_offset: 11 - bit_size: 1 - enum: CRCL - - name: CRCNEXT - description: CRC transfer next - bit_offset: 12 - bit_size: 1 - enum: CRCNEXT - - name: CRCEN - description: Hardware CRC calculation enable - bit_offset: 13 - bit_size: 1 - - name: BIDIOE - description: Output enable in bidirectional mode - bit_offset: 14 - bit_size: 1 - enum: BIDIOE - - name: BIDIMODE - description: Bidirectional data mode enable - bit_offset: 15 - bit_size: 1 - enum: BIDIMODE + - name: CPHA + description: Clock phase + bit_offset: 0 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 1 + bit_size: 1 + enum: CPOL + - name: MSTR + description: Master selection + bit_offset: 2 + bit_size: 1 + enum: MSTR + - name: BR + description: Baud rate control + bit_offset: 3 + bit_size: 3 + enum: BR + - name: SPE + description: SPI enable + bit_offset: 6 + bit_size: 1 + - name: LSBFIRST + description: Frame format + bit_offset: 7 + bit_size: 1 + enum: LSBFIRST + - name: SSI + description: Internal slave select + bit_offset: 8 + bit_size: 1 + - name: SSM + description: Software slave management + bit_offset: 9 + bit_size: 1 + - name: RXONLY + description: Receive only + bit_offset: 10 + bit_size: 1 + enum: RXONLY + - name: CRCL + description: CRC length + bit_offset: 11 + bit_size: 1 + enum: CRCL + - name: CRCNEXT + description: CRC transfer next + bit_offset: 12 + bit_size: 1 + enum: CRCNEXT + - name: CRCEN + description: Hardware CRC calculation enable + bit_offset: 13 + bit_size: 1 + - name: BIDIOE + description: Output enable in bidirectional mode + bit_offset: 14 + bit_size: 1 + enum: BIDIOE + - name: BIDIMODE + description: Bidirectional data mode enable + bit_offset: 15 + bit_size: 1 + enum: BIDIMODE fieldset/CR2: description: control register 2 fields: - - name: RXDMAEN - description: Rx buffer DMA enable - bit_offset: 0 - bit_size: 1 - - name: TXDMAEN - description: Tx buffer DMA enable - bit_offset: 1 - bit_size: 1 - - name: SSOE - description: SS output enable - bit_offset: 2 - bit_size: 1 - - name: NSSP - description: NSS pulse management - bit_offset: 3 - bit_size: 1 - - name: FRF - description: Frame format - bit_offset: 4 - bit_size: 1 - enum: FRF - - name: ERRIE - description: Error interrupt enable - bit_offset: 5 - bit_size: 1 - - name: RXNEIE - description: RX buffer not empty interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: Tx buffer empty interrupt enable - bit_offset: 7 - bit_size: 1 - - name: DS - description: Data size - bit_offset: 8 - bit_size: 4 - enum: DS - - name: FRXTH - description: FIFO reception threshold - bit_offset: 12 - bit_size: 1 - enum: FRXTH - - name: LDMA_RX - description: Last DMA transfer for reception - bit_offset: 13 - bit_size: 1 - enum: LDMA_RX - - name: LDMA_TX - description: Last DMA transfer for transmission - bit_offset: 14 - bit_size: 1 - enum: LDMA_TX + - name: RXDMAEN + description: Rx buffer DMA enable + bit_offset: 0 + bit_size: 1 + - name: TXDMAEN + description: Tx buffer DMA enable + bit_offset: 1 + bit_size: 1 + - name: SSOE + description: SS output enable + bit_offset: 2 + bit_size: 1 + - name: NSSP + description: NSS pulse management + bit_offset: 3 + bit_size: 1 + - name: FRF + description: Frame format + bit_offset: 4 + bit_size: 1 + enum: FRF + - name: ERRIE + description: Error interrupt enable + bit_offset: 5 + bit_size: 1 + - name: RXNEIE + description: RX buffer not empty interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: Tx buffer empty interrupt enable + bit_offset: 7 + bit_size: 1 + - name: DS + description: Data size + bit_offset: 8 + bit_size: 4 + enum: DS + - name: FRXTH + description: FIFO reception threshold + bit_offset: 12 + bit_size: 1 + enum: FRXTH + - name: LDMA_RX + description: Last DMA transfer for reception + bit_offset: 13 + bit_size: 1 + enum: LDMA_RX + - name: LDMA_TX + description: Last DMA transfer for transmission + bit_offset: 14 + bit_size: 1 + enum: LDMA_TX fieldset/CRCPR: description: CRC polynomial register fields: - - name: CRCPOLY - description: CRC polynomial register - bit_offset: 0 - bit_size: 16 + - name: CRCPOLY + description: CRC polynomial register + bit_offset: 0 + bit_size: 16 fieldset/DR: description: data register fields: - - name: DR - description: Data register - bit_offset: 0 - bit_size: 16 + - name: DR + description: Data register + bit_offset: 0 + bit_size: 16 fieldset/I2SCFGR: description: I2S configuration register fields: - - name: CHLEN - description: Channel length (number of bits per audio channel) - bit_offset: 0 - bit_size: 1 - enum: CHLEN - - name: DATLEN - description: Data length to be transferred - bit_offset: 1 - bit_size: 2 - enum: DATLEN - - name: CKPOL - description: Steady state clock polarity - bit_offset: 3 - bit_size: 1 - enum: CKPOL - - name: I2SSTD - description: I2S standard selection - bit_offset: 4 - bit_size: 2 - enum: ISSTD - - name: PCMSYNC - description: PCM frame synchronization - bit_offset: 7 - bit_size: 1 - enum: PCMSYNC - - name: I2SCFG - description: I2S configuration mode - bit_offset: 8 - bit_size: 2 - enum: ISCFG - - name: I2SE - description: I2S Enable - bit_offset: 10 - bit_size: 1 - enum: ISE - - name: I2SMOD - description: I2S mode selection - bit_offset: 11 - bit_size: 1 - enum: ISMOD - - name: ASTRTEN - description: Asynchronous start enable - bit_offset: 12 - bit_size: 1 + - name: CHLEN + description: Channel length (number of bits per audio channel) + bit_offset: 0 + bit_size: 1 + enum: CHLEN + - name: DATLEN + description: Data length to be transferred + bit_offset: 1 + bit_size: 2 + enum: DATLEN + - name: CKPOL + description: Steady state clock polarity + bit_offset: 3 + bit_size: 1 + enum: CKPOL + - name: I2SSTD + description: I2S standard selection + bit_offset: 4 + bit_size: 2 + enum: ISSTD + - name: PCMSYNC + description: PCM frame synchronization + bit_offset: 7 + bit_size: 1 + enum: PCMSYNC + - name: I2SCFG + description: I2S configuration mode + bit_offset: 8 + bit_size: 2 + enum: ISCFG + - name: I2SE + description: I2S Enable + bit_offset: 10 + bit_size: 1 + enum: ISE + - name: I2SMOD + description: I2S mode selection + bit_offset: 11 + bit_size: 1 + enum: ISMOD + - name: ASTRTEN + description: Asynchronous start enable + bit_offset: 12 + bit_size: 1 fieldset/I2SPR: description: I2S prescaler register fields: - - name: I2SDIV - description: I2S Linear prescaler - bit_offset: 0 - bit_size: 8 - - name: ODD - description: Odd factor for the prescaler - bit_offset: 8 - bit_size: 1 - enum: ODD - - name: MCKOE - description: Master clock output enable - bit_offset: 9 - bit_size: 1 - enum: MCKOE + - name: I2SDIV + description: I2S Linear prescaler + bit_offset: 0 + bit_size: 8 + - name: ODD + description: Odd factor for the prescaler + bit_offset: 8 + bit_size: 1 + enum: ODD + - name: MCKOE + description: Master clock output enable + bit_offset: 9 + bit_size: 1 + enum: MCKOE fieldset/RXCRCR: description: RX CRC register fields: - - name: RxCRC - description: Rx CRC register - bit_offset: 0 - bit_size: 16 + - name: RxCRC + description: Rx CRC register + bit_offset: 0 + bit_size: 16 fieldset/SR: description: status register fields: - - name: RXNE - description: Receive buffer not empty - bit_offset: 0 - bit_size: 1 - - name: TXE - description: Transmit buffer empty - bit_offset: 1 - bit_size: 1 - - name: CHSIDE - description: Channel side - bit_offset: 2 - bit_size: 1 - enum: CHSIDE - - name: UDR - description: Underrun flag - bit_offset: 3 - bit_size: 1 - - name: CRCERR - description: CRC error flag - bit_offset: 4 - bit_size: 1 - - name: MODF - description: Mode fault - bit_offset: 5 - bit_size: 1 - - name: OVR - description: Overrun flag - bit_offset: 6 - bit_size: 1 - - name: BSY - description: Busy flag - bit_offset: 7 - bit_size: 1 - - name: FRE - description: frame format error - bit_offset: 8 - bit_size: 1 - - name: FRLVL - description: FIFO reception level - bit_offset: 9 - bit_size: 2 - enum: FRLVL - - name: FTLVL - description: FIFO Transmission Level - bit_offset: 11 - bit_size: 2 - enum: FTLVL + - name: RXNE + description: Receive buffer not empty + bit_offset: 0 + bit_size: 1 + - name: TXE + description: Transmit buffer empty + bit_offset: 1 + bit_size: 1 + - name: CHSIDE + description: Channel side + bit_offset: 2 + bit_size: 1 + enum: CHSIDE + - name: UDR + description: Underrun flag + bit_offset: 3 + bit_size: 1 + - name: CRCERR + description: CRC error flag + bit_offset: 4 + bit_size: 1 + - name: MODF + description: Mode fault + bit_offset: 5 + bit_size: 1 + - name: OVR + description: Overrun flag + bit_offset: 6 + bit_size: 1 + - name: BSY + description: Busy flag + bit_offset: 7 + bit_size: 1 + - name: FRE + description: frame format error + bit_offset: 8 + bit_size: 1 + - name: FRLVL + description: FIFO reception level + bit_offset: 9 + bit_size: 2 + enum: FRLVL + - name: FTLVL + description: FIFO Transmission Level + bit_offset: 11 + bit_size: 2 + enum: FTLVL fieldset/TXCRCR: description: TX CRC register fields: - - name: TxCRC - description: Tx CRC register - bit_offset: 0 - bit_size: 16 + - name: TxCRC + description: Tx CRC register + bit_offset: 0 + bit_size: 16 enum/BIDIMODE: bit_size: 1 variants: - - name: Unidirectional - description: 2-line unidirectional data mode selected - value: 0 - - name: Bidirectional - description: 1-line bidirectional data mode selected - value: 1 + - name: Unidirectional + description: 2-line unidirectional data mode selected + value: 0 + - name: Bidirectional + description: 1-line bidirectional data mode selected + value: 1 enum/BIDIOE: bit_size: 1 variants: - - name: OutputDisabled - description: Output disabled (receive-only mode) - value: 0 - - name: OutputEnabled - description: Output enabled (transmit-only mode) - value: 1 + - name: OutputDisabled + description: Output disabled (receive-only mode) + value: 0 + - name: OutputEnabled + description: Output enabled (transmit-only mode) + value: 1 enum/BR: bit_size: 3 variants: - - name: Div2 - description: f_PCLK / 2 - value: 0 - - name: Div4 - description: f_PCLK / 4 - value: 1 - - name: Div8 - description: f_PCLK / 8 - value: 2 - - name: Div16 - description: f_PCLK / 16 - value: 3 - - name: Div32 - description: f_PCLK / 32 - value: 4 - - name: Div64 - description: f_PCLK / 64 - value: 5 - - name: Div128 - description: f_PCLK / 128 - value: 6 - - name: Div256 - description: f_PCLK / 256 - value: 7 + - name: Div2 + description: f_PCLK / 2 + value: 0 + - name: Div4 + description: f_PCLK / 4 + value: 1 + - name: Div8 + description: f_PCLK / 8 + value: 2 + - name: Div16 + description: f_PCLK / 16 + value: 3 + - name: Div32 + description: f_PCLK / 32 + value: 4 + - name: Div64 + description: f_PCLK / 64 + value: 5 + - name: Div128 + description: f_PCLK / 128 + value: 6 + - name: Div256 + description: f_PCLK / 256 + value: 7 enum/CHLEN: bit_size: 1 variants: - - name: SixteenBit - description: 16-bit wide - value: 0 - - name: ThirtyTwoBit - description: 32-bit wide - value: 1 + - name: SixteenBit + description: 16-bit wide + value: 0 + - name: ThirtyTwoBit + description: 32-bit wide + value: 1 enum/CHSIDE: bit_size: 1 variants: - - name: Left - description: Channel left has to be transmitted or has been received - value: 0 - - name: Right - description: Channel right has to be transmitted or has been received - value: 1 + - name: Left + description: Channel left has to be transmitted or has been received + value: 0 + - name: Right + description: Channel right has to be transmitted or has been received + value: 1 enum/CKPOL: bit_size: 1 variants: - - name: IdleLow - description: I2S clock inactive state is low level - value: 0 - - name: IdleHigh - description: I2S clock inactive state is high level - value: 1 + - name: IdleLow + description: I2S clock inactive state is low level + value: 0 + - name: IdleHigh + description: I2S clock inactive state is high level + value: 1 enum/CPHA: bit_size: 1 variants: - - name: FirstEdge - description: The first clock transition is the first data capture edge - value: 0 - - name: SecondEdge - description: The second clock transition is the first data capture edge - value: 1 + - name: FirstEdge + description: The first clock transition is the first data capture edge + value: 0 + - name: SecondEdge + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: IdleLow - description: CK to 0 when idle - value: 0 - - name: IdleHigh - description: CK to 1 when idle - value: 1 + - name: IdleLow + description: CK to 0 when idle + value: 0 + - name: IdleHigh + description: CK to 1 when idle + value: 1 enum/CRCL: bit_size: 1 variants: - - name: EightBit - description: 8-bit CRC length - value: 0 - - name: SixteenBit - description: 16-bit CRC length - value: 1 + - name: EightBit + description: 8-bit CRC length + value: 0 + - name: SixteenBit + description: 16-bit CRC length + value: 1 enum/CRCNEXT: bit_size: 1 variants: - - name: TxBuffer - description: Next transmit value is from Tx buffer - value: 0 - - name: CRC - description: Next transmit value is from Tx CRC register - value: 1 + - name: TxBuffer + description: Next transmit value is from Tx buffer + value: 0 + - name: CRC + description: Next transmit value is from Tx CRC register + value: 1 enum/DATLEN: bit_size: 2 variants: - - name: SixteenBit - description: 16-bit data length - value: 0 - - name: TwentyFourBit - description: 24-bit data length - value: 1 - - name: ThirtyTwoBit - description: 32-bit data length - value: 2 + - name: SixteenBit + description: 16-bit data length + value: 0 + - name: TwentyFourBit + description: 24-bit data length + value: 1 + - name: ThirtyTwoBit + description: 32-bit data length + value: 2 enum/DS: bit_size: 4 variants: - - name: FourBit - description: 4-bit - value: 3 - - name: FiveBit - description: 5-bit - value: 4 - - name: SixBit - description: 6-bit - value: 5 - - name: SevenBit - description: 7-bit - value: 6 - - name: EightBit - description: 8-bit - value: 7 - - name: NineBit - description: 9-bit - value: 8 - - name: TenBit - description: 10-bit - value: 9 - - name: ElevenBit - description: 11-bit - value: 10 - - name: TwelveBit - description: 12-bit - value: 11 - - name: ThirteenBit - description: 13-bit - value: 12 - - name: FourteenBit - description: 14-bit - value: 13 - - name: FifteenBit - description: 15-bit - value: 14 - - name: SixteenBit - description: 16-bit - value: 15 + - name: FourBit + description: 4-bit + value: 3 + - name: FiveBit + description: 5-bit + value: 4 + - name: SixBit + description: 6-bit + value: 5 + - name: SevenBit + description: 7-bit + value: 6 + - name: EightBit + description: 8-bit + value: 7 + - name: NineBit + description: 9-bit + value: 8 + - name: TenBit + description: 10-bit + value: 9 + - name: ElevenBit + description: 11-bit + value: 10 + - name: TwelveBit + description: 12-bit + value: 11 + - name: ThirteenBit + description: 13-bit + value: 12 + - name: FourteenBit + description: 14-bit + value: 13 + - name: FifteenBit + description: 15-bit + value: 14 + - name: SixteenBit + description: 16-bit + value: 15 enum/FRF: bit_size: 1 variants: - - name: Motorola - description: SPI Motorola mode - value: 0 - - name: TI - description: SPI TI mode - value: 1 + - name: Motorola + description: SPI Motorola mode + value: 0 + - name: TI + description: SPI TI mode + value: 1 enum/FRLVL: bit_size: 2 variants: - - name: Empty - description: Rx FIFO Empty - value: 0 - - name: Quarter - description: Rx 1/4 FIFO - value: 1 - - name: Half - description: Rx 1/2 FIFO - value: 2 - - name: Full - description: Rx FIFO full - value: 3 + - name: Empty + description: Rx FIFO Empty + value: 0 + - name: Quarter + description: Rx 1/4 FIFO + value: 1 + - name: Half + description: Rx 1/2 FIFO + value: 2 + - name: Full + description: Rx FIFO full + value: 3 enum/FRXTH: bit_size: 1 variants: - - name: Half - description: RXNE event is generated if the FIFO level is greater than or equal to 1/2 (16-bit) - value: 0 - - name: Quarter - description: RXNE event is generated if the FIFO level is greater than or equal to 1/4 (8-bit) - value: 1 + - name: Half + description: RXNE event is generated if the FIFO level is greater than or equal to 1/2 (16-bit) + value: 0 + - name: Quarter + description: RXNE event is generated if the FIFO level is greater than or equal to 1/4 (8-bit) + value: 1 enum/FTLVL: bit_size: 2 variants: - - name: Empty - description: Tx FIFO Empty - value: 0 - - name: Quarter - description: Tx 1/4 FIFO - value: 1 - - name: Half - description: Tx 1/2 FIFO - value: 2 - - name: Full - description: Tx FIFO full - value: 3 + - name: Empty + description: Tx FIFO Empty + value: 0 + - name: Quarter + description: Tx 1/4 FIFO + value: 1 + - name: Half + description: Tx 1/2 FIFO + value: 2 + - name: Full + description: Tx FIFO full + value: 3 enum/ISCFG: bit_size: 2 variants: - - name: SlaveTx - description: Slave - transmit - value: 0 - - name: SlaveRx - description: Slave - receive - value: 1 - - name: MasterTx - description: Master - transmit - value: 2 - - name: MasterRx - description: Master - receive - value: 3 + - name: SlaveTx + description: Slave - transmit + value: 0 + - name: SlaveRx + description: Slave - receive + value: 1 + - name: MasterTx + description: Master - transmit + value: 2 + - name: MasterRx + description: Master - receive + value: 3 enum/ISE: bit_size: 1 variants: - - name: Disabled - description: I2S peripheral is disabled - value: 0 - - name: Enabled - description: I2S peripheral is enabled - value: 1 + - name: Disabled + description: I2S peripheral is disabled + value: 0 + - name: Enabled + description: I2S peripheral is enabled + value: 1 enum/ISMOD: bit_size: 1 variants: - - name: SPIMode - description: SPI mode is selected - value: 0 - - name: I2SMode - description: I2S mode is selected - value: 1 + - name: SPIMode + description: SPI mode is selected + value: 0 + - name: I2SMode + description: I2S mode is selected + value: 1 enum/ISSTD: bit_size: 2 variants: - - name: Philips - description: I2S Philips standard - value: 0 - - name: MSB - description: MSB justified standard - value: 1 - - name: LSB - description: LSB justified standard - value: 2 - - name: PCM - description: PCM standard - value: 3 + - name: Philips + description: I2S Philips standard + value: 0 + - name: MSB + description: MSB justified standard + value: 1 + - name: LSB + description: LSB justified standard + value: 2 + - name: PCM + description: PCM standard + value: 3 enum/LDMA_RX: bit_size: 1 variants: - - name: Even - description: Number of data to transfer for receive is even - value: 0 - - name: Odd - description: Number of data to transfer for receive is odd - value: 1 + - name: Even + description: Number of data to transfer for receive is even + value: 0 + - name: Odd + description: Number of data to transfer for receive is odd + value: 1 enum/LDMA_TX: bit_size: 1 variants: - - name: Even - description: Number of data to transfer for transmit is even - value: 0 - - name: Odd - description: Number of data to transfer for transmit is odd - value: 1 + - name: Even + description: Number of data to transfer for transmit is even + value: 0 + - name: Odd + description: Number of data to transfer for transmit is odd + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MSBFirst - description: Data is transmitted/received with the MSB first - value: 0 - - name: LSBFirst - description: Data is transmitted/received with the LSB first - value: 1 + - name: MSBFirst + description: Data is transmitted/received with the MSB first + value: 0 + - name: LSBFirst + description: Data is transmitted/received with the LSB first + value: 1 enum/MCKOE: bit_size: 1 variants: - - name: Disabled - description: Master clock output is disabled - value: 0 - - name: Enabled - description: Master clock output is enabled - value: 1 + - name: Disabled + description: Master clock output is disabled + value: 0 + - name: Enabled + description: Master clock output is enabled + value: 1 enum/MSTR: bit_size: 1 variants: - - name: Slave - description: Slave configuration - value: 0 - - name: Master - description: Master configuration - value: 1 + - name: Slave + description: Slave configuration + value: 0 + - name: Master + description: Master configuration + value: 1 enum/ODD: bit_size: 1 variants: - - name: Even - description: Real divider value is I2SDIV * 2 - value: 0 - - name: Odd - description: Real divider value is (I2SDIV * 2) + 1 - value: 1 + - name: Even + description: Real divider value is I2SDIV * 2 + value: 0 + - name: Odd + description: Real divider value is (I2SDIV * 2) + 1 + value: 1 enum/PCMSYNC: bit_size: 1 variants: - - name: Short - description: Short frame synchronisation - value: 0 - - name: Long - description: Long frame synchronisation - value: 1 + - name: Short + description: Short frame synchronisation + value: 0 + - name: Long + description: Long frame synchronisation + value: 1 enum/RXONLY: bit_size: 1 variants: - - name: FullDuplex - description: Full duplex (Transmit and receive) - value: 0 - - name: OutputDisabled - description: Output disabled (Receive-only mode) - value: 1 + - name: FullDuplex + description: Full duplex (Transmit and receive) + value: 0 + - name: OutputDisabled + description: Output disabled (Receive-only mode) + value: 1 diff --git a/data/registers/spi_v3.yaml b/data/registers/spi_v3.yaml index a1336e1..b0b7ce4 100644 --- a/data/registers/spi_v3.yaml +++ b/data/registers/spi_v3.yaml @@ -1,675 +1,674 @@ ---- block/SPI: description: Serial peripheral interface items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CFG1 - description: configuration register 1 - byte_offset: 8 - fieldset: CFG1 - - name: CFG2 - description: configuration register 2 - byte_offset: 12 - fieldset: CFG2 - - name: IER - description: Interrupt Enable Register - byte_offset: 16 - fieldset: IER - - name: SR - description: Status Register - byte_offset: 20 - access: Read - fieldset: SR - - name: IFCR - description: Interrupt/Status Flags Clear Register - byte_offset: 24 - access: Write - fieldset: IFCR - - name: TXDR - description: Transmit Data Register - byte_offset: 32 - access: Write - fieldset: TXDR - - name: RXDR - description: Receive Data Register - byte_offset: 48 - access: Read - fieldset: RXDR - - name: CRCPOLY - description: Polynomial Register - byte_offset: 64 - fieldset: CRCPOLY - - name: TXCRC - description: Transmitter CRC Register - byte_offset: 68 - fieldset: TXCRC - - name: RXCRC - description: Receiver CRC Register - byte_offset: 72 - fieldset: RXCRC - - name: UDRDR - description: Underrun Data Register - byte_offset: 76 - fieldset: UDRDR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CFG1 + description: configuration register 1 + byte_offset: 8 + fieldset: CFG1 + - name: CFG2 + description: configuration register 2 + byte_offset: 12 + fieldset: CFG2 + - name: IER + description: Interrupt Enable Register + byte_offset: 16 + fieldset: IER + - name: SR + description: Status Register + byte_offset: 20 + access: Read + fieldset: SR + - name: IFCR + description: Interrupt/Status Flags Clear Register + byte_offset: 24 + access: Write + fieldset: IFCR + - name: TXDR + description: Transmit Data Register + byte_offset: 32 + access: Write + fieldset: TXDR + - name: RXDR + description: Receive Data Register + byte_offset: 48 + access: Read + fieldset: RXDR + - name: CRCPOLY + description: Polynomial Register + byte_offset: 64 + fieldset: CRCPOLY + - name: TXCRC + description: Transmitter CRC Register + byte_offset: 68 + fieldset: TXCRC + - name: RXCRC + description: Receiver CRC Register + byte_offset: 72 + fieldset: RXCRC + - name: UDRDR + description: Underrun Data Register + byte_offset: 76 + fieldset: UDRDR fieldset/CFG1: description: configuration register 1 fields: - - name: DSIZE - description: Number of bits in at single SPI data frame - bit_offset: 0 - bit_size: 5 - - name: FTHLV - description: threshold level - bit_offset: 5 - bit_size: 4 - enum: FTHLV - - name: UDRCFG - description: Behavior of slave transmitter at underrun condition - bit_offset: 9 - bit_size: 2 - enum: UDRCFG - - name: UDRDET - description: Detection of underrun condition at slave transmitter - bit_offset: 11 - bit_size: 2 - enum: UDRDET - - name: RXDMAEN - description: Rx DMA stream enable - bit_offset: 14 - bit_size: 1 - - name: TXDMAEN - description: Tx DMA stream enable - bit_offset: 15 - bit_size: 1 - - name: CRCSIZE - description: Length of CRC frame to be transacted and compared - bit_offset: 16 - bit_size: 5 - - name: CRCEN - description: Hardware CRC computation enable - bit_offset: 22 - bit_size: 1 - - name: MBR - description: Master baud rate - bit_offset: 28 - bit_size: 3 - enum: MBR + - name: DSIZE + description: Number of bits in at single SPI data frame + bit_offset: 0 + bit_size: 5 + - name: FTHLV + description: threshold level + bit_offset: 5 + bit_size: 4 + enum: FTHLV + - name: UDRCFG + description: Behavior of slave transmitter at underrun condition + bit_offset: 9 + bit_size: 2 + enum: UDRCFG + - name: UDRDET + description: Detection of underrun condition at slave transmitter + bit_offset: 11 + bit_size: 2 + enum: UDRDET + - name: RXDMAEN + description: Rx DMA stream enable + bit_offset: 14 + bit_size: 1 + - name: TXDMAEN + description: Tx DMA stream enable + bit_offset: 15 + bit_size: 1 + - name: CRCSIZE + description: Length of CRC frame to be transacted and compared + bit_offset: 16 + bit_size: 5 + - name: CRCEN + description: Hardware CRC computation enable + bit_offset: 22 + bit_size: 1 + - name: MBR + description: Master baud rate + bit_offset: 28 + bit_size: 3 + enum: MBR fieldset/CFG2: description: configuration register 2 fields: - - name: MSSI - description: Master SS Idleness - bit_offset: 0 - bit_size: 4 - - name: MIDI - description: Master Inter-Data Idleness - bit_offset: 4 - bit_size: 4 - - name: IOSWP - description: Swap functionality of MISO and MOSI pins - bit_offset: 15 - bit_size: 1 - - name: COMM - description: SPI Communication Mode - bit_offset: 17 - bit_size: 2 - enum: COMM - - name: SP - description: Serial Protocol - bit_offset: 19 - bit_size: 3 - enum: SP - - name: MASTER - description: SPI Master - bit_offset: 22 - bit_size: 1 - enum: MASTER - - name: LSBFIRST - description: Data frame format - bit_offset: 23 - bit_size: 1 - enum: LSBFIRST - - name: CPHA - description: Clock phase - bit_offset: 24 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 25 - bit_size: 1 - enum: CPOL - - name: SSM - description: Software management of SS signal input - bit_offset: 26 - bit_size: 1 - - name: SSIOP - description: SS input/output polarity - bit_offset: 28 - bit_size: 1 - enum: SSIOP - - name: SSOE - description: SS output enable - bit_offset: 29 - bit_size: 1 - - name: SSOM - description: SS output management in master mode - bit_offset: 30 - bit_size: 1 - enum: SSOM - - name: AFCNTR - description: Alternate function GPIOs control - bit_offset: 31 - bit_size: 1 - enum: AFCNTR + - name: MSSI + description: Master SS Idleness + bit_offset: 0 + bit_size: 4 + - name: MIDI + description: Master Inter-Data Idleness + bit_offset: 4 + bit_size: 4 + - name: IOSWP + description: Swap functionality of MISO and MOSI pins + bit_offset: 15 + bit_size: 1 + - name: COMM + description: SPI Communication Mode + bit_offset: 17 + bit_size: 2 + enum: COMM + - name: SP + description: Serial Protocol + bit_offset: 19 + bit_size: 3 + enum: SP + - name: MASTER + description: SPI Master + bit_offset: 22 + bit_size: 1 + enum: MASTER + - name: LSBFIRST + description: Data frame format + bit_offset: 23 + bit_size: 1 + enum: LSBFIRST + - name: CPHA + description: Clock phase + bit_offset: 24 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 25 + bit_size: 1 + enum: CPOL + - name: SSM + description: Software management of SS signal input + bit_offset: 26 + bit_size: 1 + - name: SSIOP + description: SS input/output polarity + bit_offset: 28 + bit_size: 1 + enum: SSIOP + - name: SSOE + description: SS output enable + bit_offset: 29 + bit_size: 1 + - name: SSOM + description: SS output management in master mode + bit_offset: 30 + bit_size: 1 + enum: SSOM + - name: AFCNTR + description: Alternate function GPIOs control + bit_offset: 31 + bit_size: 1 + enum: AFCNTR fieldset/CR1: description: control register 1 fields: - - name: SPE - description: Serial Peripheral Enable - bit_offset: 0 - bit_size: 1 - - name: MASRX - description: Master automatic SUSP in Receive mode - bit_offset: 8 - bit_size: 1 - - name: CSTART - description: Master transfer start - bit_offset: 9 - bit_size: 1 - - name: CSUSP - description: Master SUSPend request - bit_offset: 10 - bit_size: 1 - - name: HDDIR - description: Rx/Tx direction at Half-duplex mode - bit_offset: 11 - bit_size: 1 - enum: HDDIR - - name: SSI - description: Internal SS signal input level - bit_offset: 12 - bit_size: 1 - - name: CRC33_17 - description: 32-bit CRC polynomial configuration - bit_offset: 13 - bit_size: 1 - enum: CRC_ - - name: RCRCINI - description: CRC calculation initialization pattern control for receiver - bit_offset: 14 - bit_size: 1 - enum: RCRCINI - - name: TCRCINI - description: CRC calculation initialization pattern control for transmitter - bit_offset: 15 - bit_size: 1 - enum: TCRCINI - - name: IOLOCK - description: Locking the AF configuration of associated IOs - bit_offset: 16 - bit_size: 1 + - name: SPE + description: Serial Peripheral Enable + bit_offset: 0 + bit_size: 1 + - name: MASRX + description: Master automatic SUSP in Receive mode + bit_offset: 8 + bit_size: 1 + - name: CSTART + description: Master transfer start + bit_offset: 9 + bit_size: 1 + - name: CSUSP + description: Master SUSPend request + bit_offset: 10 + bit_size: 1 + - name: HDDIR + description: Rx/Tx direction at Half-duplex mode + bit_offset: 11 + bit_size: 1 + enum: HDDIR + - name: SSI + description: Internal SS signal input level + bit_offset: 12 + bit_size: 1 + - name: CRC33_17 + description: 32-bit CRC polynomial configuration + bit_offset: 13 + bit_size: 1 + enum: CRC_ + - name: RCRCINI + description: CRC calculation initialization pattern control for receiver + bit_offset: 14 + bit_size: 1 + enum: RCRCINI + - name: TCRCINI + description: CRC calculation initialization pattern control for transmitter + bit_offset: 15 + bit_size: 1 + enum: TCRCINI + - name: IOLOCK + description: Locking the AF configuration of associated IOs + bit_offset: 16 + bit_size: 1 fieldset/CR2: description: control register 2 fields: - - name: TSIZE - description: Number of data at current transfer - bit_offset: 0 - bit_size: 16 - - name: TSER - description: Number of data transfer extension to be reload into TSIZE just when a previous - bit_offset: 16 - bit_size: 16 + - name: TSIZE + description: Number of data at current transfer + bit_offset: 0 + bit_size: 16 + - name: TSER + description: Number of data transfer extension to be reload into TSIZE just when a previous + bit_offset: 16 + bit_size: 16 fieldset/CRCPOLY: description: Polynomial Register fields: - - name: CRCPOLY - description: CRC polynomial register - bit_offset: 0 - bit_size: 32 + - name: CRCPOLY + description: CRC polynomial register + bit_offset: 0 + bit_size: 32 fieldset/IER: description: Interrupt Enable Register fields: - - name: RXPIE - description: RXP Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: TXPIE - description: TXP interrupt enable - bit_offset: 1 - bit_size: 1 - - name: DXPIE - description: DXP interrupt enabled - bit_offset: 2 - bit_size: 1 - - name: EOTIE - description: "EOT, SUSP and TXC interrupt enable" - bit_offset: 3 - bit_size: 1 - - name: TXTFIE - description: TXTFIE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: UDRIE - description: UDR interrupt enable - bit_offset: 5 - bit_size: 1 - - name: OVRIE - description: OVR interrupt enable - bit_offset: 6 - bit_size: 1 - - name: CRCEIE - description: CRC Interrupt enable - bit_offset: 7 - bit_size: 1 - - name: TIFREIE - description: TIFRE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: MODFIE - description: Mode Fault interrupt enable - bit_offset: 9 - bit_size: 1 - - name: TSERFIE - description: Additional number of transactions reload interrupt enable - bit_offset: 10 - bit_size: 1 + - name: RXPIE + description: RXP Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: TXPIE + description: TXP interrupt enable + bit_offset: 1 + bit_size: 1 + - name: DXPIE + description: DXP interrupt enabled + bit_offset: 2 + bit_size: 1 + - name: EOTIE + description: EOT, SUSP and TXC interrupt enable + bit_offset: 3 + bit_size: 1 + - name: TXTFIE + description: TXTFIE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: UDRIE + description: UDR interrupt enable + bit_offset: 5 + bit_size: 1 + - name: OVRIE + description: OVR interrupt enable + bit_offset: 6 + bit_size: 1 + - name: CRCEIE + description: CRC Interrupt enable + bit_offset: 7 + bit_size: 1 + - name: TIFREIE + description: TIFRE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: MODFIE + description: Mode Fault interrupt enable + bit_offset: 9 + bit_size: 1 + - name: TSERFIE + description: Additional number of transactions reload interrupt enable + bit_offset: 10 + bit_size: 1 fieldset/IFCR: description: Interrupt/Status Flags Clear Register fields: - - name: EOTC - description: End Of Transfer flag clear - bit_offset: 3 - bit_size: 1 - - name: TXTFC - description: Transmission Transfer Filled flag clear - bit_offset: 4 - bit_size: 1 - - name: UDRC - description: Underrun flag clear - bit_offset: 5 - bit_size: 1 - - name: OVRC - description: Overrun flag clear - bit_offset: 6 - bit_size: 1 - - name: CRCEC - description: CRC Error flag clear - bit_offset: 7 - bit_size: 1 - - name: TIFREC - description: TI frame format error flag clear - bit_offset: 8 - bit_size: 1 - - name: MODFC - description: Mode Fault flag clear - bit_offset: 9 - bit_size: 1 - - name: TSERFC - description: TSERFC flag clear - bit_offset: 10 - bit_size: 1 - - name: SUSPC - description: SUSPend flag clear - bit_offset: 11 - bit_size: 1 + - name: EOTC + description: End Of Transfer flag clear + bit_offset: 3 + bit_size: 1 + - name: TXTFC + description: Transmission Transfer Filled flag clear + bit_offset: 4 + bit_size: 1 + - name: UDRC + description: Underrun flag clear + bit_offset: 5 + bit_size: 1 + - name: OVRC + description: Overrun flag clear + bit_offset: 6 + bit_size: 1 + - name: CRCEC + description: CRC Error flag clear + bit_offset: 7 + bit_size: 1 + - name: TIFREC + description: TI frame format error flag clear + bit_offset: 8 + bit_size: 1 + - name: MODFC + description: Mode Fault flag clear + bit_offset: 9 + bit_size: 1 + - name: TSERFC + description: TSERFC flag clear + bit_offset: 10 + bit_size: 1 + - name: SUSPC + description: SUSPend flag clear + bit_offset: 11 + bit_size: 1 fieldset/RXCRC: description: Receiver CRC Register fields: - - name: RXCRC - description: CRC register for receiver - bit_offset: 0 - bit_size: 32 + - name: RXCRC + description: CRC register for receiver + bit_offset: 0 + bit_size: 32 fieldset/RXDR: description: Receive Data Register fields: - - name: RXDR - description: Receive data register - bit_offset: 0 - bit_size: 32 + - name: RXDR + description: Receive data register + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status Register fields: - - name: RXP - description: Rx-Packet available - bit_offset: 0 - bit_size: 1 - - name: TXP - description: Tx-Packet space available - bit_offset: 1 - bit_size: 1 - - name: DXP - description: Duplex Packet - bit_offset: 2 - bit_size: 1 - - name: EOT - description: End Of Transfer - bit_offset: 3 - bit_size: 1 - - name: TXTF - description: Transmission Transfer Filled - bit_offset: 4 - bit_size: 1 - - name: UDR - description: Underrun at slave transmission mode - bit_offset: 5 - bit_size: 1 - - name: OVR - description: Overrun - bit_offset: 6 - bit_size: 1 - - name: CRCE - description: CRC Error - bit_offset: 7 - bit_size: 1 - - name: TIFRE - description: TI frame format error - bit_offset: 8 - bit_size: 1 - - name: MODF - description: Mode Fault - bit_offset: 9 - bit_size: 1 - - name: TSERF - description: Additional number of SPI data to be transacted was reload - bit_offset: 10 - bit_size: 1 - - name: SUSP - description: SUSPend - bit_offset: 11 - bit_size: 1 - - name: TXC - description: TxFIFO transmission complete - bit_offset: 12 - bit_size: 1 - - name: RXPLVL - description: RxFIFO Packing LeVeL - bit_offset: 13 - bit_size: 2 - enum: RXPLVL - - name: RXWNE - description: RxFIFO Word Not Empty - bit_offset: 15 - bit_size: 1 - enum: RXWNE - - name: CTSIZE - description: Number of data frames remaining in current TSIZE session - bit_offset: 16 - bit_size: 16 + - name: RXP + description: Rx-Packet available + bit_offset: 0 + bit_size: 1 + - name: TXP + description: Tx-Packet space available + bit_offset: 1 + bit_size: 1 + - name: DXP + description: Duplex Packet + bit_offset: 2 + bit_size: 1 + - name: EOT + description: End Of Transfer + bit_offset: 3 + bit_size: 1 + - name: TXTF + description: Transmission Transfer Filled + bit_offset: 4 + bit_size: 1 + - name: UDR + description: Underrun at slave transmission mode + bit_offset: 5 + bit_size: 1 + - name: OVR + description: Overrun + bit_offset: 6 + bit_size: 1 + - name: CRCE + description: CRC Error + bit_offset: 7 + bit_size: 1 + - name: TIFRE + description: TI frame format error + bit_offset: 8 + bit_size: 1 + - name: MODF + description: Mode Fault + bit_offset: 9 + bit_size: 1 + - name: TSERF + description: Additional number of SPI data to be transacted was reload + bit_offset: 10 + bit_size: 1 + - name: SUSP + description: SUSPend + bit_offset: 11 + bit_size: 1 + - name: TXC + description: TxFIFO transmission complete + bit_offset: 12 + bit_size: 1 + - name: RXPLVL + description: RxFIFO Packing LeVeL + bit_offset: 13 + bit_size: 2 + enum: RXPLVL + - name: RXWNE + description: RxFIFO Word Not Empty + bit_offset: 15 + bit_size: 1 + enum: RXWNE + - name: CTSIZE + description: Number of data frames remaining in current TSIZE session + bit_offset: 16 + bit_size: 16 fieldset/TXCRC: description: Transmitter CRC Register fields: - - name: TXCRC - description: CRC register for transmitter - bit_offset: 0 - bit_size: 32 + - name: TXCRC + description: CRC register for transmitter + bit_offset: 0 + bit_size: 32 fieldset/TXDR: description: Transmit Data Register fields: - - name: TXDR - description: Transmit data register - bit_offset: 0 - bit_size: 32 + - name: TXDR + description: Transmit data register + bit_offset: 0 + bit_size: 32 fieldset/UDRDR: description: Underrun Data Register fields: - - name: UDRDR - description: Data at slave underrun condition - bit_offset: 0 - bit_size: 32 + - name: UDRDR + description: Data at slave underrun condition + bit_offset: 0 + bit_size: 32 enum/AFCNTR: bit_size: 1 variants: - - name: NotControlled - description: Peripheral takes no control of GPIOs while disabled - value: 0 - - name: Controlled - description: Peripheral controls GPIOs while disabled - value: 1 + - name: NotControlled + description: Peripheral takes no control of GPIOs while disabled + value: 0 + - name: Controlled + description: Peripheral controls GPIOs while disabled + value: 1 enum/COMM: bit_size: 2 variants: - - name: FullDuplex - description: Full duplex - value: 0 - - name: Transmitter - description: Simplex transmitter only - value: 1 - - name: Receiver - description: Simplex receiver only - value: 2 - - name: HalfDuplex - description: Half duplex - value: 3 + - name: FullDuplex + description: Full duplex + value: 0 + - name: Transmitter + description: Simplex transmitter only + value: 1 + - name: Receiver + description: Simplex receiver only + value: 2 + - name: HalfDuplex + description: Half duplex + value: 3 enum/CPHA: bit_size: 1 variants: - - name: FirstEdge - description: The first clock transition is the first data capture edge - value: 0 - - name: SecondEdge - description: The second clock transition is the first data capture edge - value: 1 + - name: FirstEdge + description: The first clock transition is the first data capture edge + value: 0 + - name: SecondEdge + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: IdleLow - description: CK to 0 when idle - value: 0 - - name: IdleHigh - description: CK to 1 when idle - value: 1 + - name: IdleLow + description: CK to 0 when idle + value: 0 + - name: IdleHigh + description: CK to 1 when idle + value: 1 enum/CRC_: bit_size: 1 variants: - - name: Disabled - description: Full size (33/17 bit) CRC polynomial is not used - value: 0 - - name: Enabled - description: Full size (33/17 bit) CRC polynomial is used - value: 1 + - name: Disabled + description: Full size (33/17 bit) CRC polynomial is not used + value: 0 + - name: Enabled + description: Full size (33/17 bit) CRC polynomial is used + value: 1 enum/FTHLV: bit_size: 4 variants: - - name: OneFrame - description: 1 frame - value: 0 - - name: TwoFrames - description: 2 frames - value: 1 - - name: ThreeFrames - description: 3 frames - value: 2 - - name: FourFrames - description: 4 frames - value: 3 - - name: FiveFrames - description: 5 frames - value: 4 - - name: SixFrames - description: 6 frames - value: 5 - - name: SevenFrames - description: 7 frames - value: 6 - - name: EightFrames - description: 8 frames - value: 7 - - name: NineFrames - description: 9 frames - value: 8 - - name: TenFrames - description: 10 frames - value: 9 - - name: ElevenFrames - description: 11 frames - value: 10 - - name: TwelveFrames - description: 12 frames - value: 11 - - name: ThirteenFrames - description: 13 frames - value: 12 - - name: FourteenFrames - description: 14 frames - value: 13 - - name: FifteenFrames - description: 15 frames - value: 14 - - name: SixteenFrames - description: 16 frames - value: 15 + - name: OneFrame + description: 1 frame + value: 0 + - name: TwoFrames + description: 2 frames + value: 1 + - name: ThreeFrames + description: 3 frames + value: 2 + - name: FourFrames + description: 4 frames + value: 3 + - name: FiveFrames + description: 5 frames + value: 4 + - name: SixFrames + description: 6 frames + value: 5 + - name: SevenFrames + description: 7 frames + value: 6 + - name: EightFrames + description: 8 frames + value: 7 + - name: NineFrames + description: 9 frames + value: 8 + - name: TenFrames + description: 10 frames + value: 9 + - name: ElevenFrames + description: 11 frames + value: 10 + - name: TwelveFrames + description: 12 frames + value: 11 + - name: ThirteenFrames + description: 13 frames + value: 12 + - name: FourteenFrames + description: 14 frames + value: 13 + - name: FifteenFrames + description: 15 frames + value: 14 + - name: SixteenFrames + description: 16 frames + value: 15 enum/HDDIR: bit_size: 1 variants: - - name: Receiver - description: Receiver in half duplex mode - value: 0 - - name: Transmitter - description: Transmitter in half duplex mode - value: 1 + - name: Receiver + description: Receiver in half duplex mode + value: 0 + - name: Transmitter + description: Transmitter in half duplex mode + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MSBFirst - description: Data is transmitted/received with the MSB first - value: 0 - - name: LSBFirst - description: Data is transmitted/received with the LSB first - value: 1 + - name: MSBFirst + description: Data is transmitted/received with the MSB first + value: 0 + - name: LSBFirst + description: Data is transmitted/received with the LSB first + value: 1 enum/MASTER: bit_size: 1 variants: - - name: Slave - description: Slave configuration - value: 0 - - name: Master - description: Master configuration - value: 1 + - name: Slave + description: Slave configuration + value: 0 + - name: Master + description: Master configuration + value: 1 enum/MBR: bit_size: 3 variants: - - name: Div2 - description: f_spi_ker_ck / 2 - value: 0 - - name: Div4 - description: f_spi_ker_ck / 4 - value: 1 - - name: Div8 - description: f_spi_ker_ck / 8 - value: 2 - - name: Div16 - description: f_spi_ker_ck / 16 - value: 3 - - name: Div32 - description: f_spi_ker_ck / 32 - value: 4 - - name: Div64 - description: f_spi_ker_ck / 64 - value: 5 - - name: Div128 - description: f_spi_ker_ck / 128 - value: 6 - - name: Div256 - description: f_spi_ker_ck / 256 - value: 7 + - name: Div2 + description: f_spi_ker_ck / 2 + value: 0 + - name: Div4 + description: f_spi_ker_ck / 4 + value: 1 + - name: Div8 + description: f_spi_ker_ck / 8 + value: 2 + - name: Div16 + description: f_spi_ker_ck / 16 + value: 3 + - name: Div32 + description: f_spi_ker_ck / 32 + value: 4 + - name: Div64 + description: f_spi_ker_ck / 64 + value: 5 + - name: Div128 + description: f_spi_ker_ck / 128 + value: 6 + - name: Div256 + description: f_spi_ker_ck / 256 + value: 7 enum/RCRCINI: bit_size: 1 variants: - - name: AllZeros - description: All zeros RX CRC initialization pattern - value: 0 - - name: AllOnes - description: All ones RX CRC initialization pattern - value: 1 + - name: AllZeros + description: All zeros RX CRC initialization pattern + value: 0 + - name: AllOnes + description: All ones RX CRC initialization pattern + value: 1 enum/RXPLVL: bit_size: 2 variants: - - name: ZeroFrames - description: Zero frames beyond packing ratio available - value: 0 - - name: OneFrame - description: One frame beyond packing ratio available - value: 1 - - name: TwoFrames - description: Two frame beyond packing ratio available - value: 2 - - name: ThreeFrames - description: Three frame beyond packing ratio available - value: 3 + - name: ZeroFrames + description: Zero frames beyond packing ratio available + value: 0 + - name: OneFrame + description: One frame beyond packing ratio available + value: 1 + - name: TwoFrames + description: Two frame beyond packing ratio available + value: 2 + - name: ThreeFrames + description: Three frame beyond packing ratio available + value: 3 enum/RXWNE: bit_size: 1 variants: - - name: LessThan32 - description: Less than 32-bit data frame received - value: 0 - - name: AtLeast32 - description: At least 32-bit data frame received - value: 1 + - name: LessThan32 + description: Less than 32-bit data frame received + value: 0 + - name: AtLeast32 + description: At least 32-bit data frame received + value: 1 enum/SP: bit_size: 3 variants: - - name: Motorola - description: Motorola SPI protocol - value: 0 - - name: TI - description: TI SPI protocol - value: 1 + - name: Motorola + description: Motorola SPI protocol + value: 0 + - name: TI + description: TI SPI protocol + value: 1 enum/SSIOP: bit_size: 1 variants: - - name: ActiveLow - description: Low level is active for SS signal - value: 0 - - name: ActiveHigh - description: High level is active for SS signal - value: 1 + - name: ActiveLow + description: Low level is active for SS signal + value: 0 + - name: ActiveHigh + description: High level is active for SS signal + value: 1 enum/SSOM: bit_size: 1 variants: - - name: Asserted - description: SS is asserted until data transfer complete - value: 0 - - name: NotAsserted - description: Data frames interleaved with SS not asserted during MIDI - value: 1 + - name: Asserted + description: SS is asserted until data transfer complete + value: 0 + - name: NotAsserted + description: Data frames interleaved with SS not asserted during MIDI + value: 1 enum/TCRCINI: bit_size: 1 variants: - - name: AllZeros - description: All zeros TX CRC initialization pattern - value: 0 - - name: AllOnes - description: All ones TX CRC initialization pattern - value: 1 + - name: AllZeros + description: All zeros TX CRC initialization pattern + value: 0 + - name: AllOnes + description: All ones TX CRC initialization pattern + value: 1 enum/UDRCFG: bit_size: 2 variants: - - name: Constant - description: Slave sends a constant underrun pattern - value: 0 - - name: RepeatReceived - description: Slave repeats last received data frame from master - value: 1 - - name: RepeatTransmitted - description: Slave repeats last transmitted data frame - value: 2 + - name: Constant + description: Slave sends a constant underrun pattern + value: 0 + - name: RepeatReceived + description: Slave repeats last received data frame from master + value: 1 + - name: RepeatTransmitted + description: Slave repeats last transmitted data frame + value: 2 enum/UDRDET: bit_size: 2 variants: - - name: StartOfFrame - description: Underrun is detected at begin of data frame - value: 0 - - name: EndOfFrame - description: Underrun is detected at end of last data frame - value: 1 - - name: StartOfSlaveSelect - description: Underrun is detected at begin of active SS signal - value: 2 + - name: StartOfFrame + description: Underrun is detected at begin of data frame + value: 0 + - name: EndOfFrame + description: Underrun is detected at end of last data frame + value: 1 + - name: StartOfSlaveSelect + description: Underrun is detected at begin of active SS signal + value: 2 diff --git a/data/registers/spi_v4.yaml b/data/registers/spi_v4.yaml index 89ef354..a861501 100644 --- a/data/registers/spi_v4.yaml +++ b/data/registers/spi_v4.yaml @@ -1,674 +1,675 @@ ---- block/SPI: description: Serial peripheral interface items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CFG1 - description: configuration register 1 - byte_offset: 8 - fieldset: CFG1 - - name: CFG2 - description: configuration register 2 - byte_offset: 12 - fieldset: CFG2 - - name: IER - description: Interrupt Enable Register - byte_offset: 16 - fieldset: IER - - name: SR - description: Status Register - byte_offset: 20 - access: Read - fieldset: SR - - name: IFCR - description: Interrupt/Status Flags Clear Register - byte_offset: 24 - access: Write - fieldset: IFCR - - name: TXDR - description: Transmit Data Register - byte_offset: 32 - access: Write - fieldset: TXDR - - name: RXDR - description: Receive Data Register - byte_offset: 48 - access: Read - fieldset: RXDR - - name: CRCPOLY - description: Polynomial Register - byte_offset: 64 - fieldset: CRCPOLY - - name: TXCRC - description: Transmitter CRC Register - byte_offset: 68 - fieldset: TXCRC - - name: RXCRC - description: Receiver CRC Register - byte_offset: 72 - fieldset: RXCRC - - name: UDRDR - description: Underrun Data Register - byte_offset: 76 - fieldset: UDRDR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CFG1 + description: configuration register 1 + byte_offset: 8 + fieldset: CFG1 + - name: CFG2 + description: configuration register 2 + byte_offset: 12 + fieldset: CFG2 + - name: IER + description: Interrupt Enable Register + byte_offset: 16 + fieldset: IER + - name: SR + description: Status Register + byte_offset: 20 + access: Read + fieldset: SR + - name: IFCR + description: Interrupt/Status Flags Clear Register + byte_offset: 24 + access: Write + fieldset: IFCR + - name: TXDR + description: Transmit Data Register + byte_offset: 32 + access: Write + fieldset: TXDR + - name: RXDR + description: Receive Data Register + byte_offset: 48 + access: Read + fieldset: RXDR + - name: CRCPOLY + description: Polynomial Register + byte_offset: 64 + fieldset: CRCPOLY + - name: TXCRC + description: Transmitter CRC Register + byte_offset: 68 + fieldset: TXCRC + - name: RXCRC + description: Receiver CRC Register + byte_offset: 72 + fieldset: RXCRC + - name: UDRDR + description: Underrun Data Register + byte_offset: 76 + fieldset: UDRDR fieldset/CFG1: description: configuration register 1 fields: - - name: DSIZE - description: Number of bits in at single SPI data frame - bit_offset: 0 - bit_size: 5 - - name: FTHLV - description: threshold level - bit_offset: 5 - bit_size: 4 - enum: FTHLV - - name: UDRCFG - description: Behavior of slave transmitter at underrun condition - bit_offset: 9 - bit_size: 2 - enum: UDRCFG - - name: RXDMAEN - description: Rx DMA stream enable - bit_offset: 14 - bit_size: 1 - - name: TXDMAEN - description: Tx DMA stream enable - bit_offset: 15 - bit_size: 1 - - name: CRCSIZE - description: Length of CRC frame to be transacted and compared - bit_offset: 16 - bit_size: 5 - - name: CRCEN - description: Hardware CRC computation enable - bit_offset: 22 - bit_size: 1 - - name: MBR - description: Master baud rate - bit_offset: 28 - bit_size: 3 - enum: MBR - - name: BPASS - description: bypass of the prescaler at master baud rate clock generator - bit_offset: 31 - bit_size: 1 + - name: DSIZE + description: Number of bits in at single SPI data frame + bit_offset: 0 + bit_size: 5 + - name: FTHLV + description: threshold level + bit_offset: 5 + bit_size: 4 + enum: FTHLV + - name: UDRCFG + description: Behavior of slave transmitter at underrun condition + bit_offset: 9 + bit_size: 2 + enum: UDRCFG + - name: RXDMAEN + description: Rx DMA stream enable + bit_offset: 14 + bit_size: 1 + - name: TXDMAEN + description: Tx DMA stream enable + bit_offset: 15 + bit_size: 1 + - name: CRCSIZE + description: Length of CRC frame to be transacted and compared + bit_offset: 16 + bit_size: 5 + - name: CRCEN + description: Hardware CRC computation enable + bit_offset: 22 + bit_size: 1 + - name: MBR + description: Master baud rate + bit_offset: 28 + bit_size: 3 + enum: MBR + - name: BPASS + description: bypass of the prescaler at master baud rate clock generator + bit_offset: 31 + bit_size: 1 fieldset/CFG2: description: configuration register 2 fields: - - name: MSSI - description: Master SS Idleness - bit_offset: 0 - bit_size: 4 - - name: MIDI - description: Master Inter-Data Idleness - bit_offset: 4 - bit_size: 4 - - name: RDIOM - description: "RDY signal input/output management\n Note: When DSIZE at the CFG1 register is configured shorter than 8-bit, the RDIOM bit has to be kept at zero." - bit_offset: 13 - bit_size: 1 - enum: RDIOM - - name: RDIOP - description: RDY signal input/output polarity - bit_offset: 14 - bit_size: 1 - enum: RDIOP - - name: IOSWP - description: Swap functionality of MISO and MOSI pins - bit_offset: 15 - bit_size: 1 - - name: COMM - description: SPI Communication Mode - bit_offset: 17 - bit_size: 2 - enum: COMM - - name: SP - description: Serial Protocol - bit_offset: 19 - bit_size: 3 - enum: SP - - name: MASTER - description: SPI Master - bit_offset: 22 - bit_size: 1 - enum: MASTER - - name: LSBFIRST - description: Data frame format - bit_offset: 23 - bit_size: 1 - enum: LSBFIRST - - name: CPHA - description: Clock phase - bit_offset: 24 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 25 - bit_size: 1 - enum: CPOL - - name: SSM - description: Software management of SS signal input - bit_offset: 26 - bit_size: 1 - - name: SSIOP - description: SS input/output polarity - bit_offset: 28 - bit_size: 1 - enum: SSIOP - - name: SSOE - description: SS output enable - bit_offset: 29 - bit_size: 1 - - name: SSOM - description: SS output management in master mode - bit_offset: 30 - bit_size: 1 - enum: SSOM - - name: AFCNTR - description: Alternate function GPIOs control - bit_offset: 31 - bit_size: 1 - enum: AFCNTR + - name: MSSI + description: Master SS Idleness + bit_offset: 0 + bit_size: 4 + - name: MIDI + description: Master Inter-Data Idleness + bit_offset: 4 + bit_size: 4 + - name: RDIOM + description: |- + RDY signal input/output management + Note: When DSIZE at the CFG1 register is configured shorter than 8-bit, the RDIOM bit has to be kept at zero. + bit_offset: 13 + bit_size: 1 + enum: RDIOM + - name: RDIOP + description: RDY signal input/output polarity + bit_offset: 14 + bit_size: 1 + enum: RDIOP + - name: IOSWP + description: Swap functionality of MISO and MOSI pins + bit_offset: 15 + bit_size: 1 + - name: COMM + description: SPI Communication Mode + bit_offset: 17 + bit_size: 2 + enum: COMM + - name: SP + description: Serial Protocol + bit_offset: 19 + bit_size: 3 + enum: SP + - name: MASTER + description: SPI Master + bit_offset: 22 + bit_size: 1 + enum: MASTER + - name: LSBFIRST + description: Data frame format + bit_offset: 23 + bit_size: 1 + enum: LSBFIRST + - name: CPHA + description: Clock phase + bit_offset: 24 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 25 + bit_size: 1 + enum: CPOL + - name: SSM + description: Software management of SS signal input + bit_offset: 26 + bit_size: 1 + - name: SSIOP + description: SS input/output polarity + bit_offset: 28 + bit_size: 1 + enum: SSIOP + - name: SSOE + description: SS output enable + bit_offset: 29 + bit_size: 1 + - name: SSOM + description: SS output management in master mode + bit_offset: 30 + bit_size: 1 + enum: SSOM + - name: AFCNTR + description: Alternate function GPIOs control + bit_offset: 31 + bit_size: 1 + enum: AFCNTR fieldset/CR1: description: control register 1 fields: - - name: SPE - description: Serial Peripheral Enable - bit_offset: 0 - bit_size: 1 - - name: MASRX - description: Master automatic SUSP in Receive mode - bit_offset: 8 - bit_size: 1 - - name: CSTART - description: Master transfer start - bit_offset: 9 - bit_size: 1 - - name: CSUSP - description: Master SUSPend request - bit_offset: 10 - bit_size: 1 - - name: HDDIR - description: Rx/Tx direction at Half-duplex mode - bit_offset: 11 - bit_size: 1 - enum: HDDIR - - name: SSI - description: Internal SS signal input level - bit_offset: 12 - bit_size: 1 - - name: CRC33_17 - description: 32-bit CRC polynomial configuration - bit_offset: 13 - bit_size: 1 - enum: CRC_ - - name: RCRCINI - description: CRC calculation initialization pattern control for receiver - bit_offset: 14 - bit_size: 1 - enum: RCRCINI - - name: TCRCINI - description: CRC calculation initialization pattern control for transmitter - bit_offset: 15 - bit_size: 1 - enum: TCRCINI - - name: IOLOCK - description: Locking the AF configuration of associated IOs - bit_offset: 16 - bit_size: 1 + - name: SPE + description: Serial Peripheral Enable + bit_offset: 0 + bit_size: 1 + - name: MASRX + description: Master automatic SUSP in Receive mode + bit_offset: 8 + bit_size: 1 + - name: CSTART + description: Master transfer start + bit_offset: 9 + bit_size: 1 + - name: CSUSP + description: Master SUSPend request + bit_offset: 10 + bit_size: 1 + - name: HDDIR + description: Rx/Tx direction at Half-duplex mode + bit_offset: 11 + bit_size: 1 + enum: HDDIR + - name: SSI + description: Internal SS signal input level + bit_offset: 12 + bit_size: 1 + - name: CRC33_17 + description: 32-bit CRC polynomial configuration + bit_offset: 13 + bit_size: 1 + enum: CRC_ + - name: RCRCINI + description: CRC calculation initialization pattern control for receiver + bit_offset: 14 + bit_size: 1 + enum: RCRCINI + - name: TCRCINI + description: CRC calculation initialization pattern control for transmitter + bit_offset: 15 + bit_size: 1 + enum: TCRCINI + - name: IOLOCK + description: Locking the AF configuration of associated IOs + bit_offset: 16 + bit_size: 1 fieldset/CR2: description: control register 2 fields: - - name: TSIZE - description: Number of data at current transfer - bit_offset: 0 - bit_size: 16 + - name: TSIZE + description: Number of data at current transfer + bit_offset: 0 + bit_size: 16 fieldset/CRCPOLY: description: Polynomial Register fields: - - name: CRCPOLY - description: CRC polynomial register - bit_offset: 0 - bit_size: 32 + - name: CRCPOLY + description: CRC polynomial register + bit_offset: 0 + bit_size: 32 fieldset/IER: description: Interrupt Enable Register fields: - - name: RXPIE - description: RXP Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: TXPIE - description: TXP interrupt enable - bit_offset: 1 - bit_size: 1 - - name: DXPIE - description: DXP interrupt enabled - bit_offset: 2 - bit_size: 1 - - name: EOTIE - description: "EOT, SUSP and TXC interrupt enable" - bit_offset: 3 - bit_size: 1 - - name: TXTFIE - description: TXTFIE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: UDRIE - description: UDR interrupt enable - bit_offset: 5 - bit_size: 1 - - name: OVRIE - description: OVR interrupt enable - bit_offset: 6 - bit_size: 1 - - name: CRCEIE - description: CRC Interrupt enable - bit_offset: 7 - bit_size: 1 - - name: TIFREIE - description: TIFRE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: MODFIE - description: Mode Fault interrupt enable - bit_offset: 9 - bit_size: 1 + - name: RXPIE + description: RXP Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: TXPIE + description: TXP interrupt enable + bit_offset: 1 + bit_size: 1 + - name: DXPIE + description: DXP interrupt enabled + bit_offset: 2 + bit_size: 1 + - name: EOTIE + description: EOT, SUSP and TXC interrupt enable + bit_offset: 3 + bit_size: 1 + - name: TXTFIE + description: TXTFIE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: UDRIE + description: UDR interrupt enable + bit_offset: 5 + bit_size: 1 + - name: OVRIE + description: OVR interrupt enable + bit_offset: 6 + bit_size: 1 + - name: CRCEIE + description: CRC Interrupt enable + bit_offset: 7 + bit_size: 1 + - name: TIFREIE + description: TIFRE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: MODFIE + description: Mode Fault interrupt enable + bit_offset: 9 + bit_size: 1 fieldset/IFCR: description: Interrupt/Status Flags Clear Register fields: - - name: EOTC - description: End Of Transfer flag clear - bit_offset: 3 - bit_size: 1 - - name: TXTFC - description: Transmission Transfer Filled flag clear - bit_offset: 4 - bit_size: 1 - - name: UDRC - description: Underrun flag clear - bit_offset: 5 - bit_size: 1 - - name: OVRC - description: Overrun flag clear - bit_offset: 6 - bit_size: 1 - - name: CRCEC - description: CRC Error flag clear - bit_offset: 7 - bit_size: 1 - - name: TIFREC - description: TI frame format error flag clear - bit_offset: 8 - bit_size: 1 - - name: MODFC - description: Mode Fault flag clear - bit_offset: 9 - bit_size: 1 - - name: SUSPC - description: SUSPend flag clear - bit_offset: 11 - bit_size: 1 + - name: EOTC + description: End Of Transfer flag clear + bit_offset: 3 + bit_size: 1 + - name: TXTFC + description: Transmission Transfer Filled flag clear + bit_offset: 4 + bit_size: 1 + - name: UDRC + description: Underrun flag clear + bit_offset: 5 + bit_size: 1 + - name: OVRC + description: Overrun flag clear + bit_offset: 6 + bit_size: 1 + - name: CRCEC + description: CRC Error flag clear + bit_offset: 7 + bit_size: 1 + - name: TIFREC + description: TI frame format error flag clear + bit_offset: 8 + bit_size: 1 + - name: MODFC + description: Mode Fault flag clear + bit_offset: 9 + bit_size: 1 + - name: SUSPC + description: SUSPend flag clear + bit_offset: 11 + bit_size: 1 fieldset/RXCRC: description: Receiver CRC Register fields: - - name: RXCRC - description: CRC register for receiver - bit_offset: 0 - bit_size: 32 + - name: RXCRC + description: CRC register for receiver + bit_offset: 0 + bit_size: 32 fieldset/RXDR: description: Receive Data Register fields: - - name: RXDR - description: Receive data register - bit_offset: 0 - bit_size: 32 + - name: RXDR + description: Receive data register + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status Register fields: - - name: RXP - description: Rx-Packet available - bit_offset: 0 - bit_size: 1 - - name: TXP - description: Tx-Packet space available - bit_offset: 1 - bit_size: 1 - - name: DXP - description: Duplex Packet - bit_offset: 2 - bit_size: 1 - - name: EOT - description: End Of Transfer - bit_offset: 3 - bit_size: 1 - - name: TXTF - description: Transmission Transfer Filled - bit_offset: 4 - bit_size: 1 - - name: UDR - description: Underrun at slave transmission mode - bit_offset: 5 - bit_size: 1 - - name: OVR - description: Overrun - bit_offset: 6 - bit_size: 1 - - name: CRCE - description: CRC Error - bit_offset: 7 - bit_size: 1 - - name: TIFRE - description: TI frame format error - bit_offset: 8 - bit_size: 1 - - name: MODF - description: Mode Fault - bit_offset: 9 - bit_size: 1 - - name: SUSP - description: SUSPend - bit_offset: 11 - bit_size: 1 - - name: TXC - description: TxFIFO transmission complete - bit_offset: 12 - bit_size: 1 - - name: RXPLVL - description: RxFIFO Packing LeVeL - bit_offset: 13 - bit_size: 2 - enum: RXPLVL - - name: RXWNE - description: RxFIFO Word Not Empty - bit_offset: 15 - bit_size: 1 - enum: RXWNE - - name: CTSIZE - description: Number of data frames remaining in current TSIZE session - bit_offset: 16 - bit_size: 16 + - name: RXP + description: Rx-Packet available + bit_offset: 0 + bit_size: 1 + - name: TXP + description: Tx-Packet space available + bit_offset: 1 + bit_size: 1 + - name: DXP + description: Duplex Packet + bit_offset: 2 + bit_size: 1 + - name: EOT + description: End Of Transfer + bit_offset: 3 + bit_size: 1 + - name: TXTF + description: Transmission Transfer Filled + bit_offset: 4 + bit_size: 1 + - name: UDR + description: Underrun at slave transmission mode + bit_offset: 5 + bit_size: 1 + - name: OVR + description: Overrun + bit_offset: 6 + bit_size: 1 + - name: CRCE + description: CRC Error + bit_offset: 7 + bit_size: 1 + - name: TIFRE + description: TI frame format error + bit_offset: 8 + bit_size: 1 + - name: MODF + description: Mode Fault + bit_offset: 9 + bit_size: 1 + - name: SUSP + description: SUSPend + bit_offset: 11 + bit_size: 1 + - name: TXC + description: TxFIFO transmission complete + bit_offset: 12 + bit_size: 1 + - name: RXPLVL + description: RxFIFO Packing LeVeL + bit_offset: 13 + bit_size: 2 + enum: RXPLVL + - name: RXWNE + description: RxFIFO Word Not Empty + bit_offset: 15 + bit_size: 1 + enum: RXWNE + - name: CTSIZE + description: Number of data frames remaining in current TSIZE session + bit_offset: 16 + bit_size: 16 fieldset/TXCRC: description: Transmitter CRC Register fields: - - name: TXCRC - description: CRC register for transmitter - bit_offset: 0 - bit_size: 32 + - name: TXCRC + description: CRC register for transmitter + bit_offset: 0 + bit_size: 32 fieldset/TXDR: description: Transmit Data Register fields: - - name: TXDR - description: Transmit data register - bit_offset: 0 - bit_size: 32 + - name: TXDR + description: Transmit data register + bit_offset: 0 + bit_size: 32 fieldset/UDRDR: description: Underrun Data Register fields: - - name: UDRDR - description: Data at slave underrun condition - bit_offset: 0 - bit_size: 32 + - name: UDRDR + description: Data at slave underrun condition + bit_offset: 0 + bit_size: 32 enum/AFCNTR: bit_size: 1 variants: - - name: NotControlled - description: Peripheral takes no control of GPIOs while disabled - value: 0 - - name: Controlled - description: Peripheral controls GPIOs while disabled - value: 1 + - name: NotControlled + description: Peripheral takes no control of GPIOs while disabled + value: 0 + - name: Controlled + description: Peripheral controls GPIOs while disabled + value: 1 enum/COMM: bit_size: 2 variants: - - name: FullDuplex - description: Full duplex - value: 0 - - name: Transmitter - description: Simplex transmitter only - value: 1 - - name: Receiver - description: Simplex receiver only - value: 2 - - name: HalfDuplex - description: Half duplex - value: 3 + - name: FullDuplex + description: Full duplex + value: 0 + - name: Transmitter + description: Simplex transmitter only + value: 1 + - name: Receiver + description: Simplex receiver only + value: 2 + - name: HalfDuplex + description: Half duplex + value: 3 enum/CPHA: bit_size: 1 variants: - - name: FirstEdge - description: The first clock transition is the first data capture edge - value: 0 - - name: SecondEdge - description: The second clock transition is the first data capture edge - value: 1 + - name: FirstEdge + description: The first clock transition is the first data capture edge + value: 0 + - name: SecondEdge + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: IdleLow - description: CK to 0 when idle - value: 0 - - name: IdleHigh - description: CK to 1 when idle - value: 1 + - name: IdleLow + description: CK to 0 when idle + value: 0 + - name: IdleHigh + description: CK to 1 when idle + value: 1 enum/CRC_: bit_size: 1 variants: - - name: Disabled - description: Full size (33/17 bit) CRC polynomial is not used - value: 0 - - name: Enabled - description: Full size (33/17 bit) CRC polynomial is used - value: 1 + - name: Disabled + description: Full size (33/17 bit) CRC polynomial is not used + value: 0 + - name: Enabled + description: Full size (33/17 bit) CRC polynomial is used + value: 1 enum/FTHLV: bit_size: 4 variants: - - name: OneFrame - description: 1 frame - value: 0 - - name: TwoFrames - description: 2 frames - value: 1 - - name: ThreeFrames - description: 3 frames - value: 2 - - name: FourFrames - description: 4 frames - value: 3 - - name: FiveFrames - description: 5 frames - value: 4 - - name: SixFrames - description: 6 frames - value: 5 - - name: SevenFrames - description: 7 frames - value: 6 - - name: EightFrames - description: 8 frames - value: 7 - - name: NineFrames - description: 9 frames - value: 8 - - name: TenFrames - description: 10 frames - value: 9 - - name: ElevenFrames - description: 11 frames - value: 10 - - name: TwelveFrames - description: 12 frames - value: 11 - - name: ThirteenFrames - description: 13 frames - value: 12 - - name: FourteenFrames - description: 14 frames - value: 13 - - name: FifteenFrames - description: 15 frames - value: 14 - - name: SixteenFrames - description: 16 frames - value: 15 + - name: OneFrame + description: 1 frame + value: 0 + - name: TwoFrames + description: 2 frames + value: 1 + - name: ThreeFrames + description: 3 frames + value: 2 + - name: FourFrames + description: 4 frames + value: 3 + - name: FiveFrames + description: 5 frames + value: 4 + - name: SixFrames + description: 6 frames + value: 5 + - name: SevenFrames + description: 7 frames + value: 6 + - name: EightFrames + description: 8 frames + value: 7 + - name: NineFrames + description: 9 frames + value: 8 + - name: TenFrames + description: 10 frames + value: 9 + - name: ElevenFrames + description: 11 frames + value: 10 + - name: TwelveFrames + description: 12 frames + value: 11 + - name: ThirteenFrames + description: 13 frames + value: 12 + - name: FourteenFrames + description: 14 frames + value: 13 + - name: FifteenFrames + description: 15 frames + value: 14 + - name: SixteenFrames + description: 16 frames + value: 15 enum/HDDIR: bit_size: 1 variants: - - name: Receiver - description: Receiver in half duplex mode - value: 0 - - name: Transmitter - description: Transmitter in half duplex mode - value: 1 + - name: Receiver + description: Receiver in half duplex mode + value: 0 + - name: Transmitter + description: Transmitter in half duplex mode + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MSBFirst - description: Data is transmitted/received with the MSB first - value: 0 - - name: LSBFirst - description: Data is transmitted/received with the LSB first - value: 1 + - name: MSBFirst + description: Data is transmitted/received with the MSB first + value: 0 + - name: LSBFirst + description: Data is transmitted/received with the LSB first + value: 1 enum/MASTER: bit_size: 1 variants: - - name: Slave - description: Slave configuration - value: 0 - - name: Master - description: Master configuration - value: 1 + - name: Slave + description: Slave configuration + value: 0 + - name: Master + description: Master configuration + value: 1 enum/MBR: bit_size: 3 variants: - - name: Div2 - description: f_spi_ker_ck / 2 - value: 0 - - name: Div4 - description: f_spi_ker_ck / 4 - value: 1 - - name: Div8 - description: f_spi_ker_ck / 8 - value: 2 - - name: Div16 - description: f_spi_ker_ck / 16 - value: 3 - - name: Div32 - description: f_spi_ker_ck / 32 - value: 4 - - name: Div64 - description: f_spi_ker_ck / 64 - value: 5 - - name: Div128 - description: f_spi_ker_ck / 128 - value: 6 - - name: Div256 - description: f_spi_ker_ck / 256 - value: 7 + - name: Div2 + description: f_spi_ker_ck / 2 + value: 0 + - name: Div4 + description: f_spi_ker_ck / 4 + value: 1 + - name: Div8 + description: f_spi_ker_ck / 8 + value: 2 + - name: Div16 + description: f_spi_ker_ck / 16 + value: 3 + - name: Div32 + description: f_spi_ker_ck / 32 + value: 4 + - name: Div64 + description: f_spi_ker_ck / 64 + value: 5 + - name: Div128 + description: f_spi_ker_ck / 128 + value: 6 + - name: Div256 + description: f_spi_ker_ck / 256 + value: 7 enum/RCRCINI: bit_size: 1 variants: - - name: AllZeros - description: All zeros RX CRC initialization pattern - value: 0 - - name: AllOnes - description: All ones RX CRC initialization pattern - value: 1 + - name: AllZeros + description: All zeros RX CRC initialization pattern + value: 0 + - name: AllOnes + description: All ones RX CRC initialization pattern + value: 1 enum/RDIOM: bit_size: 1 variants: - - name: PermanentlyActive - description: RDY signal is defined internally fixed as permanently active (RDIOP setting has no effect) - value: 0 - - name: FromInput - description: RDY signal is overtaken from alternate function input (at master case) or output (at slave case) of the dedicated pin (RDIOP setting takes effect) - value: 1 + - name: PermanentlyActive + description: RDY signal is defined internally fixed as permanently active (RDIOP setting has no effect) + value: 0 + - name: FromInput + description: RDY signal is overtaken from alternate function input (at master case) or output (at slave case) of the dedicated pin (RDIOP setting takes effect) + value: 1 enum/RDIOP: bit_size: 1 variants: - - name: ReadyHigh - description: high level of the signal means the slave is ready for communication - value: 0 - - name: ReadyLow - description: low level of the signal means the slave is ready for communication - value: 1 + - name: ReadyHigh + description: high level of the signal means the slave is ready for communication + value: 0 + - name: ReadyLow + description: low level of the signal means the slave is ready for communication + value: 1 enum/RXPLVL: bit_size: 2 variants: - - name: ZeroFrames - description: Zero frames beyond packing ratio available - value: 0 - - name: OneFrame - description: One frame beyond packing ratio available - value: 1 - - name: TwoFrames - description: Two frame beyond packing ratio available - value: 2 - - name: ThreeFrames - description: Three frame beyond packing ratio available - value: 3 + - name: ZeroFrames + description: Zero frames beyond packing ratio available + value: 0 + - name: OneFrame + description: One frame beyond packing ratio available + value: 1 + - name: TwoFrames + description: Two frame beyond packing ratio available + value: 2 + - name: ThreeFrames + description: Three frame beyond packing ratio available + value: 3 enum/RXWNE: bit_size: 1 variants: - - name: LessThan32 - description: Less than 32-bit data frame received - value: 0 - - name: AtLeast32 - description: At least 32-bit data frame received - value: 1 + - name: LessThan32 + description: Less than 32-bit data frame received + value: 0 + - name: AtLeast32 + description: At least 32-bit data frame received + value: 1 enum/SP: bit_size: 3 variants: - - name: Motorola - description: Motorola SPI protocol - value: 0 - - name: TI - description: TI SPI protocol - value: 1 + - name: Motorola + description: Motorola SPI protocol + value: 0 + - name: TI + description: TI SPI protocol + value: 1 enum/SSIOP: bit_size: 1 variants: - - name: ActiveLow - description: Low level is active for SS signal - value: 0 - - name: ActiveHigh - description: High level is active for SS signal - value: 1 + - name: ActiveLow + description: Low level is active for SS signal + value: 0 + - name: ActiveHigh + description: High level is active for SS signal + value: 1 enum/SSOM: bit_size: 1 variants: - - name: Asserted - description: SS is asserted until data transfer complete - value: 0 - - name: NotAsserted - description: Data frames interleaved with SS not asserted during MIDI - value: 1 + - name: Asserted + description: SS is asserted until data transfer complete + value: 0 + - name: NotAsserted + description: Data frames interleaved with SS not asserted during MIDI + value: 1 enum/TCRCINI: bit_size: 1 variants: - - name: AllZeros - description: All zeros TX CRC initialization pattern - value: 0 - - name: AllOnes - description: All ones TX CRC initialization pattern - value: 1 + - name: AllZeros + description: All zeros TX CRC initialization pattern + value: 0 + - name: AllOnes + description: All ones TX CRC initialization pattern + value: 1 enum/UDRCFG: bit_size: 2 variants: - - name: Constant - description: Slave sends a constant underrun pattern - value: 0 - - name: RepeatReceived - description: Slave repeats last received data frame from master - value: 1 - - name: RepeatTransmitted - description: Slave repeats last transmitted data frame - value: 2 + - name: Constant + description: Slave sends a constant underrun pattern + value: 0 + - name: RepeatReceived + description: Slave repeats last received data frame from master + value: 1 + - name: RepeatTransmitted + description: Slave repeats last transmitted data frame + value: 2 diff --git a/data/registers/spi_v5.yaml b/data/registers/spi_v5.yaml index d5961e6..6ebe0e8 100644 --- a/data/registers/spi_v5.yaml +++ b/data/registers/spi_v5.yaml @@ -1,701 +1,709 @@ ---- block/SPI: description: Serial peripheral interface items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CFG1 - description: configuration register 1 - byte_offset: 8 - fieldset: CFG1 - - name: CFG2 - description: configuration register 2 - byte_offset: 12 - fieldset: CFG2 - - name: IER - description: Interrupt Enable Register - byte_offset: 16 - fieldset: IER - - name: SR - description: Status Register - byte_offset: 20 - access: Read - fieldset: SR - - name: IFCR - description: Interrupt/Status Flags Clear Register - byte_offset: 24 - access: Write - fieldset: IFCR - - name: AUTOCR - byte_offset: 28 - fieldset: AUTOCR - - name: TXDR - description: Transmit Data Register - byte_offset: 32 - access: Write - fieldset: TXDR - - name: RXDR - description: Receive Data Register - byte_offset: 48 - access: Read - fieldset: RXDR - - name: CRCPOLY - description: Polynomial Register - byte_offset: 64 - fieldset: CRCPOLY - - name: TXCRC - description: Transmitter CRC Register - byte_offset: 68 - fieldset: TXCRC - - name: RXCRC - description: Receiver CRC Register - byte_offset: 72 - fieldset: RXCRC - - name: UDRDR - description: Underrun Data Register - byte_offset: 76 - fieldset: UDRDR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CFG1 + description: configuration register 1 + byte_offset: 8 + fieldset: CFG1 + - name: CFG2 + description: configuration register 2 + byte_offset: 12 + fieldset: CFG2 + - name: IER + description: Interrupt Enable Register + byte_offset: 16 + fieldset: IER + - name: SR + description: Status Register + byte_offset: 20 + access: Read + fieldset: SR + - name: IFCR + description: Interrupt/Status Flags Clear Register + byte_offset: 24 + access: Write + fieldset: IFCR + - name: AUTOCR + byte_offset: 28 + fieldset: AUTOCR + - name: TXDR + description: Transmit Data Register + byte_offset: 32 + access: Write + fieldset: TXDR + - name: RXDR + description: Receive Data Register + byte_offset: 48 + access: Read + fieldset: RXDR + - name: CRCPOLY + description: Polynomial Register + byte_offset: 64 + fieldset: CRCPOLY + - name: TXCRC + description: Transmitter CRC Register + byte_offset: 68 + fieldset: TXCRC + - name: RXCRC + description: Receiver CRC Register + byte_offset: 72 + fieldset: RXCRC + - name: UDRDR + description: Underrun Data Register + byte_offset: 76 + fieldset: UDRDR fieldset/AUTOCR: fields: - - name: TRIGSEL - description: "trigger selection (refer ).\n ...\n Note: these bits can be written only when SPE = 0." - bit_offset: 16 - bit_size: 4 - - name: TRIGPOL - description: "trigger polarity\n Note: This bit can be written only when SPE = 0." - bit_offset: 20 - bit_size: 1 - enum: TRIGPOL - - name: TRIGEN - description: "trigger of CSTART control enable\n Note: if user can't prevent trigger event during write, the TRIGEN has to be changed when SPI is disabled" - bit_offset: 21 - bit_size: 1 + - name: TRIGSEL + description: |- + trigger selection (refer ). + ... + Note: these bits can be written only when SPE = 0. + bit_offset: 16 + bit_size: 4 + - name: TRIGPOL + description: |- + trigger polarity + Note: This bit can be written only when SPE = 0. + bit_offset: 20 + bit_size: 1 + enum: TRIGPOL + - name: TRIGEN + description: |- + trigger of CSTART control enable + Note: if user can't prevent trigger event during write, the TRIGEN has to be changed when SPI is disabled + bit_offset: 21 + bit_size: 1 fieldset/CFG1: description: configuration register 1 fields: - - name: DSIZE - description: Number of bits in at single SPI data frame - bit_offset: 0 - bit_size: 5 - - name: FTHLV - description: threshold level - bit_offset: 5 - bit_size: 4 - enum: FTHLV - - name: UDRCFG - description: Behavior of slave transmitter at underrun condition - bit_offset: 9 - bit_size: 2 - enum: UDRCFG - - name: RXDMAEN - description: Rx DMA stream enable - bit_offset: 14 - bit_size: 1 - - name: TXDMAEN - description: Tx DMA stream enable - bit_offset: 15 - bit_size: 1 - - name: CRCSIZE - description: Length of CRC frame to be transacted and compared - bit_offset: 16 - bit_size: 5 - - name: CRCEN - description: Hardware CRC computation enable - bit_offset: 22 - bit_size: 1 - - name: MBR - description: Master baud rate - bit_offset: 28 - bit_size: 3 - enum: MBR - - name: BPASS - description: bypass of the prescaler at master baud rate clock generator - bit_offset: 31 - bit_size: 1 + - name: DSIZE + description: Number of bits in at single SPI data frame + bit_offset: 0 + bit_size: 5 + - name: FTHLV + description: threshold level + bit_offset: 5 + bit_size: 4 + enum: FTHLV + - name: UDRCFG + description: Behavior of slave transmitter at underrun condition + bit_offset: 9 + bit_size: 2 + enum: UDRCFG + - name: RXDMAEN + description: Rx DMA stream enable + bit_offset: 14 + bit_size: 1 + - name: TXDMAEN + description: Tx DMA stream enable + bit_offset: 15 + bit_size: 1 + - name: CRCSIZE + description: Length of CRC frame to be transacted and compared + bit_offset: 16 + bit_size: 5 + - name: CRCEN + description: Hardware CRC computation enable + bit_offset: 22 + bit_size: 1 + - name: MBR + description: Master baud rate + bit_offset: 28 + bit_size: 3 + enum: MBR + - name: BPASS + description: bypass of the prescaler at master baud rate clock generator + bit_offset: 31 + bit_size: 1 fieldset/CFG2: description: configuration register 2 fields: - - name: MSSI - description: Master SS Idleness - bit_offset: 0 - bit_size: 4 - - name: MIDI - description: Master Inter-Data Idleness - bit_offset: 4 - bit_size: 4 - - name: RDIOM - description: "RDY signal input/output management\n Note: When DSIZE at the CFG1 register is configured shorter than 8-bit, the RDIOM bit has to be kept at zero." - bit_offset: 13 - bit_size: 1 - enum: RDIOM - - name: RDIOP - description: RDY signal input/output polarity - bit_offset: 14 - bit_size: 1 - enum: RDIOP - - name: IOSWP - description: Swap functionality of MISO and MOSI pins - bit_offset: 15 - bit_size: 1 - - name: COMM - description: SPI Communication Mode - bit_offset: 17 - bit_size: 2 - enum: COMM - - name: SP - description: Serial Protocol - bit_offset: 19 - bit_size: 3 - enum: SP - - name: MASTER - description: SPI Master - bit_offset: 22 - bit_size: 1 - enum: MASTER - - name: LSBFIRST - description: Data frame format - bit_offset: 23 - bit_size: 1 - enum: LSBFIRST - - name: CPHA - description: Clock phase - bit_offset: 24 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 25 - bit_size: 1 - enum: CPOL - - name: SSM - description: Software management of SS signal input - bit_offset: 26 - bit_size: 1 - - name: SSIOP - description: SS input/output polarity - bit_offset: 28 - bit_size: 1 - enum: SSIOP - - name: SSOE - description: SS output enable - bit_offset: 29 - bit_size: 1 - - name: SSOM - description: SS output management in master mode - bit_offset: 30 - bit_size: 1 - enum: SSOM - - name: AFCNTR - description: Alternate function GPIOs control - bit_offset: 31 - bit_size: 1 - enum: AFCNTR + - name: MSSI + description: Master SS Idleness + bit_offset: 0 + bit_size: 4 + - name: MIDI + description: Master Inter-Data Idleness + bit_offset: 4 + bit_size: 4 + - name: RDIOM + description: |- + RDY signal input/output management + Note: When DSIZE at the CFG1 register is configured shorter than 8-bit, the RDIOM bit has to be kept at zero. + bit_offset: 13 + bit_size: 1 + enum: RDIOM + - name: RDIOP + description: RDY signal input/output polarity + bit_offset: 14 + bit_size: 1 + enum: RDIOP + - name: IOSWP + description: Swap functionality of MISO and MOSI pins + bit_offset: 15 + bit_size: 1 + - name: COMM + description: SPI Communication Mode + bit_offset: 17 + bit_size: 2 + enum: COMM + - name: SP + description: Serial Protocol + bit_offset: 19 + bit_size: 3 + enum: SP + - name: MASTER + description: SPI Master + bit_offset: 22 + bit_size: 1 + enum: MASTER + - name: LSBFIRST + description: Data frame format + bit_offset: 23 + bit_size: 1 + enum: LSBFIRST + - name: CPHA + description: Clock phase + bit_offset: 24 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 25 + bit_size: 1 + enum: CPOL + - name: SSM + description: Software management of SS signal input + bit_offset: 26 + bit_size: 1 + - name: SSIOP + description: SS input/output polarity + bit_offset: 28 + bit_size: 1 + enum: SSIOP + - name: SSOE + description: SS output enable + bit_offset: 29 + bit_size: 1 + - name: SSOM + description: SS output management in master mode + bit_offset: 30 + bit_size: 1 + enum: SSOM + - name: AFCNTR + description: Alternate function GPIOs control + bit_offset: 31 + bit_size: 1 + enum: AFCNTR fieldset/CR1: description: control register 1 fields: - - name: SPE - description: Serial Peripheral Enable - bit_offset: 0 - bit_size: 1 - - name: MASRX - description: Master automatic SUSP in Receive mode - bit_offset: 8 - bit_size: 1 - - name: CSTART - description: Master transfer start - bit_offset: 9 - bit_size: 1 - - name: CSUSP - description: Master SUSPend request - bit_offset: 10 - bit_size: 1 - - name: HDDIR - description: Rx/Tx direction at Half-duplex mode - bit_offset: 11 - bit_size: 1 - enum: HDDIR - - name: SSI - description: Internal SS signal input level - bit_offset: 12 - bit_size: 1 - - name: CRC33_17 - description: 32-bit CRC polynomial configuration - bit_offset: 13 - bit_size: 1 - enum: CRC_ - - name: RCRCINI - description: CRC calculation initialization pattern control for receiver - bit_offset: 14 - bit_size: 1 - enum: RCRCINI - - name: TCRCINI - description: CRC calculation initialization pattern control for transmitter - bit_offset: 15 - bit_size: 1 - enum: TCRCINI - - name: IOLOCK - description: Locking the AF configuration of associated IOs - bit_offset: 16 - bit_size: 1 + - name: SPE + description: Serial Peripheral Enable + bit_offset: 0 + bit_size: 1 + - name: MASRX + description: Master automatic SUSP in Receive mode + bit_offset: 8 + bit_size: 1 + - name: CSTART + description: Master transfer start + bit_offset: 9 + bit_size: 1 + - name: CSUSP + description: Master SUSPend request + bit_offset: 10 + bit_size: 1 + - name: HDDIR + description: Rx/Tx direction at Half-duplex mode + bit_offset: 11 + bit_size: 1 + enum: HDDIR + - name: SSI + description: Internal SS signal input level + bit_offset: 12 + bit_size: 1 + - name: CRC33_17 + description: 32-bit CRC polynomial configuration + bit_offset: 13 + bit_size: 1 + enum: CRC_ + - name: RCRCINI + description: CRC calculation initialization pattern control for receiver + bit_offset: 14 + bit_size: 1 + enum: RCRCINI + - name: TCRCINI + description: CRC calculation initialization pattern control for transmitter + bit_offset: 15 + bit_size: 1 + enum: TCRCINI + - name: IOLOCK + description: Locking the AF configuration of associated IOs + bit_offset: 16 + bit_size: 1 fieldset/CR2: description: control register 2 fields: - - name: TSIZE - description: Number of data at current transfer - bit_offset: 0 - bit_size: 16 + - name: TSIZE + description: Number of data at current transfer + bit_offset: 0 + bit_size: 16 fieldset/CRCPOLY: description: Polynomial Register fields: - - name: CRCPOLY - description: CRC polynomial register - bit_offset: 0 - bit_size: 32 + - name: CRCPOLY + description: CRC polynomial register + bit_offset: 0 + bit_size: 32 fieldset/IER: description: Interrupt Enable Register fields: - - name: RXPIE - description: RXP Interrupt Enable - bit_offset: 0 - bit_size: 1 - - name: TXPIE - description: TXP interrupt enable - bit_offset: 1 - bit_size: 1 - - name: DXPIE - description: DXP interrupt enabled - bit_offset: 2 - bit_size: 1 - - name: EOTIE - description: "EOT, SUSP and TXC interrupt enable" - bit_offset: 3 - bit_size: 1 - - name: TXTFIE - description: TXTFIE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: UDRIE - description: UDR interrupt enable - bit_offset: 5 - bit_size: 1 - - name: OVRIE - description: OVR interrupt enable - bit_offset: 6 - bit_size: 1 - - name: CRCEIE - description: CRC Interrupt enable - bit_offset: 7 - bit_size: 1 - - name: TIFREIE - description: TIFRE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: MODFIE - description: Mode Fault interrupt enable - bit_offset: 9 - bit_size: 1 + - name: RXPIE + description: RXP Interrupt Enable + bit_offset: 0 + bit_size: 1 + - name: TXPIE + description: TXP interrupt enable + bit_offset: 1 + bit_size: 1 + - name: DXPIE + description: DXP interrupt enabled + bit_offset: 2 + bit_size: 1 + - name: EOTIE + description: EOT, SUSP and TXC interrupt enable + bit_offset: 3 + bit_size: 1 + - name: TXTFIE + description: TXTFIE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: UDRIE + description: UDR interrupt enable + bit_offset: 5 + bit_size: 1 + - name: OVRIE + description: OVR interrupt enable + bit_offset: 6 + bit_size: 1 + - name: CRCEIE + description: CRC Interrupt enable + bit_offset: 7 + bit_size: 1 + - name: TIFREIE + description: TIFRE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: MODFIE + description: Mode Fault interrupt enable + bit_offset: 9 + bit_size: 1 fieldset/IFCR: description: Interrupt/Status Flags Clear Register fields: - - name: EOTC - description: End Of Transfer flag clear - bit_offset: 3 - bit_size: 1 - - name: TXTFC - description: Transmission Transfer Filled flag clear - bit_offset: 4 - bit_size: 1 - - name: UDRC - description: Underrun flag clear - bit_offset: 5 - bit_size: 1 - - name: OVRC - description: Overrun flag clear - bit_offset: 6 - bit_size: 1 - - name: CRCEC - description: CRC Error flag clear - bit_offset: 7 - bit_size: 1 - - name: TIFREC - description: TI frame format error flag clear - bit_offset: 8 - bit_size: 1 - - name: MODFC - description: Mode Fault flag clear - bit_offset: 9 - bit_size: 1 - - name: SUSPC - description: SUSPend flag clear - bit_offset: 11 - bit_size: 1 + - name: EOTC + description: End Of Transfer flag clear + bit_offset: 3 + bit_size: 1 + - name: TXTFC + description: Transmission Transfer Filled flag clear + bit_offset: 4 + bit_size: 1 + - name: UDRC + description: Underrun flag clear + bit_offset: 5 + bit_size: 1 + - name: OVRC + description: Overrun flag clear + bit_offset: 6 + bit_size: 1 + - name: CRCEC + description: CRC Error flag clear + bit_offset: 7 + bit_size: 1 + - name: TIFREC + description: TI frame format error flag clear + bit_offset: 8 + bit_size: 1 + - name: MODFC + description: Mode Fault flag clear + bit_offset: 9 + bit_size: 1 + - name: SUSPC + description: SUSPend flag clear + bit_offset: 11 + bit_size: 1 fieldset/RXCRC: description: Receiver CRC Register fields: - - name: RXCRC - description: CRC register for receiver - bit_offset: 0 - bit_size: 32 + - name: RXCRC + description: CRC register for receiver + bit_offset: 0 + bit_size: 32 fieldset/RXDR: description: Receive Data Register fields: - - name: RXDR - description: Receive data register - bit_offset: 0 - bit_size: 32 + - name: RXDR + description: Receive data register + bit_offset: 0 + bit_size: 32 fieldset/SR: description: Status Register fields: - - name: RXP - description: Rx-Packet available - bit_offset: 0 - bit_size: 1 - - name: TXP - description: Tx-Packet space available - bit_offset: 1 - bit_size: 1 - - name: DXP - description: Duplex Packet - bit_offset: 2 - bit_size: 1 - - name: EOT - description: End Of Transfer - bit_offset: 3 - bit_size: 1 - - name: TXTF - description: Transmission Transfer Filled - bit_offset: 4 - bit_size: 1 - - name: UDR - description: Underrun at slave transmission mode - bit_offset: 5 - bit_size: 1 - - name: OVR - description: Overrun - bit_offset: 6 - bit_size: 1 - - name: CRCE - description: CRC Error - bit_offset: 7 - bit_size: 1 - - name: TIFRE - description: TI frame format error - bit_offset: 8 - bit_size: 1 - - name: MODF - description: Mode Fault - bit_offset: 9 - bit_size: 1 - - name: SUSP - description: SUSPend - bit_offset: 11 - bit_size: 1 - - name: TXC - description: TxFIFO transmission complete - bit_offset: 12 - bit_size: 1 - - name: RXPLVL - description: RxFIFO Packing LeVeL - bit_offset: 13 - bit_size: 2 - enum: RXPLVL - - name: RXWNE - description: RxFIFO Word Not Empty - bit_offset: 15 - bit_size: 1 - enum: RXWNE - - name: CTSIZE - description: Number of data frames remaining in current TSIZE session - bit_offset: 16 - bit_size: 16 + - name: RXP + description: Rx-Packet available + bit_offset: 0 + bit_size: 1 + - name: TXP + description: Tx-Packet space available + bit_offset: 1 + bit_size: 1 + - name: DXP + description: Duplex Packet + bit_offset: 2 + bit_size: 1 + - name: EOT + description: End Of Transfer + bit_offset: 3 + bit_size: 1 + - name: TXTF + description: Transmission Transfer Filled + bit_offset: 4 + bit_size: 1 + - name: UDR + description: Underrun at slave transmission mode + bit_offset: 5 + bit_size: 1 + - name: OVR + description: Overrun + bit_offset: 6 + bit_size: 1 + - name: CRCE + description: CRC Error + bit_offset: 7 + bit_size: 1 + - name: TIFRE + description: TI frame format error + bit_offset: 8 + bit_size: 1 + - name: MODF + description: Mode Fault + bit_offset: 9 + bit_size: 1 + - name: SUSP + description: SUSPend + bit_offset: 11 + bit_size: 1 + - name: TXC + description: TxFIFO transmission complete + bit_offset: 12 + bit_size: 1 + - name: RXPLVL + description: RxFIFO Packing LeVeL + bit_offset: 13 + bit_size: 2 + enum: RXPLVL + - name: RXWNE + description: RxFIFO Word Not Empty + bit_offset: 15 + bit_size: 1 + enum: RXWNE + - name: CTSIZE + description: Number of data frames remaining in current TSIZE session + bit_offset: 16 + bit_size: 16 fieldset/TXCRC: description: Transmitter CRC Register fields: - - name: TXCRC - description: CRC register for transmitter - bit_offset: 0 - bit_size: 32 + - name: TXCRC + description: CRC register for transmitter + bit_offset: 0 + bit_size: 32 fieldset/TXDR: description: Transmit Data Register fields: - - name: TXDR - description: Transmit data register - bit_offset: 0 - bit_size: 32 + - name: TXDR + description: Transmit data register + bit_offset: 0 + bit_size: 32 fieldset/UDRDR: description: Underrun Data Register fields: - - name: UDRDR - description: Data at slave underrun condition - bit_offset: 0 - bit_size: 32 + - name: UDRDR + description: Data at slave underrun condition + bit_offset: 0 + bit_size: 32 enum/AFCNTR: bit_size: 1 variants: - - name: NotControlled - description: Peripheral takes no control of GPIOs while disabled - value: 0 - - name: Controlled - description: Peripheral controls GPIOs while disabled - value: 1 + - name: NotControlled + description: Peripheral takes no control of GPIOs while disabled + value: 0 + - name: Controlled + description: Peripheral controls GPIOs while disabled + value: 1 enum/COMM: bit_size: 2 variants: - - name: FullDuplex - description: Full duplex - value: 0 - - name: Transmitter - description: Simplex transmitter only - value: 1 - - name: Receiver - description: Simplex receiver only - value: 2 - - name: HalfDuplex - description: Half duplex - value: 3 + - name: FullDuplex + description: Full duplex + value: 0 + - name: Transmitter + description: Simplex transmitter only + value: 1 + - name: Receiver + description: Simplex receiver only + value: 2 + - name: HalfDuplex + description: Half duplex + value: 3 enum/CPHA: bit_size: 1 variants: - - name: FirstEdge - description: The first clock transition is the first data capture edge - value: 0 - - name: SecondEdge - description: The second clock transition is the first data capture edge - value: 1 + - name: FirstEdge + description: The first clock transition is the first data capture edge + value: 0 + - name: SecondEdge + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: IdleLow - description: CK to 0 when idle - value: 0 - - name: IdleHigh - description: CK to 1 when idle - value: 1 + - name: IdleLow + description: CK to 0 when idle + value: 0 + - name: IdleHigh + description: CK to 1 when idle + value: 1 enum/CRC_: bit_size: 1 variants: - - name: Disabled - description: Full size (33/17 bit) CRC polynomial is not used - value: 0 - - name: Enabled - description: Full size (33/17 bit) CRC polynomial is used - value: 1 + - name: Disabled + description: Full size (33/17 bit) CRC polynomial is not used + value: 0 + - name: Enabled + description: Full size (33/17 bit) CRC polynomial is used + value: 1 enum/FTHLV: bit_size: 4 variants: - - name: OneFrame - description: 1 frame - value: 0 - - name: TwoFrames - description: 2 frames - value: 1 - - name: ThreeFrames - description: 3 frames - value: 2 - - name: FourFrames - description: 4 frames - value: 3 - - name: FiveFrames - description: 5 frames - value: 4 - - name: SixFrames - description: 6 frames - value: 5 - - name: SevenFrames - description: 7 frames - value: 6 - - name: EightFrames - description: 8 frames - value: 7 - - name: NineFrames - description: 9 frames - value: 8 - - name: TenFrames - description: 10 frames - value: 9 - - name: ElevenFrames - description: 11 frames - value: 10 - - name: TwelveFrames - description: 12 frames - value: 11 - - name: ThirteenFrames - description: 13 frames - value: 12 - - name: FourteenFrames - description: 14 frames - value: 13 - - name: FifteenFrames - description: 15 frames - value: 14 - - name: SixteenFrames - description: 16 frames - value: 15 + - name: OneFrame + description: 1 frame + value: 0 + - name: TwoFrames + description: 2 frames + value: 1 + - name: ThreeFrames + description: 3 frames + value: 2 + - name: FourFrames + description: 4 frames + value: 3 + - name: FiveFrames + description: 5 frames + value: 4 + - name: SixFrames + description: 6 frames + value: 5 + - name: SevenFrames + description: 7 frames + value: 6 + - name: EightFrames + description: 8 frames + value: 7 + - name: NineFrames + description: 9 frames + value: 8 + - name: TenFrames + description: 10 frames + value: 9 + - name: ElevenFrames + description: 11 frames + value: 10 + - name: TwelveFrames + description: 12 frames + value: 11 + - name: ThirteenFrames + description: 13 frames + value: 12 + - name: FourteenFrames + description: 14 frames + value: 13 + - name: FifteenFrames + description: 15 frames + value: 14 + - name: SixteenFrames + description: 16 frames + value: 15 enum/HDDIR: bit_size: 1 variants: - - name: Receiver - description: Receiver in half duplex mode - value: 0 - - name: Transmitter - description: Transmitter in half duplex mode - value: 1 + - name: Receiver + description: Receiver in half duplex mode + value: 0 + - name: Transmitter + description: Transmitter in half duplex mode + value: 1 enum/LSBFIRST: bit_size: 1 variants: - - name: MSBFirst - description: Data is transmitted/received with the MSB first - value: 0 - - name: LSBFirst - description: Data is transmitted/received with the LSB first - value: 1 + - name: MSBFirst + description: Data is transmitted/received with the MSB first + value: 0 + - name: LSBFirst + description: Data is transmitted/received with the LSB first + value: 1 enum/MASTER: bit_size: 1 variants: - - name: Slave - description: Slave configuration - value: 0 - - name: Master - description: Master configuration - value: 1 + - name: Slave + description: Slave configuration + value: 0 + - name: Master + description: Master configuration + value: 1 enum/MBR: bit_size: 3 variants: - - name: Div2 - description: f_spi_ker_ck / 2 - value: 0 - - name: Div4 - description: f_spi_ker_ck / 4 - value: 1 - - name: Div8 - description: f_spi_ker_ck / 8 - value: 2 - - name: Div16 - description: f_spi_ker_ck / 16 - value: 3 - - name: Div32 - description: f_spi_ker_ck / 32 - value: 4 - - name: Div64 - description: f_spi_ker_ck / 64 - value: 5 - - name: Div128 - description: f_spi_ker_ck / 128 - value: 6 - - name: Div256 - description: f_spi_ker_ck / 256 - value: 7 + - name: Div2 + description: f_spi_ker_ck / 2 + value: 0 + - name: Div4 + description: f_spi_ker_ck / 4 + value: 1 + - name: Div8 + description: f_spi_ker_ck / 8 + value: 2 + - name: Div16 + description: f_spi_ker_ck / 16 + value: 3 + - name: Div32 + description: f_spi_ker_ck / 32 + value: 4 + - name: Div64 + description: f_spi_ker_ck / 64 + value: 5 + - name: Div128 + description: f_spi_ker_ck / 128 + value: 6 + - name: Div256 + description: f_spi_ker_ck / 256 + value: 7 enum/RCRCINI: bit_size: 1 variants: - - name: AllZeros - description: All zeros RX CRC initialization pattern - value: 0 - - name: AllOnes - description: All ones RX CRC initialization pattern - value: 1 + - name: AllZeros + description: All zeros RX CRC initialization pattern + value: 0 + - name: AllOnes + description: All ones RX CRC initialization pattern + value: 1 enum/RDIOM: bit_size: 1 variants: - - name: PermanentlyActive - description: RDY signal is defined internally fixed as permanently active (RDIOP setting has no effect) - value: 0 - - name: FromInput - description: RDY signal is overtaken from alternate function input (at master case) or output (at slave case) of the dedicated pin (RDIOP setting takes effect) - value: 1 + - name: PermanentlyActive + description: RDY signal is defined internally fixed as permanently active (RDIOP setting has no effect) + value: 0 + - name: FromInput + description: RDY signal is overtaken from alternate function input (at master case) or output (at slave case) of the dedicated pin (RDIOP setting takes effect) + value: 1 enum/RDIOP: bit_size: 1 variants: - - name: ReadyHigh - description: high level of the signal means the slave is ready for communication - value: 0 - - name: ReadyLow - description: low level of the signal means the slave is ready for communication - value: 1 + - name: ReadyHigh + description: high level of the signal means the slave is ready for communication + value: 0 + - name: ReadyLow + description: low level of the signal means the slave is ready for communication + value: 1 enum/RXPLVL: bit_size: 2 variants: - - name: ZeroFrames - description: Zero frames beyond packing ratio available - value: 0 - - name: OneFrame - description: One frame beyond packing ratio available - value: 1 - - name: TwoFrames - description: Two frame beyond packing ratio available - value: 2 - - name: ThreeFrames - description: Three frame beyond packing ratio available - value: 3 + - name: ZeroFrames + description: Zero frames beyond packing ratio available + value: 0 + - name: OneFrame + description: One frame beyond packing ratio available + value: 1 + - name: TwoFrames + description: Two frame beyond packing ratio available + value: 2 + - name: ThreeFrames + description: Three frame beyond packing ratio available + value: 3 enum/RXWNE: bit_size: 1 variants: - - name: LessThan32 - description: Less than 32-bit data frame received - value: 0 - - name: AtLeast32 - description: At least 32-bit data frame received - value: 1 + - name: LessThan32 + description: Less than 32-bit data frame received + value: 0 + - name: AtLeast32 + description: At least 32-bit data frame received + value: 1 enum/SP: bit_size: 3 variants: - - name: Motorola - description: Motorola SPI protocol - value: 0 - - name: TI - description: TI SPI protocol - value: 1 + - name: Motorola + description: Motorola SPI protocol + value: 0 + - name: TI + description: TI SPI protocol + value: 1 enum/SSIOP: bit_size: 1 variants: - - name: ActiveLow - description: Low level is active for SS signal - value: 0 - - name: ActiveHigh - description: High level is active for SS signal - value: 1 + - name: ActiveLow + description: Low level is active for SS signal + value: 0 + - name: ActiveHigh + description: High level is active for SS signal + value: 1 enum/SSOM: bit_size: 1 variants: - - name: Asserted - description: SS is asserted until data transfer complete - value: 0 - - name: NotAsserted - description: Data frames interleaved with SS not asserted during MIDI - value: 1 + - name: Asserted + description: SS is asserted until data transfer complete + value: 0 + - name: NotAsserted + description: Data frames interleaved with SS not asserted during MIDI + value: 1 enum/TCRCINI: bit_size: 1 variants: - - name: AllZeros - description: All zeros TX CRC initialization pattern - value: 0 - - name: AllOnes - description: All ones TX CRC initialization pattern - value: 1 + - name: AllZeros + description: All zeros TX CRC initialization pattern + value: 0 + - name: AllOnes + description: All ones TX CRC initialization pattern + value: 1 enum/TRIGPOL: bit_size: 1 variants: - - name: RisingEdge - description: trigger is active on raising edge - value: 0 - - name: FallingEdge - description: trigger is active on falling edge - value: 1 + - name: RisingEdge + description: trigger is active on raising edge + value: 0 + - name: FallingEdge + description: trigger is active on falling edge + value: 1 enum/UDRCFG: bit_size: 2 variants: - - name: Constant - description: Slave sends a constant underrun pattern - value: 0 - - name: RepeatReceived - description: Slave repeats last received data frame from master - value: 1 - - name: RepeatTransmitted - description: Slave repeats last transmitted data frame - value: 2 + - name: Constant + description: Slave sends a constant underrun pattern + value: 0 + - name: RepeatReceived + description: Slave repeats last received data frame from master + value: 1 + - name: RepeatTransmitted + description: Slave repeats last transmitted data frame + value: 2 diff --git a/data/registers/syscfg_c0.yaml b/data/registers/syscfg_c0.yaml index b52448b..a7ec916 100644 --- a/data/registers/syscfg_c0.yaml +++ b/data/registers/syscfg_c0.yaml @@ -1,522 +1,521 @@ ---- block/SYSCFG: description: register block items: - - name: CFGR1 - description: configuration register 1 - byte_offset: 0 - fieldset: CFGR1 - - name: CFGR2 - description: configuration register 2 - byte_offset: 24 - fieldset: CFGR2 - - name: CFGR3 - description: configuration register 3 - byte_offset: 60 - fieldset: CFGR3 - - name: ITLINE0 - description: interrupt line 0 status register - byte_offset: 128 - access: Read - fieldset: ITLINE0 - - name: ITLINE2 - description: interrupt line 2 status register - byte_offset: 136 - access: Read - fieldset: ITLINE2 - - name: ITLINE3 - description: interrupt line 3 status register - byte_offset: 140 - access: Read - fieldset: ITLINE3 - - name: ITLINE4 - description: interrupt line 4 status register - byte_offset: 144 - access: Read - fieldset: ITLINE4 - - name: ITLINE5 - description: interrupt line 5 status register - byte_offset: 148 - access: Read - fieldset: ITLINE5 - - name: ITLINE6 - description: interrupt line 6 status register - byte_offset: 152 - access: Read - fieldset: ITLINE6 - - name: ITLINE7 - description: interrupt line 7 status register - byte_offset: 156 - access: Read - fieldset: ITLINE7 - - name: ITLINE9 - description: interrupt line 9 status register - byte_offset: 164 - access: Read - fieldset: ITLINE9 - - name: ITLINE10 - description: interrupt line 10 status register - byte_offset: 168 - access: Read - fieldset: ITLINE10 - - name: ITLINE11 - description: interrupt line 11 status register - byte_offset: 172 - access: Read - fieldset: ITLINE11 - - name: ITLINE12 - description: interrupt line 12 status register - byte_offset: 176 - access: Read - fieldset: ITLINE12 - - name: ITLINE13 - description: interrupt line 13 status register - byte_offset: 180 - access: Read - fieldset: ITLINE13 - - name: ITLINE14 - description: interrupt line 14 status register - byte_offset: 184 - access: Read - fieldset: ITLINE14 - - name: ITLINE16 - description: interrupt line 16 status register - byte_offset: 192 - access: Read - fieldset: ITLINE16 - - name: ITLINE19 - description: interrupt line 19 status register - byte_offset: 204 - access: Read - fieldset: ITLINE19 - - name: ITLINE21 - description: interrupt line 21 status register - byte_offset: 212 - access: Read - fieldset: ITLINE21 - - name: ITLINE22 - description: interrupt line 22 status register - byte_offset: 216 - access: Read - fieldset: ITLINE22 - - name: ITLINE23 - description: interrupt line 23 status register - byte_offset: 220 - access: Read - fieldset: ITLINE23 - - name: ITLINE25 - description: interrupt line 25 status register - byte_offset: 228 - access: Read - fieldset: ITLINE25 - - name: ITLINE27 - description: interrupt line 27 status register - byte_offset: 236 - access: Read - fieldset: ITLINE27 - - name: ITLINE28 - description: interrupt line 28 status register - byte_offset: 240 - access: Read - fieldset: ITLINE28 + - name: CFGR1 + description: configuration register 1 + byte_offset: 0 + fieldset: CFGR1 + - name: CFGR2 + description: configuration register 2 + byte_offset: 24 + fieldset: CFGR2 + - name: CFGR3 + description: configuration register 3 + byte_offset: 60 + fieldset: CFGR3 + - name: ITLINE0 + description: interrupt line 0 status register + byte_offset: 128 + access: Read + fieldset: ITLINE0 + - name: ITLINE2 + description: interrupt line 2 status register + byte_offset: 136 + access: Read + fieldset: ITLINE2 + - name: ITLINE3 + description: interrupt line 3 status register + byte_offset: 140 + access: Read + fieldset: ITLINE3 + - name: ITLINE4 + description: interrupt line 4 status register + byte_offset: 144 + access: Read + fieldset: ITLINE4 + - name: ITLINE5 + description: interrupt line 5 status register + byte_offset: 148 + access: Read + fieldset: ITLINE5 + - name: ITLINE6 + description: interrupt line 6 status register + byte_offset: 152 + access: Read + fieldset: ITLINE6 + - name: ITLINE7 + description: interrupt line 7 status register + byte_offset: 156 + access: Read + fieldset: ITLINE7 + - name: ITLINE9 + description: interrupt line 9 status register + byte_offset: 164 + access: Read + fieldset: ITLINE9 + - name: ITLINE10 + description: interrupt line 10 status register + byte_offset: 168 + access: Read + fieldset: ITLINE10 + - name: ITLINE11 + description: interrupt line 11 status register + byte_offset: 172 + access: Read + fieldset: ITLINE11 + - name: ITLINE12 + description: interrupt line 12 status register + byte_offset: 176 + access: Read + fieldset: ITLINE12 + - name: ITLINE13 + description: interrupt line 13 status register + byte_offset: 180 + access: Read + fieldset: ITLINE13 + - name: ITLINE14 + description: interrupt line 14 status register + byte_offset: 184 + access: Read + fieldset: ITLINE14 + - name: ITLINE16 + description: interrupt line 16 status register + byte_offset: 192 + access: Read + fieldset: ITLINE16 + - name: ITLINE19 + description: interrupt line 19 status register + byte_offset: 204 + access: Read + fieldset: ITLINE19 + - name: ITLINE21 + description: interrupt line 21 status register + byte_offset: 212 + access: Read + fieldset: ITLINE21 + - name: ITLINE22 + description: interrupt line 22 status register + byte_offset: 216 + access: Read + fieldset: ITLINE22 + - name: ITLINE23 + description: interrupt line 23 status register + byte_offset: 220 + access: Read + fieldset: ITLINE23 + - name: ITLINE25 + description: interrupt line 25 status register + byte_offset: 228 + access: Read + fieldset: ITLINE25 + - name: ITLINE27 + description: interrupt line 27 status register + byte_offset: 236 + access: Read + fieldset: ITLINE27 + - name: ITLINE28 + description: interrupt line 28 status register + byte_offset: 240 + access: Read + fieldset: ITLINE28 fieldset/CFGR1: description: configuration register 1 fields: - - name: MEM_MODE - description: Memory mapping selection bits. This bitfield controlled by software selects the memory internally mapped at the address 0x0000_0000. Its reset value is determined by the boot mode configuration. Refer to Reference Manual section 2.5 for more details. - bit_offset: 0 - bit_size: 2 - enum: MEM_MODE - - name: PA11_RMP - description: "PA11 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA11 pin to operate as PA9 GPIO port, instead as PA11 GPIO port." - bit_offset: 3 - bit_size: 1 - - name: PA12_RMP - description: "PA12 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA12 pin to operate as PA10 GPIO port, instead as PA12 GPIO port." - bit_offset: 4 - bit_size: 1 - - name: IR_POL - description: IR output polarity selection - bit_offset: 5 - bit_size: 1 - - name: IR_MOD - description: "IR Modulation Envelope signal selection\r This bitfield selects the signal for IR modulation envelope:" - bit_offset: 6 - bit_size: 2 - enum: IR_MOD - - name: I2C_PB6_FMP - description: "Fast Mode Plus (FM+) enable for PB6\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB6 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: "Fast Mode Plus (FM+) enable for PB7\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB7 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: "Fast Mode Plus (FM+) enable for PB8\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB8 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: "Fast Mode Plus (FM+) enable for PB9\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB9 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: "Fast Mode Plus (FM+) enable for I2C1\r This bit is set and cleared by software. It enables I2C FM+ driving capability on I/O ports configured as I2C1 through GPIOx_AFR registers.\r With this bit in disable state, the I2C FM+ driving capability on I/O ports configured as I2C1 can be enabled through their corresponding I2Cx_FMP bit. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 20 - bit_size: 1 - - name: I2C_PA9_FMP - description: "Fast Mode Plus (FM+) enable for PA9\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PA9 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 22 - bit_size: 1 - - name: I2C_PA10_FMP - description: "Fast Mode Plus (FM+) enable for PA10\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PA10 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 23 - bit_size: 1 - - name: I2C_PC14_FMP - description: "Fast Mode Plus (FM+) enable for PC14\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PC14 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." - bit_offset: 24 - bit_size: 1 + - name: MEM_MODE + description: Memory mapping selection bits. This bitfield controlled by software selects the memory internally mapped at the address 0x0000_0000. Its reset value is determined by the boot mode configuration. Refer to Reference Manual section 2.5 for more details. + bit_offset: 0 + bit_size: 2 + enum: MEM_MODE + - name: PA11_RMP + description: "PA11 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA11 pin to operate as PA9 GPIO port, instead as PA11 GPIO port." + bit_offset: 3 + bit_size: 1 + - name: PA12_RMP + description: "PA12 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA12 pin to operate as PA10 GPIO port, instead as PA12 GPIO port." + bit_offset: 4 + bit_size: 1 + - name: IR_POL + description: IR output polarity selection + bit_offset: 5 + bit_size: 1 + - name: IR_MOD + description: "IR Modulation Envelope signal selection\r This bitfield selects the signal for IR modulation envelope:" + bit_offset: 6 + bit_size: 2 + enum: IR_MOD + - name: I2C_PB6_FMP + description: "Fast Mode Plus (FM+) enable for PB6\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB6 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: "Fast Mode Plus (FM+) enable for PB7\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB7 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: "Fast Mode Plus (FM+) enable for PB8\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB8 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: "Fast Mode Plus (FM+) enable for PB9\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PB9 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: "Fast Mode Plus (FM+) enable for I2C1\r This bit is set and cleared by software. It enables I2C FM+ driving capability on I/O ports configured as I2C1 through GPIOx_AFR registers.\r With this bit in disable state, the I2C FM+ driving capability on I/O ports configured as I2C1 can be enabled through their corresponding I2Cx_FMP bit. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 20 + bit_size: 1 + - name: I2C_PA9_FMP + description: "Fast Mode Plus (FM+) enable for PA9\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PA9 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 22 + bit_size: 1 + - name: I2C_PA10_FMP + description: "Fast Mode Plus (FM+) enable for PA10\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PA10 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 23 + bit_size: 1 + - name: I2C_PC14_FMP + description: "Fast Mode Plus (FM+) enable for PC14\r This bit is set and cleared by software. It enables I2C FM+ driving capability on PC14 I/O port.\r With this bit in disable state, the I2C FM+ driving capability on this I/O port can be enabled through one of I2Cx_FMP bits. When I2C FM+ is enabled, the speed control is ignored." + bit_offset: 24 + bit_size: 1 fieldset/CFGR2: description: configuration register 2 fields: - - name: LOCKUP_LOCK - description: "Cortex-M0+ LOCKUP enable\r This bit is set by software and cleared by system reset. When set, it enables the connection of Cortex-M0+ LOCKUP (HardFault) output to the TIM1/16/17 Break input." - bit_offset: 0 - bit_size: 1 + - name: LOCKUP_LOCK + description: "Cortex-M0+ LOCKUP enable\r This bit is set by software and cleared by system reset. When set, it enables the connection of Cortex-M0+ LOCKUP (HardFault) output to the TIM1/16/17 Break input." + bit_offset: 0 + bit_size: 1 fieldset/CFGR3: description: configuration register 3 fields: - - name: PINMUX0 - description: "Pin GPIO multiplexer 0\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved\r Pin F2 of WLCSP14 package GPIO assignment\r 1x: Reserved" - bit_offset: 0 - bit_size: 2 - enum: PINMUX0 - - name: PINMUX1 - description: "Pin GPIO multiplexer 1\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved" - bit_offset: 2 - bit_size: 2 - enum: PINMUX1 - - name: PINMUX2 - description: "Pin GPIO multiplexer 2\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved\r 1x: Reserved" - bit_offset: 4 - bit_size: 2 - enum: PINMUX2 - - name: PINMUX3 - description: "Pin GPIO multiplexer 3\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved" - bit_offset: 6 - bit_size: 2 - enum: PINMUX3 - - name: PINMUX4 - description: "Pin GPIO multiplexer 4\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved\r 1x: Reserved" - bit_offset: 8 - bit_size: 2 - enum: PINMUX4 - - name: PINMUX5 - description: "Pin GPIO multiplexer 5\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved" - bit_offset: 10 - bit_size: 2 - enum: PINMUX5 + - name: PINMUX0 + description: "Pin GPIO multiplexer 0\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved\r Pin F2 of WLCSP14 package GPIO assignment\r 1x: Reserved" + bit_offset: 0 + bit_size: 2 + enum: PINMUX0 + - name: PINMUX1 + description: "Pin GPIO multiplexer 1\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved" + bit_offset: 2 + bit_size: 2 + enum: PINMUX1 + - name: PINMUX2 + description: "Pin GPIO multiplexer 2\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved\r 1x: Reserved" + bit_offset: 4 + bit_size: 2 + enum: PINMUX2 + - name: PINMUX3 + description: "Pin GPIO multiplexer 3\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved" + bit_offset: 6 + bit_size: 2 + enum: PINMUX3 + - name: PINMUX4 + description: "Pin GPIO multiplexer 4\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved\r 1x: Reserved" + bit_offset: 8 + bit_size: 2 + enum: PINMUX4 + - name: PINMUX5 + description: "Pin GPIO multiplexer 5\r This bit is set by software and cleared by system reset. It assigns a GPIO to a pin.\r 1x: Reserved" + bit_offset: 10 + bit_size: 2 + enum: PINMUX5 fieldset/ITLINE0: description: interrupt line 0 status register fields: - - name: WWDG - description: Window watchdog interrupt pending flag - bit_offset: 0 - bit_size: 1 + - name: WWDG + description: Window watchdog interrupt pending flag + bit_offset: 0 + bit_size: 1 fieldset/ITLINE10: description: interrupt line 10 status register fields: - - name: DMA1_CH2 - description: DMA1 channel 2 interrupt request pending - bit_offset: 0 - bit_size: 1 - - name: DMA1_CH3 - description: DMA1 channel 3 interrupt request pending - bit_offset: 1 - bit_size: 1 + - name: DMA1_CH2 + description: DMA1 channel 2 interrupt request pending + bit_offset: 0 + bit_size: 1 + - name: DMA1_CH3 + description: DMA1 channel 3 interrupt request pending + bit_offset: 1 + bit_size: 1 fieldset/ITLINE11: description: interrupt line 11 status register fields: - - name: DMAMUX - description: DMAMUX interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: DMAMUX + description: DMAMUX interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE12: description: interrupt line 12 status register fields: - - name: ADC - description: ADC interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: ADC + description: ADC interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE13: description: interrupt line 13 status register fields: - - name: TIM1_CCU - description: Timer 1 commutation interrupt request pending - bit_offset: 0 - bit_size: 1 - - name: TIM1_TRG - description: Timer 1 trigger interrupt request pending - bit_offset: 1 - bit_size: 1 - - name: TIM1_UPD - description: Timer 1 update interrupt request pending - bit_offset: 2 - bit_size: 1 - - name: TIM1_BRK - description: Timer 1 break interrupt request pending - bit_offset: 3 - bit_size: 1 + - name: TIM1_CCU + description: Timer 1 commutation interrupt request pending + bit_offset: 0 + bit_size: 1 + - name: TIM1_TRG + description: Timer 1 trigger interrupt request pending + bit_offset: 1 + bit_size: 1 + - name: TIM1_UPD + description: Timer 1 update interrupt request pending + bit_offset: 2 + bit_size: 1 + - name: TIM1_BRK + description: Timer 1 break interrupt request pending + bit_offset: 3 + bit_size: 1 fieldset/ITLINE14: description: interrupt line 14 status register fields: - - name: TIM1_CC - description: Timer 1 capture compare interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: TIM1_CC + description: Timer 1 capture compare interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE16: description: interrupt line 16 status register fields: - - name: TIM3 - description: Timer 3 interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: TIM3 + description: Timer 3 interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE19: description: interrupt line 19 status register fields: - - name: TIM14 - description: Timer 14 interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: TIM14 + description: Timer 14 interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE2: description: interrupt line 2 status register fields: - - name: RTC - description: RTC interrupt request pending (EXTI line 19) - bit_offset: 1 - bit_size: 1 + - name: RTC + description: RTC interrupt request pending (EXTI line 19) + bit_offset: 1 + bit_size: 1 fieldset/ITLINE21: description: interrupt line 21 status register fields: - - name: TIM16 - description: Timer 16 interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: TIM16 + description: Timer 16 interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE22: description: interrupt line 22 status register fields: - - name: TIM17 - description: Timer 17 interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: TIM17 + description: Timer 17 interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE23: description: interrupt line 23 status register fields: - - name: I2C1 - description: "I2C1 interrupt request pending, combined with EXTI line 23" - bit_offset: 0 - bit_size: 1 + - name: I2C1 + description: I2C1 interrupt request pending, combined with EXTI line 23 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE25: description: interrupt line 25 status register fields: - - name: SPI1 - description: SPI1 interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: SPI1 + description: SPI1 interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE27: description: interrupt line 27 status register fields: - - name: USART1 - description: "USART1 interrupt request pending, combined with EXTI line 25" - bit_offset: 0 - bit_size: 1 + - name: USART1 + description: USART1 interrupt request pending, combined with EXTI line 25 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE28: description: interrupt line 28 status register fields: - - name: USART2 - description: USART2 interrupt request pending (EXTI line 26) - bit_offset: 0 - bit_size: 1 + - name: USART2 + description: USART2 interrupt request pending (EXTI line 26) + bit_offset: 0 + bit_size: 1 fieldset/ITLINE3: description: interrupt line 3 status register fields: - - name: FLASH_ITF - description: Flash interface interrupt request pending - bit_offset: 1 - bit_size: 1 + - name: FLASH_ITF + description: Flash interface interrupt request pending + bit_offset: 1 + bit_size: 1 fieldset/ITLINE4: description: interrupt line 4 status register fields: - - name: RCC - description: Reset and clock control interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: RCC + description: Reset and clock control interrupt request pending + bit_offset: 0 + bit_size: 1 fieldset/ITLINE5: description: interrupt line 5 status register fields: - - name: EXTI - description: EXTI - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: EXTI + description: EXTI + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 fieldset/ITLINE6: description: interrupt line 6 status register fields: - - name: EXTI - description: EXTI - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 + - name: EXTI + description: EXTI + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 fieldset/ITLINE7: description: interrupt line 7 status register fields: - - name: EXTI - description: EXTI - bit_offset: 0 - bit_size: 1 - array: - len: 12 - stride: 1 + - name: EXTI + description: EXTI + bit_offset: 0 + bit_size: 1 + array: + len: 12 + stride: 1 fieldset/ITLINE9: description: interrupt line 9 status register fields: - - name: DMA1_CH1 - description: DMA1 channel 1interrupt request pending - bit_offset: 0 - bit_size: 1 + - name: DMA1_CH1 + description: DMA1 channel 1interrupt request pending + bit_offset: 0 + bit_size: 1 enum/IR_MOD: bit_size: 2 variants: - - name: TIM16 - description: TIM16 - value: 0 - - name: USART1 - description: USART1 - value: 1 - - name: USART2 - description: USART2 - value: 2 + - name: TIM16 + description: TIM16 + value: 0 + - name: USART1 + description: USART1 + value: 1 + - name: USART2 + description: USART2 + value: 2 enum/MEM_MODE: bit_size: 2 variants: - - name: MAIN_FLASH - description: Main Flash memory mapped at address 0 - value: 0 - - name: SYSTEM_FLASH - description: System Flash memory mapped at address 0 - value: 1 - - name: MAIN_FLASH_ALT - description: Main Flash memory mapped at address 0 (alternate encoding) - value: 2 - - name: SRAM - description: Embedded SRAM mapped at address 0 - value: 3 + - name: MAIN_FLASH + description: Main Flash memory mapped at address 0 + value: 0 + - name: SYSTEM_FLASH + description: System Flash memory mapped at address 0 + value: 1 + - name: MAIN_FLASH_ALT + description: Main Flash memory mapped at address 0 (alternate encoding) + value: 2 + - name: SRAM + description: Embedded SRAM mapped at address 0 + value: 3 enum/PINMUX0: bit_size: 2 variants: - - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_1 - description: PB7 - value: 0 - - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_F2 - description: PA1 - value: 0 - - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_1 - description: PC14 - value: 1 - - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_F2 - description: PA2 - value: 1 + - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_1 + description: PB7 + value: 0 + - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_F2 + description: PA1 + value: 0 + - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_1 + description: PC14 + value: 1 + - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_F2 + description: PA2 + value: 1 enum/PINMUX1: bit_size: 2 variants: - - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 - description: PF2 - value: 0 - - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G3 - description: PF2 - value: 0 - - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 - description: PA0 - value: 1 - - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G3 - description: PA0 - value: 1 - - name: B_0x2_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 - description: PA1 - value: 2 - - name: B_0x3_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 - description: PA2 - value: 3 + - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 + description: PF2 + value: 0 + - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G3 + description: PF2 + value: 0 + - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 + description: PA0 + value: 1 + - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G3 + description: PA0 + value: 1 + - name: B_0x2_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 + description: PA1 + value: 2 + - name: B_0x3_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_4 + description: PA2 + value: 3 enum/PINMUX2: bit_size: 2 variants: - - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_5 - description: PA8 - value: 0 - - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J1 - description: PA8 - value: 0 - - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_5 - description: PA11 - value: 1 - - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J1 - description: PA11 - value: 1 + - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_5 + description: PA8 + value: 0 + - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J1 + description: PA8 + value: 0 + - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_5 + description: PA11 + value: 1 + - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J1 + description: PA11 + value: 1 enum/PINMUX3: bit_size: 2 variants: - - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_8 - description: PA14 - value: 0 - - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_H2 - description: PA5 - value: 0 - - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_8 - description: PB6 - value: 1 - - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_H2 - description: PA6 - value: 1 - - name: B_0x2_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_8 - description: PC15 - value: 2 + - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_8 + description: PA14 + value: 0 + - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_H2 + description: PA5 + value: 0 + - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_8 + description: PB6 + value: 1 + - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_H2 + description: PA6 + value: 1 + - name: B_0x2_STM32C011X___GPIO_ASSIGNED_TO_SO8_PIN_8 + description: PC15 + value: 2 enum/PINMUX4: bit_size: 2 variants: - - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_E2 - description: PA7 - value: 0 - - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G1 - description: PA7 - value: 0 - - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_E2 - description: PA12 - value: 1 - - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G1 - description: PA12 - value: 1 + - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_E2 + description: PA7 + value: 0 + - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G1 + description: PA7 + value: 0 + - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_E2 + description: PA12 + value: 1 + - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_G1 + description: PA12 + value: 1 enum/PINMUX5: bit_size: 2 variants: - - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 - description: PA3 - value: 0 - - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J3 - description: PA3 - value: 0 - - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 - description: PA4 - value: 1 - - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J3 - description: PA4 - value: 1 - - name: B_0x2_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 - description: PA5 - value: 2 - - name: B_0x3_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 - description: PA6 - value: 3 + - name: B_0x0_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 + description: PA3 + value: 0 + - name: B_0x0_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J3 + description: PA3 + value: 0 + - name: B_0x1_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 + description: PA4 + value: 1 + - name: B_0x1_STM32C031X___GPIO_ASSIGNED_TO_WLCSP14_PIN_J3 + description: PA4 + value: 1 + - name: B_0x2_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 + description: PA5 + value: 2 + - name: B_0x3_STM32C011X___GPIO_ASSIGNED_TO_WLCSP12_PIN_F1 + description: PA6 + value: 3 diff --git a/data/registers/syscfg_f0.yaml b/data/registers/syscfg_f0.yaml index 91caf2e..de839ae 100644 --- a/data/registers/syscfg_f0.yaml +++ b/data/registers/syscfg_f0.yaml @@ -1,440 +1,439 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: CFGR1 - description: configuration register 1 - byte_offset: 0 - fieldset: CFGR1 - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CFGR2 - description: configuration register 2 - byte_offset: 24 - fieldset: CFGR2 + - name: CFGR1 + description: configuration register 1 + byte_offset: 0 + fieldset: CFGR1 + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CFGR2 + description: configuration register 2 + byte_offset: 24 + fieldset: CFGR2 fieldset/CFGR1: description: configuration register 1 fields: - - name: MEM_MODE - description: Memory mapping selection bits - bit_offset: 0 - bit_size: 2 - enum: MEM_MODE - - name: PA11_PA12_RMP - description: PA11 and PA12 remapping bit for small packages (28 and 20 pins) - bit_offset: 4 - bit_size: 1 - enum: PA11_PA12_RMP - - name: IR_MOD - description: IR Modulation Envelope signal selection - bit_offset: 6 - bit_size: 2 - enum: IR_MOD - - name: ADC_DMA_RMP - description: ADC DMA remapping bit - bit_offset: 8 - bit_size: 1 - enum: ADC_DMA_RMP - - name: USART1_TX_DMA_RMP - description: USART1_TX DMA remapping bit - bit_offset: 9 - bit_size: 1 - enum: USART1_TX_DMA_RMP - - name: USART1_RX_DMA_RMP - description: USART1_RX DMA request remapping bit - bit_offset: 10 - bit_size: 1 - enum: USART1_RX_DMA_RMP - - name: TIM16_DMA_RMP - description: TIM16 DMA request remapping bit - bit_offset: 11 - bit_size: 1 - enum: TIM16_DMA_RMP - - name: TIM17_DMA_RMP - description: TIM17 DMA request remapping bit - bit_offset: 12 - bit_size: 1 - enum: TIM17_DMA_RMP - - name: TIM16_DMA_RMP2 - description: TIM16 alternate DMA request remapping bit - bit_offset: 13 - bit_size: 1 - enum: TIM16_DMA_RMP2 - - name: TIM17_DMA_RMP2 - description: TIM17 alternate DMA request remapping bit - bit_offset: 14 - bit_size: 1 - enum: TIM17_DMA_RMP2 - - name: I2C_PB6_FMP - description: Fast Mode Plus (FM plus) driving capability activation bits. - bit_offset: 16 - bit_size: 1 - enum: I2C_PB6_FMP - - name: I2C_PB7_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 17 - bit_size: 1 - enum: I2C_PB7_FMP - - name: I2C_PB8_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 18 - bit_size: 1 - enum: I2C_PB8_FMP - - name: I2C_PB9_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 19 - bit_size: 1 - enum: I2C_PB9_FMP - - name: I2C1_FMP - description: FM+ driving capability activation for I2C1 - bit_offset: 20 - bit_size: 1 - enum: I2C1_FMP - - name: I2C2_FMP - description: FM+ driving capability activation for I2C2 - bit_offset: 21 - bit_size: 1 - enum: I2C2_FMP - - name: I2C_PA9_FMP - description: Fast Mode Plus (FM+) driving capability activation bits - bit_offset: 22 - bit_size: 1 - enum: I2C_PA9_FMP - - name: I2C_PA10_FMP - description: Fast Mode Plus (FM+) driving capability activation bits - bit_offset: 23 - bit_size: 1 - enum: I2C_PA10_FMP - - name: SPI2_DMA_RMP - description: SPI2 DMA request remapping bit - bit_offset: 24 - bit_size: 1 - enum: SPI2_DMA_RMP - - name: USART2_DMA_RMP - description: USART2 DMA request remapping bit - bit_offset: 25 - bit_size: 1 - enum: USART2_DMA_RMP - - name: USART3_DMA_RMP - description: USART3 DMA request remapping bit - bit_offset: 26 - bit_size: 1 - enum: USART3_DMA_RMP - - name: I2C1_DMA_RMP - description: I2C1 DMA request remapping bit - bit_offset: 27 - bit_size: 1 - enum: I2C1_DMA_RMP - - name: TIM1_DMA_RMP - description: TIM1 DMA request remapping bit - bit_offset: 28 - bit_size: 1 - enum: TIM1_DMA_RMP - - name: TIM2_DMA_RMP - description: TIM2 DMA request remapping bit - bit_offset: 29 - bit_size: 1 - enum: TIM2_DMA_RMP - - name: TIM3_DMA_RMP - description: TIM3 DMA request remapping bit - bit_offset: 30 - bit_size: 1 - enum: TIM3_DMA_RMP + - name: MEM_MODE + description: Memory mapping selection bits + bit_offset: 0 + bit_size: 2 + enum: MEM_MODE + - name: PA11_PA12_RMP + description: PA11 and PA12 remapping bit for small packages (28 and 20 pins) + bit_offset: 4 + bit_size: 1 + enum: PA11_PA12_RMP + - name: IR_MOD + description: IR Modulation Envelope signal selection + bit_offset: 6 + bit_size: 2 + enum: IR_MOD + - name: ADC_DMA_RMP + description: ADC DMA remapping bit + bit_offset: 8 + bit_size: 1 + enum: ADC_DMA_RMP + - name: USART1_TX_DMA_RMP + description: USART1_TX DMA remapping bit + bit_offset: 9 + bit_size: 1 + enum: USART1_TX_DMA_RMP + - name: USART1_RX_DMA_RMP + description: USART1_RX DMA request remapping bit + bit_offset: 10 + bit_size: 1 + enum: USART1_RX_DMA_RMP + - name: TIM16_DMA_RMP + description: TIM16 DMA request remapping bit + bit_offset: 11 + bit_size: 1 + enum: TIM16_DMA_RMP + - name: TIM17_DMA_RMP + description: TIM17 DMA request remapping bit + bit_offset: 12 + bit_size: 1 + enum: TIM17_DMA_RMP + - name: TIM16_DMA_RMP2 + description: TIM16 alternate DMA request remapping bit + bit_offset: 13 + bit_size: 1 + enum: TIM16_DMA_RMP2 + - name: TIM17_DMA_RMP2 + description: TIM17 alternate DMA request remapping bit + bit_offset: 14 + bit_size: 1 + enum: TIM17_DMA_RMP2 + - name: I2C_PB6_FMP + description: Fast Mode Plus (FM plus) driving capability activation bits. + bit_offset: 16 + bit_size: 1 + enum: I2C_PB6_FMP + - name: I2C_PB7_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 17 + bit_size: 1 + enum: I2C_PB7_FMP + - name: I2C_PB8_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 18 + bit_size: 1 + enum: I2C_PB8_FMP + - name: I2C_PB9_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 19 + bit_size: 1 + enum: I2C_PB9_FMP + - name: I2C1_FMP + description: FM+ driving capability activation for I2C1 + bit_offset: 20 + bit_size: 1 + enum: I2C1_FMP + - name: I2C2_FMP + description: FM+ driving capability activation for I2C2 + bit_offset: 21 + bit_size: 1 + enum: I2C2_FMP + - name: I2C_PA9_FMP + description: Fast Mode Plus (FM+) driving capability activation bits + bit_offset: 22 + bit_size: 1 + enum: I2C_PA9_FMP + - name: I2C_PA10_FMP + description: Fast Mode Plus (FM+) driving capability activation bits + bit_offset: 23 + bit_size: 1 + enum: I2C_PA10_FMP + - name: SPI2_DMA_RMP + description: SPI2 DMA request remapping bit + bit_offset: 24 + bit_size: 1 + enum: SPI2_DMA_RMP + - name: USART2_DMA_RMP + description: USART2 DMA request remapping bit + bit_offset: 25 + bit_size: 1 + enum: USART2_DMA_RMP + - name: USART3_DMA_RMP + description: USART3 DMA request remapping bit + bit_offset: 26 + bit_size: 1 + enum: USART3_DMA_RMP + - name: I2C1_DMA_RMP + description: I2C1 DMA request remapping bit + bit_offset: 27 + bit_size: 1 + enum: I2C1_DMA_RMP + - name: TIM1_DMA_RMP + description: TIM1 DMA request remapping bit + bit_offset: 28 + bit_size: 1 + enum: TIM1_DMA_RMP + - name: TIM2_DMA_RMP + description: TIM2 DMA request remapping bit + bit_offset: 29 + bit_size: 1 + enum: TIM2_DMA_RMP + - name: TIM3_DMA_RMP + description: TIM3 DMA request remapping bit + bit_offset: 30 + bit_size: 1 + enum: TIM3_DMA_RMP fieldset/CFGR2: description: configuration register 2 fields: - - name: LOCKUP_LOCK - description: Cortex-M0 LOCKUP bit enable bit - bit_offset: 0 - bit_size: 1 - enum: LOCKUP_LOCK - - name: SRAM_PARITY_LOCK - description: SRAM parity lock bit - bit_offset: 1 - bit_size: 1 - enum: SRAM_PARITY_LOCK - - name: PVD_LOCK - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - enum: PVD_LOCK - - name: SRAM_PEF - description: SRAM parity flag - bit_offset: 8 - bit_size: 1 + - name: LOCKUP_LOCK + description: Cortex-M0 LOCKUP bit enable bit + bit_offset: 0 + bit_size: 1 + enum: LOCKUP_LOCK + - name: SRAM_PARITY_LOCK + description: SRAM parity lock bit + bit_offset: 1 + bit_size: 1 + enum: SRAM_PARITY_LOCK + - name: PVD_LOCK + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + enum: PVD_LOCK + - name: SRAM_PEF + description: SRAM parity flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI configuration bits - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI configuration bits + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 enum/ADC_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: ADC DMA request mapped on DMA channel 1 - value: 0 - - name: Remapped - description: ADC DMA request mapped on DMA channel 2 - value: 1 + - name: NotRemapped + description: ADC DMA request mapped on DMA channel 1 + value: 0 + - name: Remapped + description: ADC DMA request mapped on DMA channel 2 + value: 1 enum/I2C1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: I2C1_RX and I2C1_TX DMA requests mapped on DMA channel 3 and 2 respectively - value: 0 - - name: Remapped - description: I2C1_RX and I2C1_TX DMA requests mapped on DMA channel 7 and 6 respectively - value: 1 + - name: NotRemapped + description: I2C1_RX and I2C1_TX DMA requests mapped on DMA channel 3 and 2 respectively + value: 0 + - name: Remapped + description: I2C1_RX and I2C1_TX DMA requests mapped on DMA channel 7 and 6 respectively + value: 1 enum/I2C1_FMP: bit_size: 1 variants: - - name: Standard - description: FM+ mode is controlled by I2C_Pxx_FMP bits only - value: 0 - - name: FMP - description: FM+ mode is enabled on all I2C1 pins selected through selection bits in GPIOx_AFR registers - value: 1 + - name: Standard + description: FM+ mode is controlled by I2C_Pxx_FMP bits only + value: 0 + - name: FMP + description: FM+ mode is enabled on all I2C1 pins selected through selection bits in GPIOx_AFR registers + value: 1 enum/I2C2_FMP: bit_size: 1 variants: - - name: Standard - description: FM+ mode is controlled by I2C_Pxx_FMP bits only - value: 0 - - name: FMP - description: FM+ mode is enabled on all I2C2 pins selected through selection bits in GPIOx_AFR registers - value: 1 + - name: Standard + description: FM+ mode is controlled by I2C_Pxx_FMP bits only + value: 0 + - name: FMP + description: FM+ mode is enabled on all I2C2 pins selected through selection bits in GPIOx_AFR registers + value: 1 enum/I2C_PA10_FMP: bit_size: 1 variants: - - name: Standard - description: PA10 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PA10 and the Speed control is bypassed - value: 1 + - name: Standard + description: PA10 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PA10 and the Speed control is bypassed + value: 1 enum/I2C_PA9_FMP: bit_size: 1 variants: - - name: Standard - description: PA9 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PA9 and the Speed control is bypassed - value: 1 + - name: Standard + description: PA9 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PA9 and the Speed control is bypassed + value: 1 enum/I2C_PB6_FMP: bit_size: 1 variants: - - name: Standard - description: PB6 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB6 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB6 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB6 and the Speed control is bypassed + value: 1 enum/I2C_PB7_FMP: bit_size: 1 variants: - - name: Standard - description: PB7 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB7 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB7 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB7 and the Speed control is bypassed + value: 1 enum/I2C_PB8_FMP: bit_size: 1 variants: - - name: Standard - description: PB8 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB8 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB8 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB8 and the Speed control is bypassed + value: 1 enum/I2C_PB9_FMP: bit_size: 1 variants: - - name: Standard - description: PB9 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB9 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB9 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB9 and the Speed control is bypassed + value: 1 enum/IR_MOD: bit_size: 2 variants: - - name: TIM16 - description: TIM16 selected - value: 0 - - name: USART1 - description: USART1 selected - value: 1 - - name: USART4 - description: USART4 selected - value: 2 + - name: TIM16 + description: TIM16 selected + value: 0 + - name: USART1 + description: USART1 selected + value: 1 + - name: USART4 + description: USART4 selected + value: 2 enum/LOCKUP_LOCK: bit_size: 1 variants: - - name: Disconnected - description: Cortex-M0 LOCKUP output disconnected from TIM1/15/16/17 Break input - value: 0 - - name: Connected - description: Cortex-M0 LOCKUP output connected to TIM1/15/16/17 Break input - value: 1 + - name: Disconnected + description: Cortex-M0 LOCKUP output disconnected from TIM1/15/16/17 Break input + value: 0 + - name: Connected + description: Cortex-M0 LOCKUP output connected to TIM1/15/16/17 Break input + value: 1 enum/MEM_MODE: bit_size: 2 variants: - - name: MainFlash - description: Main Flash memory mapped at 0x0000_0000 - value: 0 - - name: SystemFlash - description: System Flash memory mapped at 0x0000_0000 - value: 1 - - name: MainFlash2 - description: Main Flash memory mapped at 0x0000_0000 - value: 2 - - name: SRAM - description: Embedded SRAM mapped at 0x0000_0000 - value: 3 + - name: MainFlash + description: Main Flash memory mapped at 0x0000_0000 + value: 0 + - name: SystemFlash + description: System Flash memory mapped at 0x0000_0000 + value: 1 + - name: MainFlash2 + description: Main Flash memory mapped at 0x0000_0000 + value: 2 + - name: SRAM + description: Embedded SRAM mapped at 0x0000_0000 + value: 3 enum/PA11_PA12_RMP: bit_size: 1 variants: - - name: NotRemapped - description: Pin pair PA9/PA10 mapped on the pins - value: 0 - - name: Remapped - description: Pin pair PA11/PA12 mapped instead of PA9/PA10 - value: 1 + - name: NotRemapped + description: Pin pair PA9/PA10 mapped on the pins + value: 0 + - name: Remapped + description: Pin pair PA11/PA12 mapped instead of PA9/PA10 + value: 1 enum/PVD_LOCK: bit_size: 1 variants: - - name: Disconnected - description: PVD interrupt disconnected from TIM1/15/16/17 Break input - value: 0 - - name: Connected - description: PVD interrupt connected to TIM1/15/16/17 Break input - value: 1 + - name: Disconnected + description: PVD interrupt disconnected from TIM1/15/16/17 Break input + value: 0 + - name: Connected + description: PVD interrupt connected to TIM1/15/16/17 Break input + value: 1 enum/SPI2_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: SPI2_RX and SPI2_TX DMA requests mapped on DMA channel 4 and 5 respectively - value: 0 - - name: Remapped - description: SPI2_RX and SPI2_TX DMA requests mapped on DMA channel 6 and 7 respectively - value: 1 + - name: NotRemapped + description: SPI2_RX and SPI2_TX DMA requests mapped on DMA channel 4 and 5 respectively + value: 0 + - name: Remapped + description: SPI2_RX and SPI2_TX DMA requests mapped on DMA channel 6 and 7 respectively + value: 1 enum/SRAM_PARITY_LOCK: bit_size: 1 variants: - - name: Disconnected - description: SRAM parity error disconnected from TIM1/15/16/17 Break input - value: 0 - - name: Connected - description: SRAM parity error connected to TIM1/15/16/17 Break input - value: 1 + - name: Disconnected + description: SRAM parity error disconnected from TIM1/15/16/17 Break input + value: 0 + - name: Connected + description: SRAM parity error connected to TIM1/15/16/17 Break input + value: 1 enum/TIM16_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM16_CH1 and TIM16_UP DMA request mapped on DMA channel 3 - value: 0 - - name: Remapped - description: TIM16_CH1 and TIM16_UP DMA request mapped on DMA channel 4 - value: 1 + - name: NotRemapped + description: TIM16_CH1 and TIM16_UP DMA request mapped on DMA channel 3 + value: 0 + - name: Remapped + description: TIM16_CH1 and TIM16_UP DMA request mapped on DMA channel 4 + value: 1 enum/TIM16_DMA_RMP2: bit_size: 1 variants: - - name: NotAlternateRemapped - description: TIM16 DMA request mapped according to TIM16_DMA_RMP bit - value: 0 - - name: AlternateRemapped - description: TIM16_CH1 and TIM16_UP DMA request mapped on DMA channel 6 - value: 1 + - name: NotAlternateRemapped + description: TIM16 DMA request mapped according to TIM16_DMA_RMP bit + value: 0 + - name: AlternateRemapped + description: TIM16_CH1 and TIM16_UP DMA request mapped on DMA channel 6 + value: 1 enum/TIM17_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM17_CH1 and TIM17_UP DMA request mapped on DMA channel 1 - value: 0 - - name: Remapped - description: TIM17_CH1 and TIM17_UP DMA request mapped on DMA channel 2 - value: 1 + - name: NotRemapped + description: TIM17_CH1 and TIM17_UP DMA request mapped on DMA channel 1 + value: 0 + - name: Remapped + description: TIM17_CH1 and TIM17_UP DMA request mapped on DMA channel 2 + value: 1 enum/TIM17_DMA_RMP2: bit_size: 1 variants: - - name: NotAlternateRemapped - description: TIM17 DMA request mapped according to TIM16_DMA_RMP bit - value: 0 - - name: AlternateRemapped - description: TIM17_CH1 and TIM17_UP DMA request mapped on DMA channel 7 - value: 1 + - name: NotAlternateRemapped + description: TIM17 DMA request mapped according to TIM16_DMA_RMP bit + value: 0 + - name: AlternateRemapped + description: TIM17_CH1 and TIM17_UP DMA request mapped on DMA channel 7 + value: 1 enum/TIM1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: "TIM1_CH1, TIM1_CH2 and TIM1_CH3 DMA requests mapped on DMA channel 2, 3 and 4 respectively" - value: 0 - - name: Remapped - description: "TIM1_CH1, TIM1_CH2 and TIM1_CH3 DMA requests mapped on DMA channel 6" - value: 1 + - name: NotRemapped + description: TIM1_CH1, TIM1_CH2 and TIM1_CH3 DMA requests mapped on DMA channel 2, 3 and 4 respectively + value: 0 + - name: Remapped + description: TIM1_CH1, TIM1_CH2 and TIM1_CH3 DMA requests mapped on DMA channel 6 + value: 1 enum/TIM2_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM2_CH2 and TIM2_CH4 DMA requests mapped on DMA channel 3 and 4 respectively - value: 0 - - name: Remapped - description: TIM2_CH2 and TIM2_CH4 DMA requests mapped on DMA channel 7 - value: 1 + - name: NotRemapped + description: TIM2_CH2 and TIM2_CH4 DMA requests mapped on DMA channel 3 and 4 respectively + value: 0 + - name: Remapped + description: TIM2_CH2 and TIM2_CH4 DMA requests mapped on DMA channel 7 + value: 1 enum/TIM3_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM3_CH1 and TIM3_TRIG DMA requests mapped on DMA channel 4 - value: 0 - - name: Remapped - description: TIM3_CH1 and TIM3_TRIG DMA requests mapped on DMA channel 6 - value: 1 + - name: NotRemapped + description: TIM3_CH1 and TIM3_TRIG DMA requests mapped on DMA channel 4 + value: 0 + - name: Remapped + description: TIM3_CH1 and TIM3_TRIG DMA requests mapped on DMA channel 6 + value: 1 enum/USART1_RX_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: USART1_RX DMA request mapped on DMA channel 3 - value: 0 - - name: Remapped - description: USART1_RX DMA request mapped on DMA channel 5 - value: 1 + - name: NotRemapped + description: USART1_RX DMA request mapped on DMA channel 3 + value: 0 + - name: Remapped + description: USART1_RX DMA request mapped on DMA channel 5 + value: 1 enum/USART1_TX_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: USART1_TX DMA request mapped on DMA channel 2 - value: 0 - - name: Remapped - description: USART1_TX DMA request mapped on DMA channel 4 - value: 1 + - name: NotRemapped + description: USART1_TX DMA request mapped on DMA channel 2 + value: 0 + - name: Remapped + description: USART1_TX DMA request mapped on DMA channel 4 + value: 1 enum/USART2_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: USART2_RX and USART2_TX DMA requests mapped on DMA channel 5 and 4 respectively - value: 0 - - name: Remapped - description: USART2_RX and USART2_TX DMA requests mapped on DMA channel 6 and 7 respectively - value: 1 + - name: NotRemapped + description: USART2_RX and USART2_TX DMA requests mapped on DMA channel 5 and 4 respectively + value: 0 + - name: Remapped + description: USART2_RX and USART2_TX DMA requests mapped on DMA channel 6 and 7 respectively + value: 1 enum/USART3_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: USART3_RX and USART3_TX DMA requests mapped on DMA channel 6 and 7 respectively (or simply disabled on STM32F0x0) - value: 0 - - name: Remapped - description: USART3_RX and USART3_TX DMA requests mapped on DMA channel 3 and 2 respectively - value: 1 + - name: NotRemapped + description: USART3_RX and USART3_TX DMA requests mapped on DMA channel 6 and 7 respectively (or simply disabled on STM32F0x0) + value: 0 + - name: Remapped + description: USART3_RX and USART3_TX DMA requests mapped on DMA channel 3 and 2 respectively + value: 1 diff --git a/data/registers/syscfg_f2.yaml b/data/registers/syscfg_f2.yaml index 31160f9..afbe46e 100644 --- a/data/registers/syscfg_f2.yaml +++ b/data/registers/syscfg_f2.yaml @@ -1,75 +1,74 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: PMC - description: peripheral mode configuration register - byte_offset: 4 - fieldset: PMC - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CMPCR - description: Compensation cell control register - byte_offset: 32 - access: Read - fieldset: CMPCR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: PMC + description: peripheral mode configuration register + byte_offset: 4 + fieldset: PMC + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CMPCR + description: Compensation cell control register + byte_offset: 32 + access: Read + fieldset: CMPCR fieldset/CMPCR: description: Compensation cell control register fields: - - name: CMP_PD - description: Compensation cell power-down - bit_offset: 0 - bit_size: 1 - - name: READY - description: Compensation cell ready flag - bit_offset: 8 - bit_size: 1 + - name: CMP_PD + description: Compensation cell power-down + bit_offset: 0 + bit_size: 1 + - name: READY + description: Compensation cell ready flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI x configuration (x = 0 to 3) - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration (x = 0 to 3) + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 2 - enum: MEM_MODE + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 2 + enum: MEM_MODE fieldset/PMC: description: peripheral mode configuration register fields: - - name: MII_RMII_SEL - description: Ethernet PHY interface selection - bit_offset: 23 - bit_size: 1 + - name: MII_RMII_SEL + description: Ethernet PHY interface selection + bit_offset: 23 + bit_size: 1 enum/MEM_MODE: bit_size: 2 variants: - - name: MainFlash - description: Main Flash memory mapped at 0x0000_0000 - value: 0 - - name: SystemFlash - description: System Flash memory mapped at 0x0000_0000 - value: 1 - - name: FSMC - description: FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x0000_0000 - value: 2 - - name: SRAM - description: Embedded SRAM mapped at 0x0000_0000 - value: 3 + - name: MainFlash + description: Main Flash memory mapped at 0x0000_0000 + value: 0 + - name: SystemFlash + description: System Flash memory mapped at 0x0000_0000 + value: 1 + - name: FSMC + description: FSMC Bank1 (NOR/PSRAM 1 and 2) mapped at 0x0000_0000 + value: 2 + - name: SRAM + description: Embedded SRAM mapped at 0x0000_0000 + value: 3 diff --git a/data/registers/syscfg_f3.yaml b/data/registers/syscfg_f3.yaml index a683666..aab97fa 100644 --- a/data/registers/syscfg_f3.yaml +++ b/data/registers/syscfg_f3.yaml @@ -1,934 +1,933 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: CFGR1 - description: configuration register 1 - byte_offset: 0 - fieldset: CFGR1 - - name: RCR - description: CCM SRAM protection register - byte_offset: 4 - fieldset: RCR - - name: EXTICR - description: external interrupt configuration register - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CFGR2 - description: configuration register 2 - byte_offset: 24 - fieldset: CFGR2 - - name: CFGR4 - description: configuration register 4 - byte_offset: 72 - fieldset: CFGR4 - - name: CFGR3 - description: configuration register 3 - byte_offset: 80 - fieldset: CFGR3 + - name: CFGR1 + description: configuration register 1 + byte_offset: 0 + fieldset: CFGR1 + - name: RCR + description: CCM SRAM protection register + byte_offset: 4 + fieldset: RCR + - name: EXTICR + description: external interrupt configuration register + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CFGR2 + description: configuration register 2 + byte_offset: 24 + fieldset: CFGR2 + - name: CFGR4 + description: configuration register 4 + byte_offset: 72 + fieldset: CFGR4 + - name: CFGR3 + description: configuration register 3 + byte_offset: 80 + fieldset: CFGR3 fieldset/CFGR1: description: configuration register 1 fields: - - name: MEM_MODE - description: Memory mapping selection bits - bit_offset: 0 - bit_size: 2 - enum: MEM_MODE - - name: USB_IT_RMP - description: USB interrupt remap - bit_offset: 5 - bit_size: 1 - enum: USB_IT_RMP - - name: TIM1_ITR3_RMP - description: Timer 1 ITR3 selection - bit_offset: 6 - bit_size: 1 - enum: TIM1_ITR3_RMP - - name: DAC1_TRIG_RMP - description: DAC trigger remap (when TSEL = 001) - bit_offset: 7 - bit_size: 1 - enum: DAC1_TRIG_RMP - - name: DAC_TRIG_RMP - description: DAC trigger remap (when TSEL = 001) - bit_offset: 7 - bit_size: 1 - enum: DAC_TRIG_RMP - - name: ADC2_DMA_RMP - description: ADC24 DMA remapping bit - bit_offset: 8 - bit_size: 1 - enum: ADC2_DMA_RMP - - name: TIM16_DMA_RMP - description: TIM16 DMA request remapping bit - bit_offset: 11 - bit_size: 1 - enum: TIM16_DMA_RMP - - name: TIM17_DMA_RMP - description: TIM17 DMA request remapping bit - bit_offset: 12 - bit_size: 1 - enum: TIM17_DMA_RMP - - name: TIM6_DAC1_CH1_DMA_RMP - description: TIM6 and DAC1 DMA request remapping bit - bit_offset: 13 - bit_size: 1 - enum: TIM6_DAC1_CH1_DMA_RMP - - name: TIM6_DAC1_DMA_RMP - description: TIM6 and DAC1 DMA request remapping bit - bit_offset: 13 - bit_size: 1 - enum: TIM6_DAC1_DMA_RMP - - name: TIM6_DAC1_OUT1_DMA_RMP - description: TIM6 and DAC1 DMA request remapping bit - bit_offset: 13 - bit_size: 1 - enum: TIM6_DAC1_OUT1_DMA_RMP - - name: TIM7_DAC1_CH2_DMA_RMP - description: TIM7 and DAC2 DMA request remapping bit - bit_offset: 14 - bit_size: 1 - enum: TIM7_DAC1_CH2_DMA_RMP - - name: TIM7_DAC1_OUT2_DMA_RMP - description: TIM7 and DAC2 DMA request remapping bit - bit_offset: 14 - bit_size: 1 - enum: TIM7_DAC1_OUT2_DMA_RMP - - name: DAC2_CH1_DMA_RMP - description: DAC2 channel1 DMA remap - bit_offset: 15 - bit_size: 1 - enum: DAC2_CH1_DMA_RMP - - name: TIM18_DAC2_OUT1_DMA_RMP - description: TIM18 and DAC2_OUT1 DMA request remapping bit - bit_offset: 15 - bit_size: 1 - enum: TIM18_DAC2_OUT1_DMA_RMP - - name: I2C_PB6_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 16 - bit_size: 1 - enum: I2C_PB6_FMP - - name: I2C_PB7_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 17 - bit_size: 1 - enum: I2C_PB7_FMP - - name: I2C_PB8_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 18 - bit_size: 1 - enum: I2C_PB8_FMP - - name: I2C_PB9_FMP - description: Fast Mode Plus (FM+) driving capability activation bits. - bit_offset: 19 - bit_size: 1 - enum: I2C_PB9_FMP - - name: I2C1_FMP - description: I2C1 Fast Mode Plus - bit_offset: 20 - bit_size: 1 - enum: I2C1_FMP - - name: I2C2_FMP - description: I2C2 Fast Mode Plus - bit_offset: 21 - bit_size: 1 - enum: I2C2_FMP - - name: ENCODER_MODE - description: Encoder mode - bit_offset: 22 - bit_size: 2 - enum: ENCODER_MODE - - name: I2C3_FMP - description: I2C3 Fast Mode Plus - bit_offset: 24 - bit_size: 1 - enum: I2C3_FMP - - name: VBAT_MON - description: VBAT monitoring enable - bit_offset: 24 - bit_size: 1 - enum: VBAT_MON - - name: FPU_IE0 - description: Invalid operation interrupt enable - bit_offset: 26 - bit_size: 1 - enum: FPU_IE0 - - name: FPU_IE1 - description: Devide-by-zero interrupt enable - bit_offset: 27 - bit_size: 1 - enum: FPU_IE1 - - name: FPU_IE2 - description: Underflow interrupt enable - bit_offset: 28 - bit_size: 1 - enum: FPU_IE2 - - name: FPU_IE3 - description: Overflow interrupt enable - bit_offset: 29 - bit_size: 1 - enum: FPU_IE3 - - name: FPU_IE4 - description: Input denormal interrupt enable - bit_offset: 30 - bit_size: 1 - enum: FPU_IE4 - - name: FPU_IE5 - description: Inexact interrupt enable - bit_offset: 31 - bit_size: 1 - enum: FPU_IE5 + - name: MEM_MODE + description: Memory mapping selection bits + bit_offset: 0 + bit_size: 2 + enum: MEM_MODE + - name: USB_IT_RMP + description: USB interrupt remap + bit_offset: 5 + bit_size: 1 + enum: USB_IT_RMP + - name: TIM1_ITR3_RMP + description: Timer 1 ITR3 selection + bit_offset: 6 + bit_size: 1 + enum: TIM1_ITR3_RMP + - name: DAC1_TRIG_RMP + description: DAC trigger remap (when TSEL = 001) + bit_offset: 7 + bit_size: 1 + enum: DAC1_TRIG_RMP + - name: DAC_TRIG_RMP + description: DAC trigger remap (when TSEL = 001) + bit_offset: 7 + bit_size: 1 + enum: DAC_TRIG_RMP + - name: ADC2_DMA_RMP + description: ADC24 DMA remapping bit + bit_offset: 8 + bit_size: 1 + enum: ADC2_DMA_RMP + - name: TIM16_DMA_RMP + description: TIM16 DMA request remapping bit + bit_offset: 11 + bit_size: 1 + enum: TIM16_DMA_RMP + - name: TIM17_DMA_RMP + description: TIM17 DMA request remapping bit + bit_offset: 12 + bit_size: 1 + enum: TIM17_DMA_RMP + - name: TIM6_DAC1_CH1_DMA_RMP + description: TIM6 and DAC1 DMA request remapping bit + bit_offset: 13 + bit_size: 1 + enum: TIM6_DAC1_CH1_DMA_RMP + - name: TIM6_DAC1_DMA_RMP + description: TIM6 and DAC1 DMA request remapping bit + bit_offset: 13 + bit_size: 1 + enum: TIM6_DAC1_DMA_RMP + - name: TIM6_DAC1_OUT1_DMA_RMP + description: TIM6 and DAC1 DMA request remapping bit + bit_offset: 13 + bit_size: 1 + enum: TIM6_DAC1_OUT1_DMA_RMP + - name: TIM7_DAC1_CH2_DMA_RMP + description: TIM7 and DAC2 DMA request remapping bit + bit_offset: 14 + bit_size: 1 + enum: TIM7_DAC1_CH2_DMA_RMP + - name: TIM7_DAC1_OUT2_DMA_RMP + description: TIM7 and DAC2 DMA request remapping bit + bit_offset: 14 + bit_size: 1 + enum: TIM7_DAC1_OUT2_DMA_RMP + - name: DAC2_CH1_DMA_RMP + description: DAC2 channel1 DMA remap + bit_offset: 15 + bit_size: 1 + enum: DAC2_CH1_DMA_RMP + - name: TIM18_DAC2_OUT1_DMA_RMP + description: TIM18 and DAC2_OUT1 DMA request remapping bit + bit_offset: 15 + bit_size: 1 + enum: TIM18_DAC2_OUT1_DMA_RMP + - name: I2C_PB6_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 16 + bit_size: 1 + enum: I2C_PB6_FMP + - name: I2C_PB7_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 17 + bit_size: 1 + enum: I2C_PB7_FMP + - name: I2C_PB8_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 18 + bit_size: 1 + enum: I2C_PB8_FMP + - name: I2C_PB9_FMP + description: Fast Mode Plus (FM+) driving capability activation bits. + bit_offset: 19 + bit_size: 1 + enum: I2C_PB9_FMP + - name: I2C1_FMP + description: I2C1 Fast Mode Plus + bit_offset: 20 + bit_size: 1 + enum: I2C1_FMP + - name: I2C2_FMP + description: I2C2 Fast Mode Plus + bit_offset: 21 + bit_size: 1 + enum: I2C2_FMP + - name: ENCODER_MODE + description: Encoder mode + bit_offset: 22 + bit_size: 2 + enum: ENCODER_MODE + - name: I2C3_FMP + description: I2C3 Fast Mode Plus + bit_offset: 24 + bit_size: 1 + enum: I2C3_FMP + - name: VBAT_MON + description: VBAT monitoring enable + bit_offset: 24 + bit_size: 1 + enum: VBAT_MON + - name: FPU_IE0 + description: Invalid operation interrupt enable + bit_offset: 26 + bit_size: 1 + enum: FPU_IE0 + - name: FPU_IE1 + description: Devide-by-zero interrupt enable + bit_offset: 27 + bit_size: 1 + enum: FPU_IE1 + - name: FPU_IE2 + description: Underflow interrupt enable + bit_offset: 28 + bit_size: 1 + enum: FPU_IE2 + - name: FPU_IE3 + description: Overflow interrupt enable + bit_offset: 29 + bit_size: 1 + enum: FPU_IE3 + - name: FPU_IE4 + description: Input denormal interrupt enable + bit_offset: 30 + bit_size: 1 + enum: FPU_IE4 + - name: FPU_IE5 + description: Inexact interrupt enable + bit_offset: 31 + bit_size: 1 + enum: FPU_IE5 fieldset/CFGR2: description: configuration register 2 fields: - - name: LOCKUP_LOCK - description: Cortex-M0 LOCKUP bit enable bit - bit_offset: 0 - bit_size: 1 - enum: LOCKUP_LOCK - - name: SRAM_PARITY_LOCK - description: SRAM parity lock bit - bit_offset: 1 - bit_size: 1 - enum: SRAM_PARITY_LOCK - - name: PVD_LOCK - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - enum: PVD_LOCK - - name: BYP_ADDR_PAR - description: Bypass address bit 29 in parity calculation - bit_offset: 4 - bit_size: 1 - enum: BYP_ADDR_PAR - - name: SRAM_PEF - description: SRAM parity flag - bit_offset: 8 - bit_size: 1 + - name: LOCKUP_LOCK + description: Cortex-M0 LOCKUP bit enable bit + bit_offset: 0 + bit_size: 1 + enum: LOCKUP_LOCK + - name: SRAM_PARITY_LOCK + description: SRAM parity lock bit + bit_offset: 1 + bit_size: 1 + enum: SRAM_PARITY_LOCK + - name: PVD_LOCK + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + enum: PVD_LOCK + - name: BYP_ADDR_PAR + description: Bypass address bit 29 in parity calculation + bit_offset: 4 + bit_size: 1 + enum: BYP_ADDR_PAR + - name: SRAM_PEF + description: SRAM parity flag + bit_offset: 8 + bit_size: 1 fieldset/CFGR3: description: configuration register 3 fields: - - name: SPI1_RX_DMA_RMP - description: SPI1_RX DMA remapping bit - bit_offset: 0 - bit_size: 2 - enum: SPI1_RX_DMA_RMP - - name: SPI1_TX_DMA_RMP - description: SPI1_TX DMA remapping bit - bit_offset: 2 - bit_size: 2 - enum: SPI1_TX_DMA_RMP - - name: I2C1_RX_DMA_RMP - description: I2C1_RX DMA remapping bit - bit_offset: 4 - bit_size: 2 - enum: I2C1_RX_DMA_RMP - - name: I2C1_TX_DMA_RMP - description: I2C1_TX DMA remapping bit - bit_offset: 6 - bit_size: 2 - enum: I2C1_TX_DMA_RMP - - name: ADC2_DMA_RMP - description: ADC2 DMA remapping bit - bit_offset: 8 - bit_size: 2 - enum: ADC2_DMA_RMP - - name: DAC1_TRIG3_RMP - description: DAC1_CH1 / DAC1_CH2 Trigger remap - bit_offset: 16 - bit_size: 1 - enum: DAC1_TRIG3_RMP - - name: DAC1_TRIG5_RMP - description: DAC1_CH1 / DAC1_CH2 Trigger remap - bit_offset: 17 - bit_size: 1 - enum: DAC1_TRIG5_RMP + - name: SPI1_RX_DMA_RMP + description: SPI1_RX DMA remapping bit + bit_offset: 0 + bit_size: 2 + enum: SPI1_RX_DMA_RMP + - name: SPI1_TX_DMA_RMP + description: SPI1_TX DMA remapping bit + bit_offset: 2 + bit_size: 2 + enum: SPI1_TX_DMA_RMP + - name: I2C1_RX_DMA_RMP + description: I2C1_RX DMA remapping bit + bit_offset: 4 + bit_size: 2 + enum: I2C1_RX_DMA_RMP + - name: I2C1_TX_DMA_RMP + description: I2C1_TX DMA remapping bit + bit_offset: 6 + bit_size: 2 + enum: I2C1_TX_DMA_RMP + - name: ADC2_DMA_RMP + description: ADC2 DMA remapping bit + bit_offset: 8 + bit_size: 2 + enum: ADC2_DMA_RMP + - name: DAC1_TRIG3_RMP + description: DAC1_CH1 / DAC1_CH2 Trigger remap + bit_offset: 16 + bit_size: 1 + enum: DAC1_TRIG3_RMP + - name: DAC1_TRIG5_RMP + description: DAC1_CH1 / DAC1_CH2 Trigger remap + bit_offset: 17 + bit_size: 1 + enum: DAC1_TRIG5_RMP fieldset/CFGR4: description: configuration register 4 fields: - - name: ADC12_EXT2_RMP - description: Controls the Input trigger of ADC12 regular channel EXT2 - bit_offset: 0 - bit_size: 1 - enum: ADC12_EXT2_RMP - - name: ADC12_EXT3_RMP - description: Controls the Input trigger of ADC12 regular channel EXT3 - bit_offset: 1 - bit_size: 1 - enum: ADC12_EXT3_RMP - - name: ADC12_EXT5_RMP - description: Controls the Input trigger of ADC12 regular channel EXT5 - bit_offset: 2 - bit_size: 1 - enum: ADC12_EXT5_RMP - - name: ADC12_EXT13_RMP - description: Controls the Input trigger of ADC12 regular channel EXT13 - bit_offset: 3 - bit_size: 1 - enum: ADC12_EXT13_RMP - - name: ADC12_EXT15_RMP - description: Controls the Input trigger of ADC12 regular channel EXT15 - bit_offset: 4 - bit_size: 1 - enum: ADC12_EXT15_RMP - - name: ADC12_JEXT3_RMP - description: Controls the Input trigger of ADC12 injected channel JEXT3 - bit_offset: 5 - bit_size: 1 - enum: ADC12_JEXT3_RMP - - name: ADC12_JEXT6_RMP - description: Controls the Input trigger of ADC12 injected channel JEXT6 - bit_offset: 6 - bit_size: 1 - enum: ADC12_JEXT6_RMP - - name: ADC12_JEXT13_RMP - description: Controls the Input trigger of ADC12 injected channel JEXT13 - bit_offset: 7 - bit_size: 1 - enum: ADC12_JEXT13_RMP - - name: ADC34_EXT5_RMP - description: Controls the Input trigger of ADC34 regular channel EXT5 - bit_offset: 8 - bit_size: 1 - enum: ADC34_EXT5_RMP - - name: ADC34_EXT6_RMP - description: Controls the Input trigger of ADC34 regular channel EXT6 - bit_offset: 9 - bit_size: 1 - enum: ADC34_EXT6_RMP - - name: ADC34_EXT15_RMP - description: Controls the Input trigger of ADC34 regular channel EXT15 - bit_offset: 10 - bit_size: 1 - enum: ADC34_EXT15_RMP - - name: ADC34_JEXT5_RMP - description: Controls the Input trigger of ADC34 injected channel JEXT5 - bit_offset: 11 - bit_size: 1 - enum: ADC34_JEXT5_RMP - - name: ADC34_JEXT11_RMP - description: Controls the Input trigger of ADC34 injected channel JEXT11 - bit_offset: 12 - bit_size: 1 - enum: ADC34_JEXT11_RMP - - name: ADC34_JEXT14_RMP - description: Controls the Input trigger of ADC34 injected channel JEXT14 - bit_offset: 13 - bit_size: 1 - enum: ADC34_JEXT14_RMP + - name: ADC12_EXT2_RMP + description: Controls the Input trigger of ADC12 regular channel EXT2 + bit_offset: 0 + bit_size: 1 + enum: ADC12_EXT2_RMP + - name: ADC12_EXT3_RMP + description: Controls the Input trigger of ADC12 regular channel EXT3 + bit_offset: 1 + bit_size: 1 + enum: ADC12_EXT3_RMP + - name: ADC12_EXT5_RMP + description: Controls the Input trigger of ADC12 regular channel EXT5 + bit_offset: 2 + bit_size: 1 + enum: ADC12_EXT5_RMP + - name: ADC12_EXT13_RMP + description: Controls the Input trigger of ADC12 regular channel EXT13 + bit_offset: 3 + bit_size: 1 + enum: ADC12_EXT13_RMP + - name: ADC12_EXT15_RMP + description: Controls the Input trigger of ADC12 regular channel EXT15 + bit_offset: 4 + bit_size: 1 + enum: ADC12_EXT15_RMP + - name: ADC12_JEXT3_RMP + description: Controls the Input trigger of ADC12 injected channel JEXT3 + bit_offset: 5 + bit_size: 1 + enum: ADC12_JEXT3_RMP + - name: ADC12_JEXT6_RMP + description: Controls the Input trigger of ADC12 injected channel JEXT6 + bit_offset: 6 + bit_size: 1 + enum: ADC12_JEXT6_RMP + - name: ADC12_JEXT13_RMP + description: Controls the Input trigger of ADC12 injected channel JEXT13 + bit_offset: 7 + bit_size: 1 + enum: ADC12_JEXT13_RMP + - name: ADC34_EXT5_RMP + description: Controls the Input trigger of ADC34 regular channel EXT5 + bit_offset: 8 + bit_size: 1 + enum: ADC34_EXT5_RMP + - name: ADC34_EXT6_RMP + description: Controls the Input trigger of ADC34 regular channel EXT6 + bit_offset: 9 + bit_size: 1 + enum: ADC34_EXT6_RMP + - name: ADC34_EXT15_RMP + description: Controls the Input trigger of ADC34 regular channel EXT15 + bit_offset: 10 + bit_size: 1 + enum: ADC34_EXT15_RMP + - name: ADC34_JEXT5_RMP + description: Controls the Input trigger of ADC34 injected channel JEXT5 + bit_offset: 11 + bit_size: 1 + enum: ADC34_JEXT5_RMP + - name: ADC34_JEXT11_RMP + description: Controls the Input trigger of ADC34 injected channel JEXT11 + bit_offset: 12 + bit_size: 1 + enum: ADC34_JEXT11_RMP + - name: ADC34_JEXT14_RMP + description: Controls the Input trigger of ADC34 injected channel JEXT14 + bit_offset: 13 + bit_size: 1 + enum: ADC34_JEXT14_RMP fieldset/EXTICR: description: external interrupt configuration register fields: - - name: EXTI - description: EXTI x configuration - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/RCR: description: CCM SRAM protection register fields: - - name: PAGE0_WP - description: CCM SRAM page write protection bit - bit_offset: 0 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE1_WP - description: CCM SRAM page write protection bit - bit_offset: 1 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE2_WP - description: CCM SRAM page write protection bit - bit_offset: 2 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE3_WP - description: CCM SRAM page write protection bit - bit_offset: 3 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE4_WP - description: CCM SRAM page write protection bit - bit_offset: 4 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE5_WP - description: CCM SRAM page write protection bit - bit_offset: 5 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE6_WP - description: CCM SRAM page write protection bit - bit_offset: 6 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE7_WP - description: CCM SRAM page write protection bit - bit_offset: 7 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE8_WP - description: CCM SRAM page write protection bit - bit_offset: 8 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE9_WP - description: CCM SRAM page write protection bit - bit_offset: 9 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE10_WP - description: CCM SRAM page write protection bit - bit_offset: 10 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE11_WP - description: CCM SRAM page write protection bit - bit_offset: 11 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE12_WP - description: CCM SRAM page write protection bit - bit_offset: 12 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE13_WP - description: CCM SRAM page write protection bit - bit_offset: 13 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE14_WP - description: CCM SRAM page write protection bit - bit_offset: 14 - bit_size: 1 - enum: PAGE0_WP - - name: PAGE15_WP - description: CCM SRAM page write protection bit - bit_offset: 15 - bit_size: 1 - enum: PAGE0_WP + - name: PAGE0_WP + description: CCM SRAM page write protection bit + bit_offset: 0 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE1_WP + description: CCM SRAM page write protection bit + bit_offset: 1 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE2_WP + description: CCM SRAM page write protection bit + bit_offset: 2 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE3_WP + description: CCM SRAM page write protection bit + bit_offset: 3 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE4_WP + description: CCM SRAM page write protection bit + bit_offset: 4 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE5_WP + description: CCM SRAM page write protection bit + bit_offset: 5 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE6_WP + description: CCM SRAM page write protection bit + bit_offset: 6 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE7_WP + description: CCM SRAM page write protection bit + bit_offset: 7 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE8_WP + description: CCM SRAM page write protection bit + bit_offset: 8 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE9_WP + description: CCM SRAM page write protection bit + bit_offset: 9 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE10_WP + description: CCM SRAM page write protection bit + bit_offset: 10 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE11_WP + description: CCM SRAM page write protection bit + bit_offset: 11 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE12_WP + description: CCM SRAM page write protection bit + bit_offset: 12 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE13_WP + description: CCM SRAM page write protection bit + bit_offset: 13 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE14_WP + description: CCM SRAM page write protection bit + bit_offset: 14 + bit_size: 1 + enum: PAGE0_WP + - name: PAGE15_WP + description: CCM SRAM page write protection bit + bit_offset: 15 + bit_size: 1 + enum: PAGE0_WP enum/ADC12_EXT13_RMP: bit_size: 1 variants: - - name: Tim6 - description: Trigger source is TIM6_TRGO - value: 0 - - name: Tim20 - description: Trigger source is TIM20_CC2 - value: 1 + - name: Tim6 + description: Trigger source is TIM6_TRGO + value: 0 + - name: Tim20 + description: Trigger source is TIM20_CC2 + value: 1 enum/ADC12_EXT15_RMP: bit_size: 1 variants: - - name: Tim3 - description: Trigger source is TIM3_CC4 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_CC3 - value: 1 + - name: Tim3 + description: Trigger source is TIM3_CC4 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_CC3 + value: 1 enum/ADC12_EXT2_RMP: bit_size: 1 variants: - - name: Tim1 - description: Trigger source is TIM3_CC3 - value: 0 - - name: Tim20 - description: rigger source is TIM20_TRGO - value: 1 + - name: Tim1 + description: Trigger source is TIM3_CC3 + value: 0 + - name: Tim20 + description: rigger source is TIM20_TRGO + value: 1 enum/ADC12_EXT3_RMP: bit_size: 1 variants: - - name: Tim2 - description: Trigger source is TIM2_CC2 - value: 0 - - name: Tim20 - description: rigger source is TIM20_TRGO2 - value: 1 + - name: Tim2 + description: Trigger source is TIM2_CC2 + value: 0 + - name: Tim20 + description: rigger source is TIM20_TRGO2 + value: 1 enum/ADC12_EXT5_RMP: bit_size: 1 variants: - - name: Tim4 - description: Trigger source is TIM4_CC4 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_CC1 - value: 1 + - name: Tim4 + description: Trigger source is TIM4_CC4 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_CC1 + value: 1 enum/ADC12_JEXT13_RMP: bit_size: 1 variants: - - name: Tim3 - description: Trigger source is TIM3_CC1 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_CC4 - value: 1 + - name: Tim3 + description: Trigger source is TIM3_CC1 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_CC4 + value: 1 enum/ADC12_JEXT3_RMP: bit_size: 1 variants: - - name: Tim2 - description: Trigger source is TIM2_CC1 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_TRGO - value: 1 + - name: Tim2 + description: Trigger source is TIM2_CC1 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_TRGO + value: 1 enum/ADC12_JEXT6_RMP: bit_size: 1 variants: - - name: Exti15 - description: Trigger source is EXTI line 15 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_TRGO2 - value: 1 + - name: Exti15 + description: Trigger source is EXTI line 15 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_TRGO2 + value: 1 enum/ADC2_DMA_RMP: bit_size: 1 variants: - - name: MapDma2 - description: ADC2 mapped on DMA2 - value: 0 - - name: MapDma1Ch2 - description: ADC2 mapped on DMA1 channel 2 - value: 2 - - name: MapDma1Ch4 - description: ADC2 mapped on DMA1 channel 4 - value: 3 + - name: MapDma2 + description: ADC2 mapped on DMA2 + value: 0 + - name: MapDma1Ch2 + description: ADC2 mapped on DMA1 channel 2 + value: 2 + - name: MapDma1Ch4 + description: ADC2 mapped on DMA1 channel 4 + value: 3 enum/ADC34_EXT15_RMP: bit_size: 1 variants: - - name: Tim2 - description: Trigger source is TIM2_CC1 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_CC1 - value: 1 + - name: Tim2 + description: Trigger source is TIM2_CC1 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_CC1 + value: 1 enum/ADC34_EXT5_RMP: bit_size: 1 variants: - - name: Exti2 - description: Trigger source is EXTI line 2 when reset at 0 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_TRGO - value: 1 + - name: Exti2 + description: Trigger source is EXTI line 2 when reset at 0 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_TRGO + value: 1 enum/ADC34_EXT6_RMP: bit_size: 1 variants: - - name: Tim4 - description: Trigger source is TIM4_CC1 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_TRGO2 - value: 1 + - name: Tim4 + description: Trigger source is TIM4_CC1 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_TRGO2 + value: 1 enum/ADC34_JEXT11_RMP: bit_size: 1 variants: - - name: Tim1 - description: Trigger source is TIM1_CC3 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_TRGO2 - value: 1 + - name: Tim1 + description: Trigger source is TIM1_CC3 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_TRGO2 + value: 1 enum/ADC34_JEXT14_RMP: bit_size: 1 variants: - - name: Tim7 - description: Trigger source is TIM7_TRGO - value: 0 - - name: Tim20 - description: Trigger source is TIM20_CC2 - value: 1 + - name: Tim7 + description: Trigger source is TIM7_TRGO + value: 0 + - name: Tim20 + description: Trigger source is TIM20_CC2 + value: 1 enum/ADC34_JEXT5_RMP: bit_size: 1 variants: - - name: Tim4 - description: Trigger source is TIM4_CC3 - value: 0 - - name: Tim20 - description: Trigger source is TIM20_TRGO - value: 1 + - name: Tim4 + description: Trigger source is TIM4_CC3 + value: 0 + - name: Tim20 + description: Trigger source is TIM20_TRGO + value: 1 enum/BYP_ADDR_PAR: bit_size: 1 variants: - - name: NoBypass - description: The ramload operation is performed taking into consideration bit 29 of the address when the parity is calculated - value: 0 - - name: Bypass - description: The ramload operation is performed without taking into consideration bit 29 of the address when the parity is calculated - value: 1 + - name: NoBypass + description: The ramload operation is performed taking into consideration bit 29 of the address when the parity is calculated + value: 0 + - name: Bypass + description: The ramload operation is performed without taking into consideration bit 29 of the address when the parity is calculated + value: 1 enum/DAC1_TRIG3_RMP: bit_size: 1 variants: - - name: Tim15 - description: DAC trigger is TIM15_TRGO - value: 0 - - name: HrTim1 - description: DAC trigger is HRTIM1_DAC1_TRIG1 - value: 1 + - name: Tim15 + description: DAC trigger is TIM15_TRGO + value: 0 + - name: HrTim1 + description: DAC trigger is HRTIM1_DAC1_TRIG1 + value: 1 enum/DAC1_TRIG5_RMP: bit_size: 1 variants: - - name: NotRemapped - description: Not remapped - value: 0 - - name: Remapped - description: DAC trigger is HRTIM1_DAC1_TRIG2 - value: 1 + - name: NotRemapped + description: Not remapped + value: 0 + - name: Remapped + description: DAC trigger is HRTIM1_DAC1_TRIG2 + value: 1 enum/DAC1_TRIG_RMP: bit_size: 1 variants: - - name: NotRemapped - description: DAC trigger is TIM8_TRGO in STM32F303xB/C and STM32F358xC devices - value: 0 - - name: Remapped - description: DAC trigger is TIM3_TRGO - value: 1 + - name: NotRemapped + description: DAC trigger is TIM8_TRGO in STM32F303xB/C and STM32F358xC devices + value: 0 + - name: Remapped + description: DAC trigger is TIM3_TRGO + value: 1 enum/DAC2_CH1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: Not remapped - value: 0 - - name: Remapped - description: DAC2_CH1 DMA requests mapped on DMA1 channel 5 - value: 1 + - name: NotRemapped + description: Not remapped + value: 0 + - name: Remapped + description: DAC2_CH1 DMA requests mapped on DMA1 channel 5 + value: 1 enum/DAC_TRIG_RMP: bit_size: 1 variants: - - name: NotRemapped - description: Not remapped - value: 0 - - name: Remapped - description: DAC trigger is TIM3_TRGO - value: 1 + - name: NotRemapped + description: Not remapped + value: 0 + - name: Remapped + description: DAC trigger is TIM3_TRGO + value: 1 enum/ENCODER_MODE: bit_size: 2 variants: - - name: NoRedirection - description: No redirection - value: 0 - - name: MapTim2Tim15 - description: TIM2 IC1 and TIM2 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively - value: 1 - - name: MapTim3Tim15 - description: TIM3 IC1 and TIM3 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively - value: 2 + - name: NoRedirection + description: No redirection + value: 0 + - name: MapTim2Tim15 + description: TIM2 IC1 and TIM2 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively + value: 1 + - name: MapTim3Tim15 + description: TIM3 IC1 and TIM3 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively + value: 2 enum/FPU_IE0: bit_size: 1 variants: - - name: Disabled - description: Invalid operation interrupt disable - value: 0 - - name: Enabled - description: Invalid operation interrupt enable - value: 1 + - name: Disabled + description: Invalid operation interrupt disable + value: 0 + - name: Enabled + description: Invalid operation interrupt enable + value: 1 enum/FPU_IE1: bit_size: 1 variants: - - name: Disabled - description: Devide-by-zero interrupt disable - value: 0 - - name: Enabled - description: Devide-by-zero interrupt enable - value: 1 + - name: Disabled + description: Devide-by-zero interrupt disable + value: 0 + - name: Enabled + description: Devide-by-zero interrupt enable + value: 1 enum/FPU_IE2: bit_size: 1 variants: - - name: Disabled - description: Underflow interrupt disable - value: 0 - - name: Enabled - description: Underflow interrupt enable - value: 1 + - name: Disabled + description: Underflow interrupt disable + value: 0 + - name: Enabled + description: Underflow interrupt enable + value: 1 enum/FPU_IE3: bit_size: 1 variants: - - name: Disabled - description: Overflow interrupt disable - value: 0 - - name: Enabled - description: Overflow interrupt enable - value: 1 + - name: Disabled + description: Overflow interrupt disable + value: 0 + - name: Enabled + description: Overflow interrupt enable + value: 1 enum/FPU_IE4: bit_size: 1 variants: - - name: Disabled - description: Input denormal interrupt disable - value: 0 - - name: Enabled - description: Input denormal interrupt enable - value: 1 + - name: Disabled + description: Input denormal interrupt disable + value: 0 + - name: Enabled + description: Input denormal interrupt enable + value: 1 enum/FPU_IE5: bit_size: 1 variants: - - name: Disabled - description: Inexact interrupt disable - value: 0 - - name: Enabled - description: Inexact interrupt enable - value: 1 + - name: Disabled + description: Inexact interrupt disable + value: 0 + - name: Enabled + description: Inexact interrupt enable + value: 1 enum/I2C1_FMP: bit_size: 1 variants: - - name: Standard - description: FM+ mode is controlled by I2C_Pxx_FMP bits only - value: 0 - - name: FMP - description: FM+ mode is enabled on all I2C1 pins selected through selection through IOPORT control registers AF selection bits - value: 1 + - name: Standard + description: FM+ mode is controlled by I2C_Pxx_FMP bits only + value: 0 + - name: FMP + description: FM+ mode is enabled on all I2C1 pins selected through selection through IOPORT control registers AF selection bits + value: 1 enum/I2C1_RX_DMA_RMP: bit_size: 2 variants: - - name: MapDma1Ch7 - description: I2C1_RX mapped on DMA1 CH7 - value: 0 - - name: MapDma1Ch3 - description: I2C1_RX mapped on DMA1 CH3 - value: 1 - - name: MapDma1Ch5 - description: I2C1_RX mapped on DMA1 CH5 - value: 2 + - name: MapDma1Ch7 + description: I2C1_RX mapped on DMA1 CH7 + value: 0 + - name: MapDma1Ch3 + description: I2C1_RX mapped on DMA1 CH3 + value: 1 + - name: MapDma1Ch5 + description: I2C1_RX mapped on DMA1 CH5 + value: 2 enum/I2C1_TX_DMA_RMP: bit_size: 2 variants: - - name: MapDma1Ch6 - description: I2C1_TX mapped on DMA1 CH6 - value: 0 - - name: MapDma1Ch2 - description: I2C1_TX mapped on DMA1 CH2 - value: 1 - - name: MapDma1Ch4 - description: I2C1_TX mapped on DMA1 CH4 - value: 2 + - name: MapDma1Ch6 + description: I2C1_TX mapped on DMA1 CH6 + value: 0 + - name: MapDma1Ch2 + description: I2C1_TX mapped on DMA1 CH2 + value: 1 + - name: MapDma1Ch4 + description: I2C1_TX mapped on DMA1 CH4 + value: 2 enum/I2C2_FMP: bit_size: 1 variants: - - name: Standard - description: FM+ mode is controlled by I2C_Pxx_FMP bits only - value: 0 - - name: FMP - description: FM+ mode is enabled on all I2C2 pins selected through selection through IOPORT control registers AF selection bits - value: 1 + - name: Standard + description: FM+ mode is controlled by I2C_Pxx_FMP bits only + value: 0 + - name: FMP + description: FM+ mode is enabled on all I2C2 pins selected through selection through IOPORT control registers AF selection bits + value: 1 enum/I2C3_FMP: bit_size: 1 variants: - - name: Standard - description: FM+ mode is controlled by I2C_Pxx_FMP bits only - value: 0 - - name: FMP - description: FM+ mode is enabled on all I2C3 pins selected through selection trhough IOPORT control registers AF selection bits - value: 1 + - name: Standard + description: FM+ mode is controlled by I2C_Pxx_FMP bits only + value: 0 + - name: FMP + description: FM+ mode is enabled on all I2C3 pins selected through selection trhough IOPORT control registers AF selection bits + value: 1 enum/I2C_PB6_FMP: bit_size: 1 variants: - - name: Standard - description: PB6 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB6 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB6 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB6 and the Speed control is bypassed + value: 1 enum/I2C_PB7_FMP: bit_size: 1 variants: - - name: Standard - description: PB7 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB7 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB7 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB7 and the Speed control is bypassed + value: 1 enum/I2C_PB8_FMP: bit_size: 1 variants: - - name: Standard - description: PB8 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB8 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB8 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB8 and the Speed control is bypassed + value: 1 enum/I2C_PB9_FMP: bit_size: 1 variants: - - name: Standard - description: PB9 pin operate in standard mode - value: 0 - - name: FMP - description: I2C FM+ mode enabled on PB9 and the Speed control is bypassed - value: 1 + - name: Standard + description: PB9 pin operate in standard mode + value: 0 + - name: FMP + description: I2C FM+ mode enabled on PB9 and the Speed control is bypassed + value: 1 enum/LOCKUP_LOCK: bit_size: 1 variants: - - name: Disconnected - description: Cortex-M4 LOCKUP output disconnected from TIM1/15/16/17 Break inputs and HRTIM1 SYSFLT. - value: 0 - - name: Connected - description: Cortex-M4 LOCKUP output connected to TIM1/15/16/17 and HRTIM1 SYSFLT Break inputs - value: 1 + - name: Disconnected + description: Cortex-M4 LOCKUP output disconnected from TIM1/15/16/17 Break inputs and HRTIM1 SYSFLT. + value: 0 + - name: Connected + description: Cortex-M4 LOCKUP output connected to TIM1/15/16/17 and HRTIM1 SYSFLT Break inputs + value: 1 enum/MEM_MODE: bit_size: 2 variants: - - name: MainFlash - description: Main Flash memory mapped at 0x0000_0000 - value: 0 - - name: SystemFlash - description: System Flash memory mapped at 0x0000_0000 - value: 1 - - name: MainFlash2 - description: Main Flash memory mapped at 0x0000_0000 - value: 2 - - name: SRAM - description: Embedded SRAM mapped at 0x0000_0000 - value: 3 + - name: MainFlash + description: Main Flash memory mapped at 0x0000_0000 + value: 0 + - name: SystemFlash + description: System Flash memory mapped at 0x0000_0000 + value: 1 + - name: MainFlash2 + description: Main Flash memory mapped at 0x0000_0000 + value: 2 + - name: SRAM + description: Embedded SRAM mapped at 0x0000_0000 + value: 3 enum/PAGE0_WP: bit_size: 1 variants: - - name: Disabled - description: Write protection of pagex is disabled - value: 0 - - name: Enabled - description: Write protection of pagex is enabled - value: 1 + - name: Disabled + description: Write protection of pagex is disabled + value: 0 + - name: Enabled + description: Write protection of pagex is enabled + value: 1 enum/PVD_LOCK: bit_size: 1 variants: - - name: Disconnected - description: PVD interrupt disconnected from TIM15/16/17 Break input - value: 0 - - name: Connected - description: PVD interrupt connected to TIM15/16/17 Break input - value: 1 + - name: Disconnected + description: PVD interrupt disconnected from TIM15/16/17 Break input + value: 0 + - name: Connected + description: PVD interrupt connected to TIM15/16/17 Break input + value: 1 enum/SPI1_RX_DMA_RMP: bit_size: 2 variants: - - name: MapDma1Ch3 - description: SPI1_RX mapped on DMA1 CH2 - value: 0 - - name: MapDma1Ch5 - description: SPI1_RX mapped on DMA1 CH4 - value: 1 - - name: MapDma1Ch7 - description: SPI1_RX mapped on DMA1 CH6 - value: 2 + - name: MapDma1Ch3 + description: SPI1_RX mapped on DMA1 CH2 + value: 0 + - name: MapDma1Ch5 + description: SPI1_RX mapped on DMA1 CH4 + value: 1 + - name: MapDma1Ch7 + description: SPI1_RX mapped on DMA1 CH6 + value: 2 enum/SPI1_TX_DMA_RMP: bit_size: 2 variants: - - name: MapDma1Ch3 - description: SPI1_TX mapped on DMA1 CH3 - value: 0 - - name: MapDma1Ch5 - description: SPI1_TX mapped on DMA1 CH5 - value: 1 - - name: MapDma1Ch7 - description: SPI1_TX mapped on DMA1 CH7 - value: 2 + - name: MapDma1Ch3 + description: SPI1_TX mapped on DMA1 CH3 + value: 0 + - name: MapDma1Ch5 + description: SPI1_TX mapped on DMA1 CH5 + value: 1 + - name: MapDma1Ch7 + description: SPI1_TX mapped on DMA1 CH7 + value: 2 enum/SRAM_PARITY_LOCK: bit_size: 1 variants: - - name: Disconnected - description: SRAM parity error signal disconnected from TIM1/15/16/17 and HRTIM1 SYSFLT Break inputs - value: 0 - - name: Connected - description: SRAM parity error signal connected to TIM1/15/16/17 and HRTIM1 SYSFLT Break inputs - value: 1 + - name: Disconnected + description: SRAM parity error signal disconnected from TIM1/15/16/17 and HRTIM1 SYSFLT Break inputs + value: 0 + - name: Connected + description: SRAM parity error signal connected to TIM1/15/16/17 and HRTIM1 SYSFLT Break inputs + value: 1 enum/TIM16_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM16_CH1 and TIM16_UP DMA requests mapped on DMA channel 3 - value: 0 - - name: Remapped - description: TIM16_CH1 and TIM16_UP DMA requests mapped on DMA channel 4 - value: 1 + - name: NotRemapped + description: TIM16_CH1 and TIM16_UP DMA requests mapped on DMA channel 3 + value: 0 + - name: Remapped + description: TIM16_CH1 and TIM16_UP DMA requests mapped on DMA channel 4 + value: 1 enum/TIM17_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM17_CH1 and TIM17_UP DMA requests mapped on DMA channel 1 - value: 0 - - name: Remapped - description: TIM17_CH1 and TIM17_UP DMA requests mapped on DMA channel 2 - value: 1 + - name: NotRemapped + description: TIM17_CH1 and TIM17_UP DMA requests mapped on DMA channel 1 + value: 0 + - name: Remapped + description: TIM17_CH1 and TIM17_UP DMA requests mapped on DMA channel 2 + value: 1 enum/TIM18_DAC2_OUT1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM18 and DAC2_OUT1 DMA requests mapped on DMA2 channel 5 - value: 0 - - name: Remapped - description: TIM18 and DAC2_OUT1 DMA requests mapped on DMA1 channel 5 - value: 1 + - name: NotRemapped + description: TIM18 and DAC2_OUT1 DMA requests mapped on DMA2 channel 5 + value: 0 + - name: Remapped + description: TIM18 and DAC2_OUT1 DMA requests mapped on DMA1 channel 5 + value: 1 enum/TIM1_ITR3_RMP: bit_size: 1 variants: - - name: NotRemapped - description: Not remapped - value: 0 - - name: Remapped - description: TIM1_ITR3 = TIM17_OC - value: 1 + - name: NotRemapped + description: Not remapped + value: 0 + - name: Remapped + description: TIM1_ITR3 = TIM17_OC + value: 1 enum/TIM6_DAC1_CH1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA2 channel 3 - value: 0 - - name: Remapped - description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA1 channel 3 - value: 1 + - name: NotRemapped + description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA2 channel 3 + value: 0 + - name: Remapped + description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA1 channel 3 + value: 1 enum/TIM6_DAC1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA2 channel 3 - value: 0 - - name: Remapped - description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA1 channel 3 - value: 1 + - name: NotRemapped + description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA2 channel 3 + value: 0 + - name: Remapped + description: TIM6_UP and DAC_CH1 DMA requests mapped on DMA1 channel 3 + value: 1 enum/TIM6_DAC1_OUT1_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM7 and DAC1_OUT1 DMA requests mapped on DMA2 channel 3 - value: 0 - - name: Remapped - description: TIM7 and DAC1_OUT1 DMA requests mapped on DMA1 channel 3 - value: 1 + - name: NotRemapped + description: TIM7 and DAC1_OUT1 DMA requests mapped on DMA2 channel 3 + value: 0 + - name: Remapped + description: TIM7 and DAC1_OUT1 DMA requests mapped on DMA1 channel 3 + value: 1 enum/TIM7_DAC1_CH2_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: Not remapped - value: 0 - - name: Remapped - description: TIM7_UP and DAC_CH2 DMA requests mapped on DMA1 channel 4 - value: 1 + - name: NotRemapped + description: Not remapped + value: 0 + - name: Remapped + description: TIM7_UP and DAC_CH2 DMA requests mapped on DMA1 channel 4 + value: 1 enum/TIM7_DAC1_OUT2_DMA_RMP: bit_size: 1 variants: - - name: NotRemapped - description: TIM7 and DAC1_OUT2 DMA requests mapped on DMA2 channel 4 - value: 0 - - name: Remapped - description: TIM7 and DAC1_OUT2 DMA requests mapped on DMA1 channel 4 - value: 1 + - name: NotRemapped + description: TIM7 and DAC1_OUT2 DMA requests mapped on DMA2 channel 4 + value: 0 + - name: Remapped + description: TIM7 and DAC1_OUT2 DMA requests mapped on DMA1 channel 4 + value: 1 enum/USB_IT_RMP: bit_size: 1 variants: - - name: NotRemapped - description: "USB_HP, USB_LP and USB_WAKEUP interrupts are mapped on interrupt lines 19, 20 and 42 respectively" - value: 0 - - name: Remapped - description: "USB_HP, USB_LP and USB_WAKEUP interrupts are mapped on interrupt lines 74, 75 and 76 respectively" - value: 1 + - name: NotRemapped + description: USB_HP, USB_LP and USB_WAKEUP interrupts are mapped on interrupt lines 19, 20 and 42 respectively + value: 0 + - name: Remapped + description: USB_HP, USB_LP and USB_WAKEUP interrupts are mapped on interrupt lines 74, 75 and 76 respectively + value: 1 enum/VBAT_MON: bit_size: 1 variants: - - name: Disable - description: Disable the power switch to not deliver VBAT voltage on ADC channel 18 input - value: 0 - - name: Enable - description: Enable the power switch to deliver VBAT voltage on ADC channel 18 input - value: 1 + - name: Disable + description: Disable the power switch to not deliver VBAT voltage on ADC channel 18 input + value: 0 + - name: Enable + description: Enable the power switch to deliver VBAT voltage on ADC channel 18 input + value: 1 diff --git a/data/registers/syscfg_f4.yaml b/data/registers/syscfg_f4.yaml index 41f1661..f08fe7a 100644 --- a/data/registers/syscfg_f4.yaml +++ b/data/registers/syscfg_f4.yaml @@ -1,79 +1,78 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRM - description: memory remap register - byte_offset: 0 - fieldset: MEMRM - - name: PMC - description: peripheral mode configuration register - byte_offset: 4 - fieldset: PMC - - name: EXTICR - description: external interrupt configuration register - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CMPCR - description: Compensation cell control register - byte_offset: 32 - access: Read - fieldset: CMPCR + - name: MEMRM + description: memory remap register + byte_offset: 0 + fieldset: MEMRM + - name: PMC + description: peripheral mode configuration register + byte_offset: 4 + fieldset: PMC + - name: EXTICR + description: external interrupt configuration register + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CMPCR + description: Compensation cell control register + byte_offset: 32 + access: Read + fieldset: CMPCR fieldset/CMPCR: description: Compensation cell control register fields: - - name: CMP_PD - description: Compensation cell power-down - bit_offset: 0 - bit_size: 1 - - name: READY - description: READY - bit_offset: 8 - bit_size: 1 + - name: CMP_PD + description: Compensation cell power-down + bit_offset: 0 + bit_size: 1 + - name: READY + description: READY + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register fields: - - name: EXTI - description: EXTI x configuration - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MEMRM: description: memory remap register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 3 - - name: FB_MODE - description: Flash bank mode selection - bit_offset: 8 - bit_size: 1 - - name: SWP_FMC - description: FMC memory mapping swap - bit_offset: 10 - bit_size: 2 + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 3 + - name: FB_MODE + description: Flash bank mode selection + bit_offset: 8 + bit_size: 1 + - name: SWP_FMC + description: FMC memory mapping swap + bit_offset: 10 + bit_size: 2 fieldset/PMC: description: peripheral mode configuration register fields: - - name: ADC1DC2 - description: ADC1DC2 - bit_offset: 16 - bit_size: 1 - - name: ADC2DC2 - description: ADC2DC2 - bit_offset: 17 - bit_size: 1 - - name: ADC3DC2 - description: ADC3DC2 - bit_offset: 18 - bit_size: 1 - - name: MII_RMII_SEL - description: Ethernet PHY interface selection - bit_offset: 23 - bit_size: 1 + - name: ADC1DC2 + description: ADC1DC2 + bit_offset: 16 + bit_size: 1 + - name: ADC2DC2 + description: ADC2DC2 + bit_offset: 17 + bit_size: 1 + - name: ADC3DC2 + description: ADC3DC2 + bit_offset: 18 + bit_size: 1 + - name: MII_RMII_SEL + description: Ethernet PHY interface selection + bit_offset: 23 + bit_size: 1 diff --git a/data/registers/syscfg_f7.yaml b/data/registers/syscfg_f7.yaml index f5a2242..a39ccfe 100644 --- a/data/registers/syscfg_f7.yaml +++ b/data/registers/syscfg_f7.yaml @@ -1,111 +1,110 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: PMC - description: peripheral mode configuration register - byte_offset: 4 - fieldset: PMC - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CMPCR - description: Compensation cell control register - byte_offset: 32 - access: Read - fieldset: CMPCR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: PMC + description: peripheral mode configuration register + byte_offset: 4 + fieldset: PMC + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CMPCR + description: Compensation cell control register + byte_offset: 32 + access: Read + fieldset: CMPCR fieldset/CMPCR: description: Compensation cell control register fields: - - name: CMP_PD - description: Compensation cell power-down - bit_offset: 0 - bit_size: 1 - - name: READY - description: READY - bit_offset: 8 - bit_size: 1 + - name: CMP_PD + description: Compensation cell power-down + bit_offset: 0 + bit_size: 1 + - name: READY + description: READY + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI x configuration (x = 0 to 3) - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration (x = 0 to 3) + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_BOOT - description: Memory boot mapping - bit_offset: 0 - bit_size: 1 - - name: FB_MODE - description: Flash bank mode selection - bit_offset: 8 - bit_size: 1 - - name: SWP_FMC - description: FMC memory mapping swap - bit_offset: 10 - bit_size: 2 + - name: MEM_BOOT + description: Memory boot mapping + bit_offset: 0 + bit_size: 1 + - name: FB_MODE + description: Flash bank mode selection + bit_offset: 8 + bit_size: 1 + - name: SWP_FMC + description: FMC memory mapping swap + bit_offset: 10 + bit_size: 2 fieldset/PMC: description: peripheral mode configuration register fields: - - name: I2C1_FMP - description: I2C1_FMP I2C1 Fast Mode + Enable - bit_offset: 0 - bit_size: 1 - - name: I2C2_FMP - description: I2C2_FMP I2C2 Fast Mode + Enable - bit_offset: 1 - bit_size: 1 - - name: I2C3_FMP - description: I2C3_FMP I2C3 Fast Mode + Enable - bit_offset: 2 - bit_size: 1 - - name: I2C4_FMP - description: I2C4 Fast Mode + Enable - bit_offset: 3 - bit_size: 1 - - name: PB6_FMP - description: PB6_FMP Fast Mode - bit_offset: 4 - bit_size: 1 - - name: PB7_FMP - description: PB7_FMP Fast Mode + Enable - bit_offset: 5 - bit_size: 1 - - name: PB8_FMP - description: PB8_FMP Fast Mode + Enable - bit_offset: 6 - bit_size: 1 - - name: PB9_FMP - description: Fast Mode + Enable - bit_offset: 7 - bit_size: 1 - - name: ADC1DC2 - description: ADC3DC2 - bit_offset: 16 - bit_size: 1 - - name: ADC2DC2 - description: ADC2DC2 - bit_offset: 17 - bit_size: 1 - - name: ADC3DC2 - description: ADC3DC2 - bit_offset: 18 - bit_size: 1 - - name: MII_RMII_SEL - description: Ethernet PHY interface selection - bit_offset: 23 - bit_size: 1 + - name: I2C1_FMP + description: I2C1_FMP I2C1 Fast Mode + Enable + bit_offset: 0 + bit_size: 1 + - name: I2C2_FMP + description: I2C2_FMP I2C2 Fast Mode + Enable + bit_offset: 1 + bit_size: 1 + - name: I2C3_FMP + description: I2C3_FMP I2C3 Fast Mode + Enable + bit_offset: 2 + bit_size: 1 + - name: I2C4_FMP + description: I2C4 Fast Mode + Enable + bit_offset: 3 + bit_size: 1 + - name: PB6_FMP + description: PB6_FMP Fast Mode + bit_offset: 4 + bit_size: 1 + - name: PB7_FMP + description: PB7_FMP Fast Mode + Enable + bit_offset: 5 + bit_size: 1 + - name: PB8_FMP + description: PB8_FMP Fast Mode + Enable + bit_offset: 6 + bit_size: 1 + - name: PB9_FMP + description: Fast Mode + Enable + bit_offset: 7 + bit_size: 1 + - name: ADC1DC2 + description: ADC3DC2 + bit_offset: 16 + bit_size: 1 + - name: ADC2DC2 + description: ADC2DC2 + bit_offset: 17 + bit_size: 1 + - name: ADC3DC2 + description: ADC3DC2 + bit_offset: 18 + bit_size: 1 + - name: MII_RMII_SEL + description: Ethernet PHY interface selection + bit_offset: 23 + bit_size: 1 diff --git a/data/registers/syscfg_g0.yaml b/data/registers/syscfg_g0.yaml index 3cf81eb..448223c 100644 --- a/data/registers/syscfg_g0.yaml +++ b/data/registers/syscfg_g0.yaml @@ -1,684 +1,683 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: CFGR1 - description: configuration register 1 - byte_offset: 0 - fieldset: CFGR1 - - name: CFGR2 - description: configuration register 1 - byte_offset: 24 - fieldset: CFGR2 - - name: VREFBUF_CSR - description: VREFBUF control and status register - byte_offset: 48 - fieldset: VREFBUF_CSR - - name: VREFBUF_CCR - description: VREFBUF calibration control register - byte_offset: 52 - fieldset: VREFBUF_CCR - - name: ITLINE0 - description: interrupt line 0 status register - byte_offset: 128 - access: Read - fieldset: ITLINE0 - - name: ITLINE1 - description: interrupt line 1 status register - byte_offset: 132 - access: Read - fieldset: ITLINE1 - - name: ITLINE2 - description: interrupt line 2 status register - byte_offset: 136 - access: Read - fieldset: ITLINE2 - - name: ITLINE3 - description: interrupt line 3 status register - byte_offset: 140 - access: Read - fieldset: ITLINE3 - - name: ITLINE4 - description: interrupt line 4 status register - byte_offset: 144 - access: Read - fieldset: ITLINE4 - - name: ITLINE5 - description: interrupt line 5 status register - byte_offset: 148 - access: Read - fieldset: ITLINE5 - - name: ITLINE6 - description: interrupt line 6 status register - byte_offset: 152 - access: Read - fieldset: ITLINE6 - - name: ITLINE7 - description: interrupt line 7 status register - byte_offset: 156 - access: Read - fieldset: ITLINE7 - - name: ITLINE8 - description: interrupt line 8 status register - byte_offset: 160 - access: Read - fieldset: ITLINE8 - - name: ITLINE9 - description: interrupt line 9 status register - byte_offset: 164 - access: Read - fieldset: ITLINE9 - - name: ITLINE10 - description: interrupt line 10 status register - byte_offset: 168 - access: Read - fieldset: ITLINE10 - - name: ITLINE11 - description: interrupt line 11 status register - byte_offset: 172 - access: Read - fieldset: ITLINE11 - - name: ITLINE12 - description: interrupt line 12 status register - byte_offset: 176 - access: Read - fieldset: ITLINE12 - - name: ITLINE13 - description: interrupt line 13 status register - byte_offset: 180 - access: Read - fieldset: ITLINE13 - - name: ITLINE14 - description: interrupt line 14 status register - byte_offset: 184 - access: Read - fieldset: ITLINE14 - - name: ITLINE15 - description: interrupt line 15 status register - byte_offset: 188 - access: Read - fieldset: ITLINE15 - - name: ITLINE16 - description: interrupt line 16 status register - byte_offset: 192 - access: Read - fieldset: ITLINE16 - - name: ITLINE17 - description: interrupt line 17 status register - byte_offset: 196 - access: Read - fieldset: ITLINE17 - - name: ITLINE18 - description: interrupt line 18 status register - byte_offset: 200 - access: Read - fieldset: ITLINE18 - - name: ITLINE19 - description: interrupt line 19 status register - byte_offset: 204 - access: Read - fieldset: ITLINE19 - - name: ITLINE20 - description: interrupt line 20 status register - byte_offset: 208 - access: Read - fieldset: ITLINE20 - - name: ITLINE21 - description: interrupt line 21 status register - byte_offset: 212 - access: Read - fieldset: ITLINE21 - - name: ITLINE22 - description: interrupt line 22 status register - byte_offset: 216 - access: Read - fieldset: ITLINE22 - - name: ITLINE23 - description: interrupt line 23 status register - byte_offset: 220 - access: Read - fieldset: ITLINE23 - - name: ITLINE24 - description: interrupt line 24 status register - byte_offset: 224 - access: Read - fieldset: ITLINE24 - - name: ITLINE25 - description: interrupt line 25 status register - byte_offset: 228 - access: Read - fieldset: ITLINE25 - - name: ITLINE26 - description: interrupt line 26 status register - byte_offset: 232 - access: Read - fieldset: ITLINE26 - - name: ITLINE27 - description: interrupt line 27 status register - byte_offset: 236 - access: Read - fieldset: ITLINE27 - - name: ITLINE28 - description: interrupt line 28 status register - byte_offset: 240 - access: Read - fieldset: ITLINE28 - - name: ITLINE29 - description: interrupt line 29 status register - byte_offset: 244 - access: Read - fieldset: ITLINE29 - - name: ITLINE30 - description: interrupt line 30 status register - byte_offset: 248 - access: Read - fieldset: ITLINE30 - - name: ITLINE31 - description: interrupt line 31 status register - byte_offset: 252 - access: Read - fieldset: ITLINE31 + - name: CFGR1 + description: configuration register 1 + byte_offset: 0 + fieldset: CFGR1 + - name: CFGR2 + description: configuration register 1 + byte_offset: 24 + fieldset: CFGR2 + - name: VREFBUF_CSR + description: VREFBUF control and status register + byte_offset: 48 + fieldset: VREFBUF_CSR + - name: VREFBUF_CCR + description: VREFBUF calibration control register + byte_offset: 52 + fieldset: VREFBUF_CCR + - name: ITLINE0 + description: interrupt line 0 status register + byte_offset: 128 + access: Read + fieldset: ITLINE0 + - name: ITLINE1 + description: interrupt line 1 status register + byte_offset: 132 + access: Read + fieldset: ITLINE1 + - name: ITLINE2 + description: interrupt line 2 status register + byte_offset: 136 + access: Read + fieldset: ITLINE2 + - name: ITLINE3 + description: interrupt line 3 status register + byte_offset: 140 + access: Read + fieldset: ITLINE3 + - name: ITLINE4 + description: interrupt line 4 status register + byte_offset: 144 + access: Read + fieldset: ITLINE4 + - name: ITLINE5 + description: interrupt line 5 status register + byte_offset: 148 + access: Read + fieldset: ITLINE5 + - name: ITLINE6 + description: interrupt line 6 status register + byte_offset: 152 + access: Read + fieldset: ITLINE6 + - name: ITLINE7 + description: interrupt line 7 status register + byte_offset: 156 + access: Read + fieldset: ITLINE7 + - name: ITLINE8 + description: interrupt line 8 status register + byte_offset: 160 + access: Read + fieldset: ITLINE8 + - name: ITLINE9 + description: interrupt line 9 status register + byte_offset: 164 + access: Read + fieldset: ITLINE9 + - name: ITLINE10 + description: interrupt line 10 status register + byte_offset: 168 + access: Read + fieldset: ITLINE10 + - name: ITLINE11 + description: interrupt line 11 status register + byte_offset: 172 + access: Read + fieldset: ITLINE11 + - name: ITLINE12 + description: interrupt line 12 status register + byte_offset: 176 + access: Read + fieldset: ITLINE12 + - name: ITLINE13 + description: interrupt line 13 status register + byte_offset: 180 + access: Read + fieldset: ITLINE13 + - name: ITLINE14 + description: interrupt line 14 status register + byte_offset: 184 + access: Read + fieldset: ITLINE14 + - name: ITLINE15 + description: interrupt line 15 status register + byte_offset: 188 + access: Read + fieldset: ITLINE15 + - name: ITLINE16 + description: interrupt line 16 status register + byte_offset: 192 + access: Read + fieldset: ITLINE16 + - name: ITLINE17 + description: interrupt line 17 status register + byte_offset: 196 + access: Read + fieldset: ITLINE17 + - name: ITLINE18 + description: interrupt line 18 status register + byte_offset: 200 + access: Read + fieldset: ITLINE18 + - name: ITLINE19 + description: interrupt line 19 status register + byte_offset: 204 + access: Read + fieldset: ITLINE19 + - name: ITLINE20 + description: interrupt line 20 status register + byte_offset: 208 + access: Read + fieldset: ITLINE20 + - name: ITLINE21 + description: interrupt line 21 status register + byte_offset: 212 + access: Read + fieldset: ITLINE21 + - name: ITLINE22 + description: interrupt line 22 status register + byte_offset: 216 + access: Read + fieldset: ITLINE22 + - name: ITLINE23 + description: interrupt line 23 status register + byte_offset: 220 + access: Read + fieldset: ITLINE23 + - name: ITLINE24 + description: interrupt line 24 status register + byte_offset: 224 + access: Read + fieldset: ITLINE24 + - name: ITLINE25 + description: interrupt line 25 status register + byte_offset: 228 + access: Read + fieldset: ITLINE25 + - name: ITLINE26 + description: interrupt line 26 status register + byte_offset: 232 + access: Read + fieldset: ITLINE26 + - name: ITLINE27 + description: interrupt line 27 status register + byte_offset: 236 + access: Read + fieldset: ITLINE27 + - name: ITLINE28 + description: interrupt line 28 status register + byte_offset: 240 + access: Read + fieldset: ITLINE28 + - name: ITLINE29 + description: interrupt line 29 status register + byte_offset: 244 + access: Read + fieldset: ITLINE29 + - name: ITLINE30 + description: interrupt line 30 status register + byte_offset: 248 + access: Read + fieldset: ITLINE30 + - name: ITLINE31 + description: interrupt line 31 status register + byte_offset: 252 + access: Read + fieldset: ITLINE31 fieldset/CFGR1: description: configuration register 1 fields: - - name: MEM_MODE - description: Memory mapping selection bits. This bitfield controlled by software selects the memory internally mapped at the address 0x0000_0000. Its reset value is determined by the boot mode configuration. Refer to Reference Manual section 2.5 for more details. - bit_offset: 0 - bit_size: 2 - enum: MEM_MODE - - name: PA11_RMP - description: "PA11 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA11 pin to operate as PA9 GPIO port, instead as PA11 GPIO port." - bit_offset: 3 - bit_size: 1 - - name: PA12_RMP - description: "PA12 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA12 pin to operate as PA10 GPIO port, instead as PA12 GPIO port." - bit_offset: 4 - bit_size: 1 - - name: IR_POL - description: IR output polarity selection - bit_offset: 5 - bit_size: 1 - - name: IR_MOD - description: IR Modulation Envelope signal selection. - bit_offset: 6 - bit_size: 2 - - name: BOOSTEN - description: I/O analog switch voltage booster enable - bit_offset: 8 - bit_size: 1 - - name: UCPD1_STROBE - description: Strobe signal bit for UCPD1 - bit_offset: 9 - bit_size: 1 - - name: UCPD2_STROBE - description: Strobe signal bit for UCPD2 - bit_offset: 10 - bit_size: 1 - - name: I2C_PBx_FMP - description: Fast Mode Plus (FM+) driving capability activation bits - bit_offset: 16 - bit_size: 4 - - name: I2C1_FMP - description: FM+ driving capability activation for I2C1 - bit_offset: 20 - bit_size: 1 - - name: I2C2_FMP - description: FM+ driving capability activation for I2C2 - bit_offset: 21 - bit_size: 1 - - name: I2C_PAx_FMP - description: Fast Mode Plus (FM+) driving capability activation bits - bit_offset: 22 - bit_size: 2 + - name: MEM_MODE + description: Memory mapping selection bits. This bitfield controlled by software selects the memory internally mapped at the address 0x0000_0000. Its reset value is determined by the boot mode configuration. Refer to Reference Manual section 2.5 for more details. + bit_offset: 0 + bit_size: 2 + enum: MEM_MODE + - name: PA11_RMP + description: "PA11 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA11 pin to operate as PA9 GPIO port, instead as PA11 GPIO port." + bit_offset: 3 + bit_size: 1 + - name: PA12_RMP + description: "PA12 pin remapping\r This bit is set and cleared by software. When set, it remaps the PA12 pin to operate as PA10 GPIO port, instead as PA12 GPIO port." + bit_offset: 4 + bit_size: 1 + - name: IR_POL + description: IR output polarity selection + bit_offset: 5 + bit_size: 1 + - name: IR_MOD + description: IR Modulation Envelope signal selection. + bit_offset: 6 + bit_size: 2 + - name: BOOSTEN + description: I/O analog switch voltage booster enable + bit_offset: 8 + bit_size: 1 + - name: UCPD1_STROBE + description: Strobe signal bit for UCPD1 + bit_offset: 9 + bit_size: 1 + - name: UCPD2_STROBE + description: Strobe signal bit for UCPD2 + bit_offset: 10 + bit_size: 1 + - name: I2C_PBx_FMP + description: Fast Mode Plus (FM+) driving capability activation bits + bit_offset: 16 + bit_size: 4 + - name: I2C1_FMP + description: FM+ driving capability activation for I2C1 + bit_offset: 20 + bit_size: 1 + - name: I2C2_FMP + description: FM+ driving capability activation for I2C2 + bit_offset: 21 + bit_size: 1 + - name: I2C_PAx_FMP + description: Fast Mode Plus (FM+) driving capability activation bits + bit_offset: 22 + bit_size: 2 fieldset/CFGR2: description: configuration register 1 fields: - - name: LOCKUP_LOCK - description: Cortex-M0+ LOCKUP bit enable bit - bit_offset: 0 - bit_size: 1 - - name: SRAM_PARITY_LOCK - description: SRAM parity lock bit - bit_offset: 1 - bit_size: 1 - - name: PVD_LOCK - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECC_LOCK - description: ECC error lock bit - bit_offset: 3 - bit_size: 1 - - name: SRAM_PEF - description: SRAM parity error flag - bit_offset: 8 - bit_size: 1 - - name: PA1_CDEN - description: PA1_CDEN - bit_offset: 16 - bit_size: 1 - - name: PA3_CDEN - description: PA3_CDEN - bit_offset: 17 - bit_size: 1 - - name: PA5_CDEN - description: PA5_CDEN - bit_offset: 18 - bit_size: 1 - - name: PA6_CDEN - description: PA6_CDEN - bit_offset: 19 - bit_size: 1 - - name: PA13_CDEN - description: PA13_CDEN - bit_offset: 20 - bit_size: 1 - - name: PB0_CDEN - description: PB0_CDEN - bit_offset: 21 - bit_size: 1 - - name: PB1_CDEN - description: PB1_CDEN - bit_offset: 22 - bit_size: 1 - - name: PB2_CDEN - description: PB2_CDEN - bit_offset: 23 - bit_size: 1 + - name: LOCKUP_LOCK + description: Cortex-M0+ LOCKUP bit enable bit + bit_offset: 0 + bit_size: 1 + - name: SRAM_PARITY_LOCK + description: SRAM parity lock bit + bit_offset: 1 + bit_size: 1 + - name: PVD_LOCK + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECC_LOCK + description: ECC error lock bit + bit_offset: 3 + bit_size: 1 + - name: SRAM_PEF + description: SRAM parity error flag + bit_offset: 8 + bit_size: 1 + - name: PA1_CDEN + description: PA1_CDEN + bit_offset: 16 + bit_size: 1 + - name: PA3_CDEN + description: PA3_CDEN + bit_offset: 17 + bit_size: 1 + - name: PA5_CDEN + description: PA5_CDEN + bit_offset: 18 + bit_size: 1 + - name: PA6_CDEN + description: PA6_CDEN + bit_offset: 19 + bit_size: 1 + - name: PA13_CDEN + description: PA13_CDEN + bit_offset: 20 + bit_size: 1 + - name: PB0_CDEN + description: PB0_CDEN + bit_offset: 21 + bit_size: 1 + - name: PB1_CDEN + description: PB1_CDEN + bit_offset: 22 + bit_size: 1 + - name: PB2_CDEN + description: PB2_CDEN + bit_offset: 23 + bit_size: 1 fieldset/ITLINE0: description: interrupt line 0 status register fields: - - name: WWDG - description: Window watchdog interrupt pending flag - bit_offset: 0 - bit_size: 1 + - name: WWDG + description: Window watchdog interrupt pending flag + bit_offset: 0 + bit_size: 1 fieldset/ITLINE1: description: interrupt line 1 status register fields: - - name: PVDOUT - description: PVD supply monitoring interrupt request pending (EXTI line 16). - bit_offset: 0 - bit_size: 1 + - name: PVDOUT + description: PVD supply monitoring interrupt request pending (EXTI line 16). + bit_offset: 0 + bit_size: 1 fieldset/ITLINE10: description: interrupt line 10 status register fields: - - name: DMA1_CH2 - description: DMA1_CH1 - bit_offset: 0 - bit_size: 1 - - name: DMA1_CH3 - description: DMA1_CH3 - bit_offset: 1 - bit_size: 1 + - name: DMA1_CH2 + description: DMA1_CH1 + bit_offset: 0 + bit_size: 1 + - name: DMA1_CH3 + description: DMA1_CH3 + bit_offset: 1 + bit_size: 1 fieldset/ITLINE11: description: interrupt line 11 status register fields: - - name: DMAMUX - description: DMAMUX - bit_offset: 0 - bit_size: 1 - - name: DMA1_CH4 - description: DMA1_CH4 - bit_offset: 1 - bit_size: 1 - - name: DMA1_CH5 - description: DMA1_CH5 - bit_offset: 2 - bit_size: 1 - - name: DMA1_CH6 - description: DMA1_CH6 - bit_offset: 3 - bit_size: 1 - - name: DMA1_CH7 - description: DMA1_CH7 - bit_offset: 4 - bit_size: 1 + - name: DMAMUX + description: DMAMUX + bit_offset: 0 + bit_size: 1 + - name: DMA1_CH4 + description: DMA1_CH4 + bit_offset: 1 + bit_size: 1 + - name: DMA1_CH5 + description: DMA1_CH5 + bit_offset: 2 + bit_size: 1 + - name: DMA1_CH6 + description: DMA1_CH6 + bit_offset: 3 + bit_size: 1 + - name: DMA1_CH7 + description: DMA1_CH7 + bit_offset: 4 + bit_size: 1 fieldset/ITLINE12: description: interrupt line 12 status register fields: - - name: ADC - description: ADC - bit_offset: 0 - bit_size: 1 - - name: COMP1 - description: COMP1 - bit_offset: 1 - bit_size: 1 - - name: COMP2 - description: COMP2 - bit_offset: 2 - bit_size: 1 + - name: ADC + description: ADC + bit_offset: 0 + bit_size: 1 + - name: COMP1 + description: COMP1 + bit_offset: 1 + bit_size: 1 + - name: COMP2 + description: COMP2 + bit_offset: 2 + bit_size: 1 fieldset/ITLINE13: description: interrupt line 13 status register fields: - - name: TIM1_CCU - description: TIM1_CCU - bit_offset: 0 - bit_size: 1 - - name: TIM1_TRG - description: TIM1_TRG - bit_offset: 1 - bit_size: 1 - - name: TIM1_UPD - description: TIM1_UPD - bit_offset: 2 - bit_size: 1 - - name: TIM1_BRK - description: TIM1_BRK - bit_offset: 3 - bit_size: 1 + - name: TIM1_CCU + description: TIM1_CCU + bit_offset: 0 + bit_size: 1 + - name: TIM1_TRG + description: TIM1_TRG + bit_offset: 1 + bit_size: 1 + - name: TIM1_UPD + description: TIM1_UPD + bit_offset: 2 + bit_size: 1 + - name: TIM1_BRK + description: TIM1_BRK + bit_offset: 3 + bit_size: 1 fieldset/ITLINE14: description: interrupt line 14 status register fields: - - name: TIM1_CC - description: TIM1_CC - bit_offset: 0 - bit_size: 1 + - name: TIM1_CC + description: TIM1_CC + bit_offset: 0 + bit_size: 1 fieldset/ITLINE15: description: interrupt line 15 status register fields: - - name: TIM2 - description: TIM2 - bit_offset: 0 - bit_size: 1 + - name: TIM2 + description: TIM2 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE16: description: interrupt line 16 status register fields: - - name: TIM3 - description: TIM3 - bit_offset: 0 - bit_size: 1 + - name: TIM3 + description: TIM3 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE17: description: interrupt line 17 status register fields: - - name: TIM6 - description: TIM6 - bit_offset: 0 - bit_size: 1 - - name: DAC - description: DAC - bit_offset: 1 - bit_size: 1 - - name: LPTIM1 - description: LPTIM1 - bit_offset: 2 - bit_size: 1 + - name: TIM6 + description: TIM6 + bit_offset: 0 + bit_size: 1 + - name: DAC + description: DAC + bit_offset: 1 + bit_size: 1 + - name: LPTIM1 + description: LPTIM1 + bit_offset: 2 + bit_size: 1 fieldset/ITLINE18: description: interrupt line 18 status register fields: - - name: TIM7 - description: TIM7 - bit_offset: 0 - bit_size: 1 - - name: LPTIM2 - description: LPTIM2 - bit_offset: 1 - bit_size: 1 + - name: TIM7 + description: TIM7 + bit_offset: 0 + bit_size: 1 + - name: LPTIM2 + description: LPTIM2 + bit_offset: 1 + bit_size: 1 fieldset/ITLINE19: description: interrupt line 19 status register fields: - - name: TIM14 - description: TIM14 - bit_offset: 0 - bit_size: 1 + - name: TIM14 + description: TIM14 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE2: description: interrupt line 2 status register fields: - - name: TAMP - description: TAMP - bit_offset: 0 - bit_size: 1 - - name: RTC - description: RTC - bit_offset: 1 - bit_size: 1 + - name: TAMP + description: TAMP + bit_offset: 0 + bit_size: 1 + - name: RTC + description: RTC + bit_offset: 1 + bit_size: 1 fieldset/ITLINE20: description: interrupt line 20 status register fields: - - name: TIM15 - description: TIM15 - bit_offset: 0 - bit_size: 1 + - name: TIM15 + description: TIM15 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE21: description: interrupt line 21 status register fields: - - name: TIM16 - description: TIM16 - bit_offset: 0 - bit_size: 1 + - name: TIM16 + description: TIM16 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE22: description: interrupt line 22 status register fields: - - name: TIM17 - description: TIM17 - bit_offset: 0 - bit_size: 1 + - name: TIM17 + description: TIM17 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE23: description: interrupt line 23 status register fields: - - name: I2C1 - description: I2C1 - bit_offset: 0 - bit_size: 1 + - name: I2C1 + description: I2C1 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE24: description: interrupt line 24 status register fields: - - name: I2C2 - description: I2C2 - bit_offset: 0 - bit_size: 1 + - name: I2C2 + description: I2C2 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE25: description: interrupt line 25 status register fields: - - name: SPI1 - description: SPI1 - bit_offset: 0 - bit_size: 1 + - name: SPI1 + description: SPI1 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE26: description: interrupt line 26 status register fields: - - name: SPI2 - description: SPI2 - bit_offset: 0 - bit_size: 1 + - name: SPI2 + description: SPI2 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE27: description: interrupt line 27 status register fields: - - name: USART1 - description: USART1 - bit_offset: 0 - bit_size: 1 + - name: USART1 + description: USART1 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE28: description: interrupt line 28 status register fields: - - name: USART2 - description: USART2 - bit_offset: 0 - bit_size: 1 + - name: USART2 + description: USART2 + bit_offset: 0 + bit_size: 1 fieldset/ITLINE29: description: interrupt line 29 status register fields: - - name: USART3 - bit_offset: 0 - bit_size: 1 - - name: USART4 - bit_offset: 1 - bit_size: 1 - - name: USART5 - bit_offset: 3 - bit_size: 1 - - name: USART6 - bit_offset: 4 - bit_size: 1 + - name: USART3 + bit_offset: 0 + bit_size: 1 + - name: USART4 + bit_offset: 1 + bit_size: 1 + - name: USART5 + bit_offset: 3 + bit_size: 1 + - name: USART6 + bit_offset: 4 + bit_size: 1 fieldset/ITLINE3: description: interrupt line 3 status register fields: - - name: FLASH_ITF - description: FLASH_ITF - bit_offset: 0 - bit_size: 1 - - name: FLASH_ECC - description: FLASH_ECC - bit_offset: 1 - bit_size: 1 + - name: FLASH_ITF + description: FLASH_ITF + bit_offset: 0 + bit_size: 1 + - name: FLASH_ECC + description: FLASH_ECC + bit_offset: 1 + bit_size: 1 fieldset/ITLINE30: description: interrupt line 30 status register fields: - - name: CEC - description: CEC - bit_offset: 0 - bit_size: 1 + - name: CEC + description: CEC + bit_offset: 0 + bit_size: 1 fieldset/ITLINE31: description: interrupt line 31 status register fields: - - name: RNG - description: RNG - bit_offset: 0 - bit_size: 1 - - name: AES - description: AES - bit_offset: 1 - bit_size: 1 + - name: RNG + description: RNG + bit_offset: 0 + bit_size: 1 + - name: AES + description: AES + bit_offset: 1 + bit_size: 1 fieldset/ITLINE4: description: interrupt line 4 status register fields: - - name: RCC - description: RCC - bit_offset: 0 - bit_size: 1 + - name: RCC + description: RCC + bit_offset: 0 + bit_size: 1 fieldset/ITLINE5: description: interrupt line 5 status register fields: - - name: EXTI0 - description: EXTI0 - bit_offset: 0 - bit_size: 1 - - name: EXTI1 - description: EXTI1 - bit_offset: 1 - bit_size: 1 + - name: EXTI0 + description: EXTI0 + bit_offset: 0 + bit_size: 1 + - name: EXTI1 + description: EXTI1 + bit_offset: 1 + bit_size: 1 fieldset/ITLINE6: description: interrupt line 6 status register fields: - - name: EXTI2 - description: EXTI2 - bit_offset: 0 - bit_size: 1 - - name: EXTI3 - description: EXTI3 - bit_offset: 1 - bit_size: 1 + - name: EXTI2 + description: EXTI2 + bit_offset: 0 + bit_size: 1 + - name: EXTI3 + description: EXTI3 + bit_offset: 1 + bit_size: 1 fieldset/ITLINE7: description: interrupt line 7 status register fields: - - name: EXTI4 - description: EXTI4 - bit_offset: 0 - bit_size: 1 - - name: EXTI5 - description: EXTI5 - bit_offset: 1 - bit_size: 1 - - name: EXTI6 - description: EXTI6 - bit_offset: 2 - bit_size: 1 - - name: EXTI7 - description: EXTI7 - bit_offset: 3 - bit_size: 1 - - name: EXTI8 - description: EXTI8 - bit_offset: 4 - bit_size: 1 - - name: EXTI9 - description: EXTI9 - bit_offset: 5 - bit_size: 1 - - name: EXTI10 - description: EXTI10 - bit_offset: 6 - bit_size: 1 - - name: EXTI11 - description: EXTI11 - bit_offset: 7 - bit_size: 1 - - name: EXTI12 - description: EXTI12 - bit_offset: 8 - bit_size: 1 - - name: EXTI13 - description: EXTI13 - bit_offset: 9 - bit_size: 1 - - name: EXTI14 - description: EXTI14 - bit_offset: 10 - bit_size: 1 - - name: EXTI15 - description: EXTI15 - bit_offset: 11 - bit_size: 1 + - name: EXTI4 + description: EXTI4 + bit_offset: 0 + bit_size: 1 + - name: EXTI5 + description: EXTI5 + bit_offset: 1 + bit_size: 1 + - name: EXTI6 + description: EXTI6 + bit_offset: 2 + bit_size: 1 + - name: EXTI7 + description: EXTI7 + bit_offset: 3 + bit_size: 1 + - name: EXTI8 + description: EXTI8 + bit_offset: 4 + bit_size: 1 + - name: EXTI9 + description: EXTI9 + bit_offset: 5 + bit_size: 1 + - name: EXTI10 + description: EXTI10 + bit_offset: 6 + bit_size: 1 + - name: EXTI11 + description: EXTI11 + bit_offset: 7 + bit_size: 1 + - name: EXTI12 + description: EXTI12 + bit_offset: 8 + bit_size: 1 + - name: EXTI13 + description: EXTI13 + bit_offset: 9 + bit_size: 1 + - name: EXTI14 + description: EXTI14 + bit_offset: 10 + bit_size: 1 + - name: EXTI15 + description: EXTI15 + bit_offset: 11 + bit_size: 1 fieldset/ITLINE8: description: interrupt line 8 status register fields: - - name: UCPD1 - description: UCPD1 - bit_offset: 0 - bit_size: 1 - - name: UCPD2 - description: UCPD2 - bit_offset: 1 - bit_size: 1 - - name: USB - description: USB - bit_offset: 2 - bit_size: 1 + - name: UCPD1 + description: UCPD1 + bit_offset: 0 + bit_size: 1 + - name: UCPD2 + description: UCPD2 + bit_offset: 1 + bit_size: 1 + - name: USB + description: USB + bit_offset: 2 + bit_size: 1 fieldset/ITLINE9: description: interrupt line 9 status register fields: - - name: DMA1_CH1 - description: DMA1_CH1 - bit_offset: 0 - bit_size: 1 + - name: DMA1_CH1 + description: DMA1_CH1 + bit_offset: 0 + bit_size: 1 fieldset/VREFBUF_CCR: description: VREFBUF calibration control register fields: - - name: TRIM - description: Trimming code These bits are automatically initialized after reset with the trimming value stored in the Flash memory during the production test. Writing into these bits allows to tune the internal reference buffer voltage. - bit_offset: 0 - bit_size: 6 + - name: TRIM + description: Trimming code These bits are automatically initialized after reset with the trimming value stored in the Flash memory during the production test. Writing into these bits allows to tune the internal reference buffer voltage. + bit_offset: 0 + bit_size: 6 fieldset/VREFBUF_CSR: description: VREFBUF control and status register fields: - - name: ENVR - description: Voltage reference buffer mode enable This bit is used to enable the voltage reference buffer mode. - bit_offset: 0 - bit_size: 1 - - name: HIZ - description: "High impedance mode This bit controls the analog switch to connect or not the VREF+ pin. Refer to Table196: VREF buffer modes for the mode descriptions depending on ENVR bit configuration." - bit_offset: 1 - bit_size: 1 - - name: VRR - description: Voltage reference buffer ready - bit_offset: 3 - bit_size: 1 - - name: VRS - description: "Voltage reference scale These bits select the value generated by the voltage reference buffer. Other: Reserved" - bit_offset: 4 - bit_size: 3 + - name: ENVR + description: Voltage reference buffer mode enable This bit is used to enable the voltage reference buffer mode. + bit_offset: 0 + bit_size: 1 + - name: HIZ + description: 'High impedance mode This bit controls the analog switch to connect or not the VREF+ pin. Refer to Table196: VREF buffer modes for the mode descriptions depending on ENVR bit configuration.' + bit_offset: 1 + bit_size: 1 + - name: VRR + description: Voltage reference buffer ready + bit_offset: 3 + bit_size: 1 + - name: VRS + description: 'Voltage reference scale These bits select the value generated by the voltage reference buffer. Other: Reserved' + bit_offset: 4 + bit_size: 3 enum/MEM_MODE: bit_size: 2 variants: - - name: MAIN_FLASH - description: Main Flash memory mapped at address 0 - value: 0 - - name: SYSTEM_FLASH - description: System Flash memory mapped at address 0 - value: 1 - - name: MAIN_FLASH_ALT - description: Main Flash memory mapped at address 0 (alternate encoding) - value: 2 - - name: SRAM - description: Embedded SRAM mapped at address 0 - value: 3 + - name: MAIN_FLASH + description: Main Flash memory mapped at address 0 + value: 0 + - name: SYSTEM_FLASH + description: System Flash memory mapped at address 0 + value: 1 + - name: MAIN_FLASH_ALT + description: Main Flash memory mapped at address 0 (alternate encoding) + value: 2 + - name: SRAM + description: Embedded SRAM mapped at address 0 + value: 3 diff --git a/data/registers/syscfg_g4.yaml b/data/registers/syscfg_g4.yaml index 56094e8..0aca795 100644 --- a/data/registers/syscfg_g4.yaml +++ b/data/registers/syscfg_g4.yaml @@ -1,155 +1,154 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: Remap Memory register - byte_offset: 0 - fieldset: MEMRMP - - name: CFGR1 - description: peripheral mode configuration register - byte_offset: 4 - fieldset: CFGR1 - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: SCSR - description: CCM SRAM control and status register - byte_offset: 24 - fieldset: SCSR - - name: CFGR2 - description: configuration register 2 - byte_offset: 28 - fieldset: CFGR2 - - name: SWPR - description: SRAM Write protection register 1 - byte_offset: 32 - fieldset: SWPR - - name: SKR - description: SRAM2 Key Register - byte_offset: 36 - access: Write - fieldset: SKR + - name: MEMRMP + description: Remap Memory register + byte_offset: 0 + fieldset: MEMRMP + - name: CFGR1 + description: peripheral mode configuration register + byte_offset: 4 + fieldset: CFGR1 + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: SCSR + description: CCM SRAM control and status register + byte_offset: 24 + fieldset: SCSR + - name: CFGR2 + description: configuration register 2 + byte_offset: 28 + fieldset: CFGR2 + - name: SWPR + description: SRAM Write protection register 1 + byte_offset: 32 + fieldset: SWPR + - name: SKR + description: SRAM2 Key Register + byte_offset: 36 + access: Write + fieldset: SKR fieldset/CFGR1: description: peripheral mode configuration register fields: - - name: BOOSTEN - description: BOOSTEN - bit_offset: 8 - bit_size: 1 - - name: ANASWVDD - description: GPIO analog switch control voltage selection - bit_offset: 9 - bit_size: 1 - - name: I2C_PB6_FMP - description: FM+ drive capability on PB6 - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: FM+ drive capability on PB6 - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: FM+ drive capability on PB6 - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: FM+ drive capability on PB6 - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 FM+ drive capability enable - bit_offset: 20 - bit_size: 1 - - name: I2C2_FMP - description: I2C1 FM+ drive capability enable - bit_offset: 21 - bit_size: 1 - - name: I2C3_FMP - description: I2C1 FM+ drive capability enable - bit_offset: 22 - bit_size: 1 - - name: I2C4_FMP - description: I2C1 FM+ drive capability enable - bit_offset: 23 - bit_size: 1 - - name: FPU_IE - description: FPU Interrupts Enable - bit_offset: 26 - bit_size: 6 + - name: BOOSTEN + description: BOOSTEN + bit_offset: 8 + bit_size: 1 + - name: ANASWVDD + description: GPIO analog switch control voltage selection + bit_offset: 9 + bit_size: 1 + - name: I2C_PB6_FMP + description: FM+ drive capability on PB6 + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: FM+ drive capability on PB6 + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: FM+ drive capability on PB6 + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: FM+ drive capability on PB6 + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 FM+ drive capability enable + bit_offset: 20 + bit_size: 1 + - name: I2C2_FMP + description: I2C1 FM+ drive capability enable + bit_offset: 21 + bit_size: 1 + - name: I2C3_FMP + description: I2C1 FM+ drive capability enable + bit_offset: 22 + bit_size: 1 + - name: I2C4_FMP + description: I2C1 FM+ drive capability enable + bit_offset: 23 + bit_size: 1 + - name: FPU_IE + description: FPU Interrupts Enable + bit_offset: 26 + bit_size: 6 fieldset/CFGR2: description: configuration register 2 fields: - - name: CLL - description: Core Lockup Lock - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM Parity Lock - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD Lock - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 - - name: SPF - description: SRAM Parity Flag - bit_offset: 8 - bit_size: 1 + - name: CLL + description: Core Lockup Lock + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM Parity Lock + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD Lock + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 + - name: SPF + description: SRAM Parity Flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register fields: - - name: EXTI - description: EXTI x configuration - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MEMRMP: description: Remap Memory register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 3 - - name: FB_mode - description: User Flash Bank mode - bit_offset: 8 - bit_size: 1 + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 3 + - name: FB_mode + description: User Flash Bank mode + bit_offset: 8 + bit_size: 1 fieldset/SCSR: description: CCM SRAM control and status register fields: - - name: CCMER - description: CCM SRAM Erase - bit_offset: 0 - bit_size: 1 - - name: CCMBSY - description: CCM SRAM busy by erase operation - bit_offset: 1 - bit_size: 1 + - name: CCMER + description: CCM SRAM Erase + bit_offset: 0 + bit_size: 1 + - name: CCMBSY + description: CCM SRAM busy by erase operation + bit_offset: 1 + bit_size: 1 fieldset/SKR: description: SRAM2 Key Register fields: - - name: KEY - description: SRAM2 Key for software erase - bit_offset: 0 - bit_size: 8 + - name: KEY + description: SRAM2 Key for software erase + bit_offset: 0 + bit_size: 8 fieldset/SWPR: description: SRAM Write protection register fields: - - name: Page_WP - description: Write protection - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: Page_WP + description: Write protection + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/syscfg_h7.yaml b/data/registers/syscfg_h7.yaml index 2afe710..24f8b08 100644 --- a/data/registers/syscfg_h7.yaml +++ b/data/registers/syscfg_h7.yaml @@ -1,410 +1,409 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: PMCR - description: peripheral mode configuration register - byte_offset: 4 - fieldset: PMCR - - name: EXTICR - description: external interrupt configuration register - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CCCSR - description: compensation cell control/status register - byte_offset: 32 - fieldset: CCCSR - - name: CCVR - description: SYSCFG compensation cell value register - byte_offset: 36 - access: Read - fieldset: CCVR - - name: CCCR - description: SYSCFG compensation cell code register - byte_offset: 40 - fieldset: CCCR - - name: PWRCR - description: SYSCFG power control register - byte_offset: 44 - fieldset: PWRCR - - name: PKGR - description: SYSCFG package register - byte_offset: 292 - access: Read - fieldset: PKGR - - name: UR0 - description: SYSCFG user register 0 - byte_offset: 768 - access: Read - fieldset: UR0 - - name: UR2 - description: SYSCFG user register 2 - byte_offset: 776 - fieldset: UR2 - - name: UR3 - description: SYSCFG user register 3 - byte_offset: 780 - fieldset: UR3 - - name: UR4 - description: SYSCFG user register 4 - byte_offset: 784 - access: Read - fieldset: UR4 - - name: UR5 - description: SYSCFG user register 5 - byte_offset: 788 - access: Read - fieldset: UR5 - - name: UR6 - description: SYSCFG user register 6 - byte_offset: 792 - access: Read - fieldset: UR6 - - name: UR7 - description: SYSCFG user register 7 - byte_offset: 796 - access: Read - fieldset: UR7 - - name: UR8 - description: SYSCFG user register 8 - byte_offset: 800 - access: Read - fieldset: UR8 - - name: UR9 - description: SYSCFG user register 9 - byte_offset: 804 - access: Read - fieldset: UR9 - - name: UR10 - description: SYSCFG user register 10 - byte_offset: 808 - access: Read - fieldset: UR10 - - name: UR11 - description: SYSCFG user register 11 - byte_offset: 812 - access: Read - fieldset: UR11 - - name: UR12 - description: SYSCFG user register 12 - byte_offset: 816 - access: Read - fieldset: UR12 - - name: UR13 - description: SYSCFG user register 13 - byte_offset: 820 - access: Read - fieldset: UR13 - - name: UR14 - description: SYSCFG user register 14 - byte_offset: 824 - fieldset: UR14 - - name: UR15 - description: SYSCFG user register 15 - byte_offset: 828 - access: Read - fieldset: UR15 - - name: UR16 - description: SYSCFG user register 16 - byte_offset: 832 - access: Read - fieldset: UR16 - - name: UR17 - description: SYSCFG user register 17 - byte_offset: 836 - access: Read - fieldset: UR17 + - name: PMCR + description: peripheral mode configuration register + byte_offset: 4 + fieldset: PMCR + - name: EXTICR + description: external interrupt configuration register + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CCCSR + description: compensation cell control/status register + byte_offset: 32 + fieldset: CCCSR + - name: CCVR + description: SYSCFG compensation cell value register + byte_offset: 36 + access: Read + fieldset: CCVR + - name: CCCR + description: SYSCFG compensation cell code register + byte_offset: 40 + fieldset: CCCR + - name: PWRCR + description: SYSCFG power control register + byte_offset: 44 + fieldset: PWRCR + - name: PKGR + description: SYSCFG package register + byte_offset: 292 + access: Read + fieldset: PKGR + - name: UR0 + description: SYSCFG user register 0 + byte_offset: 768 + access: Read + fieldset: UR0 + - name: UR2 + description: SYSCFG user register 2 + byte_offset: 776 + fieldset: UR2 + - name: UR3 + description: SYSCFG user register 3 + byte_offset: 780 + fieldset: UR3 + - name: UR4 + description: SYSCFG user register 4 + byte_offset: 784 + access: Read + fieldset: UR4 + - name: UR5 + description: SYSCFG user register 5 + byte_offset: 788 + access: Read + fieldset: UR5 + - name: UR6 + description: SYSCFG user register 6 + byte_offset: 792 + access: Read + fieldset: UR6 + - name: UR7 + description: SYSCFG user register 7 + byte_offset: 796 + access: Read + fieldset: UR7 + - name: UR8 + description: SYSCFG user register 8 + byte_offset: 800 + access: Read + fieldset: UR8 + - name: UR9 + description: SYSCFG user register 9 + byte_offset: 804 + access: Read + fieldset: UR9 + - name: UR10 + description: SYSCFG user register 10 + byte_offset: 808 + access: Read + fieldset: UR10 + - name: UR11 + description: SYSCFG user register 11 + byte_offset: 812 + access: Read + fieldset: UR11 + - name: UR12 + description: SYSCFG user register 12 + byte_offset: 816 + access: Read + fieldset: UR12 + - name: UR13 + description: SYSCFG user register 13 + byte_offset: 820 + access: Read + fieldset: UR13 + - name: UR14 + description: SYSCFG user register 14 + byte_offset: 824 + fieldset: UR14 + - name: UR15 + description: SYSCFG user register 15 + byte_offset: 828 + access: Read + fieldset: UR15 + - name: UR16 + description: SYSCFG user register 16 + byte_offset: 832 + access: Read + fieldset: UR16 + - name: UR17 + description: SYSCFG user register 17 + byte_offset: 836 + access: Read + fieldset: UR17 fieldset/CCCR: description: SYSCFG compensation cell code register fields: - - name: NCC - description: NMOS compensation code - bit_offset: 0 - bit_size: 4 - - name: PCC - description: PMOS compensation code - bit_offset: 4 - bit_size: 4 + - name: NCC + description: NMOS compensation code + bit_offset: 0 + bit_size: 4 + - name: PCC + description: PMOS compensation code + bit_offset: 4 + bit_size: 4 fieldset/CCCSR: description: compensation cell control/status register fields: - - name: EN - description: enable - bit_offset: 0 - bit_size: 1 - - name: CS - description: Code selection - bit_offset: 1 - bit_size: 1 - - name: READY - description: Compensation cell ready flag - bit_offset: 8 - bit_size: 1 - - name: HSLV - description: High-speed at low-voltage - bit_offset: 16 - bit_size: 1 + - name: EN + description: enable + bit_offset: 0 + bit_size: 1 + - name: CS + description: Code selection + bit_offset: 1 + bit_size: 1 + - name: READY + description: Compensation cell ready flag + bit_offset: 8 + bit_size: 1 + - name: HSLV + description: High-speed at low-voltage + bit_offset: 16 + bit_size: 1 fieldset/CCVR: description: SYSCFG compensation cell value register fields: - - name: NCV - description: NMOS compensation value - bit_offset: 0 - bit_size: 4 - - name: PCV - description: PMOS compensation value - bit_offset: 4 - bit_size: 4 + - name: NCV + description: NMOS compensation value + bit_offset: 0 + bit_size: 4 + - name: PCV + description: PMOS compensation value + bit_offset: 4 + bit_size: 4 fieldset/EXTICR: description: external interrupt configuration register 2 fields: - - name: EXTI - description: EXTI x configuration (x = 4 to 7) - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration (x = 4 to 7) + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/PKGR: description: SYSCFG package register fields: - - name: PKG - description: Package - bit_offset: 0 - bit_size: 4 + - name: PKG + description: Package + bit_offset: 0 + bit_size: 4 fieldset/PMCR: description: peripheral mode configuration register fields: - - name: I2C1FMP - description: I2C1 Fm+ - bit_offset: 0 - bit_size: 1 - - name: I2C2FMP - description: I2C2 Fm+ - bit_offset: 1 - bit_size: 1 - - name: I2C3FMP - description: I2C3 Fm+ - bit_offset: 2 - bit_size: 1 - - name: I2C4FMP - description: I2C4 Fm+ - bit_offset: 3 - bit_size: 1 - - name: PB6FMP - description: PB(6) Fm+ - bit_offset: 4 - bit_size: 1 - - name: PB7FMP - description: PB(7) Fast Mode Plus - bit_offset: 5 - bit_size: 1 - - name: PB8FMP - description: PB(8) Fast Mode Plus - bit_offset: 6 - bit_size: 1 - - name: PB9FMP - description: PB(9) Fm+ - bit_offset: 7 - bit_size: 1 - - name: BOOSTE - description: Booster Enable - bit_offset: 8 - bit_size: 1 - - name: BOOSTVDDSEL - description: Analog switch supply voltage selection - bit_offset: 9 - bit_size: 1 - - name: EPIS - description: Ethernet PHY Interface Selection - bit_offset: 21 - bit_size: 3 - - name: PA0SO - description: PA0 Switch Open - bit_offset: 24 - bit_size: 1 - - name: PA1SO - description: PA1 Switch Open - bit_offset: 25 - bit_size: 1 - - name: PC2SO - description: PC2 Switch Open - bit_offset: 26 - bit_size: 1 - - name: PC3SO - description: PC3 Switch Open - bit_offset: 27 - bit_size: 1 + - name: I2C1FMP + description: I2C1 Fm+ + bit_offset: 0 + bit_size: 1 + - name: I2C2FMP + description: I2C2 Fm+ + bit_offset: 1 + bit_size: 1 + - name: I2C3FMP + description: I2C3 Fm+ + bit_offset: 2 + bit_size: 1 + - name: I2C4FMP + description: I2C4 Fm+ + bit_offset: 3 + bit_size: 1 + - name: PB6FMP + description: PB(6) Fm+ + bit_offset: 4 + bit_size: 1 + - name: PB7FMP + description: PB(7) Fast Mode Plus + bit_offset: 5 + bit_size: 1 + - name: PB8FMP + description: PB(8) Fast Mode Plus + bit_offset: 6 + bit_size: 1 + - name: PB9FMP + description: PB(9) Fm+ + bit_offset: 7 + bit_size: 1 + - name: BOOSTE + description: Booster Enable + bit_offset: 8 + bit_size: 1 + - name: BOOSTVDDSEL + description: Analog switch supply voltage selection + bit_offset: 9 + bit_size: 1 + - name: EPIS + description: Ethernet PHY Interface Selection + bit_offset: 21 + bit_size: 3 + - name: PA0SO + description: PA0 Switch Open + bit_offset: 24 + bit_size: 1 + - name: PA1SO + description: PA1 Switch Open + bit_offset: 25 + bit_size: 1 + - name: PC2SO + description: PC2 Switch Open + bit_offset: 26 + bit_size: 1 + - name: PC3SO + description: PC3 Switch Open + bit_offset: 27 + bit_size: 1 fieldset/PWRCR: description: SYSCFG power control register fields: - - name: ODEN - description: Overdrive enable - bit_offset: 0 - bit_size: 4 + - name: ODEN + description: Overdrive enable + bit_offset: 0 + bit_size: 4 fieldset/UR0: description: SYSCFG user register 0 fields: - - name: BKS - description: Bank Swap - bit_offset: 0 - bit_size: 1 - - name: RDP - description: Readout protection - bit_offset: 16 - bit_size: 8 + - name: BKS + description: Bank Swap + bit_offset: 0 + bit_size: 1 + - name: RDP + description: Readout protection + bit_offset: 16 + bit_size: 8 fieldset/UR10: description: SYSCFG user register 10 fields: - - name: PA_END_2 - description: Protected area end address for bank 2 - bit_offset: 0 - bit_size: 12 - - name: SA_BEG_2 - description: Secured area start address for bank 2 - bit_offset: 16 - bit_size: 12 + - name: PA_END_2 + description: Protected area end address for bank 2 + bit_offset: 0 + bit_size: 12 + - name: SA_BEG_2 + description: Secured area start address for bank 2 + bit_offset: 16 + bit_size: 12 fieldset/UR11: description: SYSCFG user register 11 fields: - - name: SA_END_2 - description: Secured area end address for bank 2 - bit_offset: 0 - bit_size: 12 - - name: IWDG1M - description: Independent Watchdog 1 mode - bit_offset: 16 - bit_size: 1 + - name: SA_END_2 + description: Secured area end address for bank 2 + bit_offset: 0 + bit_size: 12 + - name: IWDG1M + description: Independent Watchdog 1 mode + bit_offset: 16 + bit_size: 1 fieldset/UR12: description: SYSCFG user register 12 fields: - - name: SECURE - description: Secure mode - bit_offset: 16 - bit_size: 1 + - name: SECURE + description: Secure mode + bit_offset: 16 + bit_size: 1 fieldset/UR13: description: SYSCFG user register 13 fields: - - name: SDRS - description: Secured DTCM RAM Size - bit_offset: 0 - bit_size: 2 - - name: D1SBRST - description: D1 Standby reset - bit_offset: 16 - bit_size: 1 + - name: SDRS + description: Secured DTCM RAM Size + bit_offset: 0 + bit_size: 2 + - name: D1SBRST + description: D1 Standby reset + bit_offset: 16 + bit_size: 1 fieldset/UR14: description: SYSCFG user register 14 fields: - - name: D1STPRST - description: D1 Stop Reset - bit_offset: 0 - bit_size: 1 + - name: D1STPRST + description: D1 Stop Reset + bit_offset: 0 + bit_size: 1 fieldset/UR15: description: SYSCFG user register 15 fields: - - name: FZIWDGSTB - description: Freeze independent watchdog in Standby mode - bit_offset: 16 - bit_size: 1 + - name: FZIWDGSTB + description: Freeze independent watchdog in Standby mode + bit_offset: 16 + bit_size: 1 fieldset/UR16: description: SYSCFG user register 16 fields: - - name: FZIWDGSTP - description: Freeze independent watchdog in Stop mode - bit_offset: 0 - bit_size: 1 - - name: PKP - description: Private key programmed - bit_offset: 16 - bit_size: 1 + - name: FZIWDGSTP + description: Freeze independent watchdog in Stop mode + bit_offset: 0 + bit_size: 1 + - name: PKP + description: Private key programmed + bit_offset: 16 + bit_size: 1 fieldset/UR17: description: SYSCFG user register 17 fields: - - name: IO_HSLV - description: I/O high speed / low voltage - bit_offset: 0 - bit_size: 1 + - name: IO_HSLV + description: I/O high speed / low voltage + bit_offset: 0 + bit_size: 1 fieldset/UR2: description: SYSCFG user register 2 fields: - - name: BORH - description: BOR_LVL Brownout Reset Threshold Level - bit_offset: 0 - bit_size: 2 - - name: BOOT_ADD0 - description: Boot Address 0 - bit_offset: 16 - bit_size: 16 + - name: BORH + description: BOR_LVL Brownout Reset Threshold Level + bit_offset: 0 + bit_size: 2 + - name: BOOT_ADD0 + description: Boot Address 0 + bit_offset: 16 + bit_size: 16 fieldset/UR3: description: SYSCFG user register 3 fields: - - name: BOOT_ADD1 - description: Boot Address 1 - bit_offset: 16 - bit_size: 16 + - name: BOOT_ADD1 + description: Boot Address 1 + bit_offset: 16 + bit_size: 16 fieldset/UR4: description: SYSCFG user register 4 fields: - - name: MEPAD_1 - description: Mass Erase Protected Area Disabled for bank 1 - bit_offset: 16 - bit_size: 1 + - name: MEPAD_1 + description: Mass Erase Protected Area Disabled for bank 1 + bit_offset: 16 + bit_size: 1 fieldset/UR5: description: SYSCFG user register 5 fields: - - name: MESAD_1 - description: Mass erase secured area disabled for bank 1 - bit_offset: 0 - bit_size: 1 - - name: WRPN_1 - description: Write protection for flash bank 1 - bit_offset: 16 - bit_size: 8 + - name: MESAD_1 + description: Mass erase secured area disabled for bank 1 + bit_offset: 0 + bit_size: 1 + - name: WRPN_1 + description: Write protection for flash bank 1 + bit_offset: 16 + bit_size: 8 fieldset/UR6: description: SYSCFG user register 6 fields: - - name: PA_BEG_1 - description: Protected area start address for bank 1 - bit_offset: 0 - bit_size: 12 - - name: PA_END_1 - description: Protected area end address for bank 1 - bit_offset: 16 - bit_size: 12 + - name: PA_BEG_1 + description: Protected area start address for bank 1 + bit_offset: 0 + bit_size: 12 + - name: PA_END_1 + description: Protected area end address for bank 1 + bit_offset: 16 + bit_size: 12 fieldset/UR7: description: SYSCFG user register 7 fields: - - name: SA_BEG_1 - description: Secured area start address for bank 1 - bit_offset: 0 - bit_size: 12 - - name: SA_END_1 - description: Secured area end address for bank 1 - bit_offset: 16 - bit_size: 12 + - name: SA_BEG_1 + description: Secured area start address for bank 1 + bit_offset: 0 + bit_size: 12 + - name: SA_END_1 + description: Secured area end address for bank 1 + bit_offset: 16 + bit_size: 12 fieldset/UR8: description: SYSCFG user register 8 fields: - - name: MEPAD_2 - description: Mass erase protected area disabled for bank 2 - bit_offset: 0 - bit_size: 1 - - name: MESAD_2 - description: Mass erase secured area disabled for bank 2 - bit_offset: 16 - bit_size: 1 + - name: MEPAD_2 + description: Mass erase protected area disabled for bank 2 + bit_offset: 0 + bit_size: 1 + - name: MESAD_2 + description: Mass erase secured area disabled for bank 2 + bit_offset: 16 + bit_size: 1 fieldset/UR9: description: SYSCFG user register 9 fields: - - name: WRPN_2 - description: Write protection for flash bank 2 - bit_offset: 0 - bit_size: 8 - - name: PA_BEG_2 - description: Protected area start address for bank 2 - bit_offset: 16 - bit_size: 12 + - name: WRPN_2 + description: Write protection for flash bank 2 + bit_offset: 0 + bit_size: 8 + - name: PA_BEG_2 + description: Protected area start address for bank 2 + bit_offset: 16 + bit_size: 12 diff --git a/data/registers/syscfg_l0.yaml b/data/registers/syscfg_l0.yaml index df80345..ce9db68 100644 --- a/data/registers/syscfg_l0.yaml +++ b/data/registers/syscfg_l0.yaml @@ -1,118 +1,117 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: CFGR1 - description: configuration register 1 - byte_offset: 0 - fieldset: CFGR1 - - name: CFGR2 - description: CFGR2 - byte_offset: 4 - fieldset: CFGR2 - - name: EXTICR - description: external interrupt configuration register - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: CFGR3 - description: CFGR3 - byte_offset: 32 - fieldset: CFGR3 + - name: CFGR1 + description: configuration register 1 + byte_offset: 0 + fieldset: CFGR1 + - name: CFGR2 + description: CFGR2 + byte_offset: 4 + fieldset: CFGR2 + - name: EXTICR + description: external interrupt configuration register + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CFGR3 + description: CFGR3 + byte_offset: 32 + fieldset: CFGR3 fieldset/CFGR1: description: configuration register 1 fields: - - name: MEM_MODE - description: Memory mapping selection bits - bit_offset: 0 - bit_size: 2 - - name: UFB - description: User bank swapping - bit_offset: 3 - bit_size: 1 - - name: BOOT_MODE - description: Boot mode selected by the boot pins status bits - bit_offset: 8 - bit_size: 2 + - name: MEM_MODE + description: Memory mapping selection bits + bit_offset: 0 + bit_size: 2 + - name: UFB + description: User bank swapping + bit_offset: 3 + bit_size: 1 + - name: BOOT_MODE + description: Boot mode selected by the boot pins status bits + bit_offset: 8 + bit_size: 2 fieldset/CFGR2: description: CFGR2 fields: - - name: FWDIS - description: Firewall disable bit - bit_offset: 0 - bit_size: 1 - - name: I2C_PB6_FMP - description: Fm+ drive capability on PB6 enable bit - bit_offset: 8 - bit_size: 1 - - name: I2C_PB7_FMP - description: Fm+ drive capability on PB7 enable bit - bit_offset: 9 - bit_size: 1 - - name: I2C_PB8_FMP - description: Fm+ drive capability on PB8 enable bit - bit_offset: 10 - bit_size: 1 - - name: I2C_PB9_FMP - description: Fm+ drive capability on PB9 enable bit - bit_offset: 11 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 Fm+ drive capability enable bit - bit_offset: 12 - bit_size: 1 - - name: I2C2_FMP - description: I2C2 Fm+ drive capability enable bit - bit_offset: 13 - bit_size: 1 - - name: I2C3_FMP - description: I2C3 Fm+ drive capability enable bit - bit_offset: 14 - bit_size: 1 + - name: FWDIS + description: Firewall disable bit + bit_offset: 0 + bit_size: 1 + - name: I2C_PB6_FMP + description: Fm+ drive capability on PB6 enable bit + bit_offset: 8 + bit_size: 1 + - name: I2C_PB7_FMP + description: Fm+ drive capability on PB7 enable bit + bit_offset: 9 + bit_size: 1 + - name: I2C_PB8_FMP + description: Fm+ drive capability on PB8 enable bit + bit_offset: 10 + bit_size: 1 + - name: I2C_PB9_FMP + description: Fm+ drive capability on PB9 enable bit + bit_offset: 11 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 Fm+ drive capability enable bit + bit_offset: 12 + bit_size: 1 + - name: I2C2_FMP + description: I2C2 Fm+ drive capability enable bit + bit_offset: 13 + bit_size: 1 + - name: I2C3_FMP + description: I2C3 Fm+ drive capability enable bit + bit_offset: 14 + bit_size: 1 fieldset/CFGR3: description: CFGR3 fields: - - name: EN_VREFINT - description: VREFINT enable and scaler control for COMP2 enable bit - bit_offset: 0 - bit_size: 1 - - name: SEL_VREF_OUT - description: VREFINT_ADC connection bit - bit_offset: 4 - bit_size: 2 - - name: ENBUF_VREFINT_ADC - description: VREFINT reference for ADC enable bit - bit_offset: 8 - bit_size: 1 - - name: ENBUF_SENSOR_ADC - description: Temperature sensor reference for ADC enable bit - bit_offset: 9 - bit_size: 1 - - name: ENBUF_VREFINT_COMP2 - description: VREFINT reference for COMP2 scaler enable bit - bit_offset: 12 - bit_size: 1 - - name: ENREF_HSI48 - description: VREFINT reference for HSI48 oscillator enable bit - bit_offset: 13 - bit_size: 1 - - name: VREFINT_RDYF - description: VREFINT ready flag - bit_offset: 30 - bit_size: 1 - - name: REF_LOCK - description: SYSCFG_CFGR3 lock bit - bit_offset: 31 - bit_size: 1 + - name: EN_VREFINT + description: VREFINT enable and scaler control for COMP2 enable bit + bit_offset: 0 + bit_size: 1 + - name: SEL_VREF_OUT + description: VREFINT_ADC connection bit + bit_offset: 4 + bit_size: 2 + - name: ENBUF_VREFINT_ADC + description: VREFINT reference for ADC enable bit + bit_offset: 8 + bit_size: 1 + - name: ENBUF_SENSOR_ADC + description: Temperature sensor reference for ADC enable bit + bit_offset: 9 + bit_size: 1 + - name: ENBUF_VREFINT_COMP2 + description: VREFINT reference for COMP2 scaler enable bit + bit_offset: 12 + bit_size: 1 + - name: ENREF_HSI48 + description: VREFINT reference for HSI48 oscillator enable bit + bit_offset: 13 + bit_size: 1 + - name: VREFINT_RDYF + description: VREFINT ready flag + bit_offset: 30 + bit_size: 1 + - name: REF_LOCK + description: SYSCFG_CFGR3 lock bit + bit_offset: 31 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 1-4 fields: - - name: EXTI - description: EXTI configuration bits - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI configuration bits + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 diff --git a/data/registers/syscfg_l1.yaml b/data/registers/syscfg_l1.yaml index b1dd048..ce9760d 100644 --- a/data/registers/syscfg_l1.yaml +++ b/data/registers/syscfg_l1.yaml @@ -1,51 +1,50 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: PMC - description: peripheral mode configuration register - byte_offset: 4 - fieldset: PMC - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: PMC + description: peripheral mode configuration register + byte_offset: 4 + fieldset: PMC + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR fieldset/EXTICR: description: external interrupt configuration register 3 fields: - - name: EXTI - description: EXTI x configuration (x = 8 to 11) - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI x configuration (x = 8 to 11) + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_MODE - description: MEM_MODE - bit_offset: 0 - bit_size: 2 - - name: BOOT_MODE - description: BOOT_MODE - bit_offset: 8 - bit_size: 2 + - name: MEM_MODE + description: MEM_MODE + bit_offset: 0 + bit_size: 2 + - name: BOOT_MODE + description: BOOT_MODE + bit_offset: 8 + bit_size: 2 fieldset/PMC: description: peripheral mode configuration register fields: - - name: USB_PU - description: USB pull-up - bit_offset: 0 - bit_size: 1 - - name: LCD_CAPA - description: USB pull-up enable on DP line - bit_offset: 1 - bit_size: 5 + - name: USB_PU + description: USB pull-up + bit_offset: 0 + bit_size: 1 + - name: LCD_CAPA + description: USB pull-up enable on DP line + bit_offset: 1 + bit_size: 5 diff --git a/data/registers/syscfg_l4.yaml b/data/registers/syscfg_l4.yaml index c9e4ae1..eaa36b6 100644 --- a/data/registers/syscfg_l4.yaml +++ b/data/registers/syscfg_l4.yaml @@ -1,156 +1,155 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: CFGR1 - description: configuration register 1 - byte_offset: 4 - fieldset: CFGR1 - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: SCSR - description: SCSR - byte_offset: 24 - fieldset: SCSR - - name: CFGR2 - description: CFGR2 - byte_offset: 28 - fieldset: CFGR2 - - name: SWPR - description: SWPR - byte_offset: 32 - access: Write - fieldset: SWPR - - name: SKR - description: SKR - byte_offset: 36 - access: Write - fieldset: SKR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: SCSR + description: SCSR + byte_offset: 24 + fieldset: SCSR + - name: CFGR2 + description: CFGR2 + byte_offset: 28 + fieldset: CFGR2 + - name: SWPR + description: SWPR + byte_offset: 32 + access: Write + fieldset: SWPR + - name: SKR + description: SKR + byte_offset: 36 + access: Write + fieldset: SKR fieldset/CFGR1: description: configuration register 1 fields: - - name: FWDIS - description: Firewall disable - bit_offset: 0 - bit_size: 1 - - name: BOOSTEN - description: I/O analog switch voltage booster enable - bit_offset: 8 - bit_size: 1 - - name: I2C_PB6_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB6 - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB7 - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB8 - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB9 - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 Fast-mode Plus driving capability activation - bit_offset: 20 - bit_size: 1 - - name: I2C2_FMP - description: I2C2 Fast-mode Plus driving capability activation - bit_offset: 21 - bit_size: 1 - - name: I2C3_FMP - description: I2C3 Fast-mode Plus driving capability activation - bit_offset: 22 - bit_size: 1 - - name: FPU_IE - description: Floating Point Unit interrupts enable bits - bit_offset: 26 - bit_size: 6 + - name: FWDIS + description: Firewall disable + bit_offset: 0 + bit_size: 1 + - name: BOOSTEN + description: I/O analog switch voltage booster enable + bit_offset: 8 + bit_size: 1 + - name: I2C_PB6_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB6 + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB7 + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB8 + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB9 + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 Fast-mode Plus driving capability activation + bit_offset: 20 + bit_size: 1 + - name: I2C2_FMP + description: I2C2 Fast-mode Plus driving capability activation + bit_offset: 21 + bit_size: 1 + - name: I2C3_FMP + description: I2C3 Fast-mode Plus driving capability activation + bit_offset: 22 + bit_size: 1 + - name: FPU_IE + description: Floating Point Unit interrupts enable bits + bit_offset: 26 + bit_size: 6 fieldset/CFGR2: description: CFGR2 fields: - - name: CLL - description: Cortex LOCKUP (Hardfault) output enable bit - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM2 parity lock bit - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 - - name: SPF - description: SRAM2 parity error flag - bit_offset: 8 - bit_size: 1 + - name: CLL + description: Cortex LOCKUP (Hardfault) output enable bit + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM2 parity lock bit + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 + - name: SPF + description: SRAM2 parity error flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 4 fields: - - name: EXTI - description: EXTI12 configuration bits - bit_offset: 0 - bit_size: 4 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI12 configuration bits + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 3 - - name: QFS - description: QUADSPI memory mapping swap - bit_offset: 3 - bit_size: 1 - - name: FB_MODE - description: Flash Bank mode selection - bit_offset: 8 - bit_size: 1 + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 3 + - name: QFS + description: QUADSPI memory mapping swap + bit_offset: 3 + bit_size: 1 + - name: FB_MODE + description: Flash Bank mode selection + bit_offset: 8 + bit_size: 1 fieldset/SCSR: description: SCSR fields: - - name: SRAM2ER - description: SRAM2 Erase - bit_offset: 0 - bit_size: 1 - - name: SRAM2BSY - description: SRAM2 busy by erase operation - bit_offset: 1 - bit_size: 1 + - name: SRAM2ER + description: SRAM2 Erase + bit_offset: 0 + bit_size: 1 + - name: SRAM2BSY + description: SRAM2 busy by erase operation + bit_offset: 1 + bit_size: 1 fieldset/SKR: description: SKR fields: - - name: KEY - description: SRAM2 write protection key for software erase - bit_offset: 0 - bit_size: 8 + - name: KEY + description: SRAM2 write protection key for software erase + bit_offset: 0 + bit_size: 8 fieldset/SWPR: description: SWPR fields: - - name: PWP - description: SRAWM2 write protection. - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PWP + description: SRAWM2 write protection. + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/syscfg_l5.yaml b/data/registers/syscfg_l5.yaml index 9692d9b..bfceaa1 100644 --- a/data/registers/syscfg_l5.yaml +++ b/data/registers/syscfg_l5.yaml @@ -1,456 +1,455 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: SECCFGR - description: SYSCFG secure configuration register - byte_offset: 0 - fieldset: SECCFGR - - name: CFGR1 - description: configuration register 1 - byte_offset: 4 - fieldset: CFGR1 - - name: FPUIMR - description: FPU interrupt mask register - byte_offset: 8 - fieldset: FPUIMR - - name: CNSLCKR - description: SYSCFG CPU non-secure lock register - byte_offset: 12 - fieldset: CNSLCKR - - name: CSLOCKR - description: SYSCFG CPU secure lock register - byte_offset: 16 - fieldset: CSLOCKR - - name: CFGR2 - description: CFGR2 - byte_offset: 20 - fieldset: CFGR2 - - name: SCSR - description: SCSR - byte_offset: 24 - fieldset: SCSR - - name: SKR - description: SKR - byte_offset: 28 - access: Write - fieldset: SKR - - name: SWPR - description: SWPR - byte_offset: 32 - access: Write - fieldset: SWPR - - name: SWPR2 - description: SWPR2 - byte_offset: 36 - access: Write - fieldset: SWPR2 - - name: RSSCMDR - description: RSSCMDR - byte_offset: 44 - fieldset: RSSCMDR + - name: SECCFGR + description: SYSCFG secure configuration register + byte_offset: 0 + fieldset: SECCFGR + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: FPUIMR + description: FPU interrupt mask register + byte_offset: 8 + fieldset: FPUIMR + - name: CNSLCKR + description: SYSCFG CPU non-secure lock register + byte_offset: 12 + fieldset: CNSLCKR + - name: CSLOCKR + description: SYSCFG CPU secure lock register + byte_offset: 16 + fieldset: CSLOCKR + - name: CFGR2 + description: CFGR2 + byte_offset: 20 + fieldset: CFGR2 + - name: SCSR + description: SCSR + byte_offset: 24 + fieldset: SCSR + - name: SKR + description: SKR + byte_offset: 28 + access: Write + fieldset: SKR + - name: SWPR + description: SWPR + byte_offset: 32 + access: Write + fieldset: SWPR + - name: SWPR2 + description: SWPR2 + byte_offset: 36 + access: Write + fieldset: SWPR2 + - name: RSSCMDR + description: RSSCMDR + byte_offset: 44 + fieldset: RSSCMDR fieldset/CFGR1: description: configuration register 1 fields: - - name: BOOSTEN - description: I/O analog switch voltage booster enable - bit_offset: 8 - bit_size: 1 - - name: ANASWVDD - description: GPIO analog switch control voltage selection - bit_offset: 9 - bit_size: 1 - - name: I2C_PB6_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB6 - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB7 - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB8 - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB9 - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 Fast-mode Plus driving capability activation - bit_offset: 20 - bit_size: 1 - - name: I2C2_FMP - description: I2C2 Fast-mode Plus driving capability activation - bit_offset: 21 - bit_size: 1 - - name: I2C3_FMP - description: I2C3 Fast-mode Plus driving capability activation - bit_offset: 22 - bit_size: 1 - - name: I2C4_FMP - description: I2C4_FMP - bit_offset: 23 - bit_size: 1 + - name: BOOSTEN + description: I/O analog switch voltage booster enable + bit_offset: 8 + bit_size: 1 + - name: ANASWVDD + description: GPIO analog switch control voltage selection + bit_offset: 9 + bit_size: 1 + - name: I2C_PB6_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB6 + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB7 + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB8 + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB9 + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 Fast-mode Plus driving capability activation + bit_offset: 20 + bit_size: 1 + - name: I2C2_FMP + description: I2C2 Fast-mode Plus driving capability activation + bit_offset: 21 + bit_size: 1 + - name: I2C3_FMP + description: I2C3 Fast-mode Plus driving capability activation + bit_offset: 22 + bit_size: 1 + - name: I2C4_FMP + description: I2C4_FMP + bit_offset: 23 + bit_size: 1 fieldset/CFGR2: description: CFGR2 fields: - - name: CLL - description: LOCKUP (hardfault) output enable bit - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM2 parity lock bit - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 - - name: SPF - description: SRAM2 parity error flag - bit_offset: 8 - bit_size: 1 + - name: CLL + description: LOCKUP (hardfault) output enable bit + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM2 parity lock bit + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 + - name: SPF + description: SRAM2 parity error flag + bit_offset: 8 + bit_size: 1 fieldset/CNSLCKR: description: SYSCFG CPU non-secure lock register fields: - - name: LOCKNSVTOR - description: VTOR_NS register lock - bit_offset: 0 - bit_size: 1 - - name: LOCKNSMPU - description: Non-secure MPU registers lock - bit_offset: 1 - bit_size: 1 + - name: LOCKNSVTOR + description: VTOR_NS register lock + bit_offset: 0 + bit_size: 1 + - name: LOCKNSMPU + description: Non-secure MPU registers lock + bit_offset: 1 + bit_size: 1 fieldset/CSLOCKR: description: SYSCFG CPU secure lock register fields: - - name: LOCKSVTAIRCR - description: LOCKSVTAIRCR - bit_offset: 0 - bit_size: 1 - - name: LOCKSMPU - description: LOCKSMPU - bit_offset: 1 - bit_size: 1 - - name: LOCKSAU - description: LOCKSAU - bit_offset: 2 - bit_size: 1 + - name: LOCKSVTAIRCR + description: LOCKSVTAIRCR + bit_offset: 0 + bit_size: 1 + - name: LOCKSMPU + description: LOCKSMPU + bit_offset: 1 + bit_size: 1 + - name: LOCKSAU + description: LOCKSAU + bit_offset: 2 + bit_size: 1 fieldset/FPUIMR: description: FPU interrupt mask register fields: - - name: FPU_IE - description: Floating point unit interrupts enable bits - bit_offset: 0 - bit_size: 6 + - name: FPU_IE + description: Floating point unit interrupts enable bits + bit_offset: 0 + bit_size: 6 fieldset/RSSCMDR: description: RSSCMDR fields: - - name: RSSCMD - description: RSS commands - bit_offset: 0 - bit_size: 8 + - name: RSSCMD + description: RSS commands + bit_offset: 0 + bit_size: 8 fieldset/SCSR: description: SCSR fields: - - name: SRAM2ER - description: SRAM2 Erase - bit_offset: 0 - bit_size: 1 - - name: SRAM2BSY - description: SRAM2 busy by erase operation - bit_offset: 1 - bit_size: 1 + - name: SRAM2ER + description: SRAM2 Erase + bit_offset: 0 + bit_size: 1 + - name: SRAM2BSY + description: SRAM2 busy by erase operation + bit_offset: 1 + bit_size: 1 fieldset/SECCFGR: description: SYSCFG secure configuration register fields: - - name: SYSCFGSEC - description: SYSCFG clock control security - bit_offset: 0 - bit_size: 1 - - name: CLASSBSEC - description: ClassB security - bit_offset: 1 - bit_size: 1 - - name: SRAM2SEC - description: SRAM2 security - bit_offset: 2 - bit_size: 1 - - name: FPUSEC - description: FPUSEC - bit_offset: 3 - bit_size: 1 + - name: SYSCFGSEC + description: SYSCFG clock control security + bit_offset: 0 + bit_size: 1 + - name: CLASSBSEC + description: ClassB security + bit_offset: 1 + bit_size: 1 + - name: SRAM2SEC + description: SRAM2 security + bit_offset: 2 + bit_size: 1 + - name: FPUSEC + description: FPUSEC + bit_offset: 3 + bit_size: 1 fieldset/SKR: description: SKR fields: - - name: KEY - description: SRAM2 write protection key for software erase - bit_offset: 0 - bit_size: 8 + - name: KEY + description: SRAM2 write protection key for software erase + bit_offset: 0 + bit_size: 8 fieldset/SWPR: description: SWPR fields: - - name: P0WP - description: P0WP - bit_offset: 0 - bit_size: 1 - - name: P1WP - description: P1WP - bit_offset: 1 - bit_size: 1 - - name: P2WP - description: P2WP - bit_offset: 2 - bit_size: 1 - - name: P3WP - description: P3WP - bit_offset: 3 - bit_size: 1 - - name: P4WP - description: P4WP - bit_offset: 4 - bit_size: 1 - - name: P5WP - description: P5WP - bit_offset: 5 - bit_size: 1 - - name: P6WP - description: P6WP - bit_offset: 6 - bit_size: 1 - - name: P7WP - description: P7WP - bit_offset: 7 - bit_size: 1 - - name: P8WP - description: P8WP - bit_offset: 8 - bit_size: 1 - - name: P9WP - description: P9WP - bit_offset: 9 - bit_size: 1 - - name: P10WP - description: P10WP - bit_offset: 10 - bit_size: 1 - - name: P11WP - description: P11WP - bit_offset: 11 - bit_size: 1 - - name: P12WP - description: P12WP - bit_offset: 12 - bit_size: 1 - - name: P13WP - description: P13WP - bit_offset: 13 - bit_size: 1 - - name: P14WP - description: P14WP - bit_offset: 14 - bit_size: 1 - - name: P15WP - description: P15WP - bit_offset: 15 - bit_size: 1 - - name: P16WP - description: P16WP - bit_offset: 16 - bit_size: 1 - - name: P17WP - description: P17WP - bit_offset: 17 - bit_size: 1 - - name: P18WP - description: P18WP - bit_offset: 18 - bit_size: 1 - - name: P19WP - description: P19WP - bit_offset: 19 - bit_size: 1 - - name: P20WP - description: P20WP - bit_offset: 20 - bit_size: 1 - - name: P21WP - description: P21WP - bit_offset: 21 - bit_size: 1 - - name: P22WP - description: P22WP - bit_offset: 22 - bit_size: 1 - - name: P23WP - description: P23WP - bit_offset: 23 - bit_size: 1 - - name: P24WP - description: P24WP - bit_offset: 24 - bit_size: 1 - - name: P25WP - description: P25WP - bit_offset: 25 - bit_size: 1 - - name: P26WP - description: P26WP - bit_offset: 26 - bit_size: 1 - - name: P27WP - description: P27WP - bit_offset: 27 - bit_size: 1 - - name: P28WP - description: P28WP - bit_offset: 28 - bit_size: 1 - - name: P29WP - description: P29WP - bit_offset: 29 - bit_size: 1 - - name: P30WP - description: P30WP - bit_offset: 30 - bit_size: 1 - - name: P31WP - description: SRAM2 page 31 write protection - bit_offset: 31 - bit_size: 1 + - name: P0WP + description: P0WP + bit_offset: 0 + bit_size: 1 + - name: P1WP + description: P1WP + bit_offset: 1 + bit_size: 1 + - name: P2WP + description: P2WP + bit_offset: 2 + bit_size: 1 + - name: P3WP + description: P3WP + bit_offset: 3 + bit_size: 1 + - name: P4WP + description: P4WP + bit_offset: 4 + bit_size: 1 + - name: P5WP + description: P5WP + bit_offset: 5 + bit_size: 1 + - name: P6WP + description: P6WP + bit_offset: 6 + bit_size: 1 + - name: P7WP + description: P7WP + bit_offset: 7 + bit_size: 1 + - name: P8WP + description: P8WP + bit_offset: 8 + bit_size: 1 + - name: P9WP + description: P9WP + bit_offset: 9 + bit_size: 1 + - name: P10WP + description: P10WP + bit_offset: 10 + bit_size: 1 + - name: P11WP + description: P11WP + bit_offset: 11 + bit_size: 1 + - name: P12WP + description: P12WP + bit_offset: 12 + bit_size: 1 + - name: P13WP + description: P13WP + bit_offset: 13 + bit_size: 1 + - name: P14WP + description: P14WP + bit_offset: 14 + bit_size: 1 + - name: P15WP + description: P15WP + bit_offset: 15 + bit_size: 1 + - name: P16WP + description: P16WP + bit_offset: 16 + bit_size: 1 + - name: P17WP + description: P17WP + bit_offset: 17 + bit_size: 1 + - name: P18WP + description: P18WP + bit_offset: 18 + bit_size: 1 + - name: P19WP + description: P19WP + bit_offset: 19 + bit_size: 1 + - name: P20WP + description: P20WP + bit_offset: 20 + bit_size: 1 + - name: P21WP + description: P21WP + bit_offset: 21 + bit_size: 1 + - name: P22WP + description: P22WP + bit_offset: 22 + bit_size: 1 + - name: P23WP + description: P23WP + bit_offset: 23 + bit_size: 1 + - name: P24WP + description: P24WP + bit_offset: 24 + bit_size: 1 + - name: P25WP + description: P25WP + bit_offset: 25 + bit_size: 1 + - name: P26WP + description: P26WP + bit_offset: 26 + bit_size: 1 + - name: P27WP + description: P27WP + bit_offset: 27 + bit_size: 1 + - name: P28WP + description: P28WP + bit_offset: 28 + bit_size: 1 + - name: P29WP + description: P29WP + bit_offset: 29 + bit_size: 1 + - name: P30WP + description: P30WP + bit_offset: 30 + bit_size: 1 + - name: P31WP + description: SRAM2 page 31 write protection + bit_offset: 31 + bit_size: 1 fieldset/SWPR2: description: SWPR2 fields: - - name: P32WP - description: P32WP - bit_offset: 0 - bit_size: 1 - - name: P33WP - description: P33WP - bit_offset: 1 - bit_size: 1 - - name: P34WP - description: P34WP - bit_offset: 2 - bit_size: 1 - - name: P35WP - description: P35WP - bit_offset: 3 - bit_size: 1 - - name: P36WP - description: P36WP - bit_offset: 4 - bit_size: 1 - - name: P37WP - description: P37WP - bit_offset: 5 - bit_size: 1 - - name: P38WP - description: P38WP - bit_offset: 6 - bit_size: 1 - - name: P39WP - description: P39WP - bit_offset: 7 - bit_size: 1 - - name: P40WP - description: P40WP - bit_offset: 8 - bit_size: 1 - - name: P41WP - description: P41WP - bit_offset: 9 - bit_size: 1 - - name: P42WP - description: P42WP - bit_offset: 10 - bit_size: 1 - - name: P43WP - description: P43WP - bit_offset: 11 - bit_size: 1 - - name: P44WP - description: P44WP - bit_offset: 12 - bit_size: 1 - - name: P45WP - description: P45WP - bit_offset: 13 - bit_size: 1 - - name: P46WP - description: P46WP - bit_offset: 14 - bit_size: 1 - - name: P47WP - description: P47WP - bit_offset: 15 - bit_size: 1 - - name: P48WP - description: P48WP - bit_offset: 16 - bit_size: 1 - - name: P49WP - description: P49WP - bit_offset: 17 - bit_size: 1 - - name: P50WP - description: P50WP - bit_offset: 18 - bit_size: 1 - - name: P51WP - description: P51WP - bit_offset: 19 - bit_size: 1 - - name: P52WP - description: P52WP - bit_offset: 20 - bit_size: 1 - - name: P53WP - description: P53WP - bit_offset: 21 - bit_size: 1 - - name: P54WP - description: P54WP - bit_offset: 22 - bit_size: 1 - - name: P55WP - description: P55WP - bit_offset: 23 - bit_size: 1 - - name: P56WP - description: P56WP - bit_offset: 24 - bit_size: 1 - - name: P57WP - description: P57WP - bit_offset: 25 - bit_size: 1 - - name: P58WP - description: P58WP - bit_offset: 26 - bit_size: 1 - - name: P59WP - description: P59WP - bit_offset: 27 - bit_size: 1 - - name: P60WP - description: P60WP - bit_offset: 28 - bit_size: 1 - - name: P61WP - description: P61WP - bit_offset: 29 - bit_size: 1 - - name: P62WP - description: P62WP - bit_offset: 30 - bit_size: 1 - - name: P63WP - description: P63WP - bit_offset: 31 - bit_size: 1 + - name: P32WP + description: P32WP + bit_offset: 0 + bit_size: 1 + - name: P33WP + description: P33WP + bit_offset: 1 + bit_size: 1 + - name: P34WP + description: P34WP + bit_offset: 2 + bit_size: 1 + - name: P35WP + description: P35WP + bit_offset: 3 + bit_size: 1 + - name: P36WP + description: P36WP + bit_offset: 4 + bit_size: 1 + - name: P37WP + description: P37WP + bit_offset: 5 + bit_size: 1 + - name: P38WP + description: P38WP + bit_offset: 6 + bit_size: 1 + - name: P39WP + description: P39WP + bit_offset: 7 + bit_size: 1 + - name: P40WP + description: P40WP + bit_offset: 8 + bit_size: 1 + - name: P41WP + description: P41WP + bit_offset: 9 + bit_size: 1 + - name: P42WP + description: P42WP + bit_offset: 10 + bit_size: 1 + - name: P43WP + description: P43WP + bit_offset: 11 + bit_size: 1 + - name: P44WP + description: P44WP + bit_offset: 12 + bit_size: 1 + - name: P45WP + description: P45WP + bit_offset: 13 + bit_size: 1 + - name: P46WP + description: P46WP + bit_offset: 14 + bit_size: 1 + - name: P47WP + description: P47WP + bit_offset: 15 + bit_size: 1 + - name: P48WP + description: P48WP + bit_offset: 16 + bit_size: 1 + - name: P49WP + description: P49WP + bit_offset: 17 + bit_size: 1 + - name: P50WP + description: P50WP + bit_offset: 18 + bit_size: 1 + - name: P51WP + description: P51WP + bit_offset: 19 + bit_size: 1 + - name: P52WP + description: P52WP + bit_offset: 20 + bit_size: 1 + - name: P53WP + description: P53WP + bit_offset: 21 + bit_size: 1 + - name: P54WP + description: P54WP + bit_offset: 22 + bit_size: 1 + - name: P55WP + description: P55WP + bit_offset: 23 + bit_size: 1 + - name: P56WP + description: P56WP + bit_offset: 24 + bit_size: 1 + - name: P57WP + description: P57WP + bit_offset: 25 + bit_size: 1 + - name: P58WP + description: P58WP + bit_offset: 26 + bit_size: 1 + - name: P59WP + description: P59WP + bit_offset: 27 + bit_size: 1 + - name: P60WP + description: P60WP + bit_offset: 28 + bit_size: 1 + - name: P61WP + description: P61WP + bit_offset: 29 + bit_size: 1 + - name: P62WP + description: P62WP + bit_offset: 30 + bit_size: 1 + - name: P63WP + description: P63WP + bit_offset: 31 + bit_size: 1 diff --git a/data/registers/syscfg_u5.yaml b/data/registers/syscfg_u5.yaml index a3402e9..c5cdf3e 100644 --- a/data/registers/syscfg_u5.yaml +++ b/data/registers/syscfg_u5.yaml @@ -1,241 +1,240 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: SECCFGR - description: "SYSCFG secure configuration\r register" - byte_offset: 0 - fieldset: SECCFGR - - name: CFGR1 - description: configuration register 1 - byte_offset: 4 - fieldset: CFGR1 - - name: FPUIMR - description: FPU interrupt mask register - byte_offset: 8 - fieldset: FPUIMR - - name: CNSLCKR - description: "SYSCFG CPU non-secure lock\r register" - byte_offset: 12 - fieldset: CNSLCKR - - name: CSLOCKR - description: "SYSCFG CPU secure lock\r register" - byte_offset: 16 - fieldset: CSLOCKR - - name: CFGR2 - description: configuration register 2 - byte_offset: 20 - fieldset: CFGR2 - - name: MESR - description: memory erase status register - byte_offset: 24 - fieldset: MESR - - name: CCCSR - description: compensation cell control/status register - byte_offset: 28 - fieldset: CCCSR - - name: CCVR - description: compensation cell value register - byte_offset: 32 - access: Read - fieldset: CCVR - - name: CCCR - description: compensation cell code register - byte_offset: 36 - fieldset: CCCR - - name: RSSCMDR - description: RSS command register - byte_offset: 44 - fieldset: RSSCMDR - - name: UCPDR - description: USB Type C and Power Delivery register - byte_offset: 112 - fieldset: UCPDR + - name: SECCFGR + description: "SYSCFG secure configuration\r register" + byte_offset: 0 + fieldset: SECCFGR + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: FPUIMR + description: FPU interrupt mask register + byte_offset: 8 + fieldset: FPUIMR + - name: CNSLCKR + description: "SYSCFG CPU non-secure lock\r register" + byte_offset: 12 + fieldset: CNSLCKR + - name: CSLOCKR + description: "SYSCFG CPU secure lock\r register" + byte_offset: 16 + fieldset: CSLOCKR + - name: CFGR2 + description: configuration register 2 + byte_offset: 20 + fieldset: CFGR2 + - name: MESR + description: memory erase status register + byte_offset: 24 + fieldset: MESR + - name: CCCSR + description: compensation cell control/status register + byte_offset: 28 + fieldset: CCCSR + - name: CCVR + description: compensation cell value register + byte_offset: 32 + access: Read + fieldset: CCVR + - name: CCCR + description: compensation cell code register + byte_offset: 36 + fieldset: CCCR + - name: RSSCMDR + description: RSS command register + byte_offset: 44 + fieldset: RSSCMDR + - name: UCPDR + description: USB Type C and Power Delivery register + byte_offset: 112 + fieldset: UCPDR fieldset/CCCR: description: compensation cell code register fields: - - name: NCC1 - description: NCC1 - bit_offset: 0 - bit_size: 4 - - name: PCC1 - description: PCC1 - bit_offset: 4 - bit_size: 4 - - name: NCC2 - description: NCC2 - bit_offset: 8 - bit_size: 4 - - name: PCC2 - description: PCC2 - bit_offset: 12 - bit_size: 4 + - name: NCC1 + description: NCC1 + bit_offset: 0 + bit_size: 4 + - name: PCC1 + description: PCC1 + bit_offset: 4 + bit_size: 4 + - name: NCC2 + description: NCC2 + bit_offset: 8 + bit_size: 4 + - name: PCC2 + description: PCC2 + bit_offset: 12 + bit_size: 4 fieldset/CCCSR: description: compensation cell control/status register fields: - - name: EN1 - description: EN1 - bit_offset: 0 - bit_size: 1 - - name: CS1 - description: CS1 - bit_offset: 1 - bit_size: 1 - - name: EN2 - description: EN2 - bit_offset: 2 - bit_size: 1 - - name: CS2 - description: CS2 - bit_offset: 3 - bit_size: 1 - - name: RDY1 - description: RDY1 - bit_offset: 8 - bit_size: 1 - - name: RDY2 - description: RDY2 - bit_offset: 9 - bit_size: 1 + - name: EN1 + description: EN1 + bit_offset: 0 + bit_size: 1 + - name: CS1 + description: CS1 + bit_offset: 1 + bit_size: 1 + - name: EN2 + description: EN2 + bit_offset: 2 + bit_size: 1 + - name: CS2 + description: CS2 + bit_offset: 3 + bit_size: 1 + - name: RDY1 + description: RDY1 + bit_offset: 8 + bit_size: 1 + - name: RDY2 + description: RDY2 + bit_offset: 9 + bit_size: 1 fieldset/CCVR: description: compensation cell value register fields: - - name: NCV1 - description: NCV1 - bit_offset: 0 - bit_size: 4 - - name: PCV1 - description: PCV1 - bit_offset: 4 - bit_size: 4 - - name: NCV2 - description: NCV2 - bit_offset: 8 - bit_size: 4 - - name: PCV2 - description: PCV2 - bit_offset: 12 - bit_size: 4 + - name: NCV1 + description: NCV1 + bit_offset: 0 + bit_size: 4 + - name: PCV1 + description: PCV1 + bit_offset: 4 + bit_size: 4 + - name: NCV2 + description: NCV2 + bit_offset: 8 + bit_size: 4 + - name: PCV2 + description: PCV2 + bit_offset: 12 + bit_size: 4 fieldset/CFGR1: description: configuration register 1 fields: - - name: BOOSTEN - description: "I/O analog switch voltage booster\r enable" - bit_offset: 8 - bit_size: 1 - - name: ANASWVDD - description: "GPIO analog switch control voltage\r selection" - bit_offset: 9 - bit_size: 1 - - name: PB6_FMP - description: PB6_FMP - bit_offset: 16 - bit_size: 1 - - name: PB7_FMP - description: PB7_FMP - bit_offset: 17 - bit_size: 1 - - name: PB8_FMP - description: PB8_FMP - bit_offset: 18 - bit_size: 1 - - name: PB9_FMP - description: PB9_FMP - bit_offset: 19 - bit_size: 1 + - name: BOOSTEN + description: "I/O analog switch voltage booster\r enable" + bit_offset: 8 + bit_size: 1 + - name: ANASWVDD + description: "GPIO analog switch control voltage\r selection" + bit_offset: 9 + bit_size: 1 + - name: PB6_FMP + description: PB6_FMP + bit_offset: 16 + bit_size: 1 + - name: PB7_FMP + description: PB7_FMP + bit_offset: 17 + bit_size: 1 + - name: PB8_FMP + description: PB8_FMP + bit_offset: 18 + bit_size: 1 + - name: PB9_FMP + description: PB9_FMP + bit_offset: 19 + bit_size: 1 fieldset/CFGR2: description: configuration register 2 fields: - - name: CLL - description: "LOCKUP (hardfault) output enable\r bit" - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM ECC lock bit - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 + - name: CLL + description: "LOCKUP (hardfault) output enable\r bit" + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM ECC lock bit + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 fieldset/CNSLCKR: description: "SYSCFG CPU non-secure lock\r register" fields: - - name: LOCKNSVTOR - description: VTOR_NS register lock - bit_offset: 0 - bit_size: 1 - - name: LOCKNSMPU - description: "Non-secure MPU registers\r lock" - bit_offset: 1 - bit_size: 1 + - name: LOCKNSVTOR + description: VTOR_NS register lock + bit_offset: 0 + bit_size: 1 + - name: LOCKNSMPU + description: "Non-secure MPU registers\r lock" + bit_offset: 1 + bit_size: 1 fieldset/CSLOCKR: description: "SYSCFG CPU secure lock\r register" fields: - - name: LOCKSVTAIRCR - description: LOCKSVTAIRCR - bit_offset: 0 - bit_size: 1 - - name: LOCKSMPU - description: LOCKSMPU - bit_offset: 1 - bit_size: 1 - - name: LOCKSAU - description: LOCKSAU - bit_offset: 2 - bit_size: 1 + - name: LOCKSVTAIRCR + description: LOCKSVTAIRCR + bit_offset: 0 + bit_size: 1 + - name: LOCKSMPU + description: LOCKSMPU + bit_offset: 1 + bit_size: 1 + - name: LOCKSAU + description: LOCKSAU + bit_offset: 2 + bit_size: 1 fieldset/FPUIMR: description: FPU interrupt mask register fields: - - name: FPU_IE - description: "Floating point unit interrupts enable\r bits" - bit_offset: 0 - bit_size: 6 + - name: FPU_IE + description: "Floating point unit interrupts enable\r bits" + bit_offset: 0 + bit_size: 6 fieldset/MESR: description: memory erase status register fields: - - name: MCLR - description: MCLR - bit_offset: 0 - bit_size: 1 - - name: IPMEE - description: IPMEE - bit_offset: 16 - bit_size: 1 + - name: MCLR + description: MCLR + bit_offset: 0 + bit_size: 1 + - name: IPMEE + description: IPMEE + bit_offset: 16 + bit_size: 1 fieldset/RSSCMDR: description: RSS command register fields: - - name: RSSCMD - description: RSS commands - bit_offset: 0 - bit_size: 16 + - name: RSSCMD + description: RSS commands + bit_offset: 0 + bit_size: 16 fieldset/SECCFGR: description: "SYSCFG secure configuration\r register" fields: - - name: SYSCFGSEC - description: "SYSCFG clock control\r security" - bit_offset: 0 - bit_size: 1 - - name: CLASSBSEC - description: CLASSBSEC - bit_offset: 1 - bit_size: 1 - - name: FPUSEC - description: FPUSEC - bit_offset: 3 - bit_size: 1 + - name: SYSCFGSEC + description: "SYSCFG clock control\r security" + bit_offset: 0 + bit_size: 1 + - name: CLASSBSEC + description: CLASSBSEC + bit_offset: 1 + bit_size: 1 + - name: FPUSEC + description: FPUSEC + bit_offset: 3 + bit_size: 1 fieldset/UCPDR: description: USB Type C and Power Delivery register fields: - - name: CC1ENRXFILTER - description: CC1ENRXFILTER - bit_offset: 0 - bit_size: 1 - - name: CC2ENRXFILTER - description: CC2ENRXFILTER - bit_offset: 1 - bit_size: 1 + - name: CC1ENRXFILTER + description: CC1ENRXFILTER + bit_offset: 0 + bit_size: 1 + - name: CC2ENRXFILTER + description: CC2ENRXFILTER + bit_offset: 1 + bit_size: 1 diff --git a/data/registers/syscfg_wb.yaml b/data/registers/syscfg_wb.yaml index 788fa92..bf05209 100644 --- a/data/registers/syscfg_wb.yaml +++ b/data/registers/syscfg_wb.yaml @@ -1,397 +1,396 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: CFGR1 - description: configuration register 1 - byte_offset: 4 - fieldset: CFGR1 - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: SCSR - description: SCSR - byte_offset: 24 - fieldset: SCSR - - name: CFGR2 - description: CFGR2 - byte_offset: 28 - fieldset: CFGR2 - - name: SWPR - description: SRAM2 write protection register - byte_offset: 32 - access: Write - fieldset: SWPR - - name: SKR - description: SKR - byte_offset: 36 - access: Write - fieldset: SKR - - name: SWPR2 - description: SRAM2 write protection register 2 - byte_offset: 40 - access: Write - fieldset: SWPR2 - - name: IMR1 - description: CPU1 interrupt mask register 1 - byte_offset: 256 - fieldset: IMR1 - - name: IMR2 - description: CPU1 interrupt mask register 2 - byte_offset: 260 - fieldset: IMR2 - - name: C2IMR1 - description: CPU2 interrupt mask register 1 - byte_offset: 264 - fieldset: C2IMR1 - - name: C2IMR2 - description: CPU2 interrupt mask register 1 - byte_offset: 268 - fieldset: C2IMR2 - - name: SIPCR - description: secure IP control register - byte_offset: 272 - fieldset: SIPCR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: SCSR + description: SCSR + byte_offset: 24 + fieldset: SCSR + - name: CFGR2 + description: CFGR2 + byte_offset: 28 + fieldset: CFGR2 + - name: SWPR + description: SRAM2 write protection register + byte_offset: 32 + access: Write + fieldset: SWPR + - name: SKR + description: SKR + byte_offset: 36 + access: Write + fieldset: SKR + - name: SWPR2 + description: SRAM2 write protection register 2 + byte_offset: 40 + access: Write + fieldset: SWPR2 + - name: IMR1 + description: CPU1 interrupt mask register 1 + byte_offset: 256 + fieldset: IMR1 + - name: IMR2 + description: CPU1 interrupt mask register 2 + byte_offset: 260 + fieldset: IMR2 + - name: C2IMR1 + description: CPU2 interrupt mask register 1 + byte_offset: 264 + fieldset: C2IMR1 + - name: C2IMR2 + description: CPU2 interrupt mask register 1 + byte_offset: 268 + fieldset: C2IMR2 + - name: SIPCR + description: secure IP control register + byte_offset: 272 + fieldset: SIPCR fieldset/C2IMR1: description: CPU2 interrupt mask register 1 fields: - - name: RTCSTAMP - description: Peripheral RTCSTAMP interrupt mask to CPU2 - bit_offset: 0 - bit_size: 1 - - name: RTCWKUP - description: Peripheral RTCWKUP interrupt mask to CPU2 - bit_offset: 3 - bit_size: 1 - - name: RTCALARM - description: Peripheral RTCALARM interrupt mask to CPU2 - bit_offset: 4 - bit_size: 1 - - name: RCC - description: Peripheral RCC interrupt mask to CPU2 - bit_offset: 5 - bit_size: 1 - - name: FLASH - description: Peripheral FLASH interrupt mask to CPU2 - bit_offset: 6 - bit_size: 1 - - name: PKA - description: Peripheral PKA interrupt mask to CPU2 - bit_offset: 8 - bit_size: 1 - - name: RNG - description: Peripheral RNG interrupt mask to CPU2 - bit_offset: 9 - bit_size: 1 - - name: AES1 - description: Peripheral AES1 interrupt mask to CPU2 - bit_offset: 10 - bit_size: 1 - - name: COMP - description: Peripheral COMP interrupt mask to CPU2 - bit_offset: 11 - bit_size: 1 - - name: ADC - description: Peripheral ADC interrupt mask to CPU2 - bit_offset: 12 - bit_size: 1 + - name: RTCSTAMP + description: Peripheral RTCSTAMP interrupt mask to CPU2 + bit_offset: 0 + bit_size: 1 + - name: RTCWKUP + description: Peripheral RTCWKUP interrupt mask to CPU2 + bit_offset: 3 + bit_size: 1 + - name: RTCALARM + description: Peripheral RTCALARM interrupt mask to CPU2 + bit_offset: 4 + bit_size: 1 + - name: RCC + description: Peripheral RCC interrupt mask to CPU2 + bit_offset: 5 + bit_size: 1 + - name: FLASH + description: Peripheral FLASH interrupt mask to CPU2 + bit_offset: 6 + bit_size: 1 + - name: PKA + description: Peripheral PKA interrupt mask to CPU2 + bit_offset: 8 + bit_size: 1 + - name: RNG + description: Peripheral RNG interrupt mask to CPU2 + bit_offset: 9 + bit_size: 1 + - name: AES1 + description: Peripheral AES1 interrupt mask to CPU2 + bit_offset: 10 + bit_size: 1 + - name: COMP + description: Peripheral COMP interrupt mask to CPU2 + bit_offset: 11 + bit_size: 1 + - name: ADC + description: Peripheral ADC interrupt mask to CPU2 + bit_offset: 12 + bit_size: 1 fieldset/C2IMR2: description: CPU2 interrupt mask register 1 fields: - - name: DMA1_CH1_IM - description: Peripheral DMA1 CH1 interrupt mask to CPU2 - bit_offset: 0 - bit_size: 1 - - name: DMA1_CH2_IM - description: Peripheral DMA1 CH2 interrupt mask to CPU2 - bit_offset: 1 - bit_size: 1 - - name: DMA1_CH3_IM - description: Peripheral DMA1 CH3 interrupt mask to CPU2 - bit_offset: 2 - bit_size: 1 - - name: DMA1_CH4_IM - description: Peripheral DMA1 CH4 interrupt mask to CPU2 - bit_offset: 3 - bit_size: 1 - - name: DMA1_CH5_IM - description: Peripheral DMA1 CH5 interrupt mask to CPU2 - bit_offset: 4 - bit_size: 1 - - name: DMA1_CH6_IM - description: Peripheral DMA1 CH6 interrupt mask to CPU2 - bit_offset: 5 - bit_size: 1 - - name: DMA1_CH7_IM - description: Peripheral DMA1 CH7 interrupt mask to CPU2 - bit_offset: 6 - bit_size: 1 - - name: DMA2_CH1_IM - description: Peripheral DMA2 CH1 interrupt mask to CPU1 - bit_offset: 8 - bit_size: 1 - - name: DMA2_CH2_IM - description: Peripheral DMA2 CH2 interrupt mask to CPU1 - bit_offset: 9 - bit_size: 1 - - name: DMA2_CH3_IM - description: Peripheral DMA2 CH3 interrupt mask to CPU1 - bit_offset: 10 - bit_size: 1 - - name: DMA2_CH4_IM - description: Peripheral DMA2 CH4 interrupt mask to CPU1 - bit_offset: 11 - bit_size: 1 - - name: DMA2_CH5_IM - description: Peripheral DMA2 CH5 interrupt mask to CPU1 - bit_offset: 12 - bit_size: 1 - - name: DMA2_CH6_IM - description: Peripheral DMA2 CH6 interrupt mask to CPU1 - bit_offset: 13 - bit_size: 1 - - name: DMA2_CH7_IM - description: Peripheral DMA2 CH7 interrupt mask to CPU1 - bit_offset: 14 - bit_size: 1 - - name: DMAM_UX1_IM - description: Peripheral DMAM UX1 interrupt mask to CPU1 - bit_offset: 15 - bit_size: 1 - - name: PVM1IM - description: Peripheral PVM1IM interrupt mask to CPU1 - bit_offset: 16 - bit_size: 1 - - name: PVM3IM - description: Peripheral PVM3IM interrupt mask to CPU1 - bit_offset: 18 - bit_size: 1 - - name: PVDIM - description: Peripheral PVDIM interrupt mask to CPU1 - bit_offset: 20 - bit_size: 1 - - name: TSCIM - description: Peripheral TSCIM interrupt mask to CPU1 - bit_offset: 21 - bit_size: 1 - - name: LCDIM - description: Peripheral LCDIM interrupt mask to CPU1 - bit_offset: 22 - bit_size: 1 + - name: DMA1_CH1_IM + description: Peripheral DMA1 CH1 interrupt mask to CPU2 + bit_offset: 0 + bit_size: 1 + - name: DMA1_CH2_IM + description: Peripheral DMA1 CH2 interrupt mask to CPU2 + bit_offset: 1 + bit_size: 1 + - name: DMA1_CH3_IM + description: Peripheral DMA1 CH3 interrupt mask to CPU2 + bit_offset: 2 + bit_size: 1 + - name: DMA1_CH4_IM + description: Peripheral DMA1 CH4 interrupt mask to CPU2 + bit_offset: 3 + bit_size: 1 + - name: DMA1_CH5_IM + description: Peripheral DMA1 CH5 interrupt mask to CPU2 + bit_offset: 4 + bit_size: 1 + - name: DMA1_CH6_IM + description: Peripheral DMA1 CH6 interrupt mask to CPU2 + bit_offset: 5 + bit_size: 1 + - name: DMA1_CH7_IM + description: Peripheral DMA1 CH7 interrupt mask to CPU2 + bit_offset: 6 + bit_size: 1 + - name: DMA2_CH1_IM + description: Peripheral DMA2 CH1 interrupt mask to CPU1 + bit_offset: 8 + bit_size: 1 + - name: DMA2_CH2_IM + description: Peripheral DMA2 CH2 interrupt mask to CPU1 + bit_offset: 9 + bit_size: 1 + - name: DMA2_CH3_IM + description: Peripheral DMA2 CH3 interrupt mask to CPU1 + bit_offset: 10 + bit_size: 1 + - name: DMA2_CH4_IM + description: Peripheral DMA2 CH4 interrupt mask to CPU1 + bit_offset: 11 + bit_size: 1 + - name: DMA2_CH5_IM + description: Peripheral DMA2 CH5 interrupt mask to CPU1 + bit_offset: 12 + bit_size: 1 + - name: DMA2_CH6_IM + description: Peripheral DMA2 CH6 interrupt mask to CPU1 + bit_offset: 13 + bit_size: 1 + - name: DMA2_CH7_IM + description: Peripheral DMA2 CH7 interrupt mask to CPU1 + bit_offset: 14 + bit_size: 1 + - name: DMAM_UX1_IM + description: Peripheral DMAM UX1 interrupt mask to CPU1 + bit_offset: 15 + bit_size: 1 + - name: PVM1IM + description: Peripheral PVM1IM interrupt mask to CPU1 + bit_offset: 16 + bit_size: 1 + - name: PVM3IM + description: Peripheral PVM3IM interrupt mask to CPU1 + bit_offset: 18 + bit_size: 1 + - name: PVDIM + description: Peripheral PVDIM interrupt mask to CPU1 + bit_offset: 20 + bit_size: 1 + - name: TSCIM + description: Peripheral TSCIM interrupt mask to CPU1 + bit_offset: 21 + bit_size: 1 + - name: LCDIM + description: Peripheral LCDIM interrupt mask to CPU1 + bit_offset: 22 + bit_size: 1 fieldset/CFGR1: description: configuration register 1 fields: - - name: BOOSTEN - description: I/O analog switch voltage booster enable - bit_offset: 8 - bit_size: 1 - - name: I2C_PB6_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB6 - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB7 - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB8 - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB9 - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 Fast-mode Plus driving capability activation - bit_offset: 20 - bit_size: 1 - - name: I2C3_FMP - description: I2C3 Fast-mode Plus driving capability activation - bit_offset: 22 - bit_size: 1 - - name: FPU_IE - description: Floating Point Unit interrupts enable bits - bit_offset: 26 - bit_size: 6 + - name: BOOSTEN + description: I/O analog switch voltage booster enable + bit_offset: 8 + bit_size: 1 + - name: I2C_PB6_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB6 + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB7 + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB8 + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB9 + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 Fast-mode Plus driving capability activation + bit_offset: 20 + bit_size: 1 + - name: I2C3_FMP + description: I2C3 Fast-mode Plus driving capability activation + bit_offset: 22 + bit_size: 1 + - name: FPU_IE + description: Floating Point Unit interrupts enable bits + bit_offset: 26 + bit_size: 6 fieldset/CFGR2: description: CFGR2 fields: - - name: CLL - description: Cortex-M4 LOCKUP (Hardfault) output enable bit - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM2 parity lock bit - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 - - name: SPF - description: SRAM2 parity error flag - bit_offset: 8 - bit_size: 1 + - name: CLL + description: Cortex-M4 LOCKUP (Hardfault) output enable bit + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM2 parity lock bit + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 + - name: SPF + description: SRAM2 parity error flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 1 fields: - - name: EXTI - description: EXTI 0 configuration bits - bit_offset: 0 - bit_size: 3 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI 0 configuration bits + bit_offset: 0 + bit_size: 3 + array: + len: 4 + stride: 4 fieldset/IMR1: description: CPU1 interrupt mask register 1 fields: - - name: TIM1IM - description: Peripheral TIM1 interrupt mask to CPU1 - bit_offset: 13 - bit_size: 1 - - name: TIM16IM - description: Peripheral TIM16 interrupt mask to CPU1 - bit_offset: 14 - bit_size: 1 - - name: TIM17IM - description: Peripheral TIM17 interrupt mask to CPU1 - bit_offset: 15 - bit_size: 1 - - name: EXIT5IM - description: Peripheral EXIT5 interrupt mask to CPU1 - bit_offset: 21 - bit_size: 1 - - name: EXIT6IM - description: Peripheral EXIT6 interrupt mask to CPU1 - bit_offset: 22 - bit_size: 1 - - name: EXIT7IM - description: Peripheral EXIT7 interrupt mask to CPU1 - bit_offset: 23 - bit_size: 1 - - name: EXIT8IM - description: Peripheral EXIT8 interrupt mask to CPU1 - bit_offset: 24 - bit_size: 1 - - name: EXIT9IM - description: Peripheral EXIT9 interrupt mask to CPU1 - bit_offset: 25 - bit_size: 1 - - name: EXIT10IM - description: Peripheral EXIT10 interrupt mask to CPU1 - bit_offset: 26 - bit_size: 1 - - name: EXIT11IM - description: Peripheral EXIT11 interrupt mask to CPU1 - bit_offset: 27 - bit_size: 1 - - name: EXIT12IM - description: Peripheral EXIT12 interrupt mask to CPU1 - bit_offset: 28 - bit_size: 1 - - name: EXIT13IM - description: Peripheral EXIT13 interrupt mask to CPU1 - bit_offset: 29 - bit_size: 1 - - name: EXIT14IM - description: Peripheral EXIT14 interrupt mask to CPU1 - bit_offset: 30 - bit_size: 1 - - name: EXIT15IM - description: Peripheral EXIT15 interrupt mask to CPU1 - bit_offset: 31 - bit_size: 1 + - name: TIM1IM + description: Peripheral TIM1 interrupt mask to CPU1 + bit_offset: 13 + bit_size: 1 + - name: TIM16IM + description: Peripheral TIM16 interrupt mask to CPU1 + bit_offset: 14 + bit_size: 1 + - name: TIM17IM + description: Peripheral TIM17 interrupt mask to CPU1 + bit_offset: 15 + bit_size: 1 + - name: EXIT5IM + description: Peripheral EXIT5 interrupt mask to CPU1 + bit_offset: 21 + bit_size: 1 + - name: EXIT6IM + description: Peripheral EXIT6 interrupt mask to CPU1 + bit_offset: 22 + bit_size: 1 + - name: EXIT7IM + description: Peripheral EXIT7 interrupt mask to CPU1 + bit_offset: 23 + bit_size: 1 + - name: EXIT8IM + description: Peripheral EXIT8 interrupt mask to CPU1 + bit_offset: 24 + bit_size: 1 + - name: EXIT9IM + description: Peripheral EXIT9 interrupt mask to CPU1 + bit_offset: 25 + bit_size: 1 + - name: EXIT10IM + description: Peripheral EXIT10 interrupt mask to CPU1 + bit_offset: 26 + bit_size: 1 + - name: EXIT11IM + description: Peripheral EXIT11 interrupt mask to CPU1 + bit_offset: 27 + bit_size: 1 + - name: EXIT12IM + description: Peripheral EXIT12 interrupt mask to CPU1 + bit_offset: 28 + bit_size: 1 + - name: EXIT13IM + description: Peripheral EXIT13 interrupt mask to CPU1 + bit_offset: 29 + bit_size: 1 + - name: EXIT14IM + description: Peripheral EXIT14 interrupt mask to CPU1 + bit_offset: 30 + bit_size: 1 + - name: EXIT15IM + description: Peripheral EXIT15 interrupt mask to CPU1 + bit_offset: 31 + bit_size: 1 fieldset/IMR2: description: CPU1 interrupt mask register 2 fields: - - name: PVM1IM - description: Peripheral PVM1 interrupt mask to CPU1 - bit_offset: 16 - bit_size: 1 - - name: PVM3IM - description: Peripheral PVM3 interrupt mask to CPU1 - bit_offset: 18 - bit_size: 1 - - name: PVDIM - description: Peripheral PVD interrupt mask to CPU1 - bit_offset: 20 - bit_size: 1 + - name: PVM1IM + description: Peripheral PVM1 interrupt mask to CPU1 + bit_offset: 16 + bit_size: 1 + - name: PVM3IM + description: Peripheral PVM3 interrupt mask to CPU1 + bit_offset: 18 + bit_size: 1 + - name: PVDIM + description: Peripheral PVD interrupt mask to CPU1 + bit_offset: 20 + bit_size: 1 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 3 + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 3 fieldset/SCSR: description: SCSR fields: - - name: SRAM2ER - description: SRAM2 Erase - bit_offset: 0 - bit_size: 1 - - name: SRAM2BSY - description: SRAM2 busy by erase operation - bit_offset: 1 - bit_size: 1 - - name: C2RFD - description: CPU2 SRAM fetch (execution) disable. - bit_offset: 31 - bit_size: 1 + - name: SRAM2ER + description: SRAM2 Erase + bit_offset: 0 + bit_size: 1 + - name: SRAM2BSY + description: SRAM2 busy by erase operation + bit_offset: 1 + bit_size: 1 + - name: C2RFD + description: CPU2 SRAM fetch (execution) disable. + bit_offset: 31 + bit_size: 1 fieldset/SIPCR: description: secure IP control register fields: - - name: SAES - description: "Enable AES1 KEY[7:0] security." - bit_offset: 0 - bit_size: 1 - array: - len: 2 - stride: 1 - - name: SPKA - description: Enable PKA security - bit_offset: 2 - bit_size: 1 - - name: SRNG - description: Enable True RNG security - bit_offset: 3 - bit_size: 1 + - name: SAES + description: Enable AES1 KEY[7:0] security. + bit_offset: 0 + bit_size: 1 + array: + len: 2 + stride: 1 + - name: SPKA + description: Enable PKA security + bit_offset: 2 + bit_size: 1 + - name: SRNG + description: Enable True RNG security + bit_offset: 3 + bit_size: 1 fieldset/SKR: description: SKR fields: - - name: KEY - description: SRAM2 write protection key for software erase - bit_offset: 0 - bit_size: 8 + - name: KEY + description: SRAM2 write protection key for software erase + bit_offset: 0 + bit_size: 8 fieldset/SWPR: description: SRAM2 write protection register fields: - - name: PWP - description: P0WP - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PWP + description: P0WP + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 fieldset/SWPR2: description: SRAM2 write protection register 2 fields: - - name: PWP - description: P32WP - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PWP + description: P32WP + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/syscfg_wl5.yaml b/data/registers/syscfg_wl5.yaml index a104742..0b19615 100644 --- a/data/registers/syscfg_wl5.yaml +++ b/data/registers/syscfg_wl5.yaml @@ -1,418 +1,417 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: CFGR1 - description: configuration register 1 - byte_offset: 4 - fieldset: CFGR1 - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: SCSR - description: SCSR - byte_offset: 24 - fieldset: SCSR - - name: CFGR2 - description: CFGR2 - byte_offset: 28 - fieldset: CFGR2 - - name: SWPR - description: SWPR - byte_offset: 32 - fieldset: SWPR - - name: SKR - description: SKR - byte_offset: 36 - access: Write - fieldset: SKR - - name: IMR1 - description: SYSCFG CPU1 interrupt mask register 1 - byte_offset: 256 - fieldset: IMR1 - - name: IMR2 - description: SYSCFG CPU1 interrupt mask register 2 - byte_offset: 260 - fieldset: IMR2 - - name: C2IMR1 - description: SYSCFG CPU2 interrupt mask register 1 - byte_offset: 264 - fieldset: C2IMR1 - - name: C2IMR2 - description: SYSCFG CPU2 interrupt mask register 2 - byte_offset: 268 - fieldset: C2IMR2 - - name: RFDCR - description: radio debug control register - byte_offset: 520 - fieldset: RFDCR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: SCSR + description: SCSR + byte_offset: 24 + fieldset: SCSR + - name: CFGR2 + description: CFGR2 + byte_offset: 28 + fieldset: CFGR2 + - name: SWPR + description: SWPR + byte_offset: 32 + fieldset: SWPR + - name: SKR + description: SKR + byte_offset: 36 + access: Write + fieldset: SKR + - name: IMR1 + description: SYSCFG CPU1 interrupt mask register 1 + byte_offset: 256 + fieldset: IMR1 + - name: IMR2 + description: SYSCFG CPU1 interrupt mask register 2 + byte_offset: 260 + fieldset: IMR2 + - name: C2IMR1 + description: SYSCFG CPU2 interrupt mask register 1 + byte_offset: 264 + fieldset: C2IMR1 + - name: C2IMR2 + description: SYSCFG CPU2 interrupt mask register 2 + byte_offset: 268 + fieldset: C2IMR2 + - name: RFDCR + description: radio debug control register + byte_offset: 520 + fieldset: RFDCR fieldset/C2IMR1: description: SYSCFG CPU2 interrupt mask register 1 fields: - - name: RTCSTAMPTAMPLSECSSIM - description: RTCSTAMPTAMPLSECSSIM - bit_offset: 0 - bit_size: 1 - - name: RTCALARMIM - description: RTCALARMIM - bit_offset: 1 - bit_size: 1 - - name: RTCSSRUIM - description: RTCSSRUIM - bit_offset: 2 - bit_size: 1 - - name: RTCWKUPIM - description: RTCWKUPIM - bit_offset: 3 - bit_size: 1 - - name: RCCIM - description: RCCIM - bit_offset: 5 - bit_size: 1 - - name: FLASHIM - description: FLASHIM - bit_offset: 6 - bit_size: 1 - - name: PKAIM - description: PKAIM - bit_offset: 8 - bit_size: 1 - - name: AESIM - description: AESIM - bit_offset: 10 - bit_size: 1 - - name: COMPIM - description: COMPIM - bit_offset: 11 - bit_size: 1 - - name: ADCIM - description: ADCIM - bit_offset: 12 - bit_size: 1 - - name: DACIM - description: DACIM - bit_offset: 13 - bit_size: 1 - - name: EXTI0IM - description: EXTI0IM - bit_offset: 16 - bit_size: 1 - - name: EXTI1IM - description: EXTI1IM - bit_offset: 17 - bit_size: 1 - - name: EXTI2IM - description: EXTI2IM - bit_offset: 18 - bit_size: 1 - - name: EXTI3IM - description: EXTI3IM - bit_offset: 19 - bit_size: 1 - - name: EXTI4IM - description: EXTI4IM - bit_offset: 20 - bit_size: 1 - - name: EXTI5IM - description: EXTI5IM - bit_offset: 21 - bit_size: 1 - - name: EXTI6IM - description: EXTI6IM - bit_offset: 22 - bit_size: 1 - - name: EXTI7IM - description: EXTI7IM - bit_offset: 23 - bit_size: 1 - - name: EXTI8IM - description: EXTI8IM - bit_offset: 24 - bit_size: 1 - - name: EXTI9IM - description: EXTI9IM - bit_offset: 25 - bit_size: 1 - - name: EXTI10IM - description: EXTI10IM - bit_offset: 26 - bit_size: 1 - - name: EXTI11IM - description: EXTI11IM - bit_offset: 27 - bit_size: 1 - - name: EXTI12IM - description: EXTI12IM - bit_offset: 28 - bit_size: 1 - - name: EXTI13IM - description: EXTI13IM - bit_offset: 29 - bit_size: 1 - - name: EXTI14IM - description: EXTI14IM - bit_offset: 30 - bit_size: 1 - - name: EXTI15IM - description: EXTI15IM - bit_offset: 31 - bit_size: 1 + - name: RTCSTAMPTAMPLSECSSIM + description: RTCSTAMPTAMPLSECSSIM + bit_offset: 0 + bit_size: 1 + - name: RTCALARMIM + description: RTCALARMIM + bit_offset: 1 + bit_size: 1 + - name: RTCSSRUIM + description: RTCSSRUIM + bit_offset: 2 + bit_size: 1 + - name: RTCWKUPIM + description: RTCWKUPIM + bit_offset: 3 + bit_size: 1 + - name: RCCIM + description: RCCIM + bit_offset: 5 + bit_size: 1 + - name: FLASHIM + description: FLASHIM + bit_offset: 6 + bit_size: 1 + - name: PKAIM + description: PKAIM + bit_offset: 8 + bit_size: 1 + - name: AESIM + description: AESIM + bit_offset: 10 + bit_size: 1 + - name: COMPIM + description: COMPIM + bit_offset: 11 + bit_size: 1 + - name: ADCIM + description: ADCIM + bit_offset: 12 + bit_size: 1 + - name: DACIM + description: DACIM + bit_offset: 13 + bit_size: 1 + - name: EXTI0IM + description: EXTI0IM + bit_offset: 16 + bit_size: 1 + - name: EXTI1IM + description: EXTI1IM + bit_offset: 17 + bit_size: 1 + - name: EXTI2IM + description: EXTI2IM + bit_offset: 18 + bit_size: 1 + - name: EXTI3IM + description: EXTI3IM + bit_offset: 19 + bit_size: 1 + - name: EXTI4IM + description: EXTI4IM + bit_offset: 20 + bit_size: 1 + - name: EXTI5IM + description: EXTI5IM + bit_offset: 21 + bit_size: 1 + - name: EXTI6IM + description: EXTI6IM + bit_offset: 22 + bit_size: 1 + - name: EXTI7IM + description: EXTI7IM + bit_offset: 23 + bit_size: 1 + - name: EXTI8IM + description: EXTI8IM + bit_offset: 24 + bit_size: 1 + - name: EXTI9IM + description: EXTI9IM + bit_offset: 25 + bit_size: 1 + - name: EXTI10IM + description: EXTI10IM + bit_offset: 26 + bit_size: 1 + - name: EXTI11IM + description: EXTI11IM + bit_offset: 27 + bit_size: 1 + - name: EXTI12IM + description: EXTI12IM + bit_offset: 28 + bit_size: 1 + - name: EXTI13IM + description: EXTI13IM + bit_offset: 29 + bit_size: 1 + - name: EXTI14IM + description: EXTI14IM + bit_offset: 30 + bit_size: 1 + - name: EXTI15IM + description: EXTI15IM + bit_offset: 31 + bit_size: 1 fieldset/C2IMR2: description: SYSCFG CPU2 interrupt mask register 2 fields: - - name: DMA1CH1IM - description: DMA1CH1IM - bit_offset: 0 - bit_size: 1 - - name: DMA1CH2IM - description: DMA1CH2IM - bit_offset: 1 - bit_size: 1 - - name: DMA1CH3IM - description: DMA1CH3IM - bit_offset: 2 - bit_size: 1 - - name: DMA1CH4IM - description: DMA1CH4IM - bit_offset: 3 - bit_size: 1 - - name: DMA1CH5IM - description: DMA1CH5IM - bit_offset: 4 - bit_size: 1 - - name: DMA1CH6IM - description: DMA1CH6IM - bit_offset: 5 - bit_size: 1 - - name: DMA1CH7IM - description: DMA1CH7IM - bit_offset: 6 - bit_size: 1 - - name: DMA2CH1IM - description: DMA2CH1IM - bit_offset: 8 - bit_size: 1 - - name: DMA2CH2IM - description: DMA2CH2IM - bit_offset: 9 - bit_size: 1 - - name: DMA2CH3IM - description: DMA2CH3IM - bit_offset: 10 - bit_size: 1 - - name: DMA2CH4IM - description: DMA2CH4IM - bit_offset: 11 - bit_size: 1 - - name: DMA2CH5IM - description: DMA2CH5IM - bit_offset: 12 - bit_size: 1 - - name: DMA2CH6IM - description: DMA2CH6IM - bit_offset: 13 - bit_size: 1 - - name: DMA2CH7IM - description: DMA2CH7IM - bit_offset: 14 - bit_size: 1 - - name: DMAMUX1IM - description: DMAMUX1IM - bit_offset: 15 - bit_size: 1 - - name: PVM3IM - description: PVM3IM - bit_offset: 18 - bit_size: 1 - - name: PVDIM - description: PVDIM - bit_offset: 20 - bit_size: 1 + - name: DMA1CH1IM + description: DMA1CH1IM + bit_offset: 0 + bit_size: 1 + - name: DMA1CH2IM + description: DMA1CH2IM + bit_offset: 1 + bit_size: 1 + - name: DMA1CH3IM + description: DMA1CH3IM + bit_offset: 2 + bit_size: 1 + - name: DMA1CH4IM + description: DMA1CH4IM + bit_offset: 3 + bit_size: 1 + - name: DMA1CH5IM + description: DMA1CH5IM + bit_offset: 4 + bit_size: 1 + - name: DMA1CH6IM + description: DMA1CH6IM + bit_offset: 5 + bit_size: 1 + - name: DMA1CH7IM + description: DMA1CH7IM + bit_offset: 6 + bit_size: 1 + - name: DMA2CH1IM + description: DMA2CH1IM + bit_offset: 8 + bit_size: 1 + - name: DMA2CH2IM + description: DMA2CH2IM + bit_offset: 9 + bit_size: 1 + - name: DMA2CH3IM + description: DMA2CH3IM + bit_offset: 10 + bit_size: 1 + - name: DMA2CH4IM + description: DMA2CH4IM + bit_offset: 11 + bit_size: 1 + - name: DMA2CH5IM + description: DMA2CH5IM + bit_offset: 12 + bit_size: 1 + - name: DMA2CH6IM + description: DMA2CH6IM + bit_offset: 13 + bit_size: 1 + - name: DMA2CH7IM + description: DMA2CH7IM + bit_offset: 14 + bit_size: 1 + - name: DMAMUX1IM + description: DMAMUX1IM + bit_offset: 15 + bit_size: 1 + - name: PVM3IM + description: PVM3IM + bit_offset: 18 + bit_size: 1 + - name: PVDIM + description: PVDIM + bit_offset: 20 + bit_size: 1 fieldset/CFGR1: description: configuration register 1 fields: - - name: BOOSTEN - description: I/O analog switch voltage booster enable - bit_offset: 8 - bit_size: 1 - - name: I2C_PB6_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB6 - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB7 - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB8 - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB9 - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 Fast-mode Plus driving capability activation - bit_offset: 20 - bit_size: 1 - - name: I2C2_FMP - description: I2C2 Fast-mode Plus driving capability activation - bit_offset: 21 - bit_size: 1 - - name: I2C3_FMP - description: I2C3 Fast-mode Plus driving capability activation - bit_offset: 22 - bit_size: 1 + - name: BOOSTEN + description: I/O analog switch voltage booster enable + bit_offset: 8 + bit_size: 1 + - name: I2C_PB6_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB6 + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB7 + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB8 + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB9 + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 Fast-mode Plus driving capability activation + bit_offset: 20 + bit_size: 1 + - name: I2C2_FMP + description: I2C2 Fast-mode Plus driving capability activation + bit_offset: 21 + bit_size: 1 + - name: I2C3_FMP + description: I2C3 Fast-mode Plus driving capability activation + bit_offset: 22 + bit_size: 1 fieldset/CFGR2: description: CFGR2 fields: - - name: CLL - description: CPU1 LOCKUP (Hardfault) output enable bit - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM2 parity lock bit - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 - - name: SPF - description: SRAM2 parity error flag - bit_offset: 8 - bit_size: 1 + - name: CLL + description: CPU1 LOCKUP (Hardfault) output enable bit + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM2 parity lock bit + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 + - name: SPF + description: SRAM2 parity error flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 4 fields: - - name: EXTI - description: EXTI12 configuration bits - bit_offset: 0 - bit_size: 3 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI12 configuration bits + bit_offset: 0 + bit_size: 3 + array: + len: 4 + stride: 4 fieldset/IMR1: description: SYSCFG CPU1 interrupt mask register 1 fields: - - name: RTCSTAMPTAMPLSECSSIM - description: RTCSTAMPTAMPLSECSSIM - bit_offset: 0 - bit_size: 1 - - name: RTCSSRUIM - description: RTCSSRUIM - bit_offset: 2 - bit_size: 1 - - name: EXTI5IM - description: EXTI5IM - bit_offset: 21 - bit_size: 1 - - name: EXTI6IM - description: EXTI6IM - bit_offset: 22 - bit_size: 1 - - name: EXTI7IM - description: EXTI7IM - bit_offset: 23 - bit_size: 1 - - name: EXTI8IM - description: EXTI8IM - bit_offset: 24 - bit_size: 1 - - name: EXTI9IM - description: EXTI9IM - bit_offset: 25 - bit_size: 1 - - name: EXTI10IM - description: EXTI10IM - bit_offset: 26 - bit_size: 1 - - name: EXTI11IM - description: EXTI11IM - bit_offset: 27 - bit_size: 1 - - name: EXTI12IM - description: EXTI12IM - bit_offset: 28 - bit_size: 1 - - name: EXTI13IM - description: EXTI13IM - bit_offset: 29 - bit_size: 1 - - name: EXTI14IM - description: EXTI14IM - bit_offset: 30 - bit_size: 1 - - name: EXTI15IM - description: EXTI15IM - bit_offset: 31 - bit_size: 1 + - name: RTCSTAMPTAMPLSECSSIM + description: RTCSTAMPTAMPLSECSSIM + bit_offset: 0 + bit_size: 1 + - name: RTCSSRUIM + description: RTCSSRUIM + bit_offset: 2 + bit_size: 1 + - name: EXTI5IM + description: EXTI5IM + bit_offset: 21 + bit_size: 1 + - name: EXTI6IM + description: EXTI6IM + bit_offset: 22 + bit_size: 1 + - name: EXTI7IM + description: EXTI7IM + bit_offset: 23 + bit_size: 1 + - name: EXTI8IM + description: EXTI8IM + bit_offset: 24 + bit_size: 1 + - name: EXTI9IM + description: EXTI9IM + bit_offset: 25 + bit_size: 1 + - name: EXTI10IM + description: EXTI10IM + bit_offset: 26 + bit_size: 1 + - name: EXTI11IM + description: EXTI11IM + bit_offset: 27 + bit_size: 1 + - name: EXTI12IM + description: EXTI12IM + bit_offset: 28 + bit_size: 1 + - name: EXTI13IM + description: EXTI13IM + bit_offset: 29 + bit_size: 1 + - name: EXTI14IM + description: EXTI14IM + bit_offset: 30 + bit_size: 1 + - name: EXTI15IM + description: EXTI15IM + bit_offset: 31 + bit_size: 1 fieldset/IMR2: description: SYSCFG CPU1 interrupt mask register 2 fields: - - name: PVM3IM - description: PVM3IM - bit_offset: 18 - bit_size: 1 - - name: PVDIM - description: PVDIM - bit_offset: 20 - bit_size: 1 + - name: PVM3IM + description: PVM3IM + bit_offset: 18 + bit_size: 1 + - name: PVDIM + description: PVDIM + bit_offset: 20 + bit_size: 1 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 3 + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 3 fieldset/RFDCR: description: radio debug control register fields: - - name: RFTBSEL - description: radio debug test bus selection - bit_offset: 0 - bit_size: 1 + - name: RFTBSEL + description: radio debug test bus selection + bit_offset: 0 + bit_size: 1 fieldset/SCSR: description: SCSR fields: - - name: SRAM2ER - description: SRAM2 erase - bit_offset: 0 - bit_size: 1 - - name: SRAMBSY - description: "SRAM1, SRAM2 and PKA SRAM busy by erase operation" - bit_offset: 1 - bit_size: 1 - - name: PKASRAMBSY - description: PKA SRAM busy by erase operation - bit_offset: 8 - bit_size: 1 + - name: SRAM2ER + description: SRAM2 erase + bit_offset: 0 + bit_size: 1 + - name: SRAMBSY + description: SRAM1, SRAM2 and PKA SRAM busy by erase operation + bit_offset: 1 + bit_size: 1 + - name: PKASRAMBSY + description: PKA SRAM busy by erase operation + bit_offset: 8 + bit_size: 1 fieldset/SKR: description: SKR fields: - - name: KEY - description: SRAM2 write protection key for software erase - bit_offset: 0 - bit_size: 8 + - name: KEY + description: SRAM2 write protection key for software erase + bit_offset: 0 + bit_size: 8 fieldset/SWPR: description: SWPR fields: - - name: PWP - description: SRAM2 1Kbyte page 0 write protection - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PWP + description: SRAM2 1Kbyte page 0 write protection + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/syscfg_wle.yaml b/data/registers/syscfg_wle.yaml index a6d6bf6..6289122 100644 --- a/data/registers/syscfg_wle.yaml +++ b/data/registers/syscfg_wle.yaml @@ -1,154 +1,153 @@ ---- block/SYSCFG: description: System configuration controller items: - - name: MEMRMP - description: memory remap register - byte_offset: 0 - fieldset: MEMRMP - - name: CFGR1 - description: configuration register 1 - byte_offset: 4 - fieldset: CFGR1 - - name: EXTICR - description: external interrupt configuration register 1 - array: - len: 4 - stride: 4 - byte_offset: 8 - fieldset: EXTICR - - name: SCSR - description: SCSR - byte_offset: 24 - fieldset: SCSR - - name: CFGR2 - description: CFGR2 - byte_offset: 28 - fieldset: CFGR2 - - name: SWPR - description: SWPR - byte_offset: 32 - fieldset: SWPR - - name: SKR - description: SKR - byte_offset: 36 - access: Write - fieldset: SKR - - name: RFDCR - description: radio debug control register - byte_offset: 520 - fieldset: RFDCR + - name: MEMRMP + description: memory remap register + byte_offset: 0 + fieldset: MEMRMP + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: EXTICR + description: external interrupt configuration register 1 + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: SCSR + description: SCSR + byte_offset: 24 + fieldset: SCSR + - name: CFGR2 + description: CFGR2 + byte_offset: 28 + fieldset: CFGR2 + - name: SWPR + description: SWPR + byte_offset: 32 + fieldset: SWPR + - name: SKR + description: SKR + byte_offset: 36 + access: Write + fieldset: SKR + - name: RFDCR + description: radio debug control register + byte_offset: 520 + fieldset: RFDCR fieldset/CFGR1: description: configuration register 1 fields: - - name: BOOSTEN - description: I/O analog switch voltage booster enable - bit_offset: 8 - bit_size: 1 - - name: I2C_PB6_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB6 - bit_offset: 16 - bit_size: 1 - - name: I2C_PB7_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB7 - bit_offset: 17 - bit_size: 1 - - name: I2C_PB8_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB8 - bit_offset: 18 - bit_size: 1 - - name: I2C_PB9_FMP - description: Fast-mode Plus (Fm+) driving capability activation on PB9 - bit_offset: 19 - bit_size: 1 - - name: I2C1_FMP - description: I2C1 Fast-mode Plus driving capability activation - bit_offset: 20 - bit_size: 1 - - name: I2C2_FMP - description: I2C2 Fast-mode Plus driving capability activation - bit_offset: 21 - bit_size: 1 - - name: I2C3_FMP - description: I2C3 Fast-mode Plus driving capability activation - bit_offset: 22 - bit_size: 1 + - name: BOOSTEN + description: I/O analog switch voltage booster enable + bit_offset: 8 + bit_size: 1 + - name: I2C_PB6_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB6 + bit_offset: 16 + bit_size: 1 + - name: I2C_PB7_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB7 + bit_offset: 17 + bit_size: 1 + - name: I2C_PB8_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB8 + bit_offset: 18 + bit_size: 1 + - name: I2C_PB9_FMP + description: Fast-mode Plus (Fm+) driving capability activation on PB9 + bit_offset: 19 + bit_size: 1 + - name: I2C1_FMP + description: I2C1 Fast-mode Plus driving capability activation + bit_offset: 20 + bit_size: 1 + - name: I2C2_FMP + description: I2C2 Fast-mode Plus driving capability activation + bit_offset: 21 + bit_size: 1 + - name: I2C3_FMP + description: I2C3 Fast-mode Plus driving capability activation + bit_offset: 22 + bit_size: 1 fieldset/CFGR2: description: CFGR2 fields: - - name: CLL - description: CPU1 LOCKUP (Hardfault) output enable bit - bit_offset: 0 - bit_size: 1 - - name: SPL - description: SRAM2 parity lock bit - bit_offset: 1 - bit_size: 1 - - name: PVDL - description: PVD lock enable bit - bit_offset: 2 - bit_size: 1 - - name: ECCL - description: ECC Lock - bit_offset: 3 - bit_size: 1 - - name: SPF - description: SRAM2 parity error flag - bit_offset: 8 - bit_size: 1 + - name: CLL + description: CPU1 LOCKUP (Hardfault) output enable bit + bit_offset: 0 + bit_size: 1 + - name: SPL + description: SRAM2 parity lock bit + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: PVD lock enable bit + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: ECC Lock + bit_offset: 3 + bit_size: 1 + - name: SPF + description: SRAM2 parity error flag + bit_offset: 8 + bit_size: 1 fieldset/EXTICR: description: external interrupt configuration register 4 fields: - - name: EXTI - description: EXTI12 configuration bits - bit_offset: 0 - bit_size: 3 - array: - len: 4 - stride: 4 + - name: EXTI + description: EXTI12 configuration bits + bit_offset: 0 + bit_size: 3 + array: + len: 4 + stride: 4 fieldset/MEMRMP: description: memory remap register fields: - - name: MEM_MODE - description: Memory mapping selection - bit_offset: 0 - bit_size: 3 + - name: MEM_MODE + description: Memory mapping selection + bit_offset: 0 + bit_size: 3 fieldset/RFDCR: description: radio debug control register fields: - - name: RFTBSEL - description: radio debug test bus selection - bit_offset: 0 - bit_size: 1 + - name: RFTBSEL + description: radio debug test bus selection + bit_offset: 0 + bit_size: 1 fieldset/SCSR: description: SCSR fields: - - name: SRAM2ER - description: SRAM2 erase - bit_offset: 0 - bit_size: 1 - - name: SRAMBSY - description: "SRAM1, SRAM2 and PKA SRAM busy by erase operation" - bit_offset: 1 - bit_size: 1 - - name: PKASRAMBSY - description: PKA SRAM busy by erase operation - bit_offset: 8 - bit_size: 1 + - name: SRAM2ER + description: SRAM2 erase + bit_offset: 0 + bit_size: 1 + - name: SRAMBSY + description: SRAM1, SRAM2 and PKA SRAM busy by erase operation + bit_offset: 1 + bit_size: 1 + - name: PKASRAMBSY + description: PKA SRAM busy by erase operation + bit_offset: 8 + bit_size: 1 fieldset/SKR: description: SKR fields: - - name: KEY - description: SRAM2 write protection key for software erase - bit_offset: 0 - bit_size: 8 + - name: KEY + description: SRAM2 write protection key for software erase + bit_offset: 0 + bit_size: 8 fieldset/SWPR: description: SWPR fields: - - name: PWP - description: SRAM2 1Kbyte page 0 write protection - bit_offset: 0 - bit_size: 1 - array: - len: 32 - stride: 1 + - name: PWP + description: SRAM2 1Kbyte page 0 write protection + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 diff --git a/data/registers/timer_v1.yaml b/data/registers/timer_v1.yaml index 595175f..e013ed1 100644 --- a/data/registers/timer_v1.yaml +++ b/data/registers/timer_v1.yaml @@ -1,1026 +1,1025 @@ ---- block/TIM_ADV: extends: TIM_GP16 description: Advanced-timers items: - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2_ADV - - name: DIER - description: DMA/Interrupt enable register - byte_offset: 12 - fieldset: DIER_ADV - - name: SR - description: status register - byte_offset: 16 - fieldset: SR_ADV - - name: EGR - description: event generation register - byte_offset: 20 - access: Write - fieldset: EGR_ADV - - name: CCER - description: capture/compare enable register - byte_offset: 32 - fieldset: CCER_ADV - - name: RCR - description: repetition counter register - byte_offset: 48 - fieldset: RCR - - name: BDTR - description: break and dead-time register - byte_offset: 68 - fieldset: BDTR + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2_ADV + - name: DIER + description: DMA/Interrupt enable register + byte_offset: 12 + fieldset: DIER_ADV + - name: SR + description: status register + byte_offset: 16 + fieldset: SR_ADV + - name: EGR + description: event generation register + byte_offset: 20 + access: Write + fieldset: EGR_ADV + - name: CCER + description: capture/compare enable register + byte_offset: 32 + fieldset: CCER_ADV + - name: RCR + description: repetition counter register + byte_offset: 48 + fieldset: RCR + - name: BDTR + description: break and dead-time register + byte_offset: 68 + fieldset: BDTR block/TIM_BASIC: description: Basic timer items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1_BASIC - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2_BASIC - - name: DIER - description: DMA/Interrupt enable register - byte_offset: 12 - fieldset: DIER_BASIC - - name: SR - description: status register - byte_offset: 16 - fieldset: SR_BASIC - - name: EGR - description: event generation register - byte_offset: 20 - access: Write - fieldset: EGR_BASIC - - name: CNT - description: counter - byte_offset: 36 - fieldset: CNT_16 - - name: PSC - description: prescaler - byte_offset: 40 - fieldset: PSC - - name: ARR - description: auto-reload register - byte_offset: 44 - fieldset: ARR_16 + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1_BASIC + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2_BASIC + - name: DIER + description: DMA/Interrupt enable register + byte_offset: 12 + fieldset: DIER_BASIC + - name: SR + description: status register + byte_offset: 16 + fieldset: SR_BASIC + - name: EGR + description: event generation register + byte_offset: 20 + access: Write + fieldset: EGR_BASIC + - name: CNT + description: counter + byte_offset: 36 + fieldset: CNT_16 + - name: PSC + description: prescaler + byte_offset: 40 + fieldset: PSC + - name: ARR + description: auto-reload register + byte_offset: 44 + fieldset: ARR_16 block/TIM_GP16: extends: TIM_BASIC description: General purpose 16-bit timer items: - - name: CR1 - description: control register 1 - byte_offset: 0 - fieldset: CR1_GP - - name: CR2 - description: control register 2 - byte_offset: 4 - fieldset: CR2_GP - - name: SMCR - description: slave mode control register - byte_offset: 8 - fieldset: SMCR - - name: DIER - description: DMA/Interrupt enable register - byte_offset: 12 - fieldset: DIER_GP - - name: SR - description: status register - byte_offset: 16 - fieldset: SR_GP - - name: EGR - description: event generation register - byte_offset: 20 - access: Write - fieldset: EGR_GP - - name: CCMR_Input - description: capture/compare mode register 1 (input mode) - array: - len: 2 - stride: 4 - byte_offset: 24 - fieldset: CCMR_Input - - name: CCMR_Output - description: capture/compare mode register 1 (output mode) - array: - len: 2 - stride: 4 - byte_offset: 24 - fieldset: CCMR_Output - - name: CCER - description: capture/compare enable register - byte_offset: 32 - fieldset: CCER_GP - - name: PSC - description: prescaler - byte_offset: 40 - fieldset: PSC - - name: CCR - description: capture/compare register - array: - len: 4 - stride: 4 - byte_offset: 52 - fieldset: CCR_16 - - name: DCR - description: DMA control register - byte_offset: 72 - fieldset: DCR - - name: DMAR - description: DMA address for full transfer - byte_offset: 76 - fieldset: DMAR + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1_GP + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2_GP + - name: SMCR + description: slave mode control register + byte_offset: 8 + fieldset: SMCR + - name: DIER + description: DMA/Interrupt enable register + byte_offset: 12 + fieldset: DIER_GP + - name: SR + description: status register + byte_offset: 16 + fieldset: SR_GP + - name: EGR + description: event generation register + byte_offset: 20 + access: Write + fieldset: EGR_GP + - name: CCMR_Input + description: capture/compare mode register 1 (input mode) + array: + len: 2 + stride: 4 + byte_offset: 24 + fieldset: CCMR_Input + - name: CCMR_Output + description: capture/compare mode register 1 (output mode) + array: + len: 2 + stride: 4 + byte_offset: 24 + fieldset: CCMR_Output + - name: CCER + description: capture/compare enable register + byte_offset: 32 + fieldset: CCER_GP + - name: PSC + description: prescaler + byte_offset: 40 + fieldset: PSC + - name: CCR + description: capture/compare register + array: + len: 4 + stride: 4 + byte_offset: 52 + fieldset: CCR_16 + - name: DCR + description: DMA control register + byte_offset: 72 + fieldset: DCR + - name: DMAR + description: DMA address for full transfer + byte_offset: 76 + fieldset: DMAR block/TIM_GP32: extends: TIM_GP16 description: General purpose 32-bit timer items: - - name: CNT - description: counter - byte_offset: 36 - fieldset: CNT_32 - - name: ARR - description: auto-reload register - byte_offset: 44 - fieldset: ARR_32 - - name: CCR - description: capture/compare register - array: - len: 4 - stride: 4 - byte_offset: 52 - fieldset: CCR_32 + - name: CNT + description: counter + byte_offset: 36 + fieldset: CNT_32 + - name: ARR + description: auto-reload register + byte_offset: 44 + fieldset: ARR_32 + - name: CCR + description: capture/compare register + array: + len: 4 + stride: 4 + byte_offset: 52 + fieldset: CCR_32 fieldset/ARR_16: description: auto-reload register fields: - - name: ARR - description: Auto-reload value - bit_offset: 0 - bit_size: 16 + - name: ARR + description: Auto-reload value + bit_offset: 0 + bit_size: 16 fieldset/ARR_32: description: auto-reload register fields: - - name: ARR - description: Auto-reload value - bit_offset: 0 - bit_size: 32 + - name: ARR + description: Auto-reload value + bit_offset: 0 + bit_size: 32 fieldset/BDTR: description: break and dead-time register fields: - - name: DTG - description: Dead-time generator setup - bit_offset: 0 - bit_size: 8 - - name: LOCK - description: Lock configuration - bit_offset: 8 - bit_size: 2 - - name: OSSI - description: Off-state selection for Idle mode - bit_offset: 10 - bit_size: 1 - enum: OSSI - - name: OSSR - description: Off-state selection for Run mode - bit_offset: 11 - bit_size: 1 - enum: OSSR - - name: BKE - description: Break enable - bit_offset: 12 - bit_size: 1 - - name: BKP - description: Break polarity - bit_offset: 13 - bit_size: 1 - - name: AOE - description: Automatic output enable - bit_offset: 14 - bit_size: 1 - - name: MOE - description: Main output enable - bit_offset: 15 - bit_size: 1 + - name: DTG + description: Dead-time generator setup + bit_offset: 0 + bit_size: 8 + - name: LOCK + description: Lock configuration + bit_offset: 8 + bit_size: 2 + - name: OSSI + description: Off-state selection for Idle mode + bit_offset: 10 + bit_size: 1 + enum: OSSI + - name: OSSR + description: Off-state selection for Run mode + bit_offset: 11 + bit_size: 1 + enum: OSSR + - name: BKE + description: Break enable + bit_offset: 12 + bit_size: 1 + - name: BKP + description: Break polarity + bit_offset: 13 + bit_size: 1 + - name: AOE + description: Automatic output enable + bit_offset: 14 + bit_size: 1 + - name: MOE + description: Main output enable + bit_offset: 15 + bit_size: 1 fieldset/CCER_ADV: extends: CCER_GP description: capture/compare enable register fields: - - name: CCNE - description: Capture/Compare 1 complementary output enable - bit_offset: 2 - bit_size: 1 - array: - len: 4 - stride: 4 + - name: CCNE + description: Capture/Compare 1 complementary output enable + bit_offset: 2 + bit_size: 1 + array: + len: 4 + stride: 4 fieldset/CCER_GP: description: capture/compare enable register fields: - - name: CCE - description: Capture/Compare 1 output enable - bit_offset: 0 - bit_size: 1 - array: - len: 4 - stride: 4 - - name: CCP - description: Capture/Compare 1 output Polarity - bit_offset: 1 - bit_size: 1 - array: - len: 4 - stride: 4 - - name: CCNP - description: Capture/Compare 1 output Polarity - bit_offset: 3 - bit_size: 1 - array: - len: 4 - stride: 4 + - name: CCE + description: Capture/Compare 1 output enable + bit_offset: 0 + bit_size: 1 + array: + len: 4 + stride: 4 + - name: CCP + description: Capture/Compare 1 output Polarity + bit_offset: 1 + bit_size: 1 + array: + len: 4 + stride: 4 + - name: CCNP + description: Capture/Compare 1 output Polarity + bit_offset: 3 + bit_size: 1 + array: + len: 4 + stride: 4 fieldset/CCMR_Input: description: capture/compare mode register 1 (input mode) fields: - - name: CCS - description: Capture/Compare 1 selection - bit_offset: 0 - bit_size: 2 - array: - len: 2 - stride: 8 - enum: CCMR_Input_CCS - - name: ICPSC - description: Input capture 1 prescaler - bit_offset: 2 - bit_size: 2 - array: - len: 2 - stride: 8 - - name: ICF - description: Input capture 1 filter - bit_offset: 4 - bit_size: 4 - array: - len: 2 - stride: 8 - enum: ICF + - name: CCS + description: Capture/Compare 1 selection + bit_offset: 0 + bit_size: 2 + array: + len: 2 + stride: 8 + enum: CCMR_Input_CCS + - name: ICPSC + description: Input capture 1 prescaler + bit_offset: 2 + bit_size: 2 + array: + len: 2 + stride: 8 + - name: ICF + description: Input capture 1 filter + bit_offset: 4 + bit_size: 4 + array: + len: 2 + stride: 8 + enum: ICF fieldset/CCMR_Output: description: capture/compare mode register 2 (output mode) fields: - - name: CCS - description: Capture/Compare 3 selection - bit_offset: 0 - bit_size: 2 - array: - len: 2 - stride: 8 - enum: CCMR_Output_CCS - - name: OCFE - description: Output compare 3 fast enable - bit_offset: 2 - bit_size: 1 - array: - len: 2 - stride: 8 - - name: OCPE - description: Output compare 3 preload enable - bit_offset: 3 - bit_size: 1 - array: - len: 2 - stride: 8 - enum: OCPE - - name: OCM - description: Output compare 3 mode - bit_offset: 4 - bit_size: 3 - array: - len: 2 - stride: 8 - enum: OCM - - name: OCCE - description: Output compare 3 clear enable - bit_offset: 7 - bit_size: 1 - array: - len: 2 - stride: 8 + - name: CCS + description: Capture/Compare 3 selection + bit_offset: 0 + bit_size: 2 + array: + len: 2 + stride: 8 + enum: CCMR_Output_CCS + - name: OCFE + description: Output compare 3 fast enable + bit_offset: 2 + bit_size: 1 + array: + len: 2 + stride: 8 + - name: OCPE + description: Output compare 3 preload enable + bit_offset: 3 + bit_size: 1 + array: + len: 2 + stride: 8 + enum: OCPE + - name: OCM + description: Output compare 3 mode + bit_offset: 4 + bit_size: 3 + array: + len: 2 + stride: 8 + enum: OCM + - name: OCCE + description: Output compare 3 clear enable + bit_offset: 7 + bit_size: 1 + array: + len: 2 + stride: 8 fieldset/CCR_16: description: capture/compare register 1 fields: - - name: CCR - description: Capture/Compare 1 value - bit_offset: 0 - bit_size: 16 + - name: CCR + description: Capture/Compare 1 value + bit_offset: 0 + bit_size: 16 fieldset/CCR_32: description: capture/compare register 1 fields: - - name: CCR - description: Capture/Compare 1 value - bit_offset: 0 - bit_size: 32 + - name: CCR + description: Capture/Compare 1 value + bit_offset: 0 + bit_size: 32 fieldset/CNT_16: description: counter fields: - - name: CNT - description: counter value - bit_offset: 0 - bit_size: 16 + - name: CNT + description: counter value + bit_offset: 0 + bit_size: 16 fieldset/CNT_32: description: counter fields: - - name: CNT - description: counter value - bit_offset: 0 - bit_size: 32 + - name: CNT + description: counter value + bit_offset: 0 + bit_size: 32 fieldset/CR1_BASIC: description: control register 1 fields: - - name: CEN - description: Counter enable - bit_offset: 0 - bit_size: 1 - - name: UDIS - description: Update disable - bit_offset: 1 - bit_size: 1 - - name: URS - description: Update request source - bit_offset: 2 - bit_size: 1 - enum: URS - - name: OPM - description: One-pulse mode - bit_offset: 3 - bit_size: 1 - enum: OPM - - name: ARPE - description: Auto-reload preload enable - bit_offset: 7 - bit_size: 1 - enum: ARPE + - name: CEN + description: Counter enable + bit_offset: 0 + bit_size: 1 + - name: UDIS + description: Update disable + bit_offset: 1 + bit_size: 1 + - name: URS + description: Update request source + bit_offset: 2 + bit_size: 1 + enum: URS + - name: OPM + description: One-pulse mode + bit_offset: 3 + bit_size: 1 + enum: OPM + - name: ARPE + description: Auto-reload preload enable + bit_offset: 7 + bit_size: 1 + enum: ARPE fieldset/CR1_GP: extends: CR1_BASIC description: control register 1 fields: - - name: DIR - description: Direction - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: CMS - description: Center-aligned mode selection - bit_offset: 5 - bit_size: 2 - enum: CMS - - name: CKD - description: Clock division - bit_offset: 8 - bit_size: 2 - enum: CKD + - name: DIR + description: Direction + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: CMS + description: Center-aligned mode selection + bit_offset: 5 + bit_size: 2 + enum: CMS + - name: CKD + description: Clock division + bit_offset: 8 + bit_size: 2 + enum: CKD fieldset/CR2_ADV: extends: CR2_GP description: control register 2 fields: - - name: CCPC - description: Capture/compare preloaded control - bit_offset: 0 - bit_size: 1 - - name: CCUS - description: Capture/compare control update selection - bit_offset: 2 - bit_size: 1 - - name: OIS - description: Output Idle state 1 - bit_offset: 8 - bit_size: 1 - array: - len: 4 - stride: 2 - - name: OIS1N - description: Output Idle state 1 - bit_offset: 9 - bit_size: 1 - - name: OIS2N - description: Output Idle state 2 - bit_offset: 11 - bit_size: 1 - - name: OIS3N - description: Output Idle state 3 - bit_offset: 13 - bit_size: 1 + - name: CCPC + description: Capture/compare preloaded control + bit_offset: 0 + bit_size: 1 + - name: CCUS + description: Capture/compare control update selection + bit_offset: 2 + bit_size: 1 + - name: OIS + description: Output Idle state 1 + bit_offset: 8 + bit_size: 1 + array: + len: 4 + stride: 2 + - name: OIS1N + description: Output Idle state 1 + bit_offset: 9 + bit_size: 1 + - name: OIS2N + description: Output Idle state 2 + bit_offset: 11 + bit_size: 1 + - name: OIS3N + description: Output Idle state 3 + bit_offset: 13 + bit_size: 1 fieldset/CR2_BASIC: description: control register 2 fields: - - name: MMS - description: Master mode selection - bit_offset: 4 - bit_size: 3 - enum: MMS + - name: MMS + description: Master mode selection + bit_offset: 4 + bit_size: 3 + enum: MMS fieldset/CR2_GP: extends: CR2_BASIC description: control register 2 fields: - - name: CCDS - description: Capture/compare DMA selection - bit_offset: 3 - bit_size: 1 - enum: CCDS - - name: TI1S - description: TI1 selection - bit_offset: 7 - bit_size: 1 - enum: TIS + - name: CCDS + description: Capture/compare DMA selection + bit_offset: 3 + bit_size: 1 + enum: CCDS + - name: TI1S + description: TI1 selection + bit_offset: 7 + bit_size: 1 + enum: TIS fieldset/DCR: description: DMA control register fields: - - name: DBA - description: DMA base address - bit_offset: 0 - bit_size: 5 - - name: DBL - description: DMA burst length - bit_offset: 8 - bit_size: 5 + - name: DBA + description: DMA base address + bit_offset: 0 + bit_size: 5 + - name: DBL + description: DMA burst length + bit_offset: 8 + bit_size: 5 fieldset/DIER_ADV: extends: DIER_GP description: DMA/Interrupt enable register fields: - - name: COMIE - description: COM interrupt enable - bit_offset: 5 - bit_size: 1 - - name: BIE - description: Break interrupt enable - bit_offset: 7 - bit_size: 1 - - name: COMDE - description: COM DMA request enable - bit_offset: 13 - bit_size: 1 + - name: COMIE + description: COM interrupt enable + bit_offset: 5 + bit_size: 1 + - name: BIE + description: Break interrupt enable + bit_offset: 7 + bit_size: 1 + - name: COMDE + description: COM DMA request enable + bit_offset: 13 + bit_size: 1 fieldset/DIER_BASIC: description: DMA/Interrupt enable register fields: - - name: UIE - description: Update interrupt enable - bit_offset: 0 - bit_size: 1 - - name: UDE - description: Update DMA request enable - bit_offset: 8 - bit_size: 1 + - name: UIE + description: Update interrupt enable + bit_offset: 0 + bit_size: 1 + - name: UDE + description: Update DMA request enable + bit_offset: 8 + bit_size: 1 fieldset/DIER_GP: extends: DIER_BASIC description: DMA/Interrupt enable register fields: - - name: CCIE - description: Capture/Compare 1 interrupt enable - bit_offset: 1 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: TIE - description: Trigger interrupt enable - bit_offset: 6 - bit_size: 1 - - name: CCDE - description: Capture/Compare 1 DMA request enable - bit_offset: 9 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: TDE - description: Trigger DMA request enable - bit_offset: 14 - bit_size: 1 + - name: CCIE + description: Capture/Compare 1 interrupt enable + bit_offset: 1 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: TIE + description: Trigger interrupt enable + bit_offset: 6 + bit_size: 1 + - name: CCDE + description: Capture/Compare 1 DMA request enable + bit_offset: 9 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: TDE + description: Trigger DMA request enable + bit_offset: 14 + bit_size: 1 fieldset/DMAR: description: DMA address for full transfer fields: - - name: DMAB - description: DMA register for burst accesses - bit_offset: 0 - bit_size: 16 + - name: DMAB + description: DMA register for burst accesses + bit_offset: 0 + bit_size: 16 fieldset/EGR_ADV: extends: EGR_GP description: event generation register fields: - - name: COMG - description: Capture/Compare control update generation - bit_offset: 5 - bit_size: 1 - - name: BG - description: Break generation - bit_offset: 7 - bit_size: 1 + - name: COMG + description: Capture/Compare control update generation + bit_offset: 5 + bit_size: 1 + - name: BG + description: Break generation + bit_offset: 7 + bit_size: 1 fieldset/EGR_BASIC: description: event generation register fields: - - name: UG - description: Update generation - bit_offset: 0 - bit_size: 1 + - name: UG + description: Update generation + bit_offset: 0 + bit_size: 1 fieldset/EGR_GP: extends: EGR_BASIC description: event generation register fields: - - name: CCG - description: Capture/compare 1 generation - bit_offset: 1 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: COMG - description: Capture/Compare control update generation - bit_offset: 5 - bit_size: 1 - - name: TG - description: Trigger generation - bit_offset: 6 - bit_size: 1 - - name: BG - description: Break generation - bit_offset: 7 - bit_size: 1 + - name: CCG + description: Capture/compare 1 generation + bit_offset: 1 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: COMG + description: Capture/Compare control update generation + bit_offset: 5 + bit_size: 1 + - name: TG + description: Trigger generation + bit_offset: 6 + bit_size: 1 + - name: BG + description: Break generation + bit_offset: 7 + bit_size: 1 fieldset/PSC: description: prescaler fields: - - name: PSC - description: Prescaler value - bit_offset: 0 - bit_size: 16 + - name: PSC + description: Prescaler value + bit_offset: 0 + bit_size: 16 fieldset/RCR: description: repetition counter register fields: - - name: REP - description: Repetition counter value - bit_offset: 0 - bit_size: 8 + - name: REP + description: Repetition counter value + bit_offset: 0 + bit_size: 8 fieldset/SMCR: description: slave mode control register fields: - - name: SMS - description: Slave mode selection - bit_offset: 0 - bit_size: 3 - enum: SMS - - name: TS - description: Trigger selection - bit_offset: 4 - bit_size: 3 - enum: TS - - name: MSM - description: Master/Slave mode - bit_offset: 7 - bit_size: 1 - enum: MSM - - name: ETF - description: External trigger filter - bit_offset: 8 - bit_size: 4 - enum: ETF - - name: ETPS - description: External trigger prescaler - bit_offset: 12 - bit_size: 2 - enum: ETPS - - name: ECE - description: External clock enable - bit_offset: 14 - bit_size: 1 - enum: ECE - - name: ETP - description: External trigger polarity - bit_offset: 15 - bit_size: 1 - enum: ETP + - name: SMS + description: Slave mode selection + bit_offset: 0 + bit_size: 3 + enum: SMS + - name: TS + description: Trigger selection + bit_offset: 4 + bit_size: 3 + enum: TS + - name: MSM + description: Master/Slave mode + bit_offset: 7 + bit_size: 1 + enum: MSM + - name: ETF + description: External trigger filter + bit_offset: 8 + bit_size: 4 + enum: ETF + - name: ETPS + description: External trigger prescaler + bit_offset: 12 + bit_size: 2 + enum: ETPS + - name: ECE + description: External clock enable + bit_offset: 14 + bit_size: 1 + enum: ECE + - name: ETP + description: External trigger polarity + bit_offset: 15 + bit_size: 1 + enum: ETP fieldset/SR_ADV: extends: SR_GP description: status register fields: - - name: COMIF - description: COM interrupt flag - bit_offset: 5 - bit_size: 1 - - name: BIF - description: Break interrupt flag - bit_offset: 7 - bit_size: 1 + - name: COMIF + description: COM interrupt flag + bit_offset: 5 + bit_size: 1 + - name: BIF + description: Break interrupt flag + bit_offset: 7 + bit_size: 1 fieldset/SR_BASIC: description: status register fields: - - name: UIF - description: Update interrupt flag - bit_offset: 0 - bit_size: 1 + - name: UIF + description: Update interrupt flag + bit_offset: 0 + bit_size: 1 fieldset/SR_GP: extends: SR_BASIC description: status register fields: - - name: CCIF - description: Capture/compare 1 interrupt flag - bit_offset: 1 - bit_size: 1 - array: - len: 4 - stride: 1 - - name: COMIF - description: COM interrupt flag - bit_offset: 5 - bit_size: 1 - - name: TIF - description: Trigger interrupt flag - bit_offset: 6 - bit_size: 1 - - name: BIF - description: Break interrupt flag - bit_offset: 7 - bit_size: 1 - - name: CCOF - description: Capture/Compare 1 overcapture flag - bit_offset: 9 - bit_size: 1 - array: - len: 4 - stride: 1 + - name: CCIF + description: Capture/compare 1 interrupt flag + bit_offset: 1 + bit_size: 1 + array: + len: 4 + stride: 1 + - name: COMIF + description: COM interrupt flag + bit_offset: 5 + bit_size: 1 + - name: TIF + description: Trigger interrupt flag + bit_offset: 6 + bit_size: 1 + - name: BIF + description: Break interrupt flag + bit_offset: 7 + bit_size: 1 + - name: CCOF + description: Capture/Compare 1 overcapture flag + bit_offset: 9 + bit_size: 1 + array: + len: 4 + stride: 1 enum/ARPE: bit_size: 1 variants: - - name: Disabled - description: TIMx_APRR register is not buffered - value: 0 - - name: Enabled - description: TIMx_APRR register is buffered - value: 1 + - name: Disabled + description: TIMx_APRR register is not buffered + value: 0 + - name: Enabled + description: TIMx_APRR register is buffered + value: 1 enum/CCDS: bit_size: 1 variants: - - name: OnCompare - description: CCx DMA request sent when CCx event occurs - value: 0 - - name: OnUpdate - description: CCx DMA request sent when update event occurs - value: 1 + - name: OnCompare + description: CCx DMA request sent when CCx event occurs + value: 0 + - name: OnUpdate + description: CCx DMA request sent when update event occurs + value: 1 enum/CCMR_Input_CCS: bit_size: 2 variants: - - name: TI4 - description: "CCx channel is configured as input, normal mapping: ICx mapped to TIx" - value: 1 - - name: TI3 - description: "CCx channel is configured as input, alternate mapping (switches 1 with 2, 3 with 4)" - value: 2 - - name: TRC - description: "CCx channel is configured as input, ICx is mapped on TRC" - value: 3 + - name: TI4 + description: 'CCx channel is configured as input, normal mapping: ICx mapped to TIx' + value: 1 + - name: TI3 + description: CCx channel is configured as input, alternate mapping (switches 1 with 2, 3 with 4) + value: 2 + - name: TRC + description: CCx channel is configured as input, ICx is mapped on TRC + value: 3 enum/CCMR_Output_CCS: bit_size: 2 variants: - - name: Output - description: CCx channel is configured as output - value: 0 + - name: Output + description: CCx channel is configured as output + value: 0 enum/CKD: bit_size: 2 variants: - - name: Div1 - description: t_DTS = t_CK_INT - value: 0 - - name: Div2 - description: t_DTS = 2 × t_CK_INT - value: 1 - - name: Div4 - description: t_DTS = 4 × t_CK_INT - value: 2 + - name: Div1 + description: t_DTS = t_CK_INT + value: 0 + - name: Div2 + description: t_DTS = 2 × t_CK_INT + value: 1 + - name: Div4 + description: t_DTS = 4 × t_CK_INT + value: 2 enum/CMS: bit_size: 2 variants: - - name: EdgeAligned - description: The counter counts up or down depending on the direction bit - value: 0 - - name: CenterAligned1 - description: The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down. - value: 1 - - name: CenterAligned2 - description: The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up. - value: 2 - - name: CenterAligned3 - description: The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down. - value: 3 + - name: EdgeAligned + description: The counter counts up or down depending on the direction bit + value: 0 + - name: CenterAligned1 + description: The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down. + value: 1 + - name: CenterAligned2 + description: The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up. + value: 2 + - name: CenterAligned3 + description: The counter counts up and down alternatively. Output compare interrupt flags are set both when the counter is counting up or down. + value: 3 enum/DIR: bit_size: 1 variants: - - name: Up - description: Counter used as upcounter - value: 0 - - name: Down - description: Counter used as downcounter - value: 1 + - name: Up + description: Counter used as upcounter + value: 0 + - name: Down + description: Counter used as downcounter + value: 1 enum/ECE: bit_size: 1 variants: - - name: Disabled - description: External clock mode 2 disabled - value: 0 - - name: Enabled - description: External clock mode 2 enabled. The counter is clocked by any active edge on the ETRF signal. - value: 1 + - name: Disabled + description: External clock mode 2 disabled + value: 0 + - name: Enabled + description: External clock mode 2 enabled. The counter is clocked by any active edge on the ETRF signal. + value: 1 enum/ETF: bit_size: 4 variants: - - name: NoFilter - description: "No filter, sampling is done at fDTS" - value: 0 - - name: FCK_INT_N2 - description: "fSAMPLING=fCK_INT, N=2" - value: 1 - - name: FCK_INT_N4 - description: "fSAMPLING=fCK_INT, N=4" - value: 2 - - name: FCK_INT_N8 - description: "fSAMPLING=fCK_INT, N=8" - value: 3 - - name: FDTS_Div2_N6 - description: "fSAMPLING=fDTS/2, N=6" - value: 4 - - name: FDTS_Div2_N8 - description: "fSAMPLING=fDTS/2, N=8" - value: 5 - - name: FDTS_Div4_N6 - description: "fSAMPLING=fDTS/4, N=6" - value: 6 - - name: FDTS_Div4_N8 - description: "fSAMPLING=fDTS/4, N=8" - value: 7 - - name: FDTS_Div8_N6 - description: "fSAMPLING=fDTS/8, N=6" - value: 8 - - name: FDTS_Div8_N8 - description: "fSAMPLING=fDTS/8, N=8" - value: 9 - - name: FDTS_Div16_N5 - description: "fSAMPLING=fDTS/16, N=5" - value: 10 - - name: FDTS_Div16_N6 - description: "fSAMPLING=fDTS/16, N=6" - value: 11 - - name: FDTS_Div16_N8 - description: "fSAMPLING=fDTS/16, N=8" - value: 12 - - name: FDTS_Div32_N5 - description: "fSAMPLING=fDTS/32, N=5" - value: 13 - - name: FDTS_Div32_N6 - description: "fSAMPLING=fDTS/32, N=6" - value: 14 - - name: FDTS_Div32_N8 - description: "fSAMPLING=fDTS/32, N=8" - value: 15 + - name: NoFilter + description: No filter, sampling is done at fDTS + value: 0 + - name: FCK_INT_N2 + description: fSAMPLING=fCK_INT, N=2 + value: 1 + - name: FCK_INT_N4 + description: fSAMPLING=fCK_INT, N=4 + value: 2 + - name: FCK_INT_N8 + description: fSAMPLING=fCK_INT, N=8 + value: 3 + - name: FDTS_Div2_N6 + description: fSAMPLING=fDTS/2, N=6 + value: 4 + - name: FDTS_Div2_N8 + description: fSAMPLING=fDTS/2, N=8 + value: 5 + - name: FDTS_Div4_N6 + description: fSAMPLING=fDTS/4, N=6 + value: 6 + - name: FDTS_Div4_N8 + description: fSAMPLING=fDTS/4, N=8 + value: 7 + - name: FDTS_Div8_N6 + description: fSAMPLING=fDTS/8, N=6 + value: 8 + - name: FDTS_Div8_N8 + description: fSAMPLING=fDTS/8, N=8 + value: 9 + - name: FDTS_Div16_N5 + description: fSAMPLING=fDTS/16, N=5 + value: 10 + - name: FDTS_Div16_N6 + description: fSAMPLING=fDTS/16, N=6 + value: 11 + - name: FDTS_Div16_N8 + description: fSAMPLING=fDTS/16, N=8 + value: 12 + - name: FDTS_Div32_N5 + description: fSAMPLING=fDTS/32, N=5 + value: 13 + - name: FDTS_Div32_N6 + description: fSAMPLING=fDTS/32, N=6 + value: 14 + - name: FDTS_Div32_N8 + description: fSAMPLING=fDTS/32, N=8 + value: 15 enum/ETP: bit_size: 1 variants: - - name: NotInverted - description: "ETR is noninverted, active at high level or rising edge" - value: 0 - - name: Inverted - description: "ETR is inverted, active at low level or falling edge" - value: 1 + - name: NotInverted + description: ETR is noninverted, active at high level or rising edge + value: 0 + - name: Inverted + description: ETR is inverted, active at low level or falling edge + value: 1 enum/ETPS: bit_size: 2 variants: - - name: Div1 - description: Prescaler OFF - value: 0 - - name: Div2 - description: ETRP frequency divided by 2 - value: 1 - - name: Div4 - description: ETRP frequency divided by 4 - value: 2 - - name: Div8 - description: ETRP frequency divided by 8 - value: 3 + - name: Div1 + description: Prescaler OFF + value: 0 + - name: Div2 + description: ETRP frequency divided by 2 + value: 1 + - name: Div4 + description: ETRP frequency divided by 4 + value: 2 + - name: Div8 + description: ETRP frequency divided by 8 + value: 3 enum/ICF: bit_size: 4 variants: - - name: NoFilter - description: "No filter, sampling is done at fDTS" - value: 0 - - name: FCK_INT_N2 - description: "fSAMPLING=fCK_INT, N=2" - value: 1 - - name: FCK_INT_N4 - description: "fSAMPLING=fCK_INT, N=4" - value: 2 - - name: FCK_INT_N8 - description: "fSAMPLING=fCK_INT, N=8" - value: 3 - - name: FDTS_Div2_N6 - description: "fSAMPLING=fDTS/2, N=6" - value: 4 - - name: FDTS_Div2_N8 - description: "fSAMPLING=fDTS/2, N=8" - value: 5 - - name: FDTS_Div4_N6 - description: "fSAMPLING=fDTS/4, N=6" - value: 6 - - name: FDTS_Div4_N8 - description: "fSAMPLING=fDTS/4, N=8" - value: 7 - - name: FDTS_Div8_N6 - description: "fSAMPLING=fDTS/8, N=6" - value: 8 - - name: FDTS_Div8_N8 - description: "fSAMPLING=fDTS/8, N=8" - value: 9 - - name: FDTS_Div16_N5 - description: "fSAMPLING=fDTS/16, N=5" - value: 10 - - name: FDTS_Div16_N6 - description: "fSAMPLING=fDTS/16, N=6" - value: 11 - - name: FDTS_Div16_N8 - description: "fSAMPLING=fDTS/16, N=8" - value: 12 - - name: FDTS_Div32_N5 - description: "fSAMPLING=fDTS/32, N=5" - value: 13 - - name: FDTS_Div32_N6 - description: "fSAMPLING=fDTS/32, N=6" - value: 14 - - name: FDTS_Div32_N8 - description: "fSAMPLING=fDTS/32, N=8" - value: 15 + - name: NoFilter + description: No filter, sampling is done at fDTS + value: 0 + - name: FCK_INT_N2 + description: fSAMPLING=fCK_INT, N=2 + value: 1 + - name: FCK_INT_N4 + description: fSAMPLING=fCK_INT, N=4 + value: 2 + - name: FCK_INT_N8 + description: fSAMPLING=fCK_INT, N=8 + value: 3 + - name: FDTS_Div2_N6 + description: fSAMPLING=fDTS/2, N=6 + value: 4 + - name: FDTS_Div2_N8 + description: fSAMPLING=fDTS/2, N=8 + value: 5 + - name: FDTS_Div4_N6 + description: fSAMPLING=fDTS/4, N=6 + value: 6 + - name: FDTS_Div4_N8 + description: fSAMPLING=fDTS/4, N=8 + value: 7 + - name: FDTS_Div8_N6 + description: fSAMPLING=fDTS/8, N=6 + value: 8 + - name: FDTS_Div8_N8 + description: fSAMPLING=fDTS/8, N=8 + value: 9 + - name: FDTS_Div16_N5 + description: fSAMPLING=fDTS/16, N=5 + value: 10 + - name: FDTS_Div16_N6 + description: fSAMPLING=fDTS/16, N=6 + value: 11 + - name: FDTS_Div16_N8 + description: fSAMPLING=fDTS/16, N=8 + value: 12 + - name: FDTS_Div32_N5 + description: fSAMPLING=fDTS/32, N=5 + value: 13 + - name: FDTS_Div32_N6 + description: fSAMPLING=fDTS/32, N=6 + value: 14 + - name: FDTS_Div32_N8 + description: fSAMPLING=fDTS/32, N=8 + value: 15 enum/MMS: bit_size: 3 variants: - - name: Reset - description: The UG bit from the TIMx_EGR register is used as trigger output - value: 0 - - name: Enable - description: "The counter enable signal, CNT_EN, is used as trigger output" - value: 1 - - name: Update - description: The update event is selected as trigger output - value: 2 - - name: ComparePulse - description: "The trigger output send a positive pulse when the CC1IF flag it to be set, as soon as a capture or a compare match occurred" - value: 3 - - name: CompareOC1 - description: OC1REF signal is used as trigger output - value: 4 - - name: CompareOC2 - description: OC2REF signal is used as trigger output - value: 5 - - name: CompareOC3 - description: OC3REF signal is used as trigger output - value: 6 - - name: CompareOC4 - description: OC4REF signal is used as trigger output - value: 7 + - name: Reset + description: The UG bit from the TIMx_EGR register is used as trigger output + value: 0 + - name: Enable + description: The counter enable signal, CNT_EN, is used as trigger output + value: 1 + - name: Update + description: The update event is selected as trigger output + value: 2 + - name: ComparePulse + description: The trigger output send a positive pulse when the CC1IF flag it to be set, as soon as a capture or a compare match occurred + value: 3 + - name: CompareOC1 + description: OC1REF signal is used as trigger output + value: 4 + - name: CompareOC2 + description: OC2REF signal is used as trigger output + value: 5 + - name: CompareOC3 + description: OC3REF signal is used as trigger output + value: 6 + - name: CompareOC4 + description: OC4REF signal is used as trigger output + value: 7 enum/MSM: bit_size: 1 variants: - - name: NoSync - description: No action - value: 0 - - name: Sync - description: The effect of an event on the trigger input (TRGI) is delayed to allow a perfect synchronization between the current timer and its slaves (through TRGO). It is useful if we want to synchronize several timers on a single external event. - value: 1 + - name: NoSync + description: No action + value: 0 + - name: Sync + description: The effect of an event on the trigger input (TRGI) is delayed to allow a perfect synchronization between the current timer and its slaves (through TRGO). It is useful if we want to synchronize several timers on a single external event. + value: 1 enum/OCM: bit_size: 3 variants: - - name: Frozen - description: The comparison between the output compare register TIMx_CCRy and the counter TIMx_CNT has no effect on the outputs - value: 0 - - name: ActiveOnMatch - description: Set channel to active level on match. OCyREF signal is forced high when the counter matches the capture/compare register - value: 1 - - name: InactiveOnMatch - description: Set channel to inactive level on match. OCyREF signal is forced low when the counter matches the capture/compare register - value: 2 - - name: Toggle - description: OCyREF toggles when TIMx_CNT=TIMx_CCRy - value: 3 - - name: ForceInactive - description: OCyREF is forced low - value: 4 - - name: ForceActive - description: OCyREF is forced high - value: 5 - - name: PwmMode1 - description: "In upcounting, channel is active as long as TIMx_CNTTIMx_CCRy else active" - value: 6 - - name: PwmMode2 - description: Inversely to PwmMode1 - value: 7 + - name: Frozen + description: The comparison between the output compare register TIMx_CCRy and the counter TIMx_CNT has no effect on the outputs + value: 0 + - name: ActiveOnMatch + description: Set channel to active level on match. OCyREF signal is forced high when the counter matches the capture/compare register + value: 1 + - name: InactiveOnMatch + description: Set channel to inactive level on match. OCyREF signal is forced low when the counter matches the capture/compare register + value: 2 + - name: Toggle + description: OCyREF toggles when TIMx_CNT=TIMx_CCRy + value: 3 + - name: ForceInactive + description: OCyREF is forced low + value: 4 + - name: ForceActive + description: OCyREF is forced high + value: 5 + - name: PwmMode1 + description: In upcounting, channel is active as long as TIMx_CNTTIMx_CCRy else active + value: 6 + - name: PwmMode2 + description: Inversely to PwmMode1 + value: 7 enum/OCPE: bit_size: 1 variants: - - name: Disabled - description: Preload register on CCR2 disabled. New values written to CCR2 are taken into account immediately - value: 0 - - name: Enabled - description: Preload register on CCR2 enabled. Preload value is loaded into active register on each update event - value: 1 + - name: Disabled + description: Preload register on CCR2 disabled. New values written to CCR2 are taken into account immediately + value: 0 + - name: Enabled + description: Preload register on CCR2 enabled. Preload value is loaded into active register on each update event + value: 1 enum/OPM: bit_size: 1 variants: - - name: Disabled - description: Counter is not stopped at update event - value: 0 - - name: Enabled - description: Counter stops counting at the next update event (clearing the CEN bit) - value: 1 + - name: Disabled + description: Counter is not stopped at update event + value: 0 + - name: Enabled + description: Counter stops counting at the next update event (clearing the CEN bit) + value: 1 enum/OSSI: bit_size: 1 variants: - - name: Disabled - description: "When inactive, OC/OCN outputs are disabled" - value: 0 - - name: IdleLevel - description: "When inactive, OC/OCN outputs are forced to idle level" - value: 1 + - name: Disabled + description: When inactive, OC/OCN outputs are disabled + value: 0 + - name: IdleLevel + description: When inactive, OC/OCN outputs are forced to idle level + value: 1 enum/OSSR: bit_size: 1 variants: - - name: Disabled - description: "When inactive, OC/OCN outputs are disabled" - value: 0 - - name: IdleLevel - description: "When inactive, OC/OCN outputs are enabled with their inactive level" - value: 1 + - name: Disabled + description: When inactive, OC/OCN outputs are disabled + value: 0 + - name: IdleLevel + description: When inactive, OC/OCN outputs are enabled with their inactive level + value: 1 enum/SMS: bit_size: 3 variants: - - name: Disabled - description: Slave mode disabled - if CEN = ‘1 then the prescaler is clocked directly by the internal clock. - value: 0 - - name: Encoder_Mode_1 - description: Encoder mode 1 - Counter counts up/down on TI2FP1 edge depending on TI1FP2 level. - value: 1 - - name: Encoder_Mode_2 - description: Encoder mode 2 - Counter counts up/down on TI1FP2 edge depending on TI2FP1 level. - value: 2 - - name: Encoder_Mode_3 - description: Encoder mode 3 - Counter counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input. - value: 3 - - name: Reset_Mode - description: Reset Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter and generates an update of the registers. - value: 4 - - name: Gated_Mode - description: Gated Mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops (but is not reset) as soon as the trigger becomes low. Both start and stop of the counter are controlled. - value: 5 - - name: Trigger_Mode - description: Trigger Mode - The counter starts at a rising edge of the trigger TRGI (but it is not reset). Only the start of the counter is controlled. - value: 6 - - name: Ext_Clock_Mode - description: External Clock Mode 1 - Rising edges of the selected trigger (TRGI) clock the counter. - value: 7 + - name: Disabled + description: Slave mode disabled - if CEN = ‘1 then the prescaler is clocked directly by the internal clock. + value: 0 + - name: Encoder_Mode_1 + description: Encoder mode 1 - Counter counts up/down on TI2FP1 edge depending on TI1FP2 level. + value: 1 + - name: Encoder_Mode_2 + description: Encoder mode 2 - Counter counts up/down on TI1FP2 edge depending on TI2FP1 level. + value: 2 + - name: Encoder_Mode_3 + description: Encoder mode 3 - Counter counts up/down on both TI1FP1 and TI2FP2 edges depending on the level of the other input. + value: 3 + - name: Reset_Mode + description: Reset Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter and generates an update of the registers. + value: 4 + - name: Gated_Mode + description: Gated Mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops (but is not reset) as soon as the trigger becomes low. Both start and stop of the counter are controlled. + value: 5 + - name: Trigger_Mode + description: Trigger Mode - The counter starts at a rising edge of the trigger TRGI (but it is not reset). Only the start of the counter is controlled. + value: 6 + - name: Ext_Clock_Mode + description: External Clock Mode 1 - Rising edges of the selected trigger (TRGI) clock the counter. + value: 7 enum/TIS: bit_size: 1 variants: - - name: Normal - description: The TIMx_CH1 pin is connected to TI1 input - value: 0 - - name: XOR - description: "The TIMx_CH1, CH2, CH3 pins are connected to TI1 input" - value: 1 + - name: Normal + description: The TIMx_CH1 pin is connected to TI1 input + value: 0 + - name: XOR + description: The TIMx_CH1, CH2, CH3 pins are connected to TI1 input + value: 1 enum/TS: bit_size: 3 variants: - - name: ITR0 - description: Internal Trigger 0 (ITR0) - value: 0 - - name: ITR1 - description: Internal Trigger 1 (ITR1) - value: 1 - - name: ITR2 - description: Internal Trigger 2 (ITR2) - value: 2 - - name: ITR3 - description: Internal Trigger 3 (ITR3) - value: 3 - - name: TI1F_ED - description: TI1 Edge Detector (TI1F_ED) - value: 4 - - name: TI1FP1 - description: Filtered Timer Input 1 (TI1FP1) - value: 5 - - name: TI2FP2 - description: Filtered Timer Input 2 (TI2FP2) - value: 6 - - name: ETRF - description: External Trigger input (ETRF) - value: 7 + - name: ITR0 + description: Internal Trigger 0 (ITR0) + value: 0 + - name: ITR1 + description: Internal Trigger 1 (ITR1) + value: 1 + - name: ITR2 + description: Internal Trigger 2 (ITR2) + value: 2 + - name: ITR3 + description: Internal Trigger 3 (ITR3) + value: 3 + - name: TI1F_ED + description: TI1 Edge Detector (TI1F_ED) + value: 4 + - name: TI1FP1 + description: Filtered Timer Input 1 (TI1FP1) + value: 5 + - name: TI2FP2 + description: Filtered Timer Input 2 (TI2FP2) + value: 6 + - name: ETRF + description: External Trigger input (ETRF) + value: 7 enum/URS: bit_size: 1 variants: - - name: AnyEvent - description: "Any of counter overflow/underflow, setting UG, or update through slave mode, generates an update interrupt or DMA request" - value: 0 - - name: CounterOnly - description: Only counter overflow/underflow generates an update interrupt or DMA request - value: 1 + - name: AnyEvent + description: Any of counter overflow/underflow, setting UG, or update through slave mode, generates an update interrupt or DMA request + value: 0 + - name: CounterOnly + description: Only counter overflow/underflow generates an update interrupt or DMA request + value: 1 diff --git a/data/registers/ucpd_v1.yaml b/data/registers/ucpd_v1.yaml index b9b40c5..512539c 100644 --- a/data/registers/ucpd_v1.yaml +++ b/data/registers/ucpd_v1.yaml @@ -1,627 +1,626 @@ ---- block/UCPD: description: USB Power Delivery interface items: - - name: CFGR1 - description: "configuration register 1 " - byte_offset: 0 - fieldset: CFGR1 - - name: CFGR2 - description: "configuration register 2 " - byte_offset: 4 - fieldset: CFGR2 - - name: CFGR3 - description: "configuration register 3 " - byte_offset: 8 - fieldset: CFGR3 - - name: CR - description: "control register " - byte_offset: 12 - fieldset: CR - - name: IMR - description: "interrupt mask register " - byte_offset: 16 - fieldset: IMR - - name: SR - description: "status register " - byte_offset: 20 - fieldset: SR - - name: ICR - description: "interrupt clear register " - byte_offset: 24 - fieldset: ICR - - name: TX_ORDSETR - description: "Tx ordered set type register " - byte_offset: 28 - fieldset: TX_ORDSETR - - name: TX_PAYSZR - description: "Tx payload size register " - byte_offset: 32 - fieldset: TX_PAYSZR - - name: TXDR - description: "Tx data register " - byte_offset: 36 - fieldset: TXDR - - name: RX_ORDSETR - byte_offset: 40 - fieldset: RX_ORDSETR - - name: RX_PAYSZR - byte_offset: 44 - fieldset: RX_PAYSZR - - name: RXDR - byte_offset: 48 - fieldset: RXDR - - name: RX_ORDEXTR1 - description: "Rx ordered set extension register 1 \t" - byte_offset: 52 - fieldset: RX_ORDEXTR1 - - name: RX_ORDEXTR2 - description: "Rx ordered set extension register 2 \t" - byte_offset: 56 - fieldset: RX_ORDEXTR2 - - name: IPVER - description: UCPD IP ID register - byte_offset: 1012 - access: Read - fieldset: IPVER - - name: IPID - description: UCPD IP ID register - byte_offset: 1016 - access: Read - fieldset: IPID - - name: MID - description: UCPD IP ID register - byte_offset: 1020 - access: Read - fieldset: MID + - name: CFGR1 + description: configuration register 1 + byte_offset: 0 + fieldset: CFGR1 + - name: CFGR2 + description: configuration register 2 + byte_offset: 4 + fieldset: CFGR2 + - name: CFGR3 + description: configuration register 3 + byte_offset: 8 + fieldset: CFGR3 + - name: CR + description: control register + byte_offset: 12 + fieldset: CR + - name: IMR + description: interrupt mask register + byte_offset: 16 + fieldset: IMR + - name: SR + description: status register + byte_offset: 20 + fieldset: SR + - name: ICR + description: interrupt clear register + byte_offset: 24 + fieldset: ICR + - name: TX_ORDSETR + description: Tx ordered set type register + byte_offset: 28 + fieldset: TX_ORDSETR + - name: TX_PAYSZR + description: Tx payload size register + byte_offset: 32 + fieldset: TX_PAYSZR + - name: TXDR + description: Tx data register + byte_offset: 36 + fieldset: TXDR + - name: RX_ORDSETR + byte_offset: 40 + fieldset: RX_ORDSETR + - name: RX_PAYSZR + byte_offset: 44 + fieldset: RX_PAYSZR + - name: RXDR + byte_offset: 48 + fieldset: RXDR + - name: RX_ORDEXTR1 + description: Rx ordered set extension register 1 + byte_offset: 52 + fieldset: RX_ORDEXTR1 + - name: RX_ORDEXTR2 + description: Rx ordered set extension register 2 + byte_offset: 56 + fieldset: RX_ORDEXTR2 + - name: IPVER + description: UCPD IP ID register + byte_offset: 1012 + access: Read + fieldset: IPVER + - name: IPID + description: UCPD IP ID register + byte_offset: 1016 + access: Read + fieldset: IPID + - name: MID + description: UCPD IP ID register + byte_offset: 1020 + access: Read + fieldset: MID fieldset/CFGR1: - description: "configuration register 1 " + description: configuration register 1 fields: - - name: HBITCLKDIV - description: "Division ratio for producing half-bit clock\r The bitfield determines the division ratio (the bitfield value plus one) of a clk divider producing half-bit clock (hbit_clk)." - bit_offset: 0 - bit_size: 6 - - name: IFRGAP - description: "Division ratio for producing inter-frame gap timer clock\r The bitfield determines the division ratio (the bitfield value minus one) of a clk divider producing inter-frame gap timer clock (tInterFrameGap).\r The division ratio 15 is to apply for Tx clock at the USB PD 2.0 specification nominal value. The division ratios below 15 are to apply for Tx clock below nominal, and the division ratios above 15 for Tx clock above nominal." - bit_offset: 6 - bit_size: 5 - - name: TRANSWIN - description: "Transition window duration\r The bitfield determines the division ratio (the bitfield value minus one) of a hbit_clk divider producing tTransitionWindow interval.\r Set a value that produces an interval of 12 to 20 us, taking into account the clk frequency and the HBITCLKDIV[5:0] bitfield setting." - bit_offset: 11 - bit_size: 5 - - name: PSC_USBPDCLK - description: "Pre-scaler division ratio for generating clk\r The bitfield determines the division ratio of a kernel clock pre-scaler producing peripheral clock (clk).\r It is recommended to use the pre-scaler so as to set the clk frequency in the range from 6 to 9 MHz." - bit_offset: 17 - bit_size: 3 - enum: PSC_USBPDCLK - - name: RXORDSETEN - description: "Receiver ordered set enable\r The bitfield determines the types of ordered sets that the receiver must detect. When set/cleared, each bit enables/disables a specific function:\r 0bxxxxxxxx1: SOP detect enabled\r 0bxxxxxxx1x: SOP' detect enabled\r 0bxxxxxx1xx: SOP'' detect enabled\r 0bxxxxx1xxx: Hard Reset detect enabled\r 0bxxxx1xxxx: Cable Detect reset enabled\r 0bxxx1xxxxx: SOP'_Debug enabled\r 0bxx1xxxxxx: SOP''_Debug enabled\r 0bx1xxxxxxx: SOP extension#1 enabled\r 0b1xxxxxxxx: SOP extension#2 enabled" - bit_offset: 20 - bit_size: 9 - - name: TXDMAEN - description: "Transmission DMA mode enable\r When set, the bit enables DMA mode for transmission." - bit_offset: 29 - bit_size: 1 - - name: RXDMAEN - description: "Reception DMA mode enable\r When set, the bit enables DMA mode for reception." - bit_offset: 30 - bit_size: 1 - - name: UCPDEN - description: "peripheral enable\r General enable of the peripheral.\r Upon disabling, the peripheral instantly quits any ongoing activity and all control bits and bitfields default to their reset values. They must be set to their desired values each time the peripheral transits from disabled to enabled state." - bit_offset: 31 - bit_size: 1 + - name: HBITCLKDIV + description: "Division ratio for producing half-bit clock\r The bitfield determines the division ratio (the bitfield value plus one) of a clk divider producing half-bit clock (hbit_clk)." + bit_offset: 0 + bit_size: 6 + - name: IFRGAP + description: "Division ratio for producing inter-frame gap timer clock\r The bitfield determines the division ratio (the bitfield value minus one) of a clk divider producing inter-frame gap timer clock (tInterFrameGap).\r The division ratio 15 is to apply for Tx clock at the USB PD 2.0 specification nominal value. The division ratios below 15 are to apply for Tx clock below nominal, and the division ratios above 15 for Tx clock above nominal." + bit_offset: 6 + bit_size: 5 + - name: TRANSWIN + description: "Transition window duration\r The bitfield determines the division ratio (the bitfield value minus one) of a hbit_clk divider producing tTransitionWindow interval.\r Set a value that produces an interval of 12 to 20 us, taking into account the clk frequency and the HBITCLKDIV[5:0] bitfield setting." + bit_offset: 11 + bit_size: 5 + - name: PSC_USBPDCLK + description: "Pre-scaler division ratio for generating clk\r The bitfield determines the division ratio of a kernel clock pre-scaler producing peripheral clock (clk).\r It is recommended to use the pre-scaler so as to set the clk frequency in the range from 6 to 9 MHz." + bit_offset: 17 + bit_size: 3 + enum: PSC_USBPDCLK + - name: RXORDSETEN + description: "Receiver ordered set enable\r The bitfield determines the types of ordered sets that the receiver must detect. When set/cleared, each bit enables/disables a specific function:\r 0bxxxxxxxx1: SOP detect enabled\r 0bxxxxxxx1x: SOP' detect enabled\r 0bxxxxxx1xx: SOP'' detect enabled\r 0bxxxxx1xxx: Hard Reset detect enabled\r 0bxxxx1xxxx: Cable Detect reset enabled\r 0bxxx1xxxxx: SOP'_Debug enabled\r 0bxx1xxxxxx: SOP''_Debug enabled\r 0bx1xxxxxxx: SOP extension#1 enabled\r 0b1xxxxxxxx: SOP extension#2 enabled" + bit_offset: 20 + bit_size: 9 + - name: TXDMAEN + description: "Transmission DMA mode enable\r When set, the bit enables DMA mode for transmission." + bit_offset: 29 + bit_size: 1 + - name: RXDMAEN + description: "Reception DMA mode enable\r When set, the bit enables DMA mode for reception." + bit_offset: 30 + bit_size: 1 + - name: UCPDEN + description: "peripheral enable\r General enable of the peripheral.\r Upon disabling, the peripheral instantly quits any ongoing activity and all control bits and bitfields default to their reset values. They must be set to their desired values each time the peripheral transits from disabled to enabled state." + bit_offset: 31 + bit_size: 1 fieldset/CFGR2: - description: "configuration register 2 " + description: configuration register 2 fields: - - name: RXFILTDIS - description: "BMC decoder Rx pre-filter enable\r The sampling clock is that of the receiver (that is, after pre-scaler)." - bit_offset: 0 - bit_size: 1 - - name: RXFILT2N3 - description: "BMC decoder Rx pre-filter sampling method\r Number of consistent consecutive samples before confirming a new value." - bit_offset: 1 - bit_size: 1 - - name: FORCECLK - description: Force ClkReq clock request - bit_offset: 2 - bit_size: 1 - - name: WUPEN - description: "Wakeup from Stop mode enable\r Setting the bit enables the ASYNC_INT signal." - bit_offset: 3 - bit_size: 1 + - name: RXFILTDIS + description: "BMC decoder Rx pre-filter enable\r The sampling clock is that of the receiver (that is, after pre-scaler)." + bit_offset: 0 + bit_size: 1 + - name: RXFILT2N3 + description: "BMC decoder Rx pre-filter sampling method\r Number of consistent consecutive samples before confirming a new value." + bit_offset: 1 + bit_size: 1 + - name: FORCECLK + description: Force ClkReq clock request + bit_offset: 2 + bit_size: 1 + - name: WUPEN + description: "Wakeup from Stop mode enable\r Setting the bit enables the ASYNC_INT signal." + bit_offset: 3 + bit_size: 1 fieldset/CFGR3: - description: "configuration register 3 " + description: configuration register 3 fields: - - name: TRIM_CC1_RD - description: SW trim value for Rd resistor on the CC1 line - bit_offset: 0 - bit_size: 4 - - name: TRIM_CC1_RP - description: SW trim value for Rp current sources on the CC1 line - bit_offset: 9 - bit_size: 4 - - name: TRIM_CC2_RD - description: SW trim value for Rd resistor on the CC2 line - bit_offset: 16 - bit_size: 4 - - name: TRIM_CC2_RP - description: SW trim value for Rp current sources on the CC2 line - bit_offset: 25 - bit_size: 4 + - name: TRIM_CC1_RD + description: SW trim value for Rd resistor on the CC1 line + bit_offset: 0 + bit_size: 4 + - name: TRIM_CC1_RP + description: SW trim value for Rp current sources on the CC1 line + bit_offset: 9 + bit_size: 4 + - name: TRIM_CC2_RD + description: SW trim value for Rd resistor on the CC2 line + bit_offset: 16 + bit_size: 4 + - name: TRIM_CC2_RP + description: SW trim value for Rp current sources on the CC2 line + bit_offset: 25 + bit_size: 4 fieldset/CR: - description: "control register " + description: control register fields: - - name: TXMODE - description: "Type of Tx packet\r Writing the bitfield triggers the action as follows, depending on the value:\r Others: invalid\r From V1.1 of the USB PD specification, there is a counter defined for the duration of the BIST Carrier Mode 2. To quit this mode correctly (after the \"tBISTContMode\" delay), disable the peripheral (UCPDEN = 0)." - bit_offset: 0 - bit_size: 2 - enum: TXMODE - - name: TXSEND - description: "Command to send a Tx packet\r The bit is cleared by hardware as soon as the packet transmission begins or is discarded." - bit_offset: 2 - bit_size: 1 - - name: TXHRST - description: "Command to send a Tx Hard Reset\r The bit is cleared by hardware as soon as the message transmission begins or is discarded." - bit_offset: 3 - bit_size: 1 - - name: RXMODE - description: "Receiver mode\r Determines the mode of the receiver.\r When the bit is set, RXORDSET behaves normally, RXDR no longer receives bytes yet the CRC checking still proceeds as for a normal message." - bit_offset: 4 - bit_size: 1 - - name: PHYRXEN - description: "USB Power Delivery receiver enable\r Both CC1 and CC2 receivers are disabled when the bit is cleared. Only the CC receiver selected via the PHYCCSEL bit is enabled when the bit is set." - bit_offset: 5 - bit_size: 1 - - name: PHYCCSEL - description: "CC1/CC2 line selector for USB Power Delivery signaling\r The selection depends on the cable orientation as discovered at attach." - bit_offset: 6 - bit_size: 1 - enum: PHYCCSEL - - name: ANASUBMODE - description: "Analog PHY sub-mode\r Refer to TYPEC_VSTATE_CCx for the effect of this bitfield." - bit_offset: 7 - bit_size: 2 - - name: ANAMODE - description: "Analog PHY operating mode\r The use of CC1 and CC2 depends on CCENABLE. Refer to ANAMODE, ANASUBMODE and link with TYPEC_VSTATE_CCx for the effect of this bitfield in conjunction with ANASUBMODE[1:0]." - bit_offset: 9 - bit_size: 1 - enum: ANAMODE - - name: CCENABLE - description: "CC line enable\r This bitfield enables CC1 and CC2 line analog PHYs (pull-ups and pull-downs) according to ANAMODE and ANASUBMODE[1:0] setting.\r A single line PHY can be enabled when, for example, the other line is driven by VCONN via an external VCONN switch. Enabling both PHYs is the normal usage for sink/source." - bit_offset: 10 - bit_size: 2 - enum: CCENABLE - - name: CC1VCONNEN - description: VCONN switch enable for CC1 - bit_offset: 13 - bit_size: 1 - - name: CC2VCONNEN - description: VCONN switch enable for CC2 - bit_offset: 14 - bit_size: 1 - - name: DBATTEN - description: "Dead battery function enable\r The bit takes effect upon setting the USBPDstrobe bit of the SYS_CONFIG register.\r Dead battery function only operates if the external circuit is appropriately configured." - bit_offset: 15 - bit_size: 1 - - name: FRSRXEN - description: "FRS event detection enable\r Setting the bit enables FRS Rx event (FRSEVT) detection on the CC line selected through the PHYCCSEL bit. 0: Disable\r Clear the bit when the device is attached to an FRS-incapable source/sink." - bit_offset: 16 - bit_size: 1 - - name: FRSTX - description: "FRS Tx signaling enable.\r Setting the bit enables FRS Tx signaling.\r The bit is cleared by hardware after a delay respecting the USB Power Delivery specification Revision 3.0." - bit_offset: 17 - bit_size: 1 - - name: RDCH - description: "Rdch condition drive\r The bit drives Rdch condition on the CC line selected through the PHYCCSEL bit (thus associated with VCONN), by remaining set during the source-only UnattachedWait.SRC state, to respect the Type-C state. Refer to \"USB Type-C ECN for Source VCONN Discharge\". The CCENABLE[1:0] bitfield must be set accordingly, too." - bit_offset: 18 - bit_size: 1 - - name: CC1TCDIS - description: "CC1 Type-C detector disable\r The bit disables the Type-C detector on the CC1 line.\r When enabled, the Type-C detector for CC1 is configured through ANAMODE and ANASUBMODE[1:0]." - bit_offset: 20 - bit_size: 1 - - name: CC2TCDIS - description: "CC2 Type-C detector disable\r The bit disables the Type-C detector on the CC2 line.\r When enabled, the Type-C detector for CC2 is configured through ANAMODE and ANASUBMODE[1:0]." - bit_offset: 21 - bit_size: 1 + - name: TXMODE + description: "Type of Tx packet\r Writing the bitfield triggers the action as follows, depending on the value:\r Others: invalid\r From V1.1 of the USB PD specification, there is a counter defined for the duration of the BIST Carrier Mode 2. To quit this mode correctly (after the \"tBISTContMode\" delay), disable the peripheral (UCPDEN = 0)." + bit_offset: 0 + bit_size: 2 + enum: TXMODE + - name: TXSEND + description: "Command to send a Tx packet\r The bit is cleared by hardware as soon as the packet transmission begins or is discarded." + bit_offset: 2 + bit_size: 1 + - name: TXHRST + description: "Command to send a Tx Hard Reset\r The bit is cleared by hardware as soon as the message transmission begins or is discarded." + bit_offset: 3 + bit_size: 1 + - name: RXMODE + description: "Receiver mode\r Determines the mode of the receiver.\r When the bit is set, RXORDSET behaves normally, RXDR no longer receives bytes yet the CRC checking still proceeds as for a normal message." + bit_offset: 4 + bit_size: 1 + - name: PHYRXEN + description: "USB Power Delivery receiver enable\r Both CC1 and CC2 receivers are disabled when the bit is cleared. Only the CC receiver selected via the PHYCCSEL bit is enabled when the bit is set." + bit_offset: 5 + bit_size: 1 + - name: PHYCCSEL + description: "CC1/CC2 line selector for USB Power Delivery signaling\r The selection depends on the cable orientation as discovered at attach." + bit_offset: 6 + bit_size: 1 + enum: PHYCCSEL + - name: ANASUBMODE + description: "Analog PHY sub-mode\r Refer to TYPEC_VSTATE_CCx for the effect of this bitfield." + bit_offset: 7 + bit_size: 2 + - name: ANAMODE + description: "Analog PHY operating mode\r The use of CC1 and CC2 depends on CCENABLE. Refer to ANAMODE, ANASUBMODE and link with TYPEC_VSTATE_CCx for the effect of this bitfield in conjunction with ANASUBMODE[1:0]." + bit_offset: 9 + bit_size: 1 + enum: ANAMODE + - name: CCENABLE + description: "CC line enable\r This bitfield enables CC1 and CC2 line analog PHYs (pull-ups and pull-downs) according to ANAMODE and ANASUBMODE[1:0] setting.\r A single line PHY can be enabled when, for example, the other line is driven by VCONN via an external VCONN switch. Enabling both PHYs is the normal usage for sink/source." + bit_offset: 10 + bit_size: 2 + enum: CCENABLE + - name: CC1VCONNEN + description: VCONN switch enable for CC1 + bit_offset: 13 + bit_size: 1 + - name: CC2VCONNEN + description: VCONN switch enable for CC2 + bit_offset: 14 + bit_size: 1 + - name: DBATTEN + description: "Dead battery function enable\r The bit takes effect upon setting the USBPDstrobe bit of the SYS_CONFIG register.\r Dead battery function only operates if the external circuit is appropriately configured." + bit_offset: 15 + bit_size: 1 + - name: FRSRXEN + description: "FRS event detection enable\r Setting the bit enables FRS Rx event (FRSEVT) detection on the CC line selected through the PHYCCSEL bit. 0: Disable\r Clear the bit when the device is attached to an FRS-incapable source/sink." + bit_offset: 16 + bit_size: 1 + - name: FRSTX + description: "FRS Tx signaling enable.\r Setting the bit enables FRS Tx signaling.\r The bit is cleared by hardware after a delay respecting the USB Power Delivery specification Revision 3.0." + bit_offset: 17 + bit_size: 1 + - name: RDCH + description: "Rdch condition drive\r The bit drives Rdch condition on the CC line selected through the PHYCCSEL bit (thus associated with VCONN), by remaining set during the source-only UnattachedWait.SRC state, to respect the Type-C state. Refer to \"USB Type-C ECN for Source VCONN Discharge\". The CCENABLE[1:0] bitfield must be set accordingly, too." + bit_offset: 18 + bit_size: 1 + - name: CC1TCDIS + description: "CC1 Type-C detector disable\r The bit disables the Type-C detector on the CC1 line.\r When enabled, the Type-C detector for CC1 is configured through ANAMODE and ANASUBMODE[1:0]." + bit_offset: 20 + bit_size: 1 + - name: CC2TCDIS + description: "CC2 Type-C detector disable\r The bit disables the Type-C detector on the CC2 line.\r When enabled, the Type-C detector for CC2 is configured through ANAMODE and ANASUBMODE[1:0]." + bit_offset: 21 + bit_size: 1 fieldset/ICR: - description: "interrupt clear register " + description: interrupt clear register fields: - - name: TXMSGDISCCF - description: "Tx message discard flag (TXMSGDISC) clear\r Setting the bit clears the TXMSGDISC flag in the SR register." - bit_offset: 1 - bit_size: 1 - - name: TXMSGSENTCF - description: "Tx message send flag (TXMSGSENT) clear\r Setting the bit clears the TXMSGSENT flag in the SR register." - bit_offset: 2 - bit_size: 1 - - name: TXMSGABTCF - description: "Tx message abort flag (TXMSGABT) clear\r Setting the bit clears the TXMSGABT flag in the SR register." - bit_offset: 3 - bit_size: 1 - - name: HRSTDISCCF - description: "Hard reset discard flag (HRSTDISC) clear\r Setting the bit clears the HRSTDISC flag in the SR register." - bit_offset: 4 - bit_size: 1 - - name: HRSTSENTCF - description: "Hard reset send flag (HRSTSENT) clear\r Setting the bit clears the HRSTSENT flag in the SR register." - bit_offset: 5 - bit_size: 1 - - name: TXUNDCF - description: "Tx underflow flag (TXUND) clear\r Setting the bit clears the TXUND flag in the SR register." - bit_offset: 6 - bit_size: 1 - - name: RXORDDETCF - description: "Rx ordered set detect flag (RXORDDET) clear\r Setting the bit clears the RXORDDET flag in the SR register." - bit_offset: 9 - bit_size: 1 - - name: RXHRSTDETCF - description: "Rx Hard Reset detect flag (RXHRSTDET) clear\r Setting the bit clears the RXHRSTDET flag in the SR register." - bit_offset: 10 - bit_size: 1 - - name: RXOVRCF - description: "Rx overflow flag (RXOVR) clear\r Setting the bit clears the RXOVR flag in the SR register." - bit_offset: 11 - bit_size: 1 - - name: RXMSGENDCF - description: "Rx message received flag (RXMSGEND) clear\r Setting the bit clears the RXMSGEND flag in the SR register." - bit_offset: 12 - bit_size: 1 - - name: TYPECEVT1CF - description: "Type-C CC1 event flag (TYPECEVT1) clear\r Setting the bit clears the TYPECEVT1 flag in the SR register" - bit_offset: 14 - bit_size: 1 - - name: TYPECEVT2CF - description: "Type-C CC2 line event flag (TYPECEVT2) clear\r Setting the bit clears the TYPECEVT2 flag in the SR register" - bit_offset: 15 - bit_size: 1 - - name: FRSEVTCF - description: "FRS event flag (FRSEVT) clear\r Setting the bit clears the FRSEVT flag in the SR register." - bit_offset: 20 - bit_size: 1 + - name: TXMSGDISCCF + description: "Tx message discard flag (TXMSGDISC) clear\r Setting the bit clears the TXMSGDISC flag in the SR register." + bit_offset: 1 + bit_size: 1 + - name: TXMSGSENTCF + description: "Tx message send flag (TXMSGSENT) clear\r Setting the bit clears the TXMSGSENT flag in the SR register." + bit_offset: 2 + bit_size: 1 + - name: TXMSGABTCF + description: "Tx message abort flag (TXMSGABT) clear\r Setting the bit clears the TXMSGABT flag in the SR register." + bit_offset: 3 + bit_size: 1 + - name: HRSTDISCCF + description: "Hard reset discard flag (HRSTDISC) clear\r Setting the bit clears the HRSTDISC flag in the SR register." + bit_offset: 4 + bit_size: 1 + - name: HRSTSENTCF + description: "Hard reset send flag (HRSTSENT) clear\r Setting the bit clears the HRSTSENT flag in the SR register." + bit_offset: 5 + bit_size: 1 + - name: TXUNDCF + description: "Tx underflow flag (TXUND) clear\r Setting the bit clears the TXUND flag in the SR register." + bit_offset: 6 + bit_size: 1 + - name: RXORDDETCF + description: "Rx ordered set detect flag (RXORDDET) clear\r Setting the bit clears the RXORDDET flag in the SR register." + bit_offset: 9 + bit_size: 1 + - name: RXHRSTDETCF + description: "Rx Hard Reset detect flag (RXHRSTDET) clear\r Setting the bit clears the RXHRSTDET flag in the SR register." + bit_offset: 10 + bit_size: 1 + - name: RXOVRCF + description: "Rx overflow flag (RXOVR) clear\r Setting the bit clears the RXOVR flag in the SR register." + bit_offset: 11 + bit_size: 1 + - name: RXMSGENDCF + description: "Rx message received flag (RXMSGEND) clear\r Setting the bit clears the RXMSGEND flag in the SR register." + bit_offset: 12 + bit_size: 1 + - name: TYPECEVT1CF + description: "Type-C CC1 event flag (TYPECEVT1) clear\r Setting the bit clears the TYPECEVT1 flag in the SR register" + bit_offset: 14 + bit_size: 1 + - name: TYPECEVT2CF + description: "Type-C CC2 line event flag (TYPECEVT2) clear\r Setting the bit clears the TYPECEVT2 flag in the SR register" + bit_offset: 15 + bit_size: 1 + - name: FRSEVTCF + description: "FRS event flag (FRSEVT) clear\r Setting the bit clears the FRSEVT flag in the SR register." + bit_offset: 20 + bit_size: 1 fieldset/IMR: - description: "interrupt mask register " + description: interrupt mask register fields: - - name: TXISIE - description: TXIS interrupt enable - bit_offset: 0 - bit_size: 1 - - name: TXMSGDISCIE - description: TXMSGDISC interrupt enable - bit_offset: 1 - bit_size: 1 - - name: TXMSGSENTIE - description: TXMSGSENT interrupt enable - bit_offset: 2 - bit_size: 1 - - name: TXMSGABTIE - description: TXMSGABT interrupt enable - bit_offset: 3 - bit_size: 1 - - name: HRSTDISCIE - description: HRSTDISC interrupt enable - bit_offset: 4 - bit_size: 1 - - name: HRSTSENTIE - description: HRSTSENT interrupt enable - bit_offset: 5 - bit_size: 1 - - name: TXUNDIE - description: TXUND interrupt enable - bit_offset: 6 - bit_size: 1 - - name: RXNEIE - description: RXNE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: RXORDDETIE - description: RXORDDET interrupt enable - bit_offset: 9 - bit_size: 1 - - name: RXHRSTDETIE - description: RXHRSTDET interrupt enable - bit_offset: 10 - bit_size: 1 - - name: RXOVRIE - description: RXOVR interrupt enable - bit_offset: 11 - bit_size: 1 - - name: RXMSGENDIE - description: RXMSGEND interrupt enable - bit_offset: 12 - bit_size: 1 - - name: TYPECEVT1IE - description: TYPECEVT1 interrupt enable - bit_offset: 14 - bit_size: 1 - - name: TYPECEVT2IE - description: TYPECEVT2 interrupt enable - bit_offset: 15 - bit_size: 1 - - name: FRSEVTIE - description: FRSEVT interrupt enable - bit_offset: 20 - bit_size: 1 + - name: TXISIE + description: TXIS interrupt enable + bit_offset: 0 + bit_size: 1 + - name: TXMSGDISCIE + description: TXMSGDISC interrupt enable + bit_offset: 1 + bit_size: 1 + - name: TXMSGSENTIE + description: TXMSGSENT interrupt enable + bit_offset: 2 + bit_size: 1 + - name: TXMSGABTIE + description: TXMSGABT interrupt enable + bit_offset: 3 + bit_size: 1 + - name: HRSTDISCIE + description: HRSTDISC interrupt enable + bit_offset: 4 + bit_size: 1 + - name: HRSTSENTIE + description: HRSTSENT interrupt enable + bit_offset: 5 + bit_size: 1 + - name: TXUNDIE + description: TXUND interrupt enable + bit_offset: 6 + bit_size: 1 + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: RXORDDETIE + description: RXORDDET interrupt enable + bit_offset: 9 + bit_size: 1 + - name: RXHRSTDETIE + description: RXHRSTDET interrupt enable + bit_offset: 10 + bit_size: 1 + - name: RXOVRIE + description: RXOVR interrupt enable + bit_offset: 11 + bit_size: 1 + - name: RXMSGENDIE + description: RXMSGEND interrupt enable + bit_offset: 12 + bit_size: 1 + - name: TYPECEVT1IE + description: TYPECEVT1 interrupt enable + bit_offset: 14 + bit_size: 1 + - name: TYPECEVT2IE + description: TYPECEVT2 interrupt enable + bit_offset: 15 + bit_size: 1 + - name: FRSEVTIE + description: FRSEVT interrupt enable + bit_offset: 20 + bit_size: 1 fieldset/IPID: description: UCPD IP ID register fields: - - name: IPID - description: IPID - bit_offset: 0 - bit_size: 32 + - name: IPID + description: IPID + bit_offset: 0 + bit_size: 32 fieldset/IPVER: description: UCPD IP ID register fields: - - name: IPVER - description: IPVER - bit_offset: 0 - bit_size: 32 + - name: IPVER + description: IPVER + bit_offset: 0 + bit_size: 32 fieldset/MID: description: UCPD IP ID register fields: - - name: IPID - description: IPID - bit_offset: 0 - bit_size: 32 + - name: IPID + description: IPID + bit_offset: 0 + bit_size: 32 fieldset/RXDR: fields: - - name: RXDATA - description: Data byte received - bit_offset: 0 - bit_size: 8 + - name: RXDATA + description: Data byte received + bit_offset: 0 + bit_size: 8 fieldset/RX_ORDEXTR1: - description: "Rx ordered set extension register 1 \t" + description: Rx ordered set extension register 1 fields: - - name: RXSOPX1 - description: "Ordered set 1 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." - bit_offset: 0 - bit_size: 20 + - name: RXSOPX1 + description: "Ordered set 1 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." + bit_offset: 0 + bit_size: 20 fieldset/RX_ORDEXTR2: - description: "Rx ordered set extension register 2 \t" + description: Rx ordered set extension register 2 fields: - - name: RXSOPX2 - description: "Ordered set 2 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." - bit_offset: 0 - bit_size: 20 + - name: RXSOPX2 + description: "Ordered set 2 received\r The bitfield contains a full 20-bit sequence received, consisting of four K‑codes, each of five bits. The bit 0 (bit 0 of K‑code1) is receive first, the bit 19 (bit 4 of K‑code4) last." + bit_offset: 0 + bit_size: 20 fieldset/RX_ORDSETR: fields: - - name: RXORDSET - description: Rx ordered set code detected - bit_offset: 0 - bit_size: 3 - enum: RXORDSET - - name: RXSOP3OF4 - description: The bit indicates the number of correct K‑codes. For debug purposes only. - bit_offset: 3 - bit_size: 1 - - name: RXSOPKINVALID - description: "The bitfield is for debug purposes only.\r Others: Invalid" - bit_offset: 4 - bit_size: 3 - enum: RXSOPKINVALID + - name: RXORDSET + description: Rx ordered set code detected + bit_offset: 0 + bit_size: 3 + enum: RXORDSET + - name: RXSOP3OF4 + description: The bit indicates the number of correct K‑codes. For debug purposes only. + bit_offset: 3 + bit_size: 1 + - name: RXSOPKINVALID + description: "The bitfield is for debug purposes only.\r Others: Invalid" + bit_offset: 4 + bit_size: 3 + enum: RXSOPKINVALID fieldset/RX_PAYSZR: fields: - - name: RXPAYSZ - description: "Rx payload size received\r This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled).\r The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low)." - bit_offset: 0 - bit_size: 10 + - name: RXPAYSZ + description: "Rx payload size received\r This bitfield contains the number of bytes of a payload (including header but excluding CRC) received: each time a new data byte is received in the RXDR register, the bitfield value increments and the RXMSGEND flag is set (and an interrupt generated if enabled).\r The bitfield may return a spurious value when a byte reception is ongoing (the RXMSGEND flag is low)." + bit_offset: 0 + bit_size: 10 fieldset/SR: - description: "status register " + description: status register fields: - - name: TXIS - description: "Transmit interrupt status\r The flag indicates that the TXDR register is empty and new data write is required (as the amount of data sent has not reached the payload size defined in the TXPAYSZ bitfield). The flag is cleared with the data write into the TXDR register." - bit_offset: 0 - bit_size: 1 - - name: TXMSGDISC - description: "Message transmission discarded\r The flag indicates that a message transmission was dropped. The flag is cleared by setting the TXMSGDISCCF bit.\r Transmission of a message can be dropped if there is a concurrent receive in progress or at excessive noise on the line. After a Tx message is discarded, the flag is only raised when the CC line becomes idle." - bit_offset: 1 - bit_size: 1 - - name: TXMSGSENT - description: "Message transmission completed\r The flag indicates the completion of packet transmission. It is cleared by setting the TXMSGSENTCF bit.\r In the event of a message transmission interrupted by a Hard Reset, the flag is not raised." - bit_offset: 2 - bit_size: 1 - - name: TXMSGABT - description: "Transmit message abort\r The flag indicates that a Tx message is aborted due to a subsequent Hard Reset message send request taking priority during transmit. It is cleared by setting the TXMSGABTCF bit." - bit_offset: 3 - bit_size: 1 - - name: HRSTDISC - description: "Hard Reset discarded\r The flag indicates that the Hard Reset message is discarded. The flag is cleared by setting the HRSTDISCCF bit." - bit_offset: 4 - bit_size: 1 - - name: HRSTSENT - description: "Hard Reset message sent\r The flag indicates that the Hard Reset message is sent. The flag is cleared by setting the HRSTSENTCF bit." - bit_offset: 5 - bit_size: 1 - - name: TXUND - description: "Tx data underrun detection\r The flag indicates that the Tx data register (TXDR) was not written in time for a transmit message to execute normally. It is cleared by setting the TXUNDCF bit." - bit_offset: 6 - bit_size: 1 - - name: RXNE - description: "Receive data register not empty detection\r The flag indicates that the RXDR register is not empty. It is automatically cleared upon reading RXDR." - bit_offset: 8 - bit_size: 1 - - name: RXORDDET - description: "Rx ordered set (4 K-codes) detection\r The flag indicates the detection of an ordered set. The relevant information is stored in the RXORDSET[2:0] bitfield of the RX_ORDSET register. It is cleared by setting the RXORDDETCF bit." - bit_offset: 9 - bit_size: 1 - - name: RXHRSTDET - description: "Rx Hard Reset receipt detection\r The flag indicates the receipt of valid Hard Reset message. It is cleared by setting the RXHRSTDETCF bit." - bit_offset: 10 - bit_size: 1 - - name: RXOVR - description: "Rx data overflow detection\r The flag indicates Rx data buffer overflow. It is cleared by setting the RXOVRCF bit.\r The buffer overflow can occur if the received data are not read fast enough." - bit_offset: 11 - bit_size: 1 - - name: RXMSGEND - description: "Rx message received\r The flag indicates whether a message (except Hard Reset message) has been received, regardless the CRC value. The flag is cleared by setting the RXMSGENDCF bit.\r The RXERR flag set when the RXMSGEND flag goes high indicates errors in the last-received message." - bit_offset: 12 - bit_size: 1 - - name: RXERR - description: "Receive message error\r The flag indicates errors of the last Rx message declared (via RXMSGEND), such as incorrect CRC or truncated message (a line becoming static before EOP is met). It is asserted whenever the RXMSGEND flag is set." - bit_offset: 13 - bit_size: 1 - - name: TYPECEVT1 - description: "Type-C voltage level event on CC1 line\r The flag indicates a change of the TYPEC_VSTATE_CC1[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." - bit_offset: 14 - bit_size: 1 - - name: TYPECEVT2 - description: "Type-C voltage level event on CC2 line\r The flag indicates a change of the TYPEC_VSTATE_CC2[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." - bit_offset: 15 - bit_size: 1 - - name: TYPEC_VSTATE_CC1 - description: "The status bitfield indicates the voltage level on the CC1 line in its steady state.\r The voltage variation on the CC1 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." - bit_offset: 16 - bit_size: 2 - enum: TYPEC_VSTATE_CC - - name: TYPEC_VSTATE_CC2 - description: "CC2 line voltage level\r The status bitfield indicates the voltage level on the CC2 line in its steady state.\r The voltage variation on the CC2 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." - bit_offset: 18 - bit_size: 2 - enum: TYPEC_VSTATE_CC - - name: FRSEVT - description: "FRS detection event\r The flag is cleared by setting the FRSEVTCF bit." - bit_offset: 20 - bit_size: 1 + - name: TXIS + description: "Transmit interrupt status\r The flag indicates that the TXDR register is empty and new data write is required (as the amount of data sent has not reached the payload size defined in the TXPAYSZ bitfield). The flag is cleared with the data write into the TXDR register." + bit_offset: 0 + bit_size: 1 + - name: TXMSGDISC + description: "Message transmission discarded\r The flag indicates that a message transmission was dropped. The flag is cleared by setting the TXMSGDISCCF bit.\r Transmission of a message can be dropped if there is a concurrent receive in progress or at excessive noise on the line. After a Tx message is discarded, the flag is only raised when the CC line becomes idle." + bit_offset: 1 + bit_size: 1 + - name: TXMSGSENT + description: "Message transmission completed\r The flag indicates the completion of packet transmission. It is cleared by setting the TXMSGSENTCF bit.\r In the event of a message transmission interrupted by a Hard Reset, the flag is not raised." + bit_offset: 2 + bit_size: 1 + - name: TXMSGABT + description: "Transmit message abort\r The flag indicates that a Tx message is aborted due to a subsequent Hard Reset message send request taking priority during transmit. It is cleared by setting the TXMSGABTCF bit." + bit_offset: 3 + bit_size: 1 + - name: HRSTDISC + description: "Hard Reset discarded\r The flag indicates that the Hard Reset message is discarded. The flag is cleared by setting the HRSTDISCCF bit." + bit_offset: 4 + bit_size: 1 + - name: HRSTSENT + description: "Hard Reset message sent\r The flag indicates that the Hard Reset message is sent. The flag is cleared by setting the HRSTSENTCF bit." + bit_offset: 5 + bit_size: 1 + - name: TXUND + description: "Tx data underrun detection\r The flag indicates that the Tx data register (TXDR) was not written in time for a transmit message to execute normally. It is cleared by setting the TXUNDCF bit." + bit_offset: 6 + bit_size: 1 + - name: RXNE + description: "Receive data register not empty detection\r The flag indicates that the RXDR register is not empty. It is automatically cleared upon reading RXDR." + bit_offset: 8 + bit_size: 1 + - name: RXORDDET + description: "Rx ordered set (4 K-codes) detection\r The flag indicates the detection of an ordered set. The relevant information is stored in the RXORDSET[2:0] bitfield of the RX_ORDSET register. It is cleared by setting the RXORDDETCF bit." + bit_offset: 9 + bit_size: 1 + - name: RXHRSTDET + description: "Rx Hard Reset receipt detection\r The flag indicates the receipt of valid Hard Reset message. It is cleared by setting the RXHRSTDETCF bit." + bit_offset: 10 + bit_size: 1 + - name: RXOVR + description: "Rx data overflow detection\r The flag indicates Rx data buffer overflow. It is cleared by setting the RXOVRCF bit.\r The buffer overflow can occur if the received data are not read fast enough." + bit_offset: 11 + bit_size: 1 + - name: RXMSGEND + description: "Rx message received\r The flag indicates whether a message (except Hard Reset message) has been received, regardless the CRC value. The flag is cleared by setting the RXMSGENDCF bit.\r The RXERR flag set when the RXMSGEND flag goes high indicates errors in the last-received message." + bit_offset: 12 + bit_size: 1 + - name: RXERR + description: "Receive message error\r The flag indicates errors of the last Rx message declared (via RXMSGEND), such as incorrect CRC or truncated message (a line becoming static before EOP is met). It is asserted whenever the RXMSGEND flag is set." + bit_offset: 13 + bit_size: 1 + - name: TYPECEVT1 + description: "Type-C voltage level event on CC1 line\r The flag indicates a change of the TYPEC_VSTATE_CC1[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." + bit_offset: 14 + bit_size: 1 + - name: TYPECEVT2 + description: "Type-C voltage level event on CC2 line\r The flag indicates a change of the TYPEC_VSTATE_CC2[1:0] bitfield value, which corresponds to a new Type-C event. It is cleared by setting the TYPECEVT2CF bit." + bit_offset: 15 + bit_size: 1 + - name: TYPEC_VSTATE_CC1 + description: "The status bitfield indicates the voltage level on the CC1 line in its steady state.\r The voltage variation on the CC1 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." + bit_offset: 16 + bit_size: 2 + enum: TYPEC_VSTATE_CC + - name: TYPEC_VSTATE_CC2 + description: "CC2 line voltage level\r The status bitfield indicates the voltage level on the CC2 line in its steady state.\r The voltage variation on the CC2 line during USB PD messages due to the BMC PHY modulation does not impact the bitfield value." + bit_offset: 18 + bit_size: 2 + enum: TYPEC_VSTATE_CC + - name: FRSEVT + description: "FRS detection event\r The flag is cleared by setting the FRSEVTCF bit." + bit_offset: 20 + bit_size: 1 fieldset/TXDR: - description: "Tx data register " + description: Tx data register fields: - - name: TXDATA - description: Data byte to transmit - bit_offset: 0 - bit_size: 8 + - name: TXDATA + description: Data byte to transmit + bit_offset: 0 + bit_size: 8 fieldset/TX_ORDSETR: - description: "Tx ordered set type register " + description: Tx ordered set type register fields: - - name: TXORDSET - description: "Ordered set to transmit\r The bitfield determines a full 20-bit sequence to transmit, consisting of four K-codes, each of five bits, defining the packet to transmit. The bit 0 (bit 0 of K-code1) is the first, the bit 19 (bit 4 of K‑code4) the last." - bit_offset: 0 - bit_size: 20 + - name: TXORDSET + description: "Ordered set to transmit\r The bitfield determines a full 20-bit sequence to transmit, consisting of four K-codes, each of five bits, defining the packet to transmit. The bit 0 (bit 0 of K-code1) is the first, the bit 19 (bit 4 of K‑code4) the last." + bit_offset: 0 + bit_size: 20 fieldset/TX_PAYSZR: - description: "Tx payload size register " + description: Tx payload size register fields: - - name: TXPAYSZ - description: "Payload size yet to transmit\r The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission." - bit_offset: 0 - bit_size: 10 + - name: TXPAYSZ + description: "Payload size yet to transmit\r The bitfield is modified by software and by hardware. It contains the number of bytes of a payload (including header but excluding CRC) yet to transmit: each time a data byte is written into the TXDR register, the bitfield value decrements and the TXIS bit is set, except when the bitfield value reaches zero. The enumerated values are standard payload sizes before the start of transmission." + bit_offset: 0 + bit_size: 10 enum/ANAMODE: bit_size: 1 variants: - - name: Source - description: Source - value: 0 - - name: Sink - description: Sink - value: 1 + - name: Source + description: Source + value: 0 + - name: Sink + description: Sink + value: 1 enum/CCENABLE: bit_size: 2 variants: - - name: Disabled - description: "Disable both PHYs " - value: 0 - - name: Cc1 - description: Enable CC1 PHY - value: 1 - - name: Cc2 - description: Enable CC2 PHY - value: 2 - - name: Both - description: Enable CC1 and CC2 PHY - value: 3 + - name: Disabled + description: Disable both PHYs + value: 0 + - name: Cc1 + description: Enable CC1 PHY + value: 1 + - name: Cc2 + description: Enable CC2 PHY + value: 2 + - name: Both + description: Enable CC1 and CC2 PHY + value: 3 enum/PHYCCSEL: bit_size: 1 variants: - - name: Cc1 - description: Use CC1 IO for Power Delivery communication - value: 0 - - name: Cc2 - description: Use CC2 IO for Power Delivery communication - value: 1 -enum/RXORDSET: - bit_size: 3 - variants: - - name: Sop - description: SOP code detected in receiver - value: 0 - - name: SopPrime - description: "SOP' code detected in receiver" - value: 1 - - name: SopDoublePrime - description: "SOP'' code detected in receiver" - value: 2 - - name: SopPrimeDebug - description: "SOP'_Debug detected in receiver" - value: 3 - - name: SopDoublePrimeDebug - description: "SOP''_Debug detected in receiver" - value: 4 - - name: CableReset - description: Cable Reset detected in receiver - value: 5 - - name: Ext1 - description: "SOP extension#1 detected in receiver" - value: 6 - - name: Ext2 - description: "SOP extension#2 detected in receiver" - value: 7 -enum/RXSOPKINVALID: - bit_size: 3 - variants: - - name: None - description: No K‑code corrupted - value: 0 - - name: First - description: First K‑code corrupted - value: 1 - - name: Second - description: Second K‑code corrupted - value: 2 - - name: Third - description: Third K‑code corrupted - value: 3 - - name: Fourth - description: Fourth K‑code corrupted - value: 4 -enum/TXMODE: - bit_size: 2 - variants: - - name: Packet - description: Transmission of Tx packet previously defined in other registers - value: 0 - - name: CableReset - description: Cable Reset sequence - value: 1 - - name: Bist - description: BIST test sequence (BIST Carrier Mode 2) - value: 2 -enum/TYPEC_VSTATE_CC: - bit_size: 2 - variants: - - name: Lowest - description: Lowest - value: 0 - - name: Low - description: Low - value: 1 - - name: High - description: High - value: 2 - - name: Highest - description: Highest - value: 3 + - name: Cc1 + description: Use CC1 IO for Power Delivery communication + value: 0 + - name: Cc2 + description: Use CC2 IO for Power Delivery communication + value: 1 enum/PSC_USBPDCLK: bit_size: 3 variants: - - name: Div1 - description: 1 (bypass) - value: 0 - - name: Div2 - description: "2" - value: 1 - - name: Div4 - description: "4" - value: 2 - - name: Div8 - description: "8" - value: 3 - - name: Div16 - description: "16" - value: 4 \ No newline at end of file + - name: Div1 + description: 1 (bypass) + value: 0 + - name: Div2 + description: '2' + value: 1 + - name: Div4 + description: '4' + value: 2 + - name: Div8 + description: '8' + value: 3 + - name: Div16 + description: '16' + value: 4 +enum/RXORDSET: + bit_size: 3 + variants: + - name: Sop + description: SOP code detected in receiver + value: 0 + - name: SopPrime + description: SOP' code detected in receiver + value: 1 + - name: SopDoublePrime + description: SOP'' code detected in receiver + value: 2 + - name: SopPrimeDebug + description: SOP'_Debug detected in receiver + value: 3 + - name: SopDoublePrimeDebug + description: SOP''_Debug detected in receiver + value: 4 + - name: CableReset + description: Cable Reset detected in receiver + value: 5 + - name: Ext1 + description: SOP extension#1 detected in receiver + value: 6 + - name: Ext2 + description: SOP extension#2 detected in receiver + value: 7 +enum/RXSOPKINVALID: + bit_size: 3 + variants: + - name: None + description: No K‑code corrupted + value: 0 + - name: First + description: First K‑code corrupted + value: 1 + - name: Second + description: Second K‑code corrupted + value: 2 + - name: Third + description: Third K‑code corrupted + value: 3 + - name: Fourth + description: Fourth K‑code corrupted + value: 4 +enum/TXMODE: + bit_size: 2 + variants: + - name: Packet + description: Transmission of Tx packet previously defined in other registers + value: 0 + - name: CableReset + description: Cable Reset sequence + value: 1 + - name: Bist + description: BIST test sequence (BIST Carrier Mode 2) + value: 2 +enum/TYPEC_VSTATE_CC: + bit_size: 2 + variants: + - name: Lowest + description: Lowest + value: 0 + - name: Low + description: Low + value: 1 + - name: High + description: High + value: 2 + - name: Highest + description: Highest + value: 3 diff --git a/data/registers/uid_v1.yaml b/data/registers/uid_v1.yaml index 77e9e86..e4185a1 100644 --- a/data/registers/uid_v1.yaml +++ b/data/registers/uid_v1.yaml @@ -1,11 +1,10 @@ ---- block/UID: description: Device Factory programmed 96-bit unique device identifier items: - - name: UID - description: Factory programmed 96-bit unique device identifier word 0 - array: - len: 3 - stride: 4 - byte_offset: 0 - access: Read + - name: UID + description: Factory programmed 96-bit unique device identifier word 0 + array: + len: 3 + stride: 4 + byte_offset: 0 + access: Read diff --git a/data/registers/usart_v1.yaml b/data/registers/usart_v1.yaml index 5887ffe..64bcf56 100644 --- a/data/registers/usart_v1.yaml +++ b/data/registers/usart_v1.yaml @@ -1,365 +1,364 @@ ---- block/UART: description: Universal asynchronous receiver transmitter items: - - name: SR - description: Status register - byte_offset: 0 - fieldset: SR - - name: DR - description: Data register - byte_offset: 4 - fieldset: DR - - name: BRR - description: Baud rate register - byte_offset: 8 - fieldset: BRR - - name: CR1 - description: Control register 1 - byte_offset: 12 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 16 - fieldset: CR2 - - name: CR3 - description: Control register 3 - byte_offset: 20 - fieldset: CR3 + - name: SR + description: Status register + byte_offset: 0 + fieldset: SR + - name: DR + description: Data register + byte_offset: 4 + fieldset: DR + - name: BRR + description: Baud rate register + byte_offset: 8 + fieldset: BRR + - name: CR1 + description: Control register 1 + byte_offset: 12 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 16 + fieldset: CR2 + - name: CR3 + description: Control register 3 + byte_offset: 20 + fieldset: CR3 block/USART: extends: UART description: Universal synchronous asynchronous receiver transmitter items: - - name: CR2 - description: Control register 2 - byte_offset: 16 - fieldset: CR2_USART - - name: CR3 - description: Control register 3 - byte_offset: 20 - fieldset: CR3_USART - - name: GTPR - description: Guard time and prescaler register - byte_offset: 24 - fieldset: GTPR + - name: CR2 + description: Control register 2 + byte_offset: 16 + fieldset: CR2_USART + - name: CR3 + description: Control register 3 + byte_offset: 20 + fieldset: CR3_USART + - name: GTPR + description: Guard time and prescaler register + byte_offset: 24 + fieldset: GTPR fieldset/BRR: description: Baud rate register fields: - - name: BRR - description: USARTDIV - bit_offset: 0 - bit_size: 16 + - name: BRR + description: USARTDIV + bit_offset: 0 + bit_size: 16 fieldset/CR1: description: Control register 1 fields: - - name: SBK - description: Send break - bit_offset: 0 - bit_size: 1 - - name: RWU - description: Receiver wakeup - bit_offset: 1 - bit_size: 1 - enum: RWU - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: IDLEIE - description: IDLE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: RXNEIE - description: RXNE interrupt enable - bit_offset: 5 - bit_size: 1 - - name: TCIE - description: Transmission complete interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: TXE interrupt enable - bit_offset: 7 - bit_size: 1 - - name: PEIE - description: PE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: PS - description: Parity selection - bit_offset: 9 - bit_size: 1 - enum: PS - - name: PCE - description: Parity control enable - bit_offset: 10 - bit_size: 1 - - name: WAKE - description: Receiver wakeup method - bit_offset: 11 - bit_size: 1 - enum: WAKE - - name: M0 - description: Word length - bit_offset: 12 - bit_size: 1 - enum: M0 - - name: UE - description: USART enable - bit_offset: 13 - bit_size: 1 + - name: SBK + description: Send break + bit_offset: 0 + bit_size: 1 + - name: RWU + description: Receiver wakeup + bit_offset: 1 + bit_size: 1 + enum: RWU + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: IDLEIE + description: IDLE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 5 + bit_size: 1 + - name: TCIE + description: Transmission complete interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: TXE interrupt enable + bit_offset: 7 + bit_size: 1 + - name: PEIE + description: PE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: PS + description: Parity selection + bit_offset: 9 + bit_size: 1 + enum: PS + - name: PCE + description: Parity control enable + bit_offset: 10 + bit_size: 1 + - name: WAKE + description: Receiver wakeup method + bit_offset: 11 + bit_size: 1 + enum: WAKE + - name: M0 + description: Word length + bit_offset: 12 + bit_size: 1 + enum: M0 + - name: UE + description: USART enable + bit_offset: 13 + bit_size: 1 fieldset/CR2: description: Control register 2 fields: - - name: ADD - description: Address of the USART node - bit_offset: 0 - bit_size: 4 - - name: LBDL - description: Line break detection length - bit_offset: 5 - bit_size: 1 - enum: LBDL - - name: LBDIE - description: LIN break detection interrupt enable - bit_offset: 6 - bit_size: 1 - - name: STOP - description: STOP bits - bit_offset: 12 - bit_size: 2 - enum: STOP - - name: LINEN - description: LIN mode enable - bit_offset: 14 - bit_size: 1 + - name: ADD + description: Address of the USART node + bit_offset: 0 + bit_size: 4 + - name: LBDL + description: Line break detection length + bit_offset: 5 + bit_size: 1 + enum: LBDL + - name: LBDIE + description: LIN break detection interrupt enable + bit_offset: 6 + bit_size: 1 + - name: STOP + description: STOP bits + bit_offset: 12 + bit_size: 2 + enum: STOP + - name: LINEN + description: LIN mode enable + bit_offset: 14 + bit_size: 1 fieldset/CR2_USART: extends: CR2 description: Control register 2 fields: - - name: LBCL - description: Last bit clock pulse - bit_offset: 8 - bit_size: 1 - - name: CPHA - description: Clock phase - bit_offset: 9 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 10 - bit_size: 1 - enum: CPOL - - name: CLKEN - description: Clock enable - bit_offset: 11 - bit_size: 1 + - name: LBCL + description: Last bit clock pulse + bit_offset: 8 + bit_size: 1 + - name: CPHA + description: Clock phase + bit_offset: 9 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 10 + bit_size: 1 + enum: CPOL + - name: CLKEN + description: Clock enable + bit_offset: 11 + bit_size: 1 fieldset/CR3: description: Control register 3 fields: - - name: EIE - description: Error interrupt enable - bit_offset: 0 - bit_size: 1 - - name: IREN - description: IrDA mode enable - bit_offset: 1 - bit_size: 1 - - name: IRLP - description: IrDA low-power - bit_offset: 2 - bit_size: 1 - enum: IRLP - - name: HDSEL - description: Half-duplex selection - bit_offset: 3 - bit_size: 1 - - name: DMAR - description: DMA enable receiver - bit_offset: 6 - bit_size: 1 - - name: DMAT - description: DMA enable transmitter - bit_offset: 7 - bit_size: 1 + - name: EIE + description: Error interrupt enable + bit_offset: 0 + bit_size: 1 + - name: IREN + description: IrDA mode enable + bit_offset: 1 + bit_size: 1 + - name: IRLP + description: IrDA low-power + bit_offset: 2 + bit_size: 1 + enum: IRLP + - name: HDSEL + description: Half-duplex selection + bit_offset: 3 + bit_size: 1 + - name: DMAR + description: DMA enable receiver + bit_offset: 6 + bit_size: 1 + - name: DMAT + description: DMA enable transmitter + bit_offset: 7 + bit_size: 1 fieldset/CR3_USART: extends: CR3 description: Control register 3 fields: - - name: NACK - description: Smartcard NACK enable - bit_offset: 4 - bit_size: 1 - - name: SCEN - description: Smartcard mode enable - bit_offset: 5 - bit_size: 1 - - name: RTSE - description: RTS enable - bit_offset: 8 - bit_size: 1 - - name: CTSE - description: CTS enable - bit_offset: 9 - bit_size: 1 - - name: CTSIE - description: CTS interrupt enable - bit_offset: 10 - bit_size: 1 + - name: NACK + description: Smartcard NACK enable + bit_offset: 4 + bit_size: 1 + - name: SCEN + description: Smartcard mode enable + bit_offset: 5 + bit_size: 1 + - name: RTSE + description: RTS enable + bit_offset: 8 + bit_size: 1 + - name: CTSE + description: CTS enable + bit_offset: 9 + bit_size: 1 + - name: CTSIE + description: CTS interrupt enable + bit_offset: 10 + bit_size: 1 fieldset/DR: description: Data register fields: - - name: DR - description: Data value - bit_offset: 0 - bit_size: 9 + - name: DR + description: Data value + bit_offset: 0 + bit_size: 9 fieldset/GTPR: description: Guard time and prescaler register fields: - - name: PSC - description: Prescaler value - bit_offset: 0 - bit_size: 8 - - name: GT - description: Guard time value - bit_offset: 8 - bit_size: 8 + - name: PSC + description: Prescaler value + bit_offset: 0 + bit_size: 8 + - name: GT + description: Guard time value + bit_offset: 8 + bit_size: 8 fieldset/SR: description: Status register fields: - - name: PE - description: Parity error - bit_offset: 0 - bit_size: 1 - - name: FE - description: Framing error - bit_offset: 1 - bit_size: 1 - - name: NE - description: Noise error flag - bit_offset: 2 - bit_size: 1 - - name: ORE - description: Overrun error - bit_offset: 3 - bit_size: 1 - - name: IDLE - description: Idle line detected - bit_offset: 4 - bit_size: 1 - - name: RXNE - description: Read data register not empty - bit_offset: 5 - bit_size: 1 - - name: TC - description: Transmission complete - bit_offset: 6 - bit_size: 1 - - name: TXE - description: Transmit data register empty - bit_offset: 7 - bit_size: 1 - - name: LBD - description: LIN break detection flag - bit_offset: 8 - bit_size: 1 + - name: PE + description: Parity error + bit_offset: 0 + bit_size: 1 + - name: FE + description: Framing error + bit_offset: 1 + bit_size: 1 + - name: NE + description: Noise error flag + bit_offset: 2 + bit_size: 1 + - name: ORE + description: Overrun error + bit_offset: 3 + bit_size: 1 + - name: IDLE + description: Idle line detected + bit_offset: 4 + bit_size: 1 + - name: RXNE + description: Read data register not empty + bit_offset: 5 + bit_size: 1 + - name: TC + description: Transmission complete + bit_offset: 6 + bit_size: 1 + - name: TXE + description: Transmit data register empty + bit_offset: 7 + bit_size: 1 + - name: LBD + description: LIN break detection flag + bit_offset: 8 + bit_size: 1 fieldset/SR_USART: extends: SR description: Status register fields: - - name: CTS - description: CTS flag - bit_offset: 9 - bit_size: 1 + - name: CTS + description: CTS flag + bit_offset: 9 + bit_size: 1 enum/CPHA: bit_size: 1 variants: - - name: First - description: The first clock transition is the first data capture edge - value: 0 - - name: Second - description: The second clock transition is the first data capture edge - value: 1 + - name: First + description: The first clock transition is the first data capture edge + value: 0 + - name: Second + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: Low - description: Steady low value on CK pin outside transmission window - value: 0 - - name: High - description: Steady high value on CK pin outside transmission window - value: 1 + - name: Low + description: Steady low value on CK pin outside transmission window + value: 0 + - name: High + description: Steady high value on CK pin outside transmission window + value: 1 enum/IRLP: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: LowPower - description: Low-power mode - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: LowPower + description: Low-power mode + value: 1 enum/LBDL: bit_size: 1 variants: - - name: Bit10 - description: 10-bit break detection - value: 0 - - name: Bit11 - description: 11-bit break detection - value: 1 + - name: Bit10 + description: 10-bit break detection + value: 0 + - name: Bit11 + description: 11-bit break detection + value: 1 enum/M0: bit_size: 1 variants: - - name: Bit8 - description: "1 start bit, 8 data bits, n stop bits" - value: 0 - - name: Bit9 - description: "1 start bit, 9 data bits, n stop bits" - value: 1 + - name: Bit8 + description: 1 start bit, 8 data bits, n stop bits + value: 0 + - name: Bit9 + description: 1 start bit, 9 data bits, n stop bits + value: 1 enum/PS: bit_size: 1 variants: - - name: Even - description: Even parity - value: 0 - - name: Odd - description: Odd parity - value: 1 + - name: Even + description: Even parity + value: 0 + - name: Odd + description: Odd parity + value: 1 enum/RWU: bit_size: 1 variants: - - name: Active - description: Receiver in active mode - value: 0 - - name: Mute - description: Receiver in mute mode - value: 1 + - name: Active + description: Receiver in active mode + value: 0 + - name: Mute + description: Receiver in mute mode + value: 1 enum/STOP: bit_size: 2 variants: - - name: Stop1 - description: 1 stop bit - value: 0 - - name: Stop0p5 - description: 0.5 stop bits - value: 1 - - name: Stop2 - description: 2 stop bits - value: 2 - - name: Stop1p5 - description: 1.5 stop bits - value: 3 + - name: Stop1 + description: 1 stop bit + value: 0 + - name: Stop0p5 + description: 0.5 stop bits + value: 1 + - name: Stop2 + description: 2 stop bits + value: 2 + - name: Stop1p5 + description: 1.5 stop bits + value: 3 enum/WAKE: bit_size: 1 variants: - - name: IdleLine - description: USART wakeup on idle line - value: 0 - - name: AddressMark - description: USART wakeup on address mark - value: 1 + - name: IdleLine + description: USART wakeup on idle line + value: 0 + - name: AddressMark + description: USART wakeup on address mark + value: 1 diff --git a/data/registers/usart_v2.yaml b/data/registers/usart_v2.yaml index 99f8949..c8c04e6 100644 --- a/data/registers/usart_v2.yaml +++ b/data/registers/usart_v2.yaml @@ -1,383 +1,382 @@ ---- block/UART: description: Universal asynchronous receiver transmitter items: - - name: SR - description: Status register - byte_offset: 0 - fieldset: SR - - name: DR - description: Data register - byte_offset: 4 - fieldset: DR - - name: BRR - description: Baud rate register - byte_offset: 8 - fieldset: BRR - - name: CR1 - description: Control register 1 - byte_offset: 12 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 16 - fieldset: CR2 - - name: CR3 - description: Control register 3 - byte_offset: 20 - fieldset: CR3 + - name: SR + description: Status register + byte_offset: 0 + fieldset: SR + - name: DR + description: Data register + byte_offset: 4 + fieldset: DR + - name: BRR + description: Baud rate register + byte_offset: 8 + fieldset: BRR + - name: CR1 + description: Control register 1 + byte_offset: 12 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 16 + fieldset: CR2 + - name: CR3 + description: Control register 3 + byte_offset: 20 + fieldset: CR3 block/USART: extends: UART description: Universal synchronous asynchronous receiver transmitter items: - - name: CR2 - description: Control register 2 - byte_offset: 16 - fieldset: CR2_USART - - name: CR3 - description: Control register 3 - byte_offset: 20 - fieldset: CR3_USART - - name: GTPR - description: Guard time and prescaler register - byte_offset: 24 - fieldset: GTPR + - name: CR2 + description: Control register 2 + byte_offset: 16 + fieldset: CR2_USART + - name: CR3 + description: Control register 3 + byte_offset: 20 + fieldset: CR3_USART + - name: GTPR + description: Guard time and prescaler register + byte_offset: 24 + fieldset: GTPR fieldset/BRR: description: Baud rate register fields: - - name: BRR - description: USARTDIV - bit_offset: 0 - bit_size: 16 + - name: BRR + description: USARTDIV + bit_offset: 0 + bit_size: 16 fieldset/CR1: description: Control register 1 fields: - - name: SBK - description: Send break - bit_offset: 0 - bit_size: 1 - - name: RWU - description: Receiver wakeup - bit_offset: 1 - bit_size: 1 - enum: RWU - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: IDLEIE - description: IDLE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: RXNEIE - description: RXNE interrupt enable - bit_offset: 5 - bit_size: 1 - - name: TCIE - description: Transmission complete interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: TXE interrupt enable - bit_offset: 7 - bit_size: 1 - - name: PEIE - description: PE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: PS - description: Parity selection - bit_offset: 9 - bit_size: 1 - enum: PS - - name: PCE - description: Parity control enable - bit_offset: 10 - bit_size: 1 - - name: WAKE - description: Receiver wakeup method - bit_offset: 11 - bit_size: 1 - enum: WAKE - - name: M0 - description: Word length - bit_offset: 12 - bit_size: 1 - enum: M0 - - name: UE - description: USART enable - bit_offset: 13 - bit_size: 1 - - name: OVER8 - description: Oversampling mode - bit_offset: 15 - bit_size: 1 - enum: OVER8 + - name: SBK + description: Send break + bit_offset: 0 + bit_size: 1 + - name: RWU + description: Receiver wakeup + bit_offset: 1 + bit_size: 1 + enum: RWU + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: IDLEIE + description: IDLE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 5 + bit_size: 1 + - name: TCIE + description: Transmission complete interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: TXE interrupt enable + bit_offset: 7 + bit_size: 1 + - name: PEIE + description: PE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: PS + description: Parity selection + bit_offset: 9 + bit_size: 1 + enum: PS + - name: PCE + description: Parity control enable + bit_offset: 10 + bit_size: 1 + - name: WAKE + description: Receiver wakeup method + bit_offset: 11 + bit_size: 1 + enum: WAKE + - name: M0 + description: Word length + bit_offset: 12 + bit_size: 1 + enum: M0 + - name: UE + description: USART enable + bit_offset: 13 + bit_size: 1 + - name: OVER8 + description: Oversampling mode + bit_offset: 15 + bit_size: 1 + enum: OVER8 fieldset/CR2: description: Control register 2 fields: - - name: ADD - description: Address of the USART node - bit_offset: 0 - bit_size: 4 - - name: LBDL - description: Line break detection length - bit_offset: 5 - bit_size: 1 - enum: LBDL - - name: LBDIE - description: LIN break detection interrupt enable - bit_offset: 6 - bit_size: 1 - - name: STOP - description: STOP bits - bit_offset: 12 - bit_size: 2 - enum: STOP - - name: LINEN - description: LIN mode enable - bit_offset: 14 - bit_size: 1 + - name: ADD + description: Address of the USART node + bit_offset: 0 + bit_size: 4 + - name: LBDL + description: Line break detection length + bit_offset: 5 + bit_size: 1 + enum: LBDL + - name: LBDIE + description: LIN break detection interrupt enable + bit_offset: 6 + bit_size: 1 + - name: STOP + description: STOP bits + bit_offset: 12 + bit_size: 2 + enum: STOP + - name: LINEN + description: LIN mode enable + bit_offset: 14 + bit_size: 1 fieldset/CR2_USART: extends: CR2 description: Control register 2 fields: - - name: LBCL - description: Last bit clock pulse - bit_offset: 8 - bit_size: 1 - - name: CPHA - description: Clock phase - bit_offset: 9 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 10 - bit_size: 1 - enum: CPOL - - name: CLKEN - description: Clock enable - bit_offset: 11 - bit_size: 1 + - name: LBCL + description: Last bit clock pulse + bit_offset: 8 + bit_size: 1 + - name: CPHA + description: Clock phase + bit_offset: 9 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 10 + bit_size: 1 + enum: CPOL + - name: CLKEN + description: Clock enable + bit_offset: 11 + bit_size: 1 fieldset/CR3: description: Control register 3 fields: - - name: EIE - description: Error interrupt enable - bit_offset: 0 - bit_size: 1 - - name: IREN - description: IrDA mode enable - bit_offset: 1 - bit_size: 1 - - name: IRLP - description: IrDA low-power - bit_offset: 2 - bit_size: 1 - enum: IRLP - - name: HDSEL - description: Half-duplex selection - bit_offset: 3 - bit_size: 1 - - name: DMAR - description: DMA enable receiver - bit_offset: 6 - bit_size: 1 - - name: DMAT - description: DMA enable transmitter - bit_offset: 7 - bit_size: 1 + - name: EIE + description: Error interrupt enable + bit_offset: 0 + bit_size: 1 + - name: IREN + description: IrDA mode enable + bit_offset: 1 + bit_size: 1 + - name: IRLP + description: IrDA low-power + bit_offset: 2 + bit_size: 1 + enum: IRLP + - name: HDSEL + description: Half-duplex selection + bit_offset: 3 + bit_size: 1 + - name: DMAR + description: DMA enable receiver + bit_offset: 6 + bit_size: 1 + - name: DMAT + description: DMA enable transmitter + bit_offset: 7 + bit_size: 1 fieldset/CR3_USART: extends: CR3 description: Control register 3 fields: - - name: NACK - description: Smartcard NACK enable - bit_offset: 4 - bit_size: 1 - - name: SCEN - description: Smartcard mode enable - bit_offset: 5 - bit_size: 1 - - name: RTSE - description: RTS enable - bit_offset: 8 - bit_size: 1 - - name: CTSE - description: CTS enable - bit_offset: 9 - bit_size: 1 - - name: CTSIE - description: CTS interrupt enable - bit_offset: 10 - bit_size: 1 - - name: ONEBIT - description: One sample bit method enable - bit_offset: 11 - bit_size: 1 + - name: NACK + description: Smartcard NACK enable + bit_offset: 4 + bit_size: 1 + - name: SCEN + description: Smartcard mode enable + bit_offset: 5 + bit_size: 1 + - name: RTSE + description: RTS enable + bit_offset: 8 + bit_size: 1 + - name: CTSE + description: CTS enable + bit_offset: 9 + bit_size: 1 + - name: CTSIE + description: CTS interrupt enable + bit_offset: 10 + bit_size: 1 + - name: ONEBIT + description: One sample bit method enable + bit_offset: 11 + bit_size: 1 fieldset/DR: description: Data register fields: - - name: DR - description: Data value - bit_offset: 0 - bit_size: 9 + - name: DR + description: Data value + bit_offset: 0 + bit_size: 9 fieldset/GTPR: description: Guard time and prescaler register fields: - - name: PSC - description: Prescaler value - bit_offset: 0 - bit_size: 8 - - name: GT - description: Guard time value - bit_offset: 8 - bit_size: 8 + - name: PSC + description: Prescaler value + bit_offset: 0 + bit_size: 8 + - name: GT + description: Guard time value + bit_offset: 8 + bit_size: 8 fieldset/SR: description: Status register fields: - - name: PE - description: Parity error - bit_offset: 0 - bit_size: 1 - - name: FE - description: Framing error - bit_offset: 1 - bit_size: 1 - - name: NE - description: Noise error flag - bit_offset: 2 - bit_size: 1 - - name: ORE - description: Overrun error - bit_offset: 3 - bit_size: 1 - - name: IDLE - description: Idle line detected - bit_offset: 4 - bit_size: 1 - - name: RXNE - description: Read data register not empty - bit_offset: 5 - bit_size: 1 - - name: TC - description: Transmission complete - bit_offset: 6 - bit_size: 1 - - name: TXE - description: Transmit data register empty - bit_offset: 7 - bit_size: 1 - - name: LBD - description: LIN break detection flag - bit_offset: 8 - bit_size: 1 + - name: PE + description: Parity error + bit_offset: 0 + bit_size: 1 + - name: FE + description: Framing error + bit_offset: 1 + bit_size: 1 + - name: NE + description: Noise error flag + bit_offset: 2 + bit_size: 1 + - name: ORE + description: Overrun error + bit_offset: 3 + bit_size: 1 + - name: IDLE + description: Idle line detected + bit_offset: 4 + bit_size: 1 + - name: RXNE + description: Read data register not empty + bit_offset: 5 + bit_size: 1 + - name: TC + description: Transmission complete + bit_offset: 6 + bit_size: 1 + - name: TXE + description: Transmit data register empty + bit_offset: 7 + bit_size: 1 + - name: LBD + description: LIN break detection flag + bit_offset: 8 + bit_size: 1 fieldset/SR_USART: extends: SR description: Status register fields: - - name: CTS - description: CTS flag - bit_offset: 9 - bit_size: 1 + - name: CTS + description: CTS flag + bit_offset: 9 + bit_size: 1 enum/CPHA: bit_size: 1 variants: - - name: First - description: The first clock transition is the first data capture edge - value: 0 - - name: Second - description: The second clock transition is the first data capture edge - value: 1 + - name: First + description: The first clock transition is the first data capture edge + value: 0 + - name: Second + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: Low - description: Steady low value on CK pin outside transmission window - value: 0 - - name: High - description: Steady high value on CK pin outside transmission window - value: 1 + - name: Low + description: Steady low value on CK pin outside transmission window + value: 0 + - name: High + description: Steady high value on CK pin outside transmission window + value: 1 enum/IRLP: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: LowPower - description: Low-power mode - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: LowPower + description: Low-power mode + value: 1 enum/LBDL: bit_size: 1 variants: - - name: Bit10 - description: 10-bit break detection - value: 0 - - name: Bit11 - description: 11-bit break detection - value: 1 + - name: Bit10 + description: 10-bit break detection + value: 0 + - name: Bit11 + description: 11-bit break detection + value: 1 enum/M0: bit_size: 1 variants: - - name: Bit8 - description: "1 start bit, 8 data bits, n stop bits" - value: 0 - - name: Bit9 - description: "1 start bit, 9 data bits, n stop bits" - value: 1 + - name: Bit8 + description: 1 start bit, 8 data bits, n stop bits + value: 0 + - name: Bit9 + description: 1 start bit, 9 data bits, n stop bits + value: 1 enum/OVER8: bit_size: 1 variants: - - name: Oversampling16 - description: Oversampling by 16 - value: 0 - - name: Oversampling8 - description: Oversampling by 8 - value: 1 + - name: Oversampling16 + description: Oversampling by 16 + value: 0 + - name: Oversampling8 + description: Oversampling by 8 + value: 1 enum/PS: bit_size: 1 variants: - - name: Even - description: Even parity - value: 0 - - name: Odd - description: Odd parity - value: 1 + - name: Even + description: Even parity + value: 0 + - name: Odd + description: Odd parity + value: 1 enum/RWU: bit_size: 1 variants: - - name: Active - description: Receiver in active mode - value: 0 - - name: Mute - description: Receiver in mute mode - value: 1 + - name: Active + description: Receiver in active mode + value: 0 + - name: Mute + description: Receiver in mute mode + value: 1 enum/STOP: bit_size: 2 variants: - - name: Stop1 - description: 1 stop bit - value: 0 - - name: Stop0p5 - description: 0.5 stop bits - value: 1 - - name: Stop2 - description: 2 stop bits - value: 2 - - name: Stop1p5 - description: 1.5 stop bits - value: 3 + - name: Stop1 + description: 1 stop bit + value: 0 + - name: Stop0p5 + description: 0.5 stop bits + value: 1 + - name: Stop2 + description: 2 stop bits + value: 2 + - name: Stop1p5 + description: 1.5 stop bits + value: 3 enum/WAKE: bit_size: 1 variants: - - name: IdleLine - description: USART wakeup on idle line - value: 0 - - name: AddressMark - description: USART wakeup on address mark - value: 1 + - name: IdleLine + description: USART wakeup on idle line + value: 0 + - name: AddressMark + description: USART wakeup on address mark + value: 1 diff --git a/data/registers/usart_v3.yaml b/data/registers/usart_v3.yaml index b4a97c4..131db12 100644 --- a/data/registers/usart_v3.yaml +++ b/data/registers/usart_v3.yaml @@ -1,714 +1,713 @@ ---- block/LPUART: description: Low-power Universal synchronous asynchronous receiver transmitter items: - - name: CR1 - description: Control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Control register 3 - byte_offset: 8 - fieldset: CR3 - - name: BRR - description: Baud rate register - byte_offset: 12 - fieldset: BRR - - name: RQR - description: Request register - byte_offset: 24 - access: Write - fieldset: RQR - - name: ISR - description: Interrupt & status register - byte_offset: 28 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt flag clear register - byte_offset: 32 - access: Write - fieldset: ICR - - name: RDR - description: Receive data register - byte_offset: 36 - access: Read - fieldset: DR - - name: TDR - description: Transmit data register - byte_offset: 40 - access: Write - fieldset: DR + - name: CR1 + description: Control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Control register 3 + byte_offset: 8 + fieldset: CR3 + - name: BRR + description: Baud rate register + byte_offset: 12 + fieldset: BRR + - name: RQR + description: Request register + byte_offset: 24 + access: Write + fieldset: RQR + - name: ISR + description: Interrupt & status register + byte_offset: 28 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt flag clear register + byte_offset: 32 + access: Write + fieldset: ICR + - name: RDR + description: Receive data register + byte_offset: 36 + access: Read + fieldset: DR + - name: TDR + description: Transmit data register + byte_offset: 40 + access: Write + fieldset: DR block/USART: description: Universal synchronous asynchronous receiver transmitter items: - - name: CR1 - description: Control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Control register 3 - byte_offset: 8 - fieldset: CR3 - - name: BRR - description: Baud rate register - byte_offset: 12 - fieldset: BRR - - name: GTPR - description: Guard time and prescaler register - byte_offset: 16 - fieldset: GTPR - - name: RTOR - description: Receiver timeout register - byte_offset: 20 - fieldset: RTOR - - name: RQR - description: Request register - byte_offset: 24 - access: Write - fieldset: RQR - - name: ISR - description: Interrupt & status register - byte_offset: 28 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt flag clear register - byte_offset: 32 - access: Write - fieldset: ICR - - name: RDR - description: Receive data register - byte_offset: 36 - access: Read - fieldset: DR - - name: TDR - description: Transmit data register - byte_offset: 40 - access: Write - fieldset: DR + - name: CR1 + description: Control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Control register 3 + byte_offset: 8 + fieldset: CR3 + - name: BRR + description: Baud rate register + byte_offset: 12 + fieldset: BRR + - name: GTPR + description: Guard time and prescaler register + byte_offset: 16 + fieldset: GTPR + - name: RTOR + description: Receiver timeout register + byte_offset: 20 + fieldset: RTOR + - name: RQR + description: Request register + byte_offset: 24 + access: Write + fieldset: RQR + - name: ISR + description: Interrupt & status register + byte_offset: 28 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt flag clear register + byte_offset: 32 + access: Write + fieldset: ICR + - name: RDR + description: Receive data register + byte_offset: 36 + access: Read + fieldset: DR + - name: TDR + description: Transmit data register + byte_offset: 40 + access: Write + fieldset: DR fieldset/BRR: description: Baud rate register fields: - - name: BRR - description: USARTDIV - bit_offset: 0 - bit_size: 16 + - name: BRR + description: USARTDIV + bit_offset: 0 + bit_size: 16 fieldset/CR1: description: Control register 1 fields: - - name: UE - description: USART enable - bit_offset: 0 - bit_size: 1 - - name: UESM - description: USART enable in Stop mode - bit_offset: 1 - bit_size: 1 - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: IDLEIE - description: IDLE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: RXNEIE - description: RXNE interrupt enable - bit_offset: 5 - bit_size: 1 - - name: TCIE - description: Transmission complete interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: TXE interrupt enable - bit_offset: 7 - bit_size: 1 - - name: PEIE - description: PE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: PS - description: Parity selection - bit_offset: 9 - bit_size: 1 - enum: PS - - name: PCE - description: Parity control enable - bit_offset: 10 - bit_size: 1 - - name: WAKE - description: Receiver wakeup method - bit_offset: 11 - bit_size: 1 - enum: WAKE - - name: M0 - description: Word length - bit_offset: 12 - bit_size: 1 - enum: M0 - - name: MME - description: Mute mode enable - bit_offset: 13 - bit_size: 1 - - name: CMIE - description: Character match interrupt enable - bit_offset: 14 - bit_size: 1 - - name: OVER8 - description: Oversampling mode - bit_offset: 15 - bit_size: 1 - enum: OVER8 - - name: DEDT - description: Driver Enable deassertion time - bit_offset: 16 - bit_size: 5 - - name: DEAT - description: Driver Enable assertion time - bit_offset: 21 - bit_size: 5 - - name: RTOIE - description: Receiver timeout interrupt enable - bit_offset: 26 - bit_size: 1 - - name: EOBIE - description: End of Block interrupt enable - bit_offset: 27 - bit_size: 1 - - name: M1 - description: Word length - bit_offset: 28 - bit_size: 1 - enum: M1 + - name: UE + description: USART enable + bit_offset: 0 + bit_size: 1 + - name: UESM + description: USART enable in Stop mode + bit_offset: 1 + bit_size: 1 + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: IDLEIE + description: IDLE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 5 + bit_size: 1 + - name: TCIE + description: Transmission complete interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: TXE interrupt enable + bit_offset: 7 + bit_size: 1 + - name: PEIE + description: PE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: PS + description: Parity selection + bit_offset: 9 + bit_size: 1 + enum: PS + - name: PCE + description: Parity control enable + bit_offset: 10 + bit_size: 1 + - name: WAKE + description: Receiver wakeup method + bit_offset: 11 + bit_size: 1 + enum: WAKE + - name: M0 + description: Word length + bit_offset: 12 + bit_size: 1 + enum: M0 + - name: MME + description: Mute mode enable + bit_offset: 13 + bit_size: 1 + - name: CMIE + description: Character match interrupt enable + bit_offset: 14 + bit_size: 1 + - name: OVER8 + description: Oversampling mode + bit_offset: 15 + bit_size: 1 + enum: OVER8 + - name: DEDT + description: Driver Enable deassertion time + bit_offset: 16 + bit_size: 5 + - name: DEAT + description: Driver Enable assertion time + bit_offset: 21 + bit_size: 5 + - name: RTOIE + description: Receiver timeout interrupt enable + bit_offset: 26 + bit_size: 1 + - name: EOBIE + description: End of Block interrupt enable + bit_offset: 27 + bit_size: 1 + - name: M1 + description: Word length + bit_offset: 28 + bit_size: 1 + enum: M1 fieldset/CR2: description: Control register 2 fields: - - name: ADDM - description: 7-bit Address Detection/4-bit Address Detection - bit_offset: 4 - bit_size: 1 - enum: ADDM - - name: LBDL - description: Line break detection length - bit_offset: 5 - bit_size: 1 - enum: LBDL - - name: LBDIE - description: LIN break detection interrupt enable - bit_offset: 6 - bit_size: 1 - - name: LBCL - description: Last bit clock pulse - bit_offset: 8 - bit_size: 1 - - name: CPHA - description: Clock phase - bit_offset: 9 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 10 - bit_size: 1 - enum: CPOL - - name: CLKEN - description: Clock enable - bit_offset: 11 - bit_size: 1 - - name: STOP - description: STOP bits - bit_offset: 12 - bit_size: 2 - enum: STOP - - name: LINEN - description: LIN mode enable - bit_offset: 14 - bit_size: 1 - - name: SWAP - description: Swap TX/RX pins - bit_offset: 15 - bit_size: 1 - - name: RXINV - description: RX pin active level inversion - bit_offset: 16 - bit_size: 1 - - name: TXINV - description: TX pin active level inversion - bit_offset: 17 - bit_size: 1 - - name: DATAINV - description: Binary data inversion - bit_offset: 18 - bit_size: 1 - - name: MSBFIRST - description: Most significant bit first - bit_offset: 19 - bit_size: 1 - enum: MSBFIRST - - name: ABREN - description: Auto baud rate enable - bit_offset: 20 - bit_size: 1 - - name: ABRMOD - description: Auto baud rate mode - bit_offset: 21 - bit_size: 2 - enum: ABRMOD - - name: RTOEN - description: Receiver timeout enable - bit_offset: 23 - bit_size: 1 - - name: ADD - description: Address of the USART node - bit_offset: 24 - bit_size: 8 + - name: ADDM + description: 7-bit Address Detection/4-bit Address Detection + bit_offset: 4 + bit_size: 1 + enum: ADDM + - name: LBDL + description: Line break detection length + bit_offset: 5 + bit_size: 1 + enum: LBDL + - name: LBDIE + description: LIN break detection interrupt enable + bit_offset: 6 + bit_size: 1 + - name: LBCL + description: Last bit clock pulse + bit_offset: 8 + bit_size: 1 + - name: CPHA + description: Clock phase + bit_offset: 9 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 10 + bit_size: 1 + enum: CPOL + - name: CLKEN + description: Clock enable + bit_offset: 11 + bit_size: 1 + - name: STOP + description: STOP bits + bit_offset: 12 + bit_size: 2 + enum: STOP + - name: LINEN + description: LIN mode enable + bit_offset: 14 + bit_size: 1 + - name: SWAP + description: Swap TX/RX pins + bit_offset: 15 + bit_size: 1 + - name: RXINV + description: RX pin active level inversion + bit_offset: 16 + bit_size: 1 + - name: TXINV + description: TX pin active level inversion + bit_offset: 17 + bit_size: 1 + - name: DATAINV + description: Binary data inversion + bit_offset: 18 + bit_size: 1 + - name: MSBFIRST + description: Most significant bit first + bit_offset: 19 + bit_size: 1 + enum: MSBFIRST + - name: ABREN + description: Auto baud rate enable + bit_offset: 20 + bit_size: 1 + - name: ABRMOD + description: Auto baud rate mode + bit_offset: 21 + bit_size: 2 + enum: ABRMOD + - name: RTOEN + description: Receiver timeout enable + bit_offset: 23 + bit_size: 1 + - name: ADD + description: Address of the USART node + bit_offset: 24 + bit_size: 8 fieldset/CR3: description: Control register 3 fields: - - name: EIE - description: Error interrupt enable - bit_offset: 0 - bit_size: 1 - - name: IREN - description: IrDA mode enable - bit_offset: 1 - bit_size: 1 - - name: IRLP - description: IrDA low-power - bit_offset: 2 - bit_size: 1 - enum: IRLP - - name: HDSEL - description: Half-duplex selection - bit_offset: 3 - bit_size: 1 - - name: NACK - description: Smartcard NACK enable - bit_offset: 4 - bit_size: 1 - - name: SCEN - description: Smartcard mode enable - bit_offset: 5 - bit_size: 1 - - name: DMAR - description: DMA enable receiver - bit_offset: 6 - bit_size: 1 - - name: DMAT - description: DMA enable transmitter - bit_offset: 7 - bit_size: 1 - - name: RTSE - description: RTS enable - bit_offset: 8 - bit_size: 1 - - name: CTSE - description: CTS enable - bit_offset: 9 - bit_size: 1 - - name: CTSIE - description: CTS interrupt enable - bit_offset: 10 - bit_size: 1 - - name: ONEBIT - description: One sample bit method enable - bit_offset: 11 - bit_size: 1 - - name: OVRDIS - description: Overrun Disable - bit_offset: 12 - bit_size: 1 - - name: DDRE - description: DMA Disable on Reception Error - bit_offset: 13 - bit_size: 1 - - name: DEM - description: Driver enable mode - bit_offset: 14 - bit_size: 1 - - name: DEP - description: Driver enable polarity selection - bit_offset: 15 - bit_size: 1 - enum: DEP - - name: SCARCNT - description: Smartcard auto-retry count - bit_offset: 17 - bit_size: 3 - - name: WUS - description: Wakeup from Stop mode interrupt flag selection - bit_offset: 20 - bit_size: 2 - enum: WUS - - name: WUFIE - description: Wakeup from Stop mode interrupt enable - bit_offset: 22 - bit_size: 1 + - name: EIE + description: Error interrupt enable + bit_offset: 0 + bit_size: 1 + - name: IREN + description: IrDA mode enable + bit_offset: 1 + bit_size: 1 + - name: IRLP + description: IrDA low-power + bit_offset: 2 + bit_size: 1 + enum: IRLP + - name: HDSEL + description: Half-duplex selection + bit_offset: 3 + bit_size: 1 + - name: NACK + description: Smartcard NACK enable + bit_offset: 4 + bit_size: 1 + - name: SCEN + description: Smartcard mode enable + bit_offset: 5 + bit_size: 1 + - name: DMAR + description: DMA enable receiver + bit_offset: 6 + bit_size: 1 + - name: DMAT + description: DMA enable transmitter + bit_offset: 7 + bit_size: 1 + - name: RTSE + description: RTS enable + bit_offset: 8 + bit_size: 1 + - name: CTSE + description: CTS enable + bit_offset: 9 + bit_size: 1 + - name: CTSIE + description: CTS interrupt enable + bit_offset: 10 + bit_size: 1 + - name: ONEBIT + description: One sample bit method enable + bit_offset: 11 + bit_size: 1 + - name: OVRDIS + description: Overrun Disable + bit_offset: 12 + bit_size: 1 + - name: DDRE + description: DMA Disable on Reception Error + bit_offset: 13 + bit_size: 1 + - name: DEM + description: Driver enable mode + bit_offset: 14 + bit_size: 1 + - name: DEP + description: Driver enable polarity selection + bit_offset: 15 + bit_size: 1 + enum: DEP + - name: SCARCNT + description: Smartcard auto-retry count + bit_offset: 17 + bit_size: 3 + - name: WUS + description: Wakeup from Stop mode interrupt flag selection + bit_offset: 20 + bit_size: 2 + enum: WUS + - name: WUFIE + description: Wakeup from Stop mode interrupt enable + bit_offset: 22 + bit_size: 1 fieldset/DR: description: Data register fields: - - name: DR - description: Data value - bit_offset: 0 - bit_size: 9 + - name: DR + description: Data value + bit_offset: 0 + bit_size: 9 fieldset/GTPR: description: Guard time and prescaler register fields: - - name: PSC - description: Prescaler value - bit_offset: 0 - bit_size: 8 - - name: GT - description: Guard time value - bit_offset: 8 - bit_size: 8 + - name: PSC + description: Prescaler value + bit_offset: 0 + bit_size: 8 + - name: GT + description: Guard time value + bit_offset: 8 + bit_size: 8 fieldset/ICR: description: Interrupt flag clear register fields: - - name: PE - description: Parity error clear flag - bit_offset: 0 - bit_size: 1 - - name: FE - description: Framing error clear flag - bit_offset: 1 - bit_size: 1 - - name: NE - description: Noise error clear flag - bit_offset: 2 - bit_size: 1 - - name: ORE - description: Overrun error clear flag - bit_offset: 3 - bit_size: 1 - - name: IDLE - description: Idle line detected clear flag - bit_offset: 4 - bit_size: 1 - - name: TC - description: Transmission complete clear flag - bit_offset: 6 - bit_size: 1 - - name: LBD - description: LIN break detection clear flag - bit_offset: 8 - bit_size: 1 - - name: CTS - description: CTS clear flag - bit_offset: 9 - bit_size: 1 - - name: RTOF - description: Receiver timeout clear flag - bit_offset: 11 - bit_size: 1 - - name: EOBF - description: End of block clear flag - bit_offset: 12 - bit_size: 1 - - name: CMF - description: Character match clear flag - bit_offset: 17 - bit_size: 1 - - name: WUF - description: Wakeup from Stop mode clear flag - bit_offset: 20 - bit_size: 1 + - name: PE + description: Parity error clear flag + bit_offset: 0 + bit_size: 1 + - name: FE + description: Framing error clear flag + bit_offset: 1 + bit_size: 1 + - name: NE + description: Noise error clear flag + bit_offset: 2 + bit_size: 1 + - name: ORE + description: Overrun error clear flag + bit_offset: 3 + bit_size: 1 + - name: IDLE + description: Idle line detected clear flag + bit_offset: 4 + bit_size: 1 + - name: TC + description: Transmission complete clear flag + bit_offset: 6 + bit_size: 1 + - name: LBD + description: LIN break detection clear flag + bit_offset: 8 + bit_size: 1 + - name: CTS + description: CTS clear flag + bit_offset: 9 + bit_size: 1 + - name: RTOF + description: Receiver timeout clear flag + bit_offset: 11 + bit_size: 1 + - name: EOBF + description: End of block clear flag + bit_offset: 12 + bit_size: 1 + - name: CMF + description: Character match clear flag + bit_offset: 17 + bit_size: 1 + - name: WUF + description: Wakeup from Stop mode clear flag + bit_offset: 20 + bit_size: 1 fieldset/ISR: description: Interrupt & status register fields: - - name: PE - description: Parity error - bit_offset: 0 - bit_size: 1 - - name: FE - description: Framing error - bit_offset: 1 - bit_size: 1 - - name: NE - description: Noise error flag - bit_offset: 2 - bit_size: 1 - - name: ORE - description: Overrun error - bit_offset: 3 - bit_size: 1 - - name: IDLE - description: Idle line detected - bit_offset: 4 - bit_size: 1 - - name: RXNE - description: Read data register not empty - bit_offset: 5 - bit_size: 1 - - name: TC - description: Transmission complete - bit_offset: 6 - bit_size: 1 - - name: TXE - description: Transmit data register empty - bit_offset: 7 - bit_size: 1 - - name: LBD - description: LIN break detection flag - bit_offset: 8 - bit_size: 1 - - name: CTSIF - description: CTS interrupt flag - bit_offset: 9 - bit_size: 1 - - name: CTS - description: CTS flag - bit_offset: 10 - bit_size: 1 - - name: RTOF - description: Receiver timeout - bit_offset: 11 - bit_size: 1 - - name: EOBF - description: End of block flag - bit_offset: 12 - bit_size: 1 - - name: ABRE - description: Auto baud rate error - bit_offset: 14 - bit_size: 1 - - name: ABRF - description: Auto baud rate flag - bit_offset: 15 - bit_size: 1 - - name: BUSY - description: Busy flag - bit_offset: 16 - bit_size: 1 - - name: CMF - description: character match flag - bit_offset: 17 - bit_size: 1 - - name: SBKF - description: Send break flag - bit_offset: 18 - bit_size: 1 - - name: RWU - description: Receiver wakeup from Mute mode - bit_offset: 19 - bit_size: 1 - enum: RWU - - name: WUF - description: Wakeup from Stop mode flag - bit_offset: 20 - bit_size: 1 - - name: TEACK - description: Transmit enable acknowledge flag - bit_offset: 21 - bit_size: 1 - - name: REACK - description: Receive enable acknowledge flag - bit_offset: 22 - bit_size: 1 + - name: PE + description: Parity error + bit_offset: 0 + bit_size: 1 + - name: FE + description: Framing error + bit_offset: 1 + bit_size: 1 + - name: NE + description: Noise error flag + bit_offset: 2 + bit_size: 1 + - name: ORE + description: Overrun error + bit_offset: 3 + bit_size: 1 + - name: IDLE + description: Idle line detected + bit_offset: 4 + bit_size: 1 + - name: RXNE + description: Read data register not empty + bit_offset: 5 + bit_size: 1 + - name: TC + description: Transmission complete + bit_offset: 6 + bit_size: 1 + - name: TXE + description: Transmit data register empty + bit_offset: 7 + bit_size: 1 + - name: LBD + description: LIN break detection flag + bit_offset: 8 + bit_size: 1 + - name: CTSIF + description: CTS interrupt flag + bit_offset: 9 + bit_size: 1 + - name: CTS + description: CTS flag + bit_offset: 10 + bit_size: 1 + - name: RTOF + description: Receiver timeout + bit_offset: 11 + bit_size: 1 + - name: EOBF + description: End of block flag + bit_offset: 12 + bit_size: 1 + - name: ABRE + description: Auto baud rate error + bit_offset: 14 + bit_size: 1 + - name: ABRF + description: Auto baud rate flag + bit_offset: 15 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 16 + bit_size: 1 + - name: CMF + description: character match flag + bit_offset: 17 + bit_size: 1 + - name: SBKF + description: Send break flag + bit_offset: 18 + bit_size: 1 + - name: RWU + description: Receiver wakeup from Mute mode + bit_offset: 19 + bit_size: 1 + enum: RWU + - name: WUF + description: Wakeup from Stop mode flag + bit_offset: 20 + bit_size: 1 + - name: TEACK + description: Transmit enable acknowledge flag + bit_offset: 21 + bit_size: 1 + - name: REACK + description: Receive enable acknowledge flag + bit_offset: 22 + bit_size: 1 fieldset/RQR: description: Request register fields: - - name: ABRRQ - description: Auto baud rate request. Resets the ABRF flag in the USART_ISR and request an automatic baud rate measurement on the next received data frame. - bit_offset: 0 - bit_size: 1 - - name: SBKRQ - description: "Send break request. Sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available" - bit_offset: 1 - bit_size: 1 - - name: MMRQ - description: Mute mode request. Puts the USART in mute mode and sets the RWU flag. - bit_offset: 2 - bit_size: 1 - - name: RXFRQ - description: "Receive data flush request. Clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition" - bit_offset: 3 - bit_size: 1 - - name: TXFRQ - description: Transmit data flush request. Sets the TXE flags. This allows to discard the transmit data. - bit_offset: 4 - bit_size: 1 + - name: ABRRQ + description: Auto baud rate request. Resets the ABRF flag in the USART_ISR and request an automatic baud rate measurement on the next received data frame. + bit_offset: 0 + bit_size: 1 + - name: SBKRQ + description: Send break request. Sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available + bit_offset: 1 + bit_size: 1 + - name: MMRQ + description: Mute mode request. Puts the USART in mute mode and sets the RWU flag. + bit_offset: 2 + bit_size: 1 + - name: RXFRQ + description: Receive data flush request. Clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition + bit_offset: 3 + bit_size: 1 + - name: TXFRQ + description: Transmit data flush request. Sets the TXE flags. This allows to discard the transmit data. + bit_offset: 4 + bit_size: 1 fieldset/RTOR: description: Receiver timeout register fields: - - name: RTO - description: Receiver timeout value - bit_offset: 0 - bit_size: 24 - - name: BLEN - description: Block Length - bit_offset: 24 - bit_size: 8 + - name: RTO + description: Receiver timeout value + bit_offset: 0 + bit_size: 24 + - name: BLEN + description: Block Length + bit_offset: 24 + bit_size: 8 enum/ABRMOD: bit_size: 2 variants: - - name: Start - description: Measurement of the start bit is used to detect the baud rate - value: 0 - - name: Edge - description: Falling edge to falling edge measurement - value: 1 - - name: Frame7F - description: "0x7F frame detection" - value: 2 - - name: Frame55 - description: "0x55 frame detection" - value: 3 + - name: Start + description: Measurement of the start bit is used to detect the baud rate + value: 0 + - name: Edge + description: Falling edge to falling edge measurement + value: 1 + - name: Frame7F + description: 0x7F frame detection + value: 2 + - name: Frame55 + description: 0x55 frame detection + value: 3 enum/ADDM: bit_size: 1 variants: - - name: Bit4 - description: 4-bit address detection - value: 0 - - name: Bit7 - description: 7-bit address detection - value: 1 + - name: Bit4 + description: 4-bit address detection + value: 0 + - name: Bit7 + description: 7-bit address detection + value: 1 enum/CPHA: bit_size: 1 variants: - - name: First - description: The first clock transition is the first data capture edge - value: 0 - - name: Second - description: The second clock transition is the first data capture edge - value: 1 + - name: First + description: The first clock transition is the first data capture edge + value: 0 + - name: Second + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: Low - description: Steady low value on CK pin outside transmission window - value: 0 - - name: High - description: Steady high value on CK pin outside transmission window - value: 1 + - name: Low + description: Steady low value on CK pin outside transmission window + value: 0 + - name: High + description: Steady high value on CK pin outside transmission window + value: 1 enum/DEP: bit_size: 1 variants: - - name: High - description: DE signal is active high - value: 0 - - name: Low - description: DE signal is active low - value: 1 + - name: High + description: DE signal is active high + value: 0 + - name: Low + description: DE signal is active low + value: 1 enum/IRLP: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: LowPower - description: Low-power mode - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: LowPower + description: Low-power mode + value: 1 enum/LBDL: bit_size: 1 variants: - - name: Bit10 - description: 10-bit break detection - value: 0 - - name: Bit11 - description: 11-bit break detection - value: 1 + - name: Bit10 + description: 10-bit break detection + value: 0 + - name: Bit11 + description: 11-bit break detection + value: 1 enum/M0: bit_size: 1 variants: - - name: Bit8 - description: "1 start bit, 8 data bits, n stop bits" - value: 0 - - name: Bit9 - description: "1 start bit, 9 data bits, n stop bits" - value: 1 + - name: Bit8 + description: 1 start bit, 8 data bits, n stop bits + value: 0 + - name: Bit9 + description: 1 start bit, 9 data bits, n stop bits + value: 1 enum/M1: bit_size: 1 variants: - - name: M0 - description: Use M0 to set the data bits - value: 0 - - name: Bit7 - description: "1 start bit, 7 data bits, n stop bits" - value: 1 + - name: M0 + description: Use M0 to set the data bits + value: 0 + - name: Bit7 + description: 1 start bit, 7 data bits, n stop bits + value: 1 enum/MSBFIRST: bit_size: 1 variants: - - name: LSB - description: "data is transmitted/received with data bit 0 first, following the start bit" - value: 0 - - name: MSB - description: "data is transmitted/received with MSB (bit 7/8/9) first, following the start bit" - value: 1 + - name: LSB + description: data is transmitted/received with data bit 0 first, following the start bit + value: 0 + - name: MSB + description: data is transmitted/received with MSB (bit 7/8/9) first, following the start bit + value: 1 enum/OVER8: bit_size: 1 variants: - - name: Oversampling16 - description: Oversampling by 16 - value: 0 - - name: Oversampling8 - description: Oversampling by 8 - value: 1 + - name: Oversampling16 + description: Oversampling by 16 + value: 0 + - name: Oversampling8 + description: Oversampling by 8 + value: 1 enum/PS: bit_size: 1 variants: - - name: Even - description: Even parity - value: 0 - - name: Odd - description: Odd parity - value: 1 + - name: Even + description: Even parity + value: 0 + - name: Odd + description: Odd parity + value: 1 enum/RWU: bit_size: 1 variants: - - name: Active - description: Receiver in active mode - value: 0 - - name: Mute - description: Receiver in mute mode - value: 1 + - name: Active + description: Receiver in active mode + value: 0 + - name: Mute + description: Receiver in mute mode + value: 1 enum/STOP: bit_size: 2 variants: - - name: Stop1 - description: 1 stop bit - value: 0 - - name: Stop0p5 - description: 0.5 stop bits - value: 1 - - name: Stop2 - description: 2 stop bits - value: 2 - - name: Stop1p5 - description: 1.5 stop bits - value: 3 + - name: Stop1 + description: 1 stop bit + value: 0 + - name: Stop0p5 + description: 0.5 stop bits + value: 1 + - name: Stop2 + description: 2 stop bits + value: 2 + - name: Stop1p5 + description: 1.5 stop bits + value: 3 enum/WAKE: bit_size: 1 variants: - - name: IdleLine - description: USART wakeup on idle line - value: 0 - - name: AddressMark - description: USART wakeup on address mark - value: 1 + - name: IdleLine + description: USART wakeup on idle line + value: 0 + - name: AddressMark + description: USART wakeup on address mark + value: 1 enum/WUS: bit_size: 2 variants: - - name: Address - description: WUF active on address match - value: 0 - - name: Start - description: WuF active on Start bit detection - value: 2 - - name: RXNE - description: WUF active on RXNE - value: 3 + - name: Address + description: WUF active on address match + value: 0 + - name: Start + description: WuF active on Start bit detection + value: 2 + - name: RXNE + description: WUF active on RXNE + value: 3 diff --git a/data/registers/usart_v4.yaml b/data/registers/usart_v4.yaml index 6f1351b..f0fdb08 100644 --- a/data/registers/usart_v4.yaml +++ b/data/registers/usart_v4.yaml @@ -1,813 +1,812 @@ ---- block/LPUART: description: Low-power Universal synchronous asynchronous receiver transmitter items: - - name: CR1 - description: Control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Control register 3 - byte_offset: 8 - fieldset: CR3 - - name: BRR - description: Baud rate register - byte_offset: 12 - fieldset: BRR - - name: RQR - description: Request register - byte_offset: 24 - access: Write - fieldset: RQR - - name: ISR - description: Interrupt & status register - byte_offset: 28 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt flag clear register - byte_offset: 32 - access: Write - fieldset: ICR - - name: RDR - description: Receive data register - byte_offset: 36 - access: Read - fieldset: DR - - name: TDR - description: Transmit data register - byte_offset: 40 - access: Write - fieldset: DR - - name: PRESC - description: Prescaler register - byte_offset: 44 - fieldset: PRESC + - name: CR1 + description: Control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Control register 3 + byte_offset: 8 + fieldset: CR3 + - name: BRR + description: Baud rate register + byte_offset: 12 + fieldset: BRR + - name: RQR + description: Request register + byte_offset: 24 + access: Write + fieldset: RQR + - name: ISR + description: Interrupt & status register + byte_offset: 28 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt flag clear register + byte_offset: 32 + access: Write + fieldset: ICR + - name: RDR + description: Receive data register + byte_offset: 36 + access: Read + fieldset: DR + - name: TDR + description: Transmit data register + byte_offset: 40 + access: Write + fieldset: DR + - name: PRESC + description: Prescaler register + byte_offset: 44 + fieldset: PRESC block/USART: description: Universal synchronous asynchronous receiver transmitter items: - - name: CR1 - description: Control register 1 - byte_offset: 0 - fieldset: CR1 - - name: CR2 - description: Control register 2 - byte_offset: 4 - fieldset: CR2 - - name: CR3 - description: Control register 3 - byte_offset: 8 - fieldset: CR3 - - name: BRR - description: Baud rate register - byte_offset: 12 - fieldset: BRR - - name: GTPR - description: Guard time and prescaler register - byte_offset: 16 - fieldset: GTPR - - name: RTOR - description: Receiver timeout register - byte_offset: 20 - fieldset: RTOR - - name: RQR - description: Request register - byte_offset: 24 - access: Write - fieldset: RQR - - name: ISR - description: Interrupt & status register - byte_offset: 28 - access: Read - fieldset: ISR - - name: ICR - description: Interrupt flag clear register - byte_offset: 32 - access: Write - fieldset: ICR - - name: RDR - description: Receive data register - byte_offset: 36 - access: Read - fieldset: DR - - name: TDR - description: Transmit data register - byte_offset: 40 - access: Write - fieldset: DR - - name: PRESC - description: Prescaler register - byte_offset: 44 - fieldset: PRESC + - name: CR1 + description: Control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Control register 3 + byte_offset: 8 + fieldset: CR3 + - name: BRR + description: Baud rate register + byte_offset: 12 + fieldset: BRR + - name: GTPR + description: Guard time and prescaler register + byte_offset: 16 + fieldset: GTPR + - name: RTOR + description: Receiver timeout register + byte_offset: 20 + fieldset: RTOR + - name: RQR + description: Request register + byte_offset: 24 + access: Write + fieldset: RQR + - name: ISR + description: Interrupt & status register + byte_offset: 28 + access: Read + fieldset: ISR + - name: ICR + description: Interrupt flag clear register + byte_offset: 32 + access: Write + fieldset: ICR + - name: RDR + description: Receive data register + byte_offset: 36 + access: Read + fieldset: DR + - name: TDR + description: Transmit data register + byte_offset: 40 + access: Write + fieldset: DR + - name: PRESC + description: Prescaler register + byte_offset: 44 + fieldset: PRESC fieldset/BRR: description: Baud rate register fields: - - name: BRR - description: USARTDIV - bit_offset: 0 - bit_size: 16 + - name: BRR + description: USARTDIV + bit_offset: 0 + bit_size: 16 fieldset/CR1: description: Control register 1 fields: - - name: UE - description: USART enable - bit_offset: 0 - bit_size: 1 - - name: UESM - description: USART enable in Stop mode - bit_offset: 1 - bit_size: 1 - - name: RE - description: Receiver enable - bit_offset: 2 - bit_size: 1 - - name: TE - description: Transmitter enable - bit_offset: 3 - bit_size: 1 - - name: IDLEIE - description: IDLE interrupt enable - bit_offset: 4 - bit_size: 1 - - name: RXNEIE - description: RXNE interrupt enable - bit_offset: 5 - bit_size: 1 - - name: TCIE - description: Transmission complete interrupt enable - bit_offset: 6 - bit_size: 1 - - name: TXEIE - description: TXE interrupt enable - bit_offset: 7 - bit_size: 1 - - name: PEIE - description: PE interrupt enable - bit_offset: 8 - bit_size: 1 - - name: PS - description: Parity selection - bit_offset: 9 - bit_size: 1 - enum: PS - - name: PCE - description: Parity control enable - bit_offset: 10 - bit_size: 1 - - name: WAKE - description: Receiver wakeup method - bit_offset: 11 - bit_size: 1 - enum: WAKE - - name: M0 - description: Word length - bit_offset: 12 - bit_size: 1 - enum: M0 - - name: MME - description: Mute mode enable - bit_offset: 13 - bit_size: 1 - - name: CMIE - description: Character match interrupt enable - bit_offset: 14 - bit_size: 1 - - name: OVER8 - description: Oversampling mode - bit_offset: 15 - bit_size: 1 - enum: OVER8 - - name: DEDT - description: Driver Enable deassertion time - bit_offset: 16 - bit_size: 5 - - name: DEAT - description: Driver Enable assertion time - bit_offset: 21 - bit_size: 5 - - name: RTOIE - description: Receiver timeout interrupt enable - bit_offset: 26 - bit_size: 1 - - name: EOBIE - description: End of Block interrupt enable - bit_offset: 27 - bit_size: 1 - - name: M1 - description: Word length - bit_offset: 28 - bit_size: 1 - enum: M1 - - name: FIFOEN - description: FIFO mode enable - bit_offset: 29 - bit_size: 1 - - name: TXFEIE - description: TXFIFO empty interrupt enable - bit_offset: 30 - bit_size: 1 - - name: RXFFIE - description: RXFIFO Full interrupt enable - bit_offset: 31 - bit_size: 1 + - name: UE + description: USART enable + bit_offset: 0 + bit_size: 1 + - name: UESM + description: USART enable in Stop mode + bit_offset: 1 + bit_size: 1 + - name: RE + description: Receiver enable + bit_offset: 2 + bit_size: 1 + - name: TE + description: Transmitter enable + bit_offset: 3 + bit_size: 1 + - name: IDLEIE + description: IDLE interrupt enable + bit_offset: 4 + bit_size: 1 + - name: RXNEIE + description: RXNE interrupt enable + bit_offset: 5 + bit_size: 1 + - name: TCIE + description: Transmission complete interrupt enable + bit_offset: 6 + bit_size: 1 + - name: TXEIE + description: TXE interrupt enable + bit_offset: 7 + bit_size: 1 + - name: PEIE + description: PE interrupt enable + bit_offset: 8 + bit_size: 1 + - name: PS + description: Parity selection + bit_offset: 9 + bit_size: 1 + enum: PS + - name: PCE + description: Parity control enable + bit_offset: 10 + bit_size: 1 + - name: WAKE + description: Receiver wakeup method + bit_offset: 11 + bit_size: 1 + enum: WAKE + - name: M0 + description: Word length + bit_offset: 12 + bit_size: 1 + enum: M0 + - name: MME + description: Mute mode enable + bit_offset: 13 + bit_size: 1 + - name: CMIE + description: Character match interrupt enable + bit_offset: 14 + bit_size: 1 + - name: OVER8 + description: Oversampling mode + bit_offset: 15 + bit_size: 1 + enum: OVER8 + - name: DEDT + description: Driver Enable deassertion time + bit_offset: 16 + bit_size: 5 + - name: DEAT + description: Driver Enable assertion time + bit_offset: 21 + bit_size: 5 + - name: RTOIE + description: Receiver timeout interrupt enable + bit_offset: 26 + bit_size: 1 + - name: EOBIE + description: End of Block interrupt enable + bit_offset: 27 + bit_size: 1 + - name: M1 + description: Word length + bit_offset: 28 + bit_size: 1 + enum: M1 + - name: FIFOEN + description: FIFO mode enable + bit_offset: 29 + bit_size: 1 + - name: TXFEIE + description: TXFIFO empty interrupt enable + bit_offset: 30 + bit_size: 1 + - name: RXFFIE + description: RXFIFO Full interrupt enable + bit_offset: 31 + bit_size: 1 fieldset/CR2: description: Control register 2 fields: - - name: ADDM - description: 7-bit Address Detection/4-bit Address Detection - bit_offset: 4 - bit_size: 1 - enum: ADDM - - name: LBDL - description: Line break detection length - bit_offset: 5 - bit_size: 1 - enum: LBDL - - name: LBDIE - description: LIN break detection interrupt enable - bit_offset: 6 - bit_size: 1 - - name: LBCL - description: Last bit clock pulse - bit_offset: 8 - bit_size: 1 - - name: CPHA - description: Clock phase - bit_offset: 9 - bit_size: 1 - enum: CPHA - - name: CPOL - description: Clock polarity - bit_offset: 10 - bit_size: 1 - enum: CPOL - - name: CLKEN - description: Clock enable - bit_offset: 11 - bit_size: 1 - - name: STOP - description: STOP bits - bit_offset: 12 - bit_size: 2 - enum: STOP - - name: LINEN - description: LIN mode enable - bit_offset: 14 - bit_size: 1 - - name: SWAP - description: Swap TX/RX pins - bit_offset: 15 - bit_size: 1 - - name: RXINV - description: RX pin active level inversion - bit_offset: 16 - bit_size: 1 - - name: TXINV - description: TX pin active level inversion - bit_offset: 17 - bit_size: 1 - - name: DATAINV - description: Binary data inversion - bit_offset: 18 - bit_size: 1 - - name: MSBFIRST - description: Most significant bit first - bit_offset: 19 - bit_size: 1 - enum: MSBFIRST - - name: ABREN - description: Auto baud rate enable - bit_offset: 20 - bit_size: 1 - - name: ABRMOD - description: Auto baud rate mode - bit_offset: 21 - bit_size: 2 - enum: ABRMOD - - name: RTOEN - description: Receiver timeout enable - bit_offset: 23 - bit_size: 1 - - name: ADD - description: Address of the USART node - bit_offset: 24 - bit_size: 8 + - name: ADDM + description: 7-bit Address Detection/4-bit Address Detection + bit_offset: 4 + bit_size: 1 + enum: ADDM + - name: LBDL + description: Line break detection length + bit_offset: 5 + bit_size: 1 + enum: LBDL + - name: LBDIE + description: LIN break detection interrupt enable + bit_offset: 6 + bit_size: 1 + - name: LBCL + description: Last bit clock pulse + bit_offset: 8 + bit_size: 1 + - name: CPHA + description: Clock phase + bit_offset: 9 + bit_size: 1 + enum: CPHA + - name: CPOL + description: Clock polarity + bit_offset: 10 + bit_size: 1 + enum: CPOL + - name: CLKEN + description: Clock enable + bit_offset: 11 + bit_size: 1 + - name: STOP + description: STOP bits + bit_offset: 12 + bit_size: 2 + enum: STOP + - name: LINEN + description: LIN mode enable + bit_offset: 14 + bit_size: 1 + - name: SWAP + description: Swap TX/RX pins + bit_offset: 15 + bit_size: 1 + - name: RXINV + description: RX pin active level inversion + bit_offset: 16 + bit_size: 1 + - name: TXINV + description: TX pin active level inversion + bit_offset: 17 + bit_size: 1 + - name: DATAINV + description: Binary data inversion + bit_offset: 18 + bit_size: 1 + - name: MSBFIRST + description: Most significant bit first + bit_offset: 19 + bit_size: 1 + enum: MSBFIRST + - name: ABREN + description: Auto baud rate enable + bit_offset: 20 + bit_size: 1 + - name: ABRMOD + description: Auto baud rate mode + bit_offset: 21 + bit_size: 2 + enum: ABRMOD + - name: RTOEN + description: Receiver timeout enable + bit_offset: 23 + bit_size: 1 + - name: ADD + description: Address of the USART node + bit_offset: 24 + bit_size: 8 fieldset/CR3: description: Control register 3 fields: - - name: EIE - description: Error interrupt enable - bit_offset: 0 - bit_size: 1 - - name: IREN - description: IrDA mode enable - bit_offset: 1 - bit_size: 1 - - name: IRLP - description: IrDA low-power - bit_offset: 2 - bit_size: 1 - enum: IRLP - - name: HDSEL - description: Half-duplex selection - bit_offset: 3 - bit_size: 1 - - name: NACK - description: Smartcard NACK enable - bit_offset: 4 - bit_size: 1 - - name: SCEN - description: Smartcard mode enable - bit_offset: 5 - bit_size: 1 - - name: DMAR - description: DMA enable receiver - bit_offset: 6 - bit_size: 1 - - name: DMAT - description: DMA enable transmitter - bit_offset: 7 - bit_size: 1 - - name: RTSE - description: RTS enable - bit_offset: 8 - bit_size: 1 - - name: CTSE - description: CTS enable - bit_offset: 9 - bit_size: 1 - - name: CTSIE - description: CTS interrupt enable - bit_offset: 10 - bit_size: 1 - - name: ONEBIT - description: One sample bit method enable - bit_offset: 11 - bit_size: 1 - - name: OVRDIS - description: Overrun Disable - bit_offset: 12 - bit_size: 1 - - name: DDRE - description: DMA Disable on Reception Error - bit_offset: 13 - bit_size: 1 - - name: DEM - description: Driver enable mode - bit_offset: 14 - bit_size: 1 - - name: DEP - description: Driver enable polarity selection - bit_offset: 15 - bit_size: 1 - enum: DEP - - name: SCARCNT - description: Smartcard auto-retry count - bit_offset: 17 - bit_size: 3 - - name: WUS - description: Wakeup from Stop mode interrupt flag selection - bit_offset: 20 - bit_size: 2 - enum: WUS - - name: WUFIE - description: Wakeup from Stop mode interrupt enable - bit_offset: 22 - bit_size: 1 - - name: TXFTIE - description: TXFIFO threshold interrupt enable - bit_offset: 23 - bit_size: 1 - - name: RXFTCFG - description: Receive FIFO threshold configuration - bit_offset: 25 - bit_size: 3 - - name: RXFTIE - description: RXFIFO threshold interrupt enable - bit_offset: 28 - bit_size: 1 - - name: TXFTCFG - description: TXFIFO threshold configuration - bit_offset: 29 - bit_size: 3 + - name: EIE + description: Error interrupt enable + bit_offset: 0 + bit_size: 1 + - name: IREN + description: IrDA mode enable + bit_offset: 1 + bit_size: 1 + - name: IRLP + description: IrDA low-power + bit_offset: 2 + bit_size: 1 + enum: IRLP + - name: HDSEL + description: Half-duplex selection + bit_offset: 3 + bit_size: 1 + - name: NACK + description: Smartcard NACK enable + bit_offset: 4 + bit_size: 1 + - name: SCEN + description: Smartcard mode enable + bit_offset: 5 + bit_size: 1 + - name: DMAR + description: DMA enable receiver + bit_offset: 6 + bit_size: 1 + - name: DMAT + description: DMA enable transmitter + bit_offset: 7 + bit_size: 1 + - name: RTSE + description: RTS enable + bit_offset: 8 + bit_size: 1 + - name: CTSE + description: CTS enable + bit_offset: 9 + bit_size: 1 + - name: CTSIE + description: CTS interrupt enable + bit_offset: 10 + bit_size: 1 + - name: ONEBIT + description: One sample bit method enable + bit_offset: 11 + bit_size: 1 + - name: OVRDIS + description: Overrun Disable + bit_offset: 12 + bit_size: 1 + - name: DDRE + description: DMA Disable on Reception Error + bit_offset: 13 + bit_size: 1 + - name: DEM + description: Driver enable mode + bit_offset: 14 + bit_size: 1 + - name: DEP + description: Driver enable polarity selection + bit_offset: 15 + bit_size: 1 + enum: DEP + - name: SCARCNT + description: Smartcard auto-retry count + bit_offset: 17 + bit_size: 3 + - name: WUS + description: Wakeup from Stop mode interrupt flag selection + bit_offset: 20 + bit_size: 2 + enum: WUS + - name: WUFIE + description: Wakeup from Stop mode interrupt enable + bit_offset: 22 + bit_size: 1 + - name: TXFTIE + description: TXFIFO threshold interrupt enable + bit_offset: 23 + bit_size: 1 + - name: RXFTCFG + description: Receive FIFO threshold configuration + bit_offset: 25 + bit_size: 3 + - name: RXFTIE + description: RXFIFO threshold interrupt enable + bit_offset: 28 + bit_size: 1 + - name: TXFTCFG + description: TXFIFO threshold configuration + bit_offset: 29 + bit_size: 3 fieldset/DR: description: Data register fields: - - name: DR - description: Data value - bit_offset: 0 - bit_size: 9 + - name: DR + description: Data value + bit_offset: 0 + bit_size: 9 fieldset/GTPR: description: Guard time and prescaler register fields: - - name: PSC - description: Prescaler value - bit_offset: 0 - bit_size: 8 - - name: GT - description: Guard time value - bit_offset: 8 - bit_size: 8 + - name: PSC + description: Prescaler value + bit_offset: 0 + bit_size: 8 + - name: GT + description: Guard time value + bit_offset: 8 + bit_size: 8 fieldset/ICR: description: Interrupt flag clear register fields: - - name: PE - description: Parity error clear flag - bit_offset: 0 - bit_size: 1 - - name: FE - description: Framing error clear flag - bit_offset: 1 - bit_size: 1 - - name: NE - description: Noise error clear flag - bit_offset: 2 - bit_size: 1 - - name: ORE - description: Overrun error clear flag - bit_offset: 3 - bit_size: 1 - - name: IDLE - description: Idle line detected clear flag - bit_offset: 4 - bit_size: 1 - - name: TC - description: Transmission complete clear flag - bit_offset: 6 - bit_size: 1 - - name: LBD - description: LIN break detection clear flag - bit_offset: 8 - bit_size: 1 - - name: CTS - description: CTS clear flag - bit_offset: 9 - bit_size: 1 - - name: RTOF - description: Receiver timeout clear flag - bit_offset: 11 - bit_size: 1 - - name: EOBF - description: End of block clear flag - bit_offset: 12 - bit_size: 1 - - name: CMF - description: Character match clear flag - bit_offset: 17 - bit_size: 1 - - name: WUF - description: Wakeup from Stop mode clear flag - bit_offset: 20 - bit_size: 1 + - name: PE + description: Parity error clear flag + bit_offset: 0 + bit_size: 1 + - name: FE + description: Framing error clear flag + bit_offset: 1 + bit_size: 1 + - name: NE + description: Noise error clear flag + bit_offset: 2 + bit_size: 1 + - name: ORE + description: Overrun error clear flag + bit_offset: 3 + bit_size: 1 + - name: IDLE + description: Idle line detected clear flag + bit_offset: 4 + bit_size: 1 + - name: TC + description: Transmission complete clear flag + bit_offset: 6 + bit_size: 1 + - name: LBD + description: LIN break detection clear flag + bit_offset: 8 + bit_size: 1 + - name: CTS + description: CTS clear flag + bit_offset: 9 + bit_size: 1 + - name: RTOF + description: Receiver timeout clear flag + bit_offset: 11 + bit_size: 1 + - name: EOBF + description: End of block clear flag + bit_offset: 12 + bit_size: 1 + - name: CMF + description: Character match clear flag + bit_offset: 17 + bit_size: 1 + - name: WUF + description: Wakeup from Stop mode clear flag + bit_offset: 20 + bit_size: 1 fieldset/ISR: description: Interrupt & status register fields: - - name: PE - description: Parity error - bit_offset: 0 - bit_size: 1 - - name: FE - description: Framing error - bit_offset: 1 - bit_size: 1 - - name: NE - description: Noise error flag - bit_offset: 2 - bit_size: 1 - - name: ORE - description: Overrun error - bit_offset: 3 - bit_size: 1 - - name: IDLE - description: Idle line detected - bit_offset: 4 - bit_size: 1 - - name: RXNE - description: Read data register not empty - bit_offset: 5 - bit_size: 1 - - name: TC - description: Transmission complete - bit_offset: 6 - bit_size: 1 - - name: TXE - description: Transmit data register empty - bit_offset: 7 - bit_size: 1 - - name: LBD - description: LIN break detection flag - bit_offset: 8 - bit_size: 1 - - name: CTSIF - description: CTS interrupt flag - bit_offset: 9 - bit_size: 1 - - name: CTS - description: CTS flag - bit_offset: 10 - bit_size: 1 - - name: RTOF - description: Receiver timeout - bit_offset: 11 - bit_size: 1 - - name: EOBF - description: End of block flag - bit_offset: 12 - bit_size: 1 - - name: ABRE - description: Auto baud rate error - bit_offset: 14 - bit_size: 1 - - name: ABRF - description: Auto baud rate flag - bit_offset: 15 - bit_size: 1 - - name: BUSY - description: Busy flag - bit_offset: 16 - bit_size: 1 - - name: CMF - description: character match flag - bit_offset: 17 - bit_size: 1 - - name: SBKF - description: Send break flag - bit_offset: 18 - bit_size: 1 - - name: RWU - description: Receiver wakeup from Mute mode - bit_offset: 19 - bit_size: 1 - enum: RWU - - name: WUF - description: Wakeup from Stop mode flag - bit_offset: 20 - bit_size: 1 - - name: TEACK - description: Transmit enable acknowledge flag - bit_offset: 21 - bit_size: 1 - - name: REACK - description: Receive enable acknowledge flag - bit_offset: 22 - bit_size: 1 - - name: TXFE - description: TXFIFO Empty - bit_offset: 23 - bit_size: 1 - - name: RXFF - description: RXFIFO Full - bit_offset: 24 - bit_size: 1 - - name: RXFT - description: RXFIFO threshold flag - bit_offset: 26 - bit_size: 1 - - name: TXFT - description: TXFIFO threshold flag - bit_offset: 27 - bit_size: 1 + - name: PE + description: Parity error + bit_offset: 0 + bit_size: 1 + - name: FE + description: Framing error + bit_offset: 1 + bit_size: 1 + - name: NE + description: Noise error flag + bit_offset: 2 + bit_size: 1 + - name: ORE + description: Overrun error + bit_offset: 3 + bit_size: 1 + - name: IDLE + description: Idle line detected + bit_offset: 4 + bit_size: 1 + - name: RXNE + description: Read data register not empty + bit_offset: 5 + bit_size: 1 + - name: TC + description: Transmission complete + bit_offset: 6 + bit_size: 1 + - name: TXE + description: Transmit data register empty + bit_offset: 7 + bit_size: 1 + - name: LBD + description: LIN break detection flag + bit_offset: 8 + bit_size: 1 + - name: CTSIF + description: CTS interrupt flag + bit_offset: 9 + bit_size: 1 + - name: CTS + description: CTS flag + bit_offset: 10 + bit_size: 1 + - name: RTOF + description: Receiver timeout + bit_offset: 11 + bit_size: 1 + - name: EOBF + description: End of block flag + bit_offset: 12 + bit_size: 1 + - name: ABRE + description: Auto baud rate error + bit_offset: 14 + bit_size: 1 + - name: ABRF + description: Auto baud rate flag + bit_offset: 15 + bit_size: 1 + - name: BUSY + description: Busy flag + bit_offset: 16 + bit_size: 1 + - name: CMF + description: character match flag + bit_offset: 17 + bit_size: 1 + - name: SBKF + description: Send break flag + bit_offset: 18 + bit_size: 1 + - name: RWU + description: Receiver wakeup from Mute mode + bit_offset: 19 + bit_size: 1 + enum: RWU + - name: WUF + description: Wakeup from Stop mode flag + bit_offset: 20 + bit_size: 1 + - name: TEACK + description: Transmit enable acknowledge flag + bit_offset: 21 + bit_size: 1 + - name: REACK + description: Receive enable acknowledge flag + bit_offset: 22 + bit_size: 1 + - name: TXFE + description: TXFIFO Empty + bit_offset: 23 + bit_size: 1 + - name: RXFF + description: RXFIFO Full + bit_offset: 24 + bit_size: 1 + - name: RXFT + description: RXFIFO threshold flag + bit_offset: 26 + bit_size: 1 + - name: TXFT + description: TXFIFO threshold flag + bit_offset: 27 + bit_size: 1 fieldset/PRESC: description: Prescaler register fields: - - name: PRESCALER - description: Clock prescaler - bit_offset: 0 - bit_size: 4 - enum: PRESC + - name: PRESCALER + description: Clock prescaler + bit_offset: 0 + bit_size: 4 + enum: PRESC fieldset/RQR: description: Request register fields: - - name: ABRRQ - description: Auto baud rate request. Resets the ABRF flag in the USART_ISR and request an automatic baud rate measurement on the next received data frame. - bit_offset: 0 - bit_size: 1 - - name: SBKRQ - description: "Send break request. Sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available" - bit_offset: 1 - bit_size: 1 - - name: MMRQ - description: Mute mode request. Puts the USART in mute mode and sets the RWU flag. - bit_offset: 2 - bit_size: 1 - - name: RXFRQ - description: "Receive data flush request. Clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition" - bit_offset: 3 - bit_size: 1 - - name: TXFRQ - description: Transmit data flush request. Sets the TXE flags. This allows to discard the transmit data. - bit_offset: 4 - bit_size: 1 + - name: ABRRQ + description: Auto baud rate request. Resets the ABRF flag in the USART_ISR and request an automatic baud rate measurement on the next received data frame. + bit_offset: 0 + bit_size: 1 + - name: SBKRQ + description: Send break request. Sets the SBKF flag and request to send a BREAK on the line, as soon as the transmit machine is available + bit_offset: 1 + bit_size: 1 + - name: MMRQ + description: Mute mode request. Puts the USART in mute mode and sets the RWU flag. + bit_offset: 2 + bit_size: 1 + - name: RXFRQ + description: Receive data flush request. Clears the RXNE flag. This allows to discard the received data without reading it, and avoid an overrun condition + bit_offset: 3 + bit_size: 1 + - name: TXFRQ + description: Transmit data flush request. Sets the TXE flags. This allows to discard the transmit data. + bit_offset: 4 + bit_size: 1 fieldset/RTOR: description: Receiver timeout register fields: - - name: RTO - description: Receiver timeout value - bit_offset: 0 - bit_size: 24 - - name: BLEN - description: Block Length - bit_offset: 24 - bit_size: 8 + - name: RTO + description: Receiver timeout value + bit_offset: 0 + bit_size: 24 + - name: BLEN + description: Block Length + bit_offset: 24 + bit_size: 8 enum/ABRMOD: bit_size: 2 variants: - - name: Start - description: Measurement of the start bit is used to detect the baud rate - value: 0 - - name: Edge - description: Falling edge to falling edge measurement - value: 1 - - name: Frame7F - description: "0x7F frame detection" - value: 2 - - name: Frame55 - description: "0x55 frame detection" - value: 3 + - name: Start + description: Measurement of the start bit is used to detect the baud rate + value: 0 + - name: Edge + description: Falling edge to falling edge measurement + value: 1 + - name: Frame7F + description: 0x7F frame detection + value: 2 + - name: Frame55 + description: 0x55 frame detection + value: 3 enum/ADDM: bit_size: 1 variants: - - name: Bit4 - description: 4-bit address detection - value: 0 - - name: Bit7 - description: 7-bit address detection - value: 1 + - name: Bit4 + description: 4-bit address detection + value: 0 + - name: Bit7 + description: 7-bit address detection + value: 1 enum/CPHA: bit_size: 1 variants: - - name: First - description: The first clock transition is the first data capture edge - value: 0 - - name: Second - description: The second clock transition is the first data capture edge - value: 1 + - name: First + description: The first clock transition is the first data capture edge + value: 0 + - name: Second + description: The second clock transition is the first data capture edge + value: 1 enum/CPOL: bit_size: 1 variants: - - name: Low - description: Steady low value on CK pin outside transmission window - value: 0 - - name: High - description: Steady high value on CK pin outside transmission window - value: 1 + - name: Low + description: Steady low value on CK pin outside transmission window + value: 0 + - name: High + description: Steady high value on CK pin outside transmission window + value: 1 enum/DEP: bit_size: 1 variants: - - name: High - description: DE signal is active high - value: 0 - - name: Low - description: DE signal is active low - value: 1 + - name: High + description: DE signal is active high + value: 0 + - name: Low + description: DE signal is active low + value: 1 enum/IRLP: bit_size: 1 variants: - - name: Normal - description: Normal mode - value: 0 - - name: LowPower - description: Low-power mode - value: 1 + - name: Normal + description: Normal mode + value: 0 + - name: LowPower + description: Low-power mode + value: 1 enum/LBDL: bit_size: 1 variants: - - name: Bit10 - description: 10-bit break detection - value: 0 - - name: Bit11 - description: 11-bit break detection - value: 1 + - name: Bit10 + description: 10-bit break detection + value: 0 + - name: Bit11 + description: 11-bit break detection + value: 1 enum/M0: bit_size: 1 variants: - - name: Bit8 - description: "1 start bit, 8 data bits, n stop bits" - value: 0 - - name: Bit9 - description: "1 start bit, 9 data bits, n stop bits" - value: 1 + - name: Bit8 + description: 1 start bit, 8 data bits, n stop bits + value: 0 + - name: Bit9 + description: 1 start bit, 9 data bits, n stop bits + value: 1 enum/M1: bit_size: 1 variants: - - name: M0 - description: Use M0 to set the data bits - value: 0 - - name: Bit7 - description: "1 start bit, 7 data bits, n stop bits" - value: 1 + - name: M0 + description: Use M0 to set the data bits + value: 0 + - name: Bit7 + description: 1 start bit, 7 data bits, n stop bits + value: 1 enum/MSBFIRST: bit_size: 1 variants: - - name: LSB - description: "data is transmitted/received with data bit 0 first, following the start bit" - value: 0 - - name: MSB - description: "data is transmitted/received with MSB (bit 7/8/9) first, following the start bit" - value: 1 + - name: LSB + description: data is transmitted/received with data bit 0 first, following the start bit + value: 0 + - name: MSB + description: data is transmitted/received with MSB (bit 7/8/9) first, following the start bit + value: 1 enum/OVER8: bit_size: 1 variants: - - name: Oversampling16 - description: Oversampling by 16 - value: 0 - - name: Oversampling8 - description: Oversampling by 8 - value: 1 + - name: Oversampling16 + description: Oversampling by 16 + value: 0 + - name: Oversampling8 + description: Oversampling by 8 + value: 1 enum/PRESC: bit_size: 4 variants: - - name: Div1 - description: input clock not divided - value: 0 - - name: Div2 - description: input clock divided by 2 - value: 1 - - name: Div4 - description: input clock divided by 4 - value: 2 - - name: Div6 - description: input clock divided by 6 - value: 3 - - name: Div8 - description: input clock divided by 8 - value: 4 - - name: Div10 - description: input clock divided by 10 - value: 5 - - name: Div12 - description: input clock divided by 12 - value: 6 - - name: Div16 - description: input clock divided by 16 - value: 7 - - name: Div32 - description: input clock divided by 32 - value: 8 - - name: Div64 - description: input clock divided by 64 - value: 9 - - name: Div128 - description: input clock divided by 128 - value: 10 - - name: Div256 - description: input clock divided by 256 - value: 11 + - name: Div1 + description: input clock not divided + value: 0 + - name: Div2 + description: input clock divided by 2 + value: 1 + - name: Div4 + description: input clock divided by 4 + value: 2 + - name: Div6 + description: input clock divided by 6 + value: 3 + - name: Div8 + description: input clock divided by 8 + value: 4 + - name: Div10 + description: input clock divided by 10 + value: 5 + - name: Div12 + description: input clock divided by 12 + value: 6 + - name: Div16 + description: input clock divided by 16 + value: 7 + - name: Div32 + description: input clock divided by 32 + value: 8 + - name: Div64 + description: input clock divided by 64 + value: 9 + - name: Div128 + description: input clock divided by 128 + value: 10 + - name: Div256 + description: input clock divided by 256 + value: 11 enum/PS: bit_size: 1 variants: - - name: Even - description: Even parity - value: 0 - - name: Odd - description: Odd parity - value: 1 + - name: Even + description: Even parity + value: 0 + - name: Odd + description: Odd parity + value: 1 enum/RWU: bit_size: 1 variants: - - name: Active - description: Receiver in active mode - value: 0 - - name: Mute - description: Receiver in mute mode - value: 1 + - name: Active + description: Receiver in active mode + value: 0 + - name: Mute + description: Receiver in mute mode + value: 1 enum/STOP: bit_size: 2 variants: - - name: Stop1 - description: 1 stop bit - value: 0 - - name: Stop0p5 - description: 0.5 stop bits - value: 1 - - name: Stop2 - description: 2 stop bits - value: 2 - - name: Stop1p5 - description: 1.5 stop bits - value: 3 + - name: Stop1 + description: 1 stop bit + value: 0 + - name: Stop0p5 + description: 0.5 stop bits + value: 1 + - name: Stop2 + description: 2 stop bits + value: 2 + - name: Stop1p5 + description: 1.5 stop bits + value: 3 enum/WAKE: bit_size: 1 variants: - - name: IdleLine - description: USART wakeup on idle line - value: 0 - - name: AddressMark - description: USART wakeup on address mark - value: 1 + - name: IdleLine + description: USART wakeup on idle line + value: 0 + - name: AddressMark + description: USART wakeup on address mark + value: 1 enum/WUS: bit_size: 2 variants: - - name: Address - description: WUF active on address match - value: 0 - - name: Start - description: WuF active on Start bit detection - value: 2 - - name: RXNE - description: WUF active on RXNE - value: 3 + - name: Address + description: WUF active on address match + value: 0 + - name: Start + description: WuF active on Start bit detection + value: 2 + - name: RXNE + description: WUF active on RXNE + value: 3 diff --git a/data/registers/usb_v1.yaml b/data/registers/usb_v1.yaml index e885e7d..8192041 100644 --- a/data/registers/usb_v1.yaml +++ b/data/registers/usb_v1.yaml @@ -1,257 +1,256 @@ ---- block/USB: description: Universal serial bus full-speed device interface items: - - name: EPR - description: endpoint register - array: - len: 8 - stride: 4 - byte_offset: 0 - fieldset: EPR - - name: CNTR - description: control register - byte_offset: 64 - fieldset: CNTR - - name: ISTR - description: interrupt status register - byte_offset: 68 - fieldset: ISTR - - name: FNR - description: frame number register - byte_offset: 72 - access: Read - fieldset: FNR - - name: DADDR - description: device address - byte_offset: 76 - fieldset: DADDR - - name: BTABLE - description: Buffer table address - byte_offset: 80 - fieldset: BTABLE + - name: EPR + description: endpoint register + array: + len: 8 + stride: 4 + byte_offset: 0 + fieldset: EPR + - name: CNTR + description: control register + byte_offset: 64 + fieldset: CNTR + - name: ISTR + description: interrupt status register + byte_offset: 68 + fieldset: ISTR + - name: FNR + description: frame number register + byte_offset: 72 + access: Read + fieldset: FNR + - name: DADDR + description: device address + byte_offset: 76 + fieldset: DADDR + - name: BTABLE + description: Buffer table address + byte_offset: 80 + fieldset: BTABLE fieldset/BTABLE: description: Buffer table address fields: - - name: BTABLE - description: BTABLE - bit_offset: 3 - bit_size: 13 + - name: BTABLE + description: BTABLE + bit_offset: 3 + bit_size: 13 fieldset/CNTR: description: control register fields: - - name: FRES - description: "Force a reset of the USB peripheral, exactly like a RESET signaling on the USB" - bit_offset: 0 - bit_size: 1 - - name: PDWN - description: Enter power down mode - bit_offset: 1 - bit_size: 1 - - name: LPMODE - description: Enter low-power mode - bit_offset: 2 - bit_size: 1 - - name: FSUSP - description: Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected - bit_offset: 3 - bit_size: 1 - - name: RESUME - description: Resume request - bit_offset: 4 - bit_size: 1 - - name: ESOFM - description: "ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 8 - bit_size: 1 - - name: SOFM - description: "SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 9 - bit_size: 1 - - name: RESETM - description: "RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 10 - bit_size: 1 - - name: SUSPM - description: "SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 11 - bit_size: 1 - - name: WKUPM - description: "WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 12 - bit_size: 1 - - name: ERRM - description: "ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 13 - bit_size: 1 - - name: PMAOVRM - description: "PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 14 - bit_size: 1 - - name: CTRM - description: "CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 15 - bit_size: 1 + - name: FRES + description: Force a reset of the USB peripheral, exactly like a RESET signaling on the USB + bit_offset: 0 + bit_size: 1 + - name: PDWN + description: Enter power down mode + bit_offset: 1 + bit_size: 1 + - name: LPMODE + description: Enter low-power mode + bit_offset: 2 + bit_size: 1 + - name: FSUSP + description: Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected + bit_offset: 3 + bit_size: 1 + - name: RESUME + description: Resume request + bit_offset: 4 + bit_size: 1 + - name: ESOFM + description: ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 8 + bit_size: 1 + - name: SOFM + description: SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 9 + bit_size: 1 + - name: RESETM + description: RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 10 + bit_size: 1 + - name: SUSPM + description: SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 11 + bit_size: 1 + - name: WKUPM + description: WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 12 + bit_size: 1 + - name: ERRM + description: ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 13 + bit_size: 1 + - name: PMAOVRM + description: PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 14 + bit_size: 1 + - name: CTRM + description: CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 15 + bit_size: 1 fieldset/DADDR: description: device address fields: - - name: ADD - description: device address - bit_offset: 0 - bit_size: 7 - - name: EF - description: USB device enabled - bit_offset: 7 - bit_size: 1 + - name: ADD + description: device address + bit_offset: 0 + bit_size: 7 + - name: EF + description: USB device enabled + bit_offset: 7 + bit_size: 1 fieldset/EPR: description: endpoint register fields: - - name: EA - description: EA - bit_offset: 0 - bit_size: 4 - - name: STAT_TX - description: STAT_TX - bit_offset: 4 - bit_size: 2 - enum: STAT - - name: DTOG_TX - description: DTOG_TX - bit_offset: 6 - bit_size: 1 - - name: CTR_TX - description: CTR_TX - bit_offset: 7 - bit_size: 1 - - name: EP_KIND - description: EP_KIND - bit_offset: 8 - bit_size: 1 - - name: EP_TYPE - description: EPTYPE - bit_offset: 9 - bit_size: 2 - enum: EP_TYPE - - name: SETUP - description: SETUP - bit_offset: 11 - bit_size: 1 - - name: STAT_RX - description: STAT_RX - bit_offset: 12 - bit_size: 2 - enum: STAT - - name: DTOG_RX - description: DTOG_RX - bit_offset: 14 - bit_size: 1 - - name: CTR_RX - description: CTR_RX - bit_offset: 15 - bit_size: 1 + - name: EA + description: EA + bit_offset: 0 + bit_size: 4 + - name: STAT_TX + description: STAT_TX + bit_offset: 4 + bit_size: 2 + enum: STAT + - name: DTOG_TX + description: DTOG_TX + bit_offset: 6 + bit_size: 1 + - name: CTR_TX + description: CTR_TX + bit_offset: 7 + bit_size: 1 + - name: EP_KIND + description: EP_KIND + bit_offset: 8 + bit_size: 1 + - name: EP_TYPE + description: EPTYPE + bit_offset: 9 + bit_size: 2 + enum: EP_TYPE + - name: SETUP + description: SETUP + bit_offset: 11 + bit_size: 1 + - name: STAT_RX + description: STAT_RX + bit_offset: 12 + bit_size: 2 + enum: STAT + - name: DTOG_RX + description: DTOG_RX + bit_offset: 14 + bit_size: 1 + - name: CTR_RX + description: CTR_RX + bit_offset: 15 + bit_size: 1 fieldset/FNR: description: frame number register fields: - - name: FN - description: FN - bit_offset: 0 - bit_size: 11 - - name: LSOF - description: LSOF - bit_offset: 11 - bit_size: 2 - - name: LCK - description: the frame timer remains in this state until an USB reset or USB suspend event occurs - bit_offset: 13 - bit_size: 1 - - name: RXDM - description: received data minus upstream port data line - bit_offset: 14 - bit_size: 1 - - name: RXDP - description: received data plus upstream port data line - bit_offset: 15 - bit_size: 1 + - name: FN + description: FN + bit_offset: 0 + bit_size: 11 + - name: LSOF + description: LSOF + bit_offset: 11 + bit_size: 2 + - name: LCK + description: the frame timer remains in this state until an USB reset or USB suspend event occurs + bit_offset: 13 + bit_size: 1 + - name: RXDM + description: received data minus upstream port data line + bit_offset: 14 + bit_size: 1 + - name: RXDP + description: received data plus upstream port data line + bit_offset: 15 + bit_size: 1 fieldset/ISTR: description: interrupt status register fields: - - name: EP_ID - description: EP_ID - bit_offset: 0 - bit_size: 4 - - name: DIR - description: DIR - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: ESOF - description: an SOF packet is expected but not received - bit_offset: 8 - bit_size: 1 - - name: SOF - description: beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus - bit_offset: 9 - bit_size: 1 - - name: RESET - description: peripheral detects an active USB RESET signal at its inputs - bit_offset: 10 - bit_size: 1 - - name: SUSP - description: "no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus" - bit_offset: 11 - bit_size: 1 - - name: WKUP - description: activity is detected that wakes up the USB peripheral - bit_offset: 12 - bit_size: 1 - - name: ERR - description: "One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred" - bit_offset: 13 - bit_size: 1 - - name: PMAOVR - description: microcontroller has not been able to respond in time to an USB memory request - bit_offset: 14 - bit_size: 1 - - name: CTR - description: endpoint has successfully completed a transaction - bit_offset: 15 - bit_size: 1 + - name: EP_ID + description: EP_ID + bit_offset: 0 + bit_size: 4 + - name: DIR + description: DIR + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: ESOF + description: an SOF packet is expected but not received + bit_offset: 8 + bit_size: 1 + - name: SOF + description: beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus + bit_offset: 9 + bit_size: 1 + - name: RESET + description: peripheral detects an active USB RESET signal at its inputs + bit_offset: 10 + bit_size: 1 + - name: SUSP + description: no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus + bit_offset: 11 + bit_size: 1 + - name: WKUP + description: activity is detected that wakes up the USB peripheral + bit_offset: 12 + bit_size: 1 + - name: ERR + description: One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred + bit_offset: 13 + bit_size: 1 + - name: PMAOVR + description: microcontroller has not been able to respond in time to an USB memory request + bit_offset: 14 + bit_size: 1 + - name: CTR + description: endpoint has successfully completed a transaction + bit_offset: 15 + bit_size: 1 enum/DIR: bit_size: 1 variants: - - name: To - description: data transmitted by the USB peripheral to the host PC - value: 0 - - name: From - description: data received by the USB peripheral from the host PC - value: 1 + - name: To + description: data transmitted by the USB peripheral to the host PC + value: 0 + - name: From + description: data received by the USB peripheral from the host PC + value: 1 enum/EP_TYPE: bit_size: 2 variants: - - name: Bulk - description: Bulk endpoint - value: 0 - - name: Control - description: Control endpoint - value: 1 - - name: Iso - description: Iso endpoint - value: 2 - - name: Interrupt - description: Interrupt endpoint - value: 3 + - name: Bulk + description: Bulk endpoint + value: 0 + - name: Control + description: Control endpoint + value: 1 + - name: Iso + description: Iso endpoint + value: 2 + - name: Interrupt + description: Interrupt endpoint + value: 3 enum/STAT: bit_size: 2 variants: - - name: Disabled - description: all requests addressed to this endpoint are ignored - value: 0 - - name: Stall - description: the endpoint is stalled and all requests result in a STALL handshake - value: 1 - - name: Nak - description: the endpoint is naked and all requests result in a NAK handshake - value: 2 - - name: Valid - description: "this endpoint is enabled, requests are ACKed" - value: 3 + - name: Disabled + description: all requests addressed to this endpoint are ignored + value: 0 + - name: Stall + description: the endpoint is stalled and all requests result in a STALL handshake + value: 1 + - name: Nak + description: the endpoint is naked and all requests result in a NAK handshake + value: 2 + - name: Valid + description: this endpoint is enabled, requests are ACKed + value: 3 diff --git a/data/registers/usb_v2.yaml b/data/registers/usb_v2.yaml index 70c6954..f3b6457 100644 --- a/data/registers/usb_v2.yaml +++ b/data/registers/usb_v2.yaml @@ -1,302 +1,301 @@ ---- block/USB: description: Universal serial bus full-speed device interface items: - - name: EPR - description: endpoint register - array: - len: 8 - stride: 4 - byte_offset: 0 - fieldset: EPR - - name: CNTR - description: control register - byte_offset: 64 - fieldset: CNTR - - name: ISTR - description: interrupt status register - byte_offset: 68 - fieldset: ISTR - - name: FNR - description: frame number register - byte_offset: 72 - access: Read - fieldset: FNR - - name: DADDR - description: device address - byte_offset: 76 - fieldset: DADDR - - name: BTABLE - description: Buffer table address - byte_offset: 80 - fieldset: BTABLE - - name: LPMCSR - description: LPM control and status register - byte_offset: 84 - fieldset: LPMCSR + - name: EPR + description: endpoint register + array: + len: 8 + stride: 4 + byte_offset: 0 + fieldset: EPR + - name: CNTR + description: control register + byte_offset: 64 + fieldset: CNTR + - name: ISTR + description: interrupt status register + byte_offset: 68 + fieldset: ISTR + - name: FNR + description: frame number register + byte_offset: 72 + access: Read + fieldset: FNR + - name: DADDR + description: device address + byte_offset: 76 + fieldset: DADDR + - name: BTABLE + description: Buffer table address + byte_offset: 80 + fieldset: BTABLE + - name: LPMCSR + description: LPM control and status register + byte_offset: 84 + fieldset: LPMCSR fieldset/BTABLE: description: Buffer table address fields: - - name: BTABLE - description: BTABLE - bit_offset: 3 - bit_size: 13 + - name: BTABLE + description: BTABLE + bit_offset: 3 + bit_size: 13 fieldset/CNTR: description: control register fields: - - name: FRES - description: "Force a reset of the USB peripheral, exactly like a RESET signaling on the USB" - bit_offset: 0 - bit_size: 1 - - name: PDWN - description: Enter power down mode - bit_offset: 1 - bit_size: 1 - - name: LPMODE - description: Enter low-power mode - bit_offset: 2 - bit_size: 1 - - name: FSUSP - description: Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected - bit_offset: 3 - bit_size: 1 - - name: RESUME - description: Resume request - bit_offset: 4 - bit_size: 1 - - name: L1RESUME - description: LPM L1 request request - bit_offset: 5 - bit_size: 1 - - name: L1REQM - description: "L1REQ Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 7 - bit_size: 1 - - name: ESOFM - description: "ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 8 - bit_size: 1 - - name: SOFM - description: "SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 9 - bit_size: 1 - - name: RESETM - description: "RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 10 - bit_size: 1 - - name: SUSPM - description: "SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 11 - bit_size: 1 - - name: WKUPM - description: "WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 12 - bit_size: 1 - - name: ERRM - description: "ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 13 - bit_size: 1 - - name: PMAOVRM - description: "PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 14 - bit_size: 1 - - name: CTRM - description: "CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 15 - bit_size: 1 + - name: FRES + description: Force a reset of the USB peripheral, exactly like a RESET signaling on the USB + bit_offset: 0 + bit_size: 1 + - name: PDWN + description: Enter power down mode + bit_offset: 1 + bit_size: 1 + - name: LPMODE + description: Enter low-power mode + bit_offset: 2 + bit_size: 1 + - name: FSUSP + description: Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected + bit_offset: 3 + bit_size: 1 + - name: RESUME + description: Resume request + bit_offset: 4 + bit_size: 1 + - name: L1RESUME + description: LPM L1 request request + bit_offset: 5 + bit_size: 1 + - name: L1REQM + description: L1REQ Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 7 + bit_size: 1 + - name: ESOFM + description: ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 8 + bit_size: 1 + - name: SOFM + description: SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 9 + bit_size: 1 + - name: RESETM + description: RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 10 + bit_size: 1 + - name: SUSPM + description: SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 11 + bit_size: 1 + - name: WKUPM + description: WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 12 + bit_size: 1 + - name: ERRM + description: ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 13 + bit_size: 1 + - name: PMAOVRM + description: PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 14 + bit_size: 1 + - name: CTRM + description: CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 15 + bit_size: 1 fieldset/DADDR: description: device address fields: - - name: ADD - description: device address - bit_offset: 0 - bit_size: 7 - - name: EF - description: USB device enabled - bit_offset: 7 - bit_size: 1 + - name: ADD + description: device address + bit_offset: 0 + bit_size: 7 + - name: EF + description: USB device enabled + bit_offset: 7 + bit_size: 1 fieldset/EPR: description: endpoint register fields: - - name: EA - description: EA - bit_offset: 0 - bit_size: 4 - - name: STAT_TX - description: STAT_TX - bit_offset: 4 - bit_size: 2 - enum: STAT - - name: DTOG_TX - description: DTOG_TX - bit_offset: 6 - bit_size: 1 - - name: CTR_TX - description: CTR_TX - bit_offset: 7 - bit_size: 1 - - name: EP_KIND - description: EP_KIND - bit_offset: 8 - bit_size: 1 - - name: EP_TYPE - description: EPTYPE - bit_offset: 9 - bit_size: 2 - enum: EP_TYPE - - name: SETUP - description: SETUP - bit_offset: 11 - bit_size: 1 - - name: STAT_RX - description: STAT_RX - bit_offset: 12 - bit_size: 2 - enum: STAT - - name: DTOG_RX - description: DTOG_RX - bit_offset: 14 - bit_size: 1 - - name: CTR_RX - description: CTR_RX - bit_offset: 15 - bit_size: 1 + - name: EA + description: EA + bit_offset: 0 + bit_size: 4 + - name: STAT_TX + description: STAT_TX + bit_offset: 4 + bit_size: 2 + enum: STAT + - name: DTOG_TX + description: DTOG_TX + bit_offset: 6 + bit_size: 1 + - name: CTR_TX + description: CTR_TX + bit_offset: 7 + bit_size: 1 + - name: EP_KIND + description: EP_KIND + bit_offset: 8 + bit_size: 1 + - name: EP_TYPE + description: EPTYPE + bit_offset: 9 + bit_size: 2 + enum: EP_TYPE + - name: SETUP + description: SETUP + bit_offset: 11 + bit_size: 1 + - name: STAT_RX + description: STAT_RX + bit_offset: 12 + bit_size: 2 + enum: STAT + - name: DTOG_RX + description: DTOG_RX + bit_offset: 14 + bit_size: 1 + - name: CTR_RX + description: CTR_RX + bit_offset: 15 + bit_size: 1 fieldset/FNR: description: frame number register fields: - - name: FN - description: FN - bit_offset: 0 - bit_size: 11 - - name: LSOF - description: LSOF - bit_offset: 11 - bit_size: 2 - - name: LCK - description: the frame timer remains in this state until an USB reset or USB suspend event occurs - bit_offset: 13 - bit_size: 1 - - name: RXDM - description: received data minus upstream port data line - bit_offset: 14 - bit_size: 1 - - name: RXDP - description: received data plus upstream port data line - bit_offset: 15 - bit_size: 1 + - name: FN + description: FN + bit_offset: 0 + bit_size: 11 + - name: LSOF + description: LSOF + bit_offset: 11 + bit_size: 2 + - name: LCK + description: the frame timer remains in this state until an USB reset or USB suspend event occurs + bit_offset: 13 + bit_size: 1 + - name: RXDM + description: received data minus upstream port data line + bit_offset: 14 + bit_size: 1 + - name: RXDP + description: received data plus upstream port data line + bit_offset: 15 + bit_size: 1 fieldset/ISTR: description: interrupt status register fields: - - name: EP_ID - description: EP_ID - bit_offset: 0 - bit_size: 4 - - name: DIR - description: DIR - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: L1REQ - description: LPM command to enter the L1 state is successfully received and acknowledged - bit_offset: 7 - bit_size: 1 - - name: ESOF - description: an SOF packet is expected but not received - bit_offset: 8 - bit_size: 1 - - name: SOF - description: beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus - bit_offset: 9 - bit_size: 1 - - name: RESET - description: peripheral detects an active USB RESET signal at its inputs - bit_offset: 10 - bit_size: 1 - - name: SUSP - description: "no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus" - bit_offset: 11 - bit_size: 1 - - name: WKUP - description: activity is detected that wakes up the USB peripheral - bit_offset: 12 - bit_size: 1 - - name: ERR - description: "One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred" - bit_offset: 13 - bit_size: 1 - - name: PMAOVR - description: microcontroller has not been able to respond in time to an USB memory request - bit_offset: 14 - bit_size: 1 - - name: CTR - description: endpoint has successfully completed a transaction - bit_offset: 15 - bit_size: 1 + - name: EP_ID + description: EP_ID + bit_offset: 0 + bit_size: 4 + - name: DIR + description: DIR + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: L1REQ + description: LPM command to enter the L1 state is successfully received and acknowledged + bit_offset: 7 + bit_size: 1 + - name: ESOF + description: an SOF packet is expected but not received + bit_offset: 8 + bit_size: 1 + - name: SOF + description: beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus + bit_offset: 9 + bit_size: 1 + - name: RESET + description: peripheral detects an active USB RESET signal at its inputs + bit_offset: 10 + bit_size: 1 + - name: SUSP + description: no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus + bit_offset: 11 + bit_size: 1 + - name: WKUP + description: activity is detected that wakes up the USB peripheral + bit_offset: 12 + bit_size: 1 + - name: ERR + description: One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred + bit_offset: 13 + bit_size: 1 + - name: PMAOVR + description: microcontroller has not been able to respond in time to an USB memory request + bit_offset: 14 + bit_size: 1 + - name: CTR + description: endpoint has successfully completed a transaction + bit_offset: 15 + bit_size: 1 fieldset/LPMCSR: description: LPM control and status register fields: - - name: LPMEN - description: enable the LPM support within the USB device - bit_offset: 0 - bit_size: 1 - - name: LPMACK - description: LPMACK - bit_offset: 1 - bit_size: 1 - enum: LPMACK - - name: REMWAKE - description: REMWAKE - bit_offset: 3 - bit_size: 1 - - name: BESL - description: BESL - bit_offset: 4 - bit_size: 4 + - name: LPMEN + description: enable the LPM support within the USB device + bit_offset: 0 + bit_size: 1 + - name: LPMACK + description: LPMACK + bit_offset: 1 + bit_size: 1 + enum: LPMACK + - name: REMWAKE + description: REMWAKE + bit_offset: 3 + bit_size: 1 + - name: BESL + description: BESL + bit_offset: 4 + bit_size: 4 enum/DIR: bit_size: 1 variants: - - name: To - description: data transmitted by the USB peripheral to the host PC - value: 0 - - name: From - description: data received by the USB peripheral from the host PC - value: 1 + - name: To + description: data transmitted by the USB peripheral to the host PC + value: 0 + - name: From + description: data received by the USB peripheral from the host PC + value: 1 enum/EP_TYPE: bit_size: 2 variants: - - name: Bulk - description: Bulk endpoint - value: 0 - - name: Control - description: Control endpoint - value: 1 - - name: Iso - description: Iso endpoint - value: 2 - - name: Interrupt - description: Interrupt endpoint - value: 3 + - name: Bulk + description: Bulk endpoint + value: 0 + - name: Control + description: Control endpoint + value: 1 + - name: Iso + description: Iso endpoint + value: 2 + - name: Interrupt + description: Interrupt endpoint + value: 3 enum/LPMACK: bit_size: 1 variants: - - name: Nyet - description: the valid LPM Token will be NYET - value: 0 - - name: Ack - description: the valid LPM Token will be ACK - value: 1 + - name: Nyet + description: the valid LPM Token will be NYET + value: 0 + - name: Ack + description: the valid LPM Token will be ACK + value: 1 enum/STAT: bit_size: 2 variants: - - name: Disabled - description: all requests addressed to this endpoint are ignored - value: 0 - - name: Stall - description: the endpoint is stalled and all requests result in a STALL handshake - value: 1 - - name: Nak - description: the endpoint is naked and all requests result in a NAK handshake - value: 2 - - name: Valid - description: "this endpoint is enabled, requests are ACKed" - value: 3 + - name: Disabled + description: all requests addressed to this endpoint are ignored + value: 0 + - name: Stall + description: the endpoint is stalled and all requests result in a STALL handshake + value: 1 + - name: Nak + description: the endpoint is naked and all requests result in a NAK handshake + value: 2 + - name: Valid + description: this endpoint is enabled, requests are ACKed + value: 3 diff --git a/data/registers/usb_v3.yaml b/data/registers/usb_v3.yaml index 21900e9..6af4763 100644 --- a/data/registers/usb_v3.yaml +++ b/data/registers/usb_v3.yaml @@ -1,355 +1,354 @@ ---- block/USB: description: Universal serial bus full-speed device interface items: - - name: EPR - description: endpoint register - array: - len: 8 - stride: 4 - byte_offset: 0 - fieldset: EPR - - name: CNTR - description: control register - byte_offset: 64 - fieldset: CNTR - - name: ISTR - description: interrupt status register - byte_offset: 68 - fieldset: ISTR - - name: FNR - description: frame number register - byte_offset: 72 - access: Read - fieldset: FNR - - name: DADDR - description: device address - byte_offset: 76 - fieldset: DADDR - - name: BTABLE - description: Buffer table address - byte_offset: 80 - fieldset: BTABLE - - name: LPMCSR - description: LPM control and status register - byte_offset: 84 - fieldset: LPMCSR - - name: BCDR - description: Battery Charging Detector - byte_offset: 88 - fieldset: BCDR + - name: EPR + description: endpoint register + array: + len: 8 + stride: 4 + byte_offset: 0 + fieldset: EPR + - name: CNTR + description: control register + byte_offset: 64 + fieldset: CNTR + - name: ISTR + description: interrupt status register + byte_offset: 68 + fieldset: ISTR + - name: FNR + description: frame number register + byte_offset: 72 + access: Read + fieldset: FNR + - name: DADDR + description: device address + byte_offset: 76 + fieldset: DADDR + - name: BTABLE + description: Buffer table address + byte_offset: 80 + fieldset: BTABLE + - name: LPMCSR + description: LPM control and status register + byte_offset: 84 + fieldset: LPMCSR + - name: BCDR + description: Battery Charging Detector + byte_offset: 88 + fieldset: BCDR fieldset/BCDR: description: Battery Charging Detector fields: - - name: BCDEN - description: Battery charging detector mode enable - bit_offset: 0 - bit_size: 1 - - name: DCDEN - description: Data contact detection mode enable - bit_offset: 1 - bit_size: 1 - - name: PDEN - description: Primary detection mode enable - bit_offset: 2 - bit_size: 1 - - name: SDEN - description: Secondary detection mode enable - bit_offset: 3 - bit_size: 1 - - name: DCDET - description: Data contact detection status - bit_offset: 4 - bit_size: 1 - - name: PDET - description: Primary detection status - bit_offset: 5 - bit_size: 1 - - name: SDET - description: Secondary detection status - bit_offset: 6 - bit_size: 1 - enum: SDET - - name: PS2DET - description: DM pull-up detection status - bit_offset: 7 - bit_size: 1 - - name: DPPU - description: DP pull-up control - bit_offset: 15 - bit_size: 1 + - name: BCDEN + description: Battery charging detector mode enable + bit_offset: 0 + bit_size: 1 + - name: DCDEN + description: Data contact detection mode enable + bit_offset: 1 + bit_size: 1 + - name: PDEN + description: Primary detection mode enable + bit_offset: 2 + bit_size: 1 + - name: SDEN + description: Secondary detection mode enable + bit_offset: 3 + bit_size: 1 + - name: DCDET + description: Data contact detection status + bit_offset: 4 + bit_size: 1 + - name: PDET + description: Primary detection status + bit_offset: 5 + bit_size: 1 + - name: SDET + description: Secondary detection status + bit_offset: 6 + bit_size: 1 + enum: SDET + - name: PS2DET + description: DM pull-up detection status + bit_offset: 7 + bit_size: 1 + - name: DPPU + description: DP pull-up control + bit_offset: 15 + bit_size: 1 fieldset/BTABLE: description: Buffer table address fields: - - name: BTABLE - description: BTABLE - bit_offset: 3 - bit_size: 13 + - name: BTABLE + description: BTABLE + bit_offset: 3 + bit_size: 13 fieldset/CNTR: description: control register fields: - - name: FRES - description: "Force a reset of the USB peripheral, exactly like a RESET signaling on the USB" - bit_offset: 0 - bit_size: 1 - - name: PDWN - description: Enter power down mode - bit_offset: 1 - bit_size: 1 - - name: LPMODE - description: Enter low-power mode - bit_offset: 2 - bit_size: 1 - - name: FSUSP - description: Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected - bit_offset: 3 - bit_size: 1 - - name: RESUME - description: Resume request - bit_offset: 4 - bit_size: 1 - - name: L1RESUME - description: LPM L1 request request - bit_offset: 5 - bit_size: 1 - - name: L1REQM - description: "L1REQ Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 7 - bit_size: 1 - - name: ESOFM - description: "ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 8 - bit_size: 1 - - name: SOFM - description: "SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 9 - bit_size: 1 - - name: RESETM - description: "RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 10 - bit_size: 1 - - name: SUSPM - description: "SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 11 - bit_size: 1 - - name: WKUPM - description: "WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 12 - bit_size: 1 - - name: ERRM - description: "ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 13 - bit_size: 1 - - name: PMAOVRM - description: "PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 14 - bit_size: 1 - - name: CTRM - description: "CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 15 - bit_size: 1 + - name: FRES + description: Force a reset of the USB peripheral, exactly like a RESET signaling on the USB + bit_offset: 0 + bit_size: 1 + - name: PDWN + description: Enter power down mode + bit_offset: 1 + bit_size: 1 + - name: LPMODE + description: Enter low-power mode + bit_offset: 2 + bit_size: 1 + - name: FSUSP + description: Enter suspend mode. Clocks and static power dissipation in the analog transceiver are left unaffected + bit_offset: 3 + bit_size: 1 + - name: RESUME + description: Resume request + bit_offset: 4 + bit_size: 1 + - name: L1RESUME + description: LPM L1 request request + bit_offset: 5 + bit_size: 1 + - name: L1REQM + description: L1REQ Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 7 + bit_size: 1 + - name: ESOFM + description: ESOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 8 + bit_size: 1 + - name: SOFM + description: SOF Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 9 + bit_size: 1 + - name: RESETM + description: RESET Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 10 + bit_size: 1 + - name: SUSPM + description: SUSP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 11 + bit_size: 1 + - name: WKUPM + description: WKUP Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 12 + bit_size: 1 + - name: ERRM + description: ERR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 13 + bit_size: 1 + - name: PMAOVRM + description: PMAOVR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 14 + bit_size: 1 + - name: CTRM + description: CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 15 + bit_size: 1 fieldset/DADDR: description: device address fields: - - name: ADD - description: device address - bit_offset: 0 - bit_size: 7 - - name: EF - description: USB device enabled - bit_offset: 7 - bit_size: 1 + - name: ADD + description: device address + bit_offset: 0 + bit_size: 7 + - name: EF + description: USB device enabled + bit_offset: 7 + bit_size: 1 fieldset/EPR: description: endpoint register fields: - - name: EA - description: EA - bit_offset: 0 - bit_size: 4 - - name: STAT_TX - description: STAT_TX - bit_offset: 4 - bit_size: 2 - enum: STAT - - name: DTOG_TX - description: DTOG_TX - bit_offset: 6 - bit_size: 1 - - name: CTR_TX - description: CTR_TX - bit_offset: 7 - bit_size: 1 - - name: EP_KIND - description: EP_KIND - bit_offset: 8 - bit_size: 1 - - name: EP_TYPE - description: EPTYPE - bit_offset: 9 - bit_size: 2 - enum: EP_TYPE - - name: SETUP - description: SETUP - bit_offset: 11 - bit_size: 1 - - name: STAT_RX - description: STAT_RX - bit_offset: 12 - bit_size: 2 - enum: STAT - - name: DTOG_RX - description: DTOG_RX - bit_offset: 14 - bit_size: 1 - - name: CTR_RX - description: CTR_RX - bit_offset: 15 - bit_size: 1 + - name: EA + description: EA + bit_offset: 0 + bit_size: 4 + - name: STAT_TX + description: STAT_TX + bit_offset: 4 + bit_size: 2 + enum: STAT + - name: DTOG_TX + description: DTOG_TX + bit_offset: 6 + bit_size: 1 + - name: CTR_TX + description: CTR_TX + bit_offset: 7 + bit_size: 1 + - name: EP_KIND + description: EP_KIND + bit_offset: 8 + bit_size: 1 + - name: EP_TYPE + description: EPTYPE + bit_offset: 9 + bit_size: 2 + enum: EP_TYPE + - name: SETUP + description: SETUP + bit_offset: 11 + bit_size: 1 + - name: STAT_RX + description: STAT_RX + bit_offset: 12 + bit_size: 2 + enum: STAT + - name: DTOG_RX + description: DTOG_RX + bit_offset: 14 + bit_size: 1 + - name: CTR_RX + description: CTR_RX + bit_offset: 15 + bit_size: 1 fieldset/FNR: description: frame number register fields: - - name: FN - description: FN - bit_offset: 0 - bit_size: 11 - - name: LSOF - description: LSOF - bit_offset: 11 - bit_size: 2 - - name: LCK - description: the frame timer remains in this state until an USB reset or USB suspend event occurs - bit_offset: 13 - bit_size: 1 - - name: RXDM - description: received data minus upstream port data line - bit_offset: 14 - bit_size: 1 - - name: RXDP - description: received data plus upstream port data line - bit_offset: 15 - bit_size: 1 + - name: FN + description: FN + bit_offset: 0 + bit_size: 11 + - name: LSOF + description: LSOF + bit_offset: 11 + bit_size: 2 + - name: LCK + description: the frame timer remains in this state until an USB reset or USB suspend event occurs + bit_offset: 13 + bit_size: 1 + - name: RXDM + description: received data minus upstream port data line + bit_offset: 14 + bit_size: 1 + - name: RXDP + description: received data plus upstream port data line + bit_offset: 15 + bit_size: 1 fieldset/ISTR: description: interrupt status register fields: - - name: EP_ID - description: EP_ID - bit_offset: 0 - bit_size: 4 - - name: DIR - description: DIR - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: L1REQ - description: LPM command to enter the L1 state is successfully received and acknowledged - bit_offset: 7 - bit_size: 1 - - name: ESOF - description: an SOF packet is expected but not received - bit_offset: 8 - bit_size: 1 - - name: SOF - description: beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus - bit_offset: 9 - bit_size: 1 - - name: RESET - description: peripheral detects an active USB RESET signal at its inputs - bit_offset: 10 - bit_size: 1 - - name: SUSP - description: "no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus" - bit_offset: 11 - bit_size: 1 - - name: WKUP - description: activity is detected that wakes up the USB peripheral - bit_offset: 12 - bit_size: 1 - - name: ERR - description: "One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred" - bit_offset: 13 - bit_size: 1 - - name: PMAOVR - description: microcontroller has not been able to respond in time to an USB memory request - bit_offset: 14 - bit_size: 1 - - name: CTR - description: endpoint has successfully completed a transaction - bit_offset: 15 - bit_size: 1 + - name: EP_ID + description: EP_ID + bit_offset: 0 + bit_size: 4 + - name: DIR + description: DIR + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: L1REQ + description: LPM command to enter the L1 state is successfully received and acknowledged + bit_offset: 7 + bit_size: 1 + - name: ESOF + description: an SOF packet is expected but not received + bit_offset: 8 + bit_size: 1 + - name: SOF + description: beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus + bit_offset: 9 + bit_size: 1 + - name: RESET + description: peripheral detects an active USB RESET signal at its inputs + bit_offset: 10 + bit_size: 1 + - name: SUSP + description: no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus + bit_offset: 11 + bit_size: 1 + - name: WKUP + description: activity is detected that wakes up the USB peripheral + bit_offset: 12 + bit_size: 1 + - name: ERR + description: One of No ANSwer, Cyclic Redundancy Check, Bit Stuffing or Framing format Violation error occurred + bit_offset: 13 + bit_size: 1 + - name: PMAOVR + description: microcontroller has not been able to respond in time to an USB memory request + bit_offset: 14 + bit_size: 1 + - name: CTR + description: endpoint has successfully completed a transaction + bit_offset: 15 + bit_size: 1 fieldset/LPMCSR: description: LPM control and status register fields: - - name: LPMEN - description: enable the LPM support within the USB device - bit_offset: 0 - bit_size: 1 - - name: LPMACK - description: LPMACK - bit_offset: 1 - bit_size: 1 - enum: LPMACK - - name: REMWAKE - description: REMWAKE - bit_offset: 3 - bit_size: 1 - - name: BESL - description: BESL - bit_offset: 4 - bit_size: 4 + - name: LPMEN + description: enable the LPM support within the USB device + bit_offset: 0 + bit_size: 1 + - name: LPMACK + description: LPMACK + bit_offset: 1 + bit_size: 1 + enum: LPMACK + - name: REMWAKE + description: REMWAKE + bit_offset: 3 + bit_size: 1 + - name: BESL + description: BESL + bit_offset: 4 + bit_size: 4 enum/DIR: bit_size: 1 variants: - - name: To - description: data transmitted by the USB peripheral to the host PC - value: 0 - - name: From - description: data received by the USB peripheral from the host PC - value: 1 + - name: To + description: data transmitted by the USB peripheral to the host PC + value: 0 + - name: From + description: data received by the USB peripheral from the host PC + value: 1 enum/EP_TYPE: bit_size: 2 variants: - - name: Bulk - description: Bulk endpoint - value: 0 - - name: Control - description: Control endpoint - value: 1 - - name: Iso - description: Iso endpoint - value: 2 - - name: Interrupt - description: Interrupt endpoint - value: 3 + - name: Bulk + description: Bulk endpoint + value: 0 + - name: Control + description: Control endpoint + value: 1 + - name: Iso + description: Iso endpoint + value: 2 + - name: Interrupt + description: Interrupt endpoint + value: 3 enum/LPMACK: bit_size: 1 variants: - - name: Nyet - description: the valid LPM Token will be NYET - value: 0 - - name: Ack - description: the valid LPM Token will be ACK - value: 1 + - name: Nyet + description: the valid LPM Token will be NYET + value: 0 + - name: Ack + description: the valid LPM Token will be ACK + value: 1 enum/SDET: bit_size: 1 variants: - - name: CDP - description: CDP detected - value: 0 - - name: DCP - description: DCP detected - value: 1 + - name: CDP + description: CDP detected + value: 0 + - name: DCP + description: DCP detected + value: 1 enum/STAT: bit_size: 2 variants: - - name: Disabled - description: all requests addressed to this endpoint are ignored - value: 0 - - name: Stall - description: the endpoint is stalled and all requests result in a STALL handshake - value: 1 - - name: Nak - description: the endpoint is naked and all requests result in a NAK handshake - value: 2 - - name: Valid - description: "this endpoint is enabled, requests are ACKed" - value: 3 + - name: Disabled + description: all requests addressed to this endpoint are ignored + value: 0 + - name: Stall + description: the endpoint is stalled and all requests result in a STALL handshake + value: 1 + - name: Nak + description: the endpoint is naked and all requests result in a NAK handshake + value: 2 + - name: Valid + description: this endpoint is enabled, requests are ACKed + value: 3 diff --git a/data/registers/usb_v4.yaml b/data/registers/usb_v4.yaml index da2a5ce..56f2809 100644 --- a/data/registers/usb_v4.yaml +++ b/data/registers/usb_v4.yaml @@ -1,384 +1,383 @@ ---- block/USB: description: Universal serial bus full-speed host/device interface items: - - name: EPR - description: endpoint/channel - array: - len: 8 - stride: 4 - byte_offset: 0 - fieldset: EPR - - name: CNTR - description: control register - byte_offset: 64 - fieldset: CNTR - - name: ISTR - description: interrupt status register - byte_offset: 68 - fieldset: ISTR - - name: FNR - description: frame number register - byte_offset: 72 - access: Read - fieldset: FNR - - name: DADDR - description: device address - byte_offset: 76 - fieldset: DADDR - - name: LPMCSR - description: LPM control and status register - byte_offset: 84 - fieldset: LPMCSR - - name: BCDR - description: Battery charging detector - byte_offset: 88 - fieldset: BCDR + - name: EPR + description: endpoint/channel + array: + len: 8 + stride: 4 + byte_offset: 0 + fieldset: EPR + - name: CNTR + description: control register + byte_offset: 64 + fieldset: CNTR + - name: ISTR + description: interrupt status register + byte_offset: 68 + fieldset: ISTR + - name: FNR + description: frame number register + byte_offset: 72 + access: Read + fieldset: FNR + - name: DADDR + description: device address + byte_offset: 76 + fieldset: DADDR + - name: LPMCSR + description: LPM control and status register + byte_offset: 84 + fieldset: LPMCSR + - name: BCDR + description: Battery charging detector + byte_offset: 88 + fieldset: BCDR fieldset/BCDR: description: Battery charging detector fields: - - name: BCDEN - description: "Battery charging detector (BCD) enable Device mode This bit is set by the software to enable the BCD support within the USB device. When enabled, the USB PHY is fully controlled by BCD and cannot be used for normal communication. Once the BCD discovery is finished, the BCD should be placed in OFF mode by clearing this bit to '0 in order to allow the normal USB operation." - bit_offset: 0 - bit_size: 1 - - name: DCDEN - description: "Data contact detection (DCD) mode enable Device mode This bit is set by the software to put the BCD into DCD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly." - bit_offset: 1 - bit_size: 1 - - name: PDEN - description: "Primary detection (PD) mode enable Device mode This bit is set by the software to put the BCD into PD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly." - bit_offset: 2 - bit_size: 1 - - name: SDEN - description: "Secondary detection (SD) mode enable Device mode This bit is set by the software to put the BCD into SD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly." - bit_offset: 3 - bit_size: 1 - - name: DCDET - description: Data contact detection (DCD) status Device mode This bit gives the result of DCD. - bit_offset: 4 - bit_size: 1 - - name: PDET - description: Primary detection (PD) status Device mode This bit gives the result of PD. - bit_offset: 5 - bit_size: 1 - - name: SDET - description: Secondary detection (SD) status Device mode This bit gives the result of SD. - bit_offset: 6 - bit_size: 1 - enum: SDET - - name: PS2DET - description: "DM pull-up detection status Device mode This bit is active only during PD and gives the result of comparison between DM voltage level and VLGC threshold. In normal situation, the DM level should be below this threshold. If it is above, it means that the DM is externally pulled high. This can be caused by connection to a PS2 port (which pulls-up both DP and DM lines) or to some proprietary charger not following the BCD specification." - bit_offset: 7 - bit_size: 1 - - name: DPPU - description: "DP pull-up / DPDM pull-down Device mode This bit is set by software to enable the embedded pull-up on DP line. Clearing it to '0 can be used to signal disconnect to the host when needed by the user software. Host mode This bit is set by software to enable the embedded pull-down on DP and DM lines." - bit_offset: 15 - bit_size: 1 + - name: BCDEN + description: Battery charging detector (BCD) enable Device mode This bit is set by the software to enable the BCD support within the USB device. When enabled, the USB PHY is fully controlled by BCD and cannot be used for normal communication. Once the BCD discovery is finished, the BCD should be placed in OFF mode by clearing this bit to '0 in order to allow the normal USB operation. + bit_offset: 0 + bit_size: 1 + - name: DCDEN + description: Data contact detection (DCD) mode enable Device mode This bit is set by the software to put the BCD into DCD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly. + bit_offset: 1 + bit_size: 1 + - name: PDEN + description: Primary detection (PD) mode enable Device mode This bit is set by the software to put the BCD into PD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly. + bit_offset: 2 + bit_size: 1 + - name: SDEN + description: Secondary detection (SD) mode enable Device mode This bit is set by the software to put the BCD into SD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly. + bit_offset: 3 + bit_size: 1 + - name: DCDET + description: Data contact detection (DCD) status Device mode This bit gives the result of DCD. + bit_offset: 4 + bit_size: 1 + - name: PDET + description: Primary detection (PD) status Device mode This bit gives the result of PD. + bit_offset: 5 + bit_size: 1 + - name: SDET + description: Secondary detection (SD) status Device mode This bit gives the result of SD. + bit_offset: 6 + bit_size: 1 + enum: SDET + - name: PS2DET + description: DM pull-up detection status Device mode This bit is active only during PD and gives the result of comparison between DM voltage level and VLGC threshold. In normal situation, the DM level should be below this threshold. If it is above, it means that the DM is externally pulled high. This can be caused by connection to a PS2 port (which pulls-up both DP and DM lines) or to some proprietary charger not following the BCD specification. + bit_offset: 7 + bit_size: 1 + - name: DPPU + description: DP pull-up / DPDM pull-down Device mode This bit is set by software to enable the embedded pull-up on DP line. Clearing it to '0 can be used to signal disconnect to the host when needed by the user software. Host mode This bit is set by software to enable the embedded pull-down on DP and DM lines. + bit_offset: 15 + bit_size: 1 fieldset/CNTR: description: control register fields: - - name: FRES - description: "Force a reset of the USB peripheral, exactly like a RESET signaling on the USB" - bit_offset: 0 - bit_size: 1 - - name: PDWN - description: "Power down This bit is used to completely switch off all USB-related analog parts if it is required to completely disable the USB peripheral for any reason. When this bit is set, the USB peripheral is disconnected from the transceivers and it cannot be used." - bit_offset: 1 - bit_size: 1 - - name: LPMODE - description: "Suspend state effective This bit is set by hardware as soon as the suspend state entered through the SUSPEN control gets internally effective. In this state USB activity is suspended, USB clock is gated, transceiver is set in low power mode by disabling the differential receiver. Only asynchronous wakeup logic and single ended receiver is kept alive to detect remote wakeup or resume events. Software must poll this bit to confirm it to be set before any STOP mode entry. This bit is cleared by hardware simultaneously to the WAKEUP flag being set." - bit_offset: 2 - bit_size: 1 - - name: FSUSP - description: "Suspend state enable Device mode Software can set this bit when the SUSP interrupt is received, which is issued when no traffic is received by the USB peripheral for 3 ms. Software can also set this bit when the L1REQ interrupt is received with positive acknowledge sent. As soon as the suspend state is propagated internally all device activity is stopped, USB clock is gated, USB transceiver is set into low power mode and the SUSPRDY bit is set by hardware. In the case that device application wants to purse more aggressive power saving by stopping the USB clock source and by moving the microcontroller to stop mode, as in the case of bus powered device application, it must first wait few cycles to see the SUSPRDY=1 acknowledge the suspend request. This bit is cleared by hardware simultaneous with the WAKEUP flag set. Host mode Software can set this bit when Host application has nothing scheduled for the next frames and wants to enter long term power saving. When set, it stops immediately SOF generation and any other host activity, gates the USB clock and sets the transceiver in low power mode. If any USB transaction is on-going at the time SUSPEN is set, suspend is entered at the end of the current transaction. As soon as suspend state is propagated internally and gets effective the SUSPRDY bit is set. In the case that host application wants to purse more aggressive power saving by stopping the USB clock source and by moving the micro-controller to STOP mode, it must first wait few cycles to see SUSPRDY=1 acknowledge to the suspend request. This bit is cleared by hardware simultaneous with the WAKEUP flag set." - bit_offset: 3 - bit_size: 1 - - name: RESUME - description: "L2 Remote Wakeup / Resume driver Device mode The microcontroller can set this bit to send remote wake-up signaling to the Host. It must be activated, according to USB specifications, for no less than 1ms and no more than 15ms after which the Host PC is ready to drive the resume sequence up to its end. Host mode Software sets this bit to send resume signaling to the device. Software clears this bit to send end of resume to device and restart SOF generation. In the context of remote wake up, this bit is to be set following the WAKEUP interrupt." - bit_offset: 4 - bit_size: 1 - - name: L1RESUME - description: "L1 Remote Wakeup / Resume driver Device mode Software sets this bit to send a LPM L1 50us remote wakeup signaling to the host. After the signaling ends, this bit is cleared by hardware. Host mode Software sets this bit to send L1 resume signaling to device. Resume duration and next SOF generation is automatically driven to set the restart of USB activity timely aligned with the programmed BESL value. In the context of remote wake up, this bit is to be set following the WAKEUP interrupt. This bit is cleared by hardware at the end of resume." - bit_offset: 5 - bit_size: 1 - - name: L1REQM - description: LPM L1 state request interrupt mask - bit_offset: 7 - bit_size: 1 - - name: ESOFM - description: Expected start of frame interrupt mask - bit_offset: 8 - bit_size: 1 - - name: SOFM - description: Start of frame interrupt mask - bit_offset: 9 - bit_size: 1 - - name: RESETM - description: reset interrupt mask - bit_offset: 10 - bit_size: 1 - - name: SUSPM - description: Suspend mode interrupt mask - bit_offset: 11 - bit_size: 1 - - name: WKUPM - description: Wakeup interrupt mask - bit_offset: 12 - bit_size: 1 - - name: ERRM - description: Error interrupt mask - bit_offset: 13 - bit_size: 1 - - name: PMAOVRM - description: Packet memory area over / underrun interrupt mask - bit_offset: 14 - bit_size: 1 - - name: CTRM - description: "CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set" - bit_offset: 15 - bit_size: 1 - - name: THR512M - description: 512 byte threshold interrupt mask - bit_offset: 16 - bit_size: 1 - - name: HOST - description: HOST mode HOST bit selects betweens Host or Device USB mode of operation. It must be set before enabling the USB peripheral by the function enable bit. - bit_offset: 31 - bit_size: 1 + - name: FRES + description: Force a reset of the USB peripheral, exactly like a RESET signaling on the USB + bit_offset: 0 + bit_size: 1 + - name: PDWN + description: Power down This bit is used to completely switch off all USB-related analog parts if it is required to completely disable the USB peripheral for any reason. When this bit is set, the USB peripheral is disconnected from the transceivers and it cannot be used. + bit_offset: 1 + bit_size: 1 + - name: LPMODE + description: Suspend state effective This bit is set by hardware as soon as the suspend state entered through the SUSPEN control gets internally effective. In this state USB activity is suspended, USB clock is gated, transceiver is set in low power mode by disabling the differential receiver. Only asynchronous wakeup logic and single ended receiver is kept alive to detect remote wakeup or resume events. Software must poll this bit to confirm it to be set before any STOP mode entry. This bit is cleared by hardware simultaneously to the WAKEUP flag being set. + bit_offset: 2 + bit_size: 1 + - name: FSUSP + description: Suspend state enable Device mode Software can set this bit when the SUSP interrupt is received, which is issued when no traffic is received by the USB peripheral for 3 ms. Software can also set this bit when the L1REQ interrupt is received with positive acknowledge sent. As soon as the suspend state is propagated internally all device activity is stopped, USB clock is gated, USB transceiver is set into low power mode and the SUSPRDY bit is set by hardware. In the case that device application wants to purse more aggressive power saving by stopping the USB clock source and by moving the microcontroller to stop mode, as in the case of bus powered device application, it must first wait few cycles to see the SUSPRDY=1 acknowledge the suspend request. This bit is cleared by hardware simultaneous with the WAKEUP flag set. Host mode Software can set this bit when Host application has nothing scheduled for the next frames and wants to enter long term power saving. When set, it stops immediately SOF generation and any other host activity, gates the USB clock and sets the transceiver in low power mode. If any USB transaction is on-going at the time SUSPEN is set, suspend is entered at the end of the current transaction. As soon as suspend state is propagated internally and gets effective the SUSPRDY bit is set. In the case that host application wants to purse more aggressive power saving by stopping the USB clock source and by moving the micro-controller to STOP mode, it must first wait few cycles to see SUSPRDY=1 acknowledge to the suspend request. This bit is cleared by hardware simultaneous with the WAKEUP flag set. + bit_offset: 3 + bit_size: 1 + - name: RESUME + description: L2 Remote Wakeup / Resume driver Device mode The microcontroller can set this bit to send remote wake-up signaling to the Host. It must be activated, according to USB specifications, for no less than 1ms and no more than 15ms after which the Host PC is ready to drive the resume sequence up to its end. Host mode Software sets this bit to send resume signaling to the device. Software clears this bit to send end of resume to device and restart SOF generation. In the context of remote wake up, this bit is to be set following the WAKEUP interrupt. + bit_offset: 4 + bit_size: 1 + - name: L1RESUME + description: L1 Remote Wakeup / Resume driver Device mode Software sets this bit to send a LPM L1 50us remote wakeup signaling to the host. After the signaling ends, this bit is cleared by hardware. Host mode Software sets this bit to send L1 resume signaling to device. Resume duration and next SOF generation is automatically driven to set the restart of USB activity timely aligned with the programmed BESL value. In the context of remote wake up, this bit is to be set following the WAKEUP interrupt. This bit is cleared by hardware at the end of resume. + bit_offset: 5 + bit_size: 1 + - name: L1REQM + description: LPM L1 state request interrupt mask + bit_offset: 7 + bit_size: 1 + - name: ESOFM + description: Expected start of frame interrupt mask + bit_offset: 8 + bit_size: 1 + - name: SOFM + description: Start of frame interrupt mask + bit_offset: 9 + bit_size: 1 + - name: RESETM + description: reset interrupt mask + bit_offset: 10 + bit_size: 1 + - name: SUSPM + description: Suspend mode interrupt mask + bit_offset: 11 + bit_size: 1 + - name: WKUPM + description: Wakeup interrupt mask + bit_offset: 12 + bit_size: 1 + - name: ERRM + description: Error interrupt mask + bit_offset: 13 + bit_size: 1 + - name: PMAOVRM + description: Packet memory area over / underrun interrupt mask + bit_offset: 14 + bit_size: 1 + - name: CTRM + description: CTR Interrupt enabled, an interrupt request is generated when the corresponding bit in the USB_ISTR register is set + bit_offset: 15 + bit_size: 1 + - name: THR512M + description: 512 byte threshold interrupt mask + bit_offset: 16 + bit_size: 1 + - name: HOST + description: HOST mode HOST bit selects betweens Host or Device USB mode of operation. It must be set before enabling the USB peripheral by the function enable bit. + bit_offset: 31 + bit_size: 1 fieldset/DADDR: description: device address fields: - - name: ADD - description: Device address Device mode These bits contain the USB function address assigned by the host PC during the enumeration process. Both this field and the endpoint/channel Address (EA) field in the associated USB_EPnR register must match with the information contained in a USB token in order to handle a transaction to the required endpoint. Host mode These bits contain the address transmitted with the LPM transaction - bit_offset: 0 - bit_size: 7 - - name: EF - description: "Enable function This bit is set by the software to enable the USB device. The address of this device is contained in the following ADD[6:0] bits. If this bit is at '0 no transactions are handled, irrespective of the settings of USB_EPnR registers." - bit_offset: 7 - bit_size: 1 + - name: ADD + description: Device address Device mode These bits contain the USB function address assigned by the host PC during the enumeration process. Both this field and the endpoint/channel Address (EA) field in the associated USB_EPnR register must match with the information contained in a USB token in order to handle a transaction to the required endpoint. Host mode These bits contain the address transmitted with the LPM transaction + bit_offset: 0 + bit_size: 7 + - name: EF + description: Enable function This bit is set by the software to enable the USB device. The address of this device is contained in the following ADD[6:0] bits. If this bit is at '0 no transactions are handled, irrespective of the settings of USB_EPnR registers. + bit_offset: 7 + bit_size: 1 fieldset/EPR: description: endpoint/channel 0 register fields: - - name: EA - description: endpoint/channel address Device mode Software must write in this field the 4-bit address used to identify the transactions directed to this endpoint. A value must be written before enabling the corresponding endpoint. Host mode Software must write in this field the 4-bit address used to identify the channel addressed by the host transaction. - bit_offset: 0 - bit_size: 4 - - name: STAT_TX - description: "Status bits, for transmission transfers Device mode These bits contain the information about the endpoint status, listed in . These bits can be toggled by the software to initialize their value. When the application software writes '0, the value remains unchanged, while writing '1 makes the bit value toggle. Hardware sets the STTX bits to NAK, when a correct transfer has occurred (VTTX=1) corresponding to a IN or SETUP (control only) transaction addressed to this channel/endpoint. It then waits for the software to prepare the next set of data to be transmitted. Double-buffered bulk endpoints implement a special transaction flow control, which controls the status based on buffer availability condition (Refer to endpoints). If the endpoint is defined as Isochronous, its status can only be VALID or DISABLED. Therefore, the hardware cannot change the status of the channel/endpoint/channel after a successful transaction. If the software sets the STTX bits to STALL or NAK for an Isochronous channel/endpoint, the USB peripheral behavior is not defined. These bits are read/write but they can be only toggled by writing '1. Host mode Same as STRX behaviour but for IN transactions (TBC)" - bit_offset: 4 - bit_size: 2 - enum: STAT - - name: DTOG_TX - description: "Data Toggle, for transmission transfers If the endpoint/channel is non-isochronous, this bit contains the required value of the data toggle bit (0=DATA0, 1=DATA1) for the next data packet to be transmitted. Hardware toggles this bit when the ACK handshake is received from the USB host, following a data packet transmission. If the endpoint/channel is defined as a control one, hardware sets this bit to 1 at the reception of a SETUP PID addressed to this endpoint. If the endpoint/channel is using the double buffer feature, this bit is used to support packet buffer swapping too (Refer to ) If the endpoint/channel is Isochronous, this bit is used to support packet buffer swapping since no data toggling is used for this sort of endpoints and only DATA0 packet are transmitted (Refer to ). Hardware toggles this bit just after the end of data packet transmission, since no handshake is used for Isochronous transfers. This bit can also be toggled by the software to initialize its value (mandatory when the endpoint/channel is not a control one) or to force a specific data toggle/packet buffer usage. When the application software writes '0, the value of DTOGTX remains unchanged, while writing '1 makes the bit value toggle. This bit is read/write but it can only be toggled by writing 1." - bit_offset: 6 - bit_size: 1 - - name: CTR_TX - description: "Valid USB transaction transmitted Device mode This bit is set by the hardware when an IN transaction is successfully completed on this endpoint; the software can only clear this bit. If the CTRM bit in the USB_CNTR register is set accordingly, a generic interrupt condition is generated together with the endpoint related interrupt condition, which is always activated. A transaction ended with a NAK or STALL handshake does not set this bit, since no data is actually transferred, as in the case of protocol errors or data toggle mismatches. This bit is read/write but only '0 can be written. Host mode Same of VTRX behaviour but for USB OUT and SETUP transactions." - bit_offset: 7 - bit_size: 1 - - name: EP_KIND - description: "endpoint/channel kind The meaning of this bit depends on the endpoint/channel type configured by the EP_TYPE bits. summarizes the different meanings. DBL_BUF: This bit is set by the software to enable the double-buffering feature for this bulk endpoint. The usage of double-buffered bulk endpoints is explained in Double-buffered endpoints. STATUS_OUT: This bit is set by the software to indicate that a status out transaction is expected: in this case all OUT transactions containing more than zero data bytes are answered STALL instead of ACK. This bit may be used to improve the robustness of the application to protocol errors during control transfers and its usage is intended for control endpoints only. When STATUS_OUT is reset, OUT transactions can have any number of bytes, as required." - bit_offset: 8 - bit_size: 1 - - name: EP_TYPE - description: "USB type of transaction These bits configure the behavior of this endpoint/channel as described in endpoint/channel type encoding on page 2001. Channel0/Endpoint0 must always be a control endpoint/channel and each USB function must have at least one control endpoint/channel which has address 0, but there may be other control channels/endpoints if required. Only control channels/endpoints handle SETUP transactions, which are ignored by endpoints of other kinds. SETUP transactions cannot be answered with NAK or STALL. If a control endpoint/channel is defined as NAK, the USB peripheral will not answer, simulating a receive error, in the receive direction when a SETUP transaction is received. If the control endpoint/channel is defined as STALL in the receive direction, then the SETUP packet will be accepted anyway, transferring data and issuing the CTR interrupt. The reception of OUT transactions is handled in the normal way, even if the endpoint/channel is a control one. Bulk and interrupt endpoints have very similar behavior and they differ only in the special feature available using the EPKIND configuration bit. The usage of Isochronous channels/endpoints is explained in transfers" - bit_offset: 9 - bit_size: 2 - enum: EP_TYPE - - name: SETUP - description: "Setup transaction completed Device mode This bit is read-only and it is set by the hardware when the last completed transaction is a SETUP. This bit changes its value only for control endpoints. It must be examined, in the case of a successful receive transaction (VTRX event), to determine the type of transaction occurred. To protect the interrupt service routine from the changes in SETUP bits due to next incoming tokens, this bit is kept frozen while VTRX bit is at 1; its state changes when VTRX is at 0. This bit is read-only. Host mode This bit is set by the software to send a SETUP transaction on a control endpoint. This bit changes its value only for control endpoints. It is cleared by hardware when the SETUP transaction is acknowledged and VTTX interrupt generated." - bit_offset: 11 - bit_size: 1 - - name: STAT_RX - description: "Status bits, for reception transfers Device mode These bits contain information about the endpoint status, which are listed in Reception status encoding on page 2000.These bits can be toggled by software to initialize their value. When the application software writes '0, the value remains unchanged, while writing '1 makes the bit value toggle. Hardware sets the STRX bits to NAK when a correct transfer has occurred (VTRX=1) corresponding to a OUT or SETUP (control only) transaction addressed to this endpoint, so the software has the time to elaborate the received data before it acknowledge a new transaction Double-buffered bulk endpoints implement a special transaction flow control, which control the status based upon buffer availability condition (Refer to endpoints). If the endpoint is defined as Isochronous, its status can be only VALID or DISABLED, so that the hardware cannot change the status of the endpoint after a successful transaction. If the software sets the STRX bits to 'STALL or 'NAK for an Isochronous endpoint, the USB peripheral behavior is not defined. These bits are read/write but they can be only toggled by writing '1. Host mode These bits are the host application controls to start, retry, or abort host transactions driven by the channel. These bits also contain information about the device answer to the last IN channel transaction and report the current status of the channel according to the following STRX table of states: -\tDISABLE DISABLE value is reported in case of ACK acknowledge is received on a single-buffer channel. When in DISABLE state the channel is unused or not active waiting for application to restart it by writing VALID. Application can reset a VALID channel to DISABLE to abort a transaction. In this case the transaction is immediately removed from the Host execution list. If the aborted transaction was already under execution it will be regularly terminated on the USB but the relative VTRX interrupt is not generated. -\tVALID An Host channel is actively trying to submit USB transaction to device only when in VALID state.VALID state can be set by software or automatically by hardware on a NAKED channel at the start of a new frame. When set to VALID, an host channel enters the host execution queue and waits permission from the Host Frame Schedure to submit its configured transaction. VALID value is also reported in case of ACK acknowledge is received on a double-buffered channel. In this case the channel remains active on the alternate buffer while application needs to read the current buffer and toggle DTOGTX. In case software is late in reading and the alternate buffer is not ready, the host channel is automatically suspended transparently to the application. The suspended double buffered channel will be re-activated as soon as delay is recovered and DTOGTX is toggled. - NAK NAK value is reported in case of NAK acknowledge received. When in NAK state the channel is suspended and does not try to transmit. NAK state is moved to VALID by hardware at the start of the next frame, or software can change it to immediately retry transmission by writing it to VALID, or can disable it and abort the transaction by writing DISABLE - STALL STALL value is reported in case of STALL acknowledge received. When in STALL state the channel behaves as disabled. Application should not retry transmission but reset the USB and re-enumerate." - bit_offset: 12 - bit_size: 2 - enum: STAT - - name: DTOG_RX - description: "Data Toggle, for reception transfers If the endpoint/channel is not Isochronous, this bit contains the expected value of the data toggle bit (0=DATA0, 1=DATA1) for the next data packet to be received. Hardware toggles this bit, when the ACK handshake is sent following a data packet reception having a matching data PID value; if the endpoint is defined as a control one, hardware clears this bit at the reception of a SETUP PID received from host (in device) or acknowledged by device (in host). If the endpoint/channel is using the double-buffering feature this bit is used to support packet buffer swapping too (Refer to ). If the endpoint/channel is Isochronous, this bit is used only to support packet buffer swapping for data transmission since no data toggling is used for this kind of channels/endpoints and only DATA0 packet are transmitted (Refer to Isochronous transfers). Hardware toggles this bit just after the end of data packet reception, since no handshake is used for isochronous transfers. This bit can also be toggled by the software to initialize its value (mandatory when the endpoint is not a control one) or to force specific data toggle/packet buffer usage. When the application software writes '0, the value of DTOGRX remains unchanged, while writing '1 makes the bit value toggle. This bit is read/write but it can be only toggled by writing 1." - bit_offset: 14 - bit_size: 1 - - name: CTR_RX - description: "USB valid transaction received Device mode This bit is set by the hardware when an OUT/SETUP transaction is successfully completed on this endpoint; the software can only clear this bit. If the CTRM bit in USB_CNTR register is set accordingly, a generic interrupt condition is generated together with the endpoint related interrupt condition, which is always activated. The type of occurred transaction, OUT or SETUP, can be determined from the SETUP bit described below. A transaction ended with a NAK or STALL handshake does not set this bit, since no data is actually transferred, as in the case of protocol errors or data toggle mismatches. This bit is read/write but only '0 can be written, writing 1 has no effect. Host mode This bit is set by the hardware when an IN transaction is successfully completed on this channel. The software can only clear this bit. If the VTRM bit in USB_CNTR register is set a generic interrupt condition is generated together with the channel related flag, which is always activated. - A transaction ended with a NAK sets this bit and NAK answer is reported to application reading the NAK state from the STRX field of this register. One naked transaction keeps pending and is automatically retried by the Host at the next frame, or the Host can immediately retry by resetting STRX state to VALID. - A transaction ended by STALL handshake sets this bit and the STALL answer is reported to application reading the STALL state from the STRX field of this register. Host application should consequently disable the channel and re-enumerate. - A transaction ended with ACK handshake sets this bit If double buffering is disabled, ACK answer is reported by application reading the DISABLE state from the STRX field of this register. Host application should read received data from USBRAM and re-arm the channel by writing VALID to the STRX field of this register. If double buffering is enabled, ACK answer is reported by application reading VALID state from the STRX field of this register. Host application should read received data from USBRAM and toggle the DTOGTX bit of this register. This bit is read/write but only '0 can be written, writing 1 has no effect." - bit_offset: 15 - bit_size: 1 - - name: DEVADDR - description: Host mode Device address assigned to the endpoint during the enumeration process. - bit_offset: 16 - bit_size: 7 - - name: NAK - description: Host mode This bit is set by the hardware when a device responds with a NAK. Software can be use this bit to monitoring the number of NAKs received from a device. - bit_offset: 23 - bit_size: 1 - - name: LS_EP - description: Low speed endpoint Host with HUB only Host mode This bit is set by the software to send an LS transaction to the corresponding endpoint. - bit_offset: 24 - bit_size: 1 - - name: ERR_TX - description: "Transmit error Host mode This bit is set by the hardware when an error (e.g. no answer by the device, CRC error, bit stuffing error, framing format violation, etc.) has occurred during an OUT or SETUP transaction on this channel. The software can only clear this bit. If the ERRM bit in USB_CNTR register is set a generic interrupt condition is generated together with the channel related flag, which is always activated." - bit_offset: 25 - bit_size: 1 - - name: ERR_RX - description: "Receive error Host mode This bit is set by the hardware when an error (e.g. no answer by the device, CRC error, bit stuffing error, framing format violation, etc.) has occurred during an IN transaction on this channel. The software can only clear this bit. If the ERRM bit in USB_CNTR register is set a generic interrupt condition is generated together with the channel related flag, which is always activated." - bit_offset: 26 - bit_size: 1 + - name: EA + description: endpoint/channel address Device mode Software must write in this field the 4-bit address used to identify the transactions directed to this endpoint. A value must be written before enabling the corresponding endpoint. Host mode Software must write in this field the 4-bit address used to identify the channel addressed by the host transaction. + bit_offset: 0 + bit_size: 4 + - name: STAT_TX + description: Status bits, for transmission transfers Device mode These bits contain the information about the endpoint status, listed in . These bits can be toggled by the software to initialize their value. When the application software writes '0, the value remains unchanged, while writing '1 makes the bit value toggle. Hardware sets the STTX bits to NAK, when a correct transfer has occurred (VTTX=1) corresponding to a IN or SETUP (control only) transaction addressed to this channel/endpoint. It then waits for the software to prepare the next set of data to be transmitted. Double-buffered bulk endpoints implement a special transaction flow control, which controls the status based on buffer availability condition (Refer to endpoints). If the endpoint is defined as Isochronous, its status can only be VALID or DISABLED. Therefore, the hardware cannot change the status of the channel/endpoint/channel after a successful transaction. If the software sets the STTX bits to STALL or NAK for an Isochronous channel/endpoint, the USB peripheral behavior is not defined. These bits are read/write but they can be only toggled by writing '1. Host mode Same as STRX behaviour but for IN transactions (TBC) + bit_offset: 4 + bit_size: 2 + enum: STAT + - name: DTOG_TX + description: Data Toggle, for transmission transfers If the endpoint/channel is non-isochronous, this bit contains the required value of the data toggle bit (0=DATA0, 1=DATA1) for the next data packet to be transmitted. Hardware toggles this bit when the ACK handshake is received from the USB host, following a data packet transmission. If the endpoint/channel is defined as a control one, hardware sets this bit to 1 at the reception of a SETUP PID addressed to this endpoint. If the endpoint/channel is using the double buffer feature, this bit is used to support packet buffer swapping too (Refer to ) If the endpoint/channel is Isochronous, this bit is used to support packet buffer swapping since no data toggling is used for this sort of endpoints and only DATA0 packet are transmitted (Refer to ). Hardware toggles this bit just after the end of data packet transmission, since no handshake is used for Isochronous transfers. This bit can also be toggled by the software to initialize its value (mandatory when the endpoint/channel is not a control one) or to force a specific data toggle/packet buffer usage. When the application software writes '0, the value of DTOGTX remains unchanged, while writing '1 makes the bit value toggle. This bit is read/write but it can only be toggled by writing 1. + bit_offset: 6 + bit_size: 1 + - name: CTR_TX + description: Valid USB transaction transmitted Device mode This bit is set by the hardware when an IN transaction is successfully completed on this endpoint; the software can only clear this bit. If the CTRM bit in the USB_CNTR register is set accordingly, a generic interrupt condition is generated together with the endpoint related interrupt condition, which is always activated. A transaction ended with a NAK or STALL handshake does not set this bit, since no data is actually transferred, as in the case of protocol errors or data toggle mismatches. This bit is read/write but only '0 can be written. Host mode Same of VTRX behaviour but for USB OUT and SETUP transactions. + bit_offset: 7 + bit_size: 1 + - name: EP_KIND + description: 'endpoint/channel kind The meaning of this bit depends on the endpoint/channel type configured by the EP_TYPE bits. summarizes the different meanings. DBL_BUF: This bit is set by the software to enable the double-buffering feature for this bulk endpoint. The usage of double-buffered bulk endpoints is explained in Double-buffered endpoints. STATUS_OUT: This bit is set by the software to indicate that a status out transaction is expected: in this case all OUT transactions containing more than zero data bytes are answered STALL instead of ACK. This bit may be used to improve the robustness of the application to protocol errors during control transfers and its usage is intended for control endpoints only. When STATUS_OUT is reset, OUT transactions can have any number of bytes, as required.' + bit_offset: 8 + bit_size: 1 + - name: EP_TYPE + description: USB type of transaction These bits configure the behavior of this endpoint/channel as described in endpoint/channel type encoding on page 2001. Channel0/Endpoint0 must always be a control endpoint/channel and each USB function must have at least one control endpoint/channel which has address 0, but there may be other control channels/endpoints if required. Only control channels/endpoints handle SETUP transactions, which are ignored by endpoints of other kinds. SETUP transactions cannot be answered with NAK or STALL. If a control endpoint/channel is defined as NAK, the USB peripheral will not answer, simulating a receive error, in the receive direction when a SETUP transaction is received. If the control endpoint/channel is defined as STALL in the receive direction, then the SETUP packet will be accepted anyway, transferring data and issuing the CTR interrupt. The reception of OUT transactions is handled in the normal way, even if the endpoint/channel is a control one. Bulk and interrupt endpoints have very similar behavior and they differ only in the special feature available using the EPKIND configuration bit. The usage of Isochronous channels/endpoints is explained in transfers + bit_offset: 9 + bit_size: 2 + enum: EP_TYPE + - name: SETUP + description: Setup transaction completed Device mode This bit is read-only and it is set by the hardware when the last completed transaction is a SETUP. This bit changes its value only for control endpoints. It must be examined, in the case of a successful receive transaction (VTRX event), to determine the type of transaction occurred. To protect the interrupt service routine from the changes in SETUP bits due to next incoming tokens, this bit is kept frozen while VTRX bit is at 1; its state changes when VTRX is at 0. This bit is read-only. Host mode This bit is set by the software to send a SETUP transaction on a control endpoint. This bit changes its value only for control endpoints. It is cleared by hardware when the SETUP transaction is acknowledged and VTTX interrupt generated. + bit_offset: 11 + bit_size: 1 + - name: STAT_RX + description: "Status bits, for reception transfers Device mode These bits contain information about the endpoint status, which are listed in Reception status encoding on page 2000.These bits can be toggled by software to initialize their value. When the application software writes '0, the value remains unchanged, while writing '1 makes the bit value toggle. Hardware sets the STRX bits to NAK when a correct transfer has occurred (VTRX=1) corresponding to a OUT or SETUP (control only) transaction addressed to this endpoint, so the software has the time to elaborate the received data before it acknowledge a new transaction Double-buffered bulk endpoints implement a special transaction flow control, which control the status based upon buffer availability condition (Refer to endpoints). If the endpoint is defined as Isochronous, its status can be only VALID or DISABLED, so that the hardware cannot change the status of the endpoint after a successful transaction. If the software sets the STRX bits to 'STALL or 'NAK for an Isochronous endpoint, the USB peripheral behavior is not defined. These bits are read/write but they can be only toggled by writing '1. Host mode These bits are the host application controls to start, retry, or abort host transactions driven by the channel. These bits also contain information about the device answer to the last IN channel transaction and report the current status of the channel according to the following STRX table of states: -\tDISABLE DISABLE value is reported in case of ACK acknowledge is received on a single-buffer channel. When in DISABLE state the channel is unused or not active waiting for application to restart it by writing VALID. Application can reset a VALID channel to DISABLE to abort a transaction. In this case the transaction is immediately removed from the Host execution list. If the aborted transaction was already under execution it will be regularly terminated on the USB but the relative VTRX interrupt is not generated. -\tVALID An Host channel is actively trying to submit USB transaction to device only when in VALID state.VALID state can be set by software or automatically by hardware on a NAKED channel at the start of a new frame. When set to VALID, an host channel enters the host execution queue and waits permission from the Host Frame Schedure to submit its configured transaction. VALID value is also reported in case of ACK acknowledge is received on a double-buffered channel. In this case the channel remains active on the alternate buffer while application needs to read the current buffer and toggle DTOGTX. In case software is late in reading and the alternate buffer is not ready, the host channel is automatically suspended transparently to the application. The suspended double buffered channel will be re-activated as soon as delay is recovered and DTOGTX is toggled. - NAK NAK value is reported in case of NAK acknowledge received. When in NAK state the channel is suspended and does not try to transmit. NAK state is moved to VALID by hardware at the start of the next frame, or software can change it to immediately retry transmission by writing it to VALID, or can disable it and abort the transaction by writing DISABLE - STALL STALL value is reported in case of STALL acknowledge received. When in STALL state the channel behaves as disabled. Application should not retry transmission but reset the USB and re-enumerate." + bit_offset: 12 + bit_size: 2 + enum: STAT + - name: DTOG_RX + description: Data Toggle, for reception transfers If the endpoint/channel is not Isochronous, this bit contains the expected value of the data toggle bit (0=DATA0, 1=DATA1) for the next data packet to be received. Hardware toggles this bit, when the ACK handshake is sent following a data packet reception having a matching data PID value; if the endpoint is defined as a control one, hardware clears this bit at the reception of a SETUP PID received from host (in device) or acknowledged by device (in host). If the endpoint/channel is using the double-buffering feature this bit is used to support packet buffer swapping too (Refer to ). If the endpoint/channel is Isochronous, this bit is used only to support packet buffer swapping for data transmission since no data toggling is used for this kind of channels/endpoints and only DATA0 packet are transmitted (Refer to Isochronous transfers). Hardware toggles this bit just after the end of data packet reception, since no handshake is used for isochronous transfers. This bit can also be toggled by the software to initialize its value (mandatory when the endpoint is not a control one) or to force specific data toggle/packet buffer usage. When the application software writes '0, the value of DTOGRX remains unchanged, while writing '1 makes the bit value toggle. This bit is read/write but it can be only toggled by writing 1. + bit_offset: 14 + bit_size: 1 + - name: CTR_RX + description: USB valid transaction received Device mode This bit is set by the hardware when an OUT/SETUP transaction is successfully completed on this endpoint; the software can only clear this bit. If the CTRM bit in USB_CNTR register is set accordingly, a generic interrupt condition is generated together with the endpoint related interrupt condition, which is always activated. The type of occurred transaction, OUT or SETUP, can be determined from the SETUP bit described below. A transaction ended with a NAK or STALL handshake does not set this bit, since no data is actually transferred, as in the case of protocol errors or data toggle mismatches. This bit is read/write but only '0 can be written, writing 1 has no effect. Host mode This bit is set by the hardware when an IN transaction is successfully completed on this channel. The software can only clear this bit. If the VTRM bit in USB_CNTR register is set a generic interrupt condition is generated together with the channel related flag, which is always activated. - A transaction ended with a NAK sets this bit and NAK answer is reported to application reading the NAK state from the STRX field of this register. One naked transaction keeps pending and is automatically retried by the Host at the next frame, or the Host can immediately retry by resetting STRX state to VALID. - A transaction ended by STALL handshake sets this bit and the STALL answer is reported to application reading the STALL state from the STRX field of this register. Host application should consequently disable the channel and re-enumerate. - A transaction ended with ACK handshake sets this bit If double buffering is disabled, ACK answer is reported by application reading the DISABLE state from the STRX field of this register. Host application should read received data from USBRAM and re-arm the channel by writing VALID to the STRX field of this register. If double buffering is enabled, ACK answer is reported by application reading VALID state from the STRX field of this register. Host application should read received data from USBRAM and toggle the DTOGTX bit of this register. This bit is read/write but only '0 can be written, writing 1 has no effect. + bit_offset: 15 + bit_size: 1 + - name: DEVADDR + description: Host mode Device address assigned to the endpoint during the enumeration process. + bit_offset: 16 + bit_size: 7 + - name: NAK + description: Host mode This bit is set by the hardware when a device responds with a NAK. Software can be use this bit to monitoring the number of NAKs received from a device. + bit_offset: 23 + bit_size: 1 + - name: LS_EP + description: Low speed endpoint Host with HUB only Host mode This bit is set by the software to send an LS transaction to the corresponding endpoint. + bit_offset: 24 + bit_size: 1 + - name: ERR_TX + description: Transmit error Host mode This bit is set by the hardware when an error (e.g. no answer by the device, CRC error, bit stuffing error, framing format violation, etc.) has occurred during an OUT or SETUP transaction on this channel. The software can only clear this bit. If the ERRM bit in USB_CNTR register is set a generic interrupt condition is generated together with the channel related flag, which is always activated. + bit_offset: 25 + bit_size: 1 + - name: ERR_RX + description: Receive error Host mode This bit is set by the hardware when an error (e.g. no answer by the device, CRC error, bit stuffing error, framing format violation, etc.) has occurred during an IN transaction on this channel. The software can only clear this bit. If the ERRM bit in USB_CNTR register is set a generic interrupt condition is generated together with the channel related flag, which is always activated. + bit_offset: 26 + bit_size: 1 fieldset/FNR: description: frame number register fields: - - name: FN - description: Frame number This bit field contains the 11-bits frame number contained in the last received SOF packet. The frame number is incremented for every frame sent by the host and it is useful for Isochronous transfers. This bit field is updated on the generation of an SOF interrupt. - bit_offset: 0 - bit_size: 11 - - name: LSOF - description: "Lost SOF Device mode These bits are written by the hardware when an ESOF interrupt is generated, counting the number of consecutive SOF packets lost. At the reception of an SOF packet, these bits are cleared." - bit_offset: 11 - bit_size: 2 - - name: LCK - description: "Locked Device mode This bit is set by the hardware when at least two consecutive SOF packets have been received after the end of an USB reset condition or after the end of an USB resume sequence. Once locked, the frame timer remains in this state until an USB reset or USB suspend event occurs." - bit_offset: 13 - bit_size: 1 - - name: RXDM - description: Receive data - line status This bit can be used to observe the status of received data minus upstream port data line. It can be used during end-of-suspend routines to help determining the wakeup event. - bit_offset: 14 - bit_size: 1 - - name: RXDP - description: Receive data + line status This bit can be used to observe the status of received data plus upstream port data line. It can be used during end-of-suspend routines to help determining the wakeup event. - bit_offset: 15 - bit_size: 1 + - name: FN + description: Frame number This bit field contains the 11-bits frame number contained in the last received SOF packet. The frame number is incremented for every frame sent by the host and it is useful for Isochronous transfers. This bit field is updated on the generation of an SOF interrupt. + bit_offset: 0 + bit_size: 11 + - name: LSOF + description: Lost SOF Device mode These bits are written by the hardware when an ESOF interrupt is generated, counting the number of consecutive SOF packets lost. At the reception of an SOF packet, these bits are cleared. + bit_offset: 11 + bit_size: 2 + - name: LCK + description: Locked Device mode This bit is set by the hardware when at least two consecutive SOF packets have been received after the end of an USB reset condition or after the end of an USB resume sequence. Once locked, the frame timer remains in this state until an USB reset or USB suspend event occurs. + bit_offset: 13 + bit_size: 1 + - name: RXDM + description: Receive data - line status This bit can be used to observe the status of received data minus upstream port data line. It can be used during end-of-suspend routines to help determining the wakeup event. + bit_offset: 14 + bit_size: 1 + - name: RXDP + description: Receive data + line status This bit can be used to observe the status of received data plus upstream port data line. It can be used during end-of-suspend routines to help determining the wakeup event. + bit_offset: 15 + bit_size: 1 fieldset/ISTR: description: interrupt status register fields: - - name: EP_ID - description: "Device Endpoint / Host channel identification number These bits are written by the hardware according to the host channel or device endpoint number, which generated the interrupt request. If several endpoint/channel transactions are pending, the hardware writes the identification number related to the endpoint/channel having the highest priority defined in the following way: Two levels are defined, in order of priority: Isochronous and double-buffered bulk channels/endpoints are considered first and then the others are examined. If more than one endpoint/channel from the same set is requesting an interrupt, the IDN bits in USB_ISTR register are assigned according to the lowest requesting register, CHEP0R having the highest priority followed by CHEP1R and so on. The application software can assign a register to each endpoint/channel according to this priority scheme, so as to order the concurring endpoint/channel requests in a suitable way. These bits are read only." - bit_offset: 0 - bit_size: 4 - - name: DIR - description: "Direction of transaction This bit is written by the hardware according to the direction of the successful transaction, which generated the interrupt request. If DIR bit=0, VTTX bit is set in the USB_EPnR register related to the interrupting endpoint. The interrupting transaction is of IN type (data transmitted by the USB peripheral to the host PC). If DIR bit=1, VTRX bit or both VTTX/VTRX are set in the USB_EPnR register related to the interrupting endpoint. The interrupting transaction is of OUT type (data received by the USB peripheral from the host PC) or two pending transactions are waiting to be processed. This information can be used by the application software to access the USB_EPnR bits related to the triggering transaction since it represents the direction having the interrupt pending. This bit is read-only." - bit_offset: 4 - bit_size: 1 - enum: DIR - - name: L1REQ - description: "LPM L1 state request This bit is set by the hardware when LPM command to enter the L1 state is successfully received and acknowledged. This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 7 - bit_size: 1 - - name: ESOF - description: "Expected start of frame This bit is set by the hardware when an SOF packet is expected but not received. The host sends an SOF packet each 1 ms, but if the device does not receive it properly, the Suspend Timer issues this interrupt. If three consecutive ESOF interrupts are generated (i.e. three SOF packets are lost) without any traffic occurring in between, a SUSP interrupt is generated. This bit is set even when the missing SOF packets occur while the Suspend Timer is not yet locked. This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 8 - bit_size: 1 - - name: SOF - description: "Start of frame This bit signals the beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus. The interrupt service routine may monitor the SOF events to have a 1 ms synchronization event to the USB host and to safely read the USB_FNR register which is updated at the SOF packet reception (this could be useful for isochronous applications). This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 9 - bit_size: 1 - - name: RESET - description: reset request Device mode This bit is set by hardware when an USB reset is released by the host and the bus returns to idle. USB reset state is internally detected after the sampling of 60 consecutive SE0 cycles. Host mode This bit is set by hardware when device connection or device disconnection is detected. Device connection is signaled after J state is sampled for 22cycles consecutively from unconnected state. Device disconnection is signaled after SE0 state is sampled for 22cycles consecutively from connected state. - bit_offset: 10 - bit_size: 1 - - name: SUSP - description: "Suspend mode request This bit is set by the hardware when no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus. The suspend condition check is enabled immediately after any USB reset and it is disabled by the hardware when the suspend mode is active (SUSPEN=1) until the end of resume sequence. This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 11 - bit_size: 1 - - name: WKUP - description: "Wakeup This bit is set to 1 by the hardware when, during suspend mode, activity is detected that wakes up the USB peripheral. This event asynchronously clears the LP_MODE bit in the CTLR register and activates the USB_WAKEUP line, which can be used to notify the rest of the device (e.g. wakeup unit) about the start of the resume process. This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 12 - bit_size: 1 - - name: ERR - description: "Error This flag is set whenever one of the errors listed below has occurred: NANS:\tNo ANSwer. The timeout for a host response has expired. CRC:\tCyclic Redundancy Check error. One of the received CRCs, either in the token or in the data, was wrong. BST:\tBit Stuffing error. A bit stuffing error was detected anywhere in the PID, data, and/or CRC. FVIO:\tFraming format Violation. A non-standard frame was received (EOP not in the right place, wrong token sequence, etc.). The USB software can usually ignore errors, since the USB peripheral and the PC host manage retransmission in case of errors in a fully transparent way. This interrupt can be useful during the software development phase, or to monitor the quality of transmission over the USB bus, to flag possible problems to the user (e.g. loose connector, too noisy environment, broken conductor in the USB cable and so on). This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 13 - bit_size: 1 - - name: PMAOVR - description: "Packet memory area over / underrun This bit is set if the microcontroller has not been able to respond in time to an USB memory request. The USB peripheral handles this event in the following way: During reception an ACK handshake packet is not sent, during transmission a bit-stuff error is forced on the transmitted stream; in both cases the host will retry the transaction. The PMAOVR interrupt should never occur during normal operations. Since the failed transaction is retried by the host, the application software has the chance to speed-up device operations during this interrupt handling, to be ready for the next transaction retry; however this does not happen during Isochronous transfers (no isochronous transaction is anyway retried) leading to a loss of data in this case. This bit is read/write but only '0 can be written and writing '1 has no effect." - bit_offset: 14 - bit_size: 1 - - name: CTR - description: Correct transfer This bit is set by the hardware to indicate that an endpoint/channel has successfully completed a transaction; using DIR and EP_ID bits software can determine which endpoint/channel requested the interrupt. This bit is read-only. - bit_offset: 15 - bit_size: 1 - - name: THR512 - description: "512 byte threshold interrupt This bit is set to 1 by the hardware when 512 bytes have been transmitted or received during isochronous transfers. This bit is read/write but only 0 can be written and writing 1 has no effect. Note that no information is available to indicate the associated channel/endpoint, however in practice only one ISO endpoint/channel with such large packets can be supported, so that channel." - bit_offset: 16 - bit_size: 1 - - name: DCON_STAT - description: "Device connection status Host mode: This bit contains information about device connection status. It is set by hardware when a LS/FS device is attached to the host while it is reset when the device is disconnected." - bit_offset: 29 - bit_size: 1 - - name: LS_DCON - description: "Low Speed device connected Host mode: This bit is set by hardware when an LS device connection is detected. Device connection is signaled after LS J-state is sampled for 22 consecutive cycles of the USB clock (48 MHz) from the unconnected state." - bit_offset: 30 - bit_size: 1 + - name: EP_ID + description: 'Device Endpoint / Host channel identification number These bits are written by the hardware according to the host channel or device endpoint number, which generated the interrupt request. If several endpoint/channel transactions are pending, the hardware writes the identification number related to the endpoint/channel having the highest priority defined in the following way: Two levels are defined, in order of priority: Isochronous and double-buffered bulk channels/endpoints are considered first and then the others are examined. If more than one endpoint/channel from the same set is requesting an interrupt, the IDN bits in USB_ISTR register are assigned according to the lowest requesting register, CHEP0R having the highest priority followed by CHEP1R and so on. The application software can assign a register to each endpoint/channel according to this priority scheme, so as to order the concurring endpoint/channel requests in a suitable way. These bits are read only.' + bit_offset: 0 + bit_size: 4 + - name: DIR + description: Direction of transaction This bit is written by the hardware according to the direction of the successful transaction, which generated the interrupt request. If DIR bit=0, VTTX bit is set in the USB_EPnR register related to the interrupting endpoint. The interrupting transaction is of IN type (data transmitted by the USB peripheral to the host PC). If DIR bit=1, VTRX bit or both VTTX/VTRX are set in the USB_EPnR register related to the interrupting endpoint. The interrupting transaction is of OUT type (data received by the USB peripheral from the host PC) or two pending transactions are waiting to be processed. This information can be used by the application software to access the USB_EPnR bits related to the triggering transaction since it represents the direction having the interrupt pending. This bit is read-only. + bit_offset: 4 + bit_size: 1 + enum: DIR + - name: L1REQ + description: LPM L1 state request This bit is set by the hardware when LPM command to enter the L1 state is successfully received and acknowledged. This bit is read/write but only '0 can be written and writing '1 has no effect. + bit_offset: 7 + bit_size: 1 + - name: ESOF + description: Expected start of frame This bit is set by the hardware when an SOF packet is expected but not received. The host sends an SOF packet each 1 ms, but if the device does not receive it properly, the Suspend Timer issues this interrupt. If three consecutive ESOF interrupts are generated (i.e. three SOF packets are lost) without any traffic occurring in between, a SUSP interrupt is generated. This bit is set even when the missing SOF packets occur while the Suspend Timer is not yet locked. This bit is read/write but only '0 can be written and writing '1 has no effect. + bit_offset: 8 + bit_size: 1 + - name: SOF + description: Start of frame This bit signals the beginning of a new USB frame and it is set when a SOF packet arrives through the USB bus. The interrupt service routine may monitor the SOF events to have a 1 ms synchronization event to the USB host and to safely read the USB_FNR register which is updated at the SOF packet reception (this could be useful for isochronous applications). This bit is read/write but only '0 can be written and writing '1 has no effect. + bit_offset: 9 + bit_size: 1 + - name: RESET + description: reset request Device mode This bit is set by hardware when an USB reset is released by the host and the bus returns to idle. USB reset state is internally detected after the sampling of 60 consecutive SE0 cycles. Host mode This bit is set by hardware when device connection or device disconnection is detected. Device connection is signaled after J state is sampled for 22cycles consecutively from unconnected state. Device disconnection is signaled after SE0 state is sampled for 22cycles consecutively from connected state. + bit_offset: 10 + bit_size: 1 + - name: SUSP + description: Suspend mode request This bit is set by the hardware when no traffic has been received for 3 ms, indicating a suspend mode request from the USB bus. The suspend condition check is enabled immediately after any USB reset and it is disabled by the hardware when the suspend mode is active (SUSPEN=1) until the end of resume sequence. This bit is read/write but only '0 can be written and writing '1 has no effect. + bit_offset: 11 + bit_size: 1 + - name: WKUP + description: Wakeup This bit is set to 1 by the hardware when, during suspend mode, activity is detected that wakes up the USB peripheral. This event asynchronously clears the LP_MODE bit in the CTLR register and activates the USB_WAKEUP line, which can be used to notify the rest of the device (e.g. wakeup unit) about the start of the resume process. This bit is read/write but only '0 can be written and writing '1 has no effect. + bit_offset: 12 + bit_size: 1 + - name: ERR + description: "Error This flag is set whenever one of the errors listed below has occurred: NANS:\tNo ANSwer. The timeout for a host response has expired. CRC:\tCyclic Redundancy Check error. One of the received CRCs, either in the token or in the data, was wrong. BST:\tBit Stuffing error. A bit stuffing error was detected anywhere in the PID, data, and/or CRC. FVIO:\tFraming format Violation. A non-standard frame was received (EOP not in the right place, wrong token sequence, etc.). The USB software can usually ignore errors, since the USB peripheral and the PC host manage retransmission in case of errors in a fully transparent way. This interrupt can be useful during the software development phase, or to monitor the quality of transmission over the USB bus, to flag possible problems to the user (e.g. loose connector, too noisy environment, broken conductor in the USB cable and so on). This bit is read/write but only '0 can be written and writing '1 has no effect." + bit_offset: 13 + bit_size: 1 + - name: PMAOVR + description: 'Packet memory area over / underrun This bit is set if the microcontroller has not been able to respond in time to an USB memory request. The USB peripheral handles this event in the following way: During reception an ACK handshake packet is not sent, during transmission a bit-stuff error is forced on the transmitted stream; in both cases the host will retry the transaction. The PMAOVR interrupt should never occur during normal operations. Since the failed transaction is retried by the host, the application software has the chance to speed-up device operations during this interrupt handling, to be ready for the next transaction retry; however this does not happen during Isochronous transfers (no isochronous transaction is anyway retried) leading to a loss of data in this case. This bit is read/write but only ''0 can be written and writing ''1 has no effect.' + bit_offset: 14 + bit_size: 1 + - name: CTR + description: Correct transfer This bit is set by the hardware to indicate that an endpoint/channel has successfully completed a transaction; using DIR and EP_ID bits software can determine which endpoint/channel requested the interrupt. This bit is read-only. + bit_offset: 15 + bit_size: 1 + - name: THR512 + description: 512 byte threshold interrupt This bit is set to 1 by the hardware when 512 bytes have been transmitted or received during isochronous transfers. This bit is read/write but only 0 can be written and writing 1 has no effect. Note that no information is available to indicate the associated channel/endpoint, however in practice only one ISO endpoint/channel with such large packets can be supported, so that channel. + bit_offset: 16 + bit_size: 1 + - name: DCON_STAT + description: 'Device connection status Host mode: This bit contains information about device connection status. It is set by hardware when a LS/FS device is attached to the host while it is reset when the device is disconnected.' + bit_offset: 29 + bit_size: 1 + - name: LS_DCON + description: 'Low Speed device connected Host mode: This bit is set by hardware when an LS device connection is detected. Device connection is signaled after LS J-state is sampled for 22 consecutive cycles of the USB clock (48 MHz) from the unconnected state.' + bit_offset: 30 + bit_size: 1 fieldset/LPMCSR: description: LPM control and status register fields: - - name: LPMEN - description: "LPM support enable Device mode This bit is set by the software to enable the LPM support within the USB device. If this bit is at '0 no LPM transactions are handled. Host mode Software sets this bit to transmit an LPM transaction to device. This bit is cleared by hardware, simultaneous with L1REQ flag set, when device answer is received" - bit_offset: 0 - bit_size: 1 - - name: LPMACK - description: "LPM Token acknowledge enable The NYET/ACK will be returned only on a successful LPM transaction: No errors in both the EXT token and the LPM token (else ERROR) A valid bLinkState = 0001B (L1) is received (else STALL) This bit contains the device answer to the LPM transaction. It mast be evaluated following the L1REQ interrupt." - bit_offset: 1 - bit_size: 1 - enum: LPMACK - - name: REMWAKE - description: bRemoteWake value Device mode This bit contains the bRemoteWake value received with last ACKed LPM Token Host mode This bit contains the bRemoteWake value transmitted with the LPM transaction - bit_offset: 3 - bit_size: 1 - - name: BESL - description: BESL value Device mode These bits contain the BESL value received with last ACKed LPM Token Host mode These bits contain the BESL value transmitted with the LPM transaction - bit_offset: 4 - bit_size: 4 + - name: LPMEN + description: LPM support enable Device mode This bit is set by the software to enable the LPM support within the USB device. If this bit is at '0 no LPM transactions are handled. Host mode Software sets this bit to transmit an LPM transaction to device. This bit is cleared by hardware, simultaneous with L1REQ flag set, when device answer is received + bit_offset: 0 + bit_size: 1 + - name: LPMACK + description: 'LPM Token acknowledge enable The NYET/ACK will be returned only on a successful LPM transaction: No errors in both the EXT token and the LPM token (else ERROR) A valid bLinkState = 0001B (L1) is received (else STALL) This bit contains the device answer to the LPM transaction. It mast be evaluated following the L1REQ interrupt.' + bit_offset: 1 + bit_size: 1 + enum: LPMACK + - name: REMWAKE + description: bRemoteWake value Device mode This bit contains the bRemoteWake value received with last ACKed LPM Token Host mode This bit contains the bRemoteWake value transmitted with the LPM transaction + bit_offset: 3 + bit_size: 1 + - name: BESL + description: BESL value Device mode These bits contain the BESL value received with last ACKed LPM Token Host mode These bits contain the BESL value transmitted with the LPM transaction + bit_offset: 4 + bit_size: 4 enum/DIR: bit_size: 1 variants: - - name: To - description: data transmitted by the USB peripheral to the host PC - value: 0 - - name: From - description: data received by the USB peripheral from the host PC - value: 1 + - name: To + description: data transmitted by the USB peripheral to the host PC + value: 0 + - name: From + description: data received by the USB peripheral from the host PC + value: 1 enum/EP_TYPE: bit_size: 2 variants: - - name: Bulk - description: Bulk endpoint - value: 0 - - name: Control - description: Control endpoint - value: 1 - - name: Iso - description: Iso endpoint - value: 2 - - name: Interrupt - description: Interrupt endpoint - value: 3 + - name: Bulk + description: Bulk endpoint + value: 0 + - name: Control + description: Control endpoint + value: 1 + - name: Iso + description: Iso endpoint + value: 2 + - name: Interrupt + description: Interrupt endpoint + value: 3 enum/LPMACK: bit_size: 1 variants: - - name: Nyet - description: The valid LPM Token will be NYET / NYET answer - value: 0 - - name: Ack - description: The valid LPM Token will be ACK / ACK answer - value: 1 + - name: Nyet + description: The valid LPM Token will be NYET / NYET answer + value: 0 + - name: Ack + description: The valid LPM Token will be ACK / ACK answer + value: 1 enum/SDET: bit_size: 1 variants: - - name: CDP - description: CDP detected - value: 0 - - name: DCP - description: DCP detected - value: 1 + - name: CDP + description: CDP detected + value: 0 + - name: DCP + description: DCP detected + value: 1 enum/STAT: bit_size: 2 variants: - - name: Disabled - description: all requests addressed to this endpoint are ignored - value: 0 - - name: Stall - description: the endpoint is stalled and all requests result in a STALL handshake - value: 1 - - name: Nak - description: the endpoint is naked and all requests result in a NAK handshake - value: 2 - - name: Valid - description: "this endpoint is enabled, requests are ACKed" - value: 3 + - name: Disabled + description: all requests addressed to this endpoint are ignored + value: 0 + - name: Stall + description: the endpoint is stalled and all requests result in a STALL handshake + value: 1 + - name: Nak + description: the endpoint is naked and all requests result in a NAK handshake + value: 2 + - name: Valid + description: this endpoint is enabled, requests are ACKed + value: 3 diff --git a/data/registers/usbram_16x1_512.yaml b/data/registers/usbram_16x1_512.yaml index 335220b..af0b98b 100644 --- a/data/registers/usbram_16x1_512.yaml +++ b/data/registers/usbram_16x1_512.yaml @@ -1,11 +1,10 @@ ---- block/USBRAM: description: USB Endpoint memory items: - - name: MEM - description: USB Endpoint memory - array: - len: 256 - stride: 4 - byte_offset: 0 - bit_size: 16 + - name: MEM + description: USB Endpoint memory + array: + len: 256 + stride: 4 + byte_offset: 0 + bit_size: 16 diff --git a/data/registers/usbram_16x2_1024.yaml b/data/registers/usbram_16x2_1024.yaml index 9941e63..4b9df7b 100644 --- a/data/registers/usbram_16x2_1024.yaml +++ b/data/registers/usbram_16x2_1024.yaml @@ -1,11 +1,10 @@ ---- block/USBRAM: description: USB Endpoint memory items: - - name: MEM - description: USB Endpoint memory - array: - len: 512 - stride: 2 - byte_offset: 0 - bit_size: 16 + - name: MEM + description: USB Endpoint memory + array: + len: 512 + stride: 2 + byte_offset: 0 + bit_size: 16 diff --git a/data/registers/usbram_16x2_512.yaml b/data/registers/usbram_16x2_512.yaml index 67051cd..b93c920 100644 --- a/data/registers/usbram_16x2_512.yaml +++ b/data/registers/usbram_16x2_512.yaml @@ -1,11 +1,10 @@ ---- block/USBRAM: description: USB Endpoint memory items: - - name: MEM - description: USB Endpoint memory - array: - len: 256 - stride: 2 - byte_offset: 0 - bit_size: 16 + - name: MEM + description: USB Endpoint memory + array: + len: 256 + stride: 2 + byte_offset: 0 + bit_size: 16 diff --git a/data/registers/usbram_32_2048.yaml b/data/registers/usbram_32_2048.yaml index 7d5a384..c5a9f10 100644 --- a/data/registers/usbram_32_2048.yaml +++ b/data/registers/usbram_32_2048.yaml @@ -1,10 +1,9 @@ ---- block/USBRAM: description: USB Endpoint memory items: - - name: MEM - description: USB Endpoint memory - array: - len: 512 - stride: 4 - byte_offset: 0 + - name: MEM + description: USB Endpoint memory + array: + len: 512 + stride: 4 + byte_offset: 0 diff --git a/data/registers/vrefintcal_v1.yaml b/data/registers/vrefintcal_v1.yaml index 3b27b74..a40c0dd 100644 --- a/data/registers/vrefintcal_v1.yaml +++ b/data/registers/vrefintcal_v1.yaml @@ -1,16 +1,15 @@ ---- block/VREFINTCAL: description: VREFINT Factory Calibration items: - - name: DATA - description: Factory calibration - byte_offset: 0 - access: Read - fieldset: DATA + - name: DATA + description: Factory calibration + byte_offset: 0 + access: Read + fieldset: DATA fieldset/DATA: description: Factory calibration data fields: - - name: VALUE - description: Calibration value - bit_offset: 0 - bit_size: 16 + - name: VALUE + description: Calibration value + bit_offset: 0 + bit_size: 16 diff --git a/data/registers/wwdg_v1.yaml b/data/registers/wwdg_v1.yaml index b1d77c2..e776979 100644 --- a/data/registers/wwdg_v1.yaml +++ b/data/registers/wwdg_v1.yaml @@ -1,75 +1,74 @@ ---- block/WWDG: description: Window watchdog items: - - name: CR - description: Control register - byte_offset: 0 - fieldset: CR - - name: CFR - description: Configuration register - byte_offset: 4 - fieldset: CFR - - name: SR - description: Status register - byte_offset: 8 - fieldset: SR + - name: CR + description: Control register + byte_offset: 0 + fieldset: CR + - name: CFR + description: Configuration register + byte_offset: 4 + fieldset: CFR + - name: SR + description: Status register + byte_offset: 8 + fieldset: SR fieldset/CFR: description: Configuration register fields: - - name: W - description: 7-bit window value - bit_offset: 0 - bit_size: 7 - - name: WDGTB - description: Timer base - bit_offset: 7 - bit_size: 2 - enum: WDGTB - - name: EWI - description: Early wakeup interrupt - bit_offset: 9 - bit_size: 1 + - name: W + description: 7-bit window value + bit_offset: 0 + bit_size: 7 + - name: WDGTB + description: Timer base + bit_offset: 7 + bit_size: 2 + enum: WDGTB + - name: EWI + description: Early wakeup interrupt + bit_offset: 9 + bit_size: 1 fieldset/CR: description: Control register fields: - - name: T - description: 7-bit counter (MSB to LSB) - bit_offset: 0 - bit_size: 7 - - name: WDGA - description: Activation bit - bit_offset: 7 - bit_size: 1 - enum: WDGA + - name: T + description: 7-bit counter (MSB to LSB) + bit_offset: 0 + bit_size: 7 + - name: WDGA + description: Activation bit + bit_offset: 7 + bit_size: 1 + enum: WDGA fieldset/SR: description: Status register fields: - - name: EWIF - description: Early wakeup interrupt flag - bit_offset: 0 - bit_size: 1 + - name: EWIF + description: Early wakeup interrupt flag + bit_offset: 0 + bit_size: 1 enum/WDGA: bit_size: 1 variants: - - name: Disabled - description: Watchdog disabled - value: 0 - - name: Enabled - description: Watchdog enabled - value: 1 + - name: Disabled + description: Watchdog disabled + value: 0 + - name: Enabled + description: Watchdog enabled + value: 1 enum/WDGTB: bit_size: 2 variants: - - name: Div1 - description: Counter clock (PCLK1 div 4096) div 1 - value: 0 - - name: Div2 - description: Counter clock (PCLK1 div 4096) div 2 - value: 1 - - name: Div4 - description: Counter clock (PCLK1 div 4096) div 4 - value: 2 - - name: Div8 - description: Counter clock (PCLK1 div 4096) div 8 - value: 3 + - name: Div1 + description: Counter clock (PCLK1 div 4096) div 1 + value: 0 + - name: Div2 + description: Counter clock (PCLK1 div 4096) div 2 + value: 1 + - name: Div4 + description: Counter clock (PCLK1 div 4096) div 4 + value: 2 + - name: Div8 + description: Counter clock (PCLK1 div 4096) div 8 + value: 3 From 05ea13251c59ca0197a48459acf533216360e870 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 16 Sep 2023 01:15:15 +0200 Subject: [PATCH 43/54] pwr u5 cleanup --- data/registers/pwr_u5.yaml | 215 +++++++++++-------------------------- 1 file changed, 63 insertions(+), 152 deletions(-) diff --git a/data/registers/pwr_u5.yaml b/data/registers/pwr_u5.yaml index a15a403..8984ae6 100644 --- a/data/registers/pwr_u5.yaml +++ b/data/registers/pwr_u5.yaml @@ -2,82 +2,82 @@ block/PWR: description: Power control items: - name: CR1 - description: PWR control register 1 + description: control register 1 byte_offset: 0 fieldset: CR1 - name: CR2 - description: PWR control register 2 + description: control register 2 byte_offset: 4 fieldset: CR2 - name: CR3 - description: PWR control register 3 + description: control register 3 byte_offset: 8 fieldset: CR3 - name: VOSR - description: PWR voltage scaling register + description: voltage scaling register byte_offset: 12 fieldset: VOSR - name: SVMCR - description: PWR supply voltage monitoring control register + description: supply voltage monitoring control register byte_offset: 16 fieldset: SVMCR - name: WUCR1 - description: PWR wakeup control register 1 + description: wakeup control register 1 byte_offset: 20 fieldset: WUCR1 - name: WUCR2 - description: PWR wakeup control register 2 + description: wakeup control register 2 byte_offset: 24 fieldset: WUCR2 - name: WUCR3 - description: PWR wakeup control register 3 + description: wakeup control register 3 byte_offset: 28 fieldset: WUCR3 - name: BDCR1 - description: PWR Backup domain control register 1 + description: Backup domain control register 1 byte_offset: 32 fieldset: BDCR1 - name: BDCR2 - description: PWR Backup domain control register 2 + description: Backup domain control register 2 byte_offset: 36 fieldset: BDCR2 - name: DBPR - description: PWR disable Backup domain register + description: disable Backup domain register byte_offset: 40 fieldset: DBPR - name: UCPDR - description: PWR USB Type-C™ and Power Delivery register + description: USB Type-C™ and Power Delivery register byte_offset: 44 fieldset: UCPDR - name: SECCFGR - description: PWR security configuration register + description: security configuration register byte_offset: 48 fieldset: SECCFGR - name: PRIVCFGR - description: PWR privilege control register + description: privilege control register byte_offset: 52 fieldset: PRIVCFGR - name: SR - description: PWR status register + description: status register byte_offset: 56 fieldset: SR - name: SVMSR byte_offset: 60 fieldset: SVMSR - name: BDSR - description: PWR Backup domain status register + description: Backup domain status register byte_offset: 64 fieldset: BDSR - name: WUSR - description: PWR wakeup status register + description: wakeup status register byte_offset: 68 fieldset: WUSR - name: WUSCR - description: PWR wakeup status clear register + description: wakeup status clear register byte_offset: 72 fieldset: WUSCR - name: APCR - description: PWR apply pull configuration register + description: apply pull configuration register byte_offset: 76 fieldset: APCR - name: PUCR @@ -95,14 +95,14 @@ block/PWR: byte_offset: 84 fieldset: PCR fieldset/APCR: - description: PWR apply pull configuration register + description: apply pull configuration register fields: - name: APC description: "Apply pull-up and pull-down configuration\r When this bit is set, the I/O pull-up and pull-down configurations defined in PUCRx and PDCRx are applied. When this bit is cleared, PUCRx and PDCRx are not applied to the I/Os." bit_offset: 0 bit_size: 1 fieldset/BDCR1: - description: PWR Backup domain control register 1 + description: Backup domain control register 1 fields: - name: BREN description: "Backup RAM retention in Standby and VBAT modes\r When this bit is set, the backup RAM content is kept in Standby and VBAT modes.\r If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS.\r Note: Backup RAM cannot be preserved in Shutdown mode." @@ -113,7 +113,7 @@ fieldset/BDCR1: bit_offset: 4 bit_size: 1 fieldset/BDCR2: - description: PWR Backup domain control register 2 + description: Backup domain control register 2 fields: - name: VBE description: VBAT charging enable @@ -126,7 +126,7 @@ fieldset/BDCR2: bit_size: 1 enum: VBRS fieldset/BDSR: - description: PWR Backup domain status register + description: Backup domain status register fields: - name: VBATH description: Backup domain voltage level monitoring versus high threshold @@ -144,7 +144,7 @@ fieldset/BDSR: bit_size: 1 enum: TEMPH fieldset/CR1: - description: PWR control register 1 + description: control register 1 fields: - name: LPMS description: "Low-power mode selection\r These bits select the low-power mode entered when the CPU enters the Deepsleep mode.\r 10x: Standby mode (Standby mode also entered if LPMS=11X in CR1\r with BREN=1 in BDCR1)\r 11x: Shutdown mode if BREN = 0 in BDCR1" @@ -186,7 +186,7 @@ fieldset/CR1: bit_size: 1 enum: SRAMPD fieldset/CR2: - description: PWR control register 2 + description: control register 2 fields: - name: SRAM1PDS1 description: SRAM1 page 1 (64 Kbytes) power-down in Stop modes (Stop 0, 1, 2, 3) @@ -298,7 +298,7 @@ fieldset/CR2: bit_offset: 31 bit_size: 1 fieldset/CR3: - description: PWR control register 3 + description: control register 3 fields: - name: REGSEL description: "Regulator selection\r Note: REGSEL is reserved and must be kept at reset value in packages without SMPS." @@ -310,7 +310,7 @@ fieldset/CR3: bit_offset: 2 bit_size: 1 fieldset/DBPR: - description: PWR disable Backup domain register + description: disable Backup domain register fields: - name: DBP description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write access. This bit must be set to enable the write access to these registers." @@ -328,60 +328,28 @@ fieldset/PCR: len: 16 stride: 1 fieldset/PRIVCFGR: - description: PWR privilege control register + description: privilege control register fields: - name: SPRIV - description: "PWR secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access." + description: "secure functions privilege configuration\r This bit is set and reset by software. It can be written only by a secure privileged access." bit_offset: 0 bit_size: 1 enum: PRIV - name: NSPRIV - description: "PWR non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure." + description: "non-secure functions privilege configuration\r This bit is set and reset by software. It can be written only by privileged access, secure or non-secure." bit_offset: 1 bit_size: 1 enum: PRIV fieldset/SECCFGR: - description: PWR security configuration register + description: security configuration register fields: - name: WUP1SEC description: WUP1 secure protection bit_offset: 0 bit_size: 1 - enum: SEC - - name: WUP2SEC - description: WUP2 secure protection - bit_offset: 1 - bit_size: 1 - enum: SEC - - name: WUP3SEC - description: WUP3 secure protection - bit_offset: 2 - bit_size: 1 - enum: SEC - - name: WUP4SEC - description: WUP4 secure protection - bit_offset: 3 - bit_size: 1 - enum: SEC - - name: WUP5SEC - description: WUP5 secure protection - bit_offset: 4 - bit_size: 1 - enum: SEC - - name: WUP6SEC - description: WUP6 secure protection - bit_offset: 5 - bit_size: 1 - enum: SEC - - name: WUP7SEC - description: WUP7 secure protection - bit_offset: 6 - bit_size: 1 - enum: SEC - - name: WUP8SEC - description: WUP8 secure protection - bit_offset: 7 - bit_size: 1 + array: + len: 8 + stride: 1 enum: SEC - name: LPMSEC description: Low-power modes secure protection @@ -404,7 +372,7 @@ fieldset/SECCFGR: bit_size: 1 enum: SEC fieldset/SR: - description: PWR status register + description: status register fields: - name: CSSF description: "Clear Stop and Standby flags\r This bit is protected against non-secure access when LPMSEC=1 in SECCFGR.\r This bit is protected against unprivileged access when LPMSEC=1 and SPRIV=1 in PRIVCFGR, or when LPMSEC=0 and NSPRIV=1.\r Writing 1 to this bit clears the STOPF and SBF flags." @@ -419,7 +387,7 @@ fieldset/SR: bit_offset: 2 bit_size: 1 fieldset/SVMCR: - description: PWR supply voltage monitoring control register + description: supply voltage monitoring control register fields: - name: PVDE description: Power voltage detector enable @@ -496,7 +464,7 @@ fieldset/SVMSR: bit_offset: 27 bit_size: 1 fieldset/UCPDR: - description: PWR USB Type-C™ and Power Delivery register + description: USB Type-C™ and Power Delivery register fields: - name: UCPD_DBDIS description: "UCPD dead battery disable\r After exiting reset, the USB Type-C “dead battery” behavior is enabled, which may have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to handover control to the UCPD (the UCPD must be initialized before doing the disable)." @@ -507,7 +475,7 @@ fieldset/UCPDR: bit_offset: 1 bit_size: 1 fieldset/VOSR: - description: PWR voltage scaling register + description: voltage scaling register fields: - name: BOOSTRDY description: "EPOD booster ready\r This bit is set to 1 by hardware when the power booster startup time is reached. The system clock frequency can be switched higher than 50 MHz only after this bit is set." @@ -527,85 +495,28 @@ fieldset/VOSR: bit_offset: 18 bit_size: 1 fieldset/WUCR1: - description: PWR wakeup control register 1 + description: wakeup control register 1 fields: - - name: WUPEN1 + - name: WUPEN description: Wakeup pin WKUP1 enable bit_offset: 0 bit_size: 1 - - name: WUPEN2 - description: Wakeup pin WKUP2 enable - bit_offset: 1 - bit_size: 1 - - name: WUPEN3 - description: Wakeup pin WKUP3 enable - bit_offset: 2 - bit_size: 1 - - name: WUPEN4 - description: Wakeup pin WKUP4 enable - bit_offset: 3 - bit_size: 1 - - name: WUPEN5 - description: Wakeup pin WKUP5 enable - bit_offset: 4 - bit_size: 1 - - name: WUPEN6 - description: Wakeup pin WKUP6 enable - bit_offset: 5 - bit_size: 1 - - name: WUPEN7 - description: Wakeup pin WKUP7 enable - bit_offset: 6 - bit_size: 1 - - name: WUPEN8 - description: Wakeup pin WKUP8 enable - bit_offset: 7 - bit_size: 1 + array: + len: 8 + stride: 1 fieldset/WUCR2: - description: PWR wakeup control register 2 + description: wakeup control register 2 fields: - - name: WUPP1 + - name: WUPP description: "Wakeup pin WKUP1 polarity.\r This bit must be configured when WUPEN1 = 0." bit_offset: 0 bit_size: 1 - enum: WUPP - - name: WUPP2 - description: "Wakeup pin WKUP2 polarity\r This bit must be configured when WUPEN2 = 0." - bit_offset: 1 - bit_size: 1 - enum: WUPP - - name: WUPP3 - description: "Wakeup pin WKUP3 polarity\r This bit must be configured when WUPEN3 = 0." - bit_offset: 2 - bit_size: 1 - enum: WUPP - - name: WUPP4 - description: "Wakeup pin WKUP4 polarity\r This bit must be configured when WUPEN4 = 0." - bit_offset: 3 - bit_size: 1 - enum: WUPP - - name: WUPP5 - description: "Wakeup pin WKUP5 polarity\r This bit must be configured when WUPEN5 = 0." - bit_offset: 4 - bit_size: 1 - enum: WUPP - - name: WUPP6 - description: "Wakeup pin WKUP6 polarity\r This bit must be configured when WUPEN6 = 0." - bit_offset: 5 - bit_size: 1 - enum: WUPP - - name: WUPP7 - description: "Wakeup pin WKUP7 polarity\r This bit must be configured when WUPEN7 = 0." - bit_offset: 6 - bit_size: 1 - enum: WUPP - - name: WUPP8 - description: "Wakeup pin WKUP8 polarity\r This bit must be configured when WUPEN8=0." - bit_offset: 7 - bit_size: 1 + array: + len: 8 + stride: 1 enum: WUPP fieldset/WUCR3: - description: PWR wakeup control register 3 + description: wakeup control register 3 fields: - name: WUSEL1 description: "Wakeup pin WKUP1 selection\r This field must be configured when WUPEN1 = 0." @@ -648,7 +559,7 @@ fieldset/WUCR3: bit_size: 2 enum: WUSEL fieldset/WUSCR: - description: PWR wakeup status clear register + description: wakeup status clear register fields: - name: CWUF1 description: "Wakeup flag 1\r Writing 1 to this bit clears the WUF1 flag in WUSR." @@ -683,7 +594,7 @@ fieldset/WUSCR: bit_offset: 7 bit_size: 1 fieldset/WUSR: - description: PWR wakeup status register + description: wakeup status register fields: - name: WUF1 description: "Wakeup flag 1\r This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR when WUSEL ≠ 11, or by hardware when WUPEN1=0." @@ -778,36 +689,36 @@ enum/PRIV: bit_size: 1 variants: - name: Unprivileged - description: Read and write to PWR non-secure functions can be done by privileged or unprivileged access. + description: Read and write to non-secure functions can be done by privileged or unprivileged access. value: 0 - name: Privileged - description: Read and write to PWR non-secure functions can be done by privileged access only. + description: Read and write to non-secure functions can be done by privileged access only. value: 1 enum/PVDLS: bit_size: 3 variants: - - name: B_0x0 + - name: v20 description: VPVD0 around 2.0 V value: 0 - - name: B_0x1 + - name: v22 description: VPVD1 around 2.2 V value: 1 - - name: B_0x2 + - name: v24 description: VPVD2 around 2.4 V value: 2 - - name: B_0x3 + - name: v25 description: VPVD3 around 2.5 V value: 3 - - name: B_0x4 + - name: v26 description: VPVD4 around 2.6 V value: 4 - - name: B_0x5 + - name: v28 description: VPVD5 around 2.8 V value: 5 - - name: B_0x6 + - name: v29 description: VPVD6 around 2.9 V value: 6 - - name: B_0x7 + - name: pvd_in description: External input analog voltage PVD_IN (compared internally to VREFINT) value: 7 enum/PVDO: @@ -927,10 +838,10 @@ enum/VOS: enum/WUPP: bit_size: 1 variants: - - name: B_0x0 + - name: High description: Detection on high level (rising edge) value: 0 - - name: B_0x1 + - name: Low description: Detection on low level (falling edge) value: 1 enum/WUSEL: From 8fec79a722110c9d813663eaec8c9ffe16fd369f Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 16 Sep 2023 01:15:37 +0200 Subject: [PATCH 44/54] rcc consistency fixes. --- data/registers/rcc_f1.yaml | 4 +- data/registers/rcc_f1cl.yaml | 4 +- data/registers/rcc_f3.yaml | 4 +- data/registers/rcc_f3_v2.yaml | 4 +- data/registers/rcc_h5.yaml | 2 +- data/registers/rcc_h50.yaml | 2 +- data/registers/rcc_u5.yaml | 78 +++++++++++++++++------------------ data/registers/rcc_wb.yaml | 16 +++++++ data/registers/rcc_wl5.yaml | 16 +++++++ data/registers/rcc_wle.yaml | 16 +++++++ 10 files changed, 97 insertions(+), 49 deletions(-) diff --git a/data/registers/rcc_f1.yaml b/data/registers/rcc_f1.yaml index f9fdcc3..b0fb55d 100644 --- a/data/registers/rcc_f1.yaml +++ b/data/registers/rcc_f1.yaml @@ -843,9 +843,9 @@ enum/SWS: enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 + - name: Div1_5 description: PLL clock is divided by 1.5 value: 0 - - name: DIV1 + - name: Div1 description: PLL clock is not divided value: 1 diff --git a/data/registers/rcc_f1cl.yaml b/data/registers/rcc_f1cl.yaml index dbaf3a6..95a654e 100644 --- a/data/registers/rcc_f1cl.yaml +++ b/data/registers/rcc_f1cl.yaml @@ -952,9 +952,9 @@ enum/SWS: enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 + - name: Div1_5 description: PLL clock is divided by 1.5 value: 0 - - name: DIV1 + - name: Div1 description: PLL clock is not divided value: 1 diff --git a/data/registers/rcc_f3.yaml b/data/registers/rcc_f3.yaml index cbe8c42..7337227 100644 --- a/data/registers/rcc_f3.yaml +++ b/data/registers/rcc_f3.yaml @@ -1286,9 +1286,9 @@ enum/USARTSW: enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 + - name: Div1_5 description: PLL clock is divided by 1.5 value: 0 - - name: DIV1 + - name: Div1 description: PLL clock is not divided value: 1 diff --git a/data/registers/rcc_f3_v2.yaml b/data/registers/rcc_f3_v2.yaml index 9d2c291..e8e9c28 100644 --- a/data/registers/rcc_f3_v2.yaml +++ b/data/registers/rcc_f3_v2.yaml @@ -1262,9 +1262,9 @@ enum/USARTSW: enum/USBPRE: bit_size: 1 variants: - - name: DIV1_5 + - name: Div1_5 description: PLL clock is divided by 1.5 value: 0 - - name: DIV1 + - name: Div1 description: PLL clock is not divided value: 1 diff --git a/data/registers/rcc_h5.yaml b/data/registers/rcc_h5.yaml index d951e14..41ee10e 100644 --- a/data/registers/rcc_h5.yaml +++ b/data/registers/rcc_h5.yaml @@ -2463,7 +2463,7 @@ enum/RNGSEL: enum/RTCSEL: bit_size: 2 variants: - - name: None + - name: NoClock description: no clock (default after Backup domain reset) value: 0 - name: LSE diff --git a/data/registers/rcc_h50.yaml b/data/registers/rcc_h50.yaml index 21542a0..0fcf371 100644 --- a/data/registers/rcc_h50.yaml +++ b/data/registers/rcc_h50.yaml @@ -1631,7 +1631,7 @@ enum/RNGSEL: enum/RTCSEL: bit_size: 2 variants: - - name: None + - name: NoClock description: no clock (default after Backup domain reset) value: 0 - name: LSE diff --git a/data/registers/rcc_u5.yaml b/data/registers/rcc_u5.yaml index bd4b462..7768b0d 100644 --- a/data/registers/rcc_u5.yaml +++ b/data/registers/rcc_u5.yaml @@ -2562,19 +2562,19 @@ enum/DACSEL: enum/DPRE: bit_size: 3 variants: - - name: NONE + - name: Div1 description: DCLK not divided value: 0 - - name: DIV2 + - name: Div2 description: DCLK divided by 2 value: 4 - - name: DIV4 + - name: Div4 description: DCLK divided by 4 value: 5 - - name: DIV8 + - name: Div8 description: DCLK divided by 8 value: 6 - - name: DIV16 + - name: Div16 description: DCLK divided by 16 value: 7 enum/DSISEL: @@ -2601,31 +2601,31 @@ enum/FDCANSEL: enum/HPRE: bit_size: 4 variants: - - name: NONE + - name: Div1 description: SYSCLK not divided value: 0 - - name: DIV2 + - name: Div2 description: SYSCLK divided by 2 value: 8 - - name: DIV4 + - name: Div4 description: SYSCLK divided by 4 value: 9 - - name: DIV8 + - name: Div8 description: SYSCLK divided by 8 value: 10 - - name: DIV16 + - name: Div16 description: SYSCLK divided by 16 value: 11 - - name: DIV64 + - name: Div64 description: SYSCLK divided by 64 value: 12 - - name: DIV128 + - name: Div128 description: SYSCLK divided by 128 value: 13 - - name: DIV256 + - name: Div256 description: SYSCLK divided by 256 value: 14 - - name: DIV512 + - name: Div512 description: SYSCLK divided by 512 value: 15 enum/HSEEXT: @@ -2742,10 +2742,10 @@ enum/LSEDRV: enum/LSIPREDIV: bit_size: 1 variants: - - name: NONE + - name: Div1 description: LSI not divided value: 0 - - name: DIV_128 + - name: Div128 description: LSI divided by 128 value: 1 enum/LTDCSEL: @@ -2760,19 +2760,19 @@ enum/LTDCSEL: enum/MCOPRE: bit_size: 3 variants: - - name: NONE + - name: Div1 description: MCO divided by 1 value: 0 - - name: DIV2 + - name: Div2 description: MCO divided by 2 value: 1 - - name: DIV4 + - name: Div4 description: MCO divided by 4 value: 2 - - name: DIV8 + - name: Div8 description: MCO divided by 8 value: 3 - - name: DIV16 + - name: Div16 description: MCO divided by 16 value: 4 enum/MCOSEL: @@ -2967,13 +2967,13 @@ enum/PLLM: - name: BYPASS description: division by 1 (bypass) value: 0 - - name: DIV2 + - name: Div2 description: division by 2 value: 1 - - name: DIV3 + - name: Div3 description: division by 3 value: 2 - - name: DIV16 + - name: Div16 description: division by 16 value: 15 enum/PLLMBOOST: @@ -2982,28 +2982,28 @@ enum/PLLMBOOST: - name: BYPASS description: division by 1 (bypass) value: 0 - - name: DIV2 + - name: Div2 description: division by 2 value: 1 - - name: DIV4 + - name: Div4 description: division by 4 value: 2 - - name: DIV6 + - name: Div6 description: division by 6 value: 3 - - name: DIV8 + - name: Div8 description: division by 8 value: 4 - - name: DIV10 + - name: Div10 description: division by 10 value: 5 - - name: DIV12 + - name: Div12 description: division by 12 value: 6 - - name: DIV14 + - name: Div14 description: division by 14 value: 7 - - name: DIV16 + - name: Div16 description: division by 16 value: 8 enum/PLLRGE: @@ -3033,19 +3033,19 @@ enum/PLLSRC: enum/PPRE: bit_size: 3 variants: - - name: NONE + - name: Div1 description: HCLK not divided value: 0 - - name: DIV2 + - name: Div2 description: HCLK divided by 2 value: 4 - - name: DIV4 + - name: Div4 description: HCLK divided by 4 value: 5 - - name: DIV8 + - name: Div8 description: HCLK divided by 8 value: 6 - - name: DIV16 + - name: Div16 description: HCLK divided by 16 value: 7 enum/PRIV: @@ -3072,7 +3072,7 @@ enum/RNGSEL: enum/RTCSEL: bit_size: 2 variants: - - name: NONE + - name: NoClock description: No clock selected value: 0 - name: LSE @@ -3174,7 +3174,7 @@ enum/SW: - name: HSE description: HSE selected as system clock value: 2 - - name: PLL1R + - name: PLL1_R description: PLL pll1_r_ck selected as system clock value: 3 enum/SYSTICKSEL: diff --git a/data/registers/rcc_wb.yaml b/data/registers/rcc_wb.yaml index b0f07d2..f311360 100644 --- a/data/registers/rcc_wb.yaml +++ b/data/registers/rcc_wb.yaml @@ -735,6 +735,7 @@ fieldset/BDCR: description: RTC clock source selection bit_offset: 8 bit_size: 2 + enum: RTCSEL - name: RTCEN description: RTC clock enable bit_offset: 15 @@ -1635,3 +1636,18 @@ fieldset/SMPSCR: description: Step Down converter clock switch status bit_offset: 8 bit_size: 2 +enum/RTCSEL: + bit_size: 2 + variants: + - name: NoClock + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 diff --git a/data/registers/rcc_wl5.yaml b/data/registers/rcc_wl5.yaml index fd8006e..5acb71c 100644 --- a/data/registers/rcc_wl5.yaml +++ b/data/registers/rcc_wl5.yaml @@ -685,6 +685,7 @@ fieldset/BDCR: description: RTC clock source selection bit_offset: 8 bit_size: 2 + enum: RTCSEL - name: LSESYSRDY description: LSE system clock ready bit_offset: 11 @@ -1434,3 +1435,18 @@ enum/ADCSEL: - name: SYSCLK description: SYSCLK used as ADC clock source value: 3 +enum/RTCSEL: + bit_size: 2 + variants: + - name: NoClock + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 diff --git a/data/registers/rcc_wle.yaml b/data/registers/rcc_wle.yaml index bbe6b99..ffdd52e 100644 --- a/data/registers/rcc_wle.yaml +++ b/data/registers/rcc_wle.yaml @@ -621,6 +621,7 @@ fieldset/BDCR: description: RTC clock source selection bit_offset: 8 bit_size: 2 + enum: RTCSEL - name: LSESYSRDY description: LSE system clock ready bit_offset: 11 @@ -1056,3 +1057,18 @@ enum/ADCSEL: - name: SYSCLK description: SYSCLK used as ADC clock source value: 3 +enum/RTCSEL: + bit_size: 2 + variants: + - name: NoClock + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 From 43c1e7b3bec846ce98c9339750018ac2591cb819 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 16 Sep 2023 02:06:26 +0200 Subject: [PATCH 45/54] Add STM32WBA support. --- data/dmamux/WBA_GPDMA1.yaml | 50 + data/registers/dbgmcu_wba.yaml | 339 +++++++ data/registers/flash_wba.yaml | 643 +++++++++++++ data/registers/pwr_wba.yaml | 537 +++++++++++ data/registers/rcc_wba.yaml | 1572 ++++++++++++++++++++++++++++++++ data/registers/syscfg_wba.yaml | 196 ++++ stm32-data-gen/src/chips.rs | 14 +- stm32-data-gen/src/dma.rs | 1 + 8 files changed, 3349 insertions(+), 3 deletions(-) create mode 100644 data/dmamux/WBA_GPDMA1.yaml create mode 100644 data/registers/dbgmcu_wba.yaml create mode 100644 data/registers/flash_wba.yaml create mode 100644 data/registers/pwr_wba.yaml create mode 100644 data/registers/rcc_wba.yaml create mode 100644 data/registers/syscfg_wba.yaml diff --git a/data/dmamux/WBA_GPDMA1.yaml b/data/dmamux/WBA_GPDMA1.yaml new file mode 100644 index 0000000..f01f151 --- /dev/null +++ b/data/dmamux/WBA_GPDMA1.yaml @@ -0,0 +1,50 @@ +ADC4: 0 +SPI1_RX: 1 +SPI1_TX: 2 +SPI3_RX: 3 +SPI3_TX: 4 +I2C1_RX: 5 +I2C1_TX: 6 +I2C1_EVC: 7 +I2C3_RX: 8 +I2C3_TX: 9 +I2C3_EVC: 10 +USART1_RX: 11 +USART1_TX: 12 +USART2_RX: 13 +USART2_TX: 14 +LPUART1_RX: 15 +LPUART1_TX: 16 +TIM1_CC1: 19 +TIM1_CC2: 20 +TIM1_CC3: 21 +TIM1_CC4: 22 +TIM1_UPD: 23 +TIM1_TRG: 24 +TIM1_COM: 25 +TIM2_CC1: 26 +TIM2_CC2: 27 +TIM2_CC3: 28 +TIM2_CC4: 29 +TIM2_UPD: 30 +TIM3_CC1: 31 +TIM3_CC2: 32 +TIM3_CC3: 33 +TIM3_CC4: 34 +TIM3_UPD: 35 +TIM3_TRG: 36 +TIM16_CC1: 37 +TIM16_UPD: 38 +TIM17_CC1: 39 +TIM17_UPD: 40 +AES_IN: 41 +AES_OUT: 42 +HASH_IN: 43 +SAES_IN: 44 +SAES_OUT: 45 +LPTIM1_IC1: 46 +LPTIM1_IC2: 47 +LPTIM1_UE: 48 +LPTIM2_IC1: 49 +LPTIM2_IC2: 50 +LPTIM2_UE: 51 \ No newline at end of file diff --git a/data/registers/dbgmcu_wba.yaml b/data/registers/dbgmcu_wba.yaml new file mode 100644 index 0000000..264b506 --- /dev/null +++ b/data/registers/dbgmcu_wba.yaml @@ -0,0 +1,339 @@ +block/DBGMCU: + description: Microcontroller debug unit + items: + - name: IDCODE + description: identity code register + byte_offset: 0 + fieldset: IDCODE + - name: CR + description: status and configuration register + byte_offset: 4 + fieldset: CR + - name: APB1LFZR + description: APB1L peripheral freeze register + byte_offset: 8 + fieldset: APB1LFZR + - name: APB1HFZR + description: APB1H peripheral freeze register + byte_offset: 12 + fieldset: APB1HFZR + - name: APB2FZR + description: APB2 peripheral freeze register + byte_offset: 16 + fieldset: APB2FZR + - name: APB7FZR + description: APB7 peripheral freeze register + byte_offset: 36 + fieldset: APB7FZR + - name: AHB1FZR + description: AHB1 peripheral freeze register + byte_offset: 40 + fieldset: AHB1FZR + - name: SR + description: status register + byte_offset: 252 + fieldset: SR + - name: DBG_AUTH_HOST + description: debug host authentication register + byte_offset: 256 + fieldset: DBG_AUTH_HOST + - name: DBG_AUTH_DEVICE + description: debug device authentication register + byte_offset: 260 + fieldset: DBG_AUTH_DEVICE + - name: PNCR + description: part number codification register + byte_offset: 2012 + fieldset: PNCR + - name: PIDR4 + description: CoreSight peripheral identity register 4 + byte_offset: 4048 + fieldset: PIDR4 + - name: PIDR0 + description: CoreSight peripheral identity register 0 + byte_offset: 4064 + fieldset: PIDR0 + - name: PIDR1 + description: CoreSight peripheral identity register 1 + byte_offset: 4068 + fieldset: PIDR1 + - name: PIDR2 + description: CoreSight peripheral identity register 2 + byte_offset: 4072 + fieldset: PIDR2 + - name: PIDR3 + description: CoreSight peripheral identity register 3 + byte_offset: 4076 + fieldset: PIDR3 + - name: CIDR0 + description: CoreSight component identity register 0 + byte_offset: 4080 + fieldset: CIDR0 + - name: CIDR1 + description: CoreSight peripheral identity register 1 + byte_offset: 4084 + fieldset: CIDR1 + - name: CIDR2 + description: CoreSight component identity register 2 + byte_offset: 4088 + fieldset: CIDR2 + - name: CIDR3 + description: CoreSight component identity register 3 + byte_offset: 4092 + fieldset: CIDR3 +fieldset/AHB1FZR: + description: AHB1 peripheral freeze register + fields: + - name: DBG_GPDMA1_CH0_STOP + description: "GPDMA 1 channel 0 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC0." + bit_offset: 0 + bit_size: 1 + - name: DBG_GPDMA1_CH1_STOP + description: "GPDMA 1 channel 1 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC1." + bit_offset: 1 + bit_size: 1 + - name: DBG_GPDMA1_CH2_STOP + description: "GPDMA 1 channel 2 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC2." + bit_offset: 2 + bit_size: 1 + - name: DBG_GPDMA1_CH3_STOP + description: "GPDMA 1 channel 3 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC3." + bit_offset: 3 + bit_size: 1 + - name: DBG_GPDMA1_CH4_STOP + description: "GPDMA 1 channel 4 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC4." + bit_offset: 4 + bit_size: 1 + - name: DBG_GPDMA1_CH5_STOP + description: "GPDMA 1 channel 5 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC5." + bit_offset: 5 + bit_size: 1 + - name: DBG_GPDMA1_CH6_STOP + description: "GPDMA 1 channel 6 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC6." + bit_offset: 6 + bit_size: 1 + - name: DBG_GPDMA1_CH7_STOP + description: "GPDMA 1 channel 7 stop in CPU debug\r Write access can be protected by GPDMA_SECCFGR.SEC7." + bit_offset: 7 + bit_size: 1 +fieldset/APB1HFZR: + description: APB1H peripheral freeze register + fields: + - name: DBG_LPTIM2_STOP + description: "LPTIM2 stop in CPU debug\r Write access can be protected by GTZC_TZSC.LPTIM2SEC." + bit_offset: 5 + bit_size: 1 +fieldset/APB1LFZR: + description: APB1L peripheral freeze register + fields: + - name: DBG_TIM2_STOP + description: "TIM2 stop in CPU debug\r Write access can be protected by GTZC_TZSC.TIM2SEC." + bit_offset: 0 + bit_size: 1 + - name: DBG_TIM3_STOP + description: "TIM3 stop in CPU debug\r Write access can be protected by GTZC_TZSC.TIM3SEC." + bit_offset: 1 + bit_size: 1 + - name: DBG_WWDG_STOP + description: "WWDG stop in CPU debug\r Write access can be protected by GTZC_TZSC.WWDGSEC" + bit_offset: 11 + bit_size: 1 + - name: DBG_IWDG_STOP + description: "IWDG stop in CPU debug\r Write access can be protected by GTZC_TZSC.IWDGSEC." + bit_offset: 12 + bit_size: 1 + - name: DBG_I2C1_STOP + description: "I2C1 SMBUS timeout stop in CPU debug\r Write access can be protected by GTZC_TZSC.I2C1SEC." + bit_offset: 21 + bit_size: 1 +fieldset/APB2FZR: + description: APB2 peripheral freeze register + fields: + - name: DBG_TIM1_STOP + description: "TIM1 stop in CPU debug\r Write access can be protected by GTZC_TZSC.TIM1SEC." + bit_offset: 11 + bit_size: 1 + - name: DBG_TIM16_STOP + description: "TIM16 stop in CPU debug\r Write access can be protected by GTZC_TZSC.TIM16SEC." + bit_offset: 17 + bit_size: 1 + - name: DBG_TIM17_STOP + description: "TIM17 stop in CPU debug\r Write access can be protected by GTZC_TZSC.TIM17SEC." + bit_offset: 18 + bit_size: 1 +fieldset/APB7FZR: + description: APB7 peripheral freeze register + fields: + - name: DBG_I2C3_STOP + description: "I2C3 stop in CPU debug\r Access can be protected by GTZC_TZSC.I2C3SEC." + bit_offset: 10 + bit_size: 1 + - name: DBG_LPTIM1_STOP + description: "LPTIM1 stop in CPU debug\r Access can be protected by GTZC_TZSC.LPTIM1SEC." + bit_offset: 17 + bit_size: 1 + - name: DBG_RTC_STOP + description: "RTC stop in CPU debug\r Access can be protected by GTZC_TZSC.TIM17SEC.\r Can only be accessed secure when one or more features in the RTC or TAMP is/are secure." + bit_offset: 30 + bit_size: 1 +fieldset/CIDR0: + description: CoreSight component identity register 0 + fields: + - name: PREAMBLE + description: Component ID bits [7:0] + bit_offset: 0 + bit_size: 8 +fieldset/CIDR1: + description: CoreSight peripheral identity register 1 + fields: + - name: PREAMBLE + description: Component ID bits [11:8] + bit_offset: 0 + bit_size: 4 + - name: CLASS + description: Component ID bits [15:12] - component class + bit_offset: 4 + bit_size: 4 +fieldset/CIDR2: + description: CoreSight component identity register 2 + fields: + - name: PREAMBLE + description: Component ID bits [23:16] + bit_offset: 0 + bit_size: 8 +fieldset/CIDR3: + description: CoreSight component identity register 3 + fields: + - name: PREAMBLE + description: Component ID bits [31:24] + bit_offset: 0 + bit_size: 8 +fieldset/CR: + description: status and configuration register + fields: + - name: DBG_STOP + description: "Allows debug in Stop mode\r Write access can be protected by PWR_SECCFGR.LPMSEC.\r The CPU debug and clocks remain active and the HSI16 oscillators is used as system clock during Stop debug mode, allowing CPU debug capability. On exit from Stop mode, the clock settings are set to the Stop mode exit state." + bit_offset: 1 + bit_size: 1 + - name: DBG_STANDBY + description: "Allows debug in Standby mode\r Write access can be protected by PWR_SECCFGR.LPMSEC.\r The CPU debug and clocks remain active and the HSI16 oscillator is used as system clock, the supply and SRAM memory content is maintained during Standby debug mode, allowing CPU debug capability. On exit from Standby mode, a standby reset is performed." + bit_offset: 2 + bit_size: 1 + - name: LPMS + description: "Device low power mode selected\r 10x: Standby mode\r others reserved" + bit_offset: 16 + bit_size: 3 + - name: STOPF + description: Device Stop flag + bit_offset: 19 + bit_size: 1 + - name: SBF + description: Device Standby flag + bit_offset: 20 + bit_size: 1 + - name: CS + description: CPU Sleep + bit_offset: 24 + bit_size: 1 + - name: CDS + description: CPU DeepSleep + bit_offset: 25 + bit_size: 1 +fieldset/DBG_AUTH_DEVICE: + description: debug device authentication register + fields: + - name: AUTH_ID + description: "Device specific ID\r Device specific ID used for RDP regression." + bit_offset: 0 + bit_size: 32 +fieldset/DBG_AUTH_HOST: + description: debug host authentication register + fields: + - name: AUTH_KEY + description: "Device authentication key\r The device specific 64-bit authentication key (OEMn key) must be written to this register (in two successive 32-bit writes, least significant word first) to permit RDP regression. Writing a wrong key locks access to the device and prevent code execution from the Flash memory." + bit_offset: 0 + bit_size: 32 +fieldset/IDCODE: + description: identity code register + fields: + - name: DEV_ID + description: Device ID + bit_offset: 0 + bit_size: 12 + - name: REV_ID + description: Revision ID + bit_offset: 16 + bit_size: 16 +fieldset/PIDR0: + description: CoreSight peripheral identity register 0 + fields: + - name: PARTNUM + description: Part number bits [7:0] + bit_offset: 0 + bit_size: 8 +fieldset/PIDR1: + description: CoreSight peripheral identity register 1 + fields: + - name: PARTNUM + description: Part number bits [11:8] + bit_offset: 0 + bit_size: 4 + - name: JEP106ID + description: JEP106 identity code bits [3:0] + bit_offset: 4 + bit_size: 4 +fieldset/PIDR2: + description: CoreSight peripheral identity register 2 + fields: + - name: JEP106ID + description: JEP106 identity code bits [6:4] + bit_offset: 0 + bit_size: 3 + - name: JEDEC + description: JEDEC assigned value + bit_offset: 3 + bit_size: 1 + - name: REVISION + description: Component revision number + bit_offset: 4 + bit_size: 4 +fieldset/PIDR3: + description: CoreSight peripheral identity register 3 + fields: + - name: CMOD + description: Customer modified + bit_offset: 0 + bit_size: 4 + - name: REVAND + description: Metal fix version + bit_offset: 4 + bit_size: 4 +fieldset/PIDR4: + description: CoreSight peripheral identity register 4 + fields: + - name: JEP106CON + description: JEP106 continuation code + bit_offset: 0 + bit_size: 4 + - name: F4KCOUNT + description: Register file size + bit_offset: 4 + bit_size: 4 +fieldset/PNCR: + description: part number codification register + fields: + - name: CODIFICATION + description: Part number codification + bit_offset: 0 + bit_size: 32 +fieldset/SR: + description: status register + fields: + - name: AP_PRESENT + description: "Bit n identifies whether access port APn is present in device \r Bit n�=�0: APn absent \r Bit n�=�1: APn present" + bit_offset: 0 + bit_size: 16 + - name: AP_ENABLED + description: "Bit n identifies whether access port APn is open (can be accessed via the debug port) or locked (debug access to the APn is blocked, except for access) \r Bit n�=�0: APn locked (except for access to DBGMCU)\r Bit n�=�1: APn enabled" + bit_offset: 16 + bit_size: 16 diff --git a/data/registers/flash_wba.yaml b/data/registers/flash_wba.yaml new file mode 100644 index 0000000..21aa791 --- /dev/null +++ b/data/registers/flash_wba.yaml @@ -0,0 +1,643 @@ +block/FLASH: + description: Embedded memory + items: + - name: ACR + description: access control register + byte_offset: 0 + fieldset: ACR + - name: NSKEYR + description: key register + byte_offset: 8 + fieldset: NSKEYR + - name: SECKEYR + description: secure key register + byte_offset: 12 + fieldset: SECKEYR + - name: OPTKEYR + description: option key register + byte_offset: 16 + fieldset: OPTKEYR + - name: PDKEYR + description: power-down key register + byte_offset: 24 + fieldset: PDKEYR + - name: NSSR + description: status register + byte_offset: 32 + fieldset: NSSR + - name: SECSR + description: secure status register + byte_offset: 36 + fieldset: SECSR + - name: NSCR1 + description: control register + byte_offset: 40 + fieldset: NSCR1 + - name: SECCR1 + description: secure control register + byte_offset: 44 + fieldset: SECCR1 + - name: ECCR + description: ECC register + byte_offset: 48 + fieldset: ECCR + - name: OPSR + description: operation status register + byte_offset: 52 + fieldset: OPSR + - name: NSCR2 + description: control 2 register + byte_offset: 56 + fieldset: NSCR2 + - name: SECCR2 + description: secure control 2 register + byte_offset: 60 + fieldset: SECCR2 + - name: OPTR + description: option register + byte_offset: 64 + fieldset: OPTR + - name: NSBOOTADD0R + description: boot address 0 register + byte_offset: 68 + fieldset: NSBOOTADD0R + - name: NSBOOTADD1R + description: boot address 1 register + byte_offset: 72 + fieldset: NSBOOTADD1R + - name: SECBOOTADD0R + description: secure boot address 0 register + byte_offset: 76 + fieldset: SECBOOTADD0R + - name: SECWMR1 + description: secure watermark register 1 + byte_offset: 80 + fieldset: SECWMR1 + - name: SECWMR2 + description: secure watermark register 2 + byte_offset: 84 + fieldset: SECWMR2 + - name: WRPAR + description: WRP area A address register + byte_offset: 88 + fieldset: WRPAR + - name: WRPBR + description: WRP area B address register + byte_offset: 92 + fieldset: WRPBR + - name: OEM1KEYR1 + description: OEM1 key register 1 + byte_offset: 112 + - name: OEM1KEYR2 + description: OEM1 key register 2 + byte_offset: 116 + - name: OEM2KEYR1 + description: OEM2 key register 1 + byte_offset: 120 + - name: OEM2KEYR2 + description: OEM2 key register 2 + byte_offset: 124 + - name: SECBBR + description: secure block based register 1 + array: + len: 4 + stride: 4 + byte_offset: 128 + fieldset: BBR + - name: SECHDPCR + description: secure HDP control register + byte_offset: 192 + fieldset: SECHDPCR + - name: PRIFCFGR + description: privilege configuration register + byte_offset: 196 + fieldset: PRIFCFGR + - name: PRIVBBR + description: privilege block based register 1 + array: + len: 4 + stride: 4 + byte_offset: 208 + fieldset: BBR +fieldset/ACR: + description: access control register + fields: + - name: LATENCY + description: "Latency\r These bits represent the ratio between the AHB hclk1 clock period and the memory access time.\r Access to the bit can be secured by RCC SYSCLKSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.\r ...\r Note: Before entering Stop 1 mode software must set wait state latency to at least 1." + bit_offset: 0 + bit_size: 4 + - name: PRFTEN + description: "Prefetch enable\r This bit enables the prefetch buffer in the embedded memory.\r This bit can be protected against unprivileged access by NSPRIV." + bit_offset: 8 + bit_size: 1 + - name: LPM + description: "Low-power read mode\r This bit puts the memory in low-power read mode.\r Access to the bit can be secured by PWR LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.\r This bit can’t be written when a program or erase operation is busy (BSY = 1) or when the write buffer is not empty (WDW = 1). Changing this bit while a program or erase operation is busy (BSY = 1) is rejected." + bit_offset: 11 + bit_size: 1 + - name: PDREQ + description: "power-down mode request\r This bit requests to enter power-down mode. When enters power-down mode, this bit is cleared by hardware and the PDKEYR is locked.\r This bit is write-protected with PDKEYR. \r Access to the bit can be secured by PWR LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: SLEEP_PD + description: "memory power-down mode during Sleep mode\r This bit determines whether the memory is in power-down mode or Idle mode when the device is in Sleep mode.\r Access to the bit can be secured by PWR LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.\r The must not be put in power-down while a program or an erase operation is ongoing." + bit_offset: 14 + bit_size: 1 +fieldset/BBR: + description: block based register + fields: + - name: BLOCK + bit_offset: 0 + bit_size: 1 + array: + len: 32 + stride: 1 +fieldset/ECCR: + description: ECC register + fields: + - name: ADDR_ECC + description: "ECC fail address\r This field indicates which address is concerned by the ECC error correction or by the double ECC error detection. The address is given relative to base address, from offset 0x0�0000 to 0xF�FFF0.\r Note that bit 19 is reserved on STM32WBAxEx devices." + bit_offset: 0 + bit_size: 20 + - name: SYSF_ECC + description: "System memory ECC fail\r This bit indicates that the ECC error correction or double ECC error detection is located in the system memory." + bit_offset: 22 + bit_size: 1 + - name: ECCIE + description: "ECC correction interrupt enable\r This bit enables the interrupt generation when the ECCC bit in the ECCR register is set." + bit_offset: 24 + bit_size: 1 + - name: ECCC + description: "ECC correction\r This bit is set by hardware when one ECC error has been detected and corrected (only if ECCC and ECCD were previously cleared). An interrupt is generated if ECCIE is set. This bit is cleared by writing 1." + bit_offset: 30 + bit_size: 1 + - name: ECCD + description: "ECC detection\r This bit is set by hardware when two ECC errors have been detected (only if ECCC and ECCD were previously cleared). When this bit is set, a NMI is generated. This bit is cleared by writing 1." + bit_offset: 31 + bit_size: 1 +fieldset/NSBOOTADD0R: + description: boot address 0 register + fields: + - name: NSBOOTADD0 + description: "Non-secure boot base address 0\r This address is only used when TZEN = 0.\r The non-secure boot memory address can be programmed to any address in the valid address range (see Table 28: Boot space versus RDP protection) with a granularity of 128 bytes. These bits correspond to address [31:7]. The NSBOOTADD0 option bytes are selected following the BOOT0 pin or NSWBOOT0 state.\r Examples:\r NSBOOTADD0[24:0] = 0x0100000: Boot from memory (0x0800 0000)\r NSBOOTADD0[24:0] = 0x017F100: Boot from system memory bootloader (0x0BF8 8000)\r NSBOOTADD0[24:0] = 0x0400200: Boot from SRAM2 on S-Bus (0x2001 0000)" + bit_offset: 7 + bit_size: 25 +fieldset/NSBOOTADD1R: + description: boot address 1 register + fields: + - name: NSBOOTADD1 + description: "Non-secure boot address 1\r This address is only used when TZEN = 0.\r The non-secure boot memory address can be programmed to any address in the valid address range (see Table 28: Boot space versus RDP protection) with a granularity of 128 bytes. These bits correspond to address [31:7]. The NSBOOTADD0 option bytes are selected following the BOOT0 pin or NSWBOOT0 state. \r Examples:\r NSBOOTADD1[24:0] = 0x0100000: Boot from memory (0x0800 0000)\r NSBOOTADD1[24:0] = 0x017F100: Boot from system memory bootloader (0x0BF8 8000)\r NSBOOTADD1[24:0] = 0x0400200: Boot from SRAM2 (0x2001 0000)" + bit_offset: 7 + bit_size: 25 +fieldset/NSCR1: + description: control register + fields: + - name: PG + description: Non-secure programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Non-secure page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: "Non-secure mass erase\r This bit triggers the non-secure mass erase (all user pages) when set." + bit_offset: 2 + bit_size: 1 + - name: PNB + description: "Non-secure page number selection\r These bits select the page to erase.\r ...\r Note that bit 9 is reserved on STM32WBA5xEx devices." + bit_offset: 3 + bit_size: 7 + - name: BWR + description: "Non-secure burst write programming mode\r When set, this bit selects the burst write programming mode." + bit_offset: 14 + bit_size: 1 + - name: STRT + description: "Non-secure operation start \r This bit triggers a non-secure erase operation when set. If MER and PER bits are reset and the STRT bit is set, the PGSERR bit in NSSR is set (this condition is forbidden).\r This bit is set only by software and is cleared when the BSY bit is cleared in NSSR." + bit_offset: 16 + bit_size: 1 + - name: OPTSTRT + description: "Options modification start\r This bit triggers an option bytes erase and program operation when set. This bit is write-protected with OPTLOCK.. This bit is set only by software, and is cleared when the BSY bit is cleared in NSSR." + bit_offset: 17 + bit_size: 1 + - name: EOPIE + description: "Non-secure end of operation interrupt enable\r This bit enables the interrupt generation when the EOP bit in the NSSR is set to 1." + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: "Non-secure error interrupt enable\r This bit enables the interrupt generation when the OPERR bit in the NSSR is set to 1." + bit_offset: 25 + bit_size: 1 + - name: OBL_LAUNCH + description: "Force the option byte loading\r When set to 1, this bit forces the option byte reloading. This bit is cleared only when the option byte loading is complete. This bit is write-protected with OPTLOCK.\r Note: The LSE oscillator must be disabled, LSEON = 0 and LSERDY = 0, before starting OBL_LAUNCH." + bit_offset: 27 + bit_size: 1 + - name: OPTLOCK + description: "Option lock\r This bit is set only. When set, the NSCR1.OPTSRT and OBL_LAUNCH bits concerning user options write access is locked. This bit is cleared by hardware after detecting the unlock sequence in OPTKEYR. The NSCR1.LOCK bit must be cleared before doing the OPTKEYR unlock sequence.\r In case of an unsuccessful unlock operation, this bit remains set until the next reset." + bit_offset: 30 + bit_size: 1 + - name: LOCK + description: "Non-secure lock\r This bit is set only.\r When set, the NSCR1 register write access is locked. This bit is cleared by hardware after detecting the unlock sequence in NSKEYR.\r In case of an unsuccessful unlock operation, this bit remains set until the next system reset." + bit_offset: 31 + bit_size: 1 +fieldset/NSCR2: + description: control 2 register + fields: + - name: PS + description: Program suspend request + bit_offset: 0 + bit_size: 1 + - name: ES + description: Erase suspend request + bit_offset: 1 + bit_size: 1 +fieldset/NSKEYR: + description: key register + fields: + - name: NSKEY + description: "memory non-secure key\r The following values must be written consecutively to unlock the NSCR1 register, allowing the memory non-secure programming/erasing operations:\r KEY1: 0x4567�0123\r KEY2: 0xCDEF�89AB" + bit_offset: 0 + bit_size: 32 +fieldset/NSSR: + description: status register + fields: + - name: EOP + description: "Non-secure end of operation\r This bit is set by hardware when one or more memory non-secure operation (program/erase) has been completed successfully. This bit is set only if the non-secure end of operation interrupts are enabled (EOPIE = 1 in NSCR1). This bit is cleared by writing�1." + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: "Non-secure operation error\r This bit is set by hardware when a memory non-secure operation (program/erase) completes unsuccessfully. This bit is set only if non-secure error interrupts are enabled (NSERRIE = 1). This bit is cleared by writing 1." + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: "Non-secure programming error\r This bit is set by hardware when a non-secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1." + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: "Non-secure write protection error\r This bit is set by hardware when a non-secure address to be erased/programmed belongs to a write-protected part (by WRP or HDP) of the memory. This bit is cleared by writing 1.\r Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting." + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: "Non-secure programming alignment error\r This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address. This bit is cleared by writing 1." + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: "Non-secure size error\r This bit is set by hardware when the size of the access is a byte or half-word during a non-secure program sequence. Only quad-word programming is allowed by means of successive word accesses. This bit is cleared by writing 1." + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: "Non-secure programming sequence error\r This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1.\r Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting." + bit_offset: 7 + bit_size: 1 + - name: OPTWERR + description: "Option write error \r This bit is set by hardware when the options bytes are written with an invalid configuration or when modifying options in RDP level 2.. It is cleared by writing 1.\r Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting." + bit_offset: 13 + bit_size: 1 + - name: BSY + description: "Non-secure busy\r This indicates that a memory secure or non-secure operation is in progress. This bit is set at the beginning of a operation and reset when the operation finishes or when an error occurs." + bit_offset: 16 + bit_size: 1 + - name: WDW + description: "Non-secure wait data to write\r This bit indicates that the memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the memory." + bit_offset: 17 + bit_size: 1 + - name: OEM1LOCK + description: "OEM1 key RDP lock\r This bit indicates that the OEM1 key read during the OBL is not virgin. When set, the OEM1 key RDP lock mechanism is active." + bit_offset: 18 + bit_size: 1 + - name: OEM2LOCK + description: "OEM2 key RDP lock\r This bit indicates that the OEM2 key read during the OBL is not virgin. When set, the OEM2 key RDP lock mechanism is active." + bit_offset: 19 + bit_size: 1 + - name: PD + description: "in power-down mode\r This bit indicates that the memory is in power-down state. It is reset when is in normal mode or being awaken." + bit_offset: 20 + bit_size: 1 +fieldset/OPSR: + description: operation status register + fields: + - name: ADDR_OP + description: "Interrupted operation address\r This field indicates which address in the memory was accessed when reset occurred. The address is given relative to the base address, from offset 0x0�0000 to 0xF�FFF0.\r Note that bit 19 is reserved on STM32WBAxEx devices." + bit_offset: 0 + bit_size: 20 + - name: SYSF_OP + description: "Operation in system memory interrupted\r This bit indicates that the reset occurred during an operation in the system memory." + bit_offset: 22 + bit_size: 1 + - name: CODE_OP + description: "memory operation code\r This field indicates which memory operation has been interrupted by a system reset:" + bit_offset: 29 + bit_size: 3 + enum: CODE_OP +fieldset/OPTKEYR: + description: option key register + fields: + - name: OPTKEY + description: "Option byte key\r The LOCK bit in the NSCR1 must be cleared before doing the unlock sequence for OPTLOCK bit. The following values must be written consecutively to unlock the NSCR1.OPTSTRT and OBL_LAUNCH register bits concerning user option operations:\r KEY1: 0x0819�2A3B\r KEY2: 0x4C5D�6E7F" + bit_offset: 0 + bit_size: 32 +fieldset/OPTR: + description: option register + fields: + - name: RDP + description: "Readout protection level\r Others: Level 1 (memories readout protection active)\r Note: Refer to Section�7.6.2: Readout protection (RDP) for more details." + bit_offset: 0 + bit_size: 8 + enum: RDP + - name: BOR_LEV + description: "BOR reset level\r These bits contain the VDD supply level threshold that activates/releases the reset." + bit_offset: 8 + bit_size: 3 + enum: BOR_LEV + - name: NRST_STOP + description: Reset generation in Stop mode + bit_offset: 12 + bit_size: 1 + - name: NRST_STDBY + description: Reset generation in Standby mode + bit_offset: 13 + bit_size: 1 + - name: SRAM1_RST + description: SRAM1 erase upon system reset + bit_offset: 15 + bit_size: 1 + - name: IWDG_SW + description: Independent watchdog enable selection + bit_offset: 16 + bit_size: 1 + - name: IWDG_STOP + description: Independent watchdog counter freeze in Stop mode + bit_offset: 17 + bit_size: 1 + - name: IWDG_STDBY + description: Independent watchdog counter freeze in Standby mode + bit_offset: 18 + bit_size: 1 + - name: WWDG_SW + description: Window watchdog selection + bit_offset: 19 + bit_size: 1 + - name: SRAM2_PE + description: SRAM2 parity check enable + bit_offset: 24 + bit_size: 1 + - name: SRAM2_RST + description: SRAM2 erase when system reset + bit_offset: 25 + bit_size: 1 + - name: NSWBOOT0 + description: Software BOOT0 + bit_offset: 26 + bit_size: 1 + - name: NBOOT0 + description: NBOOT0 option bit + bit_offset: 27 + bit_size: 1 + - name: TZEN + description: Global TrustZone security enable + bit_offset: 31 + bit_size: 1 +fieldset/PDKEYR: + description: power-down key register + fields: + - name: PDKEY1 + description: "power-down key\r The following values must be written consecutively to unlock the PDREQ bit in ACR:\r PDKEY_1: 0x0415�2637\r PDKEY_2: 0xFAFB�FCFD" + bit_offset: 0 + bit_size: 32 +fieldset/PRIFCFGR: + description: privilege configuration register + fields: + - name: SPRIV + description: "Privileged protection for secure registers\r This bit is secure write protected. It can only be written by a secure privileged access when TrustZone is enabled (TZEN�=�1)." + bit_offset: 0 + bit_size: 1 + - name: NSPRIV + description: Privileged protection for non-secure registers + bit_offset: 1 + bit_size: 1 +fieldset/SECBOOTADD0R: + description: secure boot address 0 register + fields: + - name: BOOT_LOCK + description: "Boot lock\r This lock is only used when TZEN = 0.\r When set, the boot is always forced to base address value programmed in SECBOOTADD0[24:0] option bytes whatever the boot selection option. When set, this bit can only be cleared by an RDP regression level 1 to level 0." + bit_offset: 0 + bit_size: 1 + - name: SECBOOTADD0 + description: "Secure boot base address 0\r This address is only used when TZEN = 1.\r The secure boot memory address can be programmed to any address in the valid address range (see Table�28: Boot space versus RDP protection) with a granularity of 128 bytes. This bits correspond to address [31:7] The SECBOOTADD0 option bytes are selected following the BOOT0 pin or NSWBOOT0 state. \r Examples:\r SECBOOTADD0[24:0] = 0x018 0000: Boot from secure user memory (0x0C00 0000)\r SECBOOTADD0[24:0] = 0x01F F000: Boot from RSS system memory (0x0FF8 0000)\r SECBOOTADD0[24:0] = 0x060 0000: Boot from secure SRAM1 on S-Bus (0x3000 0000)" + bit_offset: 7 + bit_size: 25 +fieldset/SECCR1: + description: secure control register + fields: + - name: PG + description: Secure programming + bit_offset: 0 + bit_size: 1 + - name: PER + description: Secure page erase + bit_offset: 1 + bit_size: 1 + - name: MER + description: "Secure mass erase\r This bit triggers the secure mass erase (all user pages) when set." + bit_offset: 2 + bit_size: 1 + - name: PNB + description: "Secure page number selection\r These bits select the page to erase:\r ...\r Note that bit 9 is reserved on STM32WBA5xEx devices." + bit_offset: 3 + bit_size: 7 + - name: BWR + description: "Secure burst write programming mode\r When set, this bit selects the burst write programming mode." + bit_offset: 14 + bit_size: 1 + - name: STRT + description: "Secure start \r This bit triggers a secure erase operation when set. If MER and PER bits are reset and the STRT bit is set, the PGSERR in the SECSR is set (this condition is forbidden).\r This bit is set only by software and is cleared when the BSY bit is cleared in SECSR." + bit_offset: 16 + bit_size: 1 + - name: EOPIE + description: "Secure End of operation interrupt enable\r This bit enables the interrupt generation when the EOP bit in SECSR is set to 1." + bit_offset: 24 + bit_size: 1 + - name: ERRIE + description: "Secure error interrupt enable\r This bit enables the interrupt generation when the OPERR bit in SECSR is set to 1." + bit_offset: 25 + bit_size: 1 + - name: INV + description: "memory security state invert\r This bit inverts the memory security state." + bit_offset: 29 + bit_size: 1 + - name: LOCK + description: "Secure lock\r This bit is set only. When set, the SECCR1 register is locked. It is cleared by hardware after detecting the unlock sequence in SECKEYR register.\r In case of an unsuccessful unlock operation, this bit remains set until the next system reset." + bit_offset: 31 + bit_size: 1 +fieldset/SECCR2: + description: secure control 2 register + fields: + - name: PS + description: Program suspend request + bit_offset: 0 + bit_size: 1 + - name: ES + description: Erase suspend request + bit_offset: 1 + bit_size: 1 +fieldset/SECHDPCR: + description: secure HDP control register + fields: + - name: HDP_ACCDIS + description: "Secure HDP area access disable \r When set, this bit is only cleared by a system reset." + bit_offset: 0 + bit_size: 1 +fieldset/SECKEYR: + description: secure key register + fields: + - name: SECKEY + description: "memory secure key\r The following values must be written consecutively to unlock the SECCR1 register, allowing the memory secure programming/erasing operations:\r KEY1: 0x4567�0123\r KEY2: 0xCDEF�89AB" + bit_offset: 0 + bit_size: 32 +fieldset/SECSR: + description: secure status register + fields: + - name: EOP + description: "Secure end of operation\r This bit is set by hardware when one or more memory secure operation (program/erase) has been completed successfully. This bit is set only if the secure end of operation interrupts are enabled (EOPIE = 1 in SECCR1). This bit is cleared by writing�1." + bit_offset: 0 + bit_size: 1 + - name: OPERR + description: "Secure operation error\r This bit is set by hardware when a memory secure operation (program/erase) completes unsuccessfully. This bit is set only if secure error interrupts are enabled (SECERRIE = 1). This bit is cleared by writing 1." + bit_offset: 1 + bit_size: 1 + - name: PROGERR + description: "Secure programming error\r This bit is set by hardware when a secure quad-word address to be programmed contains a value different from all 1 before programming, except if the data to write is all 0. This bit is cleared by writing 1." + bit_offset: 3 + bit_size: 1 + - name: WRPERR + description: "Secure write protection error\r This bit is set by hardware when an secure address to be erased/programmed belongs to a write-protected part (by WRP or HDP) of the memory. This bit is cleared by writing 1.\r Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting." + bit_offset: 4 + bit_size: 1 + - name: PGAERR + description: "Secure programming alignment error\r This bit is set by hardware when the first word to be programmed is not aligned with a quad-word address, or the second, third or forth word does not belong to the same quad-word address.This bit is cleared by writing 1." + bit_offset: 5 + bit_size: 1 + - name: SIZERR + description: "Secure size error\r This bit is set by hardware when the size of the access is a byte or half-word during a secure program sequence. Only quad-word programming is allowed by means of successive word accesses.This bit is cleared by writing 1." + bit_offset: 6 + bit_size: 1 + - name: PGSERR + description: "Secure programming sequence error\r This bit is set by hardware when programming sequence is not correct. It is cleared by writing 1.\r Refer to Section�7.3.10: memory errors flags for full conditions of error flag setting." + bit_offset: 7 + bit_size: 1 + - name: BSY + description: "Secure busy\r This bit indicates that a memory secure or non-secure operation is in progress. This is set on the beginning of a operation and reset when the operation finishes or when an error occurs." + bit_offset: 16 + bit_size: 1 + - name: WDW + description: "Secure wait data to write\r This bit indicates that the memory write buffer has been written by a secure or non-secure operation. It is set when the first data is stored in the buffer and cleared when the write is performed in the memory." + bit_offset: 17 + bit_size: 1 +fieldset/SECWMR1: + description: secure watermark register 1 + fields: + - name: SECWM_PSTRT + description: "Start page of secure area\r This field contains the first page of the secure area." + bit_offset: 0 + bit_size: 7 + - name: SECWM_PEND + description: "End page of secure area\r This field contains the last page of the secure area." + bit_offset: 16 + bit_size: 7 +fieldset/SECWMR2: + description: secure watermark register 2 + fields: + - name: HDP_PEND + description: "End page of secure hide protection area\r This field contains the last page of the secure HDP area." + bit_offset: 16 + bit_size: 7 + - name: HDPEN + description: Secure Hide protection area enable + bit_offset: 31 + bit_size: 1 +fieldset/WRPAR: + description: WRP area A address register + fields: + - name: WRPA_PSTRT + description: "WPR area A start page\r This field contains the first page of the WPR area A.\r Note that bit 6 is reserved on STM32WBAxEx devices." + bit_offset: 0 + bit_size: 7 + - name: WRPA_PEND + description: "WPR area A end page\r This field contains the last page of the WPR area A.\r Note that bit 22 is reserved on STM32WBAxEx devices." + bit_offset: 16 + bit_size: 7 + - name: UNLOCK + description: WPR area A unlock + bit_offset: 31 + bit_size: 1 +fieldset/WRPBR: + description: WRP area B address register + fields: + - name: WRPB_PSTRT + description: "WRP area B start page\r This field contains the first page of the WRP area B.\r Note that bit 6 is reserved on STM32WBAxEx devices." + bit_offset: 0 + bit_size: 7 + - name: WRPB_PEND + description: "WRP area B end page\r This field contains the last page of the WRP area B.\r Note that bit 22 is reserved on STM32WBAxEx devices." + bit_offset: 16 + bit_size: 7 + - name: UNLOCK + description: WPR area B unlock + bit_offset: 31 + bit_size: 1 +enum/BOR_LEV: + bit_size: 3 + variants: + - name: Level0 + description: BOR level 0 (reset level threshold around 1.7�V) + value: 0 + - name: Level1 + description: BOR level 1 (reset level threshold around 2.0�V) + value: 1 + - name: Level2 + description: BOR level 2 (reset level threshold around 2.2�V) + value: 2 + - name: Level3 + description: BOR level 3 (reset level threshold around 2.5�V) + value: 3 + - name: Level4 + description: BOR level 4 (reset level threshold around 2.8�V) + value: 4 +enum/CODE_OP: + bit_size: 3 + variants: + - name: B_0x0 + description: No operation interrupted by previous reset + value: 0 + - name: B_0x1 + description: Single write operation interrupted + value: 1 + - name: B_0x2 + description: Burst write operation interrupted + value: 2 + - name: B_0x3 + description: Page erase operation interrupted + value: 3 + - name: B_0x4 + description: Reserved + value: 4 + - name: B_0x5 + description: Mass erase operation interrupted + value: 5 + - name: B_0x6 + description: Option change operation interrupted + value: 6 + - name: B_0x7 + description: Reserved + value: 7 +enum/RDP: + bit_size: 8 + variants: + - name: B_0x55 + description: Level 0.5 (readout protection not active, only non-secure debug access is possible). Only available when TrustZone is active (TZEN=1) + value: 85 + - name: B_0xAA + description: Level 0 (readout protection not active) + value: 170 + - name: B_0xCC + description: Level 2 (chip readout protection active) + value: 204 diff --git a/data/registers/pwr_wba.yaml b/data/registers/pwr_wba.yaml new file mode 100644 index 0000000..b1d12af --- /dev/null +++ b/data/registers/pwr_wba.yaml @@ -0,0 +1,537 @@ +block/PWR: + description: Power control + items: + - name: CR1 + description: control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: control register 3 + byte_offset: 8 + fieldset: CR3 + - name: VOSR + description: voltage scaling register + byte_offset: 12 + fieldset: VOSR + - name: SVMCR + description: supply voltage monitoring control register + byte_offset: 16 + fieldset: SVMCR + - name: WUCR1 + description: wakeup control register 1 + byte_offset: 20 + fieldset: WUCR1 + - name: WUCR2 + description: wakeup control register 2 + byte_offset: 24 + fieldset: WUCR2 + - name: WUCR3 + description: wakeup control register 3 + byte_offset: 28 + fieldset: WUCR3 + - name: DBPR + description: disable Backup domain register + byte_offset: 40 + fieldset: DBPR + - name: SECCFGR + description: security configuration register + byte_offset: 48 + fieldset: SECCFGR + - name: PRIVCFGR + description: privilege control register + byte_offset: 52 + fieldset: PRIVCFGR + - name: SR + description: status register + byte_offset: 56 + fieldset: SR + - name: SVMSR + description: supply voltage monitoring status register + byte_offset: 60 + fieldset: SVMSR + - name: WUSR + description: wakeup status register + byte_offset: 68 + fieldset: WUSR + - name: WUSCR + description: wakeup status clear register + byte_offset: 72 + fieldset: WUSCR + - name: IORETENR + description: port Standby IO retention enable register + array: + len: 8 + stride: 8 + byte_offset: 80 + fieldset: IORETENR + - name: IORETRA + description: port Standby IO retention status register + array: + len: 8 + stride: 8 + byte_offset: 84 + fieldset: IORETR + - name: RADIOSCR + description: 2.4 GHz RADIO status and control register + byte_offset: 256 + fieldset: RADIOSCR +fieldset/CR1: + description: control register 1 + fields: + - name: LPMS + description: "Low-power mode selection\r These bits select the low-power mode entered when the CPU enters the SleepDeep mode.\r 10x: Standby mode\r others reserved" + bit_offset: 0 + bit_size: 3 + enum: LPMS + - name: R2RSB1 + description: "SRAM2 retention in Standby mode\r This bit is used to keep the SRAM2 content in Standby retention mode." + bit_offset: 5 + bit_size: 1 + enum: RRSB + - name: ULPMEN + description: "BOR0 ultra-low-power mode. \r This bit is used to reduce the consumption by configuring the BOR0 in discontinuous mode for Stop 1 and Standby modes. Discontinuous mode is only available when BOR levels 1 to 4 and PVD are disabled.\r Note: This bit must be set to reach the lowest power consumption in the low-power modes.\r Note: This bit must not be set together with autonomous peripherals using HSI16 as kernel clock.\r Note: When BOR level 1 to 4 or PVD is enabled continuous mode applies independent from ULPMEN." + bit_offset: 7 + bit_size: 1 + - name: RADIORSB + description: "2.4 GHz RADIO SRAMs (RXTXRAM and Sequence RAM) and Sleep clock retention in Standby mode.\r This bit is used to keep the 2.4 GHz RADIO SRAMs content in Standby retention mode and the 2.4 GHz RADIO sleep timer counter operational." + bit_offset: 9 + bit_size: 1 + enum: RADIORSB + - name: R1RSB1 + description: "SRAM1 retention in Standby mode\r This bit is used to keep the SRAM1 content in Standby retention mode." + bit_offset: 12 + bit_size: 1 + enum: RRSB +fieldset/CR2: + description: control register 2 + fields: + - name: SRAM1PDS1 + description: "SRAM1 power-down in Stop modes (Stop 0, 1)\r Note: The SRAM1 retention in Standby mode is controlled by R1RSB1 bit in CR1." + bit_offset: 0 + bit_size: 1 + enum: SRAMPDS + - name: SRAM2PDS1 + description: "SRAM2 power-down in Stop modes (Stop 0, 1)\r Note: The SRAM2 retention in Standby mode is controlled by R2RSB1 bit in CR1." + bit_offset: 4 + bit_size: 1 + enum: SRAMPDS + - name: ICRAMPDS + description: ICACHE SRAM power-down in Stop modes (Stop 0, 1) + bit_offset: 8 + bit_size: 1 + enum: ICRAMPDS + - name: FLASHFWU + description: "Flash memory fast wakeup from Stop modes (Stop 0, 1)\r This bit is used to obtain the best trade-off between low-power consumption and wakeup time when exiting the Stop 0 or Stop 1 modes.\r When this bit is set, the Flash memory remains in normal mode in Stop 0 and Stop 1 modes, which offers a faster startup time with higher consumption." + bit_offset: 14 + bit_size: 1 + enum: FLASHFWU +fieldset/CR3: + description: control register 3 + fields: + - name: FSTEN + description: Fast soft start + bit_offset: 2 + bit_size: 1 +fieldset/DBPR: + description: disable Backup domain register + fields: + - name: DBP + description: "Disable Backup domain write protection\r In reset state, all registers and SRAM in Backup domain are protected against parasitic write access. This bit must be set to enable the write access to these registers." + bit_offset: 0 + bit_size: 1 +fieldset/IORETENR: + description: port A Standby IO retention enable register + fields: + - name: EN + description: "Port A Standby GPIO retention enable\r Access can be protected by GPIOA SECy, privilege protection is controlled by SPRIV or NSPRIV.\r When set, each bit enables the Standby GPIO retention feature for PAy" + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 +fieldset/IORETR: + description: port A Standby IO retention status register + fields: + - name: RET + description: "Port A Standby GPIO retention active\r Access can be protected by GPIOA SECy, privilege protection is controlled by SPRIV or NSPRIV." + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 +fieldset/PRIVCFGR: + description: privilege control register + fields: + - name: SPRIV + description: "secure functions privilege configuration\r This bit is set and reset by software.\r It can be written only by a secure privileged access." + bit_offset: 0 + bit_size: 1 + enum: PRIV + - name: NSPRIV + description: "non-secure functions privilege configuration\r This bit is set and reset by software.\r It can be written only by privileged access, secure or non-secure." + bit_offset: 1 + bit_size: 1 + enum: PRIV +fieldset/RADIOSCR: + description: 2.4 GHz RADIO status and control register + fields: + - name: MODE + description: "2.4 GHz RADIO operating mode.\r 1x: 2.4 GHz RADIO active mode" + bit_offset: 0 + bit_size: 2 + enum: MODE + - name: PHYMODE + description: 2.4 GHz RADIO PHY operating mode + bit_offset: 2 + bit_size: 1 + - name: ENCMODE + description: 2.4 GHz RADIO encryption function operating mode + bit_offset: 3 + bit_size: 1 + - name: RFVDDHPA + description: "2.4 GHz RADIO VDDHPA control word.\r Bits [3:0] see Table 81: PA output power table format for definition.\r Bit [4] rf_event." + bit_offset: 8 + bit_size: 5 + - name: REGPARDYVDDRFPA + description: "Ready bit for VDDHPA voltage level when selecting VDDRFPA input.\r Note: REGPARDYVDDRFPA does not allow to detect correct VDDHPA voltage level when request to lower the level." + bit_offset: 15 + bit_size: 1 + enum: REGPARDYVDDRFPA +fieldset/SECCFGR: + description: security configuration register + fields: + - name: WUP1SEC + description: WUP1 secure protection + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 + enum: SEC + - name: LPMSEC + description: Low-power modes secure protection + bit_offset: 12 + bit_size: 1 + enum: SEC + - name: VDMSEC + description: Voltage detection secure protection + bit_offset: 13 + bit_size: 1 + enum: SEC + - name: VBSEC + description: Backup domain secure protection + bit_offset: 14 + bit_size: 1 + enum: SEC +fieldset/SR: + description: status register + fields: + - name: CSSF + description: "Clear Stop and Standby flags\r Access can be secured by LPMSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.\r Writing 1 to this bit clears the STOPF and SBF flags." + bit_offset: 0 + bit_size: 1 + - name: STOPF + description: "Stop flag\r This bit is set by hardware when the device enters a Stop or Standby mode at the same time as the sysclk has been set by hardware to select HSI16. It’s cleared by software by writing 1 to the CSSF bit and by hardware when SBF is set." + bit_offset: 1 + bit_size: 1 + - name: SBF + description: "Standby flag\r This bit is set by hardware when the device enters the Standby mode and the CPU restart from its reset vector. It’s cleared by writing 1 to the CSSF bit, or by a power-on reset. It is not cleared by the system reset." + bit_offset: 2 + bit_size: 1 +fieldset/SVMCR: + description: supply voltage monitoring control register + fields: + - name: PVDE + description: Programmable voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PVDLS + description: "Programmable voltage detector level selection\r These bits select the voltage threshold detected by the programmable voltage detector:" + bit_offset: 5 + bit_size: 3 + enum: PVDLS +fieldset/SVMSR: + description: supply voltage monitoring status register + fields: + - name: PVDO + description: Programmable voltage detector output + bit_offset: 4 + bit_size: 1 + enum: PVDO + - name: ACTVOSRDY + description: Voltage level ready for currently used VOS + bit_offset: 15 + bit_size: 1 + - name: ACTVOS + description: "VOS currently applied to VCORE\r This field provides the last VOS value." + bit_offset: 16 + bit_size: 1 + enum: ACTVOS +fieldset/VOSR: + description: voltage scaling register + fields: + - name: VOSRDY + description: "Ready bit for VCORE voltage scaling output selection\r Set and cleared by hardware. When decreasing the voltage scaling range, VOSRDY must be one before increasing the SYSCLK frequency." + bit_offset: 15 + bit_size: 1 + - name: VOS + description: "Voltage scaling range selection\r Set a and cleared by software.\r Cleared by hardware when entering Stop 1 mode.\r Access can be secured by RCC SYSCLKSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 16 + bit_size: 1 + enum: VOS +fieldset/WUCR1: + description: wakeup control register 1 + fields: + - name: WUPEN + description: "Wakeup and interrupt pin WKUP1 enable\r Access can be secured by WUP1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 +fieldset/WUCR2: + description: wakeup control register 2 + fields: + - name: WUPP + description: "Wakeup pin WKUP1 polarity.\r This bit must be configured when WUPEN1 = 0.\r Access can be secured by WUP1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 + enum: WUPP +fieldset/WUCR3: + description: wakeup control register 3 + fields: + - name: WUSEL1 + description: "Wakeup and interrupt pin WKUP1 selection\r This field must be configured when WUPEN1 = 0.\r Access can be secured by WUP1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 0 + bit_size: 2 + enum: WUSEL + - name: WUSEL2 + description: "Wakeup and interrupt pin WKUP2 selection\r This field must be configured when WUPEN2 = 0.\r Access can be secured by WUP2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 2 + bit_size: 2 + enum: WUSEL + - name: WUSEL3 + description: "Wakeup and interrupt pin WKUP3 selection\r This field must be configured when WUPEN3 = 0.\r Access can be secured by WUP3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 4 + bit_size: 2 + enum: WUSEL + - name: WUSEL4 + description: "Wakeup and interrupt pin WKUP4 selection\r This field must be configured when WUPEN4 = 0.\r Access can be secured by WUP4SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 6 + bit_size: 2 + enum: WUSEL + - name: WUSEL5 + description: "Wakeup and interrupt pin WKUP5 selection\r This field must be configured when WUPEN5 = 0.\r Access can be secured by WUP5SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 8 + bit_size: 2 + enum: WUSEL + - name: WUSEL6 + description: "Wakeup and interrupt pin WKUP6 selection\r This field must be configured when WUPEN6 = 0.\r Access can be secured by WUP6SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 10 + bit_size: 2 + enum: WUSEL + - name: WUSEL7 + description: "Wakeup and interrupt pin WKUP7 selection\r This field must be configured when WUPEN7 = 0.\r Access can be secured by WUP7SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 12 + bit_size: 2 + enum: WUSEL + - name: WUSEL8 + description: "Wakeup and interrupt pin WKUP8 selection\r This field must be configured when WUPEN8 = 0.\r Access can be secured by WUP8SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV." + bit_offset: 14 + bit_size: 2 + enum: WUSEL +fieldset/WUSCR: + description: wakeup status clear register + fields: + - name: CWUF + description: "Clear wakeup flag 1\r Access can be secured by WUP1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with SPRIV or when non-secure with NSPRIV.\r Writing 1 to this bit clears the WUF1 flag in WUSR." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 +fieldset/WUSR: + description: wakeup status register + fields: + - name: WUF + description: "Wakeup and interrupt pending flag 1\r This bit is set when a wakeup event is detected on WKUP1 pin. This bit is cleared by writing 1 in the CWUF1 bit of WUSCR or by hardware when WUPEN1 = 0." + bit_offset: 0 + bit_size: 1 + array: + len: 8 + stride: 1 +enum/ACTVOS: + bit_size: 1 + variants: + - name: Range2 + description: Range 2 (lowest power) + value: 0 + - name: Range1 + description: Range 1 (highest frequency) + value: 1 +enum/FLASHFWU: + bit_size: 1 + variants: + - name: LowPower + description: Flash memory enters low-power mode in Stop 0 and Stop 1 modes (lower-power consumption). + value: 0 + - name: Normal + description: Flash memory remains in normal mode in Stop 0 and Stop 1 modes (faster wakeup time). + value: 1 +enum/ICRAMPDS: + bit_size: 1 + variants: + - name: Retained + description: ICACHE SRAM content retained in Stop modes + value: 0 + - name: NotRetained + description: ICACHE SRAM content lost in Stop modes + value: 1 +enum/LPMS: + bit_size: 3 + variants: + - name: Stop0 + description: Stop 0 mode + value: 0 + - name: Stop1 + description: Stop 1 mode + value: 1 +enum/MODE: + bit_size: 2 + variants: + - name: DeepSleep + description: 2.4 GHz RADIO deep sleep mode + value: 0 + - name: Sleep + description: 2.4 GHz RADIO sleep mode + value: 1 +enum/PRIV: + bit_size: 1 + variants: + - name: Unprivileged + description: Read and write to non-secure functions can be done by privileged or unprivileged access. + value: 0 + - name: Privileged + description: Read and write to non-secure functions can be done by privileged access only. + value: 1 +enum/PVDLS: + bit_size: 3 + variants: + - name: v20 + description: VPVD0 around 2.0 V + value: 0 + - name: v22 + description: VPVD1 around 2.2 V + value: 1 + - name: v24 + description: VPVD2 around 2.4 V + value: 2 + - name: v25 + description: VPVD3 around 2.5 V + value: 3 + - name: v26 + description: VPVD4 around 2.6 V + value: 4 + - name: v28 + description: VPVD5 around 2.8 V + value: 5 + - name: v29 + description: VPVD6 around 2.9 V + value: 6 + - name: pvd_in + description: External input analog voltage PVD_IN (compared internally to VREFINT) + value: 7 +enum/PVDO: + bit_size: 1 + variants: + - name: AboveOrEqual + description: VDD is equal or above the PVD threshold selected by PVDLS[2:0]. + value: 0 + - name: Below + description: VDD is below the PVD threshold selected by PVDLS[2:0]. + value: 1 +enum/RADIORSB: + bit_size: 1 + variants: + - name: NotRetained + description: 2.4 GHz RADIO SRAMs and sleep timer content not retained in Standby mode + value: 0 + - name: Retained + description: 2.4 GHz RADIO SRAMs and sleep timer content retained in Standby mode + value: 1 +enum/REGPARDYVDDRFPA: + bit_size: 1 + variants: + - name: NotReady + description: Not ready, VDDHPA voltage level < REGPAVOS selected supply level + value: 0 + - name: Ready + description: Ready, VDDHPA voltage level ≥ REGPAVOS selected supply level + value: 1 +enum/RRSB: + bit_size: 1 + variants: + - name: B_0x0 + description: SRAM2 content not retained in Standby mode + value: 0 + - name: B_0x1 + description: SRAM2 content retained in Standby mode + value: 1 +enum/SEC: + bit_size: 1 + variants: + - name: NotSecure + description: SVMCR and CR3 can be read and written with secure or non-secure access. + value: 0 + - name: Secure + description: SVMCR and CR3 can be read and written only with secure access. + value: 1 +enum/SRAMPDS: + bit_size: 1 + variants: + - name: PoweredOn + description: SRAM1 content retained in Stop modes + value: 0 + - name: PoweredOff + description: SRAM1 content lost in Stop modes + value: 1 +enum/VOS: + bit_size: 1 + variants: + - name: Range2 + description: Range 2 (lowest power) + value: 0 + - name: Range1 + description: Range 1 (highest frequency). + value: 1 +enum/WUPP: + bit_size: 1 + variants: + - name: High + description: Detection on high level (rising edge) + value: 0 + - name: Low + description: Detection on low level (falling edge) + value: 1 +enum/WUSEL: + bit_size: 2 + variants: + - name: B_0x0 + description: reserved + value: 0 + - name: B_0x1 + description: WKUP3_1 + value: 1 + - name: B_0x2 + description: WKUP3_2 + value: 2 + - name: B_0x3 + description: reserved + value: 3 diff --git a/data/registers/rcc_wba.yaml b/data/registers/rcc_wba.yaml new file mode 100644 index 0000000..6748bfd --- /dev/null +++ b/data/registers/rcc_wba.yaml @@ -0,0 +1,1572 @@ +block/RCC: + description: Reset and clock control + items: + - name: CR + description: RCC clock control register + byte_offset: 0 + fieldset: CR + - name: ICSCR3 + description: RCC internal clock sources calibration register 3 + byte_offset: 16 + fieldset: ICSCR3 + - name: CFGR1 + description: RCC clock configuration register 1 + byte_offset: 28 + fieldset: CFGR1 + - name: CFGR2 + description: RCC clock configuration register 2 + byte_offset: 32 + fieldset: CFGR2 + - name: CFGR3 + description: RCC clock configuration register 3 + byte_offset: 36 + fieldset: CFGR3 + - name: PLL1CFGR + description: RCC PLL1 configuration register + byte_offset: 40 + fieldset: PLL1CFGR + - name: PLL1DIVR + description: RCC PLL1 dividers register + byte_offset: 52 + fieldset: PLL1DIVR + - name: PLL1FRACR + description: RCC PLL1 fractional divider register + byte_offset: 56 + fieldset: PLL1FRACR + - name: CIER + description: RCC clock interrupt enable register + byte_offset: 80 + fieldset: CIER + - name: CIFR + description: RCC clock interrupt flag register + byte_offset: 84 + fieldset: CIFR + - name: CICR + description: RCC clock interrupt clear register + byte_offset: 88 + fieldset: CICR + - name: AHB1RSTR + description: RCC AHB1 peripheral reset register + byte_offset: 96 + fieldset: AHB1RSTR + - name: AHB2RSTR + description: RCC AHB2 peripheral reset register + byte_offset: 100 + fieldset: AHB2RSTR + - name: AHB4RSTR + description: RCC AHB4 peripheral reset register + byte_offset: 108 + fieldset: AHB4RSTR + - name: AHB5RSTR + description: RCC AHB5 peripheral reset register + byte_offset: 112 + fieldset: AHB5RSTR + - name: APB1RSTR1 + description: RCC APB1 peripheral reset register 1 + byte_offset: 116 + fieldset: APB1RSTR1 + - name: APB1RSTR2 + description: RCC APB1 peripheral reset register 2 + byte_offset: 120 + fieldset: APB1RSTR2 + - name: APB2RSTR + description: RCC APB2 peripheral reset register + byte_offset: 124 + fieldset: APB2RSTR + - name: APB7RSTR + description: RCC APB7 peripheral reset register + byte_offset: 128 + fieldset: APB7RSTR + - name: AHB1ENR + description: RCC AHB1 peripheral clock enable register + byte_offset: 136 + fieldset: AHB1ENR + - name: AHB2ENR + description: RCC AHB2 peripheral clock enable register + byte_offset: 140 + fieldset: AHB2ENR + - name: AHB4ENR + description: RCC AHB4 peripheral clock enable register + byte_offset: 148 + fieldset: AHB4ENR + - name: AHB5ENR + description: RCC AHB5 peripheral clock enable register + byte_offset: 152 + fieldset: AHB5ENR + - name: APB1ENR1 + description: RCC APB1 peripheral clock enable register 1 + byte_offset: 156 + fieldset: APB1ENR1 + - name: APB1ENR2 + description: RCC APB1 peripheral clock enable register 2 + byte_offset: 160 + fieldset: APB1ENR2 + - name: APB2ENR + description: RCC APB2 peripheral clock enable register + byte_offset: 164 + fieldset: APB2ENR + - name: APB7ENR + description: RCC APB7 peripheral clock enable register + byte_offset: 168 + fieldset: APB7ENR + - name: AHB1SMENR + description: RCC AHB1 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 176 + fieldset: AHB1SMENR + - name: AHB2SMENR + description: RCC AHB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 180 + fieldset: AHB2SMENR + - name: AHB4SMENR + description: RCC AHB4 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 188 + fieldset: AHB4SMENR + - name: AHB5SMENR + description: RCC AHB5 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 192 + fieldset: AHB5SMENR + - name: APB1SMENR1 + description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes\tregister 1" + byte_offset: 196 + fieldset: APB1SMENR1 + - name: APB1SMENR2 + description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes \tregister 2" + byte_offset: 200 + fieldset: APB1SMENR2 + - name: APB2SMENR + description: RCC APB2 peripheral clocks enable in Sleep and Stop modes register + byte_offset: 204 + fieldset: APB2SMENR + - name: APB7SMENR + description: RCC APB7 peripheral clock enable in Sleep and Stop modes register + byte_offset: 208 + fieldset: APB7SMENR + - name: CCIPR1 + description: RCC peripherals independent clock configuration register 1 + byte_offset: 224 + fieldset: CCIPR1 + - name: CCIPR2 + description: RCC peripherals independent clock configuration register 2 + byte_offset: 228 + fieldset: CCIPR2 + - name: CCIPR3 + description: RCC peripherals independent clock configuration register 3 + byte_offset: 232 + fieldset: CCIPR3 + - name: BDCR + description: RCC backup domain control register + byte_offset: 240 + fieldset: BDCR + - name: CSR + description: RCC control/status register + byte_offset: 244 + fieldset: CSR + - name: SECCFGR + description: RCC secure configuration register + byte_offset: 272 + fieldset: SECCFGR + - name: PRIVCFGR + description: RCC privilege configuration register + byte_offset: 276 + fieldset: PRIVCFGR + - name: CFGR4 + description: RCC clock configuration register 2 + byte_offset: 512 + fieldset: CFGR4 + - name: RADIOENR + description: RCC RADIO peripheral clock enable register + byte_offset: 520 + fieldset: RADIOENR + - name: ECSCR1 + description: RCC external clock sources calibration register 1 + byte_offset: 528 + fieldset: ECSCR1 +fieldset/AHB1ENR: + description: RCC AHB1 peripheral clock enable register + fields: + - name: GPDMA1EN + description: "GPDMA1 bus clock enable\r Set and cleared by software.\r Access can be secured by GPDMA1 SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: FLASHEN + description: "FLASH bus clock enable\r Set and cleared by software. This bit can be disabled only when the Flash memory is in power down mode.\r Can only be accessed secured when the Flash security state is secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 8 + bit_size: 1 + - name: CRCEN + description: "CRC bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC CRCSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: TSCEN + description: "Touch sensing controller bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TSCSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 + - name: RAMCFGEN + description: "RAMCFG bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RAMCFGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: GTZC1EN + description: "GTZC1 bus clock enable \r Set and reset by software.\r Can only be accessed secure when device is secure (TZEN = 1). When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 24 + bit_size: 1 + - name: SRAM1EN + description: "SRAM1 bus clock enable \r Set and reset by software.\r Access can be secured by GTZC_MPCBB1 SECx, INVSECSTATE. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 31 + bit_size: 1 +fieldset/AHB1RSTR: + description: RCC AHB1 peripheral reset register + fields: + - name: GPDMA1RST + description: "GPDMA1 reset\r Set and cleared by software.\r Access can be secured by GPDMA1 SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: CRCRST + description: "CRC reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC CRCSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: TSCRST + description: "TSC reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TSCSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 +fieldset/AHB1SMENR: + description: RCC AHB1 peripheral clocks enable in Sleep and Stop modes register + fields: + - name: GPDMA1SMEN + description: "GPDMA1 bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GPDMA1 SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 0 + bit_size: 1 + - name: FLASHSMEN + description: "FLASH bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Can only be accessed secured when the Flash security state is secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 8 + bit_size: 1 + - name: CRCSMEN + description: "CRC bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC CRCSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: TSCSMEN + description: "TSC bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TSCSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.." + bit_offset: 16 + bit_size: 1 + - name: RAMCFGSMEN + description: "RAMCFG bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RAMCFGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: GTZC1SMEN + description: "GTZC1 bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Can only be accessed secure when one device is secure (TZEN = 1). When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 24 + bit_size: 1 + - name: ICACHESMEN + description: "ICACHE bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC ICACHE_REGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.." + bit_offset: 29 + bit_size: 1 + - name: SRAM1SMEN + description: "SRAM1 bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_MPCBB1 SECx, INVSECSTATE. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 31 + bit_size: 1 +fieldset/AHB2ENR: + description: RCC AHB2 peripheral clock enable register + fields: + - name: GPIOAEN + description: "IO port A bus clock enable\r Set and cleared by software.\r Access can be secured by GPIOA SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: GPIOBEN + description: "IO port B bus clock enable\r Set and cleared by software.\r Access can be secured by GPIOB SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: GPIOCEN + description: "IO port C bus clock enable\r Set and cleared by software.\r Access can be secured by GPIOC SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 2 + bit_size: 1 + - name: GPIOHEN + description: "IO port H bus clock enable\r Set and cleared by software.\r Access can be secured by GPIOH SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 7 + bit_size: 1 + - name: AESEN + description: "AES bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC AESSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 + - name: HASHEN + description: "HASH bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC HASHSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: RNGEN + description: "RNG bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RNGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 1 + - name: SAESEN + description: "SAES bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SAESSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 19 + bit_size: 1 + - name: HSEMEN + description: "HSEM bus clock enable\r Set and cleared by software.\r Can only be accessed secure when one or more features in the HSEM is secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 20 + bit_size: 1 + - name: PKAEN + description: "PKA bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC PKASEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 21 + bit_size: 1 + - name: SRAM2EN + description: "SRAM2 bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_MPCBB2 SECx, INVSECSTATE. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 30 + bit_size: 1 +fieldset/AHB2RSTR: + description: RCC AHB2 peripheral reset register + fields: + - name: GPIOARST + description: "IO port A reset\r Set and cleared by software.\r Access can be secured by GPIOA SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: GPIOBRST + description: "IO port B reset\r Set and cleared by software.\r Access can be secured by GPIOB SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: GPIOCRST + description: "IO port C reset\r Set and cleared by software.\r Access can be secured by GPIOC SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 2 + bit_size: 1 + - name: GPIOHRST + description: "IO port H reset\r Set and cleared by software.\r Access can be secured by GPIOH SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 7 + bit_size: 1 + - name: AESRST + description: "AES hardware accelerator reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC AESSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 + - name: HASHRST + description: "Hash reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC HASHSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: RNGRST + description: "Random number generator reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RNGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 1 + - name: SAESRST + description: "SAES hardware accelerator reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SAESSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 19 + bit_size: 1 + - name: HSEMRST + description: "HSEM hardware accelerator reset\r Set and cleared by software.\r Can only be accessed secure when one or more features in the HSEM is secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 20 + bit_size: 1 + - name: PKARST + description: "PKA reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC PKASEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 21 + bit_size: 1 +fieldset/AHB2SMENR: + description: RCC AHB2 peripheral clocks enable in Sleep and Stop modes register + fields: + - name: GPIOASMEN + description: "IO port A bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GPIOA SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: GPIOBSMEN + description: "IO port B bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GPIOB SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: GPIOCSMEN + description: "IO port C bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GPIOC SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 2 + bit_size: 1 + - name: GPIOHSMEN + description: "IO port H bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GPIOH SECx. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 7 + bit_size: 1 + - name: AESSMEN + description: "AES bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC AESSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 + - name: HASHSMEN + description: "HASH bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC HASHSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: RNGSMEN + description: "Random number generator (RNG) bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RNGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 1 + - name: SAESSMEN + description: "SAES accelerator bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SAESSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 19 + bit_size: 1 + - name: PKASMEN + description: "PKA bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC PKASEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 21 + bit_size: 1 + - name: SRAM2SMEN + description: "SRAM2 bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_MPCBB2 SECx, INVSECSTATE. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 30 + bit_size: 1 +fieldset/AHB4ENR: + description: RCC AHB4 peripheral clock enable register + fields: + - name: PWREN + description: "PWR bus clock enable\r Set and cleared by software.\r Can only be accessed secure when one or more features in the PWR is/are secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 2 + bit_size: 1 + - name: ADC4EN + description: "ADC4 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC ADC4SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 +fieldset/AHB4RSTR: + description: RCC AHB4 peripheral reset register + fields: + - name: ADC4RST + description: "ADC4 reset\r Set and cleared by software.\r Access can be secred by GTZC_TZSC ADC4SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 +fieldset/AHB4SMENR: + description: RCC AHB4 peripheral clocks enable in Sleep and Stop modes register + fields: + - name: PWRSMEN + description: "PWR bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Can only be accessed secure when one or more features in the PWR is/are secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 2 + bit_size: 1 + - name: ADC4SMEN + description: "ADC4 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC ADC4SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 +fieldset/AHB5ENR: + description: RCC AHB5 peripheral clock enable register + fields: + - name: RADIOEN + description: "2.4 GHz RADIO bus clock enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RADIOSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Before accessing the 2.4 GHz RADIO sleep timers registers the RADIOCLKRDY bit must be checked.\r Note: When RADIOSMEN and STRADIOCLKON are both cleared, RADIOCLKRDY bit must be re-checked when exiting low-power modes (Sleep and Stop)." + bit_offset: 0 + bit_size: 1 +fieldset/AHB5RSTR: + description: RCC AHB5 peripheral reset register + fields: + - name: RADIORST + description: "2.4 GHz RADIO reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RADIOSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 +fieldset/AHB5SMENR: + description: RCC AHB5 peripheral clocks enable in Sleep and Stop modes register + fields: + - name: RADIOSMEN + description: "2.4 GHz RADIO bus clock enable during Sleep and Stop modes when the 2.4 GHz RADIO is active.\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RADIOSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 +fieldset/APB1ENR1: + description: RCC APB1 peripheral clock enable register 1 + fields: + - name: TIM2EN + description: "TIM2 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: TIM3EN + description: "TIM3 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: WWDGEN + description: "WWDG bus clock enable\r Set by software to enable the window watchdog bus clock. Reset by hardware system reset.\r This bit can also be set by hardware if the WWDG_SW option bit is reset.\r Access can be secured by GTZC_TZSC WWDGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: USART2EN + description: "USART2 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC USART2SEC When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.." + bit_offset: 17 + bit_size: 1 + - name: I2C1EN + description: "I2C1 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC I2C1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 21 + bit_size: 1 +fieldset/APB1ENR2: + description: RCC APB1 peripheral clock enable register 2 + fields: + - name: LPTIM2EN + description: "LPTIM2 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPTIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 +fieldset/APB1RSTR1: + description: RCC APB1 peripheral reset register 1 + fields: + - name: TIM2RST + description: "TIM2 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: TIM3RST + description: "TIM3 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: USART2RST + description: "USART2 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC UART2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: I2C1RST + description: "I2C1 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC I2C1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 21 + bit_size: 1 +fieldset/APB1RSTR2: + description: RCC APB1 peripheral reset register 2 + fields: + - name: LPTIM2RST + description: "LPTIM2 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPTIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 +fieldset/APB1SMENR1: + description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes\tregister 1" + fields: + - name: TIM2SMEN + description: "TIM2 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: TIM3SMEN + description: "TIM3 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: WWDGSMEN + description: "Window watchdog bus clock enable during Sleep and Stop modes\r Set and cleared by software. This bit is forced to 1 by hardware when the hardware WWDG option is activated.\r Access can be secured by GTZC_TZSC WWDGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: USART2SMEN + description: "USART2 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC USART2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 17 + bit_size: 1 + - name: I2C1SMEN + description: "I2C1 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC I2C1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 21 + bit_size: 1 +fieldset/APB1SMENR2: + description: "RCC APB1 peripheral clocks enable in Sleep and Stop modes \tregister 2" + fields: + - name: LPTIM2SMEN + description: "LPTIM2 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPTIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 +fieldset/APB2ENR: + description: RCC APB2 peripheral clock enable register + fields: + - name: TIM1EN + description: "TIM1 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: SPI1EN + description: "SPI1 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SPI1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: USART1EN + description: "USART1bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC USART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 14 + bit_size: 1 + - name: TIM16EN + description: "TIM16 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM16SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: TIM17EN + description: "TIM17 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM17SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 1 +fieldset/APB2RSTR: + description: RCC APB2 peripheral reset register + fields: + - name: TIM1RST + description: "TIM1 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: SPI1RST + description: "SPI1 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SPI1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: USART1RST + description: "USART1 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC USART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 14 + bit_size: 1 + - name: TIM16RST + description: "TIM16 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM16SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: TIM17RST + description: "TIM17 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM17SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 1 +fieldset/APB2SMENR: + description: RCC APB2 peripheral clocks enable in Sleep and Stop modes register + fields: + - name: TIM1SMEN + description: "TIM1 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: SPI1SMEN + description: "SPI1 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SPI1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 12 + bit_size: 1 + - name: USART1SMEN + description: "USART1 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC USART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 14 + bit_size: 1 + - name: TIM16SMEN + description: "TIM16 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM16SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: TIM17SMEN + description: "TIM17 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC TIM17SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 1 +fieldset/APB7ENR: + description: RCC APB7 peripheral clock enable register + fields: + - name: SYSCFGEN + description: "SYSCFG bus clock enable\r Set and cleared by software.\r Access can be secured by SYSCFG SYSCFGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: SPI3EN + description: "SPI3 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SPI3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 + - name: LPUART1EN + description: "LPUART1 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPUART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 6 + bit_size: 1 + - name: I2C3EN + description: "I2C3 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC I2C3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1EN + description: "LPTIM1 bus and kernel clocks enable\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPTIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: RTCAPBEN + description: "RTC and TAMP bus clock enable\r Set and cleared by software.\r Can only be accessed secure when one or more features in the RTC or TAMP is/are secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 21 + bit_size: 1 +fieldset/APB7RSTR: + description: RCC APB7 peripheral reset register + fields: + - name: SYSCFGRST + description: "SYSCFG reset\r Set and cleared by software.\r Access can be secured by SYSCFG SYSCFGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: SPI3RST + description: "SPI3 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SPI3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 + - name: LPUART1RST + description: "LPUART1 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPUART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 6 + bit_size: 1 + - name: I2C3RST + description: "I2C3 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC I2C3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1RST + description: "LPTIM1 reset\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPTIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 +fieldset/APB7SMENR: + description: RCC APB7 peripheral clock enable in Sleep and Stop modes register + fields: + - name: SYSCFGSMEN + description: "SYSCFG bus clock enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by SYSCFG SYSCFGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: SPI3SMEN + description: "SPI3 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC SPI3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 5 + bit_size: 1 + - name: LPUART1SMEN + description: "LPUART1 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPUART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 6 + bit_size: 1 + - name: I2C3SMEN + description: "I2C3 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC I2C3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 7 + bit_size: 1 + - name: LPTIM1SMEN + description: "LPTIM1 bus and kernel clocks enable during Sleep and Stop modes\r Set and cleared by software.\r Access can be secured by GTZC_TZSC LPTIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 11 + bit_size: 1 + - name: RTCAPBSMEN + description: "RTC and TAMP APB clock enable during Sleep and Stop modes\r Set and cleared by software.\r Can only be accessed secure when one or more features in the RTC or TAMP is/are secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: This bit must be set to allow the peripheral to wake up from Stop modes." + bit_offset: 21 + bit_size: 1 +fieldset/BDCR: + description: RCC backup domain control register + fields: + - name: LSEON + description: "LSE oscillator enable\r Set and cleared by software.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: LSERDY + description: "LSE oscillator ready\r Set and cleared by hardware to indicate when the external 32�kHz oscillator is stable. After the LSEON bit is cleared, LSERDY goes low after six external low-speed oscillator clock cycles.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: LSEBYP + description: "LSE oscillator bypass\r Set and cleared by software to bypass oscillator in debug mode. This bit can be written only when the external 32�kHz oscillator is disabled (LSEON = 0 and LSERDY = 0).\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 2 + bit_size: 1 + - name: LSEDRV + description: "LSE oscillator drive capability\r Set by software to modulate the drive capability of the LSE oscillator. LSEDRV must be programmed to a different value than 0 before enabling the LSE oscillator in ‘Xtal’ mode.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The oscillator is in ‘Xtal mode’ when it is not in bypass mode." + bit_offset: 3 + bit_size: 2 + enum: LSEDRV + - name: LSECSSON + description: "Low speed external clock security enable\r Set by software to enable the LSECSS. LSECSSON must be enabled after the LSE oscillator is enabled (LSEON bit enabled) and ready (LSERDY flag set by hardware) and after the RTCSEL bit is selected.\r Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD�=�1). In that case, the software must disable the LSECSSON bit.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 5 + bit_size: 1 + - name: LSECSSD + description: "Low speed external clock security, LSE failure Detection\r Set by hardware to indicate when a failure is detected by the LSECCS on the external 32�kHz oscillator.\r Reset when LSCSSON bit is cleared.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 6 + bit_size: 1 + - name: LSESYSEN + description: "LSE system clock (LSESYS) enable\r Set by software to enable the LSE system clock generated by RCC. The lsesys clock is used for peripherals (USART, LPUART, LPTIM, RNG, 2.4 GHz RADIO) and functions (LSCO, MCO, TIM triggers, LPTIM trigger) excluding the RTC, TAMP and LSECSS.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 7 + bit_size: 1 + - name: RTCSEL + description: "RTC and TAMP kernel clock source enable and selection\r Set by software to enable and select the clock source for the RTC.\r Can only be accessed secure when one or more features in the RTC or TAMP is/are secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 8 + bit_size: 2 + enum: RTCSEL + - name: LSESYSRDY + description: "LSE system clock (LSESYS) ready\r Set and cleared by hardware to indicate when the LSE system clock is stable.When the LSESYSEN bit is set, the LSESYSRDY flag is set after two LSE clock cycles.\r The LSE clock must be already enabled and stable (LSEON and LSERDY are set). \r When the LSEON bit is cleared, LSERDY goes low after six external low-speed oscillator clock cycles.\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 11 + bit_size: 1 + - name: LSEGFON + description: "LSE clock glitch filter enable\r Set and cleared by hardware to enable the LSE glitch filter. This bit can be written only when the LSE is disabled (LSEON = 0 and LSERDY = 0).\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 1 + - name: LSETRIM + description: "LSE trimming\r These bits are initialized at startup and after OBL_LAUNCH with SBF cleared with the factory-programmed LSE calibration value.\r Set and cleared by software. These bits must be modified only once after a BOR reset or an OBL_LAUNCH and before enabling LSE with LSEON (when both LSEON = 0 and LSERDY�= 0).\r Access can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: OBL_LAUNCH of this field occurs only when SBF is cleared and must then only be started by software when LSE oscillator is disabled, LSEON = 0 and LSERDY = 0." + bit_offset: 13 + bit_size: 2 + enum: LSETRIM + - name: BDRST + description: "Backup domain software reset\r Set and cleared by software.\r Can only be accessed secure when one or more features in the RTC or TAMP is secure. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 + - name: RADIOSTSEL + description: "2.4 GHz RADIO sleep timer kernel clock enable and selection\r Set and cleared by software.\r Access can be secured by GTZC_TZSC RADIOSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 18 + bit_size: 2 + enum: RADIOSTSEL + - name: LSCOEN + description: "Low-speed clock output (LSCO) enable\r Set and cleared by software.\r Access can be secured by RCC LSISEC and/or RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 24 + bit_size: 1 + - name: LSCOSEL + description: "Low-speed clock output selection\r Set and cleared by software.\r Access can be secured by RCC LSISEC and/or RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 25 + bit_size: 1 + enum: LSCOSEL + - name: LSI1ON + description: "LSI1 oscillator enable\r Set and cleared by software.\r Access can be secured by RCC LSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 26 + bit_size: 1 + - name: LSI1RDY + description: "LSI1 oscillator ready\r Set and cleared by hardware to indicate when the LSI1 oscillator is stable. After the LSI1ON bit is cleared, LSI1RDY goes low after three internal low-speed oscillator clock cycles. This bit is set when the LSI1 is used by IWDG or RTC, even if LSI1ON = 0.\r Access can be secured by RCC LSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 27 + bit_size: 1 + - name: LSI1PREDIV + description: "LSI1 Low-speed clock divider configuration\r Set and cleared by software to enable the LSI1 division. This bit can be written only when the LSI1 is disabled (LSI1ON = 0 and LSI1RDY = 0). The LSI1PREDIV cannot be changed if the LSI1 is used by the IWDG or by the RTC.\r Access can be secured by RCC LSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 28 + bit_size: 1 + enum: LSIPREDIV +fieldset/CCIPR1: + description: RCC peripherals independent clock configuration register 1 + fields: + - name: USART1SEL + description: "USART1 kernel clock source selection\r This bits are used to select the USART1 kernel clock source.\r Access can be secured by GTZC_TZSC USART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The USART1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 0 + bit_size: 2 + enum: USARTSEL + - name: USART2SEL + description: "USART2 kernel clock source selection\r This bits are used to select the USART2 kernel clock source.\r Access can be secured by GTZC_TZSC USART2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The USART2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16 or LSE." + bit_offset: 2 + bit_size: 2 + enum: USARTSEL + - name: I2C1SEL + description: "I2C1 kernel clock source selection\r These bits are used to select the I2C1 kernel clock source.\r Access can be secured by GTZC_TZSC I2C1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The I2C1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16." + bit_offset: 10 + bit_size: 2 + enum: ICSEL + - name: LPTIM2SEL + description: "Low-power timer 2 kernel clock source selection\r These bits are used to select the LPTIM2 kernel clock source.\r Access can be secured by GTZC_TZSC LPTIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The LPTIM2 is functional in Stop 0 and Stop 1 mode only when the kernel clock is LSI, LSE or HSI16 if HSIKERON = 1." + bit_offset: 18 + bit_size: 2 + enum: LPTIMSEL + - name: SPI1SEL + description: "SPI1 kernel clock source selection\r These bits are used to select the SPI1 kernel clock source.\r Access can be secured by GTZC_TZSC SPI1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The SPI1 is functional in Stop 0 and Stop 1 mode only when the kernel clock is HSI16." + bit_offset: 20 + bit_size: 2 + enum: SPISEL + - name: SYSTICKSEL + description: "SysTick clock source selection\r These bits are used to select the SysTick clock source.\r Access can be secured by RCC SYSCLKSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: When LSE or LSI is selected, the AHB frequency must be at least four times higher than the LSI or LSE frequency. In addition, a jitter up to one hclk1 cycle is introduced, due to the LSE or LSI sampling with hclk1 in the SysTick circuitry." + bit_offset: 22 + bit_size: 2 + enum: SYSTICKSEL + - name: TIMICSEL + description: "Clocks sources for TIM16,TIM17 and LPTIM2 internal input capture \r When the TIMICSEL bit is set, the TIM16, TIM17 and LPTIM2 internal input capture can be connected to HSI16/256. \r When TIMICSEL is cleared, the HSI16, clock sources cannot be selected as TIM16, TIM17 or LPTIM2 internal input capture.\r Access can be secured by GTZC_TZSC TIM16SEC, TIM17SEC, or LPTIM2SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The clock division must be disabled (TIMICSEL configured to 0) before selecting or changing a clock sources division." + bit_offset: 31 + bit_size: 1 + enum: TIMICSEL +fieldset/CCIPR2: + description: RCC peripherals independent clock configuration register 2 + fields: + - name: RNGSEL + description: "RNGSEL kernel clock source selection\r These bits allow to select the RNG kernel clock source.\r Access can be secured by GTZC_TZSC RNGSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 12 + bit_size: 2 + enum: RNGSEL +fieldset/CCIPR3: + description: RCC peripherals independent clock configuration register 3 + fields: + - name: LPUART1SEL + description: "LPUART1 kernel clock source selection\r These bits are used to select the LPUART1 kernel clock source.\r Access can be secured by GTZC_TZSC LPUART1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The LPUART1 is functional in Stop modes only when the kernel clock is HSI16 or LSE." + bit_offset: 0 + bit_size: 2 + enum: LPUARTSEL + - name: SPI3SEL + description: "SPI3 kernel clock source selection\r These bits are used to select the SPI3 kernel clock source.\r Access can be secured by GTZC_TZSC SPI3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The SPI3 is functional in Stop modes only when the kernel clock is HSI16." + bit_offset: 3 + bit_size: 2 + enum: SPISEL + - name: I2C3SEL + description: "I2C3 kernel clock source selection\r These bits are used to select the I2C3 kernel clock source.\r Access can be secured by GTZC_TZSC I2C3SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The I2C3 is functional in Stop modes only when the kernel clock is HSI16" + bit_offset: 6 + bit_size: 2 + enum: ICSEL + - name: LPTIM1SEL + description: "LPTIM1 kernel clock source selection\r These bits are used to select the LPTIM1 kernel clock source.\r Access can be secured by GTZC_TZSC LPTIM1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: The LPTIM1 is functional in Stop modes only when the kernel clock is LSI, LSE, HSI16 with HSIKERON = 1." + bit_offset: 10 + bit_size: 2 + enum: LPTIMSEL + - name: ADCSEL + description: "ADC4 kernel clock source selection\r These bits are used to select the ADC4 kernel clock source.\r Access can be secured by GTZC_TZSC ADC4SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r others: reserved\r Note: The ADC4 is functional in Stop modes only when the kernel clock is HSI16." + bit_offset: 12 + bit_size: 3 + enum: ADCSEL +fieldset/CFGR1: + description: RCC clock configuration register 1 + fields: + - name: SW + description: "system clock switch\r Set and cleared by software to select system clock source (SYSCLK).\r Cleared by hardware when entering Stop and Standby modes\r When selecting HSE32 directly or indirectly as system clock and HSE32 oscillator clock security fails, cleared by hardware." + bit_offset: 0 + bit_size: 2 + enum: SW + - name: SWS + description: "system clock switch status\r Set and cleared by hardware to indicate which clock source is used as system clock." + bit_offset: 2 + bit_size: 2 + enum: SW + - name: MCOSEL + description: "microcontroller clock output\r Set and cleared by software.\r others: reserved\r Note: This clock output may have some truncated cycles at startup or during MCO clock source switching." + bit_offset: 24 + bit_size: 4 + enum: MCOSEL + - name: MCOPRE + description: "microcontroller clock output prescaler\r Set and cleared by software.\r It is highly recommended to change this prescaler before MCO output is enabled.\r others: not allowed" + bit_offset: 28 + bit_size: 3 + enum: MCOPRE +fieldset/CFGR2: + description: RCC clock configuration register 2 + fields: + - name: HPRE + description: "AHB1, AHB2 and AHB4 prescaler\r Set and cleared by software to control the division factor of the AHB1, AHB2 and AHB4 clock (hclk1).\r The software must limit the incremental frequency step by setting these bits correctly to ensure that the hclk1 maximum incremental frequency step does not exceed the maximum allowed incremental frequency step (for more details, refer to Table�99: SYSCLK and bus maximum frequency). After a write operation to these bits and before decreasing the voltage range, this register must be read to be sure that the new value is taken into account.\r 0xx: hclk1 = SYSCLK not divided" + bit_offset: 0 + bit_size: 3 + enum: HPRE + - name: PPRE1 + description: "APB1 prescaler\r Set and cleared by software to control the division factor of the APB1 clock (pclk1).\r 0xx: pclk1 = hclk1 not divided" + bit_offset: 4 + bit_size: 3 + enum: PPRE + - name: PPRE2 + description: "APB2 prescaler\r Set and cleared by software to control the division factor of the APB2 clock (pclk2).\r 0xx: pclk2 = hclk1 not divided" + bit_offset: 8 + bit_size: 3 + enum: PPRE +fieldset/CFGR3: + description: RCC clock configuration register 3 + fields: + - name: PPRE7 + description: "APB7 prescaler\r Set and cleared by software to control the division factor of the APB7 clock (pclk7).\r 0xx: hclk1 not divided" + bit_offset: 4 + bit_size: 3 + enum: PPRE +fieldset/CFGR4: + description: RCC clock configuration register 2 + fields: + - name: HPRE5 + description: "AHB5 prescaler when SWS select PLL1\r Set and cleared by software to control the division factor of the AHB5 clock (hclk5).\r Must not be changed when SYSCLK source indicated by SWS is PLL1.\r When SYSCLK source indicated by SWS is not PLL1: HPRE5 is not taken into account.\r When SYSCLK source indicated by SWS is PLL1: HPRE5 is taken into account, from the moment the system clock switch occurs\r Depending on the device voltage range, the software must set these bits correctly to ensure that the AHB5 frequency does not exceed the maximum allowed frequency (for more details, refer to Table�99: SYSCLK and bus maximum frequency). After a write operation to these bits and before decreasing the voltage range, this register must be read to be sure that the new value is taken into account.\r 0xx: hclk5 = SYSCLK not divided" + bit_offset: 0 + bit_size: 3 + enum: HPRE5 + - name: HDIV5 + description: "AHB5 divider when SWS select HSI16 or HSE32\r Set and reset by software.\r Set to 1 by hardware when entering Stop 1 mode.\r When SYSCLK source indicated by SWS is HSI16 or HSE32: HDIV5 is taken into account\r When SYSCLK source indicated by SWS is PLL1: HDIV5 is taken not taken into account\r Depending on the device voltage range, the software must set this bit correctly to ensure that the AHB5 frequency does not exceed the maximum allowed frequency (for more details, refer to Table�99). After a write operation to this bit and before decreasing the voltage range, this register must be read to be sure that the new value is taken into account." + bit_offset: 4 + bit_size: 1 + enum: HDIV5 +fieldset/CICR: + description: RCC clock interrupt clear register + fields: + - name: LSI1RDYC + description: "LSI1 ready interrupt clear\r Writing this bit to 1 clears the LSI1RDYF flag. Writing 0 has no effect.\r Access to the bit can be secured by RCC LSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: LSERDYC + description: "LSE ready interrupt clear\r Writing this bit to 1 clears the LSERDYF flag. Writing 0 has no effect.\r Access to the bit can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: HSIRDYC + description: "HSI16 ready interrupt clear\r Writing this bit to 1 clears the HSIRDYF flag. Writing 0 has no effect.\\\r Access to the bit can be secured by RCC HSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 3 + bit_size: 1 + - name: HSERDYC + description: "HSE32 ready interrupt clear\r Writing this bit to 1 clears the HSERDYF flag. Writing 0 has no effect.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 4 + bit_size: 1 + - name: PLLRDYC + description: "PLL1 ready interrupt clear\r Writing this bit to 1 clears the PLL1RDYF flag. Writing 0 has no effect.\r Access to the bit can be secured by RCC PLL1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 6 + bit_size: 1 + - name: HSECSSC + description: "High speed external clock security system interrupt clear\r Writing this bit to 1 clears the HSECSSF flag. Writing 0 has no effect.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 10 + bit_size: 1 +fieldset/CIER: + description: RCC clock interrupt enable register + fields: + - name: LSI1RDYIE + description: "LSI1 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSI1 oscillator stabilization.\r Access to the bit can be secured by RCC LSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: LSERDYIE + description: "LSE ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the LSE oscillator stabilization.\r Access to the bit can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: HSIRDYIE + description: "HSI16 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSI16 oscillator stabilization.\r Access to the bit can be secured by RCC HSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 3 + bit_size: 1 + - name: HSERDYIE + description: "HSE32 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by the HSE32 oscillator stabilization.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 4 + bit_size: 1 + - name: PLLRDYIE + description: "PLL1 ready interrupt enable\r Set and cleared by software to enable/disable interrupt caused by PLL1 lock.\r Access to the bit can be secured by RCC PLL1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 6 + bit_size: 1 +fieldset/CIFR: + description: RCC clock interrupt flag register + fields: + - name: LSI1RDYF + description: "LSI1 ready interrupt flag\r Set by hardware when the LSI1 clock becomes stable and LSI1RDYIE is set.\r Cleared by software setting the LSI1RDYC bit.\r Access to the bit can be secured by RCC LSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 0 + bit_size: 1 + - name: LSERDYF + description: "LSE ready interrupt flag\r Set by hardware when the LSE clock becomes stable and LSERDYIE is set.\r Cleared by software setting the LSERDYC bit.\r Access to the bit can be secured by RCC LSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 1 + bit_size: 1 + - name: HSIRDYF + description: "HSI16 ready interrupt flag\r Set by hardware when the HSI16 clock becomes stable and HSIRDYIE is set in a response to setting the HSION (see CR). When HSION is not set but the HSI16 oscillator is enabled by the peripheral through a clock request, this bit is not set and no interrupt is generated.\r Access to the bit can be secured by RCC HSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Cleared by software setting the HSIRDYC bit." + bit_offset: 3 + bit_size: 1 + - name: HSERDYF + description: "HSE32 ready interrupt flag\r Set by hardware when the HSE32 clock becomes stable and HSERDYIE is set.\r Cleared by software setting the HSERDYC bit.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 4 + bit_size: 1 + - name: PLLRDYF + description: "PLL1 ready interrupt flag\r Set by hardware when the PLL1 locks and PLL1RDYIE is set.\r Cleared by software setting the PLL1RDYC bit.\r Access to the bit can be secured by RCC PLL1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 6 + bit_size: 1 + - name: HSECSSF + description: "HSE32 clock security system interrupt flag\r Set by hardware when a clock security failure is detected in the HSE32 oscillator.\r Cleared by software setting the HSECSSC bit.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 10 + bit_size: 1 +fieldset/CR: + description: RCC clock control register + fields: + - name: HSION + description: "HSI16 clock enable\r Set and cleared by software.\r Cleared by hardware when entering Stop and Standby modes. \r Set by hardware to force the HSI16 oscillator on when exiting Stop and Standby modes.\r Set by hardware to force the HSI16 oscillator on in case of clock security failure of the HSE32 crystal oscillator.\r This bit is set by hardware if the HSI16 is used directly or indirectly as system clock.\r Access to the bit can be secured by RCC HSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 8 + bit_size: 1 + - name: HSIKERON + description: "HSI16 enable for some peripheral kernels\r Set and cleared by software to force HSI16 oscillator on even in Stop modes. \r Keeping the HSI16 oscillator on in Stop modes allows the communication speed not to be reduced by the HSI16 oscillator startup time. This bit has no effect on register bit HSION value.\r Cleared by hardware when entering Standby modes. \r Refer to Peripherals clock gating and autonomous mode for more details.\r Access to the bit can be secured by RCC HSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 9 + bit_size: 1 + - name: HSIRDY + description: "HSI16 clock ready flag\r Set by hardware to indicate that HSI16 oscillator is stable. This bit is set only when HSI16 is enabled by software by setting HSION.\r Access to the bit can be secured by RCC HSISEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV.\r Note: Once the HSION bit is cleared, HSIRDY goes low after six HSI16 clock cycles." + bit_offset: 10 + bit_size: 1 + - name: HSEON + description: "HSE32 clock enable\r Set and cleared by software.\r Cleared by hardware to stop the HSE32 clock for the CPU when entering Stop and Standby modes and on a HSECSS failure.\r When the HSE32 is used as 2.4 GHz RADIO kernel clock, enabled by RADIOEN and RADIOSMEN and the 2.4 GHz RADIO is active, HSEON is not be cleared when entering low power mode. In this case only Stop 0 mode is entered as low power mode.\r This bit cannot be reset if the HSE32 oscillator is used directly or indirectly as the system clock.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 16 + bit_size: 1 + - name: HSERDY + description: "HSE32 clock ready flag\r Set by hardware to indicate that the HSE32 oscillator is stable. This bit is set both when HSE32 is enabled by software by setting HSEON and when requested as kernel clock by the 2.4 GHz RADIO.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 17 + bit_size: 1 + - name: HSECSSON + description: "HSE32 clock security system enable\r Set by software to enable the HSE32 clock security system. When HSECSSON is set, the clock detector is enabled by hardware when the HSE32 oscillator is ready and disabled by hardware if a HSE32 clock failure is detected. This bit is set only and is cleared by reset.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 19 + bit_size: 1 + - name: HSEPRE + description: "HSE32 clock for SYSCLK prescaler\r Set and cleared by software to control the division factor of the HSE32 clock for SYSCLK.\r Access to the bit can be secured by RCC HSESEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 20 + bit_size: 1 + enum: HSEPRE + - name: PLLON + description: "PLL1 enable\r Set and cleared by software to enable the main PLL.\r Cleared by hardware when entering Stop or Standby modes and when PLL1 on HSE32 is selected as sysclk, on a HSECSS failure.\r This bit cannot be reset if the PLL1 clock is used as the system clock.\r Access to the bit can be secured by RCC PLL1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 24 + bit_size: 1 + - name: PLLRDY + description: "PLL1 clock ready flag\r Set by hardware to indicate that the PLL1 is locked.\r Access to the bit can be secured by RCC PLL1SEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 25 + bit_size: 1 +fieldset/CSR: + description: RCC control/status register + fields: + - name: RMVF + description: "Remove reset flag\r Set by software to clear the reset flags.\r Access can be secured by RCC RMVFSEC. When secure, a non-secure read/write access is RAZ/WI. It does not generate an illegal access interrupt. This bit can be protected against unprivileged access when secure with RCC SPRIV or when non-secure with RCC NSPRIV." + bit_offset: 23 + bit_size: 1 + - name: OBLRSTF + description: "Option byte loader reset flag\r Set by hardware when a reset from the option byte loading occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 25 + bit_size: 1 + - name: PINRSTF + description: "NRST pin reset flag\r Set by hardware when a reset from the NRST pin occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 26 + bit_size: 1 + - name: BORRSTF + description: "BOR flag\r Set by hardware when a BOR occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 27 + bit_size: 1 + - name: SFTRSTF + description: "Software reset flag\r Set by hardware when a software reset occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 28 + bit_size: 1 + - name: IWDGRSTF + description: "Independent watchdog reset flag\r Set by hardware when an independent watchdog reset domain occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 29 + bit_size: 1 + - name: WWDGRSTF + description: "Window watchdog reset flag\r Set by hardware when a window watchdog reset occurs.\r Cleared by writing to the RMVF bit." + bit_offset: 30 + bit_size: 1 + - name: LPWRRSTF + description: "Low-power reset flag\r Set by hardware when a reset occurs due to illegal Stop and Standby modes entry.\r Cleared by writing to the RMVF bit." + bit_offset: 31 + bit_size: 1 +fieldset/ECSCR1: + description: RCC external clock sources calibration register 1 + fields: + - name: HSETRIM + description: "HSE32 clock trimming \r These bits provide user-programmable capacitor trimming value. It can be programmed to adjust the HSE32 oscillator frequency." + bit_offset: 16 + bit_size: 6 +fieldset/ICSCR3: + description: RCC internal clock sources calibration register 3 + fields: + - name: HSICAL + description: "HSI16 clock calibration\r These bits are initialized at startup with the factory-programmed HSI16 calibration value. When HSITRIM[4:0] is written, HSICAL[11:0] is updated with the sum of HSITRIM[4:0] and the initial factory trim value." + bit_offset: 0 + bit_size: 12 + - name: HSITRIM + description: "HSI16 clock trimming \r These bits provide an additional user-programmable trimming value that is added to the HSICAL[11:0] bits. It can be programmed to adjust to voltage and temperature variations that influence the frequency of the HSI16." + bit_offset: 16 + bit_size: 5 +fieldset/PLL1CFGR: + description: RCC PLL1 configuration register + fields: + - name: PLLSRC + description: "PLL1 entry clock source\r Set and cleared by software to select PLL1 clock source. These bits can be written only when the PLL1 is disabled.\r Cleared by hardware when entering Stop or Standby modes. \r Note: In order to save power, when no PLL1 clock is used, the value of PLL1SRC must be 0." + bit_offset: 0 + bit_size: 2 + enum: PLLSRC + - name: PLLRGE + description: "PLL1 input frequency range\r Set and reset by software to select the proper reference frequency range used for PLL1.\r This bit must be written before enabling the PLL1.\r 00-01-10: PLL1 input (ref1_ck) clock range frequency between 4 and 8 MHz" + bit_offset: 2 + bit_size: 2 + enum: PLLRGE + - name: PLLFRACEN + description: "PLL1 fractional latch enable\r Set and reset by software to latch the content of PLL1FRACN into the ΣΔ modulator.\r In order to latch the PLL1FRACN value into the ΣΔ modulator, PLL1FRACEN must be set to 0, then set to 1: the transition 0 to 1 transfers the content of PLL1FRACN into the modulator (see PLL1 initialization phase for details)." + bit_offset: 4 + bit_size: 1 + - name: PLLM + description: "Prescaler for PLL1\r Set and cleared by software to configure the prescaler of the PLL1. The VCO1 input frequency is PLL1 input clock frequency/PLL1M.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0). \r ..." + bit_offset: 8 + bit_size: 3 + - name: PLLPEN + description: "PLL1 DIVP divider output enable\r Set and reset by software to enable the pll1pclk output of the PLL1.\r To save power, PLL1PEN and PLL1P bits must be set to 0 when the pll1pclk is not used. \r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 16 + bit_size: 1 + - name: PLLQEN + description: "PLL1 DIVQ divider output enable\r Set and reset by software to enable the pll1qclk output of the PLL1.\r To save power, PLL1QEN and PLL1Q bits must be set to 0 when the pll1qclk is not used. \r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 17 + bit_size: 1 + - name: PLLREN + description: "PLL1 DIVR divider output enable\r Set and cleared by software to enable the pll1rclk output of the PLL1.\r To save power, PLL1REN and PLL1R bits must be set to 0 when the pll1rclk is not used.\r This bit can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0)." + bit_offset: 18 + bit_size: 1 + - name: PLLRCLKPRE + description: "pll1rclk clock for SYSCLK prescaler division enable\r Set and cleared by software to control the division of the pll1rclk clock for SYSCLK." + bit_offset: 20 + bit_size: 1 + enum: PLLRCLKPRE + - name: PLLRCLKPRESTEP + description: "pll1rclk clock for SYSCLK prescaler division step selection\r Set and cleared by software to control the division step of the pll1rclk clock for SYSCLK." + bit_offset: 21 + bit_size: 1 + enum: PLLRCLKPRESTEP + - name: PLLRCLKPRERDY + description: "pll1rclkpre not divided ready.\r Set by hardware after PLL1RCLKPRE has been set from divided to not divide, to indicate that the pll1rclk not divided is available on sysclkpre." + bit_offset: 22 + bit_size: 1 +fieldset/PLL1DIVR: + description: RCC PLL1 dividers register + fields: + - name: PLLN + description: "Multiplication factor for PLL1 VCO\r Set and reset by software to control the multiplication factor of the VCO.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ...\r ...\r others: reserved\r VCO output frequency = Fref1_ck x multiplication factor for PLL1 VCO, when fractional value 0 has been loaded into PLL1FRACN, with: \r Multiplication factor for PLL1 VCO between 4 and 512\r input frequency Fref1_ck between 4 and 16�MHz" + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: "PLL1 DIVP division factor\r Set and reset by software to control the frequency of the pll1pclk clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r Note that odd division factors are not allowed.\r ..." + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: "PLL1 DIVQ division factor\r Set and reset by software to control the frequency of the PLl1QCLK clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: "PLL1 DIVR division factor\r Set and reset by software to control the frequency of the pll1rclk clock.\r These bits can be written only when the PLL1 is disabled (PLL1ON = 0 and PLL1RDY = 0).\r ..." + bit_offset: 24 + bit_size: 7 +fieldset/PLL1FRACR: + description: RCC PLL1 fractional divider register + fields: + - name: PLLFRACN + description: "Fractional part of the multiplication factor for PLL1 VCO\r Set and reset by software to control the fractional part of the multiplication factor of the VCO.\r These bits can be written at any time, allowing dynamic fine-tuning of the PLL1 VCO.\r VCO output frequency = Fref1_ck x [multiplication factor for PLL1 VCO + (PLL1FRACN / 213)], with: \r Multiplication factor for PLL1 VCO must be between 4 and 512.\r PLL1FRACN can be between 0 and 213- 1.\r The input frequency Fref1_ck must be between 4 and 16 MHz. \r To change the used fractional value on-the-fly even if the PLL1 is enabled, the application must proceed as follows:\r Set the bit PLL1FRACEN to 0. \r Write the new fractional value into PLL1FRACN. \r Set the bit PLL1FRACEN to 1." + bit_offset: 3 + bit_size: 13 +fieldset/PRIVCFGR: + description: RCC privilege configuration register + fields: + - name: SPRIV + description: "RCC secure functions privilege configuration\r Set and reset by software.\r This bit can be written only by a secure privileged access." + bit_offset: 0 + bit_size: 1 + - name: NSPRIV + description: "RCC non-secure functions privilege configuration\r Set and reset by software.\r This bit can be written only by privileged access, secure or non-secure." + bit_offset: 1 + bit_size: 1 +fieldset/RADIOENR: + description: RCC RADIO peripheral clock enable register + fields: + - name: BBCLKEN + description: "2.4 GHz RADIO baseband kernel clock (aclk) enable\r Set and cleared by software.\r Note: The HSE32 oscillator needs to be enabled by either HSEON or STRADIOCLKON." + bit_offset: 1 + bit_size: 1 + - name: STRADIOCLKON + description: "2.4 GHz RADIO bus clock enable and HSE32 oscillator enable by 2.4 GHz RADIO sleep timer wakeup event\r Set by hardware on a 2.4 GHz RADIO sleep timer wakeup event.\r Cleared by software writing zero to this bit.\r Note: Before accessing the 2.4 GHz RADIO registers the RADIOCLKRDY bit must be checked." + bit_offset: 16 + bit_size: 1 + - name: RADIOCLKRDY + description: "2.4 GHz RADIO bus clock ready.\r Set and cleared by hardware to indicate that the 2.4 GHz RADIO bus clock is ready and the 2.4 GHz RADIO registers can be accessed.\r Note: Once both RADIOEN and STRADIOCLKON are cleared, RADIOCLKRDY goes low after three hclk5 clock cycles." + bit_offset: 17 + bit_size: 1 +fieldset/SECCFGR: + description: RCC secure configuration register + fields: + - name: HSISEC + description: "HSI16 clock configuration and status bits security\r Set and reset by software." + bit_offset: 0 + bit_size: 1 + - name: HSESEC + description: "HSE32 clock configuration bits, status bits and HSECSS security\r Set and reset by software." + bit_offset: 1 + bit_size: 1 + - name: LSISEC + description: "LSI clock configuration and status bits security\r Set and reset by software." + bit_offset: 3 + bit_size: 1 + - name: LSESEC + description: "LSE clock configuration and status bits security\r Set and reset by software." + bit_offset: 4 + bit_size: 1 + - name: SYSCLKSEC + description: "SYSCLK selection, clock output on MCO configuration security\r Set and reset by software." + bit_offset: 5 + bit_size: 1 + - name: PRESCSEC + description: "AHBx/APBx prescaler configuration bits security\r Set and reset by software." + bit_offset: 6 + bit_size: 1 + - name: PLLSEC + description: "PLL1 clock configuration and status bits security\r Set and reset by software." + bit_offset: 7 + bit_size: 1 + - name: RMVFSEC + description: "Remove reset flag security\r Set and reset by software." + bit_offset: 12 + bit_size: 1 +enum/ADCSEL: + bit_size: 3 + variants: + - name: HCLK1 + description: hclk1 clock selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: PLL1_P + description: pll1pclk selected + value: 2 + - name: HSE32 + description: HSE32 clock selected + value: 3 + - name: HSI16 + description: HSI16 clock selected + value: 4 +enum/HDIV5: + bit_size: 1 + variants: + - name: Div1 + description: hclk5 = SYSCLK not divided + value: 0 + - name: Div2 + description: hclk5 = SYSCLK divided by 2 + value: 1 +enum/HPRE: + bit_size: 3 + variants: + - name: Div1 + description: DCLK not divided + value: 0 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 4 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 5 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 6 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 7 +enum/HPRE5: + bit_size: 3 + variants: + - name: Div1 + description: DCLK not divided + value: 0 + - name: Div2 + description: hclk5 = SYSCLK divided by 2 + value: 4 + - name: Div3 + description: hclk5 = SYSCLK divided by 3 + value: 5 + - name: Div4 + description: hclk5 = SYSCLK divided by 4 + value: 6 + - name: Div6 + description: hclk5 = SYSCLK divided by 6 + value: 7 +enum/HSEPRE: + bit_size: 1 + variants: + - name: Div1 + description: HSE32 not divided, SYSCLK = HSE32 + value: 0 + - name: Div2 + description: HSE32 divided, SYSCLK = HSE32/2 + value: 1 +enum/ICSEL: + bit_size: 2 + variants: + - name: PCLK1 + description: pclk1 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 +enum/LPTIMSEL: + bit_size: 2 + variants: + - name: PCLK7 + description: pclk7 selected. + value: 0 + - name: LSI + description: LSI selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 +enum/LPUARTSEL: + bit_size: 2 + variants: + - name: PCLK7 + description: pclk7 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 +enum/LSCOSEL: + bit_size: 1 + variants: + - name: LSI + description: LSI clock selected + value: 0 + - name: LSE + description: LSE clock selected + value: 1 +enum/LSEDRV: + bit_size: 2 + variants: + - name: LOW + description: '''Xtal mode lower driving capability' + value: 0 + - name: MEDIUM_LOW + description: '''Xtal mode medium-low driving capability' + value: 1 + - name: MEDIUM_HIGH + description: '''Xtal mode medium-high driving capability' + value: 2 + - name: HIGH + description: '''Xtal mode higher driving capability' + value: 3 +enum/LSETRIM: + bit_size: 2 + variants: + - name: R5_4 + description: current source resistance 5/4 x R + value: 0 + - name: R + description: current source resistance R + value: 1 + - name: R3_4 + description: current source resistance 3/4 x R + value: 2 + - name: R2_3 + description: current source resistance 2/3 x R + value: 3 +enum/LSIPREDIV: + bit_size: 1 + variants: + - name: Div1 + description: LSI not divided + value: 0 + - name: Div128 + description: LSI divided by 128 + value: 1 +enum/MCOPRE: + bit_size: 3 + variants: + - name: Div1 + description: MCO divided by 1 + value: 0 + - name: Div2 + description: MCO divided by 2 + value: 1 + - name: Div4 + description: MCO divided by 4 + value: 2 + - name: Div8 + description: MCO divided by 8 + value: 3 + - name: Div16 + description: MCO divided by 16 + value: 4 +enum/MCOSEL: + bit_size: 4 + variants: + - name: DISABLED + description: MCO output disabled, no clock on MCO + value: 0 + - name: SYSCLKPRE + description: sysclkpre system clock after PLL1RCLKPRE division selected + value: 1 + - name: HSI16 + description: HSI16 clock selected + value: 3 + - name: HSE32 + description: HSE32 clock selected + value: 4 + - name: PLL1_R + description: pll1rclk clock selected + value: 5 + - name: LSI + description: LSI clock selected + value: 6 + - name: LSE + description: LSE clock selected + value: 7 + - name: PLL1_P + description: pll1pclk clock selected + value: 8 + - name: PLL1_Q + description: pll1qclk clock selected + value: 9 + - name: HCLK5 + description: hclk5 clock selected + value: 10 +enum/PLLRCLKPRE: + bit_size: 1 + variants: + - name: Div1 + description: pll1rclk not divided, sysclkpre = pll1rclk + value: 0 + - name: Divided + description: pll1rclk divided, sysclkpre = pll1rclk divided + value: 1 +enum/PLLRCLKPRESTEP: + bit_size: 1 + variants: + - name: STEP2 + description: pll1rclk 2-step division + value: 0 + - name: STEP3 + description: pll1rclk 3-step division + value: 1 +enum/PLLRGE: + bit_size: 2 + variants: + - name: FREQ_4TO8MHZ + description: PLL2 input (ref2_ck) clock range frequency between 4 and 8 MHz + value: 0 + - name: FREQ_8TO16MHZ + description: PLL2 input (ref2_ck) clock range frequency between 8 and 16 MHz + value: 3 +enum/PLLSRC: + bit_size: 2 + variants: + - name: NONE + description: no clock sent to PLL1 + value: 0 + - name: HSI16 + description: HSI16 clock selected as PLL1 clock entry + value: 2 + - name: HSE32 + description: HSE32 clock after HSEPRE divider selected as PLL1 clock entry + value: 3 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 +enum/RADIOSTSEL: + bit_size: 2 + variants: + - name: None + description: no clock selected, 2.4 GHz RADIO sleep timer kernel clock disabled + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: HSE32 + description: HSE32 oscillator clock divided by 1000 selected + value: 3 +enum/RNGSEL: + bit_size: 2 + variants: + - name: LSE + description: LSE selected + value: 0 + - name: LSI + description: LSI selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: PLL1_Q + description: pll1qclk divide by 2 selected + value: 3 +enum/RTCSEL: + bit_size: 2 + variants: + - name: NoClock + description: no clock selected, RTC and TAMP kernel clock disabled + value: 0 + - name: LSE + description: LSE oscillator clock selected, and enabled + value: 1 + - name: LSI + description: LSI oscillator clock selected, and enabled + value: 2 + - name: HSE32 + description: HSE32 oscillator clock divided by 32 selected, and enabled + value: 3 +enum/SPISEL: + bit_size: 2 + variants: + - name: PCLK2 + description: pclk2 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 +enum/SW: + bit_size: 2 + variants: + - name: HSI16 + description: HSI16 selected as system clock + value: 0 + - name: HSE32 + description: HSE32 or HSE32/2, as defined by HSEPRE, selected as system clock + value: 2 + - name: PLL1_R + description: pll1rclk selected as system clock + value: 3 +enum/SYSTICKSEL: + bit_size: 2 + variants: + - name: HCLK1_DIV8 + description: hclk1 divided by 8 selected + value: 0 + - name: LSI + description: LSI selected + value: 1 + - name: LSE + description: LSE selected + value: 2 +enum/TIMICSEL: + bit_size: 1 + variants: + - name: Div1 + description: HSI16 divider disabled + value: 0 + - name: HSI16_DIV_256 + description: HSI16/256 generated and can be selected by TIM16, TIM17 and LPTIM2 as internal input capture + value: 1 +enum/USARTSEL: + bit_size: 2 + variants: + - name: PCLK1 + description: pclk1 selected + value: 0 + - name: SYSCLK + description: SYSCLK selected + value: 1 + - name: HSI16 + description: HSI16 selected + value: 2 + - name: LSE + description: LSE selected + value: 3 diff --git a/data/registers/syscfg_wba.yaml b/data/registers/syscfg_wba.yaml new file mode 100644 index 0000000..9c46714 --- /dev/null +++ b/data/registers/syscfg_wba.yaml @@ -0,0 +1,196 @@ +block/SYSCFG: + description: System configuration controller + items: + - name: SECCFGR + description: secure configuration register + byte_offset: 0 + fieldset: SECCFGR + - name: CFGR1 + description: configuration register 1 + byte_offset: 4 + fieldset: CFGR1 + - name: FPUIMR + description: FPU interrupt mask register + byte_offset: 8 + fieldset: FPUIMR + - name: CNSLCKR + description: CPU non-secure lock register + byte_offset: 12 + fieldset: CNSLCKR + - name: CSLOCKR + description: CPU secure lock register + byte_offset: 16 + fieldset: CSLOCKR + - name: CFGR2 + description: configuration register 2 + byte_offset: 20 + fieldset: CFGR2 + - name: MESR + description: memory erase status register + byte_offset: 24 + fieldset: MESR + - name: CCCSR + description: compensation cell control/status register + byte_offset: 28 + fieldset: CCCSR + - name: CCVR + description: compensation cell value register + byte_offset: 32 + fieldset: CCVR + - name: CCCR + description: compensation cell code register + byte_offset: 36 + fieldset: CCCR + - name: RSSCMDR + description: RSS command register + byte_offset: 44 + fieldset: RSSCMDR +fieldset/CCCR: + description: compensation cell code register + fields: + - name: NCC1 + description: "NMOS compensation code of the I/Os supplied by VDD\r These bits are written by software to define an I/Os compensation cell code for NMOS transistors. This code is applied to the I/Os compensation cell when the CS1 bit of the CCCSR is set." + bit_offset: 0 + bit_size: 4 + - name: PCC1 + description: "PMOS compensation code of the I/Os supplied by VDD\r These bits are written by software to define an I/Os compensation cell code for PMOS transistors. This code is applied to the I/Os compensation cell when the CS1 bit of the CCCSR is set." + bit_offset: 4 + bit_size: 4 +fieldset/CCCSR: + description: compensation cell control/status register + fields: + - name: EN1 + description: "VDD I/Os compensation cell enable\r This bit enables the compensation cell of the I/Os supplied by VDD." + bit_offset: 0 + bit_size: 1 + - name: CS1 + description: "VDD I/Os code selection\r This bit selects the code to be applied for the compensation cell of the I/Os supplied by VDD." + bit_offset: 1 + bit_size: 1 + - name: RDY1 + description: "VDD I/Os compensation cell ready flag\r This bit provides the compensation cell status of the I/Os supplied by VDD.\r Note: The HSI16 clock is required for the compensation cell to work properly. The compensation cell ready bit (RDY1) is not set if the HSI16 clock is not enabled (HSION)." + bit_offset: 8 + bit_size: 1 +fieldset/CCVR: + description: compensation cell value register + fields: + - name: NCV1 + description: "NMOS compensation value of the I/Os supplied by VDD\r This value is provided by the cell and can be used by the CPU to compute an I/Os compensation cell code for NMOS transistors. This code is applied to the I/Os compensation cell when the CS1 bit of the CCCSR is reset." + bit_offset: 0 + bit_size: 4 + - name: PCV1 + description: "PMOS compensation value of the I/Os supplied by VDD\r This value is provided by the cell and can be used by the CPU to compute an I/Os compensation cell code for PMOS transistors. This code is applied to the I/Os compensation cell when the CS1 bit of the CCCSR is reset." + bit_offset: 4 + bit_size: 4 +fieldset/CFGR1: + description: configuration register 1 + fields: + - name: BOOSTEN + description: "I/O analog switch voltage booster enable\r Access can be protected by GTZC_TZSC ADC4SEC.\r Note: Refer to Table�121 for setting." + bit_offset: 8 + bit_size: 1 + - name: ANASWVDD + description: "GPIO analog switch control voltage selection\r Access can be protected by GTZC_TZSC ADC4SEC.\r Note: Refer to Table�121 for setting." + bit_offset: 9 + bit_size: 1 + - name: PA6_FMP + description: "Fast-mode Plus drive capability activation on PA6\r This bit can be read and written only with secure access if PA6 is secure in GPIOA. This bit enables the Fast-mode Plus drive mode for PA6 when PA6 is not used by I2C peripheral. This can be used to dive a LED for instance.\r Access can be protected by GPIOA SEC6." + bit_offset: 16 + bit_size: 1 + - name: PA7_FMP + description: "Fast-mode Plus drive capability activation on PA7\r This bit can be read and written only with secure access if PA7 is secure in GPIOA. This bit enables the Fast-mode Plus drive mode for PA7 when PA7 is not used by I2C peripheral. This can be used to dive a LED for instance.\r Access can be protected by GPIOA SEC7." + bit_offset: 17 + bit_size: 1 + - name: PA15_FMP + description: "Fast-mode Plus drive capability activation on PA15\r This bit can be read and written only with secure access if PA15 is secure in GPIOA. This bit enables the Fast-mode Plus drive mode for PA15 when PA15 is not used by I2C peripheral. This can be used to dive a LED for instance.\r Access can be protected by GPIOA SEC15." + bit_offset: 18 + bit_size: 1 + - name: PB3_FMP + description: "Fast-mode Plus drive capability activation on PB3\r This bit can be read and written only with secure access if PB3 is secure in GPIOB. This bit enables the Fast-mode Plus drive mode for PB3 when PB3 is not used by I2C peripheral. This can be used to dive a LED for instance.\r Access can be protected by GPIOB SEC3." + bit_offset: 19 + bit_size: 1 +fieldset/CFGR2: + description: configuration register 2 + fields: + - name: CLL + description: "Cortex-M33 LOCKUP (hardfault) output enable\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the connection of Cortex-M33 LOCKUP (hardfault) output to TIM1/16/17 break input." + bit_offset: 0 + bit_size: 1 + - name: SPL + description: "SRAM2 parity lock bit\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM2 parity error signal connection to TIM1/16/17 break inputs." + bit_offset: 1 + bit_size: 1 + - name: PVDL + description: "PVD lock enable bit\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection to TIM1/16/17 break input, as well as the PVDE and PVDLS[2:0] in the PWR register." + bit_offset: 2 + bit_size: 1 + - name: ECCL + description: "ECC lock\r This bit is set by software and cleared only by a system reset. It can be used to enable and lock the Flash ECC double error signal connection to TIM1/16/17 break input." + bit_offset: 3 + bit_size: 1 +fieldset/CNSLCKR: + description: CPU non-secure lock register + fields: + - name: LOCKNSVTOR + description: "VTOR_NS register lock\r This bit is set by software and cleared only by a system reset." + bit_offset: 0 + bit_size: 1 + - name: LOCKNSMPU + description: "Non-secure MPU registers lock\r This bit is set by software and cleared only by a system reset. When set, this bit disables write access to non-secure MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers." + bit_offset: 1 + bit_size: 1 +fieldset/CSLOCKR: + description: CPU secure lock register + fields: + - name: LOCKSVTAIRCR + description: "VTOR_S register and AIRCR register bits lock\r This bit is set by software and cleared only by a system reset. When set, it disables write access to VTOR_S register, PRIS and BFHFNMINS bits in the AIRCR register." + bit_offset: 0 + bit_size: 1 + - name: LOCKSMPU + description: "Secure MPU registers lock\r This bit is set by software and cleared only by a system reset. When set, it disables write access to secure MPU_CTRL, MPU_RNR and MPU_RBAR registers." + bit_offset: 1 + bit_size: 1 + - name: LOCKSAU + description: "SAU registers lock\r This bit is set by software and cleared only by a system reset. When set, it disables write access to SAU_CTRL, SAU_RNR, SAU_RBAR and SAU_RLAR registers." + bit_offset: 2 + bit_size: 1 +fieldset/FPUIMR: + description: FPU interrupt mask register + fields: + - name: FPU_IE + description: "Floating point unit interrupts enable bits\r FPU_IE[5]: Inexact interrupt enable (interrupt disable at reset)\r FPU_IE[4]: Input abnormal interrupt enable\r FPU_IE[3]: Overflow interrupt enable\r FPU_IE[2]: Underflow interrupt enable\r FPU_IE[1]: Divide-by-zero interrupt enable\r FPU_IE[0]: Invalid operation Interrupt enable" + bit_offset: 0 + bit_size: 6 +fieldset/MESR: + description: memory erase status register + fields: + - name: MCLR + description: "Device memories erase status\r This bit is set by hardware when SRAM2, ICACHE, PKA SRAM erase is completed after power-on reset or tamper detection (refer to Section�75: Tamper and backup registers (TAMP) for more details). This bit is not reset by system reset and is cleared by software by writing 1 to it." + bit_offset: 0 + bit_size: 1 + - name: IPMEE + description: "ICACHE and PKA SRAM erase status\r This bit is set by hardware when ICACHE and PKA SRAM erase is completed after potential tamper detection (refer to Section�75: Tamper and backup registers (TAMP) for more details). This bit is cleared by software by writing 1 to it." + bit_offset: 16 + bit_size: 1 +fieldset/RSSCMDR: + description: RSS command register + fields: + - name: RSSCMD + description: "RSS commands\r This field defines a command to be executed by the RSS." + bit_offset: 0 + bit_size: 16 +fieldset/SECCFGR: + description: secure configuration register + fields: + - name: SYSCFGSEC + description: clock control, memory erase status and compensation cell registers security + bit_offset: 0 + bit_size: 1 + - name: CLASSBSEC + description: Class B security + bit_offset: 1 + bit_size: 1 + - name: FPUSEC + description: FPU security + bit_offset: 3 + bit_size: 1 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 6bb769f..3ede5fa 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -216,6 +216,7 @@ impl PeriMatcher { ("STM32G4.*:SYSCFG:.*", ("syscfg", "g4", "SYSCFG")), ("STM32H7.*:SYSCFG:.*", ("syscfg", "h7", "SYSCFG")), ("STM32U5.*:SYSCFG:.*", ("syscfg", "u5", "SYSCFG")), + ("STM32WBA.*:SYSCFG:.*", ("syscfg", "wba", "SYSCFG")), ("STM32WB.*:SYSCFG:.*", ("syscfg", "wb", "SYSCFG")), ("STM32WL5.*:SYSCFG:.*", ("syscfg", "wl5", "SYSCFG")), ("STM32WL5.*:ADC:.*", ("adc", "g0", "ADC")), @@ -245,6 +246,7 @@ impl PeriMatcher { ("STM32L0.*:RTC:rtc2_.*", ("rtc", "v2l0", "RTC")), ("STM32L1.*:RTC:rtc2_.*", ("rtc", "v2l1", "RTC")), ("STM32L4.*:RTC:rtc2_.*", ("rtc", "v2l4", "RTC")), + ("STM32WBA.*:RTC:rtc2_.*", ("rtc", "v3u5", "RTC")), ("STM32WB.*:RTC:rtc2_.*", ("rtc", "v2wb", "RTC")), ("STM32U5.*:RTC:rtc2_.*", ("rtc", "v3u5", "RTC")), // Cube says v2, but it's v3 with security stuff (".*:RTC:rtc3_v1_0", ("rtc", "v3", "RTC")), @@ -297,12 +299,14 @@ impl PeriMatcher { ("STM32U5.*:RCC:.*", ("rcc", "u5", "RCC")), ("STM32H50.*:RCC:.*", ("rcc", "h50", "RCC")), ("STM32H5.*:RCC:.*", ("rcc", "h5", "RCC")), + ("STM32WBA.*:RCC:.*", ("rcc", "wba", "RCC")), ("STM32WB.*:RCC:.*", ("rcc", "wb", "RCC")), ("STM32WL5.*:RCC:.*", ("rcc", "wl5", "RCC")), ("STM32WLE.*:RCC:.*", ("rcc", "wle", "RCC")), ("STM32F1.*:SPI[1234]:.*", ("spi", "f1", "SPI")), ("STM32F3.*:SPI[1234]:.*", ("spi", "v2", "SPI")), ("STM32F1.*:AFIO:.*", ("afio", "f1", "AFIO")), + ("STM32WBA.*:EXTI:.*", ("exti", "l5", "EXTI")), ("STM32L5.*:EXTI:.*", ("exti", "l5", "EXTI")), ("STM32C0.*:EXTI:.*", ("exti", "c0", "EXTI")), ("STM32G0.*:EXTI:.*", ("exti", "g0", "EXTI")), @@ -336,6 +340,7 @@ impl PeriMatcher { ("STM32L5.*:PWR:.*", ("pwr", "l5", "PWR")), ("STM32U5.*:PWR:.*", ("pwr", "u5", "PWR")), ("STM32WL.*:PWR:.*", ("pwr", "wl5", "PWR")), + ("STM32WBA.*:PWR:.*", ("pwr", "wba", "PWR")), ("STM32WB.*:PWR:.*", ("pwr", "wb55", "PWR")), ("STM32H50.*:PWR:.*", ("pwr", "h50", "PWR")), ("STM32H5.*:PWR:.*", ("pwr", "h5", "PWR")), @@ -352,6 +357,7 @@ impl PeriMatcher { ("STM32L4.*:FLASH:.*", ("flash", "l4", "FLASH")), ("STM32L5.*:FLASH:.*", ("flash", "l5", "FLASH")), ("STM32U5.*:FLASH:.*", ("flash", "u5", "FLASH")), + ("STM32WBA.*:FLASH:.*", ("flash", "wba", "FLASH")), ("STM32WB.*:FLASH:.*", ("flash", "wb", "FLASH")), ("STM32WL.*:FLASH:.*", ("flash", "wl", "FLASH")), ("STM32C0.*:FLASH:.*", ("flash", "c0", "FLASH")), @@ -363,6 +369,7 @@ impl PeriMatcher { ("STM32F[24].*:ETH:.*", ("eth", "v1b", "ETH")), ("STM32F7.*:ETH:.*", ("eth", "v1c", "ETH")), (".*ETH:ethermac110_v3_0", ("eth", "v2", "ETH")), + (".*ETH:ethermac110_v3_0_1", ("eth", "v2", "ETH")), ("STM32F4[23][79].*:FMC:.*", ("fmc", "v1x3", "FMC")), ("STM32F446.*:FMC:.*", ("fmc", "v2x1", "FMC")), ("STM32F469.*:FMC:.*", ("fmc", "v2x1", "FMC")), @@ -405,6 +412,7 @@ impl PeriMatcher { ("STM32L1.*:DBGMCU:.*", ("dbgmcu", "l1", "DBGMCU")), ("STM32L4.*:DBGMCU:.*", ("dbgmcu", "l4", "DBGMCU")), ("STM32U5.*:DBGMCU:.*", ("dbgmcu", "u5", "DBGMCU")), + ("STM32WBA.*:DBGMCU:.*", ("dbgmcu", "wba", "DBGMCU")), ("STM32WB.*:DBGMCU:.*", ("dbgmcu", "wb", "DBGMCU")), ("STM32WL.*:DBGMCU:.*", ("dbgmcu", "wl", "DBGMCU")), ("STM32F1.*:GPIO.*", ("gpio", "v1", "GPIO")), @@ -546,11 +554,11 @@ pub fn parse_groups() -> Result<(HashMap, Vec), anyhow: static NOPELIST: &[&str] = &[ // Not supported, not planned unless someone wants to do it. "STM32MP", - // Not supported yet, planned. - "STM32WBA", // Does not exist in ST website. No datasheet, no RM. "STM32GBK", "STM32L485", + "STM32U5F", + "STM32U5G", // STM32WxM modules. These are based on a chip that's supported on its own, // not sure why we want a separate target for it. "STM32WL5M", @@ -765,7 +773,7 @@ fn process_core( if ["L5", "U5"].contains(&&chip_name[5..7]) { want_nvic_name = "NVIC2" } - if ["H56", "H57"].contains(&&chip_name[5..8]) { + if ["H56", "H57", "WBA"].contains(&&chip_name[5..8]) { want_nvic_name = "NVIC2" } diff --git a/stm32-data-gen/src/dma.rs b/stm32-data-gen/src/dma.rs index 083eaf5..116edc7 100644 --- a/stm32-data-gen/src/dma.rs +++ b/stm32-data-gen/src/dma.rs @@ -298,6 +298,7 @@ impl DmaChannels { ("H5_GPDMA.yaml", "GPDMA1", "STM32H5_dma3_Cube", 8, 2), ("H5_GPDMA.yaml", "GPDMA2", "Instance2_STM32H5_dma3_Cube", 8, 2), ("U5_GPDMA1.yaml", "GPDMA1", "STM32U5_dma3_Cube", 16, 4), + ("WBA_GPDMA1.yaml", "GPDMA1", "STM32WBA_dma3_Cube", 8, 0), ] { let mut chip_dma = ChipDma { peripherals: HashMap::new(), From a70aa2f06a0d57ab2a634852cc3abc6966b59deb Mon Sep 17 00:00:00 2001 From: xoviat Date: Sat, 16 Sep 2023 15:43:03 -0500 Subject: [PATCH 46/54] rcc: use same name for bus psc --- d.ps1 | 2 +- data/registers/rcc_f1.yaml | 6 ++-- data/registers/rcc_f100.yaml | 6 ++-- data/registers/rcc_f1cl.yaml | 6 ++-- data/registers/rcc_h7.yaml | 10 +++--- data/registers/rcc_h7ab.yaml | 10 +++--- data/registers/rcc_wb.yaml | 66 ++++++++++++++++++++++++++++++++++++ data/registers/rcc_wl5.yaml | 66 ++++++++++++++++++++++++++++++++++++ data/registers/rcc_wle.yaml | 66 ++++++++++++++++++++++++++++++++++++ 9 files changed, 218 insertions(+), 20 deletions(-) diff --git a/d.ps1 b/d.ps1 index 10d6141..6772f52 100644 --- a/d.ps1 +++ b/d.ps1 @@ -12,7 +12,7 @@ Switch ($CMD) rm -r -Force ./sources/ -ErrorAction SilentlyContinue git clone https://github.com/embassy-rs/stm32-data-sources.git ./sources/ cd ./sources/ - git checkout ca89656b + git checkout a2062c088cf299bd3dc5128eeaa96e07fff2087c cd .. } "install-chiptool" { diff --git a/data/registers/rcc_f1.yaml b/data/registers/rcc_f1.yaml index b0fb55d..0e19e1d 100644 --- a/data/registers/rcc_f1.yaml +++ b/data/registers/rcc_f1.yaml @@ -462,12 +462,12 @@ fieldset/CFGR: description: APB Low speed prescaler (APB1) bit_offset: 8 bit_size: 3 - enum: PPRE1 + enum: PPRE - name: PPRE2 description: APB High speed prescaler (APB2) bit_offset: 11 bit_size: 3 - enum: PPRE1 + enum: PPRE - name: ADCPRE description: ADC prescaler bit_offset: 14 @@ -783,7 +783,7 @@ enum/PLLXTPRE: - name: Div2 description: HSE clock divided by 2 value: 1 -enum/PPRE1: +enum/PPRE: bit_size: 3 variants: - name: Div1 diff --git a/data/registers/rcc_f100.yaml b/data/registers/rcc_f100.yaml index 113c63a..dcec3b7 100644 --- a/data/registers/rcc_f100.yaml +++ b/data/registers/rcc_f100.yaml @@ -430,12 +430,12 @@ fieldset/CFGR: description: APB Low speed prescaler (APB1) bit_offset: 8 bit_size: 3 - enum: PPRE1 + enum: PPRE - name: PPRE2 description: APB High speed prescaler (APB2) bit_offset: 11 bit_size: 3 - enum: PPRE1 + enum: PPRE - name: ADCPRE description: ADC prescaler bit_offset: 14 @@ -754,7 +754,7 @@ enum/PLLXTPRE: - name: Div2 description: HSE clock divided by 2 value: 1 -enum/PPRE1: +enum/PPRE: bit_size: 3 variants: - name: Div1 diff --git a/data/registers/rcc_f1cl.yaml b/data/registers/rcc_f1cl.yaml index 95a654e..8bd5ed3 100644 --- a/data/registers/rcc_f1cl.yaml +++ b/data/registers/rcc_f1cl.yaml @@ -409,12 +409,12 @@ fieldset/CFGR: description: APB Low speed prescaler (APB1) bit_offset: 8 bit_size: 3 - enum: PPRE1 + enum: PPRE - name: PPRE2 description: APB High speed prescaler (APB2) bit_offset: 11 bit_size: 3 - enum: PPRE1 + enum: PPRE - name: ADCPRE description: ADC prescaler bit_offset: 14 @@ -832,7 +832,7 @@ enum/PLLXTPRE: - name: Div2 description: HSE clock divided by 2 value: 1 -enum/PPRE1: +enum/PPRE: bit_size: 3 variants: - name: Div1 diff --git a/data/registers/rcc_h7.yaml b/data/registers/rcc_h7.yaml index 11a746d..6cc9ba1 100644 --- a/data/registers/rcc_h7.yaml +++ b/data/registers/rcc_h7.yaml @@ -3075,7 +3075,7 @@ fieldset/D1CFGR: description: D1 domain APB3 prescaler bit_offset: 4 bit_size: 3 - enum: DPPRE + enum: PPRE - name: D1CPRE description: D1 domain Core prescaler bit_offset: 8 @@ -3169,12 +3169,12 @@ fieldset/D2CFGR: description: D2 domain APB1 prescaler bit_offset: 4 bit_size: 3 - enum: DPPRE + enum: PPRE - name: D2PPRE2 description: D2 domain APB2 prescaler bit_offset: 8 bit_size: 3 - enum: DPPRE + enum: PPRE fieldset/D3AMR: description: RCC D3 Autonomous mode Register fields: @@ -3304,7 +3304,7 @@ fieldset/D3CFGR: description: D3 domain APB4 prescaler bit_offset: 4 bit_size: 3 - enum: DPPRE + enum: PPRE fieldset/GCR: description: Global Control Register fields: @@ -3785,7 +3785,7 @@ enum/DIVP: - name: Div128 description: pll_p_ck = vco_ck / 128 value: 127 -enum/DPPRE: +enum/PPRE: bit_size: 3 variants: - name: Div1 diff --git a/data/registers/rcc_h7ab.yaml b/data/registers/rcc_h7ab.yaml index 0704432..394d53d 100644 --- a/data/registers/rcc_h7ab.yaml +++ b/data/registers/rcc_h7ab.yaml @@ -2042,7 +2042,7 @@ fieldset/D1CFGR: description: D1 domain APB3 prescaler bit_offset: 4 bit_size: 3 - enum: DPPRE + enum: PPRE - name: D1CPRE description: D1 domain Core prescaler bit_offset: 8 @@ -2141,12 +2141,12 @@ fieldset/D2CFGR: description: D2 domain APB1 prescaler bit_offset: 4 bit_size: 3 - enum: DPPRE + enum: PPRE - name: D2PPRE2 description: D2 domain APB2 prescaler bit_offset: 8 bit_size: 3 - enum: DPPRE + enum: PPRE fieldset/D3AMR: description: RCC D3 Autonomous mode Register fields: @@ -2270,7 +2270,7 @@ fieldset/D3CFGR: description: D3 domain APB4 prescaler bit_offset: 4 bit_size: 3 - enum: DPPRE + enum: PPRE fieldset/GCR: description: Global Control Register fields: @@ -2720,7 +2720,7 @@ enum/DIVP: - name: Div128 description: pll_p_ck = vco_ck / 128 value: 127 -enum/DPPRE: +enum/PPRE: bit_size: 3 variants: - name: Div1 diff --git a/data/registers/rcc_wb.yaml b/data/registers/rcc_wb.yaml index f311360..7239fa6 100644 --- a/data/registers/rcc_wb.yaml +++ b/data/registers/rcc_wb.yaml @@ -1160,14 +1160,17 @@ fieldset/CFGR: description: AHB prescaler bit_offset: 4 bit_size: 4 + enum: HPRE - name: PPRE1 description: PB low-speed prescaler (APB1) bit_offset: 8 bit_size: 3 + enum: PPRE - name: PPRE2 description: APB high-speed prescaler (APB2) bit_offset: 11 bit_size: 3 + enum: PPRE - name: STOPWUCK description: Wakeup from Stop and CSS backup clock selection bit_offset: 15 @@ -1651,3 +1654,66 @@ enum/RTCSEL: - name: HSE description: HSE oscillator clock divided by 32 selected value: 3 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 +enum/HPRE: + bit_size: 4 + variants: + - name: Div1 + description: DCLK not divided + value: 0x0 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 0x08 + - name: Div3 + description: hclk = SYSCLK divided by 3 + value: 0x01 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 0x09 + - name: Div5 + description: hclk = SYSCLK divided by 5 + value: 0x02 + - name: Div6 + description: hclk = SYSCLK divided by 6 + value: 0x05 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 0x0a + - name: Div10 + description: hclk = SYSCLK divided by 8 + value: 0x06 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 0x0b + - name: Div32 + description: hclk = SYSCLK divided by 32 + value: 0x07 + - name: Div64 + description: hclk = SYSCLK divided by 64 + value: 0x0c + - name: Div128 + description: hclk = SYSCLK divided by 128 + value: 0x0d + - name: Div256 + description: hclk = SYSCLK divided by 256 + value: 0x0e + - name: Div512 + description: hclk = SYSCLK divided by 256 + value: 0x0f \ No newline at end of file diff --git a/data/registers/rcc_wl5.yaml b/data/registers/rcc_wl5.yaml index 5acb71c..80870ba 100644 --- a/data/registers/rcc_wl5.yaml +++ b/data/registers/rcc_wl5.yaml @@ -1079,14 +1079,17 @@ fieldset/CFGR: description: HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.) bit_offset: 4 bit_size: 4 + enum: HPRE - name: PPRE1 description: PCLK1 low-speed prescaler (APB1) bit_offset: 8 bit_size: 3 + enum: PPRE - name: PPRE2 description: PCLK2 high-speed prescaler (APB2) bit_offset: 11 bit_size: 3 + enum: PPRE - name: STOPWUCK description: Wakeup from Stop and CSS backup clock selection bit_offset: 15 @@ -1450,3 +1453,66 @@ enum/RTCSEL: - name: HSE description: HSE oscillator clock divided by 32 selected value: 3 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 +enum/HPRE: + bit_size: 4 + variants: + - name: Div1 + description: DCLK not divided + value: 0x0 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 0x08 + - name: Div3 + description: hclk = SYSCLK divided by 3 + value: 0x01 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 0x09 + - name: Div5 + description: hclk = SYSCLK divided by 5 + value: 0x02 + - name: Div6 + description: hclk = SYSCLK divided by 6 + value: 0x05 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 0x0a + - name: Div10 + description: hclk = SYSCLK divided by 8 + value: 0x06 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 0x0b + - name: Div32 + description: hclk = SYSCLK divided by 32 + value: 0x07 + - name: Div64 + description: hclk = SYSCLK divided by 64 + value: 0x0c + - name: Div128 + description: hclk = SYSCLK divided by 128 + value: 0x0d + - name: Div256 + description: hclk = SYSCLK divided by 256 + value: 0x0e + - name: Div512 + description: hclk = SYSCLK divided by 256 + value: 0x0f \ No newline at end of file diff --git a/data/registers/rcc_wle.yaml b/data/registers/rcc_wle.yaml index ffdd52e..fbfed51 100644 --- a/data/registers/rcc_wle.yaml +++ b/data/registers/rcc_wle.yaml @@ -709,14 +709,17 @@ fieldset/CFGR: description: HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.) bit_offset: 4 bit_size: 4 + enum: HPRE - name: PPRE1 description: PCLK1 low-speed prescaler (APB1) bit_offset: 8 bit_size: 3 + enum: PPRE - name: PPRE2 description: PCLK2 high-speed prescaler (APB2) bit_offset: 11 bit_size: 3 + enum: PPRE - name: STOPWUCK description: Wakeup from Stop and CSS backup clock selection bit_offset: 15 @@ -1072,3 +1075,66 @@ enum/RTCSEL: - name: HSE description: HSE oscillator clock divided by 32 selected value: 3 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: HCLK not divided + value: 0 + - name: Div2 + description: HCLK divided by 2 + value: 4 + - name: Div4 + description: HCLK divided by 4 + value: 5 + - name: Div8 + description: HCLK divided by 8 + value: 6 + - name: Div16 + description: HCLK divided by 16 + value: 7 +enum/HPRE: + bit_size: 4 + variants: + - name: Div1 + description: DCLK not divided + value: 0x0 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 0x08 + - name: Div3 + description: hclk = SYSCLK divided by 3 + value: 0x01 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 0x09 + - name: Div5 + description: hclk = SYSCLK divided by 5 + value: 0x02 + - name: Div6 + description: hclk = SYSCLK divided by 6 + value: 0x05 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 0x0a + - name: Div10 + description: hclk = SYSCLK divided by 8 + value: 0x06 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 0x0b + - name: Div32 + description: hclk = SYSCLK divided by 32 + value: 0x07 + - name: Div64 + description: hclk = SYSCLK divided by 64 + value: 0x0c + - name: Div128 + description: hclk = SYSCLK divided by 128 + value: 0x0d + - name: Div256 + description: hclk = SYSCLK divided by 256 + value: 0x0e + - name: Div512 + description: hclk = SYSCLK divided by 256 + value: 0x0f \ No newline at end of file From 2f97514774e3a184dfb2058219417929500aad6e Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sun, 17 Sep 2023 03:41:32 +0200 Subject: [PATCH 47/54] pwr: add all VOS enums. --- data/registers/pwr_g0.yaml | 8 + data/registers/pwr_g4.yaml | 8 + .../{pwr_h7smps.yaml => pwr_h7rm0399.yaml} | 10 + .../{pwr_h7.yaml => pwr_h7rm0433.yaml} | 12 +- data/registers/pwr_h7rm0455.yaml | 275 +++++++ data/registers/pwr_h7rm0468.yaml | 275 +++++++ data/registers/pwr_l0.yaml | 60 +- data/registers/pwr_l1.yaml | 13 + data/registers/pwr_u5.yaml | 8 +- data/registers/pwr_wb.yaml | 448 +++++++++++ data/registers/pwr_wb55.yaml | 741 ++---------------- data/registers/pwr_wl5.yaml | 277 +------ data/registers/rcc_h7.yaml | 36 +- data/registers/rcc_h7ab.yaml | 36 +- data/registers/rcc_wb.yaml | 110 +-- data/registers/rcc_wl5.yaml | 110 +-- data/registers/rcc_wle.yaml | 110 +-- data/registers/syscfg_h7.yaml | 11 - data/registers/syscfg_h7od.yaml | 409 ++++++++++ stm32-data-gen/src/chips.rs | 13 +- 20 files changed, 1728 insertions(+), 1242 deletions(-) rename data/registers/{pwr_h7smps.yaml => pwr_h7rm0399.yaml} (98%) rename data/registers/{pwr_h7.yaml => pwr_h7rm0433.yaml} (98%) create mode 100644 data/registers/pwr_h7rm0455.yaml create mode 100644 data/registers/pwr_h7rm0468.yaml create mode 100644 data/registers/pwr_wb.yaml create mode 100644 data/registers/syscfg_h7od.yaml diff --git a/data/registers/pwr_g0.yaml b/data/registers/pwr_g0.yaml index 59dd168..886bc07 100644 --- a/data/registers/pwr_g0.yaml +++ b/data/registers/pwr_g0.yaml @@ -73,6 +73,7 @@ fieldset/CR1: description: Voltage scaling range selection bit_offset: 9 bit_size: 2 + enum: VOS - name: LPR description: Low-power run bit_offset: 14 @@ -201,3 +202,10 @@ fieldset/SR2: description: Power voltage detector output bit_offset: 11 bit_size: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Range1 + value: 1 + - name: Range2 + value: 2 diff --git a/data/registers/pwr_g4.yaml b/data/registers/pwr_g4.yaml index c3c257b..fbf8e5a 100644 --- a/data/registers/pwr_g4.yaml +++ b/data/registers/pwr_g4.yaml @@ -65,6 +65,7 @@ fieldset/CR1: description: Voltage scaling range selection bit_offset: 9 bit_size: 2 + enum: VOS - name: LPR description: Low-power run bit_offset: 14 @@ -280,3 +281,10 @@ fieldset/SR2: description: 'Peripheral voltage monitoring output: VDDA vs. 2.2 V' bit_offset: 15 bit_size: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Range1 + value: 1 + - name: Range2 + value: 2 diff --git a/data/registers/pwr_h7smps.yaml b/data/registers/pwr_h7rm0399.yaml similarity index 98% rename from data/registers/pwr_h7smps.yaml rename to data/registers/pwr_h7rm0399.yaml index 5d6032c..40bda89 100644 --- a/data/registers/pwr_h7smps.yaml +++ b/data/registers/pwr_h7rm0399.yaml @@ -220,6 +220,7 @@ fieldset/D3CR: description: 'Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling.' bit_offset: 14 bit_size: 2 + enum: VOS fieldset/WKUPCR: description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). fields: @@ -261,3 +262,12 @@ fieldset/WKUPFR: array: len: 6 stride: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Scale3 + value: 1 + - name: Scale2 + value: 2 + - name: Scale1 + value: 3 diff --git a/data/registers/pwr_h7.yaml b/data/registers/pwr_h7rm0433.yaml similarity index 98% rename from data/registers/pwr_h7.yaml rename to data/registers/pwr_h7rm0433.yaml index 44f6fd3..e7eb3e0 100644 --- a/data/registers/pwr_h7.yaml +++ b/data/registers/pwr_h7rm0433.yaml @@ -155,7 +155,7 @@ fieldset/CR3: bit_offset: 1 bit_size: 1 - name: SCUEN - description: SD converter Enable + description: Supply configuration update enable bit_offset: 2 bit_size: 1 - name: VBE @@ -208,6 +208,7 @@ fieldset/D3CR: description: 'Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling.' bit_offset: 14 bit_size: 2 + enum: VOS fieldset/WKUPCR: description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). fields: @@ -249,3 +250,12 @@ fieldset/WKUPFR: array: len: 6 stride: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Scale3 + value: 1 + - name: Scale2 + value: 2 + - name: Scale1 + value: 3 diff --git a/data/registers/pwr_h7rm0455.yaml b/data/registers/pwr_h7rm0455.yaml new file mode 100644 index 0000000..2d3943d --- /dev/null +++ b/data/registers/pwr_h7rm0455.yaml @@ -0,0 +1,275 @@ +block/PWR: + description: PWR + items: + - name: CR1 + description: PWR control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CSR1 + description: PWR control status register 1 + byte_offset: 4 + access: Read + fieldset: CSR1 + - name: CR2 + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. + byte_offset: 8 + fieldset: CR2 + - name: CR3 + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' + byte_offset: 12 + fieldset: CR3 + - name: CPUCR + description: This register allows controlling CPU1 power. + byte_offset: 16 + fieldset: CPUCR + - name: D3CR + description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software + byte_offset: 24 + fieldset: D3CR + - name: WKUPCR + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). + byte_offset: 32 + fieldset: WKUPCR + - name: WKUPFR + description: reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 36 + fieldset: WKUPFR + - name: WKUPEPR + description: Reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 40 + fieldset: WKUPEPR +fieldset/CPUCR: + description: This register allows controlling CPU1 power. + fields: + - name: PDDS_D1 + description: D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain. + bit_offset: 0 + bit_size: 1 + - name: PDDS_D2 + description: D2 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for D2 domain. + bit_offset: 1 + bit_size: 1 + - name: PDDS_D3 + description: System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain. + bit_offset: 2 + bit_size: 1 + - name: STOPF + description: STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit. + bit_offset: 5 + bit_size: 1 + - name: SBF + description: System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU1 CSSF bit + bit_offset: 6 + bit_size: 1 + - name: SBF_D1 + description: D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode. + bit_offset: 7 + bit_size: 1 + - name: SBF_D2 + description: D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode. + bit_offset: 8 + bit_size: 1 + - name: CSSF + description: Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware. + bit_offset: 9 + bit_size: 1 + - name: RUN_D3 + description: Keep system D3 domain in Run mode regardless of the CPU sub-systems modes + bit_offset: 11 + bit_size: 1 +fieldset/CR1: + description: PWR control register 1 + fields: + - name: LPDS + description: Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit) + bit_offset: 0 + bit_size: 1 + - name: PVDE + description: Programmable voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: 'Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.' + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers. + bit_offset: 8 + bit_size: 1 + - name: FLPS + description: Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode. + bit_offset: 9 + bit_size: 1 + - name: SVOS + description: System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance. + bit_offset: 14 + bit_size: 2 + - name: AVDEN + description: Peripheral voltage monitor on VDDA enable + bit_offset: 16 + bit_size: 1 + - name: ALS + description: Analog voltage detector level selection These bits select the voltage threshold detected by the AVD. + bit_offset: 17 + bit_size: 2 +fieldset/CR2: + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. + fields: + - name: BREN + description: Backup regulator enable When set, the Backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled. If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However, its content will be lost in Standby and VBAT modes. If BREN is set, the application must wait till the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM will be maintained in Standby and VBAT modes. + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: VBAT and temperature monitoring enable When set, the VBAT supply and temperature monitoring is enabled. + bit_offset: 4 + bit_size: 1 + - name: BRRDY + description: Backup regulator ready This bit is set by hardware to indicate that the Backup regulator is ready. + bit_offset: 16 + bit_size: 1 + - name: VBATL + description: VBAT level monitoring versus low threshold + bit_offset: 20 + bit_size: 1 + - name: VBATH + description: VBAT level monitoring versus high threshold + bit_offset: 21 + bit_size: 1 + - name: TEMPL + description: Temperature level monitoring versus low threshold + bit_offset: 22 + bit_size: 1 + - name: TEMPH + description: Temperature level monitoring versus high threshold + bit_offset: 23 + bit_size: 1 +fieldset/CR3: + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' + fields: + - name: BYPASS + description: Power management unit bypass + bit_offset: 0 + bit_size: 1 + - name: LDOEN + description: Low drop-out regulator enable + bit_offset: 1 + bit_size: 1 + - name: SDEN + description: SD converter Enable + bit_offset: 2 + bit_size: 1 + - name: SDEXTHP + description: Step-down converter forced ON and in High Power MR mode + bit_offset: 3 + bit_size: 1 + - name: SDLEVEL + description: Step-down converter voltage output level selection + bit_offset: 4 + bit_size: 2 + - name: VBE + description: VBAT charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: SDEXTRDY + description: SMPS step-down converter external supply ready + bit_offset: 16 + bit_size: 1 + - name: USB33DEN + description: VDD33USB voltage level detector enable. + bit_offset: 24 + bit_size: 1 + - name: USBREGEN + description: USB regulator enable. + bit_offset: 25 + bit_size: 1 + - name: USB33RDY + description: USB supply ready. + bit_offset: 26 + bit_size: 1 +fieldset/CSR1: + description: PWR control status register 1 + fields: + - name: PVDO + description: 'Programmable voltage detect output This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit. Note: since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set.' + bit_offset: 4 + bit_size: 1 + - name: ACTVOSRDY + description: Voltage levels ready bit for currently used VOS and SDLEVEL This bit is set to 1 by hardware when the voltage regulator and the SD converter are both disabled and Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: ACTVOS + description: VOS currently applied for VCORE voltage scaling selection. These bits reflect the last VOS value applied to the PMU. + bit_offset: 14 + bit_size: 2 + - name: AVDO + description: 'Analog voltage detector output on VDDA This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit. Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the AVDEN bit is set.' + bit_offset: 16 + bit_size: 1 +fieldset/D3CR: + description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software + fields: + - name: VOSRDY + description: VOS Ready bit for VCORE voltage scaling output selection. This bit is set to 1 by hardware when Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: VOS + description: 'Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling.' + bit_offset: 14 + bit_size: 2 + enum: VOS +fieldset/WKUPCR: + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). + fields: + - name: WKUPC + description: Clear Wakeup pin flag for WKUP. These bits are always read as 0. + bit_offset: 0 + bit_size: 6 +fieldset/WKUPEPR: + description: Reset only by system reset, not reset by wakeup from Standby mode + fields: + - name: WKUPEN + description: 'Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.' + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPP + description: Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin. + bit_offset: 8 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPPUPD + description: Wakeup pin pull configuration + bit_offset: 16 + bit_size: 2 + array: + len: 6 + stride: 2 +fieldset/WKUPFR: + description: reset only by system reset, not reset by wakeup from Standby mode + fields: + - name: WKUPF + description: Wakeup pin WKUPF flag. This bit is set by hardware and cleared only by a Reset pin or by setting the WKUPCn+1 bit in the PWR wakeup clear register (PWR_WKUPCR). + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Scale3 + value: 0 + - name: Scale2 + value: 1 + - name: Scale1 + value: 2 + - name: Scale0 + value: 3 diff --git a/data/registers/pwr_h7rm0468.yaml b/data/registers/pwr_h7rm0468.yaml new file mode 100644 index 0000000..7bb5267 --- /dev/null +++ b/data/registers/pwr_h7rm0468.yaml @@ -0,0 +1,275 @@ +block/PWR: + description: PWR + items: + - name: CR1 + description: PWR control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CSR1 + description: PWR control status register 1 + byte_offset: 4 + access: Read + fieldset: CSR1 + - name: CR2 + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. + byte_offset: 8 + fieldset: CR2 + - name: CR3 + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' + byte_offset: 12 + fieldset: CR3 + - name: CPUCR + description: This register allows controlling CPU1 power. + byte_offset: 16 + fieldset: CPUCR + - name: D3CR + description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software + byte_offset: 24 + fieldset: D3CR + - name: WKUPCR + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). + byte_offset: 32 + fieldset: WKUPCR + - name: WKUPFR + description: reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 36 + fieldset: WKUPFR + - name: WKUPEPR + description: Reset only by system reset, not reset by wakeup from Standby mode + byte_offset: 40 + fieldset: WKUPEPR +fieldset/CPUCR: + description: This register allows controlling CPU1 power. + fields: + - name: PDDS_D1 + description: D1 domain Power Down Deepsleep selection. This bit allows CPU1 to define the Deepsleep mode for D1 domain. + bit_offset: 0 + bit_size: 1 + - name: PDDS_D2 + description: D2 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for D2 domain. + bit_offset: 1 + bit_size: 1 + - name: PDDS_D3 + description: System D3 domain Power Down Deepsleep. This bit allows CPU1 to define the Deepsleep mode for System D3 domain. + bit_offset: 2 + bit_size: 1 + - name: STOPF + description: STOP flag This bit is set by hardware and cleared only by any reset or by setting the CPU1 CSSF bit. + bit_offset: 5 + bit_size: 1 + - name: SBF + description: System Standby flag This bit is set by hardware and cleared only by a POR (Power-on Reset) or by setting the CPU1 CSSF bit + bit_offset: 6 + bit_size: 1 + - name: SBF_D1 + description: D1 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D1 domain is no longer in DStandby mode. + bit_offset: 7 + bit_size: 1 + - name: SBF_D2 + description: D2 domain DStandby flag This bit is set by hardware and cleared by any system reset or by setting the CPU1 CSSF bit. Once set, this bit can be cleared only when the D2 domain is no longer in DStandby mode. + bit_offset: 8 + bit_size: 1 + - name: CSSF + description: Clear D1 domain CPU1 Standby, Stop and HOLD flags (always read as 0) This bit is cleared to 0 by hardware. + bit_offset: 9 + bit_size: 1 + - name: RUN_D3 + description: Keep system D3 domain in Run mode regardless of the CPU sub-systems modes + bit_offset: 11 + bit_size: 1 +fieldset/CR1: + description: PWR control register 1 + fields: + - name: LPDS + description: Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit) + bit_offset: 0 + bit_size: 1 + - name: PVDE + description: Programmable voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: 'Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.' + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers. + bit_offset: 8 + bit_size: 1 + - name: FLPS + description: Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode. + bit_offset: 9 + bit_size: 1 + - name: SVOS + description: System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance. + bit_offset: 14 + bit_size: 2 + - name: AVDEN + description: Peripheral voltage monitor on VDDA enable + bit_offset: 16 + bit_size: 1 + - name: ALS + description: Analog voltage detector level selection These bits select the voltage threshold detected by the AVD. + bit_offset: 17 + bit_size: 2 +fieldset/CR2: + description: This register is not reset by wakeup from Standby mode, RESET signal and VDD POR. It is only reset by VSW POR and VSWRST reset. This register shall not be accessed when VSWRST bit in RCC_BDCR register resets the VSW domain.After reset, PWR_CR2 register is write-protected. Prior to modifying its content, the DBP bit in PWR_CR1 register must be set to disable the write protection. + fields: + - name: BREN + description: Backup regulator enable When set, the Backup regulator (used to maintain the backup RAM content in Standby and VBAT modes) is enabled. If BREN is reset, the backup regulator is switched off. The backup RAM can still be used in Run and Stop modes. However, its content will be lost in Standby and VBAT modes. If BREN is set, the application must wait till the Backup Regulator Ready flag (BRRDY) is set to indicate that the data written into the SRAM will be maintained in Standby and VBAT modes. + bit_offset: 0 + bit_size: 1 + - name: MONEN + description: VBAT and temperature monitoring enable When set, the VBAT supply and temperature monitoring is enabled. + bit_offset: 4 + bit_size: 1 + - name: BRRDY + description: Backup regulator ready This bit is set by hardware to indicate that the Backup regulator is ready. + bit_offset: 16 + bit_size: 1 + - name: VBATL + description: VBAT level monitoring versus low threshold + bit_offset: 20 + bit_size: 1 + - name: VBATH + description: VBAT level monitoring versus high threshold + bit_offset: 21 + bit_size: 1 + - name: TEMPL + description: Temperature level monitoring versus low threshold + bit_offset: 22 + bit_size: 1 + - name: TEMPH + description: Temperature level monitoring versus high threshold + bit_offset: 23 + bit_size: 1 +fieldset/CR3: + description: 'Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.' + fields: + - name: BYPASS + description: Power management unit bypass + bit_offset: 0 + bit_size: 1 + - name: LDOEN + description: Low drop-out regulator enable + bit_offset: 1 + bit_size: 1 + - name: SDEN + description: SD converter Enable + bit_offset: 2 + bit_size: 1 + - name: SDEXTHP + description: Step-down converter forced ON and in High Power MR mode + bit_offset: 3 + bit_size: 1 + - name: SDLEVEL + description: Step-down converter voltage output level selection + bit_offset: 4 + bit_size: 2 + - name: VBE + description: VBAT charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: SDEXTRDY + description: SMPS step-down converter external supply ready + bit_offset: 16 + bit_size: 1 + - name: USB33DEN + description: VDD33USB voltage level detector enable. + bit_offset: 24 + bit_size: 1 + - name: USBREGEN + description: USB regulator enable. + bit_offset: 25 + bit_size: 1 + - name: USB33RDY + description: USB supply ready. + bit_offset: 26 + bit_size: 1 +fieldset/CSR1: + description: PWR control status register 1 + fields: + - name: PVDO + description: 'Programmable voltage detect output This bit is set and cleared by hardware. It is valid only if the PVD has been enabled by the PVDE bit. Note: since the PVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the PVDE bit is set.' + bit_offset: 4 + bit_size: 1 + - name: ACTVOSRDY + description: Voltage levels ready bit for currently used VOS and SDLEVEL This bit is set to 1 by hardware when the voltage regulator and the SD converter are both disabled and Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: ACTVOS + description: VOS currently applied for VCORE voltage scaling selection. These bits reflect the last VOS value applied to the PMU. + bit_offset: 14 + bit_size: 2 + - name: AVDO + description: 'Analog voltage detector output on VDDA This bit is set and cleared by hardware. It is valid only if AVD on VDDA is enabled by the AVDEN bit. Note: Since the AVD is disabled in Standby mode, this bit is equal to 0 after Standby or reset until the AVDEN bit is set.' + bit_offset: 16 + bit_size: 1 +fieldset/D3CR: + description: This register allows controlling D3 domain power.Following reset VOSRDY will be read 1 by software + fields: + - name: VOSRDY + description: VOS Ready bit for VCORE voltage scaling output selection. This bit is set to 1 by hardware when Bypass mode is selected in PWR control register 3 (PWR_CR3). + bit_offset: 13 + bit_size: 1 + - name: VOS + description: 'Voltage scaling selection according to performance These bits control the VCORE voltage level and allow to obtains the best trade-off between power consumption and performance: When increasing the performance, the voltage scaling shall be changed before increasing the system frequency. When decreasing performance, the system frequency shall first be decreased before changing the voltage scaling.' + bit_offset: 14 + bit_size: 2 + enum: VOS +fieldset/WKUPCR: + description: reset only by system reset, not reset by wakeup from Standby mode5 wait states are required when writing this register (when clearing a WKUPF bit in PWR_WKUPFR, the AHB write access will complete after the WKUPF has been cleared). + fields: + - name: WKUPC + description: Clear Wakeup pin flag for WKUP. These bits are always read as 0. + bit_offset: 0 + bit_size: 6 +fieldset/WKUPEPR: + description: Reset only by system reset, not reset by wakeup from Standby mode + fields: + - name: WKUPEN + description: 'Enable Wakeup Pin WKUPn+1 Each bit is set and cleared by software. Note: An additional wakeup event is detected if WKUPn+1 pin is enabled (by setting the WKUPENn+1 bit) when WKUPn+1 pin level is already high when WKUPPn+1 selects rising edge, or low when WKUPPn+1 selects falling edge.' + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPP + description: Wakeup pin polarity bit for WKUPn-7 These bits define the polarity used for event detection on WKUPn-7 external wakeup pin. + bit_offset: 8 + bit_size: 1 + array: + len: 6 + stride: 1 + - name: WKUPPUPD + description: Wakeup pin pull configuration + bit_offset: 16 + bit_size: 2 + array: + len: 6 + stride: 2 +fieldset/WKUPFR: + description: reset only by system reset, not reset by wakeup from Standby mode + fields: + - name: WKUPF + description: Wakeup pin WKUPF flag. This bit is set by hardware and cleared only by a Reset pin or by setting the WKUPCn+1 bit in the PWR wakeup clear register (PWR_WKUPCR). + bit_offset: 0 + bit_size: 1 + array: + len: 6 + stride: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Scale0 + value: 0 + - name: Scale3 + value: 1 + - name: Scale2 + value: 2 + - name: Scale1 + value: 3 diff --git a/data/registers/pwr_l0.yaml b/data/registers/pwr_l0.yaml index d5b1545..caf0fa2 100644 --- a/data/registers/pwr_l0.yaml +++ b/data/registers/pwr_l0.yaml @@ -164,69 +164,15 @@ enum/PLS: - name: External description: External input analog voltage (Compare internally to VREFINT) value: 7 -enum/PVDOR: - bit_size: 1 - variants: - - name: AboveThreshold - description: VDD is higher than the PVD threshold selected with the PLS[2:0] bits - value: 0 - - name: BelowThreshold - description: VDD is lower than the PVD threshold selected with the PLS[2:0] bits - value: 1 -enum/REGLPFR: - bit_size: 1 - variants: - - name: Ready - description: Regulator is ready in Main mode - value: 0 - - name: NotReady - description: Regulator voltage is in low-power mode - value: 1 -enum/SBFR: - bit_size: 1 - variants: - - name: NoStandbyEvent - description: Device has not been in Standby mode - value: 0 - - name: StandbyEvent - description: Device has been in Standby mode - value: 1 enum/VOS: bit_size: 2 variants: - - name: V1_8 + - name: Range1 description: 1.8 V (range 1) value: 1 - - name: V1_5 + - name: Range2 description: 1.5 V (range 2) value: 2 - - name: V1_2 + - name: Range3 description: 1.2 V (range 3) value: 3 -enum/VOSFR: - bit_size: 1 - variants: - - name: Ready - description: Regulator is ready in the selected voltage range - value: 0 - - name: NotReady - description: Regulator voltage output is changing to the required VOS level - value: 1 -enum/VREFINTRDYFR: - bit_size: 1 - variants: - - name: NotReady - description: VREFINT is OFF - value: 0 - - name: Ready - description: VREFINT is ready - value: 1 -enum/WUFR: - bit_size: 1 - variants: - - name: NoWakeupEvent - description: No wakeup event occurred - value: 0 - - name: WakeupEvent - description: A wakeup event was received from the WKUP pin or from the RTC alarm (Alarm A or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup) - value: 1 diff --git a/data/registers/pwr_l1.yaml b/data/registers/pwr_l1.yaml index d81ef0b..4fd0e2a 100644 --- a/data/registers/pwr_l1.yaml +++ b/data/registers/pwr_l1.yaml @@ -53,6 +53,7 @@ fieldset/CR: description: Voltage scaling range selection bit_offset: 11 bit_size: 2 + enum: VOS - name: LPRUN description: Low power run mode bit_offset: 14 @@ -100,3 +101,15 @@ enum/PDDS: - name: STANDBY_MODE description: Enter Standby mode when the CPU enters deepsleep value: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Range1 + description: Range 1 + value: 1 + - name: Range2 + description: Range 2 + value: 2 + - name: Range3 + description: Range 3 + value: 3 diff --git a/data/registers/pwr_u5.yaml b/data/registers/pwr_u5.yaml index 8984ae6..334724f 100644 --- a/data/registers/pwr_u5.yaml +++ b/data/registers/pwr_u5.yaml @@ -823,16 +823,16 @@ enum/VBRS: enum/VOS: bit_size: 2 variants: - - name: B_0x0 + - name: Range4 description: Range 4 (lowest power) value: 0 - - name: B_0x1 + - name: Range3 description: Range 3 value: 1 - - name: B_0x2 + - name: Range2 description: Range 2 value: 2 - - name: B_0x3 + - name: Range1 description: Range 1 (highest frequency). This value cannot be written when VCOREMEN = 1 in TAMP_OR register. value: 3 enum/WUPP: diff --git a/data/registers/pwr_wb.yaml b/data/registers/pwr_wb.yaml new file mode 100644 index 0000000..cd8a526 --- /dev/null +++ b/data/registers/pwr_wb.yaml @@ -0,0 +1,448 @@ +block/PWR: + description: Power control + items: + - name: CR1 + description: Power control register 1 + byte_offset: 0 + fieldset: CR1 + - name: CR2 + description: Power control register 2 + byte_offset: 4 + fieldset: CR2 + - name: CR3 + description: Power control register 3 + byte_offset: 8 + fieldset: CR3 + - name: CR4 + description: Power control register 4 + byte_offset: 12 + fieldset: CR4 + - name: SR1 + description: Power status register 1 + byte_offset: 16 + access: Read + fieldset: SR1 + - name: SR2 + description: Power status register 2 + byte_offset: 20 + access: Read + fieldset: SR2 + - name: SCR + description: Power status clear register + byte_offset: 24 + access: Write + fieldset: SCR + - name: CR5 + description: Power control register 5 + byte_offset: 28 + fieldset: CR5 + - name: PUCRA + description: Power Port A pull-up control register + byte_offset: 32 + fieldset: PXCR + - name: PDCRA + description: Power Port A pull-down control register + byte_offset: 36 + fieldset: PXCR + - name: PUCRB + description: Power Port B pull-up control register + byte_offset: 40 + fieldset: PXCR + - name: PDCRB + description: Power Port B pull-down control register + byte_offset: 44 + fieldset: PXCR + - name: PUCRC + description: Power Port C pull-up control register + byte_offset: 48 + fieldset: PXCR + - name: PDCRC + description: Power Port C pull-down control register + byte_offset: 52 + fieldset: PXCR + - name: PUCRD + description: Power Port D pull-up control register + byte_offset: 56 + fieldset: PXCR + - name: PDCRD + description: Power Port D pull-down control register + byte_offset: 60 + fieldset: PXCR + - name: PUCRE + description: Power Port E pull-up control register + byte_offset: 64 + fieldset: PXCR + - name: PDCRE + description: Power Port E pull-down control register + byte_offset: 68 + fieldset: PXCR + - name: PUCRH + description: Power Port H pull-up control register + byte_offset: 88 + fieldset: PXCR + - name: PDCRH + description: Power Port H pull-down control register + byte_offset: 92 + fieldset: PXCR + - name: C2CR1 + description: CPU2 Power control register 1 + byte_offset: 128 + fieldset: C2CR1 + - name: C2CR3 + description: CPU2 Power control register 3 + byte_offset: 132 + fieldset: C2CR3 + - name: EXTSCR + description: Power status clear register + byte_offset: 136 + fieldset: EXTSCR +fieldset/C2CR1: + description: CPU2 Power control register 1 + fields: + - name: LPMS + description: Low-power mode selection for CPU2 + bit_offset: 0 + bit_size: 3 + - name: FPDR + description: Flash power down mode during LPRun for CPU2 + bit_offset: 4 + bit_size: 1 + - name: FPDS + description: Flash power down mode during LPSleep for CPU2 + bit_offset: 5 + bit_size: 1 + - name: BLEEWKUP + description: BLE external wakeup signal + bit_offset: 14 + bit_size: 1 + - name: _802EWKUP + description: 802.15.4 external wakeup signal + bit_offset: 15 + bit_size: 1 +fieldset/C2CR3: + description: CPU2 Power control register 3 + fields: + - name: EWUP + description: Enable Wakeup pin + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: EBLEWUP + description: Enable BLE host wakeup interrupt for CPU2 + bit_offset: 9 + bit_size: 1 + - name: E802WUP + description: Enable 802.15.4 host wakeup interrupt for CPU2 + bit_offset: 10 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration for CPU2 + bit_offset: 12 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line for CPU2 + bit_offset: 15 + bit_size: 1 +fieldset/CR1: + description: Power control register 1 + fields: + - name: LPMS + description: Low-power mode selection for CPU1 + bit_offset: 0 + bit_size: 3 + - name: FPDR + description: Flash power down mode during LPRun for CPU1 + bit_offset: 4 + bit_size: 1 + - name: FPDS + description: Flash power down mode during LPsSleep for CPU1 + bit_offset: 5 + bit_size: 1 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 + - name: LPR + description: Low-power run + bit_offset: 14 + bit_size: 1 +fieldset/CR2: + description: Power control register 2 + fields: + - name: PVDE + description: Power voltage detector enable + bit_offset: 0 + bit_size: 1 + - name: PLS + description: Power voltage detector level selection + bit_offset: 1 + bit_size: 3 +fieldset/CR3: + description: Power control register 3 + fields: + - name: EWUP + description: Enable Wakeup pin + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: EBORHSDFB + description: Enable BORH and Step Down counverter forced in Bypass interrups for CPU1 + bit_offset: 8 + bit_size: 1 + - name: RRS + description: SRAM2a retention in Standby mode + bit_offset: 9 + bit_size: 1 + - name: APC + description: Apply pull-up and pull-down configuration + bit_offset: 10 + bit_size: 1 + - name: EBLEA + description: Enable BLE end of activity interrupt for CPU1 + bit_offset: 11 + bit_size: 1 + - name: ECRPE + description: Enable critical radio phase end of activity interrupt for CPU1 + bit_offset: 12 + bit_size: 1 + - name: E802A + description: Enable end of activity interrupt for CPU1 + bit_offset: 13 + bit_size: 1 + - name: EC2H + description: Enable CPU2 Hold interrupt for CPU1 + bit_offset: 14 + bit_size: 1 + - name: EIWUL + description: Enable internal wakeup line for CPU1 + bit_offset: 15 + bit_size: 1 +fieldset/CR4: + description: Power control register 4 + fields: + - name: WP1 + description: Wakeup pin WKUP1 polarity + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: VBE + description: VBAT battery charging enable + bit_offset: 8 + bit_size: 1 + - name: VBRS + description: VBAT battery charging resistor selection + bit_offset: 9 + bit_size: 1 + - name: C2BOOT + description: BOOT CPU2 after reset or wakeup from Stop or Standby modes + bit_offset: 15 + bit_size: 1 +fieldset/CR5: + description: Power control register 5 + fields: + - name: SDVOS + description: Step Down converter voltage output scaling + bit_offset: 0 + bit_size: 4 + - name: SDSC + description: Step Down converter supplt startup current selection + bit_offset: 4 + bit_size: 3 + - name: BORHC + description: BORH configuration selection + bit_offset: 8 + bit_size: 1 + - name: SMPSCFG + description: VOS configuration selection (non user) + bit_offset: 9 + bit_size: 1 + - name: SDBEN + description: Enable Step Down converter Bypass mode enabled + bit_offset: 14 + bit_size: 1 + - name: SDEB + description: Enable Step Down converter SMPS mode enabled + bit_offset: 15 + bit_size: 1 +fieldset/EXTSCR: + description: Power status clear register + fields: + - name: C1CSSF + description: Clear CPU1 Stop Standby flags + bit_offset: 0 + bit_size: 1 + - name: C2CSSF + description: Clear CPU2 Stop Standby flags + bit_offset: 1 + bit_size: 1 + - name: CCRPF + description: Clear Critical Radio system phase + bit_offset: 2 + bit_size: 1 + - name: C1SBF + description: System Standby flag for CPU1 + bit_offset: 8 + bit_size: 1 + - name: C1STOPF + description: System Stop flag for CPU1 + bit_offset: 9 + bit_size: 1 + - name: C2SBF + description: System Standby flag for CPU2 + bit_offset: 10 + bit_size: 1 + - name: C2STOPF + description: System Stop flag for CPU2 + bit_offset: 11 + bit_size: 1 + - name: CRPF + description: Critical Radio system phase + bit_offset: 13 + bit_size: 1 + - name: C1DS + description: CPU1 deepsleep mode + bit_offset: 14 + bit_size: 1 + - name: C2DS + description: CPU2 deepsleep mode + bit_offset: 15 + bit_size: 1 +fieldset/PXCR: + description: Power Port pull-up/down control register + fields: + - name: PD + description: Port A pull-up/down bit y (y=0..15) + bit_offset: 0 + bit_size: 1 + array: + len: 16 + stride: 1 +fieldset/SCR: + description: Power status clear register + fields: + - name: CWUF + description: Clear wakeup flag 1 + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: CSMPSFBF + description: Clear SMPS Step Down converter forced in Bypass interrupt flag + bit_offset: 7 + bit_size: 1 + - name: CBORHF + description: Clear BORH interrupt flag + bit_offset: 8 + bit_size: 1 + - name: CBLEWUF + description: Clear BLE wakeup interrupt flag + bit_offset: 9 + bit_size: 1 + - name: C802WUF + description: Clear 802.15.4 wakeup interrupt flag + bit_offset: 10 + bit_size: 1 + - name: CCRPEF + description: Clear critical radio phase end of activity interrupt flag + bit_offset: 11 + bit_size: 1 + - name: CBLEAF + description: Clear BLE end of activity interrupt flag + bit_offset: 12 + bit_size: 1 + - name: C802AF + description: Clear 802.15.4 end of activity interrupt flag + bit_offset: 13 + bit_size: 1 + - name: CC2HF + description: Clear CPU2 Hold interrupt flag + bit_offset: 14 + bit_size: 1 +fieldset/SR1: + description: Power status register 1 + fields: + - name: CWUF + description: Wakeup flag 1 + bit_offset: 0 + bit_size: 1 + array: + len: 5 + stride: 1 + - name: SDFBF + description: Step Down converter forced in Bypass interrupt flag + bit_offset: 7 + bit_size: 1 + - name: BORHF + description: BORH interrupt flag + bit_offset: 8 + bit_size: 1 + - name: BLEWUF + description: BLE wakeup interrupt flag + bit_offset: 9 + bit_size: 1 + - name: _802WUF + description: 802.15.4 wakeup interrupt flag + bit_offset: 10 + bit_size: 1 + - name: CRPEF + description: Enable critical radio phase end of activity interrupt flag + bit_offset: 11 + bit_size: 1 + - name: BLEAF + description: BLE end of activity interrupt flag + bit_offset: 12 + bit_size: 1 + - name: AF802 + description: 802.15.4 end of activity interrupt flag + bit_offset: 13 + bit_size: 1 + - name: C2HF + description: CPU2 Hold interrupt flag + bit_offset: 14 + bit_size: 1 + - name: WUFI + description: Internal Wakeup interrupt flag + bit_offset: 15 + bit_size: 1 +fieldset/SR2: + description: Power status register 2 + fields: + - name: SDBF + description: Step Down converter Bypass mode flag + bit_offset: 0 + bit_size: 1 + - name: SDSMPSF + description: Step Down converter SMPS mode flag + bit_offset: 1 + bit_size: 1 + - name: REGLPS + description: Low-power regulator started + bit_offset: 8 + bit_size: 1 + - name: REGLPF + description: Low-power regulator flag + bit_offset: 9 + bit_size: 1 + - name: VOSF + description: Voltage scaling flag + bit_offset: 10 + bit_size: 1 + - name: PVDO + description: Power voltage detector output + bit_offset: 11 + bit_size: 1 + - name: PVMO1 + description: 'Peripheral voltage monitoring output: VDDUSB vs. 1.2 V' + bit_offset: 12 + bit_size: 1 + - name: PVMO3 + description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' + bit_offset: 14 + bit_size: 1 diff --git a/data/registers/pwr_wb55.yaml b/data/registers/pwr_wb55.yaml index c371345..c652f2f 100644 --- a/data/registers/pwr_wb55.yaml +++ b/data/registers/pwr_wb55.yaml @@ -39,51 +39,51 @@ block/PWR: - name: PUCRA description: Power Port A pull-up control register byte_offset: 32 - fieldset: PUCRA + fieldset: PXCR - name: PDCRA description: Power Port A pull-down control register byte_offset: 36 - fieldset: PDCRA + fieldset: PXCR - name: PUCRB description: Power Port B pull-up control register byte_offset: 40 - fieldset: PUCRB + fieldset: PXCR - name: PDCRB description: Power Port B pull-down control register byte_offset: 44 - fieldset: PDCRB + fieldset: PXCR - name: PUCRC description: Power Port C pull-up control register byte_offset: 48 - fieldset: PUCRC + fieldset: PXCR - name: PDCRC description: Power Port C pull-down control register byte_offset: 52 - fieldset: PDCRC + fieldset: PXCR - name: PUCRD description: Power Port D pull-up control register byte_offset: 56 - fieldset: PUCRD + fieldset: PXCR - name: PDCRD description: Power Port D pull-down control register byte_offset: 60 - fieldset: PDCRD + fieldset: PXCR - name: PUCRE description: Power Port E pull-up control register byte_offset: 64 - fieldset: PUCRE + fieldset: PXCR - name: PDCRE description: Power Port E pull-down control register byte_offset: 68 - fieldset: PDCRE + fieldset: PXCR - name: PUCRH description: Power Port H pull-up control register byte_offset: 88 - fieldset: PUCRH + fieldset: PXCR - name: PDCRH description: Power Port H pull-down control register byte_offset: 92 - fieldset: PDCRH + fieldset: PXCR - name: C2CR1 description: CPU2 Power control register 1 byte_offset: 128 @@ -122,26 +122,13 @@ fieldset/C2CR1: fieldset/C2CR3: description: CPU2 Power control register 3 fields: - - name: EWUP1 - description: Enable Wakeup pin WKUP1 for CPU2 + - name: EWUP + description: Enable Wakeup pin bit_offset: 0 bit_size: 1 - - name: EWUP2 - description: Enable Wakeup pin WKUP2 for CPU2 - bit_offset: 1 - bit_size: 1 - - name: EWUP3 - description: Enable Wakeup pin WKUP3 for CPU2 - bit_offset: 2 - bit_size: 1 - - name: EWUP4 - description: Enable Wakeup pin WKUP4 for CPU2 - bit_offset: 3 - bit_size: 1 - - name: EWUP5 - description: Enable Wakeup pin WKUP5 for CPU2 - bit_offset: 4 - bit_size: 1 + array: + len: 5 + stride: 1 - name: EBLEWUP description: Enable BLE host wakeup interrupt for CPU2 bit_offset: 9 @@ -181,6 +168,7 @@ fieldset/CR1: description: Voltage scaling range selection bit_offset: 9 bit_size: 2 + enum: VOS - name: LPR description: Low-power run bit_offset: 14 @@ -211,26 +199,13 @@ fieldset/CR2: fieldset/CR3: description: Power control register 3 fields: - - name: EWUP1 - description: Enable Wakeup pin WKUP1 + - name: EWUP + description: Enable Wakeup pin bit_offset: 0 bit_size: 1 - - name: EWUP2 - description: Enable Wakeup pin WKUP2 - bit_offset: 1 - bit_size: 1 - - name: EWUP3 - description: Enable Wakeup pin WKUP3 - bit_offset: 2 - bit_size: 1 - - name: EWUP4 - description: Enable Wakeup pin WKUP4 - bit_offset: 3 - bit_size: 1 - - name: EWUP5 - description: Enable Wakeup pin WKUP5 - bit_offset: 4 - bit_size: 1 + array: + len: 5 + stride: 1 - name: EBORHSDFB description: Enable BORH and Step Down counverter forced in Bypass interrups for CPU1 bit_offset: 8 @@ -270,22 +245,9 @@ fieldset/CR4: description: Wakeup pin WKUP1 polarity bit_offset: 0 bit_size: 1 - - name: WP2 - description: Wakeup pin WKUP2 polarity - bit_offset: 1 - bit_size: 1 - - name: WP3 - description: Wakeup pin WKUP3 polarity - bit_offset: 2 - bit_size: 1 - - name: WP4 - description: Wakeup pin WKUP4 polarity - bit_offset: 3 - bit_size: 1 - - name: WP5 - description: Wakeup pin WKUP5 polarity - bit_offset: 4 - bit_size: 1 + array: + len: 5 + stride: 1 - name: VBE description: VBAT battery charging enable bit_offset: 8 @@ -368,625 +330,26 @@ fieldset/EXTSCR: description: CPU2 deepsleep mode bit_offset: 15 bit_size: 1 -fieldset/PDCRA: - description: Power Port A pull-down control register +fieldset/PXCR: + description: Power Port pull-up/down control register fields: - - name: PD0 - description: Port A pull-down bit y (y=0..15) + - name: PD + description: Port A pull-up/down bit y (y=0..15) bit_offset: 0 bit_size: 1 - - name: PD1 - description: Port A pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port A pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port A pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port A pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PD5 - description: Port A pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port A pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port A pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port A pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port A pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port A pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port A pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port A pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD14 - description: Port A pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 -fieldset/PDCRB: - description: Power Port B pull-down control register - fields: - - name: PD0 - description: Port B pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port B pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port B pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port B pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD5 - description: Port B pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port B pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port B pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port B pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port B pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port B pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port B pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port B pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD13 - description: Port B pull-down bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PD14 - description: Port B pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PD15 - description: Port B pull-down bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PDCRC: - description: Power Port C pull-down control register - fields: - - name: PD0 - description: Port C pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port C pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port C pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port C pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port C pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PD5 - description: Port C pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port C pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port C pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port C pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port C pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port C pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port C pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port C pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD13 - description: Port C pull-down bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PD14 - description: Port C pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PD15 - description: Port C pull-down bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PDCRD: - description: Power Port D pull-down control register - fields: - - name: PD0 - description: Port D pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port D pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port D pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port D pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port D pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PD5 - description: Port D pull-down bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PD6 - description: Port D pull-down bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PD7 - description: Port D pull-down bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PD8 - description: Port D pull-down bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PD9 - description: Port D pull-down bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PD10 - description: Port D pull-down bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PD11 - description: Port D pull-down bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PD12 - description: Port D pull-down bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PD13 - description: Port D pull-down bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PD14 - description: Port D pull-down bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PD15 - description: Port D pull-down bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PDCRE: - description: Power Port E pull-down control register - fields: - - name: PD0 - description: Port E pull-down bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port E pull-down bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PD2 - description: Port E pull-down bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PD3 - description: Port E pull-down bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PD4 - description: Port E pull-down bit y (y=0..15) - bit_offset: 4 - bit_size: 1 -fieldset/PDCRH: - description: Power Port H pull-down control register - fields: - - name: PD0 - description: Port H pull-down bit y (y=0..1) - bit_offset: 0 - bit_size: 1 - - name: PD1 - description: Port H pull-down bit y (y=0..1) - bit_offset: 1 - bit_size: 1 - - name: PD3 - description: Port H pull-down bit y (y=0..1) - bit_offset: 3 - bit_size: 1 -fieldset/PUCRA: - description: Power Port A pull-up control register - fields: - - name: PU0 - description: Port A pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port A pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port A pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port A pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port A pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port A pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port A pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port A pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port A pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port A pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port A pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port A pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port A pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port A pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU15 - description: Port A pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PUCRB: - description: Power Port B pull-up control register - fields: - - name: PU0 - description: Port B pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port B pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port B pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port B pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port B pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port B pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port B pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port B pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port B pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port B pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port B pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port B pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port B pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port B pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU14 - description: Port B pull-up bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PU15 - description: Port B pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PUCRC: - description: Power Port C pull-up control register - fields: - - name: PU0 - description: Port C pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port C pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port C pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port C pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port C pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port C pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port C pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port C pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port C pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port C pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port C pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port C pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port C pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port C pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU14 - description: Port C pull-up bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PU15 - description: Port C pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PUCRD: - description: Power Port D pull-up control register - fields: - - name: PU0 - description: Port D pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port D pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port D pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port D pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port D pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 - - name: PU5 - description: Port D pull-up bit y (y=0..15) - bit_offset: 5 - bit_size: 1 - - name: PU6 - description: Port D pull-up bit y (y=0..15) - bit_offset: 6 - bit_size: 1 - - name: PU7 - description: Port D pull-up bit y (y=0..15) - bit_offset: 7 - bit_size: 1 - - name: PU8 - description: Port D pull-up bit y (y=0..15) - bit_offset: 8 - bit_size: 1 - - name: PU9 - description: Port D pull-up bit y (y=0..15) - bit_offset: 9 - bit_size: 1 - - name: PU10 - description: Port D pull-up bit y (y=0..15) - bit_offset: 10 - bit_size: 1 - - name: PU11 - description: Port D pull-up bit y (y=0..15) - bit_offset: 11 - bit_size: 1 - - name: PU12 - description: Port D pull-up bit y (y=0..15) - bit_offset: 12 - bit_size: 1 - - name: PU13 - description: Port D pull-up bit y (y=0..15) - bit_offset: 13 - bit_size: 1 - - name: PU14 - description: Port D pull-up bit y (y=0..15) - bit_offset: 14 - bit_size: 1 - - name: PU15 - description: Port D pull-up bit y (y=0..15) - bit_offset: 15 - bit_size: 1 -fieldset/PUCRE: - description: Power Port E pull-up control register - fields: - - name: PU0 - description: Port E pull-up bit y (y=0..15) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port E pull-up bit y (y=0..15) - bit_offset: 1 - bit_size: 1 - - name: PU2 - description: Port E pull-up bit y (y=0..15) - bit_offset: 2 - bit_size: 1 - - name: PU3 - description: Port E pull-up bit y (y=0..15) - bit_offset: 3 - bit_size: 1 - - name: PU4 - description: Port E pull-up bit y (y=0..15) - bit_offset: 4 - bit_size: 1 -fieldset/PUCRH: - description: Power Port H pull-up control register - fields: - - name: PU0 - description: Port H pull-up bit y (y=0..1) - bit_offset: 0 - bit_size: 1 - - name: PU1 - description: Port H pull-up bit y (y=0..1) - bit_offset: 1 - bit_size: 1 - - name: PU3 - description: Port H pull-up bit y (y=0..1) - bit_offset: 3 - bit_size: 1 + array: + len: 16 + stride: 1 fieldset/SCR: description: Power status clear register fields: - - name: CWUF1 + - name: CWUF description: Clear wakeup flag 1 bit_offset: 0 bit_size: 1 - - name: CWUF2 - description: Clear wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Clear wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Clear wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Clear wakeup flag 5 - bit_offset: 4 - bit_size: 1 + array: + len: 5 + stride: 1 - name: CSMPSFBF description: Clear SMPS Step Down converter forced in Bypass interrupt flag bit_offset: 7 @@ -1022,26 +385,13 @@ fieldset/SCR: fieldset/SR1: description: Power status register 1 fields: - - name: CWUF1 + - name: CWUF description: Wakeup flag 1 bit_offset: 0 bit_size: 1 - - name: CWUF2 - description: Wakeup flag 2 - bit_offset: 1 - bit_size: 1 - - name: CWUF3 - description: Wakeup flag 3 - bit_offset: 2 - bit_size: 1 - - name: CWUF4 - description: Wakeup flag 4 - bit_offset: 3 - bit_size: 1 - - name: CWUF5 - description: Wakeup flag 5 - bit_offset: 4 - bit_size: 1 + array: + len: 5 + stride: 1 - name: SDFBF description: Step Down converter forced in Bypass interrupt flag bit_offset: 7 @@ -1113,3 +463,12 @@ fieldset/SR2: description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' bit_offset: 14 bit_size: 1 +enum/VOS: + bit_size: 2 + variants: + - name: Range1 + description: Range 1 + value: 1 + - name: Range2 + description: Range 2 + value: 2 diff --git a/data/registers/pwr_wl5.yaml b/data/registers/pwr_wl5.yaml index 5b067bb..fc1cd2f 100644 --- a/data/registers/pwr_wl5.yaml +++ b/data/registers/pwr_wl5.yaml @@ -163,7 +163,6 @@ fieldset/CR2: description: Power voltage detector enable bit_offset: 0 bit_size: 1 - enum: PVDE - name: PLS description: Power voltage detector level selection. bit_offset: 1 @@ -195,7 +194,6 @@ fieldset/CR3: description: SRAM2 retention in Standby mode bit_offset: 9 bit_size: 1 - enum: RRS - name: APC description: Apply pull-up and pull-down configuration from CPU1 bit_offset: 10 @@ -204,12 +202,10 @@ fieldset/CR3: description: Enable Radio BUSY Wakeup from Standby for CPU1 bit_offset: 11 bit_size: 1 - enum: EWRFBUSY - name: EWRFIRQ - description: akeup for CPU1 + description: Wakeup for CPU1 bit_offset: 13 bit_size: 1 - enum: EWRFIRQ - name: EC2H description: nable CPU2 Hold interrupt for CPU1 bit_offset: 14 @@ -233,7 +229,6 @@ fieldset/CR4: description: VBAT battery charging enable bit_offset: 8 bit_size: 1 - enum: VBE - name: VBRS description: VBAT battery charging resistor selection bit_offset: 9 @@ -243,7 +238,6 @@ fieldset/CR4: description: Wakeup Radio BUSY polarity bit_offset: 11 bit_size: 1 - enum: WRFBUSYP - name: C2BOOT description: oot CPU2 after reset or wakeup from Stop or Standby modes. bit_offset: 15 @@ -255,12 +249,10 @@ fieldset/CR5: description: Enable Radio End Of Life detector enabled bit_offset: 14 bit_size: 1 - enum: RFEOLEN - name: SMPSEN description: Enable SMPS Step Down converter SMPS mode enabled. bit_offset: 15 bit_size: 1 - enum: SMPSEN fieldset/EXTSCR: description: Power extended status and status clear register fields: @@ -276,17 +268,14 @@ fieldset/EXTSCR: description: System Standby flag for CPU1. (no core states retained) bit_offset: 8 bit_size: 1 - enum: CSBF - name: C1STOP2F description: System Stop2 flag for CPU1. (partial core states retained) bit_offset: 9 bit_size: 1 - enum: CSTOPF - name: C1STOPF description: System Stop0, 1 flag for CPU1. (All core states retained) bit_offset: 10 bit_size: 1 - enum: CSTOPF - name: C2SBF description: ystem Standby flag for CPU2. (no core states retained) bit_offset: 11 @@ -364,17 +353,14 @@ fieldset/SR1: array: len: 3 stride: 1 - enum: WUF - name: WPVDF description: Wakeup PVD flag bit_offset: 8 bit_size: 1 - enum: WPVDF - name: WRFBUSYF description: Radio BUSY wakeup flag bit_offset: 11 bit_size: 1 - enum: WRFBUSYF - name: C2HF description: PU2 Hold interrupt flag bit_offset: 14 @@ -383,7 +369,6 @@ fieldset/SR1: description: Internal wakeup interrupt flag bit_offset: 15 bit_size: 1 - enum: WUFI fieldset/SR2: description: Power status register 2 fields: @@ -395,62 +380,50 @@ fieldset/SR2: description: Radio BUSY signal status bit_offset: 1 bit_size: 1 - enum: RFBUSYS - name: RFBUSYMS description: Radio BUSY masked signal status bit_offset: 2 bit_size: 1 - enum: RFBUSYMS - name: SMPSRDY description: SMPS ready flag bit_offset: 3 bit_size: 1 - enum: SMPSRDY - name: LDORDY description: LDO ready flag bit_offset: 4 bit_size: 1 - enum: LDORDY - name: RFEOLF description: Radio end of life flag bit_offset: 5 bit_size: 1 - enum: RFEOLF - name: REGMRS description: regulator2 low power flag bit_offset: 6 bit_size: 1 - enum: REGMRS - name: FLASHRDY description: Flash ready bit_offset: 7 bit_size: 1 - enum: FLASHRDY - name: REGLPS description: regulator1 started bit_offset: 8 bit_size: 1 - enum: REGLPS - name: REGLPF description: regulator1 low power flag bit_offset: 9 bit_size: 1 - enum: REGLPF - name: VOSF description: Voltage scaling flag bit_offset: 10 bit_size: 1 - enum: VOSF - name: PVDO description: Power voltage detector output bit_offset: 11 bit_size: 1 - enum: PVDO - name: PVMO description: 'Peripheral voltage monitoring output: VDDA vs. 1.62 V' bit_offset: 14 bit_size: 1 - enum: PVMO fieldset/SUBGHZSPICR: description: Power SPI3 control register fields: @@ -458,7 +431,6 @@ fieldset/SUBGHZSPICR: description: sub-GHz SPI NSS control bit_offset: 15 bit_size: 1 - enum: NSS enum/CDS: bit_size: 1 variants: @@ -468,51 +440,6 @@ enum/CDS: - name: DeepSleep description: CPU is in Deep-Sleep value: 1 -enum/CSBF: - bit_size: 1 - variants: - - name: NoStandby - description: System has not been in Standby mode - value: 0 - - name: Standby - description: System has been in Standby mode - value: 1 -enum/CSTOPF: - bit_size: 1 - variants: - - name: NoStop - description: System has not been in Stop 2 mode - value: 0 - - name: Stop - description: System has been in Stop 2 mode - value: 1 -enum/EWRFBUSY: - bit_size: 1 - variants: - - name: Disabled - description: Radio Busy is disabled and does not trigger a wakeup from Standby event to CPUwhen a rising or a falling edge occurs - value: 0 - - name: Enabled - description: Radio Busy is enabled and triggers a wakeup from Standby event to CPUwhen a rising or a falling edge occurs. The active edge is configured via the WRFBUSYP bit in PWR_CR4 - value: 1 -enum/EWRFIRQ: - bit_size: 1 - variants: - - name: Disabled - description: Radio IRQ[2:0] is disabled and does not trigger a wakeup from Standby event to CPU. - value: 0 - - name: Enabled - description: Radio IRQ[2:0] is enabled and triggers a wakeup from Standby event to CPU. - value: 1 -enum/FLASHRDY: - bit_size: 1 - variants: - - name: NotReady - description: Flash memory not ready to be accessed - value: 0 - - name: Ready - description: Flash memory ready to be accessed - value: 1 enum/FPDR: bit_size: 1 variants: @@ -531,15 +458,6 @@ enum/FPDS: - name: PowerDown description: Flash memory in Power-down mode when system is in LPSleep mode value: 1 -enum/LDORDY: - bit_size: 1 - variants: - - name: NotReady - description: LDO not ready or off - value: 0 - - name: Ready - description: LDO ready - value: 1 enum/LPMS: bit_size: 3 variants: @@ -567,15 +485,6 @@ enum/LPR: - name: LowPowerMode description: Voltage regulator in low-power mode in Low-power run mode value: 1 -enum/NSS: - bit_size: 1 - variants: - - name: Low - description: Sub-GHz SPI NSS signal at level low - value: 0 - - name: High - description: Sub-GHz SPI NSS signal is at level high - value: 1 enum/PLS: bit_size: 3 variants: @@ -603,123 +512,6 @@ enum/PLS: - name: External description: External input analog voltage PVD_IN (compared internally to VREFINT) value: 7 -enum/PVDE: - bit_size: 1 - variants: - - name: Disabled - description: PVD Disabled - value: 0 - - name: Enabled - description: PVD Enabled - value: 1 -enum/PVDO: - bit_size: 1 - variants: - - name: Above - description: VDD or voltage level on PVD_IN above the selected PVD threshold - value: 0 - - name: Below - description: VDD or voltage level on PVD_IN below the selected PVD threshold - value: 1 -enum/PVMO: - bit_size: 1 - variants: - - name: Above - description: VDDA voltage above PVM3 threshold (around 1.62 V) - value: 0 - - name: Below - description: VDDA voltage below PVM3 threshold (around 1.62 V) - value: 1 -enum/REGLPF: - bit_size: 1 - variants: - - name: Main - description: Main regulator (MR) ready and used - value: 0 - - name: LowPower - description: Low-power regulator (LPR) used - value: 1 -enum/REGLPS: - bit_size: 1 - variants: - - name: NotReady - description: LPR not ready - value: 0 - - name: Ready - description: LPR ready - value: 1 -enum/REGMRS: - bit_size: 1 - variants: - - name: V_DD - description: Main regulator supplied directly from VDD - value: 0 - - name: LDO_SMPS - description: Main regulator supplied through LDO or SMPS - value: 1 -enum/RFBUSYMS: - bit_size: 1 - variants: - - name: NotBusy - description: radio busy masked signal low (not busy) - value: 0 - - name: Busy - description: radio busy masked signal high (busy) - value: 1 -enum/RFBUSYS: - bit_size: 1 - variants: - - name: NotBusy - description: radio busy signal low (not busy) - value: 0 - - name: Busy - description: radio busy signal high (busy) - value: 1 -enum/RFEOLEN: - bit_size: 1 - variants: - - name: Disabled - description: Radio end-of-life detector disabled - value: 0 - - name: Enabled - description: Radio end-of-life detector enabled - value: 1 -enum/RFEOLF: - bit_size: 1 - variants: - - name: Above - description: Supply voltage above radio end-of-life operating low level - value: 0 - - name: Below - description: Supply voltage below radio end-of-life operating low level - value: 1 -enum/RRS: - bit_size: 1 - variants: - - name: PowerOff - description: SRAM2 powered off in Standby mode (SRAM2 content lost) - value: 0 - - name: OnLPR - description: SRAM2 powered by the low-power regulator in Standby mode (SRAM2 content kept) - value: 1 -enum/SMPSEN: - bit_size: 1 - variants: - - name: Disabled - description: SMPS step-down converter SMPS mode disabled (LDO mode enabled) - value: 0 - - name: Enabled - description: SMPS step-down converter SMPS mode enabled - value: 1 -enum/SMPSRDY: - bit_size: 1 - variants: - - name: NotReady - description: SMPS step-down converter not ready or off - value: 0 - - name: Ready - description: SMPS step-down converter ready - value: 1 enum/SUBGHZSPINSSSEL: bit_size: 1 variants: @@ -729,15 +521,6 @@ enum/SUBGHZSPINSSSEL: - name: LPTIM3 description: sub-GHz SPI NSS signal driven from LPTIM3_OUT (RFBUSYMS functionality disabled) value: 1 -enum/VBE: - bit_size: 1 - variants: - - name: Disabled - description: VBAT battery charging disabled - value: 0 - - name: Enabled - description: VBAT battery charging enabled - value: 1 enum/VBRS: bit_size: 1 variants: @@ -750,21 +533,12 @@ enum/VBRS: enum/VOS: bit_size: 2 variants: - - name: V1_2 + - name: Range1 description: 1.2 V (range 1) value: 1 - - name: V1_0 + - name: Range2 description: 1.0 V (range 2) value: 2 -enum/VOSF: - bit_size: 1 - variants: - - name: Ready - description: Regulator ready in the selected voltage range - value: 0 - - name: Change - description: Regulator output voltage changed to the required voltage level - value: 1 enum/WP: bit_size: 1 variants: @@ -774,48 +548,3 @@ enum/WP: - name: FallingEdge description: Detection on low level (falling edge) value: 1 -enum/WPVDF: - bit_size: 1 - variants: - - name: Clear - description: No wakeup event detected on PVD - value: 0 - - name: Wakeup - description: Wakeup event detected on PVD - value: 1 -enum/WRFBUSYF: - bit_size: 1 - variants: - - name: Clear - description: No wakeup event detected on radio busy - value: 0 - - name: Wakeup - description: Wakeup event detected on radio busy - value: 1 -enum/WRFBUSYP: - bit_size: 1 - variants: - - name: RisingEdge - description: Detection on high level (rising edge) - value: 0 - - name: FallingEdge - description: Detection on low level (falling edge) - value: 1 -enum/WUF: - bit_size: 1 - variants: - - name: Clear - description: No wakeup event detected on WKUP3 - value: 0 - - name: Wakeup - description: Wakeup event detected on WKUP3 - value: 1 -enum/WUFI: - bit_size: 1 - variants: - - name: Clear - description: All internal wakeup sources are cleared - value: 0 - - name: Wakeup - description: wakeup is detected on the internal wakeup line - value: 1 diff --git a/data/registers/rcc_h7.yaml b/data/registers/rcc_h7.yaml index 6cc9ba1..644aa50 100644 --- a/data/registers/rcc_h7.yaml +++ b/data/registers/rcc_h7.yaml @@ -3785,24 +3785,6 @@ enum/DIVP: - name: Div128 description: pll_p_ck = vco_ck / 128 value: 127 -enum/PPRE: - bit_size: 3 - variants: - - name: Div1 - description: rcc_hclk not divided - value: 0 - - name: Div2 - description: rcc_hclk divided by 2 - value: 4 - - name: Div4 - description: rcc_hclk divided by 4 - value: 5 - - name: Div8 - description: rcc_hclk divided by 8 - value: 6 - - name: Div16 - description: rcc_hclk divided by 16 - value: 7 enum/FDCANSEL: bit_size: 2 variants: @@ -4070,6 +4052,24 @@ enum/PLLVCOSEL: - name: MediumVCO description: VCO frequency range 150 to 420 MHz value: 1 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: rcc_hclk not divided + value: 0 + - name: Div2 + description: rcc_hclk divided by 2 + value: 4 + - name: Div4 + description: rcc_hclk divided by 4 + value: 5 + - name: Div8 + description: rcc_hclk divided by 8 + value: 6 + - name: Div16 + description: rcc_hclk divided by 16 + value: 7 enum/RNGSEL: bit_size: 2 variants: diff --git a/data/registers/rcc_h7ab.yaml b/data/registers/rcc_h7ab.yaml index 394d53d..66ef644 100644 --- a/data/registers/rcc_h7ab.yaml +++ b/data/registers/rcc_h7ab.yaml @@ -2720,24 +2720,6 @@ enum/DIVP: - name: Div128 description: pll_p_ck = vco_ck / 128 value: 127 -enum/PPRE: - bit_size: 3 - variants: - - name: Div1 - description: rcc_hclk not divided - value: 0 - - name: Div2 - description: rcc_hclk divided by 2 - value: 4 - - name: Div4 - description: rcc_hclk divided by 4 - value: 5 - - name: Div8 - description: rcc_hclk divided by 8 - value: 6 - - name: Div16 - description: rcc_hclk divided by 16 - value: 7 enum/FDCANSEL: bit_size: 2 variants: @@ -3005,6 +2987,24 @@ enum/PLLVCOSEL: - name: MediumVCO description: VCO frequency range 150 to 420 MHz value: 1 +enum/PPRE: + bit_size: 3 + variants: + - name: Div1 + description: rcc_hclk not divided + value: 0 + - name: Div2 + description: rcc_hclk divided by 2 + value: 4 + - name: Div4 + description: rcc_hclk divided by 4 + value: 5 + - name: Div8 + description: rcc_hclk divided by 8 + value: 6 + - name: Div16 + description: rcc_hclk divided by 16 + value: 7 enum/RNGSEL: bit_size: 2 variants: diff --git a/data/registers/rcc_wb.yaml b/data/registers/rcc_wb.yaml index 7239fa6..a0c7adc 100644 --- a/data/registers/rcc_wb.yaml +++ b/data/registers/rcc_wb.yaml @@ -1639,21 +1639,51 @@ fieldset/SMPSCR: description: Step Down converter clock switch status bit_offset: 8 bit_size: 2 -enum/RTCSEL: - bit_size: 2 +enum/HPRE: + bit_size: 4 variants: - - name: NoClock - description: No clock selected + - name: Div1 + description: DCLK not divided value: 0 - - name: LSE - description: LSE oscillator clock selected + - name: Div3 + description: hclk = SYSCLK divided by 3 value: 1 - - name: LSI - description: LSI oscillator clock selected + - name: Div5 + description: hclk = SYSCLK divided by 5 value: 2 - - name: HSE - description: HSE oscillator clock divided by 32 selected - value: 3 + - name: Div6 + description: hclk = SYSCLK divided by 6 + value: 5 + - name: Div10 + description: hclk = SYSCLK divided by 8 + value: 6 + - name: Div32 + description: hclk = SYSCLK divided by 32 + value: 7 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 8 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 9 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 10 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 11 + - name: Div64 + description: hclk = SYSCLK divided by 64 + value: 12 + - name: Div128 + description: hclk = SYSCLK divided by 128 + value: 13 + - name: Div256 + description: hclk = SYSCLK divided by 256 + value: 14 + - name: Div512 + description: hclk = SYSCLK divided by 256 + value: 15 enum/PPRE: bit_size: 3 variants: @@ -1672,48 +1702,18 @@ enum/PPRE: - name: Div16 description: HCLK divided by 16 value: 7 -enum/HPRE: - bit_size: 4 +enum/RTCSEL: + bit_size: 2 variants: - - name: Div1 - description: DCLK not divided - value: 0x0 - - name: Div2 - description: hclk = SYSCLK divided by 2 - value: 0x08 - - name: Div3 - description: hclk = SYSCLK divided by 3 - value: 0x01 - - name: Div4 - description: hclk = SYSCLK divided by 4 - value: 0x09 - - name: Div5 - description: hclk = SYSCLK divided by 5 - value: 0x02 - - name: Div6 - description: hclk = SYSCLK divided by 6 - value: 0x05 - - name: Div8 - description: hclk = SYSCLK divided by 8 - value: 0x0a - - name: Div10 - description: hclk = SYSCLK divided by 8 - value: 0x06 - - name: Div16 - description: hclk = SYSCLK divided by 16 - value: 0x0b - - name: Div32 - description: hclk = SYSCLK divided by 32 - value: 0x07 - - name: Div64 - description: hclk = SYSCLK divided by 64 - value: 0x0c - - name: Div128 - description: hclk = SYSCLK divided by 128 - value: 0x0d - - name: Div256 - description: hclk = SYSCLK divided by 256 - value: 0x0e - - name: Div512 - description: hclk = SYSCLK divided by 256 - value: 0x0f \ No newline at end of file + - name: NoClock + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 diff --git a/data/registers/rcc_wl5.yaml b/data/registers/rcc_wl5.yaml index 80870ba..6c66cd5 100644 --- a/data/registers/rcc_wl5.yaml +++ b/data/registers/rcc_wl5.yaml @@ -1438,21 +1438,51 @@ enum/ADCSEL: - name: SYSCLK description: SYSCLK used as ADC clock source value: 3 -enum/RTCSEL: - bit_size: 2 +enum/HPRE: + bit_size: 4 variants: - - name: NoClock - description: No clock selected + - name: Div1 + description: DCLK not divided value: 0 - - name: LSE - description: LSE oscillator clock selected + - name: Div3 + description: hclk = SYSCLK divided by 3 value: 1 - - name: LSI - description: LSI oscillator clock selected + - name: Div5 + description: hclk = SYSCLK divided by 5 value: 2 - - name: HSE - description: HSE oscillator clock divided by 32 selected - value: 3 + - name: Div6 + description: hclk = SYSCLK divided by 6 + value: 5 + - name: Div10 + description: hclk = SYSCLK divided by 8 + value: 6 + - name: Div32 + description: hclk = SYSCLK divided by 32 + value: 7 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 8 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 9 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 10 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 11 + - name: Div64 + description: hclk = SYSCLK divided by 64 + value: 12 + - name: Div128 + description: hclk = SYSCLK divided by 128 + value: 13 + - name: Div256 + description: hclk = SYSCLK divided by 256 + value: 14 + - name: Div512 + description: hclk = SYSCLK divided by 256 + value: 15 enum/PPRE: bit_size: 3 variants: @@ -1471,48 +1501,18 @@ enum/PPRE: - name: Div16 description: HCLK divided by 16 value: 7 -enum/HPRE: - bit_size: 4 +enum/RTCSEL: + bit_size: 2 variants: - - name: Div1 - description: DCLK not divided - value: 0x0 - - name: Div2 - description: hclk = SYSCLK divided by 2 - value: 0x08 - - name: Div3 - description: hclk = SYSCLK divided by 3 - value: 0x01 - - name: Div4 - description: hclk = SYSCLK divided by 4 - value: 0x09 - - name: Div5 - description: hclk = SYSCLK divided by 5 - value: 0x02 - - name: Div6 - description: hclk = SYSCLK divided by 6 - value: 0x05 - - name: Div8 - description: hclk = SYSCLK divided by 8 - value: 0x0a - - name: Div10 - description: hclk = SYSCLK divided by 8 - value: 0x06 - - name: Div16 - description: hclk = SYSCLK divided by 16 - value: 0x0b - - name: Div32 - description: hclk = SYSCLK divided by 32 - value: 0x07 - - name: Div64 - description: hclk = SYSCLK divided by 64 - value: 0x0c - - name: Div128 - description: hclk = SYSCLK divided by 128 - value: 0x0d - - name: Div256 - description: hclk = SYSCLK divided by 256 - value: 0x0e - - name: Div512 - description: hclk = SYSCLK divided by 256 - value: 0x0f \ No newline at end of file + - name: NoClock + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 diff --git a/data/registers/rcc_wle.yaml b/data/registers/rcc_wle.yaml index fbfed51..393bc3b 100644 --- a/data/registers/rcc_wle.yaml +++ b/data/registers/rcc_wle.yaml @@ -1060,21 +1060,51 @@ enum/ADCSEL: - name: SYSCLK description: SYSCLK used as ADC clock source value: 3 -enum/RTCSEL: - bit_size: 2 +enum/HPRE: + bit_size: 4 variants: - - name: NoClock - description: No clock selected + - name: Div1 + description: DCLK not divided value: 0 - - name: LSE - description: LSE oscillator clock selected + - name: Div3 + description: hclk = SYSCLK divided by 3 value: 1 - - name: LSI - description: LSI oscillator clock selected + - name: Div5 + description: hclk = SYSCLK divided by 5 value: 2 - - name: HSE - description: HSE oscillator clock divided by 32 selected - value: 3 + - name: Div6 + description: hclk = SYSCLK divided by 6 + value: 5 + - name: Div10 + description: hclk = SYSCLK divided by 8 + value: 6 + - name: Div32 + description: hclk = SYSCLK divided by 32 + value: 7 + - name: Div2 + description: hclk = SYSCLK divided by 2 + value: 8 + - name: Div4 + description: hclk = SYSCLK divided by 4 + value: 9 + - name: Div8 + description: hclk = SYSCLK divided by 8 + value: 10 + - name: Div16 + description: hclk = SYSCLK divided by 16 + value: 11 + - name: Div64 + description: hclk = SYSCLK divided by 64 + value: 12 + - name: Div128 + description: hclk = SYSCLK divided by 128 + value: 13 + - name: Div256 + description: hclk = SYSCLK divided by 256 + value: 14 + - name: Div512 + description: hclk = SYSCLK divided by 256 + value: 15 enum/PPRE: bit_size: 3 variants: @@ -1093,48 +1123,18 @@ enum/PPRE: - name: Div16 description: HCLK divided by 16 value: 7 -enum/HPRE: - bit_size: 4 +enum/RTCSEL: + bit_size: 2 variants: - - name: Div1 - description: DCLK not divided - value: 0x0 - - name: Div2 - description: hclk = SYSCLK divided by 2 - value: 0x08 - - name: Div3 - description: hclk = SYSCLK divided by 3 - value: 0x01 - - name: Div4 - description: hclk = SYSCLK divided by 4 - value: 0x09 - - name: Div5 - description: hclk = SYSCLK divided by 5 - value: 0x02 - - name: Div6 - description: hclk = SYSCLK divided by 6 - value: 0x05 - - name: Div8 - description: hclk = SYSCLK divided by 8 - value: 0x0a - - name: Div10 - description: hclk = SYSCLK divided by 8 - value: 0x06 - - name: Div16 - description: hclk = SYSCLK divided by 16 - value: 0x0b - - name: Div32 - description: hclk = SYSCLK divided by 32 - value: 0x07 - - name: Div64 - description: hclk = SYSCLK divided by 64 - value: 0x0c - - name: Div128 - description: hclk = SYSCLK divided by 128 - value: 0x0d - - name: Div256 - description: hclk = SYSCLK divided by 256 - value: 0x0e - - name: Div512 - description: hclk = SYSCLK divided by 256 - value: 0x0f \ No newline at end of file + - name: NoClock + description: No clock selected + value: 0 + - name: LSE + description: LSE oscillator clock selected + value: 1 + - name: LSI + description: LSI oscillator clock selected + value: 2 + - name: HSE + description: HSE oscillator clock divided by 32 selected + value: 3 diff --git a/data/registers/syscfg_h7.yaml b/data/registers/syscfg_h7.yaml index 24f8b08..1f000ab 100644 --- a/data/registers/syscfg_h7.yaml +++ b/data/registers/syscfg_h7.yaml @@ -25,10 +25,6 @@ block/SYSCFG: description: SYSCFG compensation cell code register byte_offset: 40 fieldset: CCCR - - name: PWRCR - description: SYSCFG power control register - byte_offset: 44 - fieldset: PWRCR - name: PKGR description: SYSCFG package register byte_offset: 292 @@ -237,13 +233,6 @@ fieldset/PMCR: description: PC3 Switch Open bit_offset: 27 bit_size: 1 -fieldset/PWRCR: - description: SYSCFG power control register - fields: - - name: ODEN - description: Overdrive enable - bit_offset: 0 - bit_size: 4 fieldset/UR0: description: SYSCFG user register 0 fields: diff --git a/data/registers/syscfg_h7od.yaml b/data/registers/syscfg_h7od.yaml new file mode 100644 index 0000000..24f8b08 --- /dev/null +++ b/data/registers/syscfg_h7od.yaml @@ -0,0 +1,409 @@ +block/SYSCFG: + description: System configuration controller + items: + - name: PMCR + description: peripheral mode configuration register + byte_offset: 4 + fieldset: PMCR + - name: EXTICR + description: external interrupt configuration register + array: + len: 4 + stride: 4 + byte_offset: 8 + fieldset: EXTICR + - name: CCCSR + description: compensation cell control/status register + byte_offset: 32 + fieldset: CCCSR + - name: CCVR + description: SYSCFG compensation cell value register + byte_offset: 36 + access: Read + fieldset: CCVR + - name: CCCR + description: SYSCFG compensation cell code register + byte_offset: 40 + fieldset: CCCR + - name: PWRCR + description: SYSCFG power control register + byte_offset: 44 + fieldset: PWRCR + - name: PKGR + description: SYSCFG package register + byte_offset: 292 + access: Read + fieldset: PKGR + - name: UR0 + description: SYSCFG user register 0 + byte_offset: 768 + access: Read + fieldset: UR0 + - name: UR2 + description: SYSCFG user register 2 + byte_offset: 776 + fieldset: UR2 + - name: UR3 + description: SYSCFG user register 3 + byte_offset: 780 + fieldset: UR3 + - name: UR4 + description: SYSCFG user register 4 + byte_offset: 784 + access: Read + fieldset: UR4 + - name: UR5 + description: SYSCFG user register 5 + byte_offset: 788 + access: Read + fieldset: UR5 + - name: UR6 + description: SYSCFG user register 6 + byte_offset: 792 + access: Read + fieldset: UR6 + - name: UR7 + description: SYSCFG user register 7 + byte_offset: 796 + access: Read + fieldset: UR7 + - name: UR8 + description: SYSCFG user register 8 + byte_offset: 800 + access: Read + fieldset: UR8 + - name: UR9 + description: SYSCFG user register 9 + byte_offset: 804 + access: Read + fieldset: UR9 + - name: UR10 + description: SYSCFG user register 10 + byte_offset: 808 + access: Read + fieldset: UR10 + - name: UR11 + description: SYSCFG user register 11 + byte_offset: 812 + access: Read + fieldset: UR11 + - name: UR12 + description: SYSCFG user register 12 + byte_offset: 816 + access: Read + fieldset: UR12 + - name: UR13 + description: SYSCFG user register 13 + byte_offset: 820 + access: Read + fieldset: UR13 + - name: UR14 + description: SYSCFG user register 14 + byte_offset: 824 + fieldset: UR14 + - name: UR15 + description: SYSCFG user register 15 + byte_offset: 828 + access: Read + fieldset: UR15 + - name: UR16 + description: SYSCFG user register 16 + byte_offset: 832 + access: Read + fieldset: UR16 + - name: UR17 + description: SYSCFG user register 17 + byte_offset: 836 + access: Read + fieldset: UR17 +fieldset/CCCR: + description: SYSCFG compensation cell code register + fields: + - name: NCC + description: NMOS compensation code + bit_offset: 0 + bit_size: 4 + - name: PCC + description: PMOS compensation code + bit_offset: 4 + bit_size: 4 +fieldset/CCCSR: + description: compensation cell control/status register + fields: + - name: EN + description: enable + bit_offset: 0 + bit_size: 1 + - name: CS + description: Code selection + bit_offset: 1 + bit_size: 1 + - name: READY + description: Compensation cell ready flag + bit_offset: 8 + bit_size: 1 + - name: HSLV + description: High-speed at low-voltage + bit_offset: 16 + bit_size: 1 +fieldset/CCVR: + description: SYSCFG compensation cell value register + fields: + - name: NCV + description: NMOS compensation value + bit_offset: 0 + bit_size: 4 + - name: PCV + description: PMOS compensation value + bit_offset: 4 + bit_size: 4 +fieldset/EXTICR: + description: external interrupt configuration register 2 + fields: + - name: EXTI + description: EXTI x configuration (x = 4 to 7) + bit_offset: 0 + bit_size: 4 + array: + len: 4 + stride: 4 +fieldset/PKGR: + description: SYSCFG package register + fields: + - name: PKG + description: Package + bit_offset: 0 + bit_size: 4 +fieldset/PMCR: + description: peripheral mode configuration register + fields: + - name: I2C1FMP + description: I2C1 Fm+ + bit_offset: 0 + bit_size: 1 + - name: I2C2FMP + description: I2C2 Fm+ + bit_offset: 1 + bit_size: 1 + - name: I2C3FMP + description: I2C3 Fm+ + bit_offset: 2 + bit_size: 1 + - name: I2C4FMP + description: I2C4 Fm+ + bit_offset: 3 + bit_size: 1 + - name: PB6FMP + description: PB(6) Fm+ + bit_offset: 4 + bit_size: 1 + - name: PB7FMP + description: PB(7) Fast Mode Plus + bit_offset: 5 + bit_size: 1 + - name: PB8FMP + description: PB(8) Fast Mode Plus + bit_offset: 6 + bit_size: 1 + - name: PB9FMP + description: PB(9) Fm+ + bit_offset: 7 + bit_size: 1 + - name: BOOSTE + description: Booster Enable + bit_offset: 8 + bit_size: 1 + - name: BOOSTVDDSEL + description: Analog switch supply voltage selection + bit_offset: 9 + bit_size: 1 + - name: EPIS + description: Ethernet PHY Interface Selection + bit_offset: 21 + bit_size: 3 + - name: PA0SO + description: PA0 Switch Open + bit_offset: 24 + bit_size: 1 + - name: PA1SO + description: PA1 Switch Open + bit_offset: 25 + bit_size: 1 + - name: PC2SO + description: PC2 Switch Open + bit_offset: 26 + bit_size: 1 + - name: PC3SO + description: PC3 Switch Open + bit_offset: 27 + bit_size: 1 +fieldset/PWRCR: + description: SYSCFG power control register + fields: + - name: ODEN + description: Overdrive enable + bit_offset: 0 + bit_size: 4 +fieldset/UR0: + description: SYSCFG user register 0 + fields: + - name: BKS + description: Bank Swap + bit_offset: 0 + bit_size: 1 + - name: RDP + description: Readout protection + bit_offset: 16 + bit_size: 8 +fieldset/UR10: + description: SYSCFG user register 10 + fields: + - name: PA_END_2 + description: Protected area end address for bank 2 + bit_offset: 0 + bit_size: 12 + - name: SA_BEG_2 + description: Secured area start address for bank 2 + bit_offset: 16 + bit_size: 12 +fieldset/UR11: + description: SYSCFG user register 11 + fields: + - name: SA_END_2 + description: Secured area end address for bank 2 + bit_offset: 0 + bit_size: 12 + - name: IWDG1M + description: Independent Watchdog 1 mode + bit_offset: 16 + bit_size: 1 +fieldset/UR12: + description: SYSCFG user register 12 + fields: + - name: SECURE + description: Secure mode + bit_offset: 16 + bit_size: 1 +fieldset/UR13: + description: SYSCFG user register 13 + fields: + - name: SDRS + description: Secured DTCM RAM Size + bit_offset: 0 + bit_size: 2 + - name: D1SBRST + description: D1 Standby reset + bit_offset: 16 + bit_size: 1 +fieldset/UR14: + description: SYSCFG user register 14 + fields: + - name: D1STPRST + description: D1 Stop Reset + bit_offset: 0 + bit_size: 1 +fieldset/UR15: + description: SYSCFG user register 15 + fields: + - name: FZIWDGSTB + description: Freeze independent watchdog in Standby mode + bit_offset: 16 + bit_size: 1 +fieldset/UR16: + description: SYSCFG user register 16 + fields: + - name: FZIWDGSTP + description: Freeze independent watchdog in Stop mode + bit_offset: 0 + bit_size: 1 + - name: PKP + description: Private key programmed + bit_offset: 16 + bit_size: 1 +fieldset/UR17: + description: SYSCFG user register 17 + fields: + - name: IO_HSLV + description: I/O high speed / low voltage + bit_offset: 0 + bit_size: 1 +fieldset/UR2: + description: SYSCFG user register 2 + fields: + - name: BORH + description: BOR_LVL Brownout Reset Threshold Level + bit_offset: 0 + bit_size: 2 + - name: BOOT_ADD0 + description: Boot Address 0 + bit_offset: 16 + bit_size: 16 +fieldset/UR3: + description: SYSCFG user register 3 + fields: + - name: BOOT_ADD1 + description: Boot Address 1 + bit_offset: 16 + bit_size: 16 +fieldset/UR4: + description: SYSCFG user register 4 + fields: + - name: MEPAD_1 + description: Mass Erase Protected Area Disabled for bank 1 + bit_offset: 16 + bit_size: 1 +fieldset/UR5: + description: SYSCFG user register 5 + fields: + - name: MESAD_1 + description: Mass erase secured area disabled for bank 1 + bit_offset: 0 + bit_size: 1 + - name: WRPN_1 + description: Write protection for flash bank 1 + bit_offset: 16 + bit_size: 8 +fieldset/UR6: + description: SYSCFG user register 6 + fields: + - name: PA_BEG_1 + description: Protected area start address for bank 1 + bit_offset: 0 + bit_size: 12 + - name: PA_END_1 + description: Protected area end address for bank 1 + bit_offset: 16 + bit_size: 12 +fieldset/UR7: + description: SYSCFG user register 7 + fields: + - name: SA_BEG_1 + description: Secured area start address for bank 1 + bit_offset: 0 + bit_size: 12 + - name: SA_END_1 + description: Secured area end address for bank 1 + bit_offset: 16 + bit_size: 12 +fieldset/UR8: + description: SYSCFG user register 8 + fields: + - name: MEPAD_2 + description: Mass erase protected area disabled for bank 2 + bit_offset: 0 + bit_size: 1 + - name: MESAD_2 + description: Mass erase secured area disabled for bank 2 + bit_offset: 16 + bit_size: 1 +fieldset/UR9: + description: SYSCFG user register 9 + fields: + - name: WRPN_2 + description: Write protection for flash bank 2 + bit_offset: 0 + bit_size: 8 + - name: PA_BEG_2 + description: Protected area start address for bank 2 + bit_offset: 16 + bit_size: 12 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index 3ede5fa..d8ef590 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -214,6 +214,10 @@ impl PeriMatcher { ("STM32L5.*:SYSCFG:.*", ("syscfg", "l5", "SYSCFG")), ("STM32G0.*:SYSCFG:.*", ("syscfg", "g0", "SYSCFG")), ("STM32G4.*:SYSCFG:.*", ("syscfg", "g4", "SYSCFG")), + ( + "STM32H7(45|47|55|57|42|43|53|50).*:SYSCFG:.*", + ("syscfg", "h7od", "SYSCFG"), + ), ("STM32H7.*:SYSCFG:.*", ("syscfg", "h7", "SYSCFG")), ("STM32U5.*:SYSCFG:.*", ("syscfg", "u5", "SYSCFG")), ("STM32WBA.*:SYSCFG:.*", ("syscfg", "wba", "SYSCFG")), @@ -328,8 +332,10 @@ impl PeriMatcher { ("STM32C0.*:PWR:.*", ("pwr", "c0", "PWR")), ("STM32G0.*:PWR:.*", ("pwr", "g0", "PWR")), ("STM32G4.*:PWR:.*", ("pwr", "g4", "PWR")), - ("STM32H7(42|43|53|50).*:PWR:.*", ("pwr", "h7", "PWR")), - ("STM32H7.*:PWR:.*", ("pwr", "h7smps", "PWR")), + ("STM32H7(45|47|55|57).*:PWR:.*", ("pwr", "h7rm0399", "PWR")), + ("STM32H7(42|43|53|50).*:PWR:.*", ("pwr", "h7rm0433", "PWR")), + ("STM32H7(23|25|33|35|30).*:PWR:.*", ("pwr", "h7rm0468", "PWR")), + ("STM32H7(A3|B0|B3).*:PWR:.*", ("pwr", "h7rm0455", "PWR")), ("STM32F2.*:PWR:.*", ("pwr", "f2", "PWR")), ("STM32F3.*:PWR:.*", ("pwr", "f3", "PWR")), ("STM32F4.*:PWR:.*", ("pwr", "f4", "PWR")), @@ -341,7 +347,8 @@ impl PeriMatcher { ("STM32U5.*:PWR:.*", ("pwr", "u5", "PWR")), ("STM32WL.*:PWR:.*", ("pwr", "wl5", "PWR")), ("STM32WBA.*:PWR:.*", ("pwr", "wba", "PWR")), - ("STM32WB.*:PWR:.*", ("pwr", "wb55", "PWR")), + ("STM32WB55.*:PWR:.*", ("pwr", "wb55", "PWR")), + ("STM32WB.*:PWR:.*", ("pwr", "wb", "PWR")), ("STM32H50.*:PWR:.*", ("pwr", "h50", "PWR")), ("STM32H5.*:PWR:.*", ("pwr", "h5", "PWR")), ("STM32H7(A3|B3|B0).*:FLASH:.*", ("flash", "h7ab", "FLASH")), From d6b07633274d73a6915e3e906ad967e1af5026c7 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 19 Sep 2023 04:03:50 +0200 Subject: [PATCH 48/54] More rcc cleanups. --- data/registers/rcc_f0.yaml | 17 +- data/registers/rcc_f1.yaml | 14 +- data/registers/rcc_f100.yaml | 14 +- data/registers/rcc_f1cl.yaml | 14 +- data/registers/rcc_f2.yaml | 14 +- data/registers/rcc_f3.yaml | 14 +- data/registers/rcc_f3_v2.yaml | 14 +- data/registers/rcc_f4.yaml | 14 +- data/registers/rcc_f410.yaml | 14 +- data/registers/rcc_f7.yaml | 14 +- data/registers/rcc_h7.yaml | 324 +++------------------------------- data/registers/rcc_h7ab.yaml | 324 +++------------------------------- 12 files changed, 68 insertions(+), 723 deletions(-) diff --git a/data/registers/rcc_f0.yaml b/data/registers/rcc_f0.yaml index 3516d11..d15a076 100644 --- a/data/registers/rcc_f0.yaml +++ b/data/registers/rcc_f0.yaml @@ -444,7 +444,7 @@ fieldset/CFGR: description: System Clock Switch Status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -1043,21 +1043,6 @@ enum/RTCSEL: description: HSE oscillator clock divided by a prescaler used as RTC clock value: 3 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 - - name: HSI48 - description: HSI48 selected as system clock (when available) - value: 3 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_f1.yaml b/data/registers/rcc_f1.yaml index 0e19e1d..901c896 100644 --- a/data/registers/rcc_f1.yaml +++ b/data/registers/rcc_f1.yaml @@ -452,7 +452,7 @@ fieldset/CFGR: description: System Clock Switch Status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -828,18 +828,6 @@ enum/SW: - name: PLL description: PLL selected as system clock value: 2 -enum/SWS: - bit_size: 2 - variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 enum/USBPRE: bit_size: 1 variants: diff --git a/data/registers/rcc_f100.yaml b/data/registers/rcc_f100.yaml index dcec3b7..3162335 100644 --- a/data/registers/rcc_f100.yaml +++ b/data/registers/rcc_f100.yaml @@ -420,7 +420,7 @@ fieldset/CFGR: description: System Clock Switch Status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -850,15 +850,3 @@ enum/SW: - name: PLL description: PLL selected as system clock value: 2 -enum/SWS: - bit_size: 2 - variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 diff --git a/data/registers/rcc_f1cl.yaml b/data/registers/rcc_f1cl.yaml index 8bd5ed3..6dd0090 100644 --- a/data/registers/rcc_f1cl.yaml +++ b/data/registers/rcc_f1cl.yaml @@ -399,7 +399,7 @@ fieldset/CFGR: description: System Clock Switch Status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -926,18 +926,6 @@ enum/RTCSEL: description: HSE oscillator clock divided by a prescaler used as RTC clock value: 3 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_f2.yaml b/data/registers/rcc_f2.yaml index c6ab4d6..955d03a 100644 --- a/data/registers/rcc_f2.yaml +++ b/data/registers/rcc_f2.yaml @@ -894,7 +894,7 @@ fieldset/CFGR: description: System clock switch status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -1337,15 +1337,3 @@ enum/SW: - name: PLL description: PLL selected as system clock value: 2 -enum/SWS: - bit_size: 2 - variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: HSE - description: HSE oscillator used as system clock - value: 1 - - name: PLL - description: PLL used as system clock - value: 2 diff --git a/data/registers/rcc_f3.yaml b/data/registers/rcc_f3.yaml index 7337227..e6ce340 100644 --- a/data/registers/rcc_f3.yaml +++ b/data/registers/rcc_f3.yaml @@ -496,7 +496,7 @@ fieldset/CFGR: description: System Clock Switch Status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -1236,18 +1236,6 @@ enum/SDPRE: description: SYSCLK divided by 48 value: 31 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_f3_v2.yaml b/data/registers/rcc_f3_v2.yaml index e8e9c28..398a7ef 100644 --- a/data/registers/rcc_f3_v2.yaml +++ b/data/registers/rcc_f3_v2.yaml @@ -472,7 +472,7 @@ fieldset/CFGR: description: System Clock Switch Status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -1212,18 +1212,6 @@ enum/SDPRE: description: SYSCLK divided by 48 value: 31 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_f4.yaml b/data/registers/rcc_f4.yaml index c4562e4..8b044dc 100644 --- a/data/registers/rcc_f4.yaml +++ b/data/registers/rcc_f4.yaml @@ -1223,7 +1223,7 @@ fieldset/CFGR: description: System clock switch status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -2513,18 +2513,6 @@ enum/SPREADSEL: description: Down spread value: 1 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_f410.yaml b/data/registers/rcc_f410.yaml index 24d0c29..98ee613 100644 --- a/data/registers/rcc_f410.yaml +++ b/data/registers/rcc_f410.yaml @@ -504,7 +504,7 @@ fieldset/CFGR: description: System clock switch status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -972,18 +972,6 @@ enum/SPREADSEL: description: Down spread value: 1 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_f7.yaml b/data/registers/rcc_f7.yaml index 3ec71d8..1f4f4cc 100644 --- a/data/registers/rcc_f7.yaml +++ b/data/registers/rcc_f7.yaml @@ -1215,7 +1215,7 @@ fieldset/CFGR: description: System clock switch status bit_offset: 2 bit_size: 2 - enum: SWS + enum: SW - name: HPRE description: AHB prescaler bit_offset: 4 @@ -2190,18 +2190,6 @@ enum/SPREADSEL: description: Down spread value: 1 enum/SW: - bit_size: 2 - variants: - - name: HSI - description: HSI selected as system clock - value: 0 - - name: HSE - description: HSE selected as system clock - value: 1 - - name: PLL - description: PLL selected as system clock - value: 2 -enum/SWS: bit_size: 2 variants: - name: HSI diff --git a/data/registers/rcc_h7.yaml b/data/registers/rcc_h7.yaml index 644aa50..fe7e7eb 100644 --- a/data/registers/rcc_h7.yaml +++ b/data/registers/rcc_h7.yaml @@ -48,14 +48,14 @@ block/RCC: len: 3 stride: 8 byte_offset: 48 - fieldset: PLL1DIVR + fieldset: PLLDIVR - name: PLLFRACR description: RCC PLL1 Fractional Divider Register array: len: 3 stride: 8 byte_offset: 52 - fieldset: PLL1FRACR + fieldset: PLLFRACR - name: D1CCIPR description: RCC Domain 1 Kernel Clock Configuration Register byte_offset: 76 @@ -2760,7 +2760,7 @@ fieldset/CFGR: description: System clock switch status bit_offset: 3 bit_size: 3 - enum: SWS + enum: SW - name: STOPWUCK description: System clock selection after a wake up from system Stop bit_offset: 6 @@ -3354,85 +3354,6 @@ fieldset/ICSCR: description: CSI clock trimming bit_offset: 26 bit_size: 5 -fieldset/PLL1DIVR: - description: RCC PLL1 Dividers Configuration Register - fields: - - name: DIVN1 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP1 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - enum: DIVP - - name: DIVQ1 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR1 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 -fieldset/PLL1FRACR: - description: RCC PLL1 Fractional Divider Register - fields: - - name: FRACN1 - description: Fractional part of the multiplication factor for PLL1 VCO - bit_offset: 3 - bit_size: 13 -fieldset/PLL2DIVR: - description: RCC PLL2 Dividers Configuration Register - fields: - - name: DIVN2 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP2 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ2 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR2 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 -fieldset/PLL2FRACR: - description: RCC PLL2 Fractional Divider Register - fields: - - name: FRACN2 - description: Fractional part of the multiplication factor for PLL VCO - bit_offset: 3 - bit_size: 13 -fieldset/PLL3DIVR: - description: RCC PLL3 Dividers Configuration Register - fields: - - name: DIVN3 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP3 - description: PLL DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ3 - description: PLL DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR3 - description: PLL DIVR division factor - bit_offset: 24 - bit_size: 7 -fieldset/PLL3FRACR: - description: RCC PLL3 Fractional Divider Register - fields: - - name: FRACN3 - description: Fractional part of the multiplication factor for PLL3 VCO - bit_offset: 3 - bit_size: 13 fieldset/PLLCFGR: description: RCC PLLs Configuration Register fields: @@ -3495,6 +3416,32 @@ fieldset/PLLCKSELR: array: len: 3 stride: 8 +fieldset/PLLDIVR: + description: RCC PLL1 Dividers Configuration Register + fields: + - name: PLLN + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: PLL DIVP division factor + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: PLL DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: PLL DIVR division factor + bit_offset: 24 + bit_size: 7 +fieldset/PLLFRACR: + description: RCC PLL Fractional Divider Register + fields: + - name: FRACN + description: Fractional part of the multiplication factor for PLL VCO + bit_offset: 3 + bit_size: 13 fieldset/RSR: description: RCC Reset Status Register fields: @@ -3587,204 +3534,6 @@ enum/DFSDMSEL: - name: SYS description: System clock selected as peripheral clock value: 1 -enum/DIVP: - bit_size: 7 - variants: - - name: Div1 - description: pll_p_ck = vco_ck - value: 0 - - name: Div2 - description: pll_p_ck = vco_ck / 2 - value: 1 - - name: Div4 - description: pll_p_ck = vco_ck / 4 - value: 3 - - name: Div6 - description: pll_p_ck = vco_ck / 6 - value: 5 - - name: Div8 - description: pll_p_ck = vco_ck / 8 - value: 7 - - name: Div10 - description: pll_p_ck = vco_ck / 10 - value: 9 - - name: Div12 - description: pll_p_ck = vco_ck / 12 - value: 11 - - name: Div14 - description: pll_p_ck = vco_ck / 14 - value: 13 - - name: Div16 - description: pll_p_ck = vco_ck / 16 - value: 15 - - name: Div18 - description: pll_p_ck = vco_ck / 18 - value: 17 - - name: Div20 - description: pll_p_ck = vco_ck / 20 - value: 19 - - name: Div22 - description: pll_p_ck = vco_ck / 22 - value: 21 - - name: Div24 - description: pll_p_ck = vco_ck / 24 - value: 23 - - name: Div26 - description: pll_p_ck = vco_ck / 26 - value: 25 - - name: Div28 - description: pll_p_ck = vco_ck / 28 - value: 27 - - name: Div30 - description: pll_p_ck = vco_ck / 30 - value: 29 - - name: Div32 - description: pll_p_ck = vco_ck / 32 - value: 31 - - name: Div34 - description: pll_p_ck = vco_ck / 34 - value: 33 - - name: Div36 - description: pll_p_ck = vco_ck / 36 - value: 35 - - name: Div38 - description: pll_p_ck = vco_ck / 38 - value: 37 - - name: Div40 - description: pll_p_ck = vco_ck / 40 - value: 39 - - name: Div42 - description: pll_p_ck = vco_ck / 42 - value: 41 - - name: Div44 - description: pll_p_ck = vco_ck / 44 - value: 43 - - name: Div46 - description: pll_p_ck = vco_ck / 46 - value: 45 - - name: Div48 - description: pll_p_ck = vco_ck / 48 - value: 47 - - name: Div50 - description: pll_p_ck = vco_ck / 50 - value: 49 - - name: Div52 - description: pll_p_ck = vco_ck / 52 - value: 51 - - name: Div54 - description: pll_p_ck = vco_ck / 54 - value: 53 - - name: Div56 - description: pll_p_ck = vco_ck / 56 - value: 55 - - name: Div58 - description: pll_p_ck = vco_ck / 58 - value: 57 - - name: Div60 - description: pll_p_ck = vco_ck / 60 - value: 59 - - name: Div62 - description: pll_p_ck = vco_ck / 62 - value: 61 - - name: Div64 - description: pll_p_ck = vco_ck / 64 - value: 63 - - name: Div66 - description: pll_p_ck = vco_ck / 66 - value: 65 - - name: Div68 - description: pll_p_ck = vco_ck / 68 - value: 67 - - name: Div70 - description: pll_p_ck = vco_ck / 70 - value: 69 - - name: Div72 - description: pll_p_ck = vco_ck / 72 - value: 71 - - name: Div74 - description: pll_p_ck = vco_ck / 74 - value: 73 - - name: Div76 - description: pll_p_ck = vco_ck / 76 - value: 75 - - name: Div78 - description: pll_p_ck = vco_ck / 78 - value: 77 - - name: Div80 - description: pll_p_ck = vco_ck / 80 - value: 79 - - name: Div82 - description: pll_p_ck = vco_ck / 82 - value: 81 - - name: Div84 - description: pll_p_ck = vco_ck / 84 - value: 83 - - name: Div86 - description: pll_p_ck = vco_ck / 86 - value: 85 - - name: Div88 - description: pll_p_ck = vco_ck / 88 - value: 87 - - name: Div90 - description: pll_p_ck = vco_ck / 90 - value: 89 - - name: Div92 - description: pll_p_ck = vco_ck / 92 - value: 91 - - name: Div94 - description: pll_p_ck = vco_ck / 94 - value: 93 - - name: Div96 - description: pll_p_ck = vco_ck / 96 - value: 95 - - name: Div98 - description: pll_p_ck = vco_ck / 98 - value: 97 - - name: Div100 - description: pll_p_ck = vco_ck / 100 - value: 99 - - name: Div102 - description: pll_p_ck = vco_ck / 102 - value: 101 - - name: Div104 - description: pll_p_ck = vco_ck / 104 - value: 103 - - name: Div106 - description: pll_p_ck = vco_ck / 106 - value: 105 - - name: Div108 - description: pll_p_ck = vco_ck / 108 - value: 107 - - name: Div110 - description: pll_p_ck = vco_ck / 110 - value: 109 - - name: Div112 - description: pll_p_ck = vco_ck / 112 - value: 111 - - name: Div114 - description: pll_p_ck = vco_ck / 114 - value: 113 - - name: Div116 - description: pll_p_ck = vco_ck / 116 - value: 115 - - name: Div118 - description: pll_p_ck = vco_ck / 118 - value: 117 - - name: Div120 - description: pll_p_ck = vco_ck / 120 - value: 119 - - name: Div122 - description: pll_p_ck = vco_ck / 122 - value: 121 - - name: Div124 - description: pll_p_ck = vco_ck / 124 - value: 123 - - name: Div126 - description: pll_p_ck = vco_ck / 126 - value: 125 - - name: Div128 - description: pll_p_ck = vco_ck / 128 - value: 127 enum/FDCANSEL: bit_size: 2 variants: @@ -4235,21 +3984,6 @@ enum/SWPSEL: - name: HSI_KER description: hsi_ker selected as peripheral clock value: 1 -enum/SWS: - bit_size: 3 - variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: CSI - description: CSI oscillator used as system clock - value: 1 - - name: HSE - description: HSE oscillator used as system clock - value: 2 - - name: PLL1 - description: PLL1 used as system clock - value: 3 enum/TIMPRE: bit_size: 1 variants: diff --git a/data/registers/rcc_h7ab.yaml b/data/registers/rcc_h7ab.yaml index 66ef644..27535a0 100644 --- a/data/registers/rcc_h7ab.yaml +++ b/data/registers/rcc_h7ab.yaml @@ -48,14 +48,14 @@ block/RCC: len: 3 stride: 8 byte_offset: 48 - fieldset: PLL1DIVR + fieldset: PLLDIVR - name: PLLFRACR description: RCC PLL1 Fractional Divider Register array: len: 3 stride: 8 byte_offset: 52 - fieldset: PLL1FRACR + fieldset: PLLFRACR - name: D1CCIPR description: RCC Domain 1 Kernel Clock Configuration Register byte_offset: 76 @@ -1727,7 +1727,7 @@ fieldset/CFGR: description: System clock switch status bit_offset: 3 bit_size: 3 - enum: SWS + enum: SW - name: STOPWUCK description: System clock selection after a wake up from system Stop bit_offset: 6 @@ -2289,85 +2289,6 @@ fieldset/HSICFGR: description: HSI clock trimming bit_offset: 24 bit_size: 7 -fieldset/PLL1DIVR: - description: RCC PLL1 Dividers Configuration Register - fields: - - name: DIVN1 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP1 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - enum: DIVP - - name: DIVQ1 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR1 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 -fieldset/PLL1FRACR: - description: RCC PLL1 Fractional Divider Register - fields: - - name: FRACN1 - description: Fractional part of the multiplication factor for PLL1 VCO - bit_offset: 3 - bit_size: 13 -fieldset/PLL2DIVR: - description: RCC PLL2 Dividers Configuration Register - fields: - - name: DIVN2 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP2 - description: PLL1 DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ2 - description: PLL1 DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR2 - description: PLL1 DIVR division factor - bit_offset: 24 - bit_size: 7 -fieldset/PLL2FRACR: - description: RCC PLL2 Fractional Divider Register - fields: - - name: FRACN2 - description: Fractional part of the multiplication factor for PLL VCO - bit_offset: 3 - bit_size: 13 -fieldset/PLL3DIVR: - description: RCC PLL3 Dividers Configuration Register - fields: - - name: DIVN3 - description: Multiplication factor for PLL1 VCO - bit_offset: 0 - bit_size: 9 - - name: DIVP3 - description: PLL DIVP division factor - bit_offset: 9 - bit_size: 7 - - name: DIVQ3 - description: PLL DIVQ division factor - bit_offset: 16 - bit_size: 7 - - name: DIVR3 - description: PLL DIVR division factor - bit_offset: 24 - bit_size: 7 -fieldset/PLL3FRACR: - description: RCC PLL3 Fractional Divider Register - fields: - - name: FRACN3 - description: Fractional part of the multiplication factor for PLL3 VCO - bit_offset: 3 - bit_size: 13 fieldset/PLLCFGR: description: RCC PLLs Configuration Register fields: @@ -2430,6 +2351,32 @@ fieldset/PLLCKSELR: array: len: 3 stride: 8 +fieldset/PLLDIVR: + description: RCC PLL1 Dividers Configuration Register + fields: + - name: PLLN + description: Multiplication factor for PLL1 VCO + bit_offset: 0 + bit_size: 9 + - name: PLLP + description: PLL DIVP division factor + bit_offset: 9 + bit_size: 7 + - name: PLLQ + description: PLL DIVQ division factor + bit_offset: 16 + bit_size: 7 + - name: PLLR + description: PLL DIVR division factor + bit_offset: 24 + bit_size: 7 +fieldset/PLLFRACR: + description: RCC PLL Fractional Divider Register + fields: + - name: FRACN + description: Fractional part of the multiplication factor for PLL VCO + bit_offset: 3 + bit_size: 13 fieldset/RSR: description: RCC Reset Status Register fields: @@ -2522,204 +2469,6 @@ enum/DFSDMSEL: - name: SYS description: System clock selected as peripheral clock value: 1 -enum/DIVP: - bit_size: 7 - variants: - - name: Div1 - description: pll_p_ck = vco_ck - value: 0 - - name: Div2 - description: pll_p_ck = vco_ck / 2 - value: 1 - - name: Div4 - description: pll_p_ck = vco_ck / 4 - value: 3 - - name: Div6 - description: pll_p_ck = vco_ck / 6 - value: 5 - - name: Div8 - description: pll_p_ck = vco_ck / 8 - value: 7 - - name: Div10 - description: pll_p_ck = vco_ck / 10 - value: 9 - - name: Div12 - description: pll_p_ck = vco_ck / 12 - value: 11 - - name: Div14 - description: pll_p_ck = vco_ck / 14 - value: 13 - - name: Div16 - description: pll_p_ck = vco_ck / 16 - value: 15 - - name: Div18 - description: pll_p_ck = vco_ck / 18 - value: 17 - - name: Div20 - description: pll_p_ck = vco_ck / 20 - value: 19 - - name: Div22 - description: pll_p_ck = vco_ck / 22 - value: 21 - - name: Div24 - description: pll_p_ck = vco_ck / 24 - value: 23 - - name: Div26 - description: pll_p_ck = vco_ck / 26 - value: 25 - - name: Div28 - description: pll_p_ck = vco_ck / 28 - value: 27 - - name: Div30 - description: pll_p_ck = vco_ck / 30 - value: 29 - - name: Div32 - description: pll_p_ck = vco_ck / 32 - value: 31 - - name: Div34 - description: pll_p_ck = vco_ck / 34 - value: 33 - - name: Div36 - description: pll_p_ck = vco_ck / 36 - value: 35 - - name: Div38 - description: pll_p_ck = vco_ck / 38 - value: 37 - - name: Div40 - description: pll_p_ck = vco_ck / 40 - value: 39 - - name: Div42 - description: pll_p_ck = vco_ck / 42 - value: 41 - - name: Div44 - description: pll_p_ck = vco_ck / 44 - value: 43 - - name: Div46 - description: pll_p_ck = vco_ck / 46 - value: 45 - - name: Div48 - description: pll_p_ck = vco_ck / 48 - value: 47 - - name: Div50 - description: pll_p_ck = vco_ck / 50 - value: 49 - - name: Div52 - description: pll_p_ck = vco_ck / 52 - value: 51 - - name: Div54 - description: pll_p_ck = vco_ck / 54 - value: 53 - - name: Div56 - description: pll_p_ck = vco_ck / 56 - value: 55 - - name: Div58 - description: pll_p_ck = vco_ck / 58 - value: 57 - - name: Div60 - description: pll_p_ck = vco_ck / 60 - value: 59 - - name: Div62 - description: pll_p_ck = vco_ck / 62 - value: 61 - - name: Div64 - description: pll_p_ck = vco_ck / 64 - value: 63 - - name: Div66 - description: pll_p_ck = vco_ck / 66 - value: 65 - - name: Div68 - description: pll_p_ck = vco_ck / 68 - value: 67 - - name: Div70 - description: pll_p_ck = vco_ck / 70 - value: 69 - - name: Div72 - description: pll_p_ck = vco_ck / 72 - value: 71 - - name: Div74 - description: pll_p_ck = vco_ck / 74 - value: 73 - - name: Div76 - description: pll_p_ck = vco_ck / 76 - value: 75 - - name: Div78 - description: pll_p_ck = vco_ck / 78 - value: 77 - - name: Div80 - description: pll_p_ck = vco_ck / 80 - value: 79 - - name: Div82 - description: pll_p_ck = vco_ck / 82 - value: 81 - - name: Div84 - description: pll_p_ck = vco_ck / 84 - value: 83 - - name: Div86 - description: pll_p_ck = vco_ck / 86 - value: 85 - - name: Div88 - description: pll_p_ck = vco_ck / 88 - value: 87 - - name: Div90 - description: pll_p_ck = vco_ck / 90 - value: 89 - - name: Div92 - description: pll_p_ck = vco_ck / 92 - value: 91 - - name: Div94 - description: pll_p_ck = vco_ck / 94 - value: 93 - - name: Div96 - description: pll_p_ck = vco_ck / 96 - value: 95 - - name: Div98 - description: pll_p_ck = vco_ck / 98 - value: 97 - - name: Div100 - description: pll_p_ck = vco_ck / 100 - value: 99 - - name: Div102 - description: pll_p_ck = vco_ck / 102 - value: 101 - - name: Div104 - description: pll_p_ck = vco_ck / 104 - value: 103 - - name: Div106 - description: pll_p_ck = vco_ck / 106 - value: 105 - - name: Div108 - description: pll_p_ck = vco_ck / 108 - value: 107 - - name: Div110 - description: pll_p_ck = vco_ck / 110 - value: 109 - - name: Div112 - description: pll_p_ck = vco_ck / 112 - value: 111 - - name: Div114 - description: pll_p_ck = vco_ck / 114 - value: 113 - - name: Div116 - description: pll_p_ck = vco_ck / 116 - value: 115 - - name: Div118 - description: pll_p_ck = vco_ck / 118 - value: 117 - - name: Div120 - description: pll_p_ck = vco_ck / 120 - value: 119 - - name: Div122 - description: pll_p_ck = vco_ck / 122 - value: 121 - - name: Div124 - description: pll_p_ck = vco_ck / 124 - value: 123 - - name: Div126 - description: pll_p_ck = vco_ck / 126 - value: 125 - - name: Div128 - description: pll_p_ck = vco_ck / 128 - value: 127 enum/FDCANSEL: bit_size: 2 variants: @@ -3170,21 +2919,6 @@ enum/SWPSEL: - name: HSI_KER description: hsi_ker selected as peripheral clock value: 1 -enum/SWS: - bit_size: 3 - variants: - - name: HSI - description: HSI oscillator used as system clock - value: 0 - - name: CSI - description: CSI oscillator used as system clock - value: 1 - - name: HSE - description: HSE oscillator used as system clock - value: 2 - - name: PLL1 - description: PLL1 used as system clock - value: 3 enum/TIMPRE: bit_size: 1 variants: From 4f83d5d9cfab92126b37252fcb14cb23149a2363 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 25 Sep 2023 00:08:45 +0200 Subject: [PATCH 49/54] pwr: add f0, f1. --- data/registers/pwr_f0.yaml | 78 ++++++++++++++++++++++++++++++++++++ data/registers/pwr_f0x0.yaml | 62 ++++++++++++++++++++++++++++ data/registers/pwr_f1.yaml | 71 ++++++++++++++++++++++++++++++++ stm32-data-gen/src/chips.rs | 3 ++ 4 files changed, 214 insertions(+) create mode 100644 data/registers/pwr_f0.yaml create mode 100644 data/registers/pwr_f0x0.yaml create mode 100644 data/registers/pwr_f1.yaml diff --git a/data/registers/pwr_f0.yaml b/data/registers/pwr_f0.yaml new file mode 100644 index 0000000..7b438d5 --- /dev/null +++ b/data/registers/pwr_f0.yaml @@ -0,0 +1,78 @@ +block/PWR: + description: Power control + items: + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR +fieldset/CR: + description: power control register + fields: + - name: LPDS + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power voltage detector enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD level selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 +fieldset/CSR: + description: power control/status register + fields: + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD output + bit_offset: 2 + bit_size: 1 + - name: VREFINTRDY + description: VREFINT reference voltage ready + bit_offset: 3 + bit_size: 1 + - name: EWUP + description: Enable WKUP pin 1 + bit_offset: 8 + bit_size: 1 + array: + len: 8 + stride: 1 +enum/PDDS: + bit_size: 1 + variants: + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 diff --git a/data/registers/pwr_f0x0.yaml b/data/registers/pwr_f0x0.yaml new file mode 100644 index 0000000..795bc33 --- /dev/null +++ b/data/registers/pwr_f0x0.yaml @@ -0,0 +1,62 @@ +block/PWR: + description: Power control + items: + - name: CR + description: power control register + byte_offset: 0 + fieldset: CR + - name: CSR + description: power control/status register + byte_offset: 4 + fieldset: CSR +fieldset/CR: + description: power control register + fields: + - name: LPDS + description: Low-power deep sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power down deepsleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear wakeup flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear standby flag + bit_offset: 3 + bit_size: 1 + - name: DBP + description: Disable backup domain write protection + bit_offset: 8 + bit_size: 1 +fieldset/CSR: + description: power control/status register + fields: + - name: WUF + description: Wakeup flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: Standby flag + bit_offset: 1 + bit_size: 1 + - name: EWUP + description: Enable WKUP pin 1 + bit_offset: 8 + bit_size: 1 + array: + len: 8 + stride: 1 +enum/PDDS: + bit_size: 1 + variants: + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 diff --git a/data/registers/pwr_f1.yaml b/data/registers/pwr_f1.yaml new file mode 100644 index 0000000..96e2858 --- /dev/null +++ b/data/registers/pwr_f1.yaml @@ -0,0 +1,71 @@ +block/PWR: + description: Power control + items: + - name: CR + description: Power control register (PWR_CR) + byte_offset: 0 + fieldset: CR + - name: CSR + description: Power control register (PWR_CR) + byte_offset: 4 + fieldset: CSR +fieldset/CR: + description: Power control register (PWR_CR) + fields: + - name: LPDS + description: Low Power Deep Sleep + bit_offset: 0 + bit_size: 1 + - name: PDDS + description: Power Down Deep Sleep + bit_offset: 1 + bit_size: 1 + enum: PDDS + - name: CWUF + description: Clear Wake-up Flag + bit_offset: 2 + bit_size: 1 + - name: CSBF + description: Clear STANDBY Flag + bit_offset: 3 + bit_size: 1 + - name: PVDE + description: Power Voltage Detector Enable + bit_offset: 4 + bit_size: 1 + - name: PLS + description: PVD Level Selection + bit_offset: 5 + bit_size: 3 + - name: DBP + description: Disable Backup Domain write protection + bit_offset: 8 + bit_size: 1 +fieldset/CSR: + description: Power control register (PWR_CR) + fields: + - name: WUF + description: Wake-Up Flag + bit_offset: 0 + bit_size: 1 + - name: SBF + description: STANDBY Flag + bit_offset: 1 + bit_size: 1 + - name: PVDO + description: PVD Output + bit_offset: 2 + bit_size: 1 + - name: EWUP + description: Enable WKUP pin + bit_offset: 8 + bit_size: 1 +enum/PDDS: + bit_size: 1 + variants: + - name: STOP_MODE + description: Enter Stop mode when the CPU enters deepsleep + value: 0 + - name: STANDBY_MODE + description: Enter Standby mode when the CPU enters deepsleep + value: 1 diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index d8ef590..c1a68e6 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -336,6 +336,9 @@ impl PeriMatcher { ("STM32H7(42|43|53|50).*:PWR:.*", ("pwr", "h7rm0433", "PWR")), ("STM32H7(23|25|33|35|30).*:PWR:.*", ("pwr", "h7rm0468", "PWR")), ("STM32H7(A3|B0|B3).*:PWR:.*", ("pwr", "h7rm0455", "PWR")), + ("STM32F0.0.*:PWR:.*", ("pwr", "f0x0", "PWR")), + ("STM32F0.*:PWR:.*", ("pwr", "f0", "PWR")), + ("STM32F1.*:PWR:.*", ("pwr", "f1", "PWR")), ("STM32F2.*:PWR:.*", ("pwr", "f2", "PWR")), ("STM32F3.*:PWR:.*", ("pwr", "f3", "PWR")), ("STM32F4.*:PWR:.*", ("pwr", "f4", "PWR")), From 4af533d90e20705794e507c8ad09c32ebbb76334 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 25 Sep 2023 20:19:35 +0200 Subject: [PATCH 50/54] stm32-metapac: only include device.x in link search path if `rt` is enabled. --- stm32-metapac-gen/res/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/stm32-metapac-gen/res/build.rs b/stm32-metapac-gen/res/build.rs index 080375c..e1b88aa 100644 --- a/stm32-metapac-gen/res/build.rs +++ b/stm32-metapac-gen/res/build.rs @@ -13,6 +13,7 @@ fn main() { .to_ascii_lowercase() .replace('_', "-"); + #[cfg(feature = "rt")] println!( "cargo:rustc-link-search={}/src/chips/{}", crate_dir.display(), From dd8fa1374d6394d06c3f63e214f511fdb89486ef Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 25 Sep 2023 20:20:03 +0200 Subject: [PATCH 51/54] Release stm32-metapac v14 --- stm32-metapac-gen/res/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32-metapac-gen/res/Cargo.toml b/stm32-metapac-gen/res/Cargo.toml index c9aa767..67062de 100644 --- a/stm32-metapac-gen/res/Cargo.toml +++ b/stm32-metapac-gen/res/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stm32-metapac" -version = "13.0.0" +version = "14.0.0" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/embassy-rs/stm32-data" From 604ea4029c1fe16bb0ffb90495087248a53968cf Mon Sep 17 00:00:00 2001 From: xoviat Date: Mon, 25 Sep 2023 15:57:52 -0500 Subject: [PATCH 52/54] generate rccperipheral for rtc --- stm32-data-gen/src/rcc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stm32-data-gen/src/rcc.rs b/stm32-data-gen/src/rcc.rs index 9bb540c..7316c3d 100644 --- a/stm32-data-gen/src/rcc.rs +++ b/stm32-data-gen/src/rcc.rs @@ -26,6 +26,8 @@ impl PeripheralToClock { }; for field in &body.fields { if let Some(peri) = field.name.strip_suffix("EN") { + let peri = if peri == "RTCAPB" { "RTC" } else { peri }; + // Timers are a bit special, they may have a x2 freq let peri_clock = { if regex!(r"^TIM\d+$").is_match(peri) { From bdbf126746919e1c07730d80f9345b1a494c72a6 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 26 Sep 2023 05:06:10 +0200 Subject: [PATCH 53/54] flash: set for all l0 chips. --- stm32-data-gen/src/chips.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32-data-gen/src/chips.rs b/stm32-data-gen/src/chips.rs index c1a68e6..5f6a27f 100644 --- a/stm32-data-gen/src/chips.rs +++ b/stm32-data-gen/src/chips.rs @@ -362,7 +362,7 @@ impl PeriMatcher { ("STM32F3.*:FLASH:.*", ("flash", "f3", "FLASH")), ("STM32F4.*:FLASH:.*", ("flash", "f4", "FLASH")), ("STM32F7.*:FLASH:.*", ("flash", "f7", "FLASH")), - ("STM32L0[0-9]2.*:FLASH:.*", ("flash", "l0", "FLASH")), + ("STM32L0.*:FLASH:.*", ("flash", "l0", "FLASH")), ("STM32L1.*:FLASH:.*", ("flash", "l1", "FLASH")), ("STM32L4.*:FLASH:.*", ("flash", "l4", "FLASH")), ("STM32L5.*:FLASH:.*", ("flash", "l5", "FLASH")), From 0adf2a75d1b7ec5d7119890bad2dd35920adfff1 Mon Sep 17 00:00:00 2001 From: shakencodes Date: Tue, 26 Sep 2023 10:55:19 -0700 Subject: [PATCH 54/54] Add enums MCOPRE & MCOSEL to wl5 & wle targets --- data/registers/rcc_wl5.yaml | 53 +++++++++++++++++++++++++++++++++++++ data/registers/rcc_wle.yaml | 53 +++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/data/registers/rcc_wl5.yaml b/data/registers/rcc_wl5.yaml index 6c66cd5..a8ee025 100644 --- a/data/registers/rcc_wl5.yaml +++ b/data/registers/rcc_wl5.yaml @@ -1110,10 +1110,12 @@ fieldset/CFGR: description: Microcontroller clock output bit_offset: 24 bit_size: 4 + enum: MCOSEL - name: MCOPRE description: Microcontroller clock output prescaler bit_offset: 28 bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: @@ -1483,6 +1485,57 @@ enum/HPRE: - name: Div512 description: hclk = SYSCLK divided by 256 value: 15 +enum/MCOPRE: + bit_size: 3 + variants: + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 + - name: Div16 + description: Division by 16 + value: 4 +enum/MCOSEL: + bit_size: 4 + variants: + - name: NoClock + description: No clock + value: 0 + - name: SYSCLK + description: SYSCLK clock selected + value: 1 + - name: MSI + description: MSI oscillator clock selected + value: 2 + - name: HSI16 + description: HSI oscillator clock selected + value: 3 + - name: HSE32 + description: HSE32 oscillator clock selected + value: 4 + - name: PLLRCLK + description: Main PLLRCLK clock selected + value: 5 + - name: LSI + description: LSI oscillator clock selected + value: 6 + - name: LSE + description: LSE oscillator clock selected + value: 8 + - name: PLLPCLK + description: Main PLLCLK oscillator clock selected + value: 13 + - name: PLLQCLK + description: Main PLLQCLK oscillator clock selected + value: 14 enum/PPRE: bit_size: 3 variants: diff --git a/data/registers/rcc_wle.yaml b/data/registers/rcc_wle.yaml index 393bc3b..17d34f8 100644 --- a/data/registers/rcc_wle.yaml +++ b/data/registers/rcc_wle.yaml @@ -740,10 +740,12 @@ fieldset/CFGR: description: Microcontroller clock output bit_offset: 24 bit_size: 4 + enum: MCOSEL - name: MCOPRE description: Microcontroller clock output prescaler bit_offset: 28 bit_size: 3 + enum: MCOPRE fieldset/CICR: description: Clock interrupt clear register fields: @@ -1105,6 +1107,57 @@ enum/HPRE: - name: Div512 description: hclk = SYSCLK divided by 256 value: 15 +enum/MCOPRE: + bit_size: 3 + variants: + - name: Div1 + description: No division + value: 0 + - name: Div2 + description: Division by 2 + value: 1 + - name: Div4 + description: Division by 4 + value: 2 + - name: Div8 + description: Division by 8 + value: 3 + - name: Div16 + description: Division by 16 + value: 4 +enum/MCOSEL: + bit_size: 4 + variants: + - name: NoClock + description: No clock + value: 0 + - name: SYSCLK + description: SYSCLK clock selected + value: 1 + - name: MSI + description: MSI oscillator clock selected + value: 2 + - name: HSI16 + description: HSI oscillator clock selected + value: 3 + - name: HSE32 + description: HSE32 oscillator clock selected + value: 4 + - name: PLLRCLK + description: Main PLLRCLK clock selected + value: 5 + - name: LSI + description: LSI oscillator clock selected + value: 6 + - name: LSE + description: LSE oscillator clock selected + value: 8 + - name: PLLPCLK + description: Main PLLCLK oscillator clock selected + value: 13 + - name: PLLQCLK + description: Main PLLQCLK oscillator clock selected + value: 14 enum/PPRE: bit_size: 3 variants: